OPEN-SOURCE SCRIPT
RSI-EMA-Crossing with Donchian-Stop-Loss

The Donchian RSI Indicator is a visual tool that combines momentum and trend analysis to identify high-quality long opportunities based on RSI crossovers, price action, and Donchian channel dynamics.
How It Works
Stop-Loss (Visual Only)
The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level.
Features
Use Case
Designed for swing and position traders
Optimized for use on daily or 4H charts
How It Works
- Momentum Signal: A bullish RSI crossover is detected when the RSI crosses above its moving average.
- Trend Filter: A signal is only valid if the crossover occurs while the price is above its moving average – filtering out entries against the prevailing trend.
- Signal Candle: The high of the crossover candle is stored.
- Entry Trigger: A valid signal occurs when a later candle closes above that signal high.
Stop-Loss (Visual Only)
The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level.
Features
- Customizable RSI, Donchian Channel, and moving average lengths
- Selectable MA types: SMA, EMA, WMA, VWMA, HMA
- Signal candle highlighted (yellow background)
- Entry points labeled on the chart
- Price MA and Donchian Channel plotted
- Trend filter improves signal quality by confirming upward bias
Use Case
Designed for swing and position traders
Optimized for use on daily or 4H charts
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。