MACD mm simple

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #173781 quote
    warningffwarningff
    Participant
    Average

    Bonjour,

    Je ne trouve pas depost  communiquant le code de la MACD pro real time.

    J’aimerais avoir le code pour remplacer les mm expo en simple.

     

    Cordialement 🙂 merci à vous

    #173789 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour,

    Pour référence la documentation interne du site: https://www.prorealcode.com/documentation/macd/

    dont cet extrait:

    “Calculation:

    The first value of the MACD is obtained by substracting the y days exponential moving average from the x days exponential moving average

    The second value of the MACD is obtained by calculating a z days exponential moving average of the first one.

    x, y and z are the MACD parameters, typically equal respectively to 12, 26 and 9.

    The MACD histogram is obtained by substracting the second value from the first one.”

    donc en première valeur si tu veux transformer avec des mm simples, tu aurais:

    valeur1 = average[26](close)-average[12](close)

    puis en 2e valeur si tu veux aussi transformer la ligne de signal avec mm simple:

    signal = average[9](valeur1)

    et si tu veux aussi l’histogramme:

    histo = valeur1-signal
    #173791 quote
    warningffwarningff
    Participant
    Average

    Donc ce genre de code ?

    myOSC=average[3](close)-average[10](close)
    mySignal=average[16](myOSC)
    
    return myOSC as "myOSC", mySignal as "mySignal"
    Nicolas thanked this post
    #173792 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    oui

    #173793 quote
    warningffwarningff
    Participant
    Average

    merci : )

Viewing 5 posts - 1 through 5 (of 5 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 mm simple


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
warningff @fabbis Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 07/18/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...