Technical FAQ

This FAQ answers many of the commonly asked questions regarding how to use the OptionStack platform. Topics such as how to create / adjust your positions and how to analyze / tune your trading systems are discussed below. If you have any additional questions, please post your questions to our discussions forums.

Creating strategies

You can create various different option spreads, from covered calls to vertical spreads to iron condors.

Screen Shot 2016-05-30 at 4.50.44 PM

Once you’ve constructed your spread order, click on the “Magnifying Icon” on the Strategy block. A list of matching positions will be displayed in the lower panel.

Screen Shot 2016-05-30 at 4.43.15 PM

You can specify the strategy filters for an entire order or for individual legs of an order. By default, the strategy filters apply to the entire order as a whole.

To specify the strategy filters for a specific leg of an order, click on the “Gears” icon on the strategy filter block and enable the “Leg” option.

Screen Shot 2016-05-30 at 4.05.02 PM

In the example above, a put vertical spread will be constructed where:

  • the highest strike put will have a delta of 25 – 30.
  • the overall position delta will be 15 – 20.
Comments can help you identify which transactions were triggered as part of your trading rules, and are useful when debugging your strategy.
Comments can be added as part of the Strategy block, and will be displayed in the Comments columns in the Transaction table.

Screen Shot 2016-05-30 at 3.55.51 PM

By default, the studies and strategies use the instrument defined at the top block.

To create studies and trades for other instruments, click on the “Gears” option icon, and enable the “Instrument” option .

Screen Shot 2016-05-30 at 5.09.56 PM

You can add manually add specific option trades or stock trades on a specific date using the Manual Trade Block. You can select the exact date / strike / expiration / fill price / quantity for your trade.

Please see the following article on using your own custom indicators:

How To Use Your Own Custom Indicators

Adjusting Positions

You can close an existing position by using the Close block, and specifying the Order ID of the position you wish to close.

Screen Shot 2016-05-30 at 5.25.27 PM

You can close an entire position, or a specific leg of a position.

To close a specific leg of a position, click on the “Gear” option icon and select the “Leg” option. Then select the specific leg you want to close.

Screen Shot 2016-05-30 at 5.27.56 PM

To close a position based on profit / loss targets, you can use the Portfolio Studies Block to monitor the attributes of a particular position, such as profit/loss, return on cost, option greeks, etc.. You can also plot the various attributes of a position, such as its profit/loss and option greeks.

Screen Shot 2016-05-30 at 7.50.56 PM

You can reference the attributes of an existing position, such as strike prices / expiration dates / etc…, by using the SetVariable block and the Portfolio Studies block. Please see the following for more information: Referencing Existing Trades
By default, positions are closed prior to expiration. To allow positions to be exercise / assigned instead, enable the “At Expiration” option under the Gear Icon on the Strategy block. Select the Exercise/Assign” drop-down option.


You can use the netOpenUnderlyingInstrumentUncoveredQuantity method in the Portfolio Studies block. This method returns the number of underlying shares of stock a position has, which will be greater than 0 if an option has been assigned / exercised.

By default, once a position is opened, it is considered open unless it has expired or has been explicitly closed by an accompanying order with matching OrderID. This allows multiple positions to be managed and tracked separately, without worrying about one trade interfering / offsetting another trade unintentionally.

But if you want to allow one position to offset another position, you can enable the consideredPositionsClosedIfOffsetByIndependentPositions setting.

Analyzing Results

Double-click on any of the transactions in the Transaction Table or the “T” icons on the chart to bring up the transaction details.

Screen Shot 2016-05-30 at 8.07.38 PM

In addition to the transaction details itself, you can also view the portfolio before and after the transaction.

Screen Shot 2016-05-30 at 8.09.36 PM

Double-click on any of the rows in the Statistics table to view the portfolio at a given point in time.

Screen Shot 2016-05-30 at 8.13.29 PM

For each backtest run, the positions / transactions selected will match your specified trading rules.

But if your trading rules / criteria are too broad, multiple different positions may match your trading rules simultaneously. When several positions match, a different matching position may be selected across different backtest runs, resulting in potentially unstable results.

In this case, you should “tighten” your strategy filters to limit the number of positions that may match your rules.

broadFilters

Debugging

Please take a look at the following videos for tips on debugging your strategy.  Debugging your trading strategy can be accomplished by using the following techniques:
    • Adding Comments to your Orders:  By adding comments to your orders, you can trace the transactions back to your  specific trading rules.

Screen Shot 2016-05-30 at 3.55.51 PM

    • Plotting studies / portfolio attributes:  By plotting the various technical studies and your portfolio attributes, you can observe how your trading rules interact with market conditions.

Screen Shot 2016-05-30 at 8.36.54 PM
Screen Shot 2016-05-30 at 8.38.55 PM

    • Previewing your Strategy Orders:  By previewing your strategy orders, you can verify whether your order criteria matches your desired position characteristics.

Screen Shot 2016-05-30 at 4.43.15 PM

Strategy Sharing

Click on the “Share” button to create a shareable link that you can send to others, post on social media / website, etc…

You can choose to share your strategy publicly, which will publish your strategy to our OptionStack community. Or you can share your strategy privately, where only those who have the direct link can access the strategy.

When someone clicks on your shareable link, they will receive a snapshot / copy of your strategy file into their own OptionStack account. The snapshot is based on the state of your strategy at the moment the link is clicked.

Since it is a copy of your strategy, users can edit / modify the strategy, without impacting your original strategy file. You may continue to edit and modify your strategy after it has been shared. But your changes will not be reflected in existing copies / snapshots of your strategy by other users.

Leave a Comment