Preferences

The simulator settings are included in every Backtest Job Definition in the SimSettings section. Given that these parameters rarely change once the user finds the setting matching his broker, we provide a way to set it globally so that every backtest can easily leverage the settings.

To access the SimSettings, please select the Preferences item associated with your user (top right-most dropdown):

Preferences menu
Preferences menu

Clicking on Preferences will show you the following Settings page:

Backtest Preferences
Backtest Preferences

Make sure you click save before choosing a new symbol to adjust the settings for or before navigating away from the page!

Settings for symbol can be used to choose which symbol's settings are modified. As Index and Crypto options differ in commission structure, the user has the ability to set the desired commission structure for both asset classes.  

Initial cash can be considered the planned capital for the simulation and is represented by the Cash top-level field.

Fill Model defines the price at which each leg is filled.
Supported modes of operation:

- At Mid Price: The option is filled in at the mid-point of the Bid-Ask price.
This is a good starting point, as options often can be traded around mid-price.

- At Bid/Ask: Long orders are filled at Ask, while Short orders are filled at Bid.
This mode is more pessimistic and can be used to replicate entries and exits where market orders are used.

Slippage is the β€œdifference between the expected price of a trade and the price at which the trade is executed.”

In MesoSim, we use slippage to model the extra cost paid on top of what the FillModel dictates. For instance, when the FillModel is set to MidPrice and the calculated MidPrice is $1.0, and slippage is set to $0.1, then the actual fill price will be $1.1 for Long orders, while $0.9 will be used for short orders. Slippage is similarly calculated for the Bid/Ask fill model.

NOTE: Slippage is calculated on a per-leg basis. Our experience in options trading complex structures (such as Iron Condors) can often be filled at MidPrice+$0.05. If we would like to model this behavior, we should consider that an Iron Condor has four legs and the overall slippage is $0.05. Hence the per-leg slippage should be set at $0.05/4 = $0.0125

Commission is the amount paid to the broker per contract traded. This value should be adjusted to match your account at your brokerage.

Leg selection constraint controls how contracts are chosen for each leg of a position. For a detailed description of this parameter, please refer to the Job Definition Reference's SimSettings section.

Margin Model defines which margin calculation to use during the simulation run. Currently, it is either turned off (None) or could be set to Reg-T. Please refer to the Job Definition Reference's respective section on more information about the supported margin models.

Trace Collection Interval defines the frequency of Risk Trace collection. Please refer to the Backtest Position Monitor for further details on the topic.