Can I, and more importantly, should I be using IF statements under OnStartUp()?
I'm thinking of something along the lines of this:
private bool useSMA; protected override void Initialize() { Add(PeriodType.Day, 1); } protected override void OnStartUp() { if (useSMA) { sma3 = SMA(Closes[1],3); } }
-Nick
Comment