Parameter multiselect

Created at 16 Aug 2022, 17:13
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!
BE

benjaminwolf123454321

Joined 12.08.2022

Parameter multiselect
16 Aug 2022, 17:13


Hello, 

 

is there a way to add a multiselect parameter?

 

We can have an Enum like  

 

        [Parameter("Source")]
        public DataSeries Source { get; set; }

 

But can we have a [Flag] enum to give me the option to select multiple options at once in the parameters list?

 


@benjaminwolf123454321
Replies

firemyst
18 Aug 2022, 04:23

RE:

benjaminwolf123454321 said:

Hello, 

 

is there a way to add a multiselect parameter?

 

We can have an Enum like  

 

        [Parameter("Source")]
        public DataSeries Source { get; set; }

 

But can we have a [Flag] enum to give me the option to select multiple options at once in the parameters list?

 

Not as far as I'm aware in the fashion you're speaking. You could always try to "hack" your way around it. For instance, have all your options as several "boolean" parameters where users select "Yes/No" to each one, and then implement the appropriate logic in your bot to run with all their selections.

Otherwise, this would be considered more of a suggestion, so should be posted in the area for their dev team to consider.


@firemyst