Dessiner Gann éventail

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #143059 quote
    Joris
    Participant
    Junior

    Bonjour à tous,

    Je cherche à ajouter à l’un de mes indicateurs techniques un tracé.

    Je voudrais qu’il me trace sur mon graphique un éventail Gan à 45°. Seul problème je ne vois nulle part la possibilité de le faire…

     

    Merci pour votre aide et au plaisir de vous lire

    #143061 quote
    Nicolas
    Keymaster
    Master

    Si je comprends ta demande, tu cherches à tracer un éventail 45° de Gann depuis la dernière valeur de ton indicateur par le code ?

    #143063 quote
    Joris
    Participant
    Junior

    C’est tout à fait exact

    #143088 quote
    Nicolas
    Keymaster
    Master

    Example sur un RSI 14 périodes.

    Version PRT 10.3:

    defparam drawonlastbaronly=true
    
    //X = starting price
    X = rsi[14]
    
    //a = angle 
    a = 45
    
    //Y = next price
    Y = square(sqrt(X)+a/180)
    
    //plot the next price
    drawline(barindex,X,barindex+1,Y)
    
    return X as "price/indi value"
    

    version PRT v11:

    defparam drawonlastbaronly=true
    
    //X = starting price
    X = rsi[14]
    
    //a = angle 
    a = 45
    
    //Y = next price
    Y = square(sqrt(X)+a/180)
    
    //plot the next price
    drawsegment(barindex,X,barindex+10,Y) coloured(255,200,0) style(line,3)
    drawpoint(barindex,X,3) coloured(255,0,0)
    drawpoint(barindex+10,Y,3) coloured(255,0,0)
    
    return X as "price/indi value"
    
    gann-45-degree.png gann-45-degree.png
    #143093 quote
    Joris
    Participant
    Junior

    Super merci beaucoup

    Je vais essayer d’exploiter ça

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Dessiner Gann éventail


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Joris @616248 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Joris
5 years, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 08/31/2020
Status: Active
Attachments: 1 files
Logo Logo
Loading...