OPEN-SOURCE SCRIPT

RSI-based MACD

takase11112222의
The RSI is one of the most popular indicators available. This indicator, which represents the strength of market momentum based on the gains and losses over the past 14 candlesticks, is rational and is mainly used as an oscillator to determine overbought or oversold conditions. However, because the RSI is an older indicator, its very simple design—displaying only a single line on the graph—may feel somewhat lacking in functionality to modern traders. The main issue is that there is no objective measure to determine whether the RSI is currently rising or falling.

That’s when I came up with the idea of calculating the MACD based on the smoothed values of the RSI. As is well known, the MACD is an indicator that represents the distance between moving averages, designed to show when the moving averages cross as the value falls below zero. By observing the golden crosses and death crosses of the MACD and signal line, one can anticipate the golden and death crosses of the moving averages. Applying the same logic, I thought that calculating the MACD based on RSI values would allow us to predict the rise and fall of the RSI by observing these golden and death crosses.

Currently, the RSI is often used as a contrarian indicator to determine overbought and oversold conditions, but with this approach, I believe the RSI can instead function extremely well as a trend-following indicator. Whenever an uptrend occurs, the RSI inevitably rises, and when a downtrend occurs, the RSI inevitably falls. Therefore, by predicting the rise and fall of the RSI, it becomes possible to forecast what kind of trend is likely to develop.

In this indicator, the MACD calculated from the RSI is displayed, with the original RSI line plotted above it. Since the scales of the RSI and MACD are different, I originally wanted to provide a separate scale for the RSI on the left side. However, due to TradingView’s limitations, it seems quite difficult to display more than one scale in a single panel, so I had to give up on that. Instead, I ask that you mentally multiply the RSI values displayed on the right by 10—for example, 2.11 indicates 21.1%.

Additionally, as a bonus, I’ve included a feature that detects divergences. With these features, I believe this has become the most useful indicator when compared to existing RSI-based indicators. I hope you find it helpful in your trading.
Relative Strength Index (RSI)

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

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

면책사항