Create a drop down parameter of Clock Times

Created at 26 Jan 2023, 16:05
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!
JA

jaydcrowe1989

Joined 11.08.2022

Create a drop down parameter of Clock Times
26 Jan 2023, 16:05


Hi,

Is there a way I could create a parameter which contained Hourly Clock Times? So that I could optimise my bot and let it determine what hour of the day is best to start trading? 

So the drop down would contain; 00:00, 01:00, 02:00 etc. 

Cheers,

Jay


@jaydcrowe1989
Replies

jaydcrowe1989
27 Jan 2023, 09:18

RE:

Yes this is what I have done but it just feels a bit of a dirty solution. It works so I guess I will stick with it. 

 

Are there going to be better parameter options and types in the future?

 

 

PanagiotisChar said:

Hi Jay,

You can use an enum.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@jaydcrowe1989