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: