N Pattern EA
- Experts
- Donitrinugroho
- Versione: 3.30
- Attivazioni: 5
N-Pattern EA (H1 Timeframe) – Trend-Based Pattern Trading System
N-Pattern EA is an automated trading system designed to identify and trade the N-pattern structure within strong market trends on the H1 timeframe. The strategy combines EMA-based trend filtering, swing high/low analysis, and price action confirmation to deliver structured and disciplined entries.
🔹 Core Strategy Logic
- Detects market trend using EMA (50) and market structure (Higher High–Higher Low / Lower High–Lower Low)
- Identifies N-pattern formation (P1 → P2 → P3) based on swing points
- Validates retracement using Fibonacci ratio (0.236 – 0.786)
- Confirms entry with strong bullish/bearish candle close
- Executes trades only after confirmation on closed candles (no repainting)
🔹 Trade Execution Rules
- Buy Entry: In bullish trend after valid N-pattern + bullish confirmation candle
- Sell Entry: In bearish trend after valid N-pattern + bearish confirmation candle
- Stop Loss: Fixed at 200 pips
- Take Profit: Fixed at 500 pips
🔹 Risk & Recovery Logic
- If Stop Loss is hit:
- EA checks whether the pattern is still valid
- Waits for the next confirmation candle for re-entry
- If Take Profit is hit:
- Resets and starts searching for a new pattern
- If trend changes:
- All positions are closed immediately
- System resets and adapts to the new trend
🔹 Pattern Validation
- Ensures proper price structure alignment (P1 < P3 < P2 for bullish / inverse for bearish)
- Applies invalidity threshold to avoid weak or broken patterns
- Uses dynamic candle validation based on body-to-range ratio
🔹 Additional Features
- Works exclusively on H1 timeframe
- Uses Magic Number for trade management
- Includes detailed logging system for transparency
- Fully event-driven using OnTradeTransaction() for precise trade tracking
- No repainting logic (strict closed-candle confirmation)
Best suited for:
- Trend-following traders
- Structured price action strategies
- Traders looking for semi-aggressive risk-reward setups (1:2.5 RR)
