Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 4821
- Rating:
- Published:
- 2018.03.01 11:52
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Zero Lag is a modified EMA.
Calculation formula:
EMA ZL = α * (EMA + Gain * (Close - ZL [1])) + (1 - α) * ZL [1]
The formula is similar to EMA with an addition of a new value Gain * (Close - ZL [1])
Gain is the value selected from the interval [-GainLimit, GainLimit] to minimize the error for the current data sample (Close - ZL) → min
The indicator has three input parameters:
- Period - calculation period;
- Gain limit - the Gain parameter;
- Applied price - price used for calculations.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19896

ZeroLagMACD is an MACD version, which has a much smaller lag compared to the classic MACD.

An Expert Advisor based on the Diff_TF_MA indicator.