Indicator · Pine Script v6 · Own pane

Volatility-Adjusted Momentum Oscillator (VAMO)

by TPTBusiness

This indicator plots a Volatility-Adjusted Momentum Oscillator in a separate pane.

View on GitHub

GitHub stars4on the repository
Pine versionv6current
Lines of code43
Settings5inputs
LicenceMIT
Last update12 months ago1 Nov 2025

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

43 lines of Pine Script v6 from Indicator.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

Indicator.pine
//@version=6
// MIT License
// Copyright (c) 2025 TPTBusiness
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

indicator(title="Volatility-Adjusted Momentum Oscillator (VAMO)", shorttitle="VAMO", overlay=false)

// Inputs
momLength = input.int(14, title="Momentum Length", minval=1)
volLength = input.int(14, title="Volatility Length (ATR)", minval=1)
signalLength = input.int(9, title="Signal Line Length (EMA)", minval=1)
obLevel = input.float(70, title="Overbought Level", minval=0)
osLevel = input.float(30, title="Oversold Level", minval=0)

// Calculations
momentum = ta.roc(close, momLength) // Standard rate of change (momentum)
volatility = ta.atr(volLength) // Average True Range as volatility measure
vamo = momentum / volatility * 100 // Adjust momentum by volatility and scale for readability
signal = ta.ema(vamo, signalLength) // EMA signal line for crossovers

// Plots
plot(vamo, color=color.blue, title="VAMO Oscillator", linewidth=2)
plot(signal, color=color.orange, title="Signal Line", linewidth=1)
hline(obLevel, "Overbought", color=color.red, linestyle=hline.style_dashed)
hline(osLevel, "Oversold", color=color.green, linestyle=hline.style_dashed)

// Background colors for overbought/oversold
bgcolor(vamo > obLevel ? color.new(color.red, 90) : na)
bgcolor(vamo < osLevel ? color.new(color.green, 90) : na)

Overview

Volatility-Adjusted Momentum Oscillator (VAMO) divides the rate of change of close by the average true range, scales the result by 100, and overlays an exponential moving average as a signal line. Horizontal lines and background shading mark user-set overbought and oversold levels. Momentum length, ATR length, signal length, and those two levels are adjustable. It does not place trades or draw crossover markers.

Details

Published by

TPTBusiness on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Oscillators & momentum, Volatility & bands

Markets

Crypto

Timeframes

M1-M5

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Momentum Lengthint14momLength
Volatility Length (ATR)int14volLength
Signal Line Length (EMA)int9signalLength
Overbought Levelfloat70obLevel
Oversold Levelfloat30osLevel
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

TTM Squeeze

by Alorse
330 stars

This indicator plots a TTM Squeeze momentum oscillator in a separate pane. It compares a Bollinger Band offset to a Keltner Channel offset and marks the zero line white when the difference is non-negative and black when the bands are inside the channel. A line

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TTM Squeeze

Function - Logistic Equation

by ricardosantos79
261 stars

Calculates dynamic modeling values by applying a mathematical logistic differential equation to price change over a specified lookback length. It measures price momentum relative to the recent high-low price range. The script plots positive and negative logist

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of Function - Logistic Equation

MACD-V

by harryguiacorn
219 stars

MACD-V is a volatility-normalized momentum indicator based on research by Alex Spiroglou. It calculates the standard MACD histogram and normalizes it by dividing by the Average True Range (ATR). Plotted in a separate pane as a colored histogram, it includes us

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of MACD-V
218 stars

This indicator detects a Bollinger Band squeeze when the bands sit inside Keltner Channels, marking low volatility. It plots red dots during a squeeze and green dots when the bands are outside, in a separate pane. An optional histogram shows momentum as the cl

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Bollinger Band Squeeze Detector
147 stars

This indicator generates trade entry signals and target levels optimized for 1-hour timeframes, designed for external signal extraction. It calculates 7-period and 16-period EMAs alongside 10-period RSI and ATR filters. Long signals occur when the fast EMA cro

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Signal Strategy 100 Candles of 1H Timeframe

Bubbles Indicator

by capissimo
114 stars

The Bubbles Indicator measures volatility squeezes and expansion bursts using Bollinger Bands combined with a sinusoid oscillator and RSI divergence. It processes price data through scaled Bollinger Bands to highlight volatility changes while confirming trend

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Bubbles Indicator

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers