PROTECTED SOURCE SCRIPT

EVS BTC V1

23
Overview
The "EVS BTC V1" is a momentum-based trading strategy designed for Bitcoin (BTC) or similar volatile assets on TradingView. It combines Exponential Moving Averages (EMAs) for trend direction, volume confirmation to filter for strong moves, and an optional Relative Strength Index (RSI) filter to avoid overextended entries. The strategy uses a trailing stop for exits to lock in profits dynamically. It's set up for backtesting with an initial capital of $10,000, risking 10% of equity per trade, and accounting for 0.1% commissions.This is a crossover strategy: it goes long on bullish EMA crossovers with high volume (and RSI not overbought) and short on bearish crossunders (with high volume and RSI not oversold). It's overlayed on the main price chart for easy visualization.Key Parameters (User-Adjustable)Fast EMA Period: 9 (default) – Shorter-term trend line.
Slow EMA Period: 21 (default) – Longer-term trend line.
Volume Multiplier: 1.5 (default) – Requires volume to be 1.5x the 20-period average for signal validation.
Use RSI Filter?: Enabled (default) – Optional toggle to apply RSI conditions.
RSI Period: 14 (default), with overbought threshold at 70 and oversold at 30.
Trailing Stop Profit: 50 points (default) – Activates trailing once this profit level is hit.
Trailing Stop Offset: 20 points (default) – Distance from the high/low to trail the stop-loss.

Indicators UsedEMAs: 9-period (fast, blue line) and 21-period (slow, red line) on close prices.
Volume Filter: Compares current volume to a 20-period SMA; signals only trigger if volume exceeds the average by the multiplier (highlighted in yellow bars).
RSI: 14-period on close; plotted in purple on a sub-panel if enabled, with dashed horizontal lines at 70 (overbought) and 30 (oversold).

Entry RulesEntries are triggered only when all conditions align on a bar close:Direction
Conditions
Long (Buy)
- Fast EMA crosses over Slow EMA (bullish trend shift).
- Volume is "high" (> 1.5x 20-period avg).
- RSI < 70 (not overbought; skipped if filter disabled).
Short (Sell)
- Fast EMA crosses under Slow EMA (bearish trend shift).
- Volume is "high" (> 1.5x 20-period avg).
- RSI > 30 (not oversold; skipped if filter disabled).

On entry: Places a market order using 10% of current equity.
Alerts: Fires a one-time alert per bar (e.g., "Long Signal: EMA Crossover + High Volume!").

Exit RulesNo fixed take-profit or stop-loss on entry.
Uses a trailing stop for both long and short positions:Trails the stop-loss 20 points below the highest high (for longs) or 20 points above the lowest low (for shorts), but only activates after 50 points of unrealized profit.
This allows winners to run while protecting gains dynamically.

Positions close automatically on opposite signals or trailing stop hits (no pyramiding; only one position per direction at a time).

VisualizationMain Chart: Blue fast EMA and red slow EMA lines. Green background tint on long signals, red on short signals.
Volume Sub-Panel: Gray columns for normal volume, yellow for high-volume bars; zero line for reference.
RSI Sub-Panel (if enabled): Purple RSI line with overbought/oversold dashed lines.

Strengths and ConsiderationsStrengths: Simple, trend-following with volume to avoid weak signals; RSI adds mean-reversion protection; trailing stops suit trending markets like BTC.
Risks: Whipsaws in sideways markets (EMA crossovers can false-signal); volume filter may miss low-volume breakouts; trailing parameters (50/20 points) assume a specific price scale (e.g., BTC/USD in dollars—adjust for other pairs).
Best For: Higher timeframes (e.g., 1H or 4H) on volatile crypto pairs. Backtest on historical data to tune parameters.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.