MACD della versione web

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #250072 quote
    Alessandro FurlaniAlessandro Furlani
    Participant
    Senior

    Sulla versione WEB della piattaforma PRT è presente un indicatore MACD che include anche due medie mobili che incrociano lo zero MACD. Non sono riuscito a trovare lo stesso indicatore sulla versione standard. È possibile averlo ?  O almeno avere il codice che lo riproduce esattamente ?

    Grazie
    #250078 quote
    JSJS
    Participant
    Master

    Ciao,

    Penso che lo stesso MACD standard sia utilizzato in tutte le versioni…

    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)

    robertogozzi and Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 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 della versione web


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JSJS
1 year ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 08/26/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...