stoploss_value in modify order

rktheinvestor1
New buy Order
price=5,sl=3,tgt1=7,tgt2=9,tgt3=11

squareoff_value=11-5=6 (considering tgt3)
stoploss_value=5-3=2

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?
  • Vivek
    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.
  • rktheinvestor1
    OK.
    So you mean we can not modify BO manually by modifying its SL?
  • Vivek
    @rktheinvestor1 Yeah thats right.
  • rktheinvestor1
    Thanks Vivek.

    One more thing how do we verify that "trailing_stoploss" value being setup is getting reflected in placed order?
  • Vivek
    @rktheinvestor1 currently we don't show the stoploss details since it's not available to us but we are talking with our OMS vendor.
  • Vivek
    @rktheinvestor1 currently we don't show the stoploss details since it's not available to us but we are speaking to our OMS vendor.
This discussion has been closed.