OPEN-SOURCE SCRIPT

RSI Divergence Alerts

Indicator Description: RSI Divergence Alerts

The RSI Divergence indicator is a technical analysis tool that identifies divergences between the Relative Strength Index (RSI) and the price of an asset. The RSI is a momentum indicator that measures the speed and magnitude of recent changes in an asset's price, while divergences occur when there is a disparity between price movements and the RSI.

Indicator Customization:

Overbought and Oversold: The indicator allows you to customize the overbought and oversold levels of the RSI. This allows traders to adjust parameters according to their preferences and the historical behavior of the asset in question.
Indicator Settings and Recommended Adjustments:

Max Bar Distance: This parameter determines the maximum distance allowed between two low or high points for a divergence to be recognized. A higher value may result in more signals, but may also increase the number of false signals. It is recommended to adjust this value based on the volatility of the asset and the time period in which it is being traded.

RSI Length: This is the time period used to calculate the RSI. A longer period smoothes the indicator, while a shorter period makes it more sensitive to price changes. The default value is 14, but traders can adjust it based on their trading strategy and the asset's volatility.

RSI Overbought and Oversold: These values determine the levels at which the RSI is considered overbought and oversold, respectively. The default value for overbought is 75 and for oversold is 35. Traders can adjust these values according to the asset's volatility and its historical analysis. For example, in more volatile assets, it may be useful to use more extreme levels, such as 80 for overbought and 20 for oversold.

When adjusting indicator settings, traders must consider the balance between sensitivity and accuracy. Careful tuning of these parameters can help filter out false signals and identify more reliable trading opportunities.

The alerts functionality in this RSI Divergence indicator is designed to notify traders when a bearish divergence or a bullish divergence is detected. Here's how it works:

Conditionally Triggered Alerts:

Alerts are triggered based on the boolean variables bearishDivergence and bullishDivergence.
If bearishDivergence is true, it indicates that a bearish divergence has been detected.
If bullishDivergence is true, it indicates that a bullish divergence has been detected.

Alert Message:

When a divergence is detected, an alert message is generated to inform the trader about the event.
The message includes details about the divergence, such as the difference in the RSI value between the two points forming the divergence.
For example, for a bearish divergence, the message will include the phrase "Bearish RSI Divergence Detected" and the RSI difference between the high and low points of the divergence.

Alert Frequency:

Alerts are configured to be triggered once per bar close (alert.freq_once_per_bar_close), which means the alert will only be sent once at the close of each bar.
This helps to avoid multiple alerts for the same divergence during the same time period.

Additional Alert Conditions:

In addition to conditionally triggered alert messages, alert conditions are defined for both bearish and bullish divergences.
These alert conditions are useful for configuring custom alerts on trading platforms that support running Pine Script code.
Overall, this alert functionality allows traders to stay informed about potential trading opportunities based on divergences detected by the indicator. This can help traders make faster and more informed decisions in their trading processes.
Relative Strength Index (RSI)

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항