The MACD indicator in Metatrader takes the following inputs:
1-Fast EMA
2- Slow EMA
3- MACD SMA
Then the HISTOGRAM is calculated as the difference between the Fast and Slow EMA. Further more, the MACD SMA can take a value of 1, in such case, the line is drawn in the middle of each histogram bar.
If possible, can you provide me with .lua indicator of this description.
Regards
Muhammad