10 seems to me above IB criteria for an efficient ordering, try staying below 5.
Also the rate of your change have an impact: Think "human", IB is very tolerant to anything that match human pace.
Why do you need to change so frequently a TRAIL order ?
Looks like you expect IB to react faster than your algo, but somewhere this is a catch 22 situation because IB may react too fast too. You may have to consider improving speed of your code and directly send a sell at market or hedging your position by going opposite? then release both, this increase trades and may improve IB view of your efficiency (I never try hedging for that reason).