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.

null

 

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.

null

 

Make a formula that collects the entry and exit dates.

null

 

Select the Symbol,Entry,Exit and copy.

null

 

Paste into the Symbols box in the Create New Backtest section.

null

 

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.

null

 

Here I chose to under-weight the long call vs the put fly.

null

 

Trial the backtester for yourself.

 

related posts

New Backtest Feature: Enter Trades Based on Premium Divided by Strike Difference
Aug
07
Backtesting, options trading, put spread, vertical

New Backtest Feature: Enter Trades Based on Premium Divided by Strike Difference

For spread strategies, you can now define the premium compared to the strike difference for...

Read Post
The Tale of Two Backtests: Why Aren't Opposite Strategies Absolute Returns Equal?
Aug
06
Backtesting, Pairs Trading, options trading, slippage, commission

The Tale of Two Backtests: Why Aren't Opposite Strategies Absolute Returns Equal?

You might think a strategies like short call spreads and long call spreads should have equal and...

Read Post

We're here, if you need us.

Still curious how we can help you?




LET'S CHAT