Cboset extra with bot function

Created at 27 Aug 2024, 19:48
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!
YE

YesOrNot2

Joined 17.05.2024

Cboset extra with bot function
27 Aug 2024, 19:48


Hi, I’d like to know if there is a function that allows extracting the cbotset to a file (if there is one, as I have a lot of parameters and I want to do this professionally).

Objective: I'm exporting data to a CSV, and I’d like to have all the parameters used included at the end of it. That way, during an optimization, I’ll have access to the collected data as well as the parameters used.


@YesOrNot2
Replies

firemyst
28 Aug 2024, 02:49

If you're writing the output from the bot itself, why not just write the bot's parameters as they currently are in the bot to the output file?

Why would you need to read the parameters of the saved cbotset file when the actual parameters in the bot could have been updated/changed without the cbotset file having been updated?


@firemyst

PanagiotisCharalampous
28 Aug 2024, 05:48

The cbotset file is just a text file. So you can read it as any other text file and use the information as you wish.


@PanagiotisCharalampous