MACD fourni par PRT

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #253027 quote
    bertrandpinoy
    Participant
    Veteran

    Bonjour, j’utilise fréquemment MACD indicateur fourni par défaut dans prorelatime; Cependant le code n’est pas visible et il ne peux s’appliquer qu’au panneau inferieur. Pouvez-vous fournir un code équivalent modifiable que je puisse appliquer au graphique du prix SVP?

    #253031 quote
    robertogozzi
    Moderator
    Master

    Voilà:

    ONCE Macd1 = 12          //12
    ONCE Macd2 = 26          //26
    ONCE Macd3 = 9           //9
    myMACDmainline  = MACDline[Macd1,Macd2,Macd3](close)        //difference between the teo EMA's
    myMACDsignal    = ExponentialAverage[Macd3](myMACDmainline) //ema of above line (MACDmainline)
    myMACDHistoGram = MACD[Macd1,Macd2,Macd3](close)            //histogram
    Return myMACDHistoGram AS "Histogram",myMACDsignal AS "Signal",myMACDmainline as "MACDline"Dmainline as "MACDline"
    Iván González thanked this post
    #253033 quote
    bertrandpinoy
    Participant
    Veteran

    Bonjour et merci Roberto, avez-vous essayer de l appliquer au graphique de prix? moi oui et je n ‘obtiens rien.

    #253040 quote
    JS
    Participant
    Senior

    Salut,

    C’est le code du MACD qui est utilisé par défaut…

    ShortPeriod=12
    LongPeriod=26
    SignalPeriod=9
    
    EMAshort=ExponentialAverage[shortPeriod](close)
    EMAlong=ExponentialAverage[longPeriod](close)
    
    xMACDline=EMAshort-EMAlong
    
    Signal = ExponentialAverage[SignalPeriod](xMACDline)
    
    xHistogram=xMACDline-Signal
    
    Return xMACDline AS "MACD", Signal AS "Signal", xHistogram AS "Histogram" Style(Histogram)
    Iván González thanked this post
    #253043 quote
    bertrandpinoy
    Participant
    Veteran

    D’accord merci; mais qu’est ce qui empêche de l’appliquer au graphique “prix”? Car il n’est pas visible dans ce cas.

    #253044 quote
    JS
    Participant
    Senior

    Rien, tu peux simplement ajouter le MACD au graphique des prix…

    Cependant, l’échelle du graphique des prix est évidemment très différente de celle du MACD, qui oscille autour du point zéro…

    Le MACD est normalement affiché dans un panneau séparé en raison de cette différence d’échelle…

    Que veux-tu exactement qu’un MACD affiche dans le graphique des prix…?

    Iván González thanked this post
    #253047 quote
    bertrandpinoy
    Participant
    Veteran

    “Que veux-tu exactement qu’un MACD affiche dans le graphique des prix…?” Oui effectivement c’était ma demande initiale, mais je comprends l’incompatibilité si je puis dire, merci.

    JS thanked this post
    #253111 quote
    Bernard13
    Participant
    Average

    Bonjour Bertrand,
    J’ai retrouvé cet article de  Zeiierman Trading  qui pourrait t’intéresser.
    C’est une superposition MACD et RSI sur le prix.

    MACD & RSI Overlay (Expo)


    Bons trades.

    #253112 quote
    Bernard13
    Participant
    Average

    Le lien ci-dessus ne s’ouvre pas.
    Ouvrir par:      Accéder à https://www.prorealcode.com/prorealtime-indicators/macd-rsi-overlay-expo

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

MACD fourni par PRT


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by Bernard13
3 months, 1 week ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/25/2025
Status: Active
Attachments: 1 files
Logo Logo
Loading...