Forum

OnCalculate won't be called during backtest EA?

I am using MT4 strategy tester . I write an EA and an indicator. I will call the indicator within my EA by using double returnVal = iCustom ( Symbol (), PERIOD_M5 , "IndicatorName" , IndicatorParam01, IndicatorParam02, channel, index); This works in live trading but no in tester. In the strategy

How to get data from custom indicator in mql4

I would like to get data from a custom indicator in mql4. I know that how to do that in mql5 like this. int indicatorHandle = iCustom ( Symbol (), Period (), indicatorName, ...); double tempArray[ 1000 ]; CopyBuffer (indicatorHandle, 0 , 0 , 1000 , tempArray); I search the document