baseedge_labs
Tokyo Drift - a tuned GT-R drifting through a neon-lit Tokyo street at night
← strategies

Tokyo Drift

v1.5.1 · MGC (Micro Gold) · XAUUSD (Gold CFD) ·version history

Open on TradingView →
retired
TV parity
97.6%
net pnl
$21,318
trades
235

One configuration, not three

Tokyo Drift is a structural fork of the Drift VWAP Pullback line. Drift gives Asia, London and New York a complete, independently tuned copy of every setting. Tokyo Drift applies one configuration to whichever sessions are enabled.

Sessions still exist and still matter, but they carry only what is genuinely theirs: the trading window, the end-of-day flatten, the direction toggles, and the trade / loss / reversal budgets. Every filter, entry rule, target, stop and trade-management setting is shared.

The reason is not tidiness. Three independently tuned copies of one strategy is three opportunities to fit the past. A single shared configuration has to earn its keep across every session that is switched on, which is a materially harder test.

Six configurations, and which one to use

Every file below is the same code. Only input defaults differ, so moving between them is a settings change rather than a different strategy. The full parameter list for each is at the bottom of this page.

file role headline
tokyo_drift_v1_5_0.pine the published default 71.49% win, PF 3.458 on the verified TradingView run
tokyo_drift_v1_5_0_default.pine less-optimised alternate PF 1.16, $13,452, DD $7,011 full sample
tokyo_drift_v1_5_0_prop.pine robustness profitable in all four periods tested, DD $2,275 over 2.5 years
tokyo_drift_v1_5_0_prop_balanced.pine funded-account evaluations 65.6% win, PF 1.44, DD $1,341, 11/12 months
tokyo_drift_v1_5_0_prop_highwin.pine highest hit rate 79.1% win, PF 1.27, DD $1,495, 11/12 months
tokyo_drift_v1_5_1_xauusd.pine spot gold rather than futures hand-tuned on XAUUSD, no published run

The default is the hand-tuned Micro Gold configuration. It is the one run live on TradingView and the one the headline figures below come from.

The alternates exist because they were selected on different criteria, and those criteria are worth knowing before picking one. The less-optimised alternate is the untuned development baseline plus the single change that survived a walk-forward — a more conservative starting point for a different instrument, since it has fewer settings fitted to Micro Gold specifically. The robust file was chosen for staying profitable across four independent periods rather than for peak performance, and is documented in the regime-versus-fit study and the prop-evaluation study. The two prop files target funded-account drawdown limits and were selected on the trailing 365 days only, so they carry no out-of-sample validation.

The spot gold file is the odd one out: not another tuning of the Micro Gold configuration but the same strategy pointed at a different instrument. Spot gold and Micro Gold futures share an underlying and very little else that this strategy cares about — a different tick, a different volume profile feeding VWAP, and no session break. Dropping the MGC numbers onto XAUUSD does not reproduce MGC behaviour, so the RSI family was re-tuned by hand until it came close, and the extension filter went on. Thirteen inputs differ from the published default.

Two caveats travel with it, and both matter more than the settings do. It was tuned by hand over a single 2026-05-24 to 2026-09-03 window with no walk-forward, so it carries less validation than any other file here. And the cost model in the script is still the Micro Gold one — $1.20 per side and a 0.10 tick — which is not what a spot-gold broker charges. Put your own spread into the Properties tab before reading a number off it.

Shipped configuration

Micro Gold, 5-minute, one contract, $2.40 round turn ($1.20 per side).

  • Entry — RSI Reset: RSI dips within a 2-bar lookback then recovers through the midline, inside a VWAP trend. RSI 14, reset levels 54 long / 35.5 short.
  • Direction gate — Slope only. VWAP’s slope sets direction; price may be on either side. A trend often turns while price is still on the old side, and requiring the crossing first forfeits the opening of the move.
  • Filters on — RSI overbought/oversold (59 / 40, 18-bar extreme lookback), MACD Histogram Velocity (18 / 22 / 7), and a 15-point maximum candle range.
  • Filters off — 1-hour momentum, Efficiency Ratio, Min VWAP Distance, Max Extension.
  • Brackets — ATR Multiple: longs 3.5x ATR against a 2.35x stop, shorts 3.0x against 2.95x.
  • Sessions — Asia 7:00 PM–2:00 AM ET (3 trades / 2 losses), London 3:00–10:00 AM (3 / 1), NY 10:30 AM–3:30 PM (3 / 1). One reversal each.
  • Reversal Engine — on, full stop-loss only, 3-bar wait, confirming candle required, points bracket with its own trail.
  • Breakeven and the primary trail — off.

