Bougie traversant MM50 et MM200

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #114084 quote
    finplus
    Participant
    Master

    Bonsoir,

    je souhaiterai un screener identifiant une bougie traversant les moyennes mobiles 50 et 200 (par ex sur l’UT 15 minutes). j’ai essayé mais je n’y arrive pas. Cela ressemblerait au graphique en pièce jointe.

    merci d’avance.

    Capture-d’écran-2019-12-02-à-19.44.15.png Capture-d’écran-2019-12-02-à-19.44.15.png
    #114086 quote
    finplus
    Participant
    Master
    //indicateur heikin kama
    p=2
    ONCE ama = UNDEFINED
    signal = ABS(MOMENTUM[p])
    noise = SUMMATION[p](ABS(MOMENTUM[1]))
    IF noise>0 THEN
    er = signal / noise
    ELSE
    er=1
    ENDIF
    fastsc = 2 / (2+ 1)
    slowsc = 2 / (20 + 1)
    factor = SQUARE(er * (fastsc - slowsc) + slowsc)
    IF BARINDEX = p THEN
    ama = CLOSE
    ELSIF BARINDEX > p THEN
    ama = ama + factor * (CLOSE - ama)
    ENDIF
    
    once haopen=open
    haclose=ama
    if barindex> 12 then
    haopen=(haopen+haclose[1])/2
    endif
    halow=min(low,min(haopen,haclose))
    hahigh=max(high,max(haopen,haclose))
    
    // parameters :
    Period1 = 50
    FastPeriod1 = 2
    SlowPeriod1 = 30
     
    Fastest1 = 2 / (FastPeriod1 + 1)
    Slowest1 = 2 / (SlowPeriod1 + 1)
    if barindex < Period1+1 then
    Kama50=close
    else
    Num1 = abs(close-close[Period1])
    Den1 = summation[Period1](abs(close-close[1]))
    ER1 = Num1 / Den1
    Alpha1 = SQUARE(ER1 *(Fastest1 - Slowest1 )+ Slowest1)
    KAMA50 = (Alpha1 * Close) + ((1 -Alpha1)* Kama50[1])
    endif
    
    // parameters :
    Period = 200
    FastPeriod = 2
    SlowPeriod = 30
     
    Fastest = 2 / (FastPeriod + 1)
    Slowest = 2 / (SlowPeriod + 1)
    if barindex < Period+1 then
    Kama=close
    else
    Num = abs(close-close[Period])
    Den = summation[Period](abs(close-close[1]))
    ER = Num / Den
    Alpha = SQUARE(ER *(Fastest - Slowest )+ Slowest)
    KAMA200 = (Alpha * Close) + ((1 -Alpha)* Kama[1])
    endif
    
    UP = halow < kama50 and halow < kama200 and hahigh > kama50 and hahigh > kama200
    
    screener [UP]
    #114101 quote
    Nicolas
    Keymaster
    Master

    C’est donc le code ci-dessus qui ne fonctionne pas ?

    #114145 quote
    finplus
    Participant
    Master

    oui. En fait, il ne fonctionne pas très bien. Voir exemples en pièce jointe. A l’instant (il est 19h44), le screener me renvoie une bonne valeur sur le dax mais une erronée sur l’AUD USD.

    Capture-d’écran-2019-12-03-à-19.45.05.png Capture-d’écran-2019-12-03-à-19.45.05.png Capture-d’écran-2019-12-03-à-19.44.47.png Capture-d’écran-2019-12-03-à-19.44.47.png
    #114148 quote
    finplus
    Participant
    Master

    sur le dax, il faut regarder la bougie précédente qui correspond à celle du screener de 19h44. Celle d’après correspond à celle de 19h45 qui ne remplissait plus les conditions du screener et qui avait donc disparu des résultats du screener.

    #114153 quote
    Nicolas
    Keymaster
    Master

    La différence provient du calcul de la KAMA200 dut à la limitation de l’historique, comme déjà évoqué entre nous dans ce sujet: https://www.prorealcode.com/topic/heikin-ashi-smooth-and-signal/#post-73991

    Il y a une légère différence dans la valeur de la KAMA200 qui a cet effet sur certains titres (si la différence est plus ou moins grande). Parfois le Low de la bougie Heikin Ashi se retrouve bien en dessous de cette valeur, même si la KAMA200 affichée sur l’écran indique le contraire.

    #114211 quote
    finplus
    Participant
    Master

    merci. La version V11 permettra de corriger cela ?

    #114258 quote
    Nicolas
    Keymaster
    Master

    Il n’y a pas de correction à apporter puisque c’est normal 🙂 Par contre, il est prévu d’augmenter l’historique disponible dans ProScreener mais je ne connais pas encore les détails.

    #114365 quote
    finplus
    Participant
    Master

    Merci.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Bougie traversant MM50 et MM200


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
finplus @finplus Participant
Summary

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

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