OPEN-SOURCE SCRIPT
Monthly DI+ & RSI Strategy

Overview This strategy is designed to capture significant trend reversals and continuations on the Monthly timeframe. It combines the trend-following capability of the Directional Movement Index (DMI) with the fast momentum detection of RSI (Period 6).
Core Logic The strategy triggers a long position based on a dual-confirmation system. It looks for a specific "handshake" between Trend (DI) and Momentum (RSI).
Entry Conditions (OR Logic) A Buy signal is generated if EITHER of the following occurs:
Trend Trigger: DI+ crosses over DI- (while RSI is already bullish, trading above its SMA).
Momentum Trigger: RSI(6) crosses over RSI SMA(14) (while the trend is already bullish, with DI+ > DI-).
Exit Condition (Stop Loss)
Trend Reversal: The position is closed immediately if DI- crosses over DI+, indicating the bullish trend has been invalidated.
Default Settings
Timeframe: Optimized for 1M (Monthly) charts.
RSI: Length 6
RSI SMA: Length 14
DMI: Length 14 / Smoothing 14
Risk Warning This script is for educational purposes only. Past performance does not guarantee future results. Always backtest on your specific asset classes before trading.
Core Logic The strategy triggers a long position based on a dual-confirmation system. It looks for a specific "handshake" between Trend (DI) and Momentum (RSI).
Entry Conditions (OR Logic) A Buy signal is generated if EITHER of the following occurs:
Trend Trigger: DI+ crosses over DI- (while RSI is already bullish, trading above its SMA).
Momentum Trigger: RSI(6) crosses over RSI SMA(14) (while the trend is already bullish, with DI+ > DI-).
Exit Condition (Stop Loss)
Trend Reversal: The position is closed immediately if DI- crosses over DI+, indicating the bullish trend has been invalidated.
Default Settings
Timeframe: Optimized for 1M (Monthly) charts.
RSI: Length 6
RSI SMA: Length 14
DMI: Length 14 / Smoothing 14
Risk Warning This script is for educational purposes only. Past performance does not guarantee future results. Always backtest on your specific asset classes before trading.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน