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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #153277 quote
    Lurubu
    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
    Nicolas
    Keymaster
    Master

    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.

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 Nicolas
5 years, 2 months ago.

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