AUTOMATION · 7 MIN READ

How a trading bot actually works

Most descriptions stop at "it follows rules". The interesting part is the order those rules run in, because that ordering is where nearly all of the risk management lives.

The loop

  1. Connect to the platform and confirm the symbol, contract size and minimum volume.
  2. On a fixed interval — ours is ten seconds — manage anything already open: check for closed positions and record the result.
  3. Run the gate chain for each symbol. Any gate returning false ends the scan for that symbol.
  4. If every gate passes, collect candidate signals from every eligible strategy.
  5. Score the candidates, deduplicate by strategy type, and execute exactly one.
  6. Attach protection to the resulting position, and close it if that fails.

The single-signal rule in step five is not an implementation detail. Executing every signal that fires means several strategies agreeing produces several positions, which is one larger bet dressed as diversification.

The gate chain is where the risk management is

Ours runs: daily lockdown, loss-streak pause, per-symbol cooldown, session hours, spread limit, concurrent-trade cap, multi-timeframe bias, then trend strength. Each is a refusal, and each ends the scan immediately.

Ordering matters for reasons beyond efficiency. Cheap checks that reject most scans belong first, and the ones tied to account state — the lockdown, the streak pause — belong before anything that costs data, because they are the ones that must not be bypassed.

Selection: the tournament

Candidates are scored on the Wilson lower bound of each strategy's measured win rate, plus a base priority and a timeframe bonus. Using the lower bound rather than the raw rate stops a strategy that won its only two trades from outranking one with a long record.

Signals are then deduplicated by strategy type before scoring, which is how we discovered that several distinct-sounding strategies in the original set were identifying the same setups. See strategy tournament.

Execution, and the Exness quirk

Orders are sent with no stop or target attached, because ECN brokers frequently reject orders carrying them. Protection is attached immediately after the fill as a separate modification.

If that modification fails — usually because of the broker's stop level — the position is force-closed. An unintended flat position is recoverable; an unmonitored leveraged one is not. See position opens without SL or TP.

Keep reading

See the gold bot →Free tools

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-08-11.