Breaker Block ICT-SMC
- This topic has 2 replies, 2 voices, and was last updated 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
Forums › ProRealTime forum Français › Support ProBuilder › Breaker Block ICT-SMC
Bonjour, je suis en recherche d’un indicateur qui permettrait de déclencher une “Alerte(+1/-1)” à la création d’un Breaker Block selon la méthode ICT-SMC!
Y’aurait-il en premier lieu quelqu’un qui voudrait bien partager son code de “Breaker Block”?! 😉
Dans l’attente de vous lire.
Bonjour, Vous pouvez consulter ces indicateurs : https://www.prorealcode.com/prorealtime-indicators/demand-supply-zones-indicator/ https://www.prorealcode.com/prorealtime-indicators/order-blocks – indicateur de volume/ https://www.prorealcode.com/prorealtime-indicators/smart-money-concepts-smc-indicator/
J’ai un soucis de finalisation avec le code joint. Ce code est issu de ChatGPT, après lui avoir partagé toutes les rubriques de la documentation de Probuilder présentent sur ce site, je lui ai demandé de créer un algorithme de “Breaker Block”.
Cependant, après plusieurs modifications des erreurs persistent! Je n’ai aucune idée du rendu final, vu que je n’arrive pas à régler les erreurs…
Ci-joint le code + Image des erreurs dans le code.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
DEFPARAM DrawOnLastBarOnly = TRUE DEBUG = 0 // Début du code IF ISLASTBARUPDATE THEN ONCE inputLength = 5 // Longueur pour analyser les structures de marché ONCE highestHigh = 0 ONCE lowestLow = 0 ONCE breakerZoneHigh = 0 ONCE breakerZoneLow = 0 // Définition des Swing High et Low swingHigh = HIGH[3] < HIGH[2] AND HIGH[2] > HIGH[1] swingLow = LOW[3] > LOW[2] AND LOW[2] < LOW[1] // Détection des Breaker Blocks FOR i = inputLength TO 1 STEP -1 DO ONCE highestHigh = 0 ONCE lowestLow = 0 ONCE breakerZoneHigh = 0 ONCE breakerZoneLow = 0 // Breaker Block à la baisse IF HIGH[i+3] < HIGH[i+2] AND HIGH[i+2] > HIGH[i+1] THEN highestHigh = HIGH[i] lowestLow = LOW[i] // Zone du Breaker Block breakerZoneHigh = highestHigh breakerZoneLow = LOWEST(LOW[i], inputLength) // Dessin du rectangle DRAWRECTANGLE(i, breakerZoneHigh, i + inputLength, breakerZoneLow) COLOURED("Red") ENDIF // Breaker Block à la hausse IF LOW[i+3] > LOW[i+2] AND LOW[i+2] < LOW[i+1] THEN lowestLow = LOW[i] highestHigh = HIGH[i] // Zone du Breaker Block breakerZoneLow = lowestLow breakerZoneHigh = HIGHEST(HIGH[i], inputLength) // Dessin du rectangle DRAWRECTANGLE(i, breakerZoneHigh, i + inputLength, breakerZoneLow) COLOURED("Green") ENDIF NEXT ENDIF RETURN |