A). How do you screen for a gap above a moving average? Specifically the 200 sma.
B). How do you combine this with big volume?
Big volume increase stock screener
If you can’t do A and B. A is okay.
Please find below the modified version of the “big volume increase” screener with a gap filter with Close superior to the 200 periods moving average.
//PRC_BigVolumeIncrease with gap above 200SMA | screener
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
v = volume
sma = average[200]
count = 0
for i = 1 to 75 do
if v>volume[i] then
count=count+1
endif
next
condition = count/75>0.9 and close>sma and open-close[1]>0
screener [condition] (count/75 as "percentage")
How do you change the code so that the gap is below all moving averages or above. Like in the image attached.