OPEN-SOURCE SCRIPT
Buy Signal EMA& RSI [CocoChoco]

█ OVERVIEW
This indicator is a momentum breakout tool designed for trend-following traders.
It produces buy signals (long only).
It is based on the "50-200 EMA & RSI25 crossover indicator" tradingview.com/v/cbxXe5Kf/ by rahulbalaji4574, which has been upgraded to Pine Script v6. Most importantly, I added filters to reduce false signals and improve overall timing.
The core logic ensures you only enter a trade when a long-term trend is confirmed, momentum is surging but not exhausted, and there is significant market participation (volume).
█ KEY IMPROVEMENTS & LOGIC
This version introduces several "Smart Filters" to the original base logic:
Momentum Sweet Spot: Unlike the original which only required RSI > 50, this version requires the RSI to be between 55 and 80 and actively rising. This avoids "choppy" entries and overextended "blow-off tops."
Trend Strength (ADX): An integrated ADX filter ensures the market is in a strong trend (ADX > 20) before a signal is generated.
Risk Management (ATR Trailing Stop): A dynamic trailing stop-loss based on 1.5x ATR is plotted automatically to help you manage risk and lock in profits.
Real-time Dashboard: A non-intrusive table in the bottom-right corner displays live RSI and ADX values for quick reference.
█ HOW TO USE
Look for the Signal: A large green triangle appears below a bar when all trend, momentum, and volume conditions align.
Manage the Trade: Use the plotted red line as your dynamic trailing stop-loss. If the price closes below this line, the trade is considered exited, and the stop will reset.
Confirm with the Dashboard: Check the bottom-right corner to see if the market is gaining strength (ADX) or nearing exhaustion (RSI).
█ ADJUSTING SETTINGS
You can fully customize the indicator by clicking the Settings (gear icon) next to the indicator name on your chart.
Inputs Tab: Adjust the RSI thresholds, EMA lengths, or the ATR multiplier to fit your specific asset and timeframe.
Style Tab: Change the colors of the 50/200 EMA, the trailing stop-loss line, and the signal triangles to match your chart's theme.
This indicator is a momentum breakout tool designed for trend-following traders.
It produces buy signals (long only).
It is based on the "50-200 EMA & RSI25 crossover indicator" tradingview.com/v/cbxXe5Kf/ by rahulbalaji4574, which has been upgraded to Pine Script v6. Most importantly, I added filters to reduce false signals and improve overall timing.
The core logic ensures you only enter a trade when a long-term trend is confirmed, momentum is surging but not exhausted, and there is significant market participation (volume).
█ KEY IMPROVEMENTS & LOGIC
This version introduces several "Smart Filters" to the original base logic:
Momentum Sweet Spot: Unlike the original which only required RSI > 50, this version requires the RSI to be between 55 and 80 and actively rising. This avoids "choppy" entries and overextended "blow-off tops."
Trend Strength (ADX): An integrated ADX filter ensures the market is in a strong trend (ADX > 20) before a signal is generated.
Risk Management (ATR Trailing Stop): A dynamic trailing stop-loss based on 1.5x ATR is plotted automatically to help you manage risk and lock in profits.
Real-time Dashboard: A non-intrusive table in the bottom-right corner displays live RSI and ADX values for quick reference.
█ HOW TO USE
Look for the Signal: A large green triangle appears below a bar when all trend, momentum, and volume conditions align.
Manage the Trade: Use the plotted red line as your dynamic trailing stop-loss. If the price closes below this line, the trade is considered exited, and the stop will reset.
Confirm with the Dashboard: Check the bottom-right corner to see if the market is gaining strength (ADX) or nearing exhaustion (RSI).
█ ADJUSTING SETTINGS
You can fully customize the indicator by clicking the Settings (gear icon) next to the indicator name on your chart.
Inputs Tab: Adjust the RSI thresholds, EMA lengths, or the ATR multiplier to fit your specific asset and timeframe.
Style Tab: Change the colors of the 50/200 EMA, the trailing stop-loss line, and the signal triangles to match your chart's theme.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。