Options Streak Algorithmic for Intraday Uncovered Short Straddle Trading

I am trying to write a Streak Algo that does the following:

  1. Takes the BANKNIFTY 1 min candle close price at 12:30 pm. Let us assume this price is 35456
  2. Takes a Short position at the nearest 100 CE and PE(34500) strike for the same week expiry (short Straddle with weekly expiry )
  3. Squares off the positions at 3:15 pm irrespective of PnL

Is there a way to backtest this strategy in Streak and possibly even deploy it?

1 Like

@Streak can you.

although you can do it in streak, the contracts as they expire , wont be available for backtesting in streak so as a result the maximum backtest that which you can do is for the previous 1 month.
Also , intraday straddle works best in weekly contracts as the decay is the most in them.

Waiting for streak’s comment,

this is a very risky strategy on banknifty…

Based on my backtest it has been profitable for more than 4 years data with each month as green except 2

just check yesterday’s chart…there’s a big loss…without stop loss this is highly risky especially on banknifty

Yupp, 30% stoploss was also considered in my backtest

Hi @Saukrit,

You can just follow along this article for creating this

Also @Sai_Krishnan , expired contracts have been enabled and you can backtest on Historical expires as well.
Refer

2 Likes

Great. Thanks, @Krishnendu I just Backtested it for April 20- March 21 for BANK NIFTY Straddle using dynamic contracts and saw 62% profits post brokerage. Average capital required for 10 lot Straddle should be around 18-20 Lakhs and this gave an 11.5 lakh profit as per the algorithm using 30% stop-loss

For 10 lots BANKNIFTY I am assuming Rs 500 Brokerage per trade, which would translate to roughly 12k Brokerage throughout the year. Is that a safe number to assume on average?

And if this is done after pledging the existing Securities in Zerodha, the returns can be phenomenally high theoretically as per the last 1 year backtest.

1 Like

good…now you can do a live test on neostox or other mock system to validate this backtest

@krishnendu I don’t understand one thing though. In case of short straddle the results should be valid only when I sell the dynamic option contract on the mentioned timeframe and buy when stoploss is hit or at expiry.

But surprisingly I was getting the same backtest results irrespective of whether I choose to buy or sell.

I didn’t understand this logic

There is a brokerage toggle. turning it on will show post brokerage p/l
image

For Dynamic contract, you need to set the position in Order Type of the Contract settings. If done correctly, the result of a Long and a short straddle will be different, not necessarily a loss of the Long straddle. Since the Long straddle is a long vega, one of the legs may earn a big profit on some days ultimately giving net profit.

Remember when you short, there is a limit on the profit, when you long upside is not capped. Exactly when the trade entered and exited can be verified using the transaction details of the backtest.

Read

Can you share the scshot of the settings you used? Its not profitable for me. Im wondering whether I put something wrong.

Can I create following strategy:

  1. at 9.30am 14400 I short straddle both CE&PE
  2. if nifty moves 100 points 14500 then sq off 14400CE & sell 14500 CE
  3. if again nifty move 100 points 14600 then sq off 14500 CE & sell 14600 CE
    Or reverse
    It means after every 100 points strategy change its position…
    Thanks
1 Like

Could I use dynamic contracts in entry condition also? I see we can only apply it to underlying!

@Hardeep

Streak does not support Adjustment to an existing position. This cannot be currently implemented.

1 Like

Hi @barbarika currently you cannot add a dynamic contract in the SYMBOL function. You can only add them as a scrip.

Please elaborate on this.

Underlying I mean index, I want to do a strategy on ITM option want to scan ITM -200 option for a CCI value and if it satisfy that condition then I want to enter a trade on same ITM option script! Can I do that?

So if nifty is at 16000 then want to scan 15800 ce and 15900 ce charts. if their CCI > -100 then I want to buy those option scripts!

Yes, you need to create something like