INVITE-ONLY SCRIPT

Sniper HA Strategy (V7 Institutional)

58
Here is a professional, institutional-grade description for your Pine Script. You can copy and paste this directly into the TradingView "Description" box when you publish or use it for your own documentation.
Sniper HA Strategy (V7 Institutional)

Sniper HA V7 is a robust, risk-first trend-following strategy designed to capture high-probability breakouts while aggressively filtering out market noise and "chop."

Unlike standard Heikin Ashi scripts that suffer from repainting or excessive signaling, V7 utilizes a "Native Non-Repainting" engine that calculates Heikin Ashi values internally based on confirmed closed candles. It combines this signal engine with institutional-grade risk management protocols—including dynamic circuit breakers, volatility regime filters, and a "Banker/Runner" split-exit system—to ensure capital preservation during drawdown periods.
1. Core Logic & Signal Generation

Native Heikin Ashi Engine: Calculates HA candles manually using (Open+High+Low+Close)/4 logic on confirmed bars. This eliminates the "flicker" often seen when using standard request.security HA calls.

Volatility Regime Filter ("Dead Zone"): Uses a 14-period ATR relative to its historical median (default 50th percentile) to filter out entries during low-volatility consolidations. If the market is sleeping, the bot stays flat.

Trend Confirmation Protocol: A signal does not trigger an immediate market entry. Instead, it places a Stop Order at a defined percentage (default 1.5%) beyond the signal candle. If price does not break through this level within a set timeout (default 48h), the signal expires. This prevents buying tops or selling bottoms during weak reversals.

2. Institutional Risk Management

Breathing Room Phase (0-48h): Recognizes that new trends need room to breathe. The stop loss is wider (default 5%) during the first 48 hours to survive initial volatility.

Circuit Breaker Phase (48h+): Once the trade matures, the stop tightens to a hard cap (default 8%) to prevent catastrophic loss on failed trends.

Cooldown Period: Enforces a mandatory "cool-off" (default 5 days) after a trade closes to prevent over-trading and "revenge trading" during choppy market conditions.

3. Dynamic Exit System (Banker + Runner)

This strategy employs a hybrid exit mechanism to smooth the equity curve:

The Banker (50%): Exits half the position at a fixed profit target (default 12%).

The Risk-Free Runner (50%): The moment the Banker target is hit, the stop loss for the remaining 50% is automatically moved to Breakeven. This creates a "Risk-Free" trade that trails price using an ATR-based Chandelier Stop (3x ATR), allowing you to catch massive outliers without giving back principal.

4. The Trader's Dashboard

A built-in heads-up display (HUD) in the top-right corner provides real-time state tracking:

Vol Regime: Shows PASS/FAIL based on current volatility.

Pending Orders: Displays the exact price level required to trigger an entry.

Expires In: Countdown timer for pending signals.

Trade Phase: Indicates if the trade is in "Breathing Room," "Circuit Breaker," or "Risk-Free Runner" mode.

Settings & Inputs

Exit Logic: Adjust Banker % and Runner ATR Multipliers.

Risk Management: Configure Stop percentages for initial and mature phases.

Filters: Tune the Trend Confirmation % and Volatility Percentile.

Backtest Window: Restrict testing to specific date ranges.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.