Cassure EMA 60 en Hebdo

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #147062 quote
    OliTradingOliTrading
    Participant
    New

    Bonjour,

    Je cherche à écrire un screener qui présente les valeurs dont le cours a cassé la moyenne mobile exponentielle à 60 périodes en hebdomadaire c’est à dire que le cours actuel est au-dessus de la EMA 60 périodes hebdo et que le cours de la semaine précédente est en dessous de la EMA 60 hebdo.

    J’ai écrit le screener ci-dessous. Cependant, il ne fonctionne pas correctement. Est-ce que quelqu’un pourrait m’indiquer où se trouve le problème ?

     

    Timeframe (weekly)
    
    c1 = volume > 10000
    c2 = volume > average[20](volume)*1.5
    c3 = close > 1.00 and close > open
    c4 = close > ExponentialAverage[60](close) and close[1] < ExponentialAverage[60](close)[1] // and average[50](close) > average[150](close[1])
    amplitude = close-open
    c5 = amplitude > 2*average[20](amplitude)
    
    IF c1 and c2 and c3 and c4 and c5 THEN
    ACHAT = 1
    ELSE
    ACHAT = 0
    ENDIF
     
    screener[ACHAT=1]
    
    SCREENER(close as "close")

     

    Merci de votre aide,

    Olivier

    #147109 quote
    NicolasNicolas
    Keymaster
    Legend

    Je n’ai pas vérifié tout le code, mais il y a 2 instructions screener, la dernière prenant le pas sur la première, il faut supprimer la ligne 18 🙂

    #147249 quote
    OliTradingOliTrading
    Participant
    New

    Bonjour Nicolas,

    Effectivement, je devais être fatigué, j’ai retiré la deuxième instruction et cela fonctionne.

    Merci,

Viewing 3 posts - 1 through 3 (of 3 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

Cassure EMA 60 en Hebdo


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
OliTrading @olitrading Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by OliTradingOliTrading
5 years, 12 months ago.

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