OPEN-SOURCE SCRIPT

3SMA Multi Time Frame

118
This is a Multi-Time Frame 3 Simple Moving Averages (SMA) indicator, built on Pine Script v6. The indicator is designed to display three SMAs with customizable periods directly on the chart, allowing traders to visualize multiple timeframes and make more informed decisions.

Key Features:

3 SMAs (Simple Moving Averages): The script plots three SMAs with different user-defined periods, helping you analyze trends across different timeframes.

SMA1 (default period: 7)

SMA2 (default period: 25)

SMA3 (default period: 99)

Customization: All three SMA periods are customizable through the input settings, enabling you to adjust the SMAs according to your trading strategy.

Timeframe Flexibility: The indicator uses the timeframe parameter, allowing for multi-timeframe analysis, which helps you view the same indicator across different time periods simultaneously.

The three SMAs are displayed in distinct colors for quick identification:

SMA1 (7-period) in red.

SMA2 (25-period) in yellow.

SMA3 (99-period) in purple.

What’s New in This Version:

Upgraded to Pine Script v6: The script has been updated to use the latest features and optimizations of Pine Script v6, making it faster and more efficient. It now utilizes color.new for better control over transparency, and the plotting is more reliable.

Multi-Timeframe Support: The addition of the timeframe parameter provides flexibility, enabling you to apply the same indicator to different timeframes for more comprehensive market analysis.

Improved Input Handling: The script now uses input.int for integer inputs, which is more intuitive and aligns with the best practices in Pine Script v6.

Special Thanks:

A huge thanks to the original creator of this idea, VictorGrego for the foundational work and inspiration behind this script. This updated version builds on their excellent concept and introduces enhancements with the latest Pine Script updates.

And another special thanks to my teacher tradecitypro for the incredible strategy
Key Notes:

The script uses Pine Script's built-in functions ta.sma() for calculating the SMAs and color.new() to manage colors and transparency effectively.

The updated script has better performance and looks sleeker with updated handling of colors and timeframes.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.