Indicator for closed periods

 

Hi people!

Is it possible to build an moving average indicator that "zeroes" it's calculations on period change? For instance, let's say we are looking live today, but the moving average does not take into account previous day data? Is there already any indicator that does that?

How is it possible?

Many thanks!