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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.