Drawellipse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6443 quote
    supertiti
    Participant
    Master
    Bonjour Nicolas,
    J’aimerai utiliser la fonction “drawellipse” mais je ne comprend pas comment l’écrire !
    Pourrais tu me donner un exemple lors d’un croisement de deux moyennes mobiles qui ferait ressortir une ellipse sur le graphe?
    merci pour ton aide
    Bonne journée
    Didier
    #6451 quote
    Nicolas
    Keymaster
    Master

    C’est plutôt simple en fait, de tracer une ellipse.

    Dans la documentation de code prorealtime en ligne du site, DRAWELLIPSE  indique qu’il faut utiliser 2 sets de coordonnées x et y.

    Tu trouveras ci-dessous un exemple de code que j’avais initié pour tracer une ellipse fibo de 38.2 de retracement depuis les informations de la journée qui précède. Pas encore terminé toutefois, je pense que c’est un bon exemple.

    defparam drawonlastbaronly = true
    
    minheight = 10*pipsize
    
    hh = Dhigh(1)//highest[period](high)
    ll = Dlow(1)//lowest[period](low)
    
    for i = 0 to intradaybarindex
     if open[0]=Dopen(0) then
      dayopen = barindex[i]
     break
     endif
    next
    
    if hh-ll >= minheight then
     ratio=(hh-ll)/100
     DRAWELLIPSE(barindex-intradaybarindex,ll,barindex,ll+(ratio*38.2))coloured(255,10,10)
     DRAWVLINE(dayopen)
     DRAWHLINE(Dlow(1))
    endif
    
    RETURN
    #6456 quote
    supertiti
    Participant
    Master

    Merci Nicolas, je regarde ce que je peux faire à partir de cet exemple

    bonne soirée

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

Drawellipse


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
supertiti @supertiti Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by supertiti
9 years, 9 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/04/2016
Status: Active
Attachments: No files
Logo Logo
Loading...