OPEN-SOURCE SCRIPT

MACD percentage price oscillator

MACD Percentage Price Oscillator is a variation of the MACD indicator. Signal line crossovers are almost identical. The major difference is the MACD Percentage scale which enables comparison between stocks at different prices.

MACD Percentage Price Oscillator's trading signals are the same as for the MACD indicator. The MACD indicator is primarily used to trade trends and should not be used in a ranging market. Signals are taken when MACD crosses its signal line, calculated as a 9 day exponential moving average of MACD.

First check whether price is trending. If the MACD indicator is flat or stays close to the zero line, the market is ranging and signals are unreliable.

Signals are far stronger if there is either:

- a divergence on the MACD indicator; or
- a large swing above or below the zero line.
- Unless there is a divergence, do not go long if the signal is above the zero line, nor go short if the signal is below zero. Place stop-losses below the last minor Low when long, or the last minor High when short.

The main advantage of MACD Percentage over MACD is the ability to compare indicator values across stocks.

The only difference with MACD Percentage Price Oscillator is that the difference between the fast and slow moving averages is calculated as a percentage of the slow moving average: MACD = (12 Day EMA - 26 Day EMA) / 26 Day EMA
DivergenceMoving Average Convergence / Divergence (MACD)macdcrossMoving AveragesTrend Analysis

Script de código abierto

Siguiendo fielmente el espíritu de TradingView, el autor de este script lo ha publicado en código abierto, permitiendo que otros traders puedan entenderlo y verificarlo. ¡Olé por el autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la reutilización de este código en la publicación se rige por las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad