@sujith In the above function , where should i make the change if i have to edit trailing stop loss in a bracket order ? Also the order update that ill receive will be return of the above function , right ?
@nickmanan, One can't modify trailing stop-loss. Once a first leg is executed, you can modify trigger_price of SL-M (stop-loss) and price of LIMIT(target) order.
@sujith if i modify the trigger_price , then will the trailing stop loss still work ?
For ex - if i set the stop loss at 100 and trailing stop loss at one point lower i.ie 99 . then i modify the trigger price at 105, will the stop loss trail at a difference of 6 or it will still be at a difference of 1 from the modified stop loss ?
Suppose , My stock price is 1000 , i am giving 0.5 % as stop loss and 0.5 % as trailing stop. Means 5 points for stop loss and 5 points for trailing stop loss. But i want to update trailing stop loss to 1003 when it reach 1005 . Is it possible in BO order.
One can't modify trailing stop-loss. Once a first leg is executed, you can modify trigger_price of SL-M (stop-loss) and price of LIMIT(target) order.
For ex - if i set the stop loss at 100 and trailing stop loss at one point lower i.ie 99 . then i modify the trigger price at 105, will the stop loss trail at a difference of 6 or it will still be at a difference of 1 from the modified stop loss ?
Trailing happens only when the trend is in your favor. If it is opposite then trailing will not happen. You can check out this blog post for more information.
Kite Connect is purely an execution platform, we don't provide code or solution to write strategies.