Backtests
...
Running a Backtest
Positions

Entry Conditions

Below a backtest position's Overview fields, you'll find fields for Entry Conditions (entry timing and strike selection). Those fields are explained below.

Entry Timing

Entry Frequency (Required): This determines how frequently to enter trades. Your choices are:

  • Sequential
    • Enter a new trade as soon as the previous trade closes - assuming the current underlying/market conditions meet your entry criteria.
  • Daily
    • Enter a new trade every day at the same time of day
  • Weekly
    • Enter a new trade once a week at a specific day and time of day
  • Monthly
    • Enter a new trade once a month on a specific day of the month number and time of day. If the market is closed on this day of month, the backtest will enter a trade on the next day the market opens.
  • Position Trigger
    • Enter a new trade for this position when a different position on the backtest exits a trade. This will allow you to chain separate positions, one after the other. When you select Position Trigger, you will be prompted to select the other position on the backtest that will trigger entry, and you can also specify which type of exit will trigger entry: Any Exit, Profit, or Loss. If the selected position exits a trade at that type (Any/Profit/Loss), the current position will open a new trade according to its parameters. This triggered entry will occur 1 minute after the other position exits, and is valid for the current market session while any other filters or market conditions are met, otherwise that entry is skipped for the day.

Enter Second Position (Optional): This is only available if your Entry Frequency from above is Sequential. If you have sequential entry, you have the ability to double up your position by entering a second trade, with an existing trade already open. This doubling up will occur at a designated Days to Expiration and time of day for the existing trade.

This feature can be used however your creativity allows, but one common use case is when holding a trade that is near expiration. Rather than spending brokerage fees and losing to slippage by closing the existing position, just hold onto it until expiration while entering a new trade with a future expiration.

Days of Week (Optional for Sequential and Position Trigger): Sequential and Position Trigger can enter at different days and times of the day. If you would like to restrict those to certain days of the week, you can do so with this field.

Earliest Time of Day (Optional): The earliest time of day to enter a new trade.

Latest Time of Day (Optional): The latest time of day to enter a new trade.

Same Day Re-entry (Optional): This is only available if your Entry Frequency from above is Sequential. If you only want to enter a new trade based on the profit/loss result of the previous trade, you can specify that here. This will restrict the backtest from subsequent entries each day only when the last trade closes at a profit or a loss (based on your choice). This filter is not analyzed for the first trade each day, so the bot will not go back and look at a trade closed on a prior day. This is only used when cycling into new trades intraday.

Entry Strike Selection

Target DTE (Required): Target days to expiration for each new trade. The backtest will find and select the expiration closest to this number of days to expiration at entry.

Minimum DTE (Optional): If you would like to ensure that all trades are at least a certain number of days to expiration, enter that here. If your target is more than 5 DTE and you do not specify a minimum, the backtester will accept any days to expiration that is within 50% of your target.

Maximum DTE (Optional): If you would like to ensure that all trades are no more than a certain number of days to expiration, enter that here. If your target is more than 5 DTE and you do not specify a minimum, the backtester will accept any days to expiration that is within 50% of your target.

Put Position Strike Selection

For positions that include put options, the following fields are available to determine which strikes to select.

Put Strike Target (Required):

  • Delta
    • Select a put strike that is closest to a certain delta value
  • % OTM
    • Select a put strike that is closest to a certain percentage out-of-the-money relative to the current underlying price
  • Premium
    • Select a put strike that is closest to a certain premium (MID/MARK) amount. This is the premium only for this strike, not total premium for multiple legs.

Put Spread Strike Selection

Any put that includes a spread, including Credit Spreads, Debit Spreads, Iron Butterflys, and Iron Condors, use the following fields to configure how to set up the spread.

Spread Strike Target Type (Required): This controls how the long strike of a Put Credit Spread is selected or the short strike of a Put Debit Spread is selected.

  • % From Main Strike
    • Closest strike that is a certain percentage away from your main strike. This would be a percentage distance between strikes for the put spread.
  • Delta
    • Strike that is closest to this delta value
  • Premium
    • Strike with a MID/MARK price closest to this value. If you use this setting, you can also optionally provide a maximum width for the spread so that the backtest only goes so wide on the spread while looking for a certain premium target on the spread strike.
  • Width
    • Strike that offers a total put spread width closest to this value

Call Position Strike Selection

For positions that include call options, the following fields are available to determine which strikes to select.

Call Strike Target (Required):

  • Delta
    • Select a call strike that is closest to a certain delta value
  • % OTM
    • Select a call strike that is closest to a certain percentage out-of-the-money relative to the current underlying price
  • Premium
    • Select a call strike that is closest to a certain premium (MID/MARK) amount. This is the premium only for this strike, not total premium for multiple legs

Call Spread Strike Selection

Any call that includes a spread, including Credit Spreads, Debit Spreads, Iron Butterflys, and Iron Condors, use the following fields to configure how to set up the spread.

Spread Strike Target Type (Required): This controls how the long strike of a Call Credit Spread is selected or the short strike of a Call Debit Spread is selected.

  • % From Main Strike
    • Closest strike that is a certain percentage away from your main strike. This would be a percentage distance between strikes for the call spread.
  • Delta
    • Strike that is closest to this delta value
  • Premium
    • Strike with a MID/MARK price closest to this value. If you use this setting, you can also optionally provide a maximum width for the spread so that the backtest only goes so wide on the spread while looking for a certain premium target on the spread strike.
  • Width
    • Strike that offers a total call spread width closest to this value



Updated 27 Mar 2024
Did this page help you?