I need to know the margin requirements for going long and short on options
- For LONG CE and LONG PE it is just Premium * Lot Size
- https://zerodha.com/margin-calculator/SPAN/ shows me the required margins for SHORT CE and SHORT PE. It is also mentioned that it is based on the previous day’s close value
Is there a formula (even approximate number will suffice) for the same
I need to incorporate this in my algo so that if this exceeds my margin requirements then I have to find out the next optimal strategy. Kindly help.