OPEN-SOURCE SCRIPT

RSI Momentum [CrossTrade]

The RSI Momentum indicator generates buy and sell signals based on the Relative Strength Index (RSI) crossing specific thresholds. The Key difference is that we're using RSI overbought and oversold readings as the foundation for finding continuation signals in the same direction of that momentum. This solves the issue of trying to buy the bottom or sell the top and offsets any oscillators main weakness, divergence and false signals in a strong trend.

Key Parameters:

RSI Length: Determines the calculation period for the RSI.
Overbought Threshold: The RSI level above which the asset is considered overbought.
Momentum Loss Threshold for Buy: The RSI level below which a loss in upward momentum is indicated, triggering a potential buy signal.
Oversold Threshold: The RSI level below which the asset is considered oversold.
Momentum Loss Threshold for Sell: The RSI level above which a loss in downward momentum is indicated, triggering a potential sell signal.
Allow Additional Retracement Signals: A toggle to allow more than one signal within a certain number of bars after the first signal.
Max Additional Signals: The maximum number of additional signals allowed after the first signal.

Buy Signal Logic:

Initial Signal: Generated when the RSI first exceeds the overbought threshold and then falls below the momentum loss buy threshold. Defaults are 70 for the overbought threshold and 60 for the retracement level.

Additional Signals for Deeper Retracements: If enabled, the script shows additional buy signals within the maximum limit set by Max Additional Signals. These additional signals are shown only if each new signal's bar has a lower low than the previous signal's bar.

Sell Signal Logic:

Initial Signal: Similar to the buy signal, a sell signal is generated when the RSI first drops below the oversold threshold and then rises above the momentum loss sell threshold. Defaults are 30 for the oversold threshold and 40 for the retracement level.

Additional Signals for Deeper Retracements: If enabled, additional sell signals are shown, limited by Max Additional Signals, and only if each new signal's bar has a higher high than the previous signal's bar.

Continuation Signals in Strong Trends:

The script allows for a new series of signals (starting with the first signal again) when the RSI pattern repeats. For buy signals, this means going above the overbought and then below the momentum loss buy threshold. For sell signals, it's dropping below oversold and then above the momentum loss sell threshold.

Alerts:
The script includes alert conditions for both buy and sell signals, which can be configured in the TradingView alerts.
Relative Strength Index (RSI)rsimomentum

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항