!!! Parameter String - More input value !!!

Created at 08 Apr 2014, 16:52
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!
Forex19's avatar

Forex19

Joined 13.06.2013

!!! Parameter String - More input value !!!
08 Apr 2014, 16:52


Hello to all, 
I would need to create a string parameter that can set three input values​​: Auto, Buy and Sell. 

Can you do? 

Thnaks


@Forex19
Replies

Spotware
08 Apr 2014, 17:02

It is not possible at the moment. You can vote for this feature there: http://vote.spotware.com/forums/229166-ideas-and-suggestions-for-ctrader-and-calgo/suggestions/5502949-custom-parameters


@Spotware

rkokerti
08 Apr 2014, 17:46

Hi Forex19!

I have a workaround, maybe it helps you...

    [Parameter(DefaultValue = " ")]
    public string BSA { get; set; }
        if(BSA == "B")
        {
            // put BUY logic here
        }
        
        if(BSA == "S")
        {
            // put SELL logic here
        }
        
        if(BSA == "A")
        {
            // put AUTO logic here
        }

Ok, it is not a drill down field, but you just write the corresponding value into the parameter field and it is works.

 


@rkokerti