Backtests
...
Running a Backtest
Positions

Fill Settings

The following settings are available for every backtest position to control brokerage fees and slippage.



Document image


Broker Fee (Required)

This is the fee that you will spend per contract that is opened or closed.

Price for Zero-Fee BTC (Optional)

Some brokers waive fees if you buy-to-close (BTC) a position below a certain premium. If this applies to you, you can specify that premium cutoff here, and the backtester will not include fees when you BTC at that price or lower.

Assignment/Exercise Fee (Optional)

If you hold a position in-the-money at expiration and need to apply a fee to that position, you can do that with this setting. This will apply the fee that you specify to each in-the-money leg that is held to expiration, regardless of the number of contracts.

Entry Slippage (Required)

This determines where along the bid/ask spread you will fill for your entries. 0% slippage means that you fill at the best price (bid if buying, ask if selling). 100% slippage means that you fill at the worst price (ask if buying, bid if selling). You can enter any percentage above 0% and can also go over 100% if necessary. Something between 60% and 75% is appropriate for most trades.

To illustrate what this percentage means, consider the following two images.

For a debit trade (buy to open or buy to close), 0% slippage would be at the BID and 100% slippage would be at the ASK. In between, you could have 25%, 50%, and 75% as shown below:

Document image


For a credit trade (sell to open or sell to close), 0% slippage would be at the ASK and 100% slippage would be at the BID. In between, you could have 25%, 50%, and 75% as shown below:

Document image


Exit Slippage (Required)

This determines where along the bid/ask spread you will fill for your exits. This uses the same logic as Entry Slippage above, so rather than repeat that description, you can just reference the Entry Slippage information above for an explanation on Exit Slippage.

Minutes Between Trades (Required)

Number of minutes to insert between trades. This determines how many minutes to place between the exit of one trade and the entry of the next (for Sequential trade entries). You should enter a value here that most closely represents how quickly you can cycle into a new trade. If you have automated this trade, your time between trades may be just 1 minute. However, if you are manually trading, you may find this should be 30 minutes to reflect your availability to enter a new trade during the day.

Default Settings

Visit your Backtest Preferences to view and configure default values for these fee and slippage fields. Every new position that you add will use your default settings, and you can override them on a case-by-case basis.



Updated 14 Jun 2024
Did this page help you?