SnipeTheDipNDieRich

Average Triangular Moving Averages SWMA

This Pine Script indicator, called "Average Triangular Moving Averages SWMA" (ATMAs SWMA), is designed for TradingView. It creates a visual representation of moving averages to help traders analyze price trends.

The indicator allows users to customize its behavior through input parameters:

length1, length2, and length3 represent the lengths of three moving averages.
displace enables users to shift the moving averages backward or forward in time.
The code calculates effective lengths for the moving averages by taking half of the user-defined lengths and rounding up to the nearest whole number.

It computes three sets of moving averages:

avgPrice1, avgPrice2, and avgPrice3 are simple moving averages (SMA) of the price data with the specified displacement.
avgTri1, avgTri2, and avgTri3 are SMAs of the previously calculated avgPrice series using effective lengths.
The script then plots these three sets of avgTri moving averages on the chart with different colors, providing a visual representation of regular moving averages.

Next, the code calculates smoothed moving averages using Simple Weighted Moving Averages (SWMA) for the three sets of avgTri moving averages:

avgTri1s, avgTri2s, and avgTri3s represent SWMA of avgTri1, avgTri2, and avgTri3, respectively.
Finally, the indicator plots these SWMA moving averages on the chart with different colors, allowing traders to observe both regular and smoothed moving averages.

In summary, this TradingView indicator helps traders visualize and interpret moving average trends. The regular and smoothed moving averages give insights into price movements, aiding in decision-making for trading strategies. Users can adjust the lengths and displacement to suit their specific analysis needs.
Notes de version:
This Pine Script indicator, called "Average Triangular Moving Averages SWMA" (ATMAs SWMA), is designed for TradingView. It creates a visual representation of moving averages to help traders analyze price trends.

The indicator allows users to customize its behavior through input parameters:

length1, length2, and length3 represent the lengths of three moving averages.
displace enables users to shift the moving averages backward or forward in time.
The code calculates effective lengths for the moving averages by taking half of the user-defined lengths and rounding up to the nearest whole number.

It computes three sets of moving averages:

avgPrice1, avgPrice2, and avgPrice3 are simple moving averages (SMA) of the price data with the specified displacement.
avgTri1, avgTri2, and avgTri3 are SMAs of the previously calculated avgPrice series using effective lengths.
The script then plots these three sets of avgTri moving averages on the chart with different colors, providing a visual representation of regular moving averages.

Next, the code calculates smoothed moving averages using Simple Weighted Moving Averages (SWMA) for the three sets of avgTri moving averages:

avgTri1s, avgTri2s, and avgTri3s represent SWMA of avgTri1, avgTri2, and avgTri3, respectively.
Finally, the indicator plots these SWMA moving averages on the chart with different colors, allowing traders to observe both regular and smoothed moving averages.

In summary, this TradingView indicator helps traders visualize and interpret moving average trends. The regular and smoothed moving averages give insights into price movements, aiding in decision-making for trading strategies. Users can adjust the lengths and displacement to suit their specific analysis needs.
Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?