DRAWLINE +Ht/+Bas entre 2 horaires + Heure précise pour J & J+1

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55245 quote
    HerveS_67HerveS_67
    Participant
    Veteran

    Bonsoir, Je cherche à tracer sur la journée en cours et la journée précédente une DRAWLINE sur 2 heures précises (12h& 18h) et y faire apparaître le +haut et le + bas par un DRAWLINE aussi entre ces horaires !!! J’arrive à tracer les lignes sur du M1, mais elles n’apparaissent plus sur les UT supérieures ……… cf PJ + code Et pour les +haut/+bas entre ces 2 horaires, je n’arrive à rien avec les ordres conditionnels IF + time : High, highest ;  DHigh(0)/(1) ; valeurhaute=high & max(valeurhaute,high) ; CurrentDayOfWeek  ; Day(0)/(1) ; DayOfWeek[0] Si quelqu’un a une idée 😉 @+

    DEFPARAM DrawOnLastBarOnly = true
    
    MarketRange = (time>=120000 AND time<=180100)
    
    IF MarketRange AND Time = 120100 THEN
    Midi = open
    ELSIF MarketRange AND Time = 180100 THEN
    DixHuit = open
    endif
    
    DRAWLINE(barindex-1,Midi,barindex,Midi) coloured(0,0,0)
    DRAWLINE(barindex-1,DixHuit,barindex,DixHuit) coloured(0,0,0)
    
    RETURN
    

     

    2017-12-09_234035.png 2017-12-09_234035.png
    #55335 quote
    NicolasNicolas
    Keymaster
    Legend

    Les horaires 12h01 et 18h01 n’existe pas en timeframe 5 minutes, donc tes conditions aux lignes 3, 5 et 7 ne seront jamais vérifiées , c’est pour cela que rien ne s’affiche.

    HerveS_67 thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

DRAWLINE +Ht/+Bas entre 2 horaires + Heure précise pour J & J+1


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
HerveS_67 @herves_67 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
8 years, 9 months ago.

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