I have 10 variables the user sets up in the strategy definitions. TradeSize1, TradeSize2, etc..
I want to be able to loop through the variables.
something like bellow
for ( int i = 1; i<10 ; i++)
{
.....
tradesize = ("TradeSize" + i.ToString());
....
}
I searched in the forums and apparently is seems it can not be done. PLS confirm ?
so I though I will create a LIST and populate it with the values during the
State == State.Configure stage.
whats the best programing practice for such a case ? It looks like I need to loop through the same variables, or just have 10 separate lines of :
TradeSizeList[1] = TradeSize1;
....
Comment