Modify order Assuming my tgt1 is reached, i want to change stoploss_value to tgt1. What will be the new value to be passed? will it be 5-7=-2 when sending modifyorder call?
In this case you can use trailing stop loss value as 2 and your order stoploss value will be automatically modified based on the price movement.
If you want to modify manually then there will be two child order one LIMIT order for square off and one SL order for stoploss. So you should modify stoploss order just like a normal order. For example you should modify trigger price to 7 from 5.
If you want to modify manually then there will be two child order one LIMIT order for square off and one SL order for stoploss. So you should modify stoploss order just like a normal order. For example you should modify trigger price to 7 from 5.
So you mean we can not modify BO manually by modifying its SL?
One more thing how do we verify that "trailing_stoploss" value being setup is getting reflected in placed order?