Gold Backtests: When One Candle Touches Both Stop and Target
Recognize ambiguous intrabar paths and test how fill assumptions affect a gold strategy result.
OHLC does not preserve every event
A candle reports an opening value, an extreme in each direction and a close. It usually does not tell you the order in which all intermediate prices occurred. When both a stop and a target fall inside the bar, that missing sequence can change the simulated result. The problem becomes particularly important when tight levels are tested on long chart intervals.
Construct two paths with the same candle
Imagine a long position already open at 2,000, with stop 1,995 and target 2,010. A later bar opens at 2,000, reaches high 2,012 and low 1,994, then closes at 2,006. A path reaching the high first can hit the target before the stop. A path reaching the low first can do the opposite. Both paths share those four OHLC values, before considering execution costs or gaps.
Read the emulator rather than guessing
Backtest engines impose rules for order timing, price paths, gaps and fills. Read the platform’s documented assumptions and record the settings in the experiment. Lower-timeframe historical detail can reduce some ambiguity where data exists. It does not recreate the full order book, queue position or every live fill. If coverage is incomplete, identify the affected periods instead of treating the entire sample as equally resolved.
Measure sensitivity to unresolved cases
Count trades whose results depend on an unknown sequence. Compare a conservative assumption, the documented default and more granular data where available. If a claimed advantage disappears under plausible alternatives, the evidence is fragile. Do not choose the assumption producing the most attractive curve after seeing the results. Keep gross strategy logic, transaction costs and sequencing assumptions visible as separate components.
Practice task: report a result range
Create three hypothetical ambiguous trades and write both possible outcomes under the stated stop and target rules. Calculate the total under each path assumption. State that this range illustrates uncertainty, not a probability distribution. Return to the same-bar example above and explain why the final close alone cannot tell you which exit was reached first.
Can you apply the idea?
Answer three questions, then check the explanation for every answer. You can repeat the check after reviewing the lesson.
Knowledge check: not attempted
Make this lesson part of your process.
Finish the reading and its practice task, then mark the lesson as completed.
0 of 54 lessons completed
Gold Trading Mastery
From gold market fundamentals to technical analysis, execution, quantitative research and AI. A structured 160-chapter course.
Explore the book →Continue the beginner course
What Is XAU/USD? Gold Trading Explained for Beginners →
How to Read Gold Candlestick Charts: A Beginner’s Guide →
Market, Limit and Stop Orders in Gold Trading →
Gold Trading Costs: Spread, Slippage and Financing →
Stop-Loss and Take-Profit in Gold: Beginner Essentials →
Your First Gold Trading Plan: Practise Before Going Live →
Gold Position Sizing: Calculate Exposure Before You Trade →
Gold Leverage and Margin: Understand the Difference →
Support and Resistance in Gold: Read Zones Without Guessing →
Gold and the Economic Calendar: CPI, Jobs and the Fed →
Multiple-Timeframe Gold Analysis: Context, Setup and Trigger →
Gold Trading Expectancy: Evaluate Results Beyond Win Rate →
Gold Trends and Ranges: Identify the Market Before the Setup →
Gold ATR for Beginners: Measure Movement, Not Direction →
Gold Breakouts and Failed Breaks: Define the Evidence →
Gold Trading Drawdown: Understand Losses and Recovery →
How to Backtest a Gold Trading Rule Without Hindsight →
The Gold Pre-Trade Checklist: Turn a Plan into a Decision →
Gold Liquidity and Trading Sessions: Study the Conditions →
Audit a Gold Trade: Quotes, Triggers and Actual Fills →
Multiple Gold Positions: Measure the Combined Exposure →
Partial Exits and Breakeven Stops: Follow the Arithmetic →
Small Samples in Gold Trading: Describe the Uncertainty →
Your Gold Trading Review: Version the Rule Before Testing Again →
Gold Weight and Purity: Calculate the Fine Gold Content →
Gold Premiums and Buyback: Calculate the Round-Trip Hurdle →
Allocated and Unallocated Gold: Understand the Ownership Claim →
Gold Benchmarks and Spot Quotes: Compare Like with Like →
Gold Returns in Your Currency: Separate Metal and FX Effects →
Gold Futures Tick Value: Translate Price Moves into Money →
Gold Futures Daily Settlement: Follow the Cash Through the Account →
Gold COT Reports: Read Positioning Without Inventing a Signal →
Gold ETFs: NAV, Market Price and Tracking Difference →
Gold in a Portfolio: Calculate Weight Drift and Rebalancing →
Gold Moving Averages: Read Smoothing Without Predicting the Future →
Gold RSI: Momentum Is Not a Reversal Promise →
Gold Volume: Distinguish Ticks, Contracts and Coverage →
Gold Heikin Ashi Charts: Separate Display Prices from Fills →
Gold Indicator Repainting: Distinguish Live Signals from Confirmed History →
Gold TradingView Alerts: Audit the Saved Script Snapshot →
Gold Signal Webhooks: Verify Delivery, Freshness and Duplicates →
Gold Trading Returns: Add Money, Compound Percentages →
Gold Account Performance: Separate Deposits from Trading Gains →
Gold Realized Volatility: Calculate the Statistic and Audit Its Assumptions →
Gold Correlation: Align Returns Before Interpreting the Relationship →
Gold Event Studies: Measure the Reaction Without Inventing the Cause →
Gold Strategy Robustness: Count the Experiments Behind the Winner →
Gold Stress Tests: Model Gaps, Liquidity and Tail Losses Together →
Gold Options at Expiry: Separate Payoff, Premium and Exercise →
Gold Option Delta and Gamma: Estimate Exposure Without Freezing It →
Gold Implied Volatility: Separate the Price of Uncertainty from Direction →
Gold Futures Rolls: Reconcile Contract P&L with a Continuous Chart →
Gold Mining Shares: Understand the Business Behind the Metal Exposure →
Market Desk and position-risk calculator →
Position sizing explained → · Build a trading journal →
Lesson sources and further study
TradingView: Strategy fill assumptions
Core course references
CME Group: Gold Product Overview. Investor.gov: Types of Orders explains order concepts for stocks; check the execution rules of your specific gold instrument.
Gabriel Nicolaev — CyGuru · Published 5 November 2026. Educational material. Illustrative prices are not current quotes or trade recommendations.