Day trading simulator: test short-candle rules first

By Oalgo · Last reviewed

A day trading simulator runs a rule on short candles, such as 1-minute or 5-minute candles, and records each simulated trade. Candle size changes how often the rule can act. A rule that reads 1-minute candles checks the market far more often in an hour than one that reads hourly candles.

Which candle sizes can you use?

#

Oalgo's strategy builder offers 1m, 5m, 15m, 1h, 4h and 1d. A timeframe is the candle size your rule reads. Set it in the rule, so the test and the rule read the same candles. The forward test runs on 1-minute candles and builds the larger sizes from them, so a 5-minute rule and a 1-minute rule draw on the same underlying data.

Bar chart: candles in one hour at each size. 1m: 60 candles. 5m: 12 candles. 15m: 4 candles. 1h: 1 candle.Candles in one hour1m605m1215m41h1
Arithmetic only: 60 minutes divided by the candle length. Made-up for this page, no price data.

What changes on a short timeframe?

#
  • Each candle covers less time, so one rule can check many more candles in a single day.
  • A trade has less time to reach its target or its stop, so the trade list grows faster.
  • Costs such as slippage matter more when trades are frequent.

What does a worked example look like?

#

In this case a rule reads 5-minute candles and enters long when a candle closes above 100. One hour holds 12 of those candles, so the rule can check 12 times. The same rule on 1-minute candles checks 60 times in that hour. The test records each entry with the time of the candle that triggered it. Count the candles first, then the entries, and only then read the trade list.

A second example: the same count over a day

#

The table gives the checks per candle size for one 24-hour day. The counts are arithmetic, not results.

Candle sizeCandles in one hourCandles in one day
1m601,440
5m12288
15m496
1h124

A common mistake

#

The usual mistake is to shorten the candles after a poor test and keep the rule's old name. A changed candle size makes a new rule, so its count starts again from zero, and the change belongs in your notes with the date.

What does a day trading simulator not show?

#

A simulator with short candles cannot show the fill a venue would have given for each trade. Oalgo's terms say simulations leave real-world factors out, and short candles make those factors weigh more.

In Oalgo you tell the AI your idea in your own words, check the rules it builds, backtest them, and forward test them on live candles with simulated funds. If you choose, after that, you Go Live with your own Live Strategy on your own Venue Account at a Supported Venue.

Read next