historique des supports et résistances passées

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #220462 quote
    juld63
    Participant
    New

    Bonjour,

    et merci encore pour votre réponse à ma dernière question (en particulier JC_Bywan). Dans le même ordre d’idées, j’aimerais pouvoir tracer des lignes des supports et résistances des jours passés (avec clôture de la journée à 23h) qui n’ont pas été avalées depuis par le range des jours suivants. Mon gros souci, c’est que je n’arrive pas à comprendre comment programmer algorithmiquement ces notions de jours précédents et suivants, de manière itérative… Je me dis que ça devrait ressembler très grossièrement à ce qui suit, mais je sèche… Toute aide sera vivement appréciée ! Merci pour ce super forum et votre bienveillance !

     

    defparam drawonlastbaronly=true

     

    FOR date=20080101 TO date=CurrentDate DO

     

    if opentime=230000 or (dayofweek=0 and opentime=0) then

    ll=low

    endif

    if opentime<230000 then

    ll=min(ll,low)

    endif

    PastMin=ll

    if opentime=230000 or (dayofweek=0 and opentime=0) then

    Ill=high

    endif

    if opentime<230000 othen

    Ill=max(Ill,high)

    endif

    PastMax=llI

    IF NOT(PastMin{d’un jour donné}>=PastMin{d’un jour postérieur} AND PastMin{d’un jour donné}<=PastMax{d’un jour postérieur})

    DrawHLine (PastMin) Coloured0,02550) STYLE(LINE,2)

    DRAWTEXT(“PastMin“,barindex,PastMin+3,SansSerif,Bold,16) Coloured(255,0,0)

    return

    IF NOT(PastMax{d’un jour donné}>=PastMin{d’un jour postérieur} AND PastMax{d’un jour donné}<=PastMax{d’un jour postérieur})

    DrawHLine (PastMax) Coloured(255,0,0) STYLE(LINE,2)

    DRAWTEXT(“PastMax”,barindex,PastMax+3,SansSerif,Bold,16) Coloured(255,0,0)

    return

Viewing 1 post (of 1 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

historique des supports et résistances passées


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
juld63 @juld63 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/06/2023
Status: Active
Attachments: No files
Logo Logo
Loading...