indicator1 = ExponentialAverage[26](close)
indicator2 = ExponentialAverage[37](close)[1]
c1 = (indicator1 > indicator2)
indicator3 = ExponentialAverage[37](close)[1]
indicator4 = ExponentialAverage[55](close)[1]
c2 = (indicator3 > indicator4)
indicator5 = ExponentialAverage[26](close)
indicator6 = ExponentialAverage[55](close)[1]
c3 = (indicator5 > indicator6)
indicator7 = ExponentialAverage[21](close)
c4 = (close < indicator7)
indicator8 = ExponentialAverage[21](close)
indicator9 = ExponentialAverage[34](close)[1]
c5 = (indicator8 < indicator9)
indicator10 = ExponentialAverage[34](close)[1]
indicator11 = ExponentialAverage[55](close)[1]
c6 = (indicator10 < indicator11)
indicator12 = ExponentialAverage[21](close)
indicator13 = ExponentialAverage[55](close)[1]
c7 = (indicator12 < indicator13)
indicator14 = ExponentialAverage[21](close)
c8 = (close > indicator14)
long=0
short=0
IF c1 AND c2 AND c3 AND c4 THEN
short=1
endif
if c5 AND c6 AND c7 AND c8 then
long=1
endif
sig=0
if long>0 then
sig=long
endif
if short>0 then
sig=-short
endif
// code proscreener d'exemple
SCREENER[long or short ](sig as "SIGNAL")