I am trying to calculate the daily MA from hourly bars.
I've read this:
http://www.amibroker.com/guide/h_timeframe.html
And I am doing this:
TimeFrameSet( inDaily ); // switch to daily time frame
SlowMA = MA(Close, SlowMA_lookback);
TimeFrameRestore(); // restore time frame to original
Plot( TimeFrameExpand( SlowMA, inDaily), "SlowMA Daily in hourly bars", colorYellow, SlowStyle );
But I want the line to stay still for the duration of the upcoming day, with the previous day's values. Sort of like a stair-step from one day to the next. Not continue to move intraday, where it is a smooth MA line. How do I make it hold the previous day's daily MA, for the duration of the current day, only changing that daily MA value once per day?