OPEN-SOURCE SCRIPT

Halt-Risk Guard (5-min / 10%) โ€” TTP Safe

263
๐Ÿ›‘ Halt-Risk Guard (5-min / 10%) โ€” TTP Safe

Stay clear of halts, invalidations, and over-extended moves.

๐Ÿ” Overview

The Halt-Risk Guard helps traders avoid sudden invalidations by monitoring price velocity over the past X minutes (default: 5 min) and flagging when moves exceed a configurable threshold (default: 10%).
Originally built to meet Trade The Pool (TTP) risk-management rules โ€” where even non-halted 10% moves can void trades โ€” this tool provides a clear, visual warning system and optional entry blocker.

โš™๏ธ Key Features

โœ… Halt-Risk Detection โ€“ Calculates both reference-based and swing-based (highโ†”low) percentage change over the chosen lookback period.
โœ… TTP Safe Mode โ€“ โ€œSwing modeโ€ captures extreme volatility spikes that may invalidate trades even when the market stays open.
โœ… Entry Blocker (optional) โ€“ Automatically greys candles and dims the background during risky conditions to prevent impulsive entries.
โœ… Customisable Positioning โ€“ Move the on-chart info box to any corner of your chart (Top Left / Top Right / Bottom Left / Bottom Right).
โœ… Clean Alerts โ€“

โš ๏ธ At/Above Threshold

โœ… Back to Safe

โ›” Entry Blocker Active
โœ… Visual Table Display โ€“ Compact dashboard shows current % move, lookback window, and threshold with intuitive green/red status.
โœ… Strategy-Ready Output โ€“ A hidden 0/1 plot lets you block or filter trades in automated systems.

โšก How It Works

Monitors the selected symbol using your chosen computation timeframe (recommended 1-minute).

Evaluates either:

REF mode: Close-to-close change over the lookback window.

SWING mode: High-to-low range within the same window.

If the move โ‰ฅ Threshold %, the script highlights a halt-risk condition and optionally activates the entry blocker.

๐ŸŽจ Recommended Settings

Lookback: 5 minutes

Threshold: 10 %

Swing mode: ON (TTP-safe)

Computation timeframe: 1 minute

Entry blocker: ON

Dim background: ON

๐Ÿง  Use Cases

TTP and other prop-firm evaluations enforcing price-movement limits.

Volatility-based scalping systems to avoid chasing extended candles.

Strategy filters for algorithmic entries (e.g. pause trading during halt-risk windows).

โš ๏ธ Disclaimer

This tool provides visual and alert-based guidance only. It does not guarantee compliance with any specific firmโ€™s rules or eliminate trading risk. Always verify thresholds and rules with your broker or evaluation provider.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.