OPEN-SOURCE SCRIPT

Adaptive Momentum Oscillator [LuxAlgo]

21 689
The Adaptive Momentum Oscillator tool allows traders to measure the current relative momentum over a given period using the maximum delta in price.

It features a histogram with gradient color, divergences, and an adaptive moving average that allows traders to clearly see the smoothed trend direction.

🔶 USAGE

snapshot

This unbounded oscillator has positive momentum when values are above 0 and negative momentum when values are below 0. The adaptive moving average is used as a minimum lag smoothing tool over the momentum histogram.

🔹 Signal Line

snapshot

There are two main uses for the signal line drawn on the chart above.

  • Momentum crosses above or below the signal line: acceleration in momentum.
  • Signal line crosses the 0 value: positive or negative momentum.


🔹 Data Length

snapshot

On the chart above, we can compare different length sizes and how the tool values change, allowing traders to get a shorter or longer-term view of current market strength.

🔹 Smoothing Length

snapshot

In the previous figure, we can compare how different Smoothing Length values affect the oscillator output.

🔹 Divergences

snapshot

The divergence detector is disabled by default. Traders can enable it and adjust the divergence length from the settings panel.

snapshot

As we can see in the chart above, by changing the length of the divergences, traders can fine-tune their detection, a small number will detect smaller divergences, and use a larger number for larger divergences.

🔶 SETTINGS

  • Data: Select data source, close price by default
  • Data Length: Select the length for data gathering
  • Smoothing Length: Select the length for data smoothing
  • Divergences: Enable/Disable divergences detection and length

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.