Proactive Prevention
Always verify all accounts are flat before entering a new trade. This is the most important safeguard against inverted positions. Before placing a new position, quickly scan all your follower accounts in Replikanto to confirm they show zero positions. This proactive check prevents mismatches from compounding across multiple trades.
Initial Steps
An inverted position can occur when the market fills the leader's entry limit order and does not fill the follower's entry orders (copied from the leader), causing the leader's exit orders to be copied to the follower's accounts after submission due to position creation. When this happens, the exit orders may be filled before the entry order on the follower side, creating an unwanted position.
An inverted position can also occur when a follower's open position is manually closed while the leader's position remains open. When the leader's exit execution fires (e.g. a Stop Loss or Take Profit is hit), Replikanto copies that exit order to all active followers, including the ones that were already manually closed. Since those accounts have no open position, the copied exit order opens a new trade in the opposite direction.
To prevent this type of situation we have two features in Replikanto that you can use, one of them is ATM Copy, which uses NinjaTrader's ATM Strategy to manage the follower's exit orders instead of copying them from the leader account. This is useful if you're using an ATM Strategy in the trades of the leader account, trades that is placed on the NinjaTrader Desktop. The other alternative is to use the Follower Guard feature, which is designed to protect follower accounts and has an action that, when enabled, will close the position in the follower account if it becomes inverted (opposite direction). Note: Follower Guard is reactive protection, meaning the counter position still occurs briefly before being closed. This is why proactive checks (verifying accounts are flat) and using Copy Market Orders mode are important for avoiding the situation entirely. To configure Follower Guard, right-click on the Replikanto window and select Properties. Follower Guard applies to all accounts that are checked (selected) in your Replikanto setup. After clicking Apply and OK, save your NinjaTrader Workspace so that the Follower Guard configuration is preserved the next time NinjaTrader starts.
Tuning the Follower Guard timer: The "flatten after X seconds" delay sets how long a mismatched or opposite position can sit on a follower before the Guard closes it. A shorter delay reacts faster but can fire during the brief status-update window of a normal exit and flip the account into the opposite direction. A longer delay avoids those premature closes but lets a genuine wrong-side position linger for that timer before it is flattened, which shows up as the follower taking several seconds to exit. Adjusting the timer alone does not remove the underlying mismatch, it only changes how the Guard reacts. The lasting fix is to prevent the mismatch with Copy Market Orders (Executions) only and by confirming every follower is flat before each new entry, so the Guard rarely has to act.
Telling a Guard flatten apart from a copied exit: On the follower chart, orders copied by Replikanto carry the Replikanto order ID suffix, while the Follower Guard's flatten appears as a plain Close order with no Replikanto tag. If you see a plain Close stacked on top of the copied Entry and Stop, that Close is the Follower Guard acting, not a copied order.
Are the affected accounts on a Rithmic broker connection?
Whenever you see a reverse (counter) position, first check whether the affected accounts connect through a Rithmic broker connection (common on prop firms such as APEX, TopStep and similar). With Rithmic, NinjaTrader can fail to update a follower's position after it closes, so it keeps showing a stale, "ghost" position. When something then tries to close that non-existent position, NinjaTrader sends a reverse order and opens a brand-new position in the opposite direction, so on Replikanto it looks exactly like an inverted follower even though the root cause is outside Replikanto and outside your copy settings. Because of this, before applying the steps above, confirm which broker connection the accounts use, if any of them are on Rithmic, that latency issue is very likely the real cause and the fix is different. For the full explanation and the recommended workarounds (treat RTrader Pro as the source of truth, reconnect to refresh NinjaTrader's positions, and avoid relying on Follower Guard on Rithmic accounts), see Rithmic position not closing on NinjaTrader, only on Rithmic (RTrader Pro).
Extra Steps
You may find it helpful to use the Copy Market Orders (Executions) only Replikanto feature, which allows you to copy only the executions to followers, this will greatly reduce the likelihood of follower positions being in the opposite direction. For more information, we invite you to view this informative video: https://youtu.be/WZ5rmeAuxZE
How this works with bracket orders (stop loss and target): With Copy Market Orders (Executions) only enabled, your leader's working stop loss and target (limit) orders are not copied to the followers as their own resting orders. Instead, Replikanto waits for the order to actually fill on the leader and then sends a market order to each follower to match. When your stop loss fills (exiting at a loss) or your target fills (taking profit or scaling out), each follower closes the matching quantity at market at that moment. Because no resting stop or target is left on the follower, there is no leftover order to reverse the account into the opposite direction. Keep in mind that the follower closes with a market order rather than a resting limit, so its fill price can come in a tick or two different from the leader's, especially in fast-moving markets.
Comments
0 comments
Article is closed for comments.