
A VIX Hedge strategy that acts as a simple intraday “insurance policy” for a long portfolio, helping reduce drawdowns and improve peace of mind during sudden market declines.

VIX Guard Core is a panic hedge on VIXY – it’s designed to make money when your long portfolio is in real pain. You will find its full conditions, description, and code below. It is designed to respond immediately to sudden spikes in volatility. In the Long strategy portfolio, it serves as an insurance policy that incurs a fee during calm periods but can significantly limit capital drawdowns during market crashes.
Inspirations
Hedge strategies don't look impressive daily; some of them may even be inherently loss-making. In theory, they "interfere," often have a low win percentage, regularly generate small losses, and usually worsen portfolio results during calm months.
But their role is entirely different. They are insurance—similar to a policy. Every year you pay a premium and get nothing out of it... until the moment it becomes very necessary. Then this "inconvenient" policy allows for expensive treatment or saves your assets.
VIX Guard Core is a fast intraday strategy with a single task: to capture volatility spikes on VIXY (an ETF based on VIX Futures), which always occur during sudden drops in the stock market, precisely when most Long positions in your portfolio are losing value.
The strategy focuses on an ETF that tracks short-term futures contracts on the VIX volatility index. In practice, this means that when market fear increases and sharp declines occur, volatility contracts become more expensive, driving VIXY higher. The fund purchases futures contracts and rolls them over daily, effectively "shifting" them to subsequent terms. This characteristic results in the instrument losing value over the long term, making it unsuitable for long-term holding. However, it is effective at capturing sudden volatility spikes, which can be pretty high.
Here are some examples of volatility explosions from recent years, along with the moments when they occur.
On the VIXY vs. S&P 500 index chart represented by SPY (green line):
Period 2018-2020

Period 2022

Period 2023

Period 2024-2025

VIX Guard Core is a hedge against the first strike; i.e., every day it stands ready with a BUY STOP set above VIXY's opening price. If the market explodes, the strategy enters a position. If not, it closes the day without a position.
Key Components
Maximally simple construction.
Every day, a BUY STOP order is set above the opening price (range adjustments depend on individual preferences; an overview of options is attached below).
Actually, I am not looking for any filters to improve the result or equity. This hedge is meant to be guaranteed, and filters might exclude the moment in the future when Long positions most need support.
The goal of this strategy is to ALWAYS be in the market when it is dynamically falling and to cushion the declines of LONG positions.
Entry Rules


Open[0] > 0 is always true, so the strategy will always have a pending order. This seemingly pointless condition, however, allows the Open price to be logged in Algocloud. This is important for monitoring of the strategy's operation and the prices used by Algocloud.
A Buy Stop order, depending on the goal, can be set at a distance of 0.5-1.5 * ATR. Below, I'd like to explain the range of available options.
Exit Rules
Closing the position always occurs at the end of the day (EOD), without maintaining exposure for longer than one session.


Backtest 1 – Fixed $ Money Management
Backtests pertain to a sample strategy with a 1.2*ATR(5) setting. The backtest was conducted with a fixed capital of $10k.
The strategy profile and the periods in which it earns money in relation to SPY are as follows:
Approximately - years 2011-2025

In details - years 2011-2018

In details - years 2019-2025

The SPY chart shown with a yellow line on the graphs does not represent a nominal comparison of the strategy's performance versus the benchmark, but is intended to illustrate the zoomed strategy's behavior relative to SPY, i.e., in which periods it gains and in which it loses.
As can be seen, the strategy operates oppositely to the index during most corrections, which is its primary goal. However, it also experienced significant drawdowns during periods of steady growth, which is expected behavior, as classic Long strategies typically perform well during these periods, effectively paying for this insurance.
Alternative Strategy Settings
The strategy is extremely simple, and that is its strength.
It has only two parameters:
ATR Multiplier
ATR Period

Below, I show the results across the full range of settings for these two parameters.
Net profit is a key measure of efficiency for me due to the hedge strategy goal. As you can see, the proposed settings are stable, but there are many better options available in this category.

Ret/DD - Initially, a more psychologically oriented goal may be beneficial. The stable area suggested in the default settings could provide a more comfortable introduction to the hedge's operation, as it trades less frequently than the faster-entry versions.

In summary, we have a relatively even distribution of Net profit results in the range of 0.4-1.2 (multiplier), practically across the full spectrum of the tested ATR period. I highlighted an example of a stable area, but many other options for selection are viable. By experimenting with these parameters, you will achieve different results in terms of market entry timing and frequency. They can be adjusted more precisely to better align with your goals.
Money Management and Backtest Settings
VIX and consequently VIXY are very specific instruments. Due to daily contract rolling, the instrument will always lose value in the long term, constantly increasing its historical price.

This requires understanding and appropriate backtest settings.
If we wanted to test purchasing VIXY according to an example strategy, e.g., worth $10k, it wouldn't be possible for many of the initial years of the backtest due to the extremely high value of a single VIXY unit in historical data.
A simple solution to this problem is to use fractional shares in the backtest. I've included the proposed settings below.

The size of the hedge position relative to the portfolio is a key aspect in using hedge strategies. These types of strategies are like spices. Used in small amounts, they can yield very good results, but if they take up too large a share of the portfolio, they can definitely harm us.
What "well" means depends on the individual situation. Suppose you have Trend Following and Mean Reversion strategies using capital on average 60% of the time. In that case, you must assume that during a larger correction, all your MR strategies will "take a position," and the allocation will reach 100% or more (you can check this precisely at the portfolio level with our Exposure Master tool).