Results

Verified on TradingView, 5-minute Micro Gold, one contract, $50,000 account, 24 May – 3 September 2026:

net P&L +$21,318 (+42.64%)
profit factor 3.458
win rate 71.49% (168 / 235)
max drawdown $550.40 (0.98%)

That is a real broker-emulated run rather than an engine figure, and it is the window the configuration was tuned against — so read it as the best case, not the expectation.

The same configuration measured by the engine over longer windows:

window trades net win rate PF max drawdown
Last 12 months 716 $15,120 52.7% 1.30 $6,935
Full sample 2024-01 → 2026-08 1,724 $8,582 47.9% 1.09 $13,669

The gap between those rows is the honest headline. Over the full sample this configuration runs a 1.09 profit factor with four of eleven quarters positive. The reason is concentration rather than decay: across every configuration tested, the entire 2024-2026 profit falls in two quarters of 2026, and nine of eleven quarters lose money. A volatility explanation for that was tested and does not hold — see the regime-versus-fit study.

Verification

The Python engine twin reproduces TradingView’s fills at 97.6% recall and 97.5% precision entry-by-entry on a paired parameter-and-trade-list export, with entry prices exact on 661 of 663 matched trades. The residual is a data artifact: TradingView prices the continuous gold contract slightly differently from the series the engine reads, and the resulting ~0.35% ATR difference is about half a tick on an ATR-sized bracket.

Every version from v1.1.0 onward was verified to reproduce its predecessor exactly at default settings before shipping, so the accumulated changes are additive rather than silently behaviour-altering. That check is also why the Direction Gate shipped defaulted to its pre-v1.4.0 value and had to be turned on deliberately for the published default — a version-parity requirement is not a recommendation.

What was tested and rejected

Eleven research stages and roughly 1,300 configurations were walk-forwarded over eleven quarterly blocks, choosing settings only from data before each cut and scoring on blocks the chooser never saw. Breakeven placement, trailing distance, trailing arm point, proportional profit locks, pullback-triggered stops, reversal brackets, entry delays and slope thresholds all failed to beat simply leaving the strategy alone.

The mechanism is consistent: 98.5% of winning trades pass through the region where any stop-move would fire, so anything that fires clips more winner than it saves loser, and the penalty scales smoothly with how early you intervene. Breakeven and the trail ship off for that reason.

The Direction Gate was the single change that survived.

Known limits

  • The edge is two quarters. Nine of eleven quarters lose money on both configurations, and no tested regime variable — volatility included — separates the two profitable ones from the rest. Treat it as episodic and unexplained rather than as a condition that has been identified.
  • One instrument, one sample. ATR-scaled brackets will travel to another contract; the point-denominated values — candle-range filter, reversal bracket, trail distances — are gold-sized and will not. The spot-gold file above is the one attempt at a second instrument, and it needed thirteen inputs changed to get close — on the same underlying.
  • The published figures are engine-derived. The twin is verified at 97.6% entry-by-entry against a TradingView export, but the table above is not itself a TradingView run.
  • Hand-tuning did not help here. The MGC-tuned variant leads only over the last six months, at a lower win rate and a wash on profit factor.

Every setting, every configuration

All 6 configurations ship the same code and differ only in defaults — including the spot-gold one, which is the same strategy re-tuned for a different instrument rather than a different strategy. Pick a tab for the full list, grouped the way the TradingView settings dialog groups them. Copy a section or the whole configuration as JSON for your settings manager, filter by name, or narrow a configuration to just what makes it different.

The published default. Hand-tuned on Micro Gold and the configuration behind the live TradingView results.

tokyo_drift_v1_5_0.pine

Last 365 days

