← Back to blog

Volatility Gating Settings for Scalpers: ATR 14–20 on TradingView

October 12, 2026
Volatility Gating Settings for Scalpers: ATR 14–20 on TradingView

The baseline gate we recommend for scalpers combines an ATR filter with a length of 14 to 20 and a multiplier of 1.5 to 2.5, paired with an implied volatility percentile check that disables entries above the 75th percentile. Smooth the volatility reading over a 15 to 20 candle window to cut out noise. We break down the exact settings, alternative measures, and a backtest workflow below.


TL;DR:

  • For options, calculate a rolling IV percentile over 252 trading days; use ATR for spot and futures, and VIX or CVOL for broader market context.
  • Build an ATR threshold from six to twelve months of instrument history, starting at 1.5 to 2 times its median, then test before risking capital.
  • Confirm signals at candle close or require two consecutive candles beyond the threshold; a dual window can reduce whipsaws around noisy session openings.
  • Compare gated and ungated results through rolling walk forward periods or a 70/30 split with multiple out of sample folds across market conditions.
  • Choose a stable plateau across ATR lengths and multipliers, not one best backtest result, and stress test high volatility events and thin overnight sessions.

Scalping-algo
Filter Volatility in Scalping Setups
Explore TradingView indicators with volatility gating and real-time signals for short-term trading across crypto, forex, indices, commodities, and futures.
Explore Scalping-Algo

Table of Contents

1. Which volatility measure fits your strategy

Picking the right volatility measure comes down to your instrument and your holding time. Implied volatility (IV) reflects what options markets expect going forward, which makes it most useful when you're trading options or need a forward-looking read on risk. Realized (historical) volatility measures what actually happened to price, which works better for spot and futures scalping where you care about recent behavior, not expectations.

Average True Range (ATR) is the workhorse for short-term gating because it's price-based, updates every candle, and doesn't require an options chain. For 1-minute to 5-minute charts, a 14-period ATR tends to react fast enough to catch regime shifts without whipsawing on every tick. On 15-minute charts, stretching that to 18 to 20 periods smooths the signal without losing responsiveness.

Index-level gauges like the VIX or CME Group's CVOL give you a market-wide read, which matters when a broad volatility spike is about to swamp your individual setups regardless of what your instrument's own ATR says. CVOL extends this by covering multiple asset classes with added analytics like UpVar and DownVar, useful when a single VIX reading won't capture asymmetric moves in commodities or rates.

A quick mapping:

  • Equities and index futures: VIX or CVOL for market context, ATR for entry timing.
  • Forex and crypto: ATR as the primary gate since there's no single dominant volatility index.
  • Options strategies: IV percentile as the primary filter, ATR as a secondary check.
  • Commodities: CVOL's asset-specific volatility curve plus instrument-level ATR.

2. Setting thresholds that actually hold up

Thresholds work best when they're grounded in something measurable rather than a guess. The percentile method is the most common starting point: rank current IV against its own trailing history and treat the 75th percentile as a line where options premium-selling conditions become historically favorable, a guideline CME Group outlines in its volatility education material.

For ATR, multiplier settings do the real work.

Options traders often reference the 3-5-7 rule as a rough framework for position sizing and premium decisions across different volatility regimes, though definitions of the rule vary by trading desk, so treat it as a starting heuristic rather than a fixed law.

Research on conditional volatility targeting from CFA Institute points to a sharper idea: only adjust exposure when volatility hits genuine extremes, rather than constantly rebalancing against every fluctuation. That keeps turnover low and avoids death by a thousand small adjustments.

A simple way to land on your starting threshold:

  1. Pull 6 to 12 months of your instrument's ATR history and find its median.
  2. Set your initial gate at 1.5 to 2 times that median.
  3. Layer in an IV percentile check if you trade options or want a market-level backstop.
  4. Run a quick backtest before committing capital.

Pro Tip: Start wider than you think you need, then tighten the gate gradually as you confirm it isn't cutting good trades.

3. Smoothing and filters that stop false triggers

Raw volatility readings spike on single candles all the time, and a gate that reacts to every spike will cut you out of trades constantly. Smoothing fixes this by averaging volatility over a window instead of reacting instantaneously, trading a small amount of reaction time for a large reduction in false signals.

A 15 to 20 candle smoothing window is a solid practical default for volatility gating, a guideline widely used among scalpers managing lower timeframe noise. Shorten that window on 1-minute charts where conditions change fast, and lengthen it slightly on 15-minute charts where each candle already carries more information.

  • Dual-window approach: pair a fast volatility read with a slower one, and only gate when both agree, which cuts down on whipsaw.
  • Candle-close confirmation: evaluate the gate only after a candle closes instead of mid-formation.
  • Two-candle rule: require volatility to stay above or below threshold for two consecutive candles before acting.
  • Session-aware smoothing: widen the window slightly around session opens when volatility naturally spikes.

These filters cost you a few seconds of reaction time, which is a fair trade against entering on a noise spike that reverses before your stop is even set.

4. Building the gate in TradingView and Pine

Here are three parameter sets you can adapt directly, whether you're coding your own Pine script or configuring one of our indicators.

  • Example A, ATR gate for 1-minute scalping: ATR length 14, multiplier 1.8, evaluated on candle close. Disable entries when ATR exceeds 2 times the historical session median.
  • Example B, IV percentile gate for options: lookback of 252 trading days, compute a rolling IV percentile, and disable premium-selling entries when IV sits above the 75th percentile.
  • Example C, hybrid gate: require market-level IV below the 75th percentile and instrument ATR below your chosen threshold simultaneously before allowing an entry.

All three examples should evaluate on candle close rather than tick-by-tick, which keeps signals non-repainting and avoids false triggers mid-candle. If you're routing alerts to Discord or another execution path, confirm the webhook fires only after that close condition is met, not on every intrabar update.

Our indicator suite, including Smart Scalping Signals, ships with volatility gating built into the open-source Pine scripts, so you can inspect exactly how the ATR and percentile logic runs before trusting it with live capital.

Pro Tip: Log every gate-triggered skip during your first week live, then review whether those skipped trades would have won or lost. That log tells you more than any backtest.

Illustrated audit of volatility-gated skipped trades

5. Backtesting your gate settings without fooling yourself

A gate that looks great on one clean backtest often falls apart out of sample. Use a rolling walk-forward approach or at minimum a 70/30 split with several out-of-sample folds covering different market conditions, not just your strongest quarter.

Track these metrics for each setting you test:

  1. Return per trade and win rate, to see if the gate is improving trade quality or just reducing frequency.
  2. Expectancy and max drawdown, which tell you whether the gate is protecting capital or just suppressing activity.
  3. Volatility of returns and Sharpe ratio, useful for comparing gated versus ungated versions of the same strategy, a comparison Oracle Investments covers in more depth for risk-adjusted metrics generally.
  4. Tail-risk measures, since a gate's real job is often avoiding the worst days, not improving the average one.

Run a parameter sweep across ATR lengths and multipliers, and look for a stable plateau of good results rather than a single best combination, which is usually a sign of overfitting. Stress test the gate separately against known high-volatility events, low-liquidity overnight sessions, and seasonal subperiods like holiday weeks, since a filter that works in normal conditions can behave very differently in a liquidity vacuum.

6. What tuning hundreds of gate configurations has taught us

The biggest mistake we see is traders chasing a single magic threshold instead of a stable range. A gate set at exactly the 75th percentile isn't meaningfully better than one at the 72nd or 78th, and treating it like a precise line invites overfitting. The real value of volatility gating isn't precision, it's consistency: cutting out the sessions where your edge statistically doesn't hold.

Our Command Center dashboard reflects that philosophy. The open-source Pine scripts behind our non-repainting signals expose the gating logic directly, so you can see the ATR and percentile checks firing in real time rather than trusting a black box. Traders typically start with our default gate settings, then adjust the ATR multiplier and smoothing window inside the dashboard while checking results against the built-in backtesting tools before going live. Alerts route through Discord the moment a gate condition clears, which keeps execution timing tight without manual monitoring.

— Tran

Put these volatility gates to work with Scalping-Algo

Configuring a gate by hand in Pine Script works, but validating it across instruments and timeframes takes real time most of us don't have during live sessions. Our Smart Scalping Signals, Edge Finder, and Momentum Oscillator indicators come with volatility gating built in and adjustable, alongside the Command Center dashboard for backtesting, Discord alerts, and education resources.

Scalping-algo

Subscribers get the full indicator suite, non-repainting signals, and access to live mentoring sessions in our Discord community. Plans start at Monthly for $79 per month, with Yearly and Lifetime options available at Scalping-algo.

FAQ

What is equity volatility?

Equity volatility measures how much a stock's price fluctuates over a given period, typically expressed as an annualized percentage. It can be calculated as historical (realized) volatility from past price movements or implied volatility derived from options pricing.

What is the 3-5-7 rule in options trading?

The 3-5-7 rule is an informal heuristic some options traders use for position sizing or target setting across different volatility conditions, though its exact definition varies by trading desk. Treat it as a rough starting framework rather than a fixed formula, and validate any version against your own backtest data.

What is a good volatility number?

There's no single universal number since "good" depends on your instrument and strategy type. For options premium-selling, a common guideline is favoring entries when implied volatility sits above the 75th percentile of its historical range, while scalpers typically gate on ATR multiples relative to their instrument's own median range.

What is the best strategy for volatility index?

Trading a volatility index like the VIX directly requires understanding its construction, since its filtering rules and calculation methodology can produce sudden jumps that don't behave like a typical price chart. Most traders use it as a market-context filter, disabling or tightening entries when it spikes, rather than trading it as a standalone signal.

Can volatility gating hurt returns if it's too strict?

A gate set too tight can filter out legitimate trades along with the noise, so testing a range of thresholds against your own trade history matters more than copying a fixed number. Start with wider settings, review gate-triggered skips, and tighten gradually once you've confirmed the filter is helping rather than just reducing trade frequency.

Sources