MACD custom indicator
Martingale Duncan:
Hi all,
I attempted to create a custom indicator for MACD in MT5 that allows the user to selected MA for the oscillator and the signal line. Currently, in MT5 you get an EMA for the oscillator and a SMA for the signal line. The below code attempted to do this but its not working as expected.
It looks like you're trying to recreate the MACD indicator in your Indicators ==> Oscillators folder.
Try starting with the source code of the MACD indicator in your Indicators ==> Examples folder (attached).
Files:
MACD.mq5
5 kb
Hi all,
I attempted to create a custom indicator for MACD in MT5 that allows the user to selected MA for the oscillator and the signal line. Currently, in MT5 you get an EMA for the oscillator and a SMA for the signal line. The below code attempted to do this but its not working as expected.