Intraday Average Volume

Category: Indicators By: gabri Created: October 13, 2019, 2:46 PM
October 13, 2019, 2:46 PM
Indicators
3 Comments

Frustrated by dealing with intraday volumes, and the impossibility to have a reliable moving average, I coded this MA based on the volumes recorded at the same time of previous trading days. The code returns the average of the same time for the previous “d” days (in black) and a 1 sigma deviation up and down (in blue).

Blue skies!!

somma=0
//computation of average
delta=round(highest[144](intradaybarindex)+1)
for i=1 to p
 somma=somma+volume[i*delta]
next
fin=somma/p
//computation of standard deviation
sc=0
for i=1 to p
 sc=sc+sqr(volume[i*delta]-fin)
next
scar=sqrt(sc/p)

return fin,fin+scar coloured (0,150,255), max(0,fin-scar) coloured (0,150,255)

Download
Filename: PRT-Average-Intraday-Volumes.itf
Downloads: 140
gabri Master
Developer by day, aspiring writer by night. Still compiling my bio... Error 404: presentation not found.
Author’s Profile

Comments

Logo Logo
Loading...