This is your screener:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bollingerLengths= 50
liqLength= 50
rocCalcLength= 30
avg = average [ bollingerLengths]
upBand = avg+ std [ bollingerlengths] * 1.25
dnBand = avg–std [ bollingerlengths] * 1.25
//atr = AverageTrueRange[14](close)
rocCalc = Close – Close [ rocCalcLength–1 ] // {remember to subtract 1}
if (lastsignal<= 0 and rocCalc > 0 ) and close < upBand then
//drawarrowup(barindex,low–atr) coloured(0,255,0)
lastsignal= 1
endif
if (lastsignal>= 0 and rocCalc < 0 ) and close > dnBand then
//drawarrowdown(barindex,high+atr) coloured(255,0,0)
lastsignal= –1
endif
if lastsignal= 0 then
liqDays= liqLength
else
liqDays= liqDays – 1
liqDays= Max (liqDays,10 )
endif
screener [ lastsignal]
You can change what the screener should search for.
1 user thanked author for this post.