Zero Lag Trend Signals 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: Zero Lag Trend Signals Robot MT5
See the MT4 version: Zero Lag Trend Signals 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 Zero Lag Trend Signals Multi TF Scanner indicator.
Zero Lag Trend Signals logic
The indicator combines the ZLEMA moving average designed to reduce lag with two volatility bands. Closing prices are adjusted by the difference from the price a number of bars earlier, then smoothed using MA Method. MA Length defaults to 70 and the method to EMA; the adjustment lookback is the integer part of (MA Length - 1) / 2.
The distance from ZLEMA to each band is the highest ATR over a window three times MA Length, multiplied by Band Multiplier. The ATR period also equals MA Length; Band Multiplier defaults to 1.2. A bullish state is established when the closing price crosses above the upper band, and a bearish state when it crosses below the lower band. The state persists until an event establishes the opposite direction. Returning inside the bands or crossing ZLEMA alone does not reverse the state.
Entry mode offers three choices:
- When Bullish/Bearish Entry appears: the default mode. Buy when the closing price crosses above ZLEMA and both the evaluated bar and the preceding bar retain a bullish state; Sell when the closing price crosses below ZLEMA and both bars retain a bearish state.
- When Bullish/Bearish Trend dot appears: Buy when the state changes from neutral or bearish to bullish; Sell when it changes from neutral or bullish to bearish. This establishes a new direction, unlike an Entry within an already maintained direction.
- When either signal condition occurs: accepts either corresponding signal group for each direction using OR. Entry and a trend change do not have to occur together.
A cross above requires the previous closing price to be below or equal to its corresponding line/band and the evaluated closing price to be above the current line/band; a cross below uses the opposite conditions. A wick crossing or merely touching the line is insufficient. The requirement for the same state on two bars distinguishes Entry from a bar that has just changed trend.
Buy signal bar shift and Sell signal bar shift default to 1, the most recently closed bar on the current chart timeframe. At shift 0, the forming bar's price can change the signal before the bar closes. Searching up to 2000 bars for the latest signal provides reference information only; it does not turn an old signal into a current entry signal.
Settings affecting signals include Maximum bars to process, MA Length, MA Method, MA Applied Volume (VWMA) and Band Multiplier. MA Length affects both the central line and volatility measurement; MA Method changes smoothing; the volume source is used with VWMA; Band Multiplier changes band distances.
MTF Filter 1 and MTF Filter 2 optionally filter by trend state on a selected timeframe, each with its own parameters, Buy/Sell conditions and shift. Both are disabled by default. When enabled with the default conditions, Buy is allowed in a bullish state and Sell in a bearish state at shift 1 of the filter timeframe. Signals must be assessed alongside the filters and trading controls enabled in the EA configuration; Scanner functionality in the source indicator does not mean the robot automatically scans multiple symbols.
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.
