The_Caretaker

Reverse MACD Indicator

The_Caretaker 업데이트됨   
Introducing the reverse MACD Indicator.


This is my Pinescript implementation of the reverse MACD indicator.

Much respect to Mr Johnny Dough the original creator of this idea.

Feel free to reuse this script, drop me a note below if you find this useful.


Investopedia defines the MACD as a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price.

The MACD is calculated by subtracting the 26-period Exponential Moving Average ( EMA ) from the 12-period EMA .

The result of that calculation is the MACD line.


A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals.

Traders may buy the security when the MACD crosses above its signal line and sell—or short—the security when the MACD crosses below the signal line.

Moving Average Convergence Divergence ( MACD ) indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.


MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.

The speed of crossovers is also taken as a signal of a market is overbought or oversold.

MACD helps investors understand whether the bullish or bearish movement in the price is strengthening or weakening.


The MACD has a positive value (shown as the red line on the price chart ) whenever the 12-period EMA ( indicated by the blue line on the price chart) is above the 26-period EMA (the red line in the price chart) and a negative value when the 12-period EMA is below the 26-period EMA .

The more distant the MACD is above or below its baseline indicates that the distance between the two EMAs is growing.

The baseline here is the white line.

The Reverse function of the MACD provides value by letting the user know the specific price needed to expect a MACD cross over in the opposite direction.

This function can be used to designate risk parameters for a potential trade if using the MACD as their source of edge, letting the user know exactly where and how much their risk is for a potential trade which can be used to design an effective trading plan.
릴리즈 노트:
By request I have..

Broken the code down into separated functions, and added clear descriptions of function operation.

Altered some variable naming for easier reading.
릴리즈 노트:
Forgot to actually implement one of the newly declared functions.. lol .. done now.
릴리즈 노트:
Added optional RMACD derived Bollinger Bands by request.
릴리즈 노트:
Further expanded the description of the functions for clarity.
릴리즈 노트:
Corrected function Price and Length variable naming.
릴리즈 노트:
Another little tidy up
릴리즈 노트:
I have brought the original idea to its logical conclusion for the MACD by creating a new function which also computes the price level required to cross the MACD with its signal line.
This allows the user to quickly see all of the most relevant information from the MACD and the actual price levels where the indicator will change its posture.

For the sake of clarity I have changed the EQ level to an orange plot

The signal line crossover level plots blue when the macd is above the signal line and red below it.

The zero line is white as usual

I have added an infobox which will show
  • Whether the MACD is falling or rising
  • the price level which will make the MACD to change from rising to falling or vice versa
  • the price level which will cause the MACD to cross the signal line
  • the price level which will cause the MACD to cross the zero line
릴리즈 노트:
Created and added SMA signal line cross function by request..

Added
  • optional SMA signal line

Modified textbox info and coloring logic for clarity
릴리즈 노트:
minor color change
릴리즈 노트:
Altered input variables naming for clarity
릴리즈 노트:
Upgraded to Pinescript version 5
Added plot & color options.
Added settings headings.

You may contact me on Krown's Crypto Cave Discord: discord.gg/W9ettX54DF My Discord username is The Caretaker.
My Private indicators are available via :
krown-trading.teachable.com/?affcode=236462_mm1lb1_w
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?