"moving average" since beginning of the session
Time session to be defined as a variable.
"moving average"= sum of the n bar close ('or else' ) since the beginning of the session devided by n
example
third bar: 1st bar plus second bar plus third bar divided by 3.
Interesting to keep as a line the close of last session.