OPEN-SOURCE SCRIPT
Versatile Moving Average

The Versatile Moving Average (VMA) is a comprehensive, all-in-one tool for trend analysis. It is designed to act as a central hub for advanced MA calculations by combining a wide selection of average types, calculation modes, and a multi-timeframe engine.
Key Features:
Comprehensive MA Selection: Provides a wide variety of moving average types (e.g., EMA, SMA, WMA, HMA, and their volume-weighted counterparts). Allows full customization of length, source, and offset.
Advanced Calculation Modes:
Volume Weighting: Optionally weights the selected MA calculation by volume, making it more responsive to market participation.
Normalization (Geometric Average): A key feature is the optional 'Normalize' mode. When enabled, the indicator calculates a Geometric Moving Average by averaging the logarithms of the source price. This measures the average compound growth rate, making it well-suited for analyzing assets with exponential price behavior.
Multi-Timeframe (MTF) Engine: The indicator includes an MTF conversion block. When a Higher Timeframe (HTF) is selected, advanced options become available: Fill Gaps handles data gaps, and Wait for timeframe to close prevents repainting by ensuring the indicator only updates when the HTF bar closes.
Integrated Alerts: Comes with built-in alerts for the source price crossing over or under the calculated VMA, allowing for timely notifications.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Key Features:
Comprehensive MA Selection: Provides a wide variety of moving average types (e.g., EMA, SMA, WMA, HMA, and their volume-weighted counterparts). Allows full customization of length, source, and offset.
Advanced Calculation Modes:
Volume Weighting: Optionally weights the selected MA calculation by volume, making it more responsive to market participation.
Normalization (Geometric Average): A key feature is the optional 'Normalize' mode. When enabled, the indicator calculates a Geometric Moving Average by averaging the logarithms of the source price. This measures the average compound growth rate, making it well-suited for analyzing assets with exponential price behavior.
Multi-Timeframe (MTF) Engine: The indicator includes an MTF conversion block. When a Higher Timeframe (HTF) is selected, advanced options become available: Fill Gaps handles data gaps, and Wait for timeframe to close prevents repainting by ensuring the indicator only updates when the HTF bar closes.
Integrated Alerts: Comes with built-in alerts for the source price crossing over or under the calculated VMA, allowing for timely notifications.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.