OPEN-SOURCE SCRIPT
Atualizado ADX-vALMA (N)

Its an advanced version of the Average Directional Index (ADX) designed to identify trend strength and direction with less lag and better smoothing.
Here is the breakdown of what it does:
1. Volume-Weighted ALMA (vALMA)
Instead of standard moving averages, this script uses ALMA (Arnaud Legoux Moving Average) weighted by volume.
The Benefit: It reduces the "lag" typically found in indicators while maintaining a very smooth line. The volume weighting ensures that price moves with high trading activity carry more weight.
2. Normalized ADX Mode (option)
You can toggle between two modes:
- Standard ADX: The classic calculation of trend strength.
- Normalized ADX: Rescales the ADX values to a 0–100 range based on a specific lookback period (default 50 bars). This helps identify trend surges relative to recent market behavior.
3. Visual Buy/Sell Signals
The script automatically plots shapes on your main price chart:
Green Triangle Up: Appears when the DI+ (bullish pressure) crosses above DI- (bearish pressure).
Red Triangle Down: Appears when the DI- crosses above DI+.
Note: There is a "Visual Offset" setting that allows you to shift these icons horizontally.
4. Dynamic ADX Coloring
The main ADX line changes color based on its slope:
Lime: Trend strength is currently increasing.
Red: Trend strength is fading or the market is entering a sideways phase.
5. Trend Filtering
It includes a Trend Threshold (defaulted at 22). When the ADX line is above this level, it indicates the market is in a strong trending state; below it, the market is considered "choppy" or range-bound.
Summary: It is a sophisticated trend-following tool that combines directional movement (DI+/DI-) with a high-tech filter (vALMA) to provide cleaner signals than the default ADX.
Here is the breakdown of what it does:
1. Volume-Weighted ALMA (vALMA)
Instead of standard moving averages, this script uses ALMA (Arnaud Legoux Moving Average) weighted by volume.
The Benefit: It reduces the "lag" typically found in indicators while maintaining a very smooth line. The volume weighting ensures that price moves with high trading activity carry more weight.
2. Normalized ADX Mode (option)
You can toggle between two modes:
- Standard ADX: The classic calculation of trend strength.
- Normalized ADX: Rescales the ADX values to a 0–100 range based on a specific lookback period (default 50 bars). This helps identify trend surges relative to recent market behavior.
3. Visual Buy/Sell Signals
The script automatically plots shapes on your main price chart:
Green Triangle Up: Appears when the DI+ (bullish pressure) crosses above DI- (bearish pressure).
Red Triangle Down: Appears when the DI- crosses above DI+.
Note: There is a "Visual Offset" setting that allows you to shift these icons horizontally.
4. Dynamic ADX Coloring
The main ADX line changes color based on its slope:
Lime: Trend strength is currently increasing.
Red: Trend strength is fading or the market is entering a sideways phase.
5. Trend Filtering
It includes a Trend Threshold (defaulted at 22). When the ADX line is above this level, it indicates the market is in a strong trending state; below it, the market is considered "choppy" or range-bound.
Summary: It is a sophisticated trend-following tool that combines directional movement (DI+/DI-) with a high-tech filter (vALMA) to provide cleaner signals than the default ADX.
Notas de Lançamento
Added D+, D-, and TR smoothing selection options:- Fast - smoothing based on the volume-weighted average ALMA (vALMA)
- Standard - smoothing as in the original Wilder indicator (RMA)
The ADX curve remains unchanged - it is still based on vALMA
Notas de Lançamento
Chart update - indicating differences between the quick and standard versionsScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.