Pass No. of Passes Grid on Optimization

Created at 17 Jan 2021, 14:19
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!
BO

Bots4Us

Joined 28.12.2020

Pass No. of Passes Grid on Optimization
17 Jan 2021, 14:19


Hi cTraders,
On Optimization, the result for each "Pass" is displayed in a Grid of Passes. Can the number of the respective "Pass" be accessed from w/in the code while being in the respective iteration?
I can't find a property for this, but cTrader must know somehow which trades/results belong to which Pass. Thus, it needs to be logged somewhere. Please kindly let me know how it can be grabbed. Thx.

 


@Bots4Us
Replies

PanagiotisCharalampous
18 Jan 2021, 10:55

Hi Bots4Us,

Unfortunately this information is not available via the API at the moment.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous

Bots4Us
18 Jan 2021, 22:18

RE:

PanagiotisCharalampous said:

Unfortunately this information is not available via the API at the moment.

Hi Panagiotis,

That is a pity. Please consider to add this.
If you try to log the number of the respective Pass of an Optimization in OnStart() via an incrementing counter _pass++; it does not seem to increment for Passes which don't have trades.
By contrast, the Pass No. in the Grid increments for each iteration no matter if the combination of tested parameters triggered trades or not.
As a result, the counter and the Pass No in the Grid are out of sync, which shouldn't be the case. It would be much easier to check, if custom logging is complete, if the Pass Number was available via the API.
Thx, Bots4Us.


@Bots4Us