
Orders from different automated strategies can come in seconds apart for the same currency pair. In a shared demo exercise, the symbol, direction and quantity may look nearly identical in the account history. A student trying to work out which strategy sent which instruction needs a label that carries through to the trading records. That becomes especially important when several orders contribute to a single open position.
In MT5, an automated program called an Expert Advisor can attach a strategy identifier known as a magic number to the orders it submits. The same number can appear on many orders from one strategy. Each order also has its own ticket number, which identifies that particular instruction. In a hypothetical classroom exercise, one strategy might use 101 for orders based on a price breakout, while a second uses 202 for orders based on a return toward an average. The strategy number identifies the source according to the class’s records, and the ticket identifies the individual order.
Following an instruction through execution requires looking at the deal history as well. An order records the instruction, while a deal records an execution. A pending order can sit in the account and later expire without producing a deal. An order that fills in parts can produce several deals. The order number recorded on each deal links it back to the original instruction, and the volumes and prices show what was actually filled. That distinction helps a student explain why a count of orders may differ from a count of executions.
A netting account makes the difference more visible because it keeps a single open position per symbol. Suppose the strategy tagged 101 buys 0.10 lots of a currency pair and the strategy tagged 202 later sells 0.04 lots of the same pair. The resulting position is 0.06 lots long. Its size reflects both executions. The deal records show which strategy added the original exposure and which one reduced it. Anyone reviewing only the open position would see the amount left over and miss the sequence that produced it.
For students in Bangladesh, timestamps can be another source of confusion when classroom notes use local time and a demo account history uses a different time zone. An order can also be placed well before a deal occurs, especially if it is waiting for a price level. Keeping the original timestamp beside its Bangladesh-time equivalent helps the group match the records. That matters around midnight, when the same event can appear under different dates. It also keeps the time a strategy submitted an instruction distinct from the time that instruction was executed.
The magic number is most useful when an MT5 exercise records which strategy version and settings used it. If 2 copies of an automated program share the same number, the identifier alone leaves their orders grouped together. The test notes can link each number to its version, symbol and settings, while a strategy log can record why an instruction was sent. With those records, students can trace an unexpected position back through the deals that changed it, identify the orders behind those deals and check whether the program acted on the rule the class intended to test.
