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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.