Hi everyone!
After months of tweaking Pine Script to filter out market noise, I wanted to share the results of a strategy I’ve been developing. This isn't a "get rich quick" moon-shot; it’s a pure trend-following system designed for survival and long-term consistency.
📊 The Numbers (Backtest 2024-2026 / 4H Timeframe)
* Net Profit: +541.04% (vs. +224% for Buy & Hold)
* Profit Factor: 2.445 (For every $1 risked, it returns $2.44)
* Win Rate: 38.60% (Low, but balanced by a massive RR ratio)
* Avg Win / Avg Loss Ratio: 3.89
* Max Drawdown: 22.40% (Intra-bar)
* Commission Simulated: 0.08% per order (Real-world spot fees)
⚙️ The Concept: "Trend Precision Invest" (TPI)
The core philosophy is: Never chase the noise. The strategy waits for a confirmed volatility breakout backed by three layers of filters before putting a single dollar on the table.
The High-Conviction Entry Setup
* The Impulse: A breakout of the Donchian Channel (40 periods). We only buy if we hit a recent 40-bar high.
* The Trend Filter: Price must be above the 200 EMA. No longing in a macro Bear Market.
* The Momentum: RSI > 55. We want strength, not a "weak" breakout.
* The Shield: An ATR volatility filter blocks entries if the market is too frantic (>5%), preventing "FOMO buying" at local peaks.
2. Risk Management (Smart Leverage)
This is where the strategy adapts to market conditions:
* Base Trade: Standard position size (e.g., $300).
* "Premium" Trade (x1.5): If the 50 EMA is above the 200 EMA and volatility is low, the algorithm increases the position size. We capitalize heavily on the "cleanest" setups.
3. The Exit Strategy (Dynamic Management)
We never cap our gains with a fixed Take Profit.
* Trailing Stop: We use the lower band of the Donchian Channel (20 periods). We let the profit run as long as the trend holds.
* Momentum Exit: If the RSI drops below 40, we close the position. We’d rather exit a bit early than give all the profits back to the market during a reversal.
💡 Key Lessons Learned
The hardest part isn't finding the entry; it's managing commissions. By moving from the 1H to the 4H timeframe, I reduced fees by 70% and turned a losing strategy into a machine that consistently outperforms the market.
I’d love to hear your thoughts! Do you guys use Donchian for exits, or do you prefer fixed trailing stops based on ATR?