BOT getting stuck in a continuous loop in OnTick method

Created at 04 Dec 2022, 09:26
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!
Affluent_Trading's avatar

Affluent_Trading

Joined 11.08.2022

BOT getting stuck in a continuous loop in OnTick method
04 Dec 2022, 09:26


Hi,

I am using the optimisation tool to get the optimum parameters for my bot but now and again some of the passes are getting stuck in a continuous loop in the ontick method whereas generally it runs as expected. Has anyone experienced this before? Is there something I can do within the ontick method to prevent this?

Regards,

Jay


@Affluent_Trading
Replies

Affluent_Trading
04 Dec 2022, 09:57

RE:

jaydcrowe1989 said:

Hi,

I am using the optimisation tool to get the optimum parameters for my bot but now and again some of the passes are getting stuck in a continuous loop in the ontick method whereas generally it runs as expected. Has anyone experienced this before? Is there something I can do within the ontick method to prevent this?

Regards,

Jay

Sorted it. One of my parameters was set to 0 which was causing the code to try and continually move the stop loss


@Affluent_Trading