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
I have ordered to write into mql5 indicator SAR of MACD.mq4.
The issue is that SAR of MACD.ex5 works fine on MT5 graphs but not when compile in and EA.
Only works in MT4 but not in MT5.
Thanks to help me.
<*.ex* file deleted>
Don't try to do that. There are no buffers, no IndicatorCounted() or prev_calculated. No way to know if older bars have changed or been added (history update.)
Just get the value(s) of the indicator(s) into EA/indicator (using iCustom) and do what you want with it.
Detailed explanation of iCustom - MQL4 programming forum (2017)