Hi If your placing your strategies in Trading View and Buying and Selling in Zerodha I have the infra code to handle this :-
a) It will get Buy signals from Trading view (based on the strategy you created) and automatically do Buy/Sell in Zerodha b) It will get Sell Signals from Trading View (based on the strategy you created) and automatically do Buy/Sell in Zerodha c) it also has stop loss for single buy order. d) It also it has portfolio stop loss that will exit all positions if the loss goes beyond a threshold limit saving you from bigger loss were lot of traders loss money regularly once this threshold is crossed and exit the market permanently due to this. e) Trailing stop loss is also present.