
The easiest duplicate order to miss is one that follows a request the program thinks failed. In a robot trading test, an automated strategy might submit a buy order and lose its connection before receiving a reply. The order may already have reached the server. If the program sends it again as soon as the connection returns, both requests can be filled. A clean run with a steady connection leaves that sequence untested.
In the example, the program gets a signal and sends an order for 0.10 lots. It waits for a reply, then sends the same order again. By then, the server had already accepted the first order. Both orders go through. The account now has 0.20 lots open. The test result is clearer when the log links both submissions to the same original signal. It can then show whether the second order came from a retry, a fresh signal or a copy of the strategy running on another chart. Those causes can leave the same position size in the account while pointing to different faults.
The expected behaviour during a lost reply deserves its own check. A program can keep the first request marked as unresolved, then check pending orders and execution history when the connection returns. An empty list of open orders may simply mean the first order has already filled. A partial fill also matters because part of the intended exposure already exists and the unfilled portion may still be pending. If the records remain unclear, the demo can check whether the program pauses and flags the uncertainty. A separate case can confirm that a definite rejection is handled differently from a missing reply.
Some duplicates arise even when the connection is stable. A strategy designed to act once when a price crosses a level may keep seeing new quotes above that level. If it treats each quote as a new crossing, it can send repeated orders through the same move. A test can replay several quotes that keep the condition true, then bring the price back below the level and cross it again. That sequence shows whether the program distinguishes a continuing condition from a fresh event. Restarting it between quotes can also show whether it remembers a signal it has already acted on.
For robot trading exercises in Bangladesh, the same restart test can cover the difference between local and server dates. Just after midnight in Bangladesh, a server using UTC is still on the previous date. If a strategy is supposed to act once per Bangladesh calendar day, the test needs to specify when that day changes. Logs that keep the original server timestamp alongside Bangladesh time can show whether a repeat followed a genuine reset or came from switching clocks during recovery.
A useful test report brings the intended action, orders sent and volume filled into the same record. One order can fill in several pieces, so several execution entries can still represent a correctly handled signal. Two separate orders tied to the same signal deserve a closer look, particularly if both add exposure. Comparing the total filled with the intended 0.10 lots, and checking for any orders still waiting to fill, shows whether the program kept the position within the size the exercise specified.
