OPEN-SOURCE SCRIPT
Triple SMA with Trend Confirmation Signals

A clean and customizable moving average indicator featuring three SMAs (50, 150, 200) with intelligent trend confirmation arrows.
Features:
Three Moving Averages: 50, 150, and 200-period SMAs with fully customizable colors and line widths
50/150 Crossover Dots: Visual markers on the 150 MA line when the 50 MA crosses over/under
Trend Confirmation Arrows: Smart arrows that confirm sustained moves above/below the 150 MA
No False Signals: Arrows only appear after two closes in the same direction, preventing whipsaws
How It Works:
The 150 SMA is the key decision line. The indicator tracks when price moves above or below this level and waits for confirmation before displaying an arrow:
Upward Arrow (↑): Appears above candle when price closes above the 150 MA twice, with the second close higher than the first
Downward Arrow (↓): Appears below candle when price closes below the 150 MA twice, with the second close lower than the first
Arrows alternate - you'll never see two consecutive arrows in the same direction, ensuring you only get signals at genuine trend changes.
Use Cases:
Identify sustained breakouts above/below the 150 MA
Confirm trend direction before entering trades
Spot potential exit points when price weakens below key moving averages
Track golden/death crosses between the 50 and 150 SMAs
Customization:
All colors, line widths, and periods are fully adjustable through the settings panel. Arrow color is also customizable for your preferred chart theme.
Features:
Three Moving Averages: 50, 150, and 200-period SMAs with fully customizable colors and line widths
50/150 Crossover Dots: Visual markers on the 150 MA line when the 50 MA crosses over/under
Trend Confirmation Arrows: Smart arrows that confirm sustained moves above/below the 150 MA
No False Signals: Arrows only appear after two closes in the same direction, preventing whipsaws
How It Works:
The 150 SMA is the key decision line. The indicator tracks when price moves above or below this level and waits for confirmation before displaying an arrow:
Upward Arrow (↑): Appears above candle when price closes above the 150 MA twice, with the second close higher than the first
Downward Arrow (↓): Appears below candle when price closes below the 150 MA twice, with the second close lower than the first
Arrows alternate - you'll never see two consecutive arrows in the same direction, ensuring you only get signals at genuine trend changes.
Use Cases:
Identify sustained breakouts above/below the 150 MA
Confirm trend direction before entering trades
Spot potential exit points when price weakens below key moving averages
Track golden/death crosses between the 50 and 150 SMAs
Customization:
All colors, line widths, and periods are fully adjustable through the settings panel. Arrow color is also customizable for your preferred chart theme.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน