Hi All,
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.
Thanks.
Hi, there is no specific instruction that updates the screener automatically at certain intervals.
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:
Nbars = 1
Cond = 0
Tally = Tally + 1
IF Tally = Nbars THEN
Cond1 = (high[2] > high[3]) AND (high[3] > high[4])
Cond2 = (high[2] > high[1]) AND (high[1] > high)
Cond = Cond1 AND Cond2 AND (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.