RobbParticipant
Average
Hello,
is it possible to have 2 CALL functions in the same Screener?
Like:
myValue1 = CALL “myIndicator1”
myValue2 = CALL “myIndicator2”
cond = myValue1+myValue2=2
Screener [cond]
Thanks
Yes, you can have two or more CALL instructions.
You can easily check whether the results are valid.
Yes it’s possible. Here’s an example:
ind1 = call "Myindicator(2)"
ind2 = call "Myindicator(3)"
setup = high>ind1[1] and ind2>60
SCREENER[setup](ind2 as "rsi", ind1 as "lmax")
lmax = highest[100](high)
return lmax as "max"
myrsi = rsi[14](close)
return myrsi as "RSI"