1. I will provide the strategy in AFL language. It has buy, sell, short, cover, SL signals.
2. Strategy to be converted in Tradingview language.
3. As per strategy, auto trading shall happen in Nifty Future current month
4. Simultaneously system shall sell call/put nifty option of ATM+400/ATM-400 of next week expiry
If buy signal comes. System will first buy Nifty Future. Then (after or simultaneously) system will sell nifty call option of ATM+400 of next week expiry.
(a) If SL signal comes. System will exit from both future and call option.
(b) Short and Sell signals are same.
If short cum sell signal comes
Then system will first exit from existing future and call option. After that system will Short nifty future and sell Nifty put option of ATM-400 of next week expiry.
(I will manually enter the instrument name of call/PUT in strategy every day and nifty future every month)
Main point is : First future and call option shall exit. After that Future sell and put sell shall happen. Otherwise due to margin requirement future sell order will be rejected.