attila2k1
26 Nov 2023, 09:26
( Updated at: 26 Nov 2023, 11:08 )
Backtest indicator value different to cBot indicator value just after 00:00 UTC
Thank you Panagiotis and firemyst for your comments, as a result I was able to fix all my problems.
Currently all my cBots use index minus 1 or less for most calculations because I'm trying to avoid working with open candles, but with custom indicators I was still using index as opposed to index minus 1.
In my indicator programs I changed all the references of index to be index minus 1 and the discrepancies with ClosePrices and VolumeTicks all disappeared from the log, chart and buy/sell signals.
attila2k1
26 Nov 2023, 09:26 ( Updated at: 26 Nov 2023, 11:08 )
Backtest indicator value different to cBot indicator value just after 00:00 UTC
Thank you Panagiotis and firemyst for your comments, as a result I was able to fix all my problems.
Currently all my cBots use index minus 1 or less for most calculations because I'm trying to avoid working with open candles, but with custom indicators I was still using index as opposed to index minus 1.
In my indicator programs I changed all the references of index to be index minus 1 and the discrepancies with ClosePrices and VolumeTicks all disappeared from the log, chart and buy/sell signals.
Thanks,
attila2k1.
@attila2k1