Day Session only Multiple Session Plot

Is there a way to plot multiple day sessions such each session is isolated from the other. Trying to get functions to reset completely at start of each session. ie moving averages would not use data from another session.
Thanks for any help.

@jadams something similar was previously discussed here.
In particular, study the posts that explain that for simple moving averages it is useless to restart the calculation for each session (the plotted line will be always the same, only starting some bars later).


Thank you for the reference.
Exactly what I needed.