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

Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?

Отказ от ответственности