Critical in Error EA (Array out of range)

General discussion about the Tickstory Lite software package.
Post Reply
aderc
Posts: 1
Joined: Wed Apr 15, 2020 6:40 am

Critical in Error EA (Array out of range)

Post by aderc »

Hi can someone advice on the problem i am facing over backtesting using strategy tester in mt4:

2020.04.15 14:41:00.412 EURUSD,H4: 1 tick events (1 bars, 29156226 bar states) processed in 0:00:00.016 (total time 0:00:00.063)
2020.04.15 14:41:00.412 2019.01.02 06:02:37 Testing pass stopped due to a critical error in the EA
2020.04.15 14:41:00.408 2019.01.02 06:02:37 PZ MACD Trader EA EURUSD,H4: array out of range in 'PZ_MACDTraderEA.mq4' (243,16)


I encountered the above issues after exporting the data from tickstory to mt4. I was trying an EA before the export of data from tickstory and it was working fine. After the export, the above issue appear.

Can someone advice how i can go about in resolving?

Thanks
Ader

tickstory
Posts: 4898
Joined: Sun Jan 06, 2013 12:27 am

Re: Critical in Error EA (Array out of range)

Post by tickstory »

Hi Ader,

It's possible that your EA isn't coded to handle tick data for some reason. According to the error message, there is an attempt to access an array outside of its bounds on line 243. You will need to check this code or, if you didn't write it, refer back to the author of the code to see if they can diagnose further.

Thanks.

Post Reply