Inputs: Users can adjust the Bollinger Bands' parameters, including the length of the moving average, type of moving average (SMA, EMA, SMMA, WMA, VWMA), source data (e.g., close price), and standard deviation multiplier. An offset is also available for shifting the Bollinger Bands horizontally.
Calculation: The basis line is calculated using the selected moving average type and length. The upper and lower bands are computed by adding and subtracting the standard deviation (multiplied by the user-defined multiplier) from the basis line.
Plot: The basis, upper, and lower Bollinger Bands are plotted on the chart with customizable colors and offsets.
A series of EMAs with different lengths (3, 5, 8, 10, 12, 15, 30, 33, 40, 45, 50, 60, and 90) are computed using the close price.
Visualization: Short-term EMAs (3–15) are plotted in cyan. Medium-term EMAs (30–45) are plotted in red. Long-term EMAs (50–90) are plotted in varying shades of blue, indicating different levels of transparency for better distinction.
Application and Use This indicator is designed for traders who want to:
Identify trends: Use the GMMA to gauge short-term, medium-term, and long-term price movements. Converging or diverging EMAs can indicate trend strength or potential reversals.
Spot volatility: Bollinger Bands help detect periods of high or low volatility. When prices touch or cross the upper or lower band, they may signal overbought or oversold conditions.
Combine both tools for confirmation: Bollinger Bands can validate trend directions identified by the GMMA. For example, if short-term EMAs in the GMMA start crossing above long-term EMAs and the price stays above the Bollinger Bands' basis, it could signal a bullish trend.
In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.
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.