zone = 20 // Taille de la zone de recherche en % de l'écart des BB (au dessus et en dessous)
BBB = BollingerDown[20](close)
BBH = BollingerUp[20](close)
MM50 = Average[50](close)
BBB1 = BollingerDown[20](close[1])
BBH1 = BollingerUp[20](close[1])
MM501 = Average[50](close[1])
BBRange = (BBH-BBB) * zone / 100
RangeHUP = BBH + BBRange
RangeHDN = BBH - BBRange
RangeBUP = BBB + BBRange
RangeBDN = BBB - BBRange
BBRange1 = (BBH1-BBB1) * zone / 100
RangeHUP1 = BBH1 + BBRange1
RangeHDN1 = BBH1 - BBRange1
RangeBUP1 = BBB1 + BBRange1
RangeBDN1 = BBB1 - BBRange1
c1 = (MM50 > RangeHDN AND MM50 < RangeHUP)
c11 = (MM501 > RangeHDN1 AND MM501 < RangeHUP1)
c2 = ((Close OR Open OR High) > RangeHDN AND (Close OR Open OR High) < RangeHUP)
c21 = ((Close[1] OR Open[1] OR High[1]) > RangeHDN1 AND (Close[1] OR Open[1] OR High[1]) < RangeHUP1)
c3 = (MM50 > RangeBDN AND MM50 < RangeBUP)
c31 = (MM501 > RangeBDN1 AND MM501 < RangeBUP1)
c4 = ((Close OR Open OR Low) > RangeBDN1 AND (Close OR Open OR Low) < RangeBUP)
c41 = ((Close[1] OR Open[1] OR Low[1]) > RangeBDN1 AND (Close[1] OR Open[1] OR Low[1]) < RangeBUP1)
c5 = 1 // Si Signal = 1 => Probable Combo ACHAT
c6 = -1 // Si Signal = -1 => Probable Combo VENTE
IF ((c1 OR c11) AND (c2 OR C21)) THEN
SCREENER[(c1 OR c11) AND (c2 OR C21)](c6 AS "Signal")
ELSIF ((c3 OR c31) AND (c4 OR C41)) THEN
SCREENER[(c3 OR c31) AND (c4 OR C41)](c5 AS "Signal")
ENDIF