Custom Indicator in EA not working - page 2

 

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>

Files:
 
Xavier Serra Palacios #: s but not when compile in and EA.

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)

Reason: