Backtests
...
Running a Backtest
Positions

Entry Filters

Entry filters can be used to control when your backtest sits on the sidelines, with no open trade, and waits for the right market conditions to enter a new trade.

These entry filters are only used at trade entry. Once a trade is entered, it will only exit based on the position's exit conditions. It will not exit if your entry filters (defined below) are no longer met.

VIX

This comes with optional min and max VIX values. If specified, your backtest position will only open new trades if the current VIX value meets your min and/or max.

IV

This includes optional min and max implied volatility (IV) values for your position's underlying. This IV is measured at-the-money rather than at your specific strike.

Implied volatility changes based on duration. Implied volatility for a strike 1 day to expiration is different from a strike 45 days to expiration, for instance. Our quotes include IV 0, 1, 5, 10, and 30 days to expiration for each underlying. When using IV filters, the backtester will use the IV value that is closest to your position's target days to expiration.

IV is measured and recorded every 30 minutes during the market session.

IVR

This includes optional min and max implied volatility rank (IVR) values for your position's underlying. IVR represents the current IV relative to IV over the prior year. It is measured from 0-100% wherein 0 represents the lowest IV recorded over the last year and 100% represents the highest IV recorded over the last year. IVR at 60 would indicate that approximately 60% of the prior year's IV readings were below the current level and 40% over IV readings were above.

We calculate IVR as follows:

Document image


Implied volatility changes based on duration. Implied volatility for a strike 1 day to expiration is different from a strike 45 days to expiration, for instance. Our quotes include IV 0, 1, 5, 10, and 30 days to expiration for each underlying. When using IV filters, the backtester will use the IV value that is closest to your position's target days to expiration.

IVR is measured and recorded every 30 minutes during the market session.

% Move from Close

This filter will only allow entries after the underlying has moved a certain percent from the prior closing price. You can specify min and/or max % move from close. This is evaluated at the time of trade entry.

In the example brelow, the backtest will only enter a trade once the underlying is 1% below the prior closing price.

Document image


% Move from Open

This filter will only allow backtest trades after the underlying has moved a certain percent from the opening price. You can specify min and/or max % move from open. This is evaluated at the time of trade entry.

In the example brelow, the backtest will only enter a trade once the underlying is 0.7% above the opening price.

Document image


Economic Events

If you would like to avoid or specifically target scheduled economic releases such as FOMC, GDP, NFP (jobs), CPI, or Earnings, you may control that under the Economic Events section for the backtest position. Right now, the only supported events are CPI, FOMC, GDP, and NFP, but we will expand to more events in the future.

Example: Avoid FOMC

In the example below, the backtest will exit any open trades 1 day before FOMC and then wait to re-enter 1 day after FOMC. If FOMC is on a Wednesday, the backtest will close trades Tuesday at market close and then open new trades Thursday at market open (if your other position entry conditions are met).

Document image


Example: Trade FOMC

In the example below, the backtest will only enter new trades on the day of FOMC. For FOMC meetings that are on a Wednesday, the backtest will only enter trades the morning of FOMC (if all other entry conditions are met). It will then hold that trade until 2 days later, exiting by market close on Friday.

Document image


If you'd like to avoid or trade multiple events, go ahead and toggle as many as you'd like!

TIP: Run small backtests before large ones

Some of the entry filters, particularly Economic Events, can be a little confusing to figure out how they work. You may put in a filter and then find that it doesn't do what you anticipated. To avoid wasting your time and money on this, we recommend restricting your backtest start and end date to a tight range while you are trying to figure out the right settings for the backtest. Review the backtest trade log, ensure it is doing what you expect, and then expand the backtest date range to a wide range.

This way you don't waste money running large backtests only to discover that it doesn't trade as you expected!