hi
I am trying to code a intraday indicator for 1 min data , which plots
1) Total cumulative volume of the day.
2) Moving average of the same cumulative volume of last N days.
The first part plots correctly by the following :
Bar_today = 1 + BarsSince( Day() != Ref(Day(), -1));
TodayVolume = Sum(V,Bar_today);
Plot (TodayVolume ,"totalVol",colorRed, styleThick);
But the second part is proving to be tricky.
Basically how to plot n day average total volume traded till a particular point of time.
Any clues.
regards
I am trying to code a intraday indicator for 1 min data , which plots
1) Total cumulative volume of the day.
2) Moving average of the same cumulative volume of last N days.
The first part plots correctly by the following :
Bar_today = 1 + BarsSince( Day() != Ref(Day(), -1));
TodayVolume = Sum(V,Bar_today);
Plot (TodayVolume ,"totalVol",colorRed, styleThick);
But the second part is proving to be tricky.
Basically how to plot n day average total volume traded till a particular point of time.
Any clues.
regards