OPEN-SOURCE SCRIPT
Trend Continuation Indicator

TrendContinuation Indicator
The TrendContinuation indicator is a tool for identifying potential long and short setups in trending markets. It combines three elements: candlestick pattern recognition, RSI filtering, and a higher-timeframe EMA.
EMA filter: The EMA defines the main trend.
RSI filter: The RSI is used to avoid trades against momentum, with customizable overbought and oversold levels.
Candlestick signals: When conditions align, the indicator prints a green arrow for a possible long setup or a red arrow for a possible short setup.
Settings
Important Notes
The TrendContinuation indicator is a tool for identifying potential long and short setups in trending markets. It combines three elements: candlestick pattern recognition, RSI filtering, and a higher-timeframe EMA.
EMA filter: The EMA defines the main trend.
- If price is above the EMA → only long setups are considered.
- If price is below the EMA → only short setups are considered.
RSI filter: The RSI is used to avoid trades against momentum, with customizable overbought and oversold levels.
Candlestick signals: When conditions align, the indicator prints a green arrow for a possible long setup or a red arrow for a possible short setup.
Settings
- RSI Length: default 14
- Overbought/Oversold Levels: default 60 / 40
- EMA Length: default 60
- Timeframe for EMA: must always be set to a higher timeframe than the chart you are on (e.g., using a 15m EMA on a 2m chart).
- ATR Candle Multiplier and Swing Low Lookback Bars: optional parameters for fine-tuning.
Important Notes
- The EMA timeframe setting is critical: if it is not higher than the current chart timeframe, the indicator will not work correctly.
- This indicator should not be used as a standalone system. It is intended as an additional tool that can support trade decisions when combined with other analysis methods.
- Users are encouraged to test different settings and timeframes to find what works best for their own strategy.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。