Manually set Optimization parameters change after Rebuild of cBot

Created at 24 Oct 2024, 19:58
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!
MA

martins

Joined 22.10.2019

Manually set Optimization parameters change after Rebuild of cBot
24 Oct 2024, 19:58


Hi there,

Only a small annoyance, but I've noticed it several times - if you've done an earlier Optimization with a parameter's Min/Max/Step set to some specific values, then rebuild the cBot and return to Optimization settings, often the Max value has changed. It seems to change if it was previously more than about 5 of the parameter's Default Step above the Optimization min.

For instance, in a cBot with these 2 parameters,

        [Parameter("MinOnly", DefaultValue = 2, MinValue = 0)]
       public double MinOnly { get; set; }
       [Parameter("MinAndStep", DefaultValue = 2, MinValue = 0, Step = 0.01)]
       public double MinAndStep { get; set; }

and you've previously run an Optimization with both as min 2, max 4, step 0.5 (i.e. to try 2, 2.5, 3, 3.5, 4), then when you return after rebuild, the MinAndStep will be min 2, max 2.05, step 0.5 - meaning if you don't notice then the next run will only try with value 2.

Whereas I would expect the manually-set values to persist since they are still valid.

 

Thanks 


@martins
Replies

PanagiotisCharalampous
25 Oct 2024, 07:01

Hi there,

Unfortunately we cannot reproduce this. Can you please provide the complete source code and record a video demonstrating this happening?

Best regards,

Panagiotis


@PanagiotisCharalampous