Support Board
Date/Time: Thu, 30 Oct 2025 01:37:08 +0000
Post From: not working: skip BarIndex based on study input
| [2023-04-20 21:18:17] |
| jomo88 - Posts: 47 |
|
why cant i specifiy the amount of bar indexes to skip based on an input? first code section works, second example does not with input_VARIABLE for (int BarIndex = sc.UpdateStartIndex; BarIndex < sc.ArraySize; BarIndex++) { if (BarIndex <= 100) { turn everything off (wait for moving averages to stabilize) } else { now let algo run } } ..... HOWEVER .... ..... the following code does not work... ............... for (int BarIndex = sc.UpdateStartIndex; BarIndex < sc.ArraySize; BarIndex++) { if (BarIndex <= input_VARIABLE) { turn everything off (wait for moving averages to stabilize) } else { now let algo run } } |
