Skip to content

Momentum Shift 5min MTF Engine

5-Minute Scalping Strategy

Multi-timeframe alignment strategy combining Long Term Trend, MTF Momentum, Relative Strength, and LRSI for high-probability 5-minute entries.


Source Code

View Source Code


Overview

This strategy is inspired by David Wyse's Right Line Trading approach, which uses multiple indicator panels to confirm trend and momentum alignment across timeframes before entering trades.

The Trade Setup Funnel

graph TD
    A[Daily and 5 min chart Align] --> B[Trade with trend - stock AND market]
    B --> C[SPY SUPER SYSTEM must align]
    C --> D[Relative Strength/Weakness]
    D --> E[Enter near Support/Resistance]
    E --> F[HIGH PROBABILITY ENTRY]

    style A fill:#87CEEB
    style B fill:#87CEEB
    style C fill:#5DADE2
    style D fill:#3498DB
    style E fill:#2874A6
    style F fill:#1B4F72,color:#fff

Each layer filters out lower-probability trades, leaving only the highest-conviction setups.


Key Components

1. Long Term Trend Panel

Shows price position relative to EMA across all timeframes:

Timeframe Bullish Condition Bearish Condition
Daily Close > 15 EMA Close < 15 EMA
4H Close > 15 EMA Close < 15 EMA
1H Close > 15 EMA Close < 15 EMA
15M Close > 15 EMA Close < 15 EMA
5M Close > 15 EMA Close < 15 EMA

Interpretation: - 🟢 All green = Strong uptrend across all timeframes - 🔴 All red = Strong downtrend across all timeframes - 🟠 Mixed = Choppy/transitional - avoid or reduce size

2. Multi-Timeframe Momentum Panel

Shows RSM (RSI of Normalized Relative Strength) state across timeframes:

Metric Bullish Bearish
Daily RSM > 50 < 50
4H RSM > 50 < 50
1H RSM > 50 < 50
15M RSM > 50 < 50
5M RSM > 50 < 50

Why RSM instead of just RS? - RSM smooths out noise in the relative strength reading - Crossing above/below 50 provides cleaner signals - More responsive to momentum shifts than raw RS

3. Relative Strength Values

Shows actual normalized RS values (0.00 to 1.00) for each timeframe:

Value Range Interpretation
> 0.80 Extreme strength vs SPY
0.50 - 0.80 Above average strength
0.20 - 0.50 Below average strength
< 0.20 Extreme weakness vs SPY

4. LRSI Momentum Oscillator

Laguerre RSI with Fractals Energy for current timeframe momentum:

LRSI Value State Action
> 0.80 Overbought Caution on new longs
0.50 - 0.80 Bullish Confirm long entries
0.20 - 0.50 Bearish Confirm short entries
< 0.20 Oversold Caution on new shorts

Entry Conditions

Long Entry Signal (Green Triangle Below Bar)

All of the following must be true:

  1. All Timeframes Bullish (or minimum ⅗ if configured)
  2. Price Above 15 EMA on current timeframe
  3. Price Above VWAP (if VWAP filter enabled)
  4. LRSI > 0.5 (momentum confirming)
  5. LRSI < 0.8 (not overbought)

Short Entry Signal (Red Triangle Above Bar)

All of the following must be true:

  1. All Timeframes Bearish (or minimum ⅗ if configured)
  2. Price Below 15 EMA on current timeframe
  3. Price Below VWAP (if VWAP filter enabled)
  4. LRSI < 0.5 (momentum confirming)
  5. LRSI > 0.2 (not oversold)

Visual Elements

On Price Chart

Element Color Description
15 EMA Magenta/Pink Short-term trend reference
50 EMA Orange Intermediate trend reference
VWAP White Institutional reference level
VWAP Bands Aqua (circles) VWAP ± 1 StdDev
Pivot PP Yellow Daily pivot point
Pivot R1/R2/R3 Green (fading) Resistance levels
Pivot S1/S2/S3 Red (fading) Support levels
Prev Day High Lime Yesterday's high
Prev Day Low Red Yesterday's low
Long Signal Green ▲ Entry signal below bar
Short Signal Red ▼ Entry signal above bar
Extreme Bullish Green X RS > 0.95 & LRSI > 0.8
Extreme Bearish Red X RS < 0.05 & LRSI < 0.2
Background Green/Red tint All TFs aligned

MTF Panel Table (Bottom Left)

┌────────────┬───────┬──────┬──────┬──────┬──────┐
│ TIMEFRAME  │ Daily │  4H  │  1H  │ 15M  │  5M  │
├────────────┼───────┼──────┼──────┼──────┼──────┤
│ LT Trend   │   ●   │  ●   │  ●   │  ●   │  ●   │
│ MTF Mom    │   ●   │  ●   │  ●   │  ●   │  ●   │
│ Rel Str    │ 0.72  │ 0.65 │ 0.58 │ 0.61 │ 0.55 │
│ LRSI       │   -   │  -   │  -   │  -   │ 0.63 │
└────────────┴───────┴──────┴──────┴──────┴──────┘

Alignment Summary (Top Right)

