Ligne a 30% en dessous des plus haut a 1 an

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #190162 quote
    maxlysmaxlys
    Participant
    Senior

    Bonjour a tous,

     

    Je désirerais afficher une “ligne” située sous les cours a 30% en dessous du plus haut d’il y a 1 an.

    Comme sur le graphique joint, exemple avec la ligne violette, le plus haut a 1 an est de 41,63 €, donc la ligne est a 29,14 €

     

    pourriez vous m’indiquer comment coder cela ?

     

    Merci

    ligne.png ligne.png
    #190221 quote
    maxlysmaxlys
    Participant
    Senior

    Bonsoir,

    Donc je n’arrive toujours pas a réaliser quelque chose de fonctionnel.

    Déjà pour exprimer les 30% du close d’il y a un an peux-t-on le faire avec :

    c1=highest[52](high)*0,70

    puis comment tracer la ligne correspondante a cette donnée ? avec drawsegment, drawline ?

    J’ai vraiment besoin de vous

    Merci

    #190238 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Pour ton c1, oui pour 0.7 à la petite modification près de la décimale en 0.7 pas 0,7 (au cas où ça te donnait une erreur de syntaxe). Pour le segment, tout simplement prendre c1 comme niveau et le mettre en barindex-52 et barindex. Puis ajouter en début de code un defparam drawonlastbaronly=true pour ne pas afficher un nouveau segment à chaque bougie mais que le plus récent. Code valable pour graphe en UT hebdo (à cause du 52 pour 52 semaines):

    defparam drawonlastbaronly=true
    
    c1=highest[52](high)*0.70
    
    DRAWSEGMENT(barindex-52, c1, barindex, c1)
    
    return
    #190245 quote
    JSJS
    Participant
    Master

    Je pense que @maxlys voulais dire ceci…

    LineBelowHigh = Highest[52](High) * 0.7
    Return LineBelowHigh Coloured(255,0,0) as "LineBelowHigh"
     
    
    JC_Bywan thanked this post
    Schermafbeelding-2022-03-21-om-10.10.10.png Schermafbeelding-2022-03-21-om-10.10.10.png
    #190297 quote
    maxlysmaxlys
    Participant
    Senior

    Merci a vous 2 pour le retour.

    Et oui JS c’est bien cela que je recherchais.

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

Ligne a 30% en dessous des plus haut a 1 an


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
maxlys @maxlys Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by maxlysmaxlys
4 years, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/18/2022
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...