Tradehook — Trading Automation Service
highvolumePattern-Based

VMAlgo

The Volume Momentum Algorithm (VMAlgo) represents the foundational confirmation system upon which all other MTMGBS strategies are built. This institutional-grade algorithm synthesizes three critical market dimensions—volatility structure, momentum trajectory, and price position—into a unified scoring system that identifies statistically significant trading opportunities.

TradingView Preview
See this algorithm in action on real charts
VMAlgo TradingView chart
Performance Metrics
Historical backtesting results
78.6%
Win Rate
2.00
Profit Factor
34.2%
Max Drawdown
$1353
Avg Trade
Based on 224 trades

About This Algorithm

VOLUME MOMENTUM ALGORITHM

Quick Facts:

  • Category: Volatility + Momentum Hybrid
  • Markets: Futures, Forex, Stocks, Crypto
  • Timeframes: 5min, 15min, 1H, 4H

Overview

The Volume Momentum Algorithm (VMAlgo) represents the foundational confirmation system upon which all other MTMGBS strategies are built. This institutional-grade algorithm synthesizes three critical market dimensions—volatility structure, momentum trajectory, and price position—into a unified scoring system that identifies statistically significant trading opportunities.

VMAlgo was engineered to solve a fundamental problem in algorithmic trading: how to objectively quantify the confluence of multiple market factors without subjective interpretation. The result is a proprietary VM Score ranging from -100 to +100 that precisely measures market bias at any given moment.


How It Works

VMAlgo operates through five interconnected calculation layers:

LAYER 1: VOLATILITY BANDS The algorithm constructs dynamic price channels using standard deviation mathematics (Bollinger-style). These bands expand during high volatility and contract during consolidation, providing context for price position.

  • Basis Line: SMA(close, bandPeriod) [default: 20]
    • Upper Band: Basis + StdDev × Multiplier [default: 2.0]
    • Lower Band: Basis - StdDev × Multiplier
    • Band Width: Upper - Lower (measures current volatility)

LAYER 2: MOMENTUM OSCILLATOR A MACD-style momentum calculation tracks directional energy:

  • Fast MA: EMA(close, fastPeriod) [default: 12]
    • Slow MA: EMA(close, slowPeriod) [default: 26]
    • Momentum Line: FastMA - SlowMA
    • Signal Line: EMA(Momentum, signalPeriod) [default: 9]
    • Histogram: Momentum - Signal (acceleration/deceleration)

LAYER 3: DISTANCE NORMALIZATION Price distance to bands is normalized against ATR for cross-market consistency:

  • Distance to Upper: (UpperBand - Close) / ATR × Multiplier
    • Distance to Lower: (Close - LowerBand) / ATR × Multiplier
    • Band Position: (Close - LowerBand) / BandWidth × 100 [0-100%]

LAYER 4: COMPOSITE VM SCORE The algorithm synthesizes all components into a single actionable score:

  • Bullish Bias: When momentum > 0, score increases as price nears lower band (oversold with bullish momentum = high-probability long opportunity)
    • Bearish Bias: When momentum < 0, score decreases as price nears upper band (overbought with bearish momentum = high-probability short opportunity)

Formula: vmScore = bullishBias + bearishBias (clamped to ±100)

LAYER 5: EMA TREND FILTER (Optional) An additional trend alignment layer ensures entries match higher-timeframe bias:

  • Fast EMA: EMA(close, fastEmaPeriod) [default: 8]
    • Slow EMA: EMA(close, slowEmaPeriod) [default: 21]
    • Bullish Filter: FastEMA > SlowEMA
    • Bearish Filter: FastEMA < SlowEMA

Signal Generation

LONG SIGNAL CONDITIONS: ✅ VM Score crosses above 0 (bullish bias detected) ✅ Momentum histogram > 0 (positive acceleration) ✅ EMA filter bullish (if enabled) ✅ Previous bar did not meet these conditions (new signal only)

SHORT SIGNAL CONDITIONS: ✅ VM Score crosses below 0 (bearish bias detected) ✅ Momentum histogram < 0 (negative acceleration) ✅ EMA filter bearish (if enabled) ✅ Previous bar did not meet these conditions (new signal only)


Key Parameters

VOLATILITY BANDS:

  • bandPeriod (20): SMA period for basis calculation
    • stdDevNumber (2.0): Standard deviation multiplier for band width

MOMENTUM OSCILLATOR:

  • fastPeriod (12): Fast EMA period
    • slowPeriod (26): Slow EMA period
    • signalPeriod (9): Signal line smoothing

DISTANCE MULTIPLIERS:

  • multiplierDTB (1.0): Distance-to-band sensitivity
    • multiplierMD (1.0): Momentum-distance composite sensitivity

EMA FILTER:

  • enableEmaCrossover (true): Enable/disable trend filter
    • fastEmaPeriod (8): Fast EMA for trend detection
    • slowEmaPeriod (21): Slow EMA for trend detection

Best Use Cases

✅ MEAN REVERSION at volatility band extremes with momentum confirmation ✅ TREND CONTINUATION entries when price pulls back but momentum holds ✅ CONFIRMATION LAYER for other pattern-based strategies ✅ FILTERING TOOL to improve win rate of any existing system ✅ MULTI-TIMEFRAME ANALYSIS using different settings per timeframe


Optimization Tips

FOR TRENDING MARKETS: • Increase bandPeriod (25-30) for smoother bands • Enable EMA crossover filter • Reduce stdDevNumber (1.5-1.8) for tighter entries

FOR RANGING MARKETS: • Decrease bandPeriod (14-18) for faster adaptation • Disable EMA crossover filter • Increase stdDevNumber (2.2-2.5) for extreme entries only

FOR SCALPING: • Reduce all periods by 30-50% • Lower multiplierMD (0.7-0.8) for more frequent signals • Use with tight session windows

FOR SWING TRADING: • Increase all periods by 50-100% • Raise multiplierMD (1.2-1.5) for high-conviction signals only • Enable trend filter for directional bias


Customer Reviews

No reviews yet. Be the first to review this algorithm!
Pattern-Based
Requires Pattern-Based Plan

Subscribe to Pattern-Based or higher to access

Subscription Access

Get access to this indicator/strategy on TradingView through our invite-only system. Your TradingView account will be granted access.

One-Time Purchase

Own the complete Pine Script source code forever. Modify, customize, and use it on your own TradingView account.

$750
Subscribe to any tier to unlock one-time purchases

What you get with source code:

  • Complete Pine Script v5 source code
  • Lifetime ownership - no recurring fees
  • Full customization rights
  • Use on your own TradingView account
PlatformTradingView
Subscription AccessTradingView Invite
One-Time PurchaseSource Code
LicensePersonal Use

We Value Your Privacy

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Read our Privacy Policy for more information.