How to print which choice (of "Open"/"High"/"Low"/"Close") was set in a parameter of type DataSeries

Created at 17 Sep 2024, 12:23
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!
MA

martins

Joined 22.10.2019

How to print which choice (of "Open"/"High"/"Low"/"Close") was set in a parameter of type DataSeries
17 Sep 2024, 12:23


For most of the 8 cBot parameter types it is obvious how to print the value that was input - for int, double, bool, enum, string etc - but seemingly not for a parameter of type DataSeries, such as 

        [Parameter("Data Source", Group = "Moving Averages")]
       public DataSeries Price { get; set; }
 
I have not been able to print the choice that was input (not the series of values, but the ‘name’ that was input, the “High” or “Close” etc). How is it done?


@martins
Replies

PanagiotisCharalampous
18 Sep 2024, 05:19

Hi there,

There is no way to do this at the moment.

Best regards,

Panagiotis


@PanagiotisCharalampous