mattastic1
New member
Hi fellas - For my trading plan, I tend to look at the Average volume for 60days and compare that number with today's volume every morning (During Pre-Market hours) to come up with a list of stocks of interest to trade.
I figured maybe now is a good time to create a volume percentage column on the watchlist to quickly see what's moving in my list of stocks.
to recap idea is:
Here is what I have so far
something is off...it's not displaying the data I'm looking for... any tweaks above? Thanks again!
I figured maybe now is a good time to create a volume percentage column on the watchlist to quickly see what's moving in my list of stocks.
to recap idea is:
- see a percentage of today's volume in comparison to the last 60days
- if today's premarket volume is greater than 10% I'm interested and would like to see that as a Green percentage value!! (see red color)
- place the "%" sign at the end as well for each value
Here is what I have so far
Code:
def avgVol = Average(volume, 60);
AddLabel(yes, Round(avgVol, 0));
def today = volume(period = "DAY");
plot VolumePercentage = Round((today / avgVol) * 100, 0);
VolumePercentage.assignvalueColor(if VolumePercentage >10 then color.green else color.red);
something is off...it's not displaying the data I'm looking for... any tweaks above? Thanks again!