When you manually cancel a Take Profit (TP) order in TradingView, you may notice that the paired Stop Loss order on your NinjaTrader follower accounts also gets cancelled. This is due to a fundamental difference in how TradingView and NinjaTrader handle OCO (One-Cancels-Other) bracket orders.
TradingView's OCO Behavior
TradingView only triggers OCO cancellation when one leg is executed (filled). When you manually cancel one leg of a bracket (like your TP), the other leg (stop) survives as a standalone order. Your stop remains working on TradingView/Tradovate.
NinjaTrader's OCO Behavior
NinjaTrader treats OCO groups as atomic units. When any leg is removed, whether by fill or by manual cancel, the entire OCO group is dissolved and the paired order is cancelled. This is standard NinjaTrader behavior.
What Happens
On the leader, a TradingView bracket reaches NinjaTrader with no OCO ID. When Replikanto copies it, it groups each follower's TP and stop into one OCO group of its own, so the follower stays protected by a single bracket. When you cancel the TP in TradingView, Replikanto correctly propagates that cancellation to the follower accounts. However, NinjaTrader then applies its OCO logic and cancels the paired stop orders as well.
The follower OCO group is created by Replikanto so that the follower's TP and stop protect each other, and NinjaTrader then cancels the whole group when one leg is removed.
Workarounds
- Place TP and stop as separate, unlinked orders in TradingView (do not use bracket orders)
- If you cancel a TP, check the follower accounts afterwards and place a new stop there if you still want protection. Cancelling the TP directly on the follower in NinjaTrader does not avoid the problem: the follower's TP and stop share one OCO group, so that also cancels the follower's stop.
Comments
0 comments
Article is closed for comments.