Skip to content

VWLMA Strategy Templates

These three strategies showcase different ways to use Volume-Weighted Linear Moving Average in Reversion:

  1. VWLMA Trend Following with ADX Filterprice_above_vwlma / price_below_vwlma entries filtered by ADX trend strength
  2. VWLMA + RSI Pullback — Trade pullbacks in the trend direction using RSI extremes
  3. VWLMA + Bollinger Bands Squeeze — Breakout entries confirmed by both VWLMA direction and Bollinger Band breaks

Strategy 1: VWLMA Trend Following with ADX Filter

Overview

Enter long when price crosses above VWLMA in a trending market (ADX confirms), exit when price crosses below or trend weakens.

When This Works Best

  • Trending markets with sustained moves (ADX > 25)
  • Assets with clear directional behavior
  • 4H to 1D timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size50% of equity (REL)
Order TypeMARKET
TimeoutCOOLDOWN_ONLY, 3 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_above_vwlma
RequiredADXadx_above_threshold25

Long Exit Conditions

SettingValue
RequiredVWLMA · price_below_vwlma
Stop Loss5% (REL), trailing enabled
Take Profit10% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_below_vwlma
RequiredADXadx_above_threshold25

Short Exit Conditions

SettingValue
RequiredVWLMA · price_above_vwlma
Stop Loss5% (REL), trailing enabled
Take Profit10% (REL)

Recommended Parameters

IndicatorParameterValueNotes
VWLMAPeriod20 barsTrend smoothing lookback
ADXPeriod14 barsTrend strength filter
ADXThreshold25Minimum trend strength

Strategy 2: VWLMA + RSI Pullback

Overview

In an established uptrend (price above VWLMA), enter on RSI oversold pullbacks. In downtrends, enter shorts on RSI overbought rallies.

When This Works Best

  • Trending markets with periodic pullbacks
  • Assets that mean-revert after short-term extremes
  • 1H to 4H timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size40% of equity (REL)
Order TypeMARKET
TimeoutREGULAR, 2 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_above_vwlma
RequiredRSIrsi_below_threshold30

Long Exit Conditions

SettingValue
RequiredRSI · rsi_above_threshold · threshold: 60
Stop Loss4% (REL)
Take Profit8% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_below_vwlma
RequiredRSIrsi_above_threshold70

Short Exit Conditions

SettingValue
RequiredRSI · rsi_below_threshold · threshold: 40
Stop Loss4% (REL)
Take Profit8% (REL)

Recommended Parameters

IndicatorParameterValueNotes
VWLMAPeriod20 barsTrend direction filter
RSIPeriod14 barsMomentum lookback
RSIOversold30Long entry trigger
RSIOverbought70Short entry trigger

Strategy 3: VWLMA + Bollinger Bands Squeeze

Overview

Enter when price breaks above/below VWLMA while Bollinger Bands confirm the breakout direction.

When This Works Best

  • Breakout conditions after consolidation
  • Markets transitioning from low to high volatility
  • 1H to 1D timeframes

Algorithm Configuration

SettingValue
TypeBOTH
Position Size30% of equity (REL)
Order TypeMARKET
TimeoutCOOLDOWN_ONLY, 5 bars

Long Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_above_vwlma
RequiredBollinger Bandsprice_above_upperBand

Long Exit Conditions

SettingValue
RequiredVWLMA · price_below_vwlma
Stop Loss5% (REL)
Take Profit12% (REL)

Short Entry Conditions

GroupIndicatorSignalThreshold
RequiredVWLMAprice_below_vwlma
RequiredBollinger Bandsprice_below_lowerBand

Short Exit Conditions

SettingValue
RequiredVWLMA · price_above_vwlma
Stop Loss5% (REL)
Take Profit12% (REL)

Recommended Parameters

IndicatorParameterValueNotes
VWLMAPeriod20 barsTrend filter
Bollinger BandsPeriod20 barsVolatility lookback
Bollinger BandsMultiplier2.0Band width (2 std devs)

  • Test period variations: Compare 10 vs 20 vs 50 to find the best balance of responsiveness vs smoothness
  • Compare with other MAs: Backtest VWLMA against EMA/SMA/HMA to see which MA type works best for your asset
  • Measure ADX filter impact: Test with and without the ADX > 25 filter to quantify trend filtering benefit
  • Check indicator usefulness scores: After backtesting, review the algo metrics to confirm the MA is adding value