Systematic outperformance momentum system capturing institutional capital flows from Bitcoin into high-beta altcoins
Requires liquid altcoin pairs against Bitcoin with sufficient order book depth. Avoid trading during major high-impact macroeconomic releases (CPI, FOMC) or unexpected exchange-wide liquidity crunches. Spread and slippage must be accounted for on lower-liquidity pairs like LINKBTC; focus primarily on ETHBTC and SOLBTC for optimal execution.
Validate every condition prior to executing order.
ETH formed a tight consolidation against BTC above the 50 EMA. A sudden surge in volume drove ETH/BTC past the 10-bar high. BTC remained steady above its 20 EMA. ETH surged over the next 48 hours, yielding a clean 3.0R expansion before the ratio eventually crossed back below the 50 EMA.
SOL/BTC temporarily spiked past its 10-bar high and 50 EMA, triggering the entry rule. However, an unexpected macroeconomic headline caused Bitcoin dominance to surge aggressively, dragging BTC down through its 20 EMA while pulling SOL down faster. The stop loss placed below the swing low was cleanly hit, containing the loss to exactly 0.5%.
Copy code directly into TradingView Pine Editor
//@version=5
strategy("Alt vs BTC Rotation Strategy", overlay=false, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=0.5)
// Inputs
altRatioSource = input.symbol("BINANCE:ETHBTC", title="Alt/BTC Symbol")
emaRatioLen = input.int(50, title="Ratio EMA Length")
donchianLen = input.int(10, title="Ratio Breakout Lookback")
btcCloseSource = input.symbol("BINANCE:BTCUSDT", title="BTC Price Symbol")
emaBtcLen = input.int(20, title="BTC EMA Length")
maxOpenTrades = input.int(3, title="Max Concurrent Trades")
// Fetch external data
ratioClose = request.security(altRatioSource, "240", close)
btcClose = request.security(btcCloseSource, "240", close)
// Indicators
emaRatio = ta.ema(ratioClose, emaRatioLen)
donchianHigh = ta.highest(ratioClose, donchianLen)[1]
emaBtc = ta.ema(btcClose, emaBtcLen)
// Conditions
isRatioOutperforming = ratioClose > emaRatio and ratioClose > donchianHigh
isBtcHealthy = btcClose > emaBtc
canTrade = strategy.opentrades < maxOpenTrades
longCondition = isRatioOutperforming and isBtcHealthy and canTrade
exitCondition = ratioClose < emaRatio
// Execution
if (longCondition)
strategy.entry("Long Alt", strategy.long)
if (exitCondition)
strategy.close("Long Alt", comment="Ratio Breakdown")
// Plotting Ratio & EMA
plot(ratioClose, title="Alt/BTC Ratio", color=color.blue)
plot(emaRatio, title="Ratio 50 EMA", color=color.orange)
plot(donchianHigh, title="10-Bar High", color=color.gray)
Trading against Bitcoin isolates relative strength. If the entire crypto market drops 20% but your altcoin only drops 5%, the alt/BTC ratio goes up. This ensures you are buying assets that are genuinely outperforming the benchmark.
It is not recommended. Noise on lower timeframes in crypto creates frequent false breakouts on ratios. H4 provides the structural clarity required for sustainable swing trading.
The strategy includes a structural ratio exit (50 EMA cross) and strict stop losses. If BTC crashes hard, the alt/BTC ratio typically breaks down swiftly, triggering an exit before total capital erosion occurs.
The core edge of the Altcoin vs BTC Relative Strength Rotation Strategy model relies on the structural imbalance created when large market participants (commercial banks, liquidity providers, and central clearing desks) aggregate retail stop orders. Rather than anticipating trend continuation from arbitrary retail indicators, this systematic model identifies pre-existing liquidity pools—such as session highs/lows, Asian range extremes, or equal highs/lows (EQH/EQL)—where retail stop losses are heavily clustered.
Once a targeted liquidity sweep occurs and price aggressively rejects back inside the defined equilibrium range, an order flow displacement is confirmed through a Market Structure Break (MSB) or Change of Character (CHoCH). This sequence establishes asymmetric risk-to-reward parameters, allowing traders to enter with tight structural stops positioned outside the invalidated sweep candle.
Higher timeframe (H4/Daily) structural bias must always govern lower timeframe (M15/M5/M1) execution. Trading with the prevailing institutional order flow drastically reduces whipsaws during choppy session opens.
Always factor in spread expansion during high-impact news releases (CPI, NFP, FOMC) and daily 5:00 PM EST session rollover. Never enter within 15 minutes before Tier-1 macroeconomic events.
Move stop loss to break-even once price reaches 1.0R–1.5R target expansion or mitigates an opposing Fair Value Gap (FVG), neutralizing risk on active positions.
To successfully navigate proprietary trading evaluation stages without breaching maximum daily drawdown (typically 4%–5%) or maximum overall loss limits (8%–10%), this model must be deployed with disciplined position sizing:
On a $100,000 challenge account, limit single trade exposure to $500. This ensures you can survive a theoretical 6-trade drawdown streak while consuming less than 3% of your daily buffer.
If two consecutive setups trigger stop-loss invalidations within the same trading session, trading must be suspended for the remainder of that session to avoid revenge trading and emotional capital destruction.
Discretionary traders can execute this system manually using our pre-trade checklist above, while quantitative and algorithmic traders can deploy the Pine Script logic or connect directly to automated trading software:
Discover compiled MT4/MT5 Expert Advisors executing systematic order blocks around the clock.
Mirror institutional setups automatically into your MT4/MT5 broker account with zero latency.
Access 20+ verified institutional systems across Asian, London, and New York trading sessions.
Quant Note: Backtested across top 5 altcoins by market cap against BTC on H4 data. Results include 0.1% per-side exchange fees and standard crypto slippage assumptions.
Download a clean, printer-friendly 1-page cheatsheet containing all entry/exit rules and the checklist for your trading desk.
Open Print / PDF ViewSubscribe to receive verified Pine Script algorithms, quantified backtests, and fresh pre-trade checklists directly to your inbox every week.
Download the complete quantitative guide: Position Sizing Formulas, Prop Firm Drawdown Rules, and MQL5 Parameter Cheat Sheets.