Explore a topic
Trading robot code, execution & verification
The move from a written rule to running code is a research task of its own. Follow concrete examples of code verification and execution assumptions. Each reading helps you ask more precise questions when studying, adapting or testing a trading robot.
19 articles to explore in depth

MetaTrader Expert Advisors: What They Are and How to Use Them
What MetaTrader Expert Advisors are, how MT4 and MT5 differ, how to install and backtest one, and why rules and source code matter more than a promise.
Read article
Forex Trading Systems: Rules, Testing and Adapting
What a forex trading system really contains, how systematic strategies differ from discretionary trading, and how to test and adapt one without fooling yourself.
Read article
Testing a trading robot’s kill switch
A stopped process can leave orders working. Follow a simulated stop from the first request to an evidenced account state.
Read article
When different robots depend on the same market
Six fictitious robots reveal what return correlation misses when positions share a currency, a clock or an event.
Read article
Define the range before the breakout
A line above the high is not enough. The clock, the quote side and the information available determine which breakout a robot can recognise.
Read article
What exactly is supposed to revert?
A price can be far from its average without owing the market a return. Define the quantity, the mechanism and the point at which the explanation stops being useful.
Read article
The false starts before a trend
Three entries fail, the next stop slips and the eventual winner arrives late. The question is whether the rules and exposure still make sense before that winner is known.
Read article
The order is cancelled. The fills still exist.
A cancellation acknowledgement reaches the screen before the last fill report. The order is finished, but the local account of what happened is incomplete. Follow the quantities and identifiers to resolve the apparent contradiction.
Read article
The minute a release reaches your robot
A calendar time does not tell you when a robot learned something or which price it could trade. Follow one hypothetical release through quotes, cancellations and a decision log.
Read article
Check the code beyond its own tests
The AI delivers an implementation and a test suite: everything is green. The next step is to discover whether those tests checked the rule or simply reproduced the same interpretation.
Read article
Which price are you comparing execution against?
The same purchase can show a difference of 1.8, 2.8 or 3.8 pips without any fill changing. Learn to identify the reference and preserve a comparison someone else can reconstruct.
Read article
The portfolio behind the signals
One robot buys euros while another sells them, but closing one can increase the remaining exposure. Build a hypothetical portfolio from its positions into a currency map that makes those offsets reviewable.
Read article
When a candle cannot reveal what happened first
The high exceeds your target and the low crosses your stop. Both occur inside the same candle. Before accepting the simulator's answer, reconstruct two possible paths and identify which part of the outcome was observed and which part was assumed.
Read article
Alerts that deserve your attention
Twenty robots report the same stale feed two hundred times. The inbox is busy, but the decision has barely changed. Learn how to build alerts around evidence and a response that someone can actually perform.
Read article
When the curve and the trades disagree
A convincing chart ends seventy-five dollars above its own records. Follow the missing amount through a small account ledger, then build a reconciliation that can explain every change in equity.
Read article
One event, one intended effect
A confirmation arrives, the connection breaks and the same confirmation arrives again. The network has repeated a message. The research ledger should not invent another position.
Read article
What should a robot remember?
The screen comes back, the connection turns green and the robot looks ready. Its memory may still describe a world that stopped ten minutes ago.
Read article
A small decimal, a different decision
The formula produces 1.100035. The instrument accepts a different set of prices. Choosing the next decimal is a research decision because it can change entry, risk and whether a simulated trade exists.
Read article
A touch is not a trade
The candle reached your entry price, yet the order never appeared in the account. The missing explanation may be the quote side, the order's arrival time or the quantity waiting ahead of it.
Read article