looking through these unusual volume codes, the one thing I havent been able to find, is a code that shows the average volume percent at the time of day we are looking at, in other words, it takes till end of day or close to end of day to get a volume avg total, I have a code that runs on the hourly and gives its percentage for the particular candle we are trading on and resets at the start of each candle.
Is there a way to have a continues count throughout the day that only resets each morning?
Is there a way to have a continues count throughout the day that only resets each morning?
Code:
input length = 325;
input unusualvolumepercent = 200;
input showpercentof325houravg = yes;
def Hour = volume;
plot percentof325hour = round(Hour/ average(Hour,length)*100);
percentof325hour.assignvalueColor( (if percentOf325hour >= UnusualVolumePercent then Color.orange else if percentOf325hour >= 100 then Color.green else Color.light_gray) );