ProTrade Order Block and FVG Confluence EA
- Experts
- Cain De Bruin
- 버전: 1.1
- 활성화: 5
ProTrade Order Block + FVG Confluence EA
The ProTrade Order Block + FVG Confluence EA is a standalone institutional-grade trading tool designed to identify and trade high-probability confluence zones where Order Blocks and Fair Value Gaps (FVGs) overlap. Built on smart money concepts, this EA automates the detection of institutional supply/demand zones and executes precision entries when price retests these confluent areas.
Strategy Overview
This EA scans historical price action to identify two key institutional patterns: Order Blocks (strong impulsive candles that leave behind unfilled liquidity) and Fair Value Gaps (three-candle imbalances where price leaves a gap). When these two patterns overlap by a configurable percentage, a high-probability confluence zone is established. The EA then waits for price to retest this zone before executing trades in the direction of the original institutional move, with adaptive risk management based on zone structure or fixed pip values.
Key Features
Institutional Pattern Detection
- Configurable Order Block detection with impulse confirmation and lookback periods
- Fair Value Gap identification with minimum gap size filtering
- Confluence logic requiring configurable overlap percentage between OB and FVG zones
- Retest entry logic with tolerance buffer for precise zone execution
Adaptive Risk Management
- Fixed or zone-based stop loss calculation (use OB/FVG boundaries or fixed pips)
- Configurable take profit distance with zone-aware or fixed pip options
- Dynamic position sizing based on account balance and configurable risk percentage
- Optional breakeven management moves stop loss to entry + buffer after configurable profit threshold
- Optional trailing stop locks in profits as trades move favorably
Session-Aware Execution
- Configurable session filters for London, New York, and Tokyo trading windows
- Weekend filter prevents trading during illiquid periods
- Spread filter avoids entries during unfavorable market conditions
- Daily trade limit and minimum bars between trades prevent over-trading
Advanced Safety Controls
- Minimum account balance validation prevents trading on underfunded accounts
- Optional daily loss limit protects capital during adverse conditions
- Consecutive loss protection halts trading after configurable losing streak
- Magic number isolation ensures clean position tracking across multiple EAs
Visual Zone Management
- Real-time drawing of Order Blocks, Fair Value Gaps, and Confluence zones on chart
- Customizable colors for bullish/bearish OB, FVG, and confluence areas
- Dashboard display of confluence status, trade direction, daily performance, and equity
- One-click controls for pause/resume, close all positions, and chart styling
Input Parameters
Strategy Settings
- OB_Lookback/OB_Confirmation: Order Block detection range and confirmation bars
- FVG_Lookback/FVG_MinGapPips: FVG detection range and minimum gap size in pips
- ConfluenceOverlap: Minimum overlap percentage required between OB and FVG zones
- RetestTolerancePips: Price tolerance buffer for retest zone entry execution
Risk Management
- RiskPercent: Percentage of account equity to risk per trade
- StopLossPips/TakeProfitPips: Fixed SL/TP distances in pips (used when zone-based SL disabled)
- UseZoneBasedSL: Enable/disable using OB/FVG zone boundaries for stop loss placement
- EnableBreakeven/BreakevenTriggerPips/BreakevenOffsetPips: Breakeven management configuration
- EnableTrailingStop/TrailingStartPips/TrailingDistancePips: Trailing stop configuration
Entry Filters
- MaxSpreadPips: Maximum allowable spread in pips for trade execution
- TradeLondon/TradeNewYork/TradeTokyo: Enable/disable specific session windows
- MaxTradesPerDay: Maximum number of trades allowed per day
- MinBarsBetweenTrades: Minimum bars required between consecutive entries
Safety & Risk Control
- EnableMaxDailyLoss/MaxDailyLossPercent: Optional daily loss limit protection
- EnableMaxConsecutiveLosses/MaxConsecutiveLosses: Consecutive loss protection toggle
- MinAccountBalance: Minimum account balance required to enable trading
Chart Appearance
- Full set of color options for chart elements and zone visualization
- OB_BullishColor/OB_BearishColor: Order Block zone colors
- FVG_BullishColor/FVG_BearishColor: Fair Value Gap zone colors
- ConfluenceColor: Color for overlapping OB+FVG confluence zones
- ShowZonesOnChart: Enable/disable visual zone drawing on chart
Dashboard & Controls
- ShowDashboard: Enable/disable the on-chart status panel
- AutoApplyChartSettings: Apply visual preferences automatically on load
How It Works
- On initialization, the EA sets up dashboard elements and prepares for zone scanning.
- Every 60 seconds, the EA scans historical price action to detect valid Order Blocks and Fair Value Gaps within configurable lookback periods.
- When both patterns are detected, the EA calculates their overlap percentage. If the overlap meets the ConfluenceOverlap threshold, a confluence zone is established.
- The EA continuously monitors price action for a retest of the confluence zone within the configurable tolerance buffer.
- Upon retest confirmation, position size is calculated using margin-aware logic that respects account balance, risk parameters, and broker requirements.
- Orders are executed with zone-based or fixed SL/TP levels and optional breakeven/trailing management.
- The dashboard and chart zones update in real time to reflect current confluence status and account performance.
Recommended Usage
- Best suited for liquid forex pairs (EURUSD, GBPUSD, USDJPY) and major indices that exhibit clear institutional order flow patterns.
- Use on H1 or H4 timeframes for optimal zone identification and noise reduction.
- Test thoroughly in the Strategy Tester with your broker's spread and execution conditions before live deployment.
- For conservative trading, enable both breakeven and trailing stop management, and keep ConfluenceOverlap at a higher value (0.5-0.7) for stricter confluence requirements.
- Adjust RetestTolerancePips based on the average volatility of your chosen instrument to balance entry precision with execution reliability.
- Monitor daily trade count and equity drawdown to ensure alignment with your risk tolerance.
Support
For questions, feedback, or assistance, please use the Comments section on this product page or the MQL5 messaging system. The author monitors this channel for support requests and provides updates through the official product page.
Important Disclaimer
Trading in financial markets involves substantial risk of loss and is not suitable for every investor. Smart money concept strategies carry additional risks including false breakouts, slippage during volatility spikes, and rapid equity fluctuations. Past performance of any trading system or methodology is not indicative of future results. This Expert Advisor is provided for educational and informational purposes only and does not constitute financial advice, a recommendation, or a guarantee of profitability. Users are solely responsible for their trading decisions and should test any tool thoroughly in a demo environment with realistic settings before considering live use. Never risk capital you cannot afford to lose.
