Drawline extension, étendre une ligne vers le futur

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #136430 quote
    Runbo
    Participant
    Junior

    Bonjour,

    J’aurais besoin d’aide pour finir mon indicateur suivant :

    DEFPARAM DRAWONLASTBARONLY = true
    DEFPARAM CALCULATEONLASTBARS = 1
    
    
    C1 = highest[1](high[1])
    drawhline(c1)
    
    return c1

    La ligne se trace au bon endroit. La seule chose que j’aimerais modifier serait au niveau de l’extension de cette ligne. Je veux seulement qu’elle trace vers la droite (futur) et non pas vers la gauche (passé). Serait-ce possible svp ?

     

    Merci.

    #145372 quote
    Nicolas
    Keymaster
    Master

    Oui cela est possible mais uniquement avec l’instruction DRAWRAY , disponible à partir de la version 11 de la plateforme.

    Dans ton exemple, le code serait donc écrit comme ceci :

    DEFPARAM DRAWONLASTBARONLY = true
    //DEFPARAM CALCULATEONLASTBARS = 1
    
    C1 = highest[1](high[1])
    //drawhline(c1)
    drawray(barindex,c1,barindex+10,c1)
    
    return c1
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Drawline extension, étendre une ligne vers le futur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Runbo @runbo Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
5 years, 5 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 06/18/2020
Status: Active
Attachments: No files
Logo Logo
Loading...