cbotset file format

Created at 26 Oct 2023, 06:17
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!
DR

driftingprogrammer

Joined 08.12.2019

cbotset file format
26 Oct 2023, 06:17


Hi,

I have noticed 2 different formats of cbotset files.

the newer format that looks like this -

 

[ChartParameters]
Symbol = AUDUSD
Timeframe = h1

[cBotParameters]
UniqueName = cbot_name
DisableWarning = False
BuyLotSize = 0.01
SellLotSize = 0.01
IncludeBuySignal = False
IncludeSellSignal = True
StopLossBuy = 106
StopLossSell = 190
TakeProfitBuy = 198
TakeProfitSell = 200
 

 

and an older format that still gets generated from the optimisation result on some instances of ctrader (not sure why some are generating new formats while other instances of ctrader still generating the older formats)

 

{
 "Chart": {
   "Symbol": "GBPCHF",
   "Period": "h1"
 },
 "Parameters": {
   "c02b25309272471b89a4de3831c473c5": "h1",
   "UniqueName": "GBPCHF-buy-not-02",
   "DisableWarning": "False",
   "BuyLotSize": "0.01",
   "SellLotSize": "0.01",
   "IncludeBuySignal": "True",
   "IncludeSellSignal": "False",
   "StopLossBuy": "200",
   "StopLossSell": "54",
   "TakeProfitBuy": "20",
 

 

Again on some instances both the formats are usable while on some instances of ctrader the older format is not being accepted and I have to manually convert it to the newer format.

 

Can someone from spotware please shed some light on this phenomenon.

 

Thanks in advance.


@driftingprogrammer
Replies

Spotware
26 Oct 2023, 08:27

Dear driftingprogrammer,

JSON format is the new format of saving parameters and should be supported in all versions since v4.5. Old format should also be supported in the latest version. If you experience issues with latest versions, please provide us with exact steps on how to reproduce the issue.

Best regards,

cTrader Team


@Spotware