Tradestation 9.1 _top_ -
// Running sum of squared deviations (for band calculation) SumSqDev = SumSqDev + Volume * Power(TypicalPrice - VWAPVal, 2);
: This version popularized the ability to place, click-and-drag, and manage orders directly on the chart in real-time. tradestation 9.1
variables: CumulativePV(0), CumulativeVol(0), VWAPVal(0), SumSqDev(0), StdDevVal(0), UpperBand(0), LowerBand(0), IsNewSession(false), ThisBarTime(0), SessionStart(0), SessionEnd(0); // Running sum of squared deviations (for band