The usual path to a MetaTrader simulation is: have an idea, learn MQL5 or pay someone, compile an Expert Advisor, run the Strategy Tester, and then wonder whether any odd result is the idea or the code. For a lot of strategies, a level, a few conditions and a stop, that middle step is the part that adds nothing.
What the Strategy Tester needs
The built-in Strategy Tester simulates an Expert Advisor. No EA, no simulation. It offers several modelling modes, from every tick on real ticks down to open prices only, and you can watch a run in visual mode. It is the right tool when your logic is genuinely complex or already coded. The cost is everything before the first run: writing and debugging MQL5, handling order functions, normalising lot sizes and stops, and being sure what you coded is what you meant.
The hidden cost: translation errors
When a coded test gives a strange result, there are two possible causes: the idea is bad, or the code is wrong. They look identical. Off-by-one bar indexing, an indicator buffer read at the wrong shift, a stop placed on the wrong side at one broker's digit count; each is invisible until you stare at individual trades. The more of the logic you can express directly rather than program, the less of this you carry.
Simulating the rule itself
chartTrigger's Proving Ground starts from the rule. You draw a level or trendline, pick a template, build it in the Workbench, or describe it in plain English and read the draft the AI copilot writes. The simulator then replays it over past bars with the same evaluator the live engine uses. A rule is a short readable document:
symbol EURUSD
timeframe H4
when price crosses above level
and rsi(14) < 70
and spread < 12% of atr
then buy 0.5% risk
stop atr(14) x 2
target rr 2
An illustration of the style, not a recommendation. Every line is something you can read back and check against what you meant.
How the simulated fills work
- Each bar is replayed as a short sequence of synthetic ticks: open, then low and high, then close, so a level inside a bar's range is crossed the way a real tick stream would cross it.
- Entries pay the stated spread and slippage, and commission per lot is charged on each trade.
- Stops and targets are checked on later bars. If both are inside the same bar, the stop is assumed to hit first, the pessimistic reading.
- Lot size, starting equity and the cost assumptions are shown next to the result.
That is a bar-based model with a stated intra-bar order. It is not the same as replaying every real tick; for logic that depends on exact tick sequences, the MT5 tester on real ticks is the more detailed tool.
Strategy Tester or rule simulator?
| MT5 Strategy Tester | Rule simulator | |
|---|---|---|
| Input | A compiled Expert Advisor | A rule: drawn level, template or described in words |
| Skill needed | MQL5 | None |
| Tick detail | Real ticks available | Bar-based with synthetic ticks |
| Arbitrary custom logic | Anything you can code | What the rule vocabulary expresses |
| Same logic then runs live | Only if the EA is deployed | Yes, the same rule arms on the same engine |
| Needs a broker account | Yes, for history | No, public history is available |
What to do with a result
Read the trades before the total. Check the spread assumption first, because an unstated spread makes a result meaningless. Then forward test on paper. A simulation shows how logic behaved on past data; it does not predict anything.
Common questions
Can I backtest in MetaTrader without an Expert Advisor?
Not in the built-in Strategy Tester, which runs Expert Advisors. A rule simulator can replay a rule built from levels and conditions with no MQL5.
Which MT5 Strategy Tester mode is most accurate?
Every tick based on real ticks is the most detailed, but it needs good tick history and runs slowly. Open-prices-only is fast and suits logic that acts only on bar opens.
How does chartTrigger simulate fills inside a bar?
It replays each bar as synthetic ticks (open, low and high, close), charges the stated spread, slippage and commission, and assumes the stop is hit first when both stop and target fall inside one bar.
Is a bar-based simulation as accurate as real ticks?
No. It is an approximation with a stated intra-bar order. For logic that depends on exact tick sequences, a real-tick test is more detailed.
Skip the EA, keep the test
Describe or draw the rule, simulate it over history, then run it on paper.
Create a free accountRead next
Risk note. This article is educational material about how chartTrigger works. It is not investment advice, not a recommendation to trade any instrument, and nothing here forecasts results. Trading leveraged products carries a high risk of loss. Any historical simulation referred to is exactly that — a run over past bars under stated spread and slippage assumptions, not an indication of future performance.