MACD sur le prix

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #106421 quote
    jeanguyjeanguy
    Participant
    Senior

    Bonjour est-il possible de faire apparaître la ligne MACD sur le prix ?

    Lorsque je code la ligne MACD et que je l’appelle via l’onglet prix elle ne s’affiche pas sur le prix alors que les MM Zero Retard oui.

    Ligne MACD n’apparait pas :

    C = 12
    L = 26
    
    MMC = exponentialaverage[C](close)
    MML = exponentialaverage[L](close)
    
    MACDHisto = MMC - MML
    RETURN MACDHisto

    MM ZR apparaissent :

    EMA1 = ExponentialAverage[7](close)
    EMA2 = ExponentialAverage[7](EMA1)
    diff = EMA1 - EMA2
     
    ind1 = EMA1 + diff
    
    Return ind1
    
    #106422 quote
    NicolasNicolas
    Keymaster
    Legend

    Une MACD est une simple différence entre 2 moyennes mobiles de périodes différentes. Le deuxième code est correct puisque on ajoute cette différence à la MA rapide. Il faut donc faire pareil avec ta version, soit :

    C = 12
    L = 26
    
    MMC = exponentialaverage[C](close)
    MML = exponentialaverage[L](close)
    
    MACDHisto = MMC - MML
    
    RETURN MMC+MACDHisto

    (non testé)

    #106440 quote
    jeanguyjeanguy
    Participant
    Senior

    Fonctionne merci Nicolas

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

MACD sur le prix


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
jeanguy @mhscrforever Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by jeanguyjeanguy
7 years ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 09/04/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...