OPEN-SOURCE SCRIPT

Custom Timeframe SMAs

36
This indicator plots up to three Simple Moving Averages (SMAs), each calculated from a user-selected timeframe and displayed on the current chart. This allows you to visualize higher- or lower-timeframe SMAs without switching charts.

Features

Three fully customizable SMAs with alerts

Each SMA has its own:

Length

Timeframe

Color

Line thickness

On/Off toggle


Use Cases

View higher timeframe SMAs (e.g., 1-hour 50 SMA on a 5-minute chart)

Combine trend signals across multiple timeframes

Track dynamic support/resistance from different timeframes

Enhance scalping, day trading, or swing trading setups

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.