Breaker Block ICT-SMC

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239367 quote
    Alai-n
    Participant
    Veteran

    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.

    #239372 quote
    Iván González
    Moderator
    Master
    #241303 quote
    Alai-n
    Participant
    Veteran

    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.

    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
    Capture-decran-2024-12-10-115412.png Capture-decran-2024-12-10-115412.png Capture-decran-2024-12-10-115443.png Capture-decran-2024-12-10-115443.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Breaker Block ICT-SMC


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Alai-n @alai-n Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Alai-n
1 year, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/23/2024
Status: Active
Attachments: 2 files
Logo Logo
Loading...