I have searched the forum but can’t find anything recently on this, so my apologies if I am repeating.
Can anyone help me in setting up a screener to automatically refresh? I have a screener which I currently have to execute manually. I’d like to have it refresh after a set time period, ie 1S, 5M, 4H.
I tried to code this screener that updates every Nbars (set to 1 by default). Sometimes it seems to be working, but I am not 100% sure it behaves as you would like:
1
2
3
4
5
6
7
8
9
10
Nbars=1
Cond=0
Tally=Tally+1
IFTally=NbarsTHEN
Cond1=(high[2]>high[3])AND(high[3]>high[4])
Cond2=(high[2]>high[1])AND(high[1]>high)
Cond=Cond1ANDCond2AND(summation[5](high<>low)=5)
Tally=0
ENDIF
SCREENER[Cond]
it scans the last 5 bars, so that the middle bar is the highest one and the others are in ascending order both on the left and the right side. It also checks that the last 5 bars have some price movements.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok