Gold trading basics · Lesson 86 of 100

Gold Setup Rules: Translate Chart Language into Testable Predicates

My reading list →

Define strict and inclusive comparisons, missing-data handling and boundary tests before interpreting a chart setup.

Test The Equality Case: instructional diagram for lesson 86
CYGURU GOLD · Original lesson schematic. Examples are illustrative.

Replace adjectives with observable comparisons

Words such as clean breakout and strong rejection allow a trader to reinterpret history after the result is known. A testable rule identifies an input, a comparison and the time that input became available. The purpose is reproducibility, not the elimination of judgment from every research question. Keep discretionary observations in a separate annotation field. If they affect eligibility, document their evaluation procedure as well. Two people applying the same published rule to the same recorded observations should produce the same eligible set, including rejected and ambiguous cases.

Construct a deliberately simple paper predicate

Consider an invented long-only experiment using completed fifteen-minute bars. Let H be the maximum high of the previous twenty completed bars, explicitly excluding the current signal bar. Eligibility requires current close C strictly greater than H and quoted spread S less than or equal to USD 0.50 per ounce. Other charter gates must also pass. These are demonstration parameters, not an endorsed trading recipe. Recording C, H and S is essential because the word breakout alone cannot show which comparison was evaluated or whether the boundary included equality.

Test the boundaries rather than only the obvious winner

With H equal to 2,000, a close of 2,000 fails the strict price test. A close of 2,000.10 with spread 0.50 passes these two predicates. The same close with spread 0.51 fails the spread gate. A missing spread is unknown, not a measured zero, so the example policy blocks the decision until valid information exists. Keep arithmetic precision consistent with the instrument tick and avoid comparing rounded chart labels when the underlying values differ. These small boundary cases often expose larger disagreements between a written plan and its code.

Predicate boundary tests
Close CPrior high HSpread SOutcome
200020000.40Fail price
2000.1020000.50Pass these two tests
2000.1020000.51Fail spread
2000.102000MissingUnknown; blocked
Prior twenty-bar high excludes current signal bar; other gates remain necessary.

Keep the signal clock consistent with the evidence

If the rule uses a completed close, it cannot be credited with an entry before that close was established. Record the bar end, calculation time, quote timestamp and order-submission time separately. A later data correction should create an audit record rather than quietly rewriting the original decision. Also define whether one qualifying bar can trigger several attempts. A repeatable trigger requires an identity and a rearming rule; otherwise a chart that stays above the threshold may create unintended repeated exposure on every evaluation.

Use adversarial examples before performance statistics

Create tests where the prior window is incomplete, the current high exceeds H but the close does not, or the spread update arrives late. Test market-session boundaries and a price exactly one valid tick above H. A performance report cannot establish that these cases were processed correctly. First verify that the implementation matches the specification, then study whether the specified process has useful behavior. Passing a software test only establishes agreement with the rule being tested; a precisely implemented losing rule remains a losing rule.

Workshop deliverable: a decision test sheet

Write at least eight input rows with expected pass, fail or unknown outcomes and a reason for each. Include equality, missing data and delayed availability. Have a second pass evaluate the rows without reading the expected answers. Any disagreement becomes a specification question, not a debate about which chart looks better. Retain this sheet alongside the rule version so future changes can be checked against known boundaries. The next lesson will show why an eligible setup still needs an order lifecycle before it becomes a position.

Check your understanding

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

1. H is 2000 and the rule requires C>H. Does C=2000 pass?
2. C=2000.10, H=2000 and spread=0.50 under S≤0.50. What follows?
3. How does the example policy treat a missing spread?

0 of 3 answers selected

Latest scores are saved in this browser. Reading completion is recorded separately.

Module 17 · Lesson 86 / 100

Make this lesson part of your process.

Finish the reading and its practice task, then mark the lesson as completed.

Next lesson →

0 of 100 lessons completed

Practise with the position size calculator →

Continue with the book

Gold Trading Mastery

From gold market fundamentals to technical analysis, execution, quantitative research and AI. A structured 160-chapter course.

Explore the book →

