Hello all, this is my first post on the forum. Hopefully its in the right place!
I've run into confusion on several occasions as I learn to build scanners that have custom study filters. In my scanner I've got this thinkscript:
All I'm hoping for here is to remove all results with where the currenRVOL is not greater than 4. To try and prove this out I've made a watchlist column using the same calculation.
However, when I pull up the results of my scanner in a watchlist with this column I see many results below 4. I can't figure out how to get it to drop those results.
Some things of note:
1. I know RVOL has some complications when calculating pre-market and I'm okay figuring that out on my own (unless some wizard knows off hand how I can account for both pre-market and intraday)
2. I've used the AggregationPeriod.DAY intentionally just to ensure there wasn't a difference in the timeframe between the scanner study and watchlist column. (I believe I can use the button in the filter set to day and get the same result).
Any help would be greatly appreciated thanks all!
I've run into confusion on several occasions as I learn to build scanners that have custom study filters. In my scanner I've got this thinkscript:
Code:
def currentRVOL = volume(period = AggregationPeriod.DAY) / Average(volume(period = AggregationPeriod.DAY), 30);
def previousRVOL = volume(period = AggregationPeriod.DAY)[1] / Average(volume(period = AggregationPeriod.DAY)[1], 30);
plot filter = currentRVOL >= 4 * previousRVOL;
All I'm hoping for here is to remove all results with where the currenRVOL is not greater than 4. To try and prove this out I've made a watchlist column using the same calculation.
Code:
def currentRVOL = volume(period = AggregationPeriod.DAY) / Average(volume(period = AggregationPeriod.DAY), 30);
def previousRVOL = volume(period = AggregationPeriod.DAY)[1] / Average(volume(period = AggregationPeriod.DAY)[1], 30);
def filter = currentRVOL >= 4 * previousRVOL;
AddLabel(yes, Round(currentRVOL, 2),
if filter then Color.GREEN else Color.RED);
However, when I pull up the results of my scanner in a watchlist with this column I see many results below 4. I can't figure out how to get it to drop those results.
Some things of note:
1. I know RVOL has some complications when calculating pre-market and I'm okay figuring that out on my own (unless some wizard knows off hand how I can account for both pre-market and intraday)
2. I've used the AggregationPeriod.DAY intentionally just to ensure there wasn't a difference in the timeframe between the scanner study and watchlist column. (I believe I can use the button in the filter set to day and get the same result).
Any help would be greatly appreciated thanks all!