Big loops -

Created at 23 Feb 2022, 14:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JO

jordynlaubscher

Joined 24.10.2016

Big loops -
23 Feb 2022, 14:33


I have developed a cBot that self-optimises by iterating through historical data while varying certain parameters.

This works correctly when 'live', and can iterate through about 9000000 passes a minute, but when backtesting the method exits the loop prematurely, after 10000 iterations.

Is this defensive programming, and if so can it be bypassed?


@jordynlaubscher
Replies

amusleh
24 Feb 2022, 08:43

Hi,

Can you provide a sample code that can reproduce this issue?


@amusleh

jordynlaubscher
24 Feb 2022, 11:19 ( Updated at: 21 Dec 2023, 09:22 )

RE:

amusleh said:

Hi,

Can you provide a sample code that can reproduce this issue?

Hi Amusleh

In attempting to reproduce the issue under simplified conditions, I have determined that it is only the log file that is truncated. The misleading part was that only data pertaining to the loop is truncated, lines printed before the loop are not. I've attached an image, but resolved the issue.


@jordynlaubscher