┌─────────────────────┐
│     ALIGNMENT       │
├─────────────────────┤
│ Bullish TFs:  4/5   │
│ LRSI:        Bull   │
│ Signal:      LONG ▲ │
└─────────────────────┘

Configuration Settings

General Settings

Setting Default Description
Benchmark Ticker SPY Reference for RS calculation
Show Panels true Display MTF panel table
Show Signals true Display entry signals

Relative Strength Settings

Setting Default Description
RS Normalization Lookback 50 Periods for min/max RS calculation
RSI Length for RSM 14 RSI periods applied to normalized RS

LRSI Settings

Setting Default Description
LRSI Alpha 0.2 Base alpha (if not using Fractals Energy)
Use Fractals Energy true Self-adjusting alpha based on volatility
Fractals Energy Length 13 Lookback for energy calculation

Trend Settings

Setting Default Description
Trend EMA Length 15 EMA for trend determination
Use VWAP Filter true Require price above/below VWAP

Entry Settings

Setting Default Description
Require All TFs Aligned true All 5 timeframes must agree
Minimum TFs Aligned 3 If not requiring all, minimum count

Support/Resistance Levels

Setting Default Description
Show Daily Pivot Points true Display PP, R1-R3, S1-S3
Show Previous Day High/Low true Display PDH and PDL
Show VWAP Bands true Display VWAP ± standard deviation
VWAP Band Multiplier 1.0 StdDev multiplier for bands

Using Support/Resistance Levels

Daily Pivot Points

The strategy calculates standard pivot points from the previous day:

Level Formula Use
PP (H + L + C) / 3 Key decision level - bias above/below
R1 (2 × PP) - L First resistance target
R2 PP + (H - L) Second resistance target
R3 H + 2 × (PP - L) Extreme resistance
S1 (2 × PP) - H First support level
S2 PP - (H - L) Second support level
S3 L - 2 × (H - PP) Extreme support

How to Use Levels

For Long Entries: 1. Wait for entry signal (all TFs aligned + LRSI > 0.5) 2. Best entries: Near S1, S2, VWAP Lower, or Previous Day Low 3. Targets: R1, VWAP, Previous Day High 4. Stop: Below the support level that triggered entry

For Short Entries: 1. Wait for entry signal (all TFs bearish + LRSI < 0.5) 2. Best entries: Near R1, R2, VWAP Upper, or Previous Day High 3. Targets: S1, VWAP, Previous Day Low 4. Stop: Above the resistance level that triggered entry

Key Levels Info Panel

The indicator displays a KEY LEVELS table on the right side showing: - All pivot levels (R3 → S3) with actual prices - Previous Day High (PDH) - Previous Day Low (PDL)

Use this panel to quickly identify where to place limit orders or set stop losses.


Trading Workflow

Pre-Market Checklist

  1. 📊 Check Daily and 4H trend direction
  2. 📈 Note key support/resistance levels
  3. 📍 Mark previous day high/low
  4. 🎯 Identify potential pivot points

During Market

flowchart LR
    A[Wait for Signal] --> B{All TFs Aligned?}
    B -->|Yes| C{Near S/R Level?}
    B -->|No| A
    C -->|Yes| D{LRSI Confirming?}
    C -->|No| A
    D -->|Yes| E[ENTER TRADE]
    D -->|No| A
    E --> F[Set Stop Below Pivot/VWAP]
    F --> G[Trail with 9 EMA or LRSI]

Exit Rules

Exit Type Condition
Stop Loss Below recent pivot low / above pivot high
LRSI Exit LRSI crosses below 0.5 (longs) / above 0.5 (shorts)
Trailing Stop 9 EMA or 15 EMA break
Target Exit Prior resistance/support level
Time Exit End of day if scalping

Comparison: Daily vs 5-Min Strategy

Aspect Daily Strategy 5-Min MTF Strategy
Timeframe Daily chart 5-minute chart
Hold Time Days to weeks Minutes to hours
RS Lookbacks 200, 50, 20, 9 50 (across TFs)
Primary Filter VIX regime MTF alignment
Momentum RSM, BBW, PVT LRSI
Exit Style Indicator-based LRSI + trailing stop
Best For Swing trading Intraday scalping

Tips for Success

DO ✅

  • Wait for all 5 timeframes to align before entering
  • Enter near VWAP or pivot levels for better risk/reward
  • Use tight stops - 5-min trades should be quick
  • Scale out at first target, trail the rest
  • Trade with market direction (check SPY/QQQ trend)

DON'T ❌

  • Don't force trades when only 3-4 timeframes align
  • Don't fight a strong trend on higher timeframes
  • Don't hold losing trades - respect your stops
  • Don't trade during low-volume periods (lunch hour)
  • Don't ignore LRSI overbought/oversold warnings

Alerts

Alert Trigger Use Case
Long Entry Signal All TFs bullish + LRSI confirms New long opportunity
Short Entry Signal All TFs bearish + LRSI confirms New short opportunity
Extreme Bullish Warning RS > 0.95 & LRSI > 0.8 Consider taking profits
Extreme Bearish Warning RS < 0.05 & LRSI < 0.2 Potential reversal zone


Changelog

Date Version Changes
2024-12-10 1.0 Initial release