Tracé de lignes horizontales

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186076 quote
    LurubuLurubu
    Participant
    Senior

    Bonjour Nicolas,

    Je persiste avec mes niveaux avec une nouvelle idée.

    Disons que je rentre à l’achat à 100.

    En paramètre : Achat

    If Achat <> 0 then

    NivStop = Achat – 2 * AverageTrueRange[8]

    NivCible = Achat + 2 * AverageTrueRange[8]

    DrawHLine(NivStop)coloured(255,0,0)

    DrawHLine(NivCible)coloured(0,255,0)

    Endif

     

    Return

    Donc, quand je rentre en position, je n’ai en théorie qu’à placer le niveau d’entée en paramètre.

    Si je laisse “Achat = 0”, rien ne s’affiche, c’est normal.

    Si je mets la valeur « Achat = 15800 (Dax actuel) » j’obtiens un fouillis de lignes illisible.

    Or j’avais programmé cela hier et tout fonctionnait ; je n’ai pas sauvegardé et aujourd’hui, patatra !

    Où est mon erreur ?

    Merci

    PRC.jpg PRC.jpg
    #186082 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Un defparam drawonlastbaronly=true ?

    #186097 quote
    LurubuLurubu
    Participant
    Senior

    Mais oui,bien sur!

    Grand merci.

Viewing 3 posts - 1 through 3 (of 3 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

Tracé de lignes horizontales


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by LurubuLurubu
4 years, 8 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/20/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...