PROTECTED SOURCE SCRIPT

Trend Surge Wick Sniper

69
Trend Surge Wick Sniper | Non-Repainting Trend + Momentum Strategy with TP1/TP2 & Dashboard
Trend Surge Wick Sniper is a complete crypto trading strategy designed for high-precision entries, smart exits, and non-repainting execution. It combines trend slope, wick rejection, volume confirmation, and CCI momentum filters into a seamless system that works in real-time conditions — whether you're manual trading or sending alerts to multi-exchange bots.

🧩 System Architecture Overview
This is not just a mashup of indicators — each layer is tightly integrated to filter for confirmed, high-quality setups. Here’s a detailed breakdown:

📈 Trend Logic
1. McGinley Dynamic Baseline

A responsive moving average that adapts to market speed better than EMA or SMA.

Smooths price while staying close to real action, making it ideal for basing alignment or trend context.

2. Gradient Slope Filter (ATR-normalized)

Calculates the difference between current and past McGinley values, divided by ATR for normalization.

If the slope exceeds a configurable threshold, it confirms an active uptrend or downtrend.

Optional loosened sensitivity allows for more frequent but still valid trades.

🚀 Momentum Timing
3. Smoothed CCI (ZLEMA / Hull / VWMA options)

Traditional CCI is enhanced with smoothing for stability.

Signals trades only when momentum is strong and accelerating.

Optional settings let users tune how responsive or smooth they want the CCI behavior to be.

🔒 Entry Filtering & Rejection Logic
4. Wick Trap Detection

Prevents entry during manipulated candles (e.g. stop hunts, wick traps).

Measures wick-to-body ratio against a minimum body size normalized by ATR.

Only trades when the candle shows a clean body and no manipulation.

5. Price Action Filters (Optional)

Long trades require price to break above previous high (or skip this with a toggle).

Short trades require price to break below previous low (or skip this with a toggle).

Ensures you're trading only when price structure confirms the breakout.

6. McGinley Alignment (Optional)

Price must be on the correct side of the McGinley line (above for longs, below for shorts).

Ensures that trades align with baseline trend, preventing early or fading entries.

📊 Volume Logic
7. Volume Spike Detection

Confirms that a real move is underway by requiring volume to exceed a moving average by a user-defined multiplier.

Uses SMA / EMA / VWMA for customizable behavior.

Optional relative volume mode compares volume against typical volume at that same time of day.

8. Volume Trend Filter

Compares fast vs. slow EMA of the volume spike ratio.

Ensures volume is not just spiking, but also increasing overall.

Prevents trades during volume exhaustion or fading participation.

9. Volume Strength Label

Classifies each bar’s volume as: Low, Average, High, or Very High

Shown in the dashboard for context before entries.

🎯 Entry Conditions
An entry occurs when all of the following align:

✅ Trend confirmed via gradient slope

✅ Momentum confirmed via smoothed CCI

✅ No wick trap pattern

✅ Price structure & McGinley alignment (if toggled on)

✅ Volume confirms participation

✅ 1-bar cooldown since last exit

💰 TP1 & TP2 Exit System
TP1 = 50% of position closed using a limit order at a % profit (e.g., 2%)

TP2 = remaining 50% closed at a second profit level (e.g., 4%)

These are set as limit orders at the time of entry and work even on backtest.

Alerts are sent separately for TP1 and TP2 to allow bot handling of staggered exits.

🧠 Trade Logic Controls
✅ process_orders_on_close=true ensures non-repainting behavior

✅ 1-bar cooldown after any exit prevents same-bar reversals

✅ Built-in canEnter condition ensures trades are separated and clean

✅ Alerts use customizable strings for entry/exit/TP1/TP2 — ready for webhook automation

📊 Real-Time On-Chart Dashboard
Toggleable, movable dashboard shows live trading stats:

🔵 Current Position: Long / Short / Flat

🎯 Entry Price

✅ TP1 / TP2 Hit Status

📈 Trend Direction: Up / Down / Flat

🔊 Volume Strength: Low / Average / High / Very High

🎛 Size and corner are adjustable via input settings

⚠️ Designed For:
1H / 4H Crypto Trading

Manual Traders & Webhook-Connected Bots

Scalability across volatile market conditions

Full TradingView backtest compatibility (no repainting / no fake signals)

📌 Notes
You can switch CCI smoothing type, volume MA type, and other filters via the settings panel.

Default TP1/TP2 levels are set to 2% and 4%, but fully customizable.

🛡 Disclaimer
This script is for educational purposes only and not financial advice. Use with backtesting and risk management before live deployment.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.