Dessiner Gann éventail

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #143059 quote
    JorisJoris
    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
    NicolasNicolas
    Keymaster
    Legend

    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
    JorisJoris
    Participant
    Junior

    C’est tout à fait exact

    #143088 quote
    NicolasNicolas
    Keymaster
    Legend

    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
    JorisJoris
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 JorisJoris
6 years, 1 month ago.

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