Optimize bot with two linked properties

Created at 27 Nov 2024, 15:00
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!
RO

robert.john.edgar

Joined 25.01.2023

Optimize bot with two linked properties
27 Nov 2024, 15:00


Example say I have a bot with two properties (amongst others) like “fast” and “slow”.

I want to run the optimizer with a range of values for both fast and slow, say 10-30 for fast and 20-40 for slow, note the overlap.

Some of the runs it picks a value of say 30 for fast and 20 for slow.

How can I either redesign the bot or something I can do in the optimizer to exclude these results.

TIA

Rob

 


@robert.john.edgar
Replies

PanagiotisCharalampous
28 Nov 2024, 06:57

Hi there,

There is nothing you can do in the optimizer. What you can to is to stop the cBot immediately in OnStart() when the values overlap, so that the execution is skipped.

Best regards,

Panagiotis


@PanagiotisCharalampous