State == State.SetDefaults
Strength = 2
State ==DataLoaded
Swing1 = Swing(Close, Convert.ToInt32(Strength));
OnBarUpdate
if ( something exceptional occurs)
{
Strength = 1
calculate stuff at Strength = 1
}
But Swing1 just understands Strength = 2.
think i could initialize a Swing2 = Swing(Close, Convert.ToInt32(Strength - 1))
but then i would have to repeat 90 lines of code just to do that.
Can anyone think of a slick way to adjust Strength? Thanks!
Comment