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. اقرأ المزيد في شروط الاستخدام.