Problème croisement moyenne mobile

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

    Bonjour,

     

    Je rencontre un problème sur la détection de croisement de moyenne mobile exponetielles

     

    Voici mon code :

     

    timeframe(1 minute)
    EMA20M1 = ExponentialAverage[15](close)
    EMA50M1 = ExponentialAverage[50](close)
    EMA100M1 = ExponentialAverage[100](close)
    
    if EMA20M1 CROSSES OVER EMA50M1 then
    DRAWARROWUP(barindex,0) COLOURED (0,255,0)
    endif
    
    if EMA20M1 CROSSES OVER EMA100M1 then
    DRAWARROWUP(barindex,0) COLOURED (0,255,0)
    endif
    
    if EMA50M1 CROSSES OVER EMA100M1 then
    DRAWARROWUP(barindex,0) COLOURED (0,255,0)
    endif
    
    RETURN

    Par contre ça ne fait pas le résultat attendu =(

    En effet j’ai 2 flèches up alors que j’ai pas de croisements… je comprend pas trop pourquoi.

     

    La première et la seconde apparaisse alors que je ne suis pas en croisement, la troisième OK

     

    EDIT : je viens de voir mon erreur EMA20 est en 15… #Boulet

    PRT.png PRT.png
    #169972 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour, edit vu, souhaites-tu qu’on enlève le post?

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

From idea to ProBuilder code in seconds.

Your coding copilot for ProRealTime™. Ask in plain English — get clean, ready-to-paste indicators, screeners and systems.

Available in 7 languages
Try ProRealAI

Problème croisement moyenne mobile


Support Plateforme : Graphiques, Données & Courtiers

New Reply
Author
author-avatar
fred631 @fred631 Participant
Summary

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

Topic Details
Forum: Support Plateforme : Graphiques, Données & Courtiers
Language: French
Started: 05/19/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...