Trailing Stops

Overview

VECTRA implements three independent trailing stop systems, each designed for different market conditions and strategy types. The active trailing system is selected based on the strategy type and user configuration.

System 1: ATR Trailing

Best for: Order Flow MTF, single-timeframe strategies Modes: 5 operational modes

The ATR (Average True Range) Trailing system adapts to market volatility. When volatility increases, the trailing distance widens to avoid premature stops. When volatility decreases, it tightens to protect more profit.

Modes

Mode
ATR Multiplier
Best For

ATR_TIGHT

0.8× ATR

Aggressive scalping

ATR_NORMAL

1.0× ATR

Balanced (recommended for OF_MTF)

ATR_LOOSE

1.5× ATR

Conservative, swing trades

HYBRID_SR

S/R-based

When S/R levels are clear

LEGACY

ROE-based

Backward compatibility

Phases

1

INITIAL

Trail not yet active, waiting for profit threshold.

2

ACTIVATED

Price reached 50% of TP distance, trailing begins.

3

BREAKEVEN

Stop Loss moved to entry price (30% of TP reached).

4

PROFIT_LOCKED

Minimum 25% of max profit locked.

5

TRAILING

Actively trailing price with ATR distance.


System 2: Smart S/R Trailing (Ichimoku)

Best for: All strategies Phases: 6 operational phases

The Smart Trailing system uses Support/Resistance levels detected through Ichimoku Cloud analysis, Pivot Points, and Price Clusters to make intelligent trailing decisions based on market structure rather than fixed distances.

Ichimoku S/R Levels (Ranked by Strength)

Level
Period
Role

Kijun-sen (Base Line)

26

Primary S/R — strongest single level

Senkou Span B

52

Long-term S/R — second strongest

Senkou Span A

(9+26)/2

Medium-term S/R

Tenkan-sen

9

Short-term S/R — fast-reacting

Cloud Top/Bottom

Dynamic

Cloud boundaries as S/R zones

Phase Progression

1

INITIAL

Monitoring, no trailing yet.

2

WATCHING_SR

Waiting for price to break nearest S/R level.

3

SR_CONFIRMED

S/R breakout confirmed, SL moved to the broken level + buffer.

4

APPROACHING_TP

Price nearing original TP, SL tightens.

5

TP_BREAKOUT

Price broke original TP, TP becomes trailing SL.

6

LOCKED_PROFIT

Maximum profit locked with tight trail.

How It Works

The system identifies the nearest meaningful S/R levels using three methods:

  • Ichimoku Cloud (primary, 40% weight) — Kijun, Senkou, Cloud boundaries

  • Pivot Points (secondary, 35% weight) — Classic pivot calculations

  • Price Clusters (tertiary, 25% weight) — Historical volume concentration

When price breaks through an S/R level and holds (confirmation required), the SL is moved to that level minus a buffer to avoid fake breakouts.


System 3: Smart CG Trailing (Coinglass-Intelligence)

Best for: Diversified strategies (MR, Momentum, Funding, LiqCascade) Phases: 6 operational phases

The CG Trailing system combines Coinglass intelligence with Ichimoku reversal detection and strategy-specific parameters. It is the most advanced trailing system, designed specifically for the 4 diversified strategies.

Strategy-Specific Parameters

Parameter
Mean Reversion
Momentum
Funding Rate
Liq. Cascade

Watch Profit

0.6%

0.8%

0.8%

1.0%

BE Profit

1.5%

1.2%

1.2%

1.5%

Trail Profit

2.0%

1.8%

1.8%

2.0%

Lock Profit

3.0%

2.5%

2.5%

3.0%

Protection ATR

3.0×

2.5×

2.0×

2.5×

Phase Progression

1

PROTECTION

Initial wide SL, breathing room for the thesis to play out.

2

WATCHING

Monitoring for edge confirmation from CG data.

3

BREAKEVEN

SL moved to entry + fees after meaningful profit.

4

TRAILING

Active trailing with CG intelligence (liquidation levels, whale activity).

5

LOCKED

High profit locked with tight progressive trail (20% → 85%).

6

EXIT

Close signal triggered by CG divergence, time decay, or reversal.

CG Fallback

When Coinglass data is unavailable, the system seamlessly falls back to ATR-based trailing. All CG calls are wrapped in try/except — the system never crashes from CG failures.

MeanReversion-Specific Time Decay

For Mean Reversion positions, the CG Trailing system delegates time-based decisions to the specialized MR Time Decay module, which uses exponential probability decay curves calibrated to the statistical half-life of mean reversion setups.


State Persistence

All three trailing systems persist their state to disk. If VECTRA restarts, positions resume from their exact trailing phase without loss of tracking data.