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:
- 6955
- Rating:
- Published:
- 2019.01.02 14:29
- Updated:
- 2019.01.28 07:19
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The On screen MACD indicator is drawn on the main price chart. Slow ЕМА is used as the zero line.
It has four adjustable parameters:
- Fast EMA period
- Slow EMA period
- Signal period - signal line calculation period
- Applied price - price used for calculation
Calculations:
MACD = EMA(Applied price, Fast EMA period)
Zero = EMA(Applied price, Slow EMA period)
Signal = Zero + SMA(RAW, Signal period)
Histogram = Zero + MACD - Signal
where:
RAW = MACD - Zero
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23005