Check for history available

 
When running an EA using iBands in the Strategy Tester I get error message. I am testing on EURCHF "CopyBuffer RSI failed code 4807" I can see that the Strategy Tester is downloading data. When that is complete the error messages stops and the EA works as expected. How do I "hold" the EA until all data is downloaded?
 
ingvar_e:
When running an EA using iBands in the Strategy Tester I get error message. I am testing on EURCHF "CopyBuffer RSI failed code 4807" I can see that the Strategy Tester is downloading data. When that is complete the error messages stops and the EA works as expected. How do I "hold" the EA until all data is downloaded?

Error 4807 is not related to missing data.

ERR_INDICATOR_WRONG_HANDLE

4807

Wrong indicator handle

 

angevoyageur.

Thanks, I know that. Its just that the error messages stopped after data was downloaded.

Ayway. I changed the code so that I placed the iMA = ....   in the EA Init section instead of having it "inline".  Since it is a multi currency  it meant having one iMA per symbol.

Or to be more specific, one iMA, one iBand and one iRSI  handle per symbol.

Anyway the problem went away after this change.