Backtesting Of Call Options Strategies

In this lesson you will learn how to create and backtest trading strategies to buy call options when a stock hits oversold conditions.

We will construct an options trading strategy that will purchase call options when the underlying stock is considered oversold by the RSI indicator.

Specifically, we will buy call options whenever the RSI indicator crosses below 30, which is considered an oversold condition. And then we will close the trades when the trades makes 150% or greater return on investment.

Simply click the “Run Backtest” button below to automatically get started.

Run Backtest!
Placeholder

Call Option

A call option is an agreement that gives an investor the right (but not the obligation) to buy a stock, bond, commodity, or other instrument at a specified price within a specified time frame.

Oversold Indicators

One of the most common indicators of overbought or oversold conditions is the Relative Strength Index (RSI) indicator.


Placeholder

  • In this example, we will create a strategy to:
    • Buy out-of-the-money call options when the RSI crosses below 30 (an oversold condition).
    • Close the call options when the profit exceeds 150%.
Placeholder

  • First, login to the OptionStack platform.  Select “New Strategy” from the “File” menu item
  • Enter any arbitrary name you would like for the strategy
Placeholder
Placeholder

A visual strategy template will be automatically created for you. You can modify this template to define your trading rules.

Blank Template
  • Define which stock you would like to trade.  In this example, we will use the NDX (Nasdaq 100).
Placeholder
  • Define the Relative Strength Index (RSI) on the NDX security. In this example, we will use a 14-period RSI.

  • We can plot the RSI to visualize the entry / exit points.
Studies API
RSI
  • Define a rule to check when the Relative Strength Indicator (RSI) crosses below 30.
Studies API
  • Determine which option strategy to apply when RSI crosses below 30.
  • In this example, we will buy call options when RSI crosses below 30.
Studies API
Studies API
  • Determine how many call options to buy.
  • There are several options to calculating the position sizing, such as quantity, cost, margin, risk, delta, etc.
  • In this example, we will size based on cost, where we will purchase a quantity equal to about $10,000 in cost.
Studies API
  • Now that we have defined our model, we are ready to conduct our backtest.
  • Before we run the backtest, first review the Backtest Settings.
  • Once you have reviewed the backtest settings, click “Run Backtest”
Studies API
RSI
  • Once you click “Run BackTest”, the OptionStack platform will automatically evaluate your strategy and provide you with the performance results.
Placeholder
  • Now, let’s define the rules to adjust the trades when our profit target is reached.
  • Specifically, let’s close the call options if the trades make 150% or greater return on investment.
Studies API
Studies API
  • As you can see from the charts below, the slight modification to the trading rules results in significantly different performance results.
  • The OptionStack platform makes it easy to modify and backtest various different trading strategies to maximize your profit.
Run Backtest!
Placeholder