All
Im new to this and still finding my feet so apologies if Im asking a stupid question or presenting the question in the wrong way.
The key thing that Im trying to achieve is to screen to see if 1 of 3 criteria has been met over the past 2 days.
I cant seem to make it work. Any tips/advice would be greatly appreciated?
Many thanks
vol=Volume
Mline=MACDline[12,26,9](close)
Msignal=MACD[12,26,9](close)
ParSar=SAR[0.02,0.02,0.2]
StochD=Stochasticd[14,3,5](close)
StochK=Stochastic[14,3](close)
Timeframe(Daily)
C1=ParSar crosses under CLOSE
C2=Mline crosses over Msignal
C3=StochK crosses over StochD
Result=c1[0] OR c1[1] OR c1[2] OR c2[0] OR c2[1] OR c2[2] OR c3[0] OR c2[3] OR c2[3]
screener[Result] SORT BY(vol)
l)
I assume you are using a Daily TF.
Replace line 11 with:
Result=(summation[2](c1[0] OR c1[1] OR c1[2] OR c2[0] OR c2[1] OR c2[2] OR c3[0] OR c2[3] OR c2[3])=2)
you may change the two 2’s to any number you may need. Replace it with 1’s to restrict validity to 1 bar (default PRT setting).