SOXL Trend Surge v4.2 - Tiered Exit + BE Buffer — Strategy by MrStockaton

By MrStockaton

Performance Metrics

Description

SOXL Trend Surge v4.2 — Tiered Exit + BE BufferSOXL Trend Surge v4.2 is a systematic trend-following strategy designed specifically for AMEX:SOXL (Direxion Daily Semiconductor Bull 3X ETF) on the 45-minute timeframe. It was built through iterative backtesting from 2017 to 2026 across 167 trades, refining entry filters, exit structure, and risk management to produce consistent results.WHY THIS COMBINATION OF INDICATORSThis strategy combines four distinct components, each serving a specific and non-redundant role:The 200 EMA defines the macro trend direction. Entries are only taken when price is above this level with a minimum 0.5% buffer, filtering out entries that occur too close to the moving average where trend conviction is weak.The Supertrend indicator (Factor 3.0, ATR Period 10) acts as dynamic intrabar trend confirmation. Unlike a static moving average crossover, Supertrend adapts its sensitivity to current volatility through its ATR multiplier — tightening during low-volatility consolidation and widening during expansion. An entry is only valid when Supertrend is in bullish mode (direction = 1), meaning price has closed above the dynamic support level.ATR (Average True Range) drives all exit mechanics. Every profit target, stop level, and trailing stop is expressed as a multiple of the current ATR rather than a fixed dollar amount. This means the strategy automatically scales its exits to SOXL's current volatility — wider targets and stops during high-volatility regimes, tighter during calm periods. This is essential for a 3x leveraged ETF where daily range can vary from 2% to 20%.The VIX filter acts as a macro fear gate. SOXL's behavior during high-VIX regimes is structurally different from low-VIX trending environments. Above VIX 28, false breakouts become far more common and adverse moves become more severe. The strategy blocks all new entries when VIX exceeds 28 and force-closes any open position if VIX spikes above 35. This single filter eliminated several of the largest historical losses in backtesting.Volume confirmation ensures that entries only occur when volume is above its 20-bar SMA, confirming that institutional participation supports the move.These five components work together as a layered gate — price must satisfy all conditions simultaneously before an entry is triggered. No single indicator alone would produce these results.WHAT IS SUPERTRENDSupertrend is a trend-following indicator that plots a line above or below price based on ATR-adjusted support and resistance levels. When price closes above the Supertrend line, it signals a bullish trend. When price closes below it, the trend is bearish. The Factor input controls sensitivity — a higher factor (3.0 used here) produces fewer but higher-confidence signals, which is appropriate for a leveraged ETF like SOXL where overtrading is costly.HOW THE STRATEGY ENTERSA long entry is triggered when all of the following are true simultaneously:Price is above the 200 EMA with a 0.5% bufferSupertrend is bullish (direction = 1)ATR is rising (above its 20-bar SMA), confirming expanding momentumVolume is above its 20-bar SMAVIX is below 28Time is within the active session window (Hour 14–19 UTC, approximately 10am–3pm ET)Cooldown period has elapsed since the last exit (15 bars normally, 80 bars after a losing trade)HOW THE STRATEGY EXITS — THREE-TIER SYSTEMRather than a single take profit, exits occur in three stages:Tier 1 — 33% of position closed at 1.5x ATR above entry. This fires on the majority of trades and locks in a guaranteed partial profit quickly.Tier 2 — Another 33% closed at 3.0x ATR above entry. This captures the larger SOXL runners that continue trending after Tier 1.Final 33% — After Tier 1 fires, a breakeven buffer stop is placed at entry price + 0.3x ATR, ensuring the strategy structurally cannot lose money once the first partial is taken. After Tier 2 fires, the final position trails with a 1.5x ATR trailing stop and has no hard cap — designed to ride SOXL's fat-tail moves, which historically reached up to 79% MFE in backtesting.ADDITIONAL RISK CONTROLSVIX Force Exit — If VIX spikes above 35 while in a trade, the full position is closed immediately.Dynamic Cooldown — After a losing trade, the strategy waits 80 bars (~3 trading days) before re-entering, preventing re-entry into a broken trend.Max Hold Stop — Any trade still open after 400 bars (~15 trading days) is closed regardless of profit or loss status, eliminating dead trades.Pyramid Add — A single add-on entry is allowed when price breaks above the prior 10-bar swing high with volume confirmation, to compound on the strongest trending moves.BACKTEST PERFORMANCE (January 2017 – April 2026)Starting capital: $500Net profit: $1,080.33 (+216.07%)CAGR: 13.25% annualizedProfit factor: 2.50Win rate: 87.43% (146 wins, 21 losses out of 167 total trades)Sharpe ratio: 0.155Sortino ratio: 0.194Max drawdown (close-to-close): 18.64%Average win: $12.33Average loss: $34.25Commission: 0.1% per sideSlippage: 1 tick per sideThe 167-trade sample spans multiple market regimes including the 2020 COVID crash, the 2021–2022 semiconductor cycle, the 2022 rate hike bear market, and the 2023–2025 recovery.RECOMMENDED SETTINGSEMA Length: 200 — do not lower below 150ATR Length: 14Tier 1 ATR Multiplier: 1.5Tier 2 ATR Multiplier: 3.0BE Stop Buffer: 0.3Supertrend Factor: 3.0Supertrend ATR Period: 10VIX Entry Block: 28.0VIX Force Exit: 35.0Cooldown Bars: 15Cooldown After Loss: 80Max Hold Bars: 400Volume MA Length: 20EMA Buffer: 0.005Timeframe: 45 minutesSymbol: AMEX:SOXLRecalculate after order is filled: CheckRecalculate on every tick: CheckPOSITION SIZING NOTEThis strategy defaults to 100% of equity per trade. This default is used in backtesting solely to measure signal quality and directional accuracy across the full equity curve. It is not a recommended live trading position size. For live trading, reduce position size to 10–25% of equity based on your own risk tolerance. Risking 100% of equity on a 3x leveraged ETF in live trading carries significant risk of severe loss.DRAWDOWN AND RISK DISCLOSUREThis strategy trades SOXL, a 3x leveraged ETF. Drawdowns are larger and faster than they appear in traditional backtests.GAP RISK — SOXL can gap down 10–30% at the open during market stress events. Stop losses and VIX exits cannot protect against gap opens. The position closes at the open price, not the stop price.VIX FILTER LAG — The VIX filter uses the prior session's VIX level. An intraday flash crash will not be caught until the next bar closes.LEVERAGE DECAY — SOXL loses value over time through daily rebalancing. Extended sideways or choppy markets erode the underlying ETF even when the strategy is flat.2022 DRAWDOWN — During the 2022 rate hike cycle, SOXL lost approximately 95% of its value. The strategy averaged -$33.74 per trade that year, drawing down approximately -$490 on a $500 starting account. Anyone trading this live in 2022 would have needed significant resilience to continue.BACKTEST LIMITATIONS — All results assume fills at bar close with 0.1% commission and 1 tick slippage. Real-world execution during volatile markets will be worse than backtested results.Past performance is not indicative of future results. This script is published for educational purposes. Nothing here constitutes financial advice.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView