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 อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน