Trend Fair Value Gap Delta Robot MT4
- Experts
-
Duc Hoan Nguyen
I develop practical trading tools for MetaTrader 4/5, with a focus on indicator integration, Multi-Timeframe analysis, market scanning, and automated trading solutions.
My work mainly includes:
• Indicator-to-EA Solutions - Version: 1.0
- Activations: 10
Get ALL my MT4 & MT5 Robots & Indicators FREE — See how here
EA User Guide — All 6 Parts
Learn how the controls work, then use the reference configurations in Part 6 to build your own trading method.
See the MT5 version: Trend Fair Value Gap Delta Robot MT5
See the MT4 version: Trend Fair Value Gap Delta Robot MT4
See more products: All Products or Trading Indicators, Special Offers & New Releases
Overview
This EA automates trading based on the logic of the Trend Fair Value Gap Delta Multi TF Scanner indicator.
The indicator combines an MA with ATR bands to identify trend and three-candle Fair Value Gaps (FVGs) to find returns into a zone followed by an exit from it. Trade an FVG reaction, a trend change or either signal source.
Choose how entry signals form
- When FVG signal appears: Buy requires a candle to close inside an active bullish FVG, followed by another candle closing above its upper boundary. Sell uses an active bearish FVG: a close inside first, then a close below its lower boundary. The zone must predate the signal candle and meet the selected minimum age. Zones breached beyond the opposite boundary, locked by a band or expired no longer produce signals.
- When trend shifts: Buy appears when trend changes from bearish to bullish: the current close is above the upper band while the previous close is below that same current upper band. Sell applies the reverse condition at the lower band. This is a state-change event, not a new signal on every bar in the same trend; no simultaneous FVG reaction is required.
- When any condition occurs: Accepts an FVG signal or a trend change in the corresponding direction. The groups use OR; they do not need to confirm together.
Creating a new FVG or merely touching a zone is insufficient for a bounce signal. After an exit, an active zone needs another close inside to prepare a subsequent signal. An exit occurring before the minimum age is not automatically replayed when the zone becomes old enough.
Settings that shape the signals
- MA–ATR trend: MA Length, MA Method and Applied Price shape the MA; ATR Length and Band Multiplier control band width. Current defaults are SMA 20 on Close price, ATR 50 and multiplier 2. Applied Price changes the MA; trend-change conditions still compare closing prices with the bands.
- FVG creation and filtering: A bullish FVG forms when the third candle's Low is above the first candle's High; a bearish FVG when the third candle's High is below the first candle's Low. Create FVG only in the current trend direction is ON by default. The width filter defaults to a minimum of 0.2 × ATR200; Points mode is also available, with the stored 100-point value used only when that mode is selected.
- Zone age: Minimum FVG age for Buy/Sell defaults to 3 bars since creation; values ≤ 1 disable the minimum-age restriction. Freeze FVG after maximum age is ON by default, with Maximum active FVG age set to 100; a zone freezes once its age exceeds 100 bars. These are separate conditions.
- Volume: MA Applied Volume (VWMA) selects the volume source for MA calculations that use volume. Buy/Sell proportions inside FVG zones provide context; they are not a required delta-volume threshold for entry.
Signal timing: Buy signal bar shift and Sell signal bar shift are adjustable and default to 1, the latest closed bar. Selecting 0 checks the live bar, whose signal may change before the close. The main signal uses the running symbol and timeframe; historical signal searches provide information and do not open a new trade.
MTF filters: Two optional filters default to OFF, each with its own timeframe, settings and shift. Each can check UpTrend, DownTrend or Always TRUE separately for Buy/Sell; they confirm trend state rather than create additional entry events. The EA's filters, limits and trading permissions must still allow entry.
Signal-based exit references: When valid, the reference SL uses the corresponding trend band and the reference TP is one SL-distance from the signal candle's close (1R). These are reference prices, not guaranteed execution prices or profits; actual exits depend on the management method you select.
This Expert Advisor combines automated Buy/Sell signals with configurable position sizing, exits and entry filters. Its settings let you define how eligible trades are opened, managed and closed.
Begin with a single-position setup and individual Stop Loss and Take Profit, then add the supported management functions that fit your method. Different configurations can use trailing, basket exits, Grid or Hedging, subject to the compatibility requirements in the user guide.
Important: Default settings have not been optimized. Use the reference methods and example settings in Part 6 to build, adapt and test a configuration for your trading method, instrument, timeframe, account and risk tolerance.
Trade and position management
- Position sizing: fixed lots, balance-based sizing, or risk amount/percentage with a compatible Stop Loss.
- Individual exits: configurable Stop Loss and Take Profit, Reward-to-Risk targets and optional virtual SL/TP.
- Trailing: individual-position or basket trailing in supported configurations.
- Closing rules: Basket TP/SL, closing on signals, or closing before the next eligible entry.
- Volume management: Add, Multiplier or Recover, with the conditions required by each mode.
- Additional-position methods: same-direction Grid entries at configured price distances, or opposite-direction Hedging at a configured loss-distance threshold.
The methods have separate requirements. Recover uses a single-position setup with a valid individual TP and cannot be combined with Grid, Hedging or conflicting basket/signal exits. Grid and Hedging cannot be enabled together. Check Part 4 before combining management functions.
Entry filters and operating controls
Optional technical filters include Moving Average, RSI, Stochastic, ADX, MACD, SuperTrend, Volumatic VIDyA and Predictive Ranges. Enable the filters you need and select the conditions that should confirm the EA's main signal.
Trading controls cover direction, sessions, weekdays, holiday periods, spread, position limits, entries per bar and economic news. Each enabled filter should have a defined role; enabling more filters does not automatically improve a configuration.
Daily drawdown actions, breakeven reference lines and trading panels provide additional monitoring and management controls. Panel functions include Pause and closing controls. Available settings and signal parameters can differ by EA, version and platform edition.
Configuration and testing
Start by checking the signal, lot size and individual exits for the intended instrument and timeframe. Add one compatible management function or filter at a time, inspect the resulting trades and save the configuration you want to evaluate.
Use Strategy Tester to examine supported functions on historical data, then verify operation on Demo. News Filter and News Panel do not operate in Strategy Tester in this EA framework and must be checked separately on Demo. Parts 4 and 5 explain testing, configuration messages and troubleshooting.
Review instrument specifications, account size, spread, commission, swap, margin and execution conditions. Lot progression, Recover, Grid and Hedging require particular attention to total open exposure and exit rules.
The EA does not guarantee profit. Historical results do not guarantee future performance.
Support
For help with configuration, use the product comments or the MQL5 messaging system. Describe the intended entry conditions, lot-sizing method, exit rules and whether additional positions should be allowed. I can explain which settings correspond to that behavior and which combinations are supported.
