OPEN-SOURCE SCRIPT

Rocket Moving Average

77
The **Rocket Moving Average** is a simple Pine Script indicator based on a **20-period Simple Moving Average (SMA)**. The script begins with **version 5** of Pine Script and sets up an indicator named **"Rocket Moving Average"** with the `overlay=true` parameter, ensuring it is plotted directly on the price chart. The **SMA** is calculated using the closing prices over the last **20 candles**, providing a smoothed trend line that helps traders identify price direction. The moving average is then plotted as a **purple-colored line (RGB: 167, 8, 162)** using the `plot()` function. This indicator is useful for trend analysis and identifying support/resistance levels.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。