EMA et MACD weekly et daily

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #170185 quote
    ArturAgababyan13
    Participant
    New
    Bonjour, Je souhaite créer un screener qui séléctionne les titres selon les critères suivants :
    • Weekly : les prix sont au-dessus de la EMA21 et que le MACD Histogramme est positif.
    • Daily : les prix sont entre l’EMA21 et l’EMA52. Plus l’histogramme MACD doit être positif aussi.
    • Bien évidamment les EMA (daily et weekly) doivent être haussière.
    Voici le programme que j’ai fait :
    timeframe(weekly)
    wEMA21 = ExponentialAverage[21](close)
    c1 = (close >= wEMA21)
    c2 = wEMA21[1] < wEMA21
    
    wMACDHisto = ExponentialAverage[12](close) - ExponentialAverage[26](close) - ExponentialAverage[9](close)
    c3 = (wMACDHisto >= 0)
    
    timeframe(daily)
    dEMA21 = ExponentialAverage[21](close)
    dEMA52 = ExponentialAverage[52](close)
    dMACDhisto = ExponentialAverage[12](close) - ExponentialAverage[26](close) - ExponentialAverage[9](close)
    
    c4 = close < dEMA52
    c5 = dEMA21 < close
    c6 = dEMA21[1] < dEMA21
    c7 = dEMA52[1] < dEMA52
    c5 = dMACDhisto > 0
    
    SCREENER[c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7] (Variation AS "% Barre prec")
     

    Mais je pense que j’ai fait une erreur et je souhaite avoir votre avis là dessus. Je vous mets aussi une image du code.

    Merci d’avance pour votre aide.
    screener.png screener.png
    #170225 quote
    Nicolas
    Keymaster
    Master
    Pourquoi ne pas utiliser les instructions du MACD directement ?
    MACD
    MACDLine
    MACDsignal
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

EMA et MACD weekly et daily


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

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

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