Forum

Tick data from SymbolInfoTick and CopyTick is different is strategy tester

Hi, I'm trying build a tick indicator and while debugging I run in to this problem. So I create a test code as below. The code below get latest tick data from SymbolInfoTick and CopyTick then compare the time in msc if it is the same tick or not which it should always be the same since it is the

Need some help with error handling and logging

I get an Array out of range error only when on EA in live trade not in strategy tester and not in debugging on real data. It seem to happens randomly. I tried to recreate this error but no luck. Is there anyway to log needed array to mannually analyse the error when Array out of range happens? or