Micro-Trendline Momentum Breakout [ATR Optimized] (Anant) — Strategy by oil-carried-hurt
By oil-carried-hurt
Performance Metrics
- Author: oil-carried-hurt
- Symbol: OANDA:EURUSD
- Timeframe: 4 hours
- Net P&L: −257.72 USD (−2.58%)
- Win Rate: 32.4%
- Profit Factor: 0.942
- Max Drawdown: 509.10 USD (5.08%)
- Total Trades: 1,080
Description
OverviewThe Micro-Trendline Momentum Breakout is a systematic trend-following strategy designed for the 4H timeframe. It captures high-probability breakout opportunities from local consolidation structures (micro-trendlines) while utilizing dynamic volatility filtering to avoid "market noise."The core philosophy relies on identifying short-term "spikes" (pivot points) to construct dynamic support and resistance levels. Unlike static horizontal levels, these micro-trendlines adapt to the immediate slope of price action, allowing for earlier entries in emerging trends.Core ComponentsDynamic Structure Detection: Uses a 3-bar pivot lookback to identify "spikes" (local highs/lows).Hull Moving Average (HMA 20): Acts as a fast trend filter to ensure the breakout is aligned with immediate market momentum.Volatility-Based Protection (ATR): Uses a 1.5x ATR stop loss. This accounts for the specific volatility of the asset (e.g., EURUSD) and prevents premature exits due to minor wicks.Overextension Filter (RSI): Prevents "buying the top" or "selling the bottom" by restricting entries when the Relative Strength Index is in overbought or oversold territory.Trading Rules1. Setup (The Trendlines)The script continuously monitors the two most recent High Pivots and Low Pivots. It calculates the slope between these "spikes" and projects an invisible line forward.2. Long Entry (Buy)Price closes above the projected Resistance Trendline.The current close is above the 20-period HMA (Bullish Bias).RSI is below 70 (Not overextended).3. Short Entry (Sell)Price closes below the projected Support Trendline.The current close is below the 20-period HMA (Bearish Bias).RSI is above 30 (Not overextended).4. Risk ManagementStop Loss: Fixed at $1.5 \times \text{ATR}$ from the entry price, providing a "volatility buffer."Take Profit: Calculated at a 1:2 Risk-to-Reward ratio. This ensures that even with a win rate below 50%, the strategy remains mathematically profitable over a large sample of trades.Best Markets & Settings Timeframe:4H (Recommended for balanced signal frequency).Pairs: Major FX pairs (EURUSD, GBPUSD) and Gold (XAUUSD).Risk: 1-2% of equity per trade.Why this strategy works?Most retail traders draw subjective trendlines. This algorithm removes human bias by calculating the exact geometric slope between pivots. By combining this with an ATR-based exit, the strategy survives "stop hunts" that typical retail traders fall victim to, capturing the meat of the move once the breakout is confirmed.DisclaimerPast performance is not indicative of future results. Always backtest on your specific broker's data to account for spread and slippage.