Placing Orders in Backtest
You place orders in Backtest using the exact same order panel you use for live trading. Every order type is supported, and all trades are matched against historical replayed prices.
Orders placed in Backtest exist solely in your local browser runtime. They are not sent to the broker server, do not appear in your real trading history, and have zero impact on your real live balance.
Order types and execution
The order panel operates just as it does in live trading. Select your order type, specify your lot volume, and review calculated margin requirements before confirming:
- BUY / SELL Market : opens a position immediately at the current simulated candle price.
- BUY / SELL Limit : waits for the replayed price to pull back to your favorable entry price.
- BUY / SELL Stop : waits for the replayed price to break through your entry level before opening.
- BUY / SELL Stop Limit : a two-stage conditional order. When the market touches the Stop Price, the order is converted into a standard Limit order at your specified Limit Price.
- Zero spread (Bid = Ask): Backtest simulates order execution with zero spread. Bid and Ask prices are equal, meaning orders fill directly at the historical candle price without spread widening or markup.
- Hedging supported: Backtest operates in full hedging mode. You can open and hold simultaneous BUY and SELL positions on the same instrument without them netting or cancelling each other out.
How price moves inside one minute
Each 1-minute candle is evaluated through a deterministic 3-point price path to ensure 100% repeatable trading results:
- Rising or flat candles (Close ≥ Open): evaluated as Low → High → Close.
- Falling candles (Close < Open): evaluated as High → Low → Close.
Whether you use Play, Step, or End, prices always follow this exact deterministic path, ensuring identical trading outcomes across repeated runs.
Sizing by risk
The Risk Amount field in the order form works fully in Backtest and sizes your lot against the demo balance of the run, not your live balance. Enter a percentage or an amount and the volume is calculated from the distance to your Stop Loss, using the same conversion the engine will use when the stop is actually hit - so the estimated loss on the ticket matches what the position will really cost.
Because volume is rounded down to the symbol's step, it can never exceed the risk you asked for - except at the very bottom of the range, where the minimum volume is already larger than your budget. In that case a yellow line appears under the field, for example:
Minimum volume 0.01 risks 19.91 USD (0.20%), more than the 9.98 USD you set.
The volume is not changed for you; the warning simply tells you the trade cannot be taken at that risk.
Symbols priced in another currency
The demo account is in USD. For symbols whose profit is denominated in another currency (USDJPY, AUDCAD and similar), profit and loss are converted to USD before they touch your balance, equity and report.
The conversion uses the historical H1 rate at the replay cursor when that history is available. While conversion history is still loading, or if its request fails, the engine temporarily falls back to the current live conversion quote. During one uninterrupted End fast-forward, the conversion rate resolved for its starting hour is held for that scan.
Selecting an order on the chart
Clicking the body of an Entry label selects that order - the same click that opens it for editing in the table below.
- The selected order keeps its full colours; every other order on the chart dims so you can see which one you are about to change.
- Its labels are raised above overlapping labels, and labels near the same price are staggered sideways where the pane has room. This reduces overlap, although fallback labels or a very crowded pane can still overlap.
- Starting a brand-new order in the Place Order panel releases the selection, so the draft you are composing owns the chart again.
Stop Loss and Take Profit on the chart
You can set Stop Loss (SL) and Take Profit (TP) in the order form before placing an order, or adjust them on the chart by dragging their lines.
- Open positions and pending orders display Entry, SL and TP lines on the chart.
- When SL or TP is not yet set, it appears as a dashed placeholder line located 45px away from entry, giving you a handle to drag to your desired price.
- Labels show the money at that line - for example
▲SL : -$10.0or▼TP : $25.0- including on a placeholder you have not confirmed yet.
Dragging on the chart creates a draft - press ✓ to commit
Dragging an order line on the chart creates a draft and does not change your order immediately:
- When you drag an Entry, SL, TP, or Stop Limit line, a floating bar appears with ✓ (Confirm) and ✕ (Cancel) buttons.
- Click ✓ to apply the new price to your order (the same as clicking Update in the order table).
- Click ✕ to revert the line to its original position.
- A chip with a small dot (
•) indicates an unconfirmed draft. - Until you click ✓, the simulation continues to evaluate your order at its original stored price.
If you try to drop a line at an invalid level (such as dragging a BUY Stop Loss above the current market price), the line snaps back and an amber banner explains why.
A position's SL and TP are validated against the current market price, not the original entry price. You can freely drag a BUY position's Stop Loss above its entry price as long as it remains below current price - allowing you to lock in profit at break-even and let the trade run.
The Stop Limit lines
A pending Stop Limit order displays two distinct lines on the chart:
1. STOP-LIMIT TRIGGER (dashed amber line): The market level that activates the order.
2. BUY/SELL LIMIT ENTRY (solid green/red line): The exact price where your order will fill once triggered.
Both lines can be dragged and drafted independently. Once the market touches the trigger level, the dashed trigger line disappears and the order becomes a standard Limit order waiting at your Limit Entry price.
Buttons on chart order labels
- Middle label button (
SL,TP, orSL/TP): Shows or hides placeholder lines for unset stops and selects the order for editing. - ✕ on an Entry line : For pending orders, cancels the order immediately. For active positions, opens the position close confirmation dialog.
- ✕ on an SL or TP line : Drafts the removal of that stop (confirm with ✓ to remove).
Auto SL/TP protection
If the Auto SL/TP rule is active for your run, positions opened without protection will not remain exposed. The countdown runs in simulated minutes - advancing with Play, Step, and End, and pausing when playback pauses.
Protection works in two clear phases:
1. Initial 5-minute setup window: You have 5 simulated minutes after opening a position to set your own SL and TP. If either level is missing when time expires, the system automatically sets it using your rule's preset.
2. 5-minute adjustment window per leg: Once a stop is placed, you have 5 simulated minutes to adjust it. When this window closes, that stop locks (displaying a 🔒 icon) and can no longer be edited or dragged on the chart.
- Break-even protection (SL to Entry): If configured in your rule, Stop Loss automatically moves to your entry price once floating profit hits your profit threshold.
- Manual Lock: You can also click the manual lock button on any position to immediately freeze its current SL and TP in place.
In Backtest, Auto SL/TP is only active if you agreed to import your live Trader's Guard rules, ran a Scenario containing the rule, or manually enabled it in the order form's Advanced section. Live rules do not apply without your confirmation.
Closing positions
Positions can be closed in full or closed partially from the Open Positions table. Margin requirements and realized profit/loss are automatically recalculated in proportion to the closed volume, and the trade is logged immediately to the History tab.
Common order notifications
- Insufficient demo funds : Available free margin in the demo account is insufficient for the requested volume. Reduce lot size or adjust your demo balance before starting a run.
- Margin unavailable : Symbol specifications could not be loaded.
- Trader's Guard warning : A rule enabled for the run has restricted the order. Guard validation is checked before margin checks to ensure transparent feedback. See Trader's Guard and Scenarios in Backtest.
- Trading locked : a Guard penalty has locked the account for this run. While the lock lasts you cannot place, modify, close or cancel - including the ✓ on the chart's SL/TP bar.
- Direction not allowed : a candle direction or moving-average distance rule blocks that side of the market. The BUY or SELL button, the order type selector and the Send button are gated together, so the chart and the panel never disagree.