Hi all,
I am trying to set up a screener to pick up stocks whereby the most recent session has low volume. It could be either:
(a) Lowest volume in the last 10 days. I’ve tried the below, but the results do not actually have the lowest volume in the last 10 days
//RECENT BAR IS LOWEST VOLUME OF THE LAST 10 DAYS
LowVol = Volume[0]=Lowest[10](volume)
c8 = LowVol
(b) 50% below the 40 days volume moving average. I’ve tried the below, and the results are the same as the above.
//RECENT BAR IS 50% OR LESS THAN THE 40 PERIOD AVG VOLUME
LowVol = Volume[0]<=Average[40](Volume)*0.5
c8 = LowVol
Any idea what I’m doing wrong? Would really appreciate pointers.
Thanks!
Haven’t tried the code, but their logic seem good..
Do you have a free End Of Day account?
Hi Nicolas,
Thanks for the reply.
I have PRT via IG.com, so it should work. I’ve got a few other screeners set up and they seem to work as intended, just seem to be having a bit of trouble with this one. I’ll just post the full code for reference, maybe you can find an error in there somewhere?
I am basically trying to add 2 more variables to the Mark Minervini trend template you created back in 2017 (here)
- A minimum amount of liquidity
- Most recent close is the lowest volume within the last 10 days
I’ve tried screening on NASDAQ and NYSE but am picking up stocks that don’t meet this criteria at all.
//PRC_Trend Template | screener
//13.04.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
ma50=average[50]
ma150=average[150]
ma200=average[200]
c1 = Close > average[50]
c2 = ma50>ma150
c3 = ma150>ma200
c4 = summation[20](ma200>ma200[1])=20
c5 = Close/lowest[250](low)>1.3
c6 = Close/highest[250](high)>0.75
//MINIMUM LIQUIDITY
MinDailyCapital= 5000000
c7 = Average[5](Volume)*DClose(0) > MinDailyCapital
//RECENT BAR IS LOWEST VOLUME OF THE LAST 10 DAYS
LowVol = Volume[0]=Lowest[10](volume)
c8 = LowVol
SCREENER [c1 and c2 and c3 and c4 and c5 and c6 and c7 and c8]
I created an indicator with this code:
return volume, Lowest[10](volume)
applied it on the chart and all results given by the stocks screener are in line with the indicator.
Hi Nicolas,
Ok, tested this on Australian and UK shares, and it seems to work fine. But somehow, not working with US shares. I’ve tried to remove all other variables and just use the following code, but still no luck.
TIMEFRAME(daily)
//RECENT BAR IS LOWEST VOLUME OF THE LAST 10 DAYS
LowestRecent = Volume=Lowest[10](volume)
c4 = LowestRecent
SCREENER [c4]
As a test, I tried replacing the 10 days with 50, and also 100, and each screen came back with over 2,000 matches (on NASDAQ). Surely the screen isn’t working as intended.
Is there perhaps another way to express this?
Did you add the indicator on the chart as I suggested? In order to me to understand what would cause this issue?