Ligne horizontal Open – 5 %

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #56800 quote
    flomacetaflomaceta
    Participant
    New

    Ligne horizontal : Cours open jour – 5 %

    je voudrai qu’une ligne horizontal ce mette automatiquement un fois que le cours d’ouverture jour est effectué – 5 %

    sur le graphique principal

    merci beaucoup

    #57164 quote
    NicolasNicolas
    Keymaster
    Legend

    Le code de cet indicateur devrait faire l’affaire, il est à utiliser sur le graphique du prix (utiliser la clé à molette en haut à gauche du graphique du prix).

    c = close/Dopen(0)<=0.95
    
    if intradaybarindex=0 then 
    reset=0
    endif
    
    if c and reset=0 then 
    drawhline(close)
    reset=1
    endif
    
    return

     

    La ligne horizontale marquant le delta de -5% depuis le prix d’ouverture ne s’affiche qu’une seule fois par jour, si j’ai bien compris la demande.

    ligne-horizontale-différence-close-et-open.png ligne-horizontale-différence-close-et-open.png
    #64175 quote
    flomacetaflomaceta
    Participant
    New

    bonjour

    je voudrai que cette barre horizontal s affiche sur un graphique DAILY sur l ouverture DAILY uniquement et sur le jour en cours

    et d avoir la valeur marque dans la colonne de droite

    la ca marche pas trop

    merci de votre aide

    #64439 quote
    NicolasNicolas
    Keymaster
    Legend

    Cette version devrait faire l’affaire, une ligne horizontale s’affichera à l’Open – 5% (si le prix a dépassé ce seuil uniquement) et sera fixé toute la journée.

    defparam drawonlastbaronly=true
    
    c = Dclose(0)/Dopen(0)<=0.95
    
    if c then
    drawhline(Dopen(0)*0.95)
    endif
    
    return c
Viewing 4 posts - 1 through 4 (of 4 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 horizontal Open – 5 %


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
flomaceta @flomaceta Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by NicolasNicolas
8 years, 6 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 12/29/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...