30 Day Average Volume

D

decoder

New member
Hi everybody, is there a study that shows the average volume over 30 days excluding todays bar? thanks!
 
inthefutures

inthefutures

Active member
plot avervol - average(volume[1],30);

this should work create a new study and drag it in with your volume and it will run in the volume histo
 
korygill

korygill

Active member
VIP
Works for me.

 
D

decoder

New member
I don't want to include the last candle in the calculation -- plot avervol = average(volume[1],2); --
the last two candles with out todays candle is only about 1.5 mil average this is showing about 17mil.


 
korygill

korygill

Active member
VIP
It appears you are looking 1 value past your last bar.

Try this:
Code:
plot avervol = average(volume[1],2);
avervol.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);

 
korygill

korygill

Active member
VIP
Also try this:

Code:
plot avervol = if !IsNaN(close) then average(volume[1],2) else double.nan;
avervol.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);
 
D

decoder

New member
Also try this:

Code:
plot avervol = if !IsNaN(close) then average(volume[1],2) else double.nan;
avervol.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);




That's about right thank you're the best!!!
 

Similar threads

Top