Tuesday, July 9th 2019
How to Combine Options Strategies to Enter & Exit on the Same Dates in a Backtest
Backtest complex trading strategies using the Combine feature and the Symbol Entry Exit Dates method. Here a long call and put butterfly spread are combined.
The ORATS Backtester allows for complex trading strategies using the Combine feature and Symbol Entry Exit Dates method. After running a backtest and downloading the results, construct a second backtest that enters and exits based on the dates from the first backtest. Combine the results of both tests and adjust the weighting of each strategy as desired.
Building complex trading strategies is possible with the ORATS Backtester using the Combine feature and the Symbol Entry Exit Dates method.
The first step is to run a backtest and download the results.
Here I want to add a long call to a put butterfly that has an exit strategy. I want to make sure the call exits when the put fly exits.
In the zip, select StrategyOutputs folder and open the StrategyTrades.csv. Open the trades file and off to the side make three columns with Symbol, Entry Date, Exit Date. Copy those into the Symbol box and construct your second backtest that will enter and exit based on the dates you pasted.
Make a formula that collects the entry and exit dates.
Select the Symbol,Entry,Exit and copy.
Paste into the Symbols box in the Create New Backtest section.
Run the backtest. Click on the box next to the test along with the original backtest. Click 'Combine' and the new test will have the combined results of the two tests.
Here I chose to under-weight the long call vs the put fly.
Trial the backtester for yourself.
Discover your favorite backtests by filtering on several popular performance metrics such as notional return, sharpe ratio, and percent of time in market.
Filter millions of backtests based on different parameters, technical indicators, and exit triggers for all types of options strategies.