View and buy on CYGURU.COM →

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 Backtests: When One Candle Touches Both Stop and Target →

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 →

Gold VWAP: Define the Anchor, Price Input and Volume →

Gold Bollinger Bands: Distinguish Price Dispersion from a Reversal Signal →

Gold MACD: Read the Line, Signal and Histogram as Different Comparisons →

Gold Donchian Channels: Use the Prior Window Without Circular Signals →

Gold Fibonacci Retracements: Audit the Anchors Before Trusting the Level →

Gold Position Accounting: Distinguish Net Exposure from Gross Tickets →

Gold Bracket Orders: Audit Partial Fills and Cancellation States →

Gold Trade Excursions: Measure MAE and MFE Without Rewriting the Past →

Gold Execution Shortfall: Reconcile Decisions, Fills and Unfilled Quantity →

Gold Strategy Monitoring: Separate Data Failures, Execution Drift and Method Decay →

Gold Open Interest: Follow the Contract Ledger Before Reading Sentiment →

Gold Order Books: Translate Displayed Depth into a Conditional Fill Estimate →

Gold Calendar Spreads: Calculate Relative-Maturity P&L and Leg Risk →

Gold Basis Risk: Explain Why a Futures Hedge Can Leave a Residual Loss →

Gold Lending and Lease Rates: Separate Metal Interest from Price Exposure →

Gold Assay and Authenticity: Separate a Purity Calculation from Evidence →

Gold Storage and Insurance: Reconcile the Inventory and the Protection →

Gold Inventory Hedging: Match Fine Ounces and Finance the Cash Path →

Gold and Currency Hedging: Separate Metal Exposure from the Conversion Leg →

Gold Capstone: Build One Report from Price, Basis, Costs and Liquidity →

Gold Profit Factor: Reconcile the Winning and Losing Dollars →

Gold Sharpe Ratios: Align Excess Returns, Frequency and Risk →

Gold Sortino Ratios: Define the Target and the Downside Denominator →

Gold Win Rates: Calculate a Confidence Interval and State Its Assumptions →

Gold Return Dependence: Keep the Sequence When Measuring Risk →

Gold Bootstrap Studies: Resample the Evidence Without Inventing New Markets →

Gold Walk-Forward Tests: Freeze Each Rule Before Its Next Evaluation →

Gold Research Universes: Keep Delisted Products and Historical Eligibility Visible →

Gold Performance Attribution: Separate Within-Condition Results from the Opportunity Mix →

Gold Performance Capstone: Audit a Claim from Signal Ledger to Account Equity →

Build a Gold Trading System: Write the Operating Charter Before the Signal →

Gold System States: Separate Eligibility, Submission, Exposure and Rearming →

Gold System Sizing: Reserve Risk and Check Whether a Trade Is Feasible →

Gold System Exits: Define Priority, Timeouts and Conflicting Events →

Release a Gold Paper System: Test the Runbook Before Increasing Exposure →

Gold Execution Hesitation: Distinguish a Missed Entry from a New Decision →

Gold Overtrading: Audit Eligibility Before Counting Activity →

Gold Losing Streaks: Prevent Recovery Pressure from Rewriting Risk →

Gold Rule Changes: Separate Emergency Repairs from Strategy Redesign →

Gold Trading Journals: Score Decision Quality Separately from Profit →

Gold Case Study: Audit a Trend-Continuation Trade from Context to Net Exit →

Gold Case Study: Accept a Failed Range Break Without Moving the Evidence →

Gold Case Study: Document a Valid No-Trade Decision Around a Scheduled Event →

Gold Case Study: Recover from a Lost Order Response Without Duplicating Exposure →

Gold Lesson 100: Complete the Paper-System Project and Defend Its Evidence →

Market Desk and position-risk calculator →

Position sizing explained → · Build a trading journal →

Lesson sources and further study

CME Group: Building a trade plan

CME Group: Risk management and the trade plan

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.

Topics: gold trading education · paper trading system · XAU/USD practical workshop

Gabriel Nicolaev — CyGuru · Published 7 November 2026. Educational material. Illustrative prices are not current quotes or trade recommendations.