thanks Osama for help.
actually, I think these MODE_MAIN and MODE_SIGNAL supposed to be for MT4. in MT5 they come with (undeclared identifier).
and for the iMACD, it comes with: "wrong parameters count" error.
or if there is something I need to call, I am afraid I don't know the path.
do you know what is the problem?
thanks Osama for help.
actually, I think these MODE_MAIN and MODE_SIGNAL supposed to be for MT4. in MT5 they come with (undeclared identifier).
and for the iMACD, it comes with: "wrong parameters count" error.
or if there is something I need to call, I am afraid I don't know the path.
do you know what is the problem?
MetaTrader5/MQL5/Experts/Advisors/ExpertMACD.mq5
or
MetaTrader5/MQL5/Experts/Examples/MACD/MACD Sample.mq5

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I was going to write an EA based on MACD indicator.
I have problems with calling main and signal amounts in my EA. is there anybody able to give me a guide?