petit soucis de drawline

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #206163 quote
    Ezel
    Participant
    New

    Bonjour à tous, je me suis fait un petit indicateur mais j’ai un petit soucis avec les lignes, j’aimerais que ca soit juste la derniere ligne que l’indicateur ma créer qui soit visible a l’écran, jusqu’à ce qu’il m’en crée une nouvelle,
    pour les flèches je m’en fout, je vous partage l’indicateur si quelqu’un peut m’avoir une réponse.
    PS : le top serait un segment qui part seulement du bas de la bougies plutôt qu’une ligne qui traverse  tout l’écran

    Merci beaucoup

    c1 = adx[14] > 30 and high crosses over ExponentialAverage[20](close)
    
    IF c1  THEN
    DRAWARROWDOWN (barindex, high+50) Coloured(255,255,255)
    drawhline (low) Coloured(255,255,255)
    endif
    
    RETURN
    #206165 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    DEFPARAM DrawOnLastBarOnly = true
    c1 = adx[14] > 30 and high crosses over ExponentialAverage[20](close)
    if c1 = 0 then
       c1 = c1[1]
    endif
    IF c1 THEN
       DRAWARROWDOWN (barindex, high+50) Coloured(255,255,255)
       drawhline (low) Coloured(255,255,255)
    endif
    RETURN
    #206166 quote
    Ezel
    Participant
    New

    merci bien, mais malheureusement cela ne fonctionne pas. Ca me fait une flèche et qu’une seule ligne mais sur la bougie en cours et non pas quand

    adx[14] > 30 and high crosses over ExponentialAverage[20](close)

     

    :/

    #206169 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    DEFPARAM DrawOnLastBarOnly = true
    c1 = adx[14] > 30 and high crosses over ExponentialAverage[20](close)
    IF c1 then
       myBar   = BarIndex
       myPrice = low
    else
       c1 = c1[1]
    endif
    IF c1 THEN
       DRAWARROWDOWN (myBar, high+50) Coloured(255,255,255)
       drawhline (myPrice) Coloured(255,255,255)
    endif
    RETURN
    #206171 quote
    Ezel
    Participant
    New

    ha yes, merci beaucoup

    #206175 quote
    Ezel
    Participant
    New

    dernière petite question :

    comment je fais maintenant si je veux placer un ordre de vente sur cette ligne créée ou pour rentrer en vente quand le niveau de cette ligne est breaker ?
    je n’arrive pas a comprendre comment je peux transformer cette ligne en variable du coup…

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

petit soucis de drawline


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Ezel @ezel Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by Ezel
3 years, 2 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 12/21/2022
Status: Active
Attachments: No files
Logo Logo
Loading...