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

Trader configuring an Expert Advisor at a computer
Systems and execution12 min read

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
Trader reviewing a forex system backtest
Systems and execution13 min read

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
Deep fuchsia emergency stop button on a charcoal control panel under soft light
Systems and execution21 min read

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
Aerial view of small boats in clusters in a dark marina, with cream piers and one fuchsia boat cover.
Systems and execution24 min read

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
A woman beside a partly open charcoal door looks toward sunlight and fuchsia flowers outside.
Systems and execution26 min read

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
A pendulum displaced from its centre above a pale stone base, a metaphor for a restoring force that a market price may not possess.
Systems and execution26 min read

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
A winding road climbs through green-gray hills toward golden light, with small fuchsia wildflowers beside the route.
Systems and execution25 min read

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
A small paper parcel travels along a dark conveyor through separate pools of light, carrying an unlettered fuchsia label.
Systems and execution23 min read

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
A wave approaches an empty dark pier with a small fuchsia safety marker.
Systems and execution24 min read

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
Systems and execution25 min read

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
Systems and execution25 min read

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
Systems and execution25 min read

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
Systems and execution24 min read

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
One illuminated amber beacon among several unlit blue glass beacons in a quiet interior
Systems and execution24 min read

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
Brass balance scales holding a blue notebook and a neat stack of cream receipts
Systems and execution24 min read

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
Two identical cream envelopes beside a single brass letter slot in a deep blue door
Systems and execution25 min read

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
A blue leather notebook with carefully placed brass bookmarks beside a softly glowing desk lamp
Systems and execution25 min read

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 precise brass caliper beside a blue ceramic tile on cream paper in soft natural light
Systems and execution25 min read

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 row of blue velvet waiting chairs beside a closed brass service window in a quiet cream interior
Systems and execution25 min read

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