Comparing volume over the same prior periods

Questions about MultiCharts and user contributed studies.
paulc
Posts: 59
Joined: 26 Sep 2012
Has thanked: 13 times
Been thanked: 2 times

Comparing volume over the same prior periods

Postby paulc » 13 May 2023

Anyone care to present this code using a neat array? It plots the average (for the last 15 minutes) of today's minute period volume as compared to the prior 5 day average.

It is intended to reveal how current day volume compares to the last 5 days to reveal what type of trading day it is...fast/slow, etc.

Code: Select all

inputs:average.minutes(15); vars:prior.volume(0),volume.compare(0); prior.volume= (v[390]+v[390*2]+v[390*3]+v[390*4]+v[390*5])/5; volume.compare=v /prior.volume*100; plot1 (average(volume.compare,average.minutes)); plot2 (100);

Screenshot 2023-05-13 122258.png
(41.82 KiB) Not downloaded yet

Return to “MultiCharts”