Another parameter question

Created at 01 Feb 2016, 13:06
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!
MaVe's avatar

MaVe

Joined 24.08.2015

Another parameter question
01 Feb 2016, 13:06


How do you variate the parameter below, when:

On Monday: 1 Box

On Tuesday: 2 Boxes (Monday + Tuesday)

On Wednesday: 3 Boxes (Monday + Tuesday + Wednesday)

 

[Parameter("Boxes", DefaultValue = 3, MaxValue = 3, MinValue = 1)]
        public int Boxes { get; set; }

 


@MaVe
Replies

whis.gg
01 Feb 2016, 13:08

RE:
if (Boxes >= 1)
   DrawDay1();

if (Boxes >= 2)
   DrawDay2();

if (Boxes == 3)
   DrawDay3();

 


@whis.gg