Write down both possible sequences
Suppose a hypothetical long gold position is already open at 2,000, with a stop at 1,995 and a target at 2,010. The next candle opens at 2,002, reaches a high of 2,012 and a low of 1,993, and closes at 2,004. Those four numbers are compatible with the target being reached first. They also allow a path where the stop is reached first. Under a simplified simulation that closes the trade at the first touched exit, the two paths produce opposite outcomes. This is a constructed example with no live market prices.
Find the simulator’s rule
TradingView documents how its strategy broker emulator simulates orders from available chart data and can use lower-timeframe data to refine historical fill modelling.[1] Check your own tool’s settings and the data actually present for the affected bars. Record whether the orders were active during the bar and what happens when the simulator cannot resolve their sequence. Smaller candles may clarify which level came first. They can still leave ambiguity when both events occur inside the same smaller interval.
Count the ambiguous trades
Mark each affected record and calculate how much of the reported result depends on its assumed order. Try a clearly labelled comparison that applies one consistent rule across the ambiguous trades, then retain the original report alongside it. Compare the number of changed outcomes as well as their contribution to the total. Review other backtest assumptions and read how stop and execution prices differ. The Gold Trader’s Code extends the discussion into rule design and trade review.

The Gold Trader’s Code
Continue the study of rules and professional trading decisions.
Discover the book ↗Read the book overview →Sources & further reading
Sources consulted 11 November 2026. Editorial frameworks and illustrative examples are identified within the text.



