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!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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) |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Thanks!
Hello, thanks for sharing! Getting a message that Variable P is undefined?
Intraday Average Volume Indicator Not working, what can i do plz