Screener MM en Multi timeframe

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #215210 quote
    CrockyCrocky
    Participant
    Junior

    Bonjour à tous,

    Je me suis codé un screener tout simple qui consiste à affecter un score à un actif en fonction de sa position par rapport aux 3 moy mobiles:
    mm20 (en bleu) / mm50 (en rouge) / mm200(en rose)

    et ceci sur 2 UT: Daily (graphe de gauche)  & Weekly (graphe de droite)

    Or, je ne comprends pas le résultats obtenu…
    ex. ci-dessous ADP qui est en Daliy au dessus de ces 3mm donc devrait faire 10+30+50 et également en Weelky donc +100+300+500

    Je devrais avoir un score de 990 et non pas 180 ?

    Le code:

    // score en fonction des mm et UT
    
    mm20 = Average[20](close)
    mm50 = Average[50](close)
    mm200 = Average[200](close)
    
    ONCE score = 0
    
    TIMEFRAME(daily)
    d=0
    if close > mm20 then
    d = d + 1
    endif
    
    if close > mm50 then
    d = d + 3
    endif
    
    if close > mm200 then
    d = d + 5
    endif
    
    TIMEFRAME(weekly)
    w=0
    if close > mm20 then
    d = d + 1
    endif
    
    if close > mm50 then
    d = d + 3
    endif
    
    if close > mm200 then
    d = d + 5
    endif
    
    score = d*10 + w*100
    
    SCREENER[score](score as "score MM")
    
    Capture-decran-2023-05-26-a-14.48.48.png Capture-decran-2023-05-26-a-14.48.48.png
    #215215 quote
    CrockyCrocky
    Participant
    Junior

    Désolé j’ai trouvé mon erreur idiote: j’ai oublié de changer la variable  ( d devient w )dans les instructions en weekly…

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

Screener MM en Multi timeframe


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Crocky @xavier-bescond Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by CrockyCrocky
3 years, 4 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 05/26/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...