Hello, sorry everyone for my poor english.
I “need a hand” to finish a screener…
indicator1 = CCI[72]
indicator2 = Average[5](CCI[72])
indicator3 = BollingerDown[21](close)
indicator4 = BollingerUp[21](close)
c1 = (indicator1 CROSSES OVER indicator2)
c2 = (low[3] > indicator3[3])
c3 = (low[2] <= indicator3[2])
c4 = (low[1] <= indicator3[1])
c5 = (indicator1 CROSSES UNDER indicator2)
c6 = (high[3] < indicator4[3])
c7 = (high[2] >= indicator4[2])
c8 = (high[1] >= indicator4[1])
criteria = CCI[72]
SCREENER[c1 AND c2 AND c3 AND c4] OR [c5 AND c6 AND c7 AND c8]
it seems very simply but gives and error on last “OR”….
Any help is welcome…
Thank you very much
Conditions of screener must included into only one pair of square brackets, that’s where your syntax error is. Your last line should be coded like this:
SCREENER [ (c1 AND c2 AND c3 AND c4) OR (c5 AND c6 AND c7 AND c8) ]
Note that your 2 conditions are now separated with parenthesis inside the square brackets.
Thank you very much Nicolas
i am glad for learning with this fantastic forum