Price action fight
- Uzmanlar
- Muthukrishnan Muthupoilan
- Sürüm: 3.10
- Etkinleştirmeler: 5
Core Strategy Logic
This Expert Advisor (EA) is a mean-reversion and trend-following hybrid that executes trades based on specific candlestick patterns occurring near key support and resistance levels. It uses a multi-timeframe filter to ensure trades align with the broader market direction.
Support & Resistance (S/R) Detection: The EA identifies swing levels within a defined lookback period (defaulting to 30 bars). A Swing Low is identified when a bar's low is lower than the bars immediately to its left and right.
Entry Zones: Trades are only considered if the price is within a "zone" near these swing levels. This zone is calculated as a percentage of the total range between the identified support and resistance (defaulting to 50%).
Candlestick Signals: Once in a valid zone, the EA looks for two primary patterns:
Pin Bars: Bullish or bearish candles with long wicks (at least 60% of the total range).
Engulfing Patterns: Candles that completely "engulf" the previous candle's body in the opposite direction.
Risk & Trade Management
The EA includes several built-in mechanisms to protect capital and manage open positions:
Position Sizing: It automatically calculates lot sizes based on a fixed percentage of account balance (default 1.0%) and the distance to the stop loss.
Risk/Reward: It uses a fixed Reward-to-Risk ratio (default 2.0) to set take-profit levels.
Trailing Stop: If enabled, the EA moves the stop loss in favor of the trade once it reaches a "Start" threshold (20 pips), following the price at a "Step" distance (10 pips).
Session Filtering: Users can restrict trading to specific sessions: London, New York, or Asian.
Technical Filters
HTF Filter: A Higher Timeframe (HTF) filter (defaulting to H4) uses an Exponential Moving Average (EMA 50) to determine trend direction.
Bullish: Price is above the EMA, and the EMA is sloping upward.
Bearish: Price is below the EMA, and the EMA is sloping downward.
Debug Logging: The EA prints detailed diagnostic information to the "Experts" tab, showing why a signal was or was not triggered for every new bar.
Performance Tracking & Interface
The EA features an on-screen dashboard that displays real-time statistics:
Win Rate Tracker: Displays total trades, wins, losses, and the overall win percentage.
Floating P/L: Shows the current profit or loss of active trades in USD.
S/R Levels: Visually identifies the current swing support and resistance prices being used for calculations.
