NetworkException: Maximum allowed order modifications exceeded.

monk03
I am getting an error stating that my order modification limit has been exceeded. I'm using the ModifyOrder() function for this. I've only modified my order 30 times. It's a trigger order with ORDER_TYPE_SLM. What is wrong here?
  • sujith
    sujith edited June 2021
    There is a limit of 25 modifications allowed per order. You will have to cancel the order and place the order again. Order modifications are capped at OMS.
  • monk03
    Is there an easier way to do this? I keep a trailing stop loss for every 5-minute candle. So if a stock keeps trending, the stop loss will keep getting modified. So if it trends for 2 hours continuously, the entire stop-loss thread stops because of just one security. There should be an easier way to do this than just canceling and placing a new SL order.
  • sujith
    You can use GTT.
Sign In or Register to comment.