2025-09-04 to 2026-09-04 · TradingView broker emulator, one contract
net P&L
$17,927
profit factor
1.35
win rate
53.2%
trades
385 / 724
max drawdown
-$6,456
avg trade
$25
largest loss
-$507
months +
7 / 13

Optimized (default) · Last 365 days

MGC · 724 trades · 2025-09-04 to 2026-09-04

net pnl
$17,927
max drawdown
-$6,456
Equity curve
$17,927$5,736-$6,456
Drawdown
$0-$3,228-$6,456
2025-09-042026-09-04
View monthly data table
MonthEquityDrawdown
2025-09-$179-$179
2025-10-$1,050-$1,050
2025-11-$1,974-$1,974
2025-12-$2,774-$2,774
2026-01-$4,455-$4,455
2026-02-$4,917-$4,917
2026-03-$4,628-$4,628
2026-04-$4,013-$4,013
2026-05-$2,605-$2,605
2026-06$4,921-$58
2026-07$10,818$0
2026-08$16,921$0
2026-09$17,927$0

Selection window

2026-05-25 to 2026-09-04 · TradingView broker emulator, one contract
net P&L
$21,437
profit factor
3.47
win rate
71.3%
trades
169 / 237
max drawdown
-$522
avg trade
$90
largest loss
-$242
months +
5 / 5

Optimized (default) · Selection window

MGC · 237 trades · 2026-05-25 to 2026-09-04

net pnl
$21,437
max drawdown
-$522
Equity curve
$21,437$10,671-$95
Drawdown
$0-$261-$522
2026-05-252026-09-04
View monthly data table
MonthEquityDrawdown
2026-05$905-$126
2026-06$8,431-$58
2026-07$14,328$0
2026-08$20,431$0
2026-09$21,437$0

Both windows come from one TradingView trade-list export per configuration. The selection window is the range the configuration was tuned on: read it as the best case. The 365-day window contains it.

