Trading simulator: test rules with simulated funds

By Oalgo · Last reviewed

A trading simulator runs your trading rules with simulated funds and records each trade the rules would have made. No real money is at risk, and nothing is sent to a venue. The main difference between simulators is the price data: past prices replayed in one go, or prices that arrive as the market moves.

Diagram: one simulated trade drawn on a price line. An entry marker at 100.6, a target line at 103.0, a stop line at 99.0, and an exit marker at 103.0. Labels read 'Simulated funds' and 'No order sent'.Simulated fundsNo order sentTarget 103.0Stop 99.0Entry 100.6Exit 103.0
Prices invented for this page. It shows how one trade is recorded, not how any rule performs.

What does a trading simulator do?

#
  • It takes the rules you wrote: the entry, the exit and the stop.
  • It runs them over a price series, past prices or live ones.
  • It records each simulated trade with its side, entry price and exit price.
  • It shows the trade list, so you can read what the rules did one trade at a time.

How does Oalgo's simulator differ from a plain one?

#

Oalgo has two steps. A backtest runs your rules on past prices in one go. A forward test runs the same rules on live prices as they arrive. Each uses simulated funds only, and no real order is placed in either. A fake trading simulator that replays past prices covers only the first of those steps. The forward test adds prices the rules have never seen, which a replay cannot supply.

What does a worked example look like?

#

Take one rule. It enters long when a candle closes above 100, exits at a target of 103.0, and stops out at 99.0. The simulator starts with a made-up balance of simulated funds. The candle that closes at 100.5 triggers the rule, and the record shows an entry at 100.6. Two candles later price reaches 103.0, and the record shows the exit. Each line carries its candle times, so you can find the two candles on a chart.

What should you check in the record?

#

Check the entry time against the candle on a chart, and check that the stop and target match the rule as written. A record that does not match the rule points to a fault in the rule or in the test. Find out which before you read any number in it.

Runs onFundsReal order sent
Plain replay of past pricesPast prices, in one runSimulatedNone
Oalgo backtestPast prices, in one runSimulatedNone
Oalgo's forward testLive prices, as they arriveSimulatedNone

What can a trading simulator not show?

#

A simulator shows what the rule did on the prices it ran on. It cannot show the price a real order would have received at that moment. Oalgo's terms say a simulation does not fully account for real costs such as slippage and venue fees.

In Oalgo, the path starts with your idea in your own words. The AI builds the rules, you check them, and then the backtest and the forward test run on simulated funds. Going Live comes after that, only if you choose, and it runs your own Live Strategy on your own Venue Account at a Supported Venue.

Read next