OPEN-SOURCE SCRIPT
SuperTrend MA Fusion MTF [CNU]

SuperTrend MA Fusion MTF [CNU] is a non-repainting, multi–timeframe SuperTrend that combines ATR with flexible MA smoothing to create a smoother and more adaptive trend line.
The script calculates two SuperTrends:
You can control the higher timeframe in two ways:
Signals & Alerts
Because all logic is based on confirmed bar closes and request.security() with lookahead_off, the SuperTrend lines and signals are non-repainting in live trading.
The script calculates two SuperTrends:
- LTF (chart timeframe) – main trend and optional background shading.
- HTF (higher timeframe) – higher-level bias and confirmation.
You can control the higher timeframe in two ways:
- HTF Method = Auto → the script automatically selects a reasonable higher timeframe based on the chart (e.g. 1m → 5m, 5m → 15m, 15m → 1h, etc.).
- HTF Method = User Defined → you manually choose any higher timeframe you prefer.
Signals & Alerts
- HTF flip signals (trend changes on the higher timeframe).
- LTF pyramiding signals that only trigger in the same direction as the current HTF trend
- (e.g. when HTF is long, LTF will only generate additional long signals, never shorts).
Because all logic is based on confirmed bar closes and request.security() with lookahead_off, the SuperTrend lines and signals are non-repainting in live trading.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน