Algo Creation on Streak

i want to create an algo with following rules:

  • Entry time : 09.35 AM
  • Exit time : 3.10 PM.
  • Positions :
    • Sell ATM PE and CE of current weekly expiry.
    • Hedge with 9 strikes OTM long positions on both the short positions for margin benefit.
  • Stop Loss of 40% on both PE and CE legs.
  • Trail stop loss after locking in 40% profit by 5% till exit.
  • Both CE side positions must be exited simulltaneiously, once stop loss is hit or at 3.10PM. Similarly for PE side positions.

Help me with the steps to create this algo on zerodha streak platform. Also provide me with a repository of ready made strategies for index trading on the Internet

@Streak Can you.

Hi @Sks1

Kindly refer the below strategy link created as per your requirement based on our understanding.
https://www.streak.tech/strategy/103652

For availing margin benefits, once alerts are triggered, the OTM contracts need to be bought first, followed by selling the ATM contracts. At present, this flow cannot be automated in the system.

Additionally, the target profit will be calculated on each individual contract rather than the overall strategy, and the requirements for applying a trailing stop-loss (TSL) cannot be implemented, hence you will need to add the SL as per your discretion.

We wont be able to help you with this specific query. However, we recommend exploring online resources where such information is commonly analyzed and discussed.

Hope this helps.