Avant derniere bougie considérée au lieu de la derniere

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

    Bonjour,
    Je suis en train d’essayer de programmer un screener avec le code suivant et ne comprend pas pourquoi le lundi matin, le screener en Hebdo ne prend pas en compte le dernier chandelier hebdo de la semaine passée. En gros les titres qui me sont retourné avec le timeframe hebdo ont les conditions remplies dans la semaine du 24 au 28 Fev…

    Peut etre pouvez vous m’aider ?
    En vous remerciant par avance.
    Cordialement,
    Simon

    TIMEFRAME(weekly)
    c1 = (RSI <= 52)
    c2 = (RSI >= 48)
    c3 = (Momentum[1](RSI)<= 0)
    CW = c1 AND c2 AND c3
    IF CW THEN
    Criteria = 2
    ENDIF
    
    TIMEFRAME(daily)
    c4 = (RSI <= 52)
    c5 = (RSI >= 48)
    c6 = (Momentum[1](RSI)<= 0)
    CD = c4 AND c5 AND c6
    IF CD THEN
    Criteria = 1
    ENDIF
    SCREENER[CW OR CD] (Criteria AS "Timeframe")

     

    #121120 quote
    NicolasNicolas
    Keymaster
    Legend

    C’est le comportement normal pour un compte “fin de journée”, je suppose que c’est le cas ici. Fin de journée en données hebdomadaires signifiant fin de semaine.

    #121180 quote
    Simon64Simon64
    Participant
    New

    Merci Nicolas, oui c’est bien le cas ici, seulement ca veut dire que Lundi matin j’aurais du trouver les valeurs dont le RSI hebdo de la semaine derniere était autour de 50 (mon principal filtre ici en fait…), or lundi matin ce qui ressortait c’etait ceux de la semaine encore d’avant… d’où mon interrrogation…

    Cordialement,

    Simon

    #121208 quote
    NicolasNicolas
    Keymaster
    Legend

    Il est possible que le marché en question n’était pas encore ouvert au moment où le scan a été lancé, donc impossible de savoir si on avait changé de semaine ou non.

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

Avant derniere bougie considérée au lieu de la derniere


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Simon64 @simonval Participant
Summary

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

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 03/04/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...