@banya,
You can display a moving average of any set of data points you choose. If you build yourself a time series in this way:
Code:
def series = if SecondsFromTime(0930) >= 0 then CLOSE else Double.NaN;
you effectively tell ToS that if the data point is before the opening bell (or whatever time you choose) then please ignore it and put a NaN (Not A Number or NULL) into my series.
Next you then take a moving average based on that series thusly:
Code:
plot MovAvg = MovingAverage(AverageType.SIMPLE, series, 12);
you will have a simple moving average over 12 bars that starts, quite literally, from nothing at 9:30 AM.
N.B. This will not plot anything for the first 12 bars of the day. I'm not sure that's an intended consequence of your request, but moving averages can't start until they have a full
length of data points to work with. I'm sure there are forumlae out there that can construct a pseudo-moving average over the interim bars, but this snippet does not.
Nihil ante tempus q.e.d.
;-)
-mashume