Looking for Relative Volume for a watchlist column

H

hurricane5

New member
VIP
I want to be able to see volume for different timeframes/lookback periods on my watchlist (i.e. a column for daily volume looking back 20 periods and another for 15 minute volume looking back 15 periods). Would also like to have it color coded so above X percentage would show as a different color for easy identification. Anyone seen anything close to this?

Thanks!
 
markos

markos

Well-known member
VIP
Code:
#Give this a try: You can set the volume percent and the average days to use.

#From StanL TreePad database ~2014

# RCG3:  Unusual volume

input price = volume;

input choice = {default increased, decreased};

input percent = 20;

input length = 50;

def avg = average(price, length)[1];

def chg = 100*(price/avg -1);

plot scan;



switch (choice) {

case increased:

    scan = chg >= percent;

case decreased:

    scan = chg <= -percent;

}

#end
 
Last edited by a moderator:

Top