⚙️ Global9
Time Zone
America/New_York
$ Value per Point (for $ Profit BE trigger only)
10
ATR Period (Wilder)
14
Display Time Zone (session times shown in this TZ; does not affect trading logic)
America/New_York
Session Table Size
Normal
Show BE / Trailing-Stop levels on chart
on
Colour bars during a reversal trade
off
Enable Longs (global master)
on
Enable Shorts (global master)
on
📊 VWAP Std-Dev Bands (display only)2
Show Standard Deviation Bands
on
Std Dev Multiplier (inner band; outer = 2x)
1
🛡️ Ghost Webhook Identity4
Contracts (qty field)
1
Strategy Name (identity field)
Tokyo Drift v1
Sync breakeven to the broker stop
off
Dry Run (adds test:true to every payload)
off
🟢 ASIA SESSION10
Enable Asia Session
on
Trading Window (ET)
1900-0200
Asia EOD Close (HH:MM ET)
3
:
25
Enable Longs
on
Enable Shorts
on
Max Trades Per Session
3
Max Losses Per Session
2
Max Reversals Per Session
1
VWAP Anchor (only used if 'Use Global VWAP Anchor' below is OFF)
Current
🟡 LONDON SESSION10
Enable London Session
on
Trading Window (ET)
0300-1000
London EOD Close (HH:MM ET)
10
:
35
Enable Longs
on
Enable Shorts
on
Max Trades Per Session
3
Max Losses Per Session
1
Max Reversals Per Session
1
VWAP Anchor (only used if 'Use Global VWAP Anchor' below is OFF)
Current
🔵 NY SESSION10
Enable NY Session
on
Trading Window (ET)
1030-1530
NY EOD Close (HH:MM ET)
15
:
55
Enable Longs
on
Enable Shorts
on
Max Trades Per Session
3
Max Losses Per Session
1
Max Reversals Per Session
1
VWAP Anchor (only used if 'Use Global VWAP Anchor' below is OFF)
Current
📈 VWAP (global)6
Use Global VWAP Anchor
on
VWAP Anchor Mode (used when Use Global VWAP Anchor is ON)
Current
VWAP Slope Lookback Bars
10
Min VWAP Slope Delta
0.5
Slope Unit
Points
Direction Gate
Slope only
🚀 1-Hour Momentum Filter (global)3
Enable 1-Hour Momentum Filter
off
1-Hour Momentum Threshold (%)
0.009
1-Hour Lookback Bars (5m chart: 12 bars = 1 hr)
12
📐 Efficiency Ratio Filter (global)6
Enable Efficiency Ratio Filter (Chop Killer)
off
Efficiency Ratio Lookback (bars)
20
Min Efficiency Ratio (0-1)
0.01
Use Fade Veto (Block trades if trend efficiency dropping)
off
Fade Lookback (bars)
5
Fade Drop (0-1)
0.15
〰️ MACD Histogram Velocity Filter (global)6
Enable MACD Histogram Velocity Filter (Momentum)
on
MACD Fast
18
Slow
22
Smooth
7
Velocity Smoothing (bars)
12
Building Only (No late entries on fading momentum)
off
🎯 RSI Overbought/Oversold Filter (global)7
Enable RSI Overbought/Oversold Filter
on
RSI Length
14
Overbought Level
59
Oversold Level
40
Extreme Lookback (bars)
18
Long Reset Level
49
Short Reset Level
51
📏 Min VWAP Distance Filter (global)4
Enable Min VWAP Distance Filter
off
Distance Mode
x ATR
Distance (x ATR)
1
Distance (Points)
10
🚫 Max Extension Filter (global)2
Enable Max Extension Filter
off
Max Extension (Std Devs)
2.1
🎬 Entry Trigger Mode (global)9
Entry Trigger Mode
RSI Reset
RSI Reset: RSI Length
14
RSI Reset: Long Reset Below
54
RSI Reset: Short Reset Above
35.5
RSI Reset: Lookback Bars
2
Also require RSI Reset (confluence, not a mode swap)
off
VWAP Expansion: Slope Lookback (bars)
10
VWAP Expansion: Min Slope
1
Expansion Unit
Points
💰 TP / SL (global)13
TP/SL Mode
ATR Multiple
R:R Mode: SL Unit
Points
Long TP
3.5
Long SL
2.35
Short TP
3
Short SL
2.95
R Multiple (Long)
1.5
R Multiple (Short)
1.5
ATR Multiple Mode: Min Points Floor
5
ATR Multiple Mode: Max Points Cap
100000
Enable Anti-Liquidation Filter
on
Max Candle Range
15
Range Unit
Points
🎯 Breakeven / Trail (global)40
Long: BE Offset
0
Offset Unit
Points
Long Trigger: Points
off
pts
0
Long Trigger: x ATR
off
x ATR
0
Long Trigger: $ Profit
off
$
0
Long Trigger: Bars in Trade
off
bars
0
Long Trigger: Minutes in Trade
off
min
0
Long Trigger: % of Price
off
%
0
Long: Enable Trail Engine
off
needs BE first
off
Long: Trail Trigger
30
Trigger Unit
Points
Long: Trail Distance
5
Distance Unit
Points
Short: BE Offset
0
Offset Unit
Points
Short Trigger: Points
off
pts
0
Short Trigger: x ATR
off
x ATR
0
Short Trigger: $ Profit
off
$
0
Short Trigger: Bars in Trade
off
bars
0
Short Trigger: Minutes in Trade
off
min
0
Short Trigger: % of Price
off
%
0
Short: Enable Trail Engine
off
needs BE first
off
Short: Trail Trigger
25
Trigger Unit
Points
Short: Trail Distance
55
Distance Unit
Points
🔄 Reversal Engine (global)25
Enable Reversal Engine
on
Reverse On
Full SL only
Wait Bars After Exit
3
Hold pullback entries during the wait
off
Require a confirming candle
on
Close a reversal when its session's window ends
off
Reversal: Enable Longs
on
Reversal: Enable Shorts
on
Reversal TP/SL Mode
Points
Reversal Long: TP
35
SL
45
Reversal Short: TP
50
SL
25
Reversal Long: Enable BE
off
trigger
20
offset
5
Reversal Short: Enable BE
off
trigger
20
offset
5
Reversal Long: Enable Trail
on
trigger
20
distance
10
Reversal Short: Enable Trail
on
trigger
25
distance
45