Why a volatility shock deserves a separate entry gate

A trend-following signal can remain valid even when the latest bar is unusually wide. Entering immediately after such a bar may expose a strategy to wider spreads, slippage and rapid reversals. A cooldown gate separates directional conviction from permission to submit a new order. It does not predict the next price move.

Define the shock without diluting its baseline

Use the completed bar's high minus low divided by the ATR(14) of the preceding completed bar. A ratio at or above 2.0 blocks the current signal and the next two completed bars. Using the prior ATR prevents the shock itself from inflating its comparison baseline. This is a range-based filter, not a true-range shock detector: overnight gaps may require a separate filter.

Blocking New Entries After Volatility Shocks with a Bar-Based Cooldown
Hypothetical data: bar 4 triggers a shock, bars 5 and 6 are blocked, and bar 7 becomes eligible. The dashed blue line is the 2.0 threshold.

Worked example

Suppose the prior ATR is 5 points and the current high and low are 110 and 96. The ratio is 14/5 = 2.8. Reject new entries on this bar and the following two bars, even if a 20-period EMA trend filter and breakout signal agree. A fresh shock during the cooldown restarts the two-bar count. On the third subsequent bar, a new signal may qualify; do not replay an expired signal.

MultiCharts .NET integration

The following C# helper is intended to be embedded in a SignalObject-derived strategy, not compiled as a standalone signal. Initialize the counter when starting a fresh calculation. Obtain the previous completed ATR from your configured indicator series, and call the helper exactly once per completed primary-data bar in CalcBar after warm-up. Disable intrabar order generation for this example or explicitly deduplicate bar-close processing. Combine the returned Boolean with your existing entry condition before submitting a next-bar order. Continue evaluating protective exits independently.

// Platform-neutral C# helper for a MultiCharts .NET Signal
private int remaining = 0;

private bool EntryAllowed(double high, double low,
    double priorAtr, double multiplier, int cooldownBars)
{
    if (priorAtr <= 0 || double.IsNaN(priorAtr)
        || double.IsInfinity(priorAtr))
        return false;
    if (high - low >= multiplier * priorAtr)
    {
        remaining = cooldownBars;
        return false;
    }
    if (remaining > 0)
    {
        remaining--;
        return false;
    }
    return true;
}

Use positive multiplier and nonnegative cooldown inputs; reject invalid settings at initialization. Keep state isolated per strategy instance. A pending order from an earlier bar is not automatically canceled by this helper: implement cancellation and acknowledgment handling separately if the strategy requires it.

Testing and limitations

Compare the baseline strategy against the gated version using identical commissions, slippage and session settings. Test exact threshold equality, repeated shocks, insufficient history, zero ATR, session transitions and recalculation. Measure rejected signals, missed profitable trades, net returns after costs and drawdown across out-of-sample periods. Test several nearby thresholds rather than selecting a single optimized value. The helper has not been compiled or backtested here. Simulated next-bar fills can differ materially from live execution; losses can exceed expectations.

For integration with your own entry and order-management rules, contact our Custom MultiCharts .NET strategy Development Services.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.