Hello Pete,
In trying to refine my scans ( It has been less with your help.), I still have not mastered a scan to filter by the day’s dollar volume. What I mean is a million shares at 1 cents, trades much different than 1 million shares traded at $50.00. The dollar volume is much different. So this is the code I’ve been kicking around. Please let me know your thoughts. Thank you!
# sdi_advmLabel
input length=20;
#hint: Displays the average dollar volume exchanging hands on the underlying in units of millions of dollars.
plot labelColor=double.NaN;
labelColor.hideTitle();
labelColor.setDefaultColor(color.BLUE);
addlabel(1, concat(“ADVM=”,
round(SimpleMovingAvg(price = VOLUME, length = length)*SimpleMovingAvg(length = length)/1000000,1)),
labelColor.takeValueColor
Like this:
Like Loading...
This code does not produce a scan. This is not a stock scanner. Are you trying to do a custom watchlist column?
Aside from multiplying total volume times share value, what are you trying to achieve here? Honestly from the math used in your AddLabel() statement I am not sure what you are trying to compute. So what is wrong with using volume times close? And I guess you want the average value, rather than current values?
I’ll get you some solutions once you clarify things a bit more.