Figer les résultats de screener sur une période

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #153277 quote
    LurubuLurubu
    Participant
    Senior

    Bonjour,j’ai un petit problème de screener.

    L’unité de temps est le 15 minutes, mais cela importe peu.

    Je voudrais que les résultats ne s’affichent qu’à la clôture de la bougie, et restent jusqu’à la clôture  suivante.

    J’ai mis une condition de temps parfaitement inopérante?

    Comment faire ?

    merci

    TIMEFRAME(4 hours)
    MME5 = ExponentialAverage[5](TypicalPrice)
    MME8 = ExponentialAverage[8](TypicalPrice)
    
    CA1 = MME5 > MME8
    CV1 = MME5 < MME8
    
    TIMEFRAME(15 minutes)
    ignored,ignored,ignored,ignored, myK3, myD3 = CALL "! Sto perso"[14]
    
    CA2 =  myD3 crosses over myK3
    CA3 = myK3[1] < 20 or myK3[2] < 20
    CV2 =  myD3 crosses under myK3
    CV3 = myK3[1] > 80 or myK3[2] > 80
    
    CTemps = Close <> close[1]
    
    SCREENER[(CA1 and CA2 and CA3 and CTemps) or (CV1 and CV2 and CV3) and Ctemps]
    #153322 quote
    NicolasNicolas
    Keymaster
    Legend

    Les résultats ne sont pas figés car la détection est toujours en cours dans la bougie courante, donc si l’une de tes conditions n’est plus vrai, alors la détection disparaît, en toute logique.

    L’idéal est de tester dans la bougie qui précède toutes ces conditions, puisque celle-ci est clôturée.

    TIMEFRAME(4 hours)
    MME5 = ExponentialAverage[5](TypicalPrice)
    MME8 = ExponentialAverage[8](TypicalPrice)
    
    CA1 = MME5 > MME8
    CV1 = MME5 < MME8
    
    TIMEFRAME(15 minutes)
    ignored,ignored,ignored,ignored, myK3, myD3 = CALL "! Sto perso"[14]
    
    CA2 =  myD3 crosses over myK3
    CA3 = myK3[1] < 20 or myK3[2] < 20
    CV2 =  myD3 crosses under myK3
    CV3 = myK3[1] > 80 or myK3[2] > 80
    
    test = (CA1 and CA2 and CA3) or (CV1 and CV2 and CV3)
    
    SCREENER[test[1]]
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

Figer les résultats de screener sur une période


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

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

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