Gold System States: Separate Eligibility, Submission, Exposure and Rearming
Build a state-transition specification that prevents duplicate entries and distinguishes local intent from confirmed broker exposure.
An eligible signal is not an open position
An indicator can identify a condition while an execution process is disconnected, rejected or still waiting. Treating all of those events as an entry obscures both operational failures and economic results. Begin with a small state vocabulary: idle, eligible, submitted, partially filled, open, exit pending, closed and reconciliation required. A blocked decision can remain idle with a rejection reason. These labels are useful only when their transition conditions are explicit. The same market observation should not become several independent orders simply because several components received it.
Give each intention one durable identity
Construct a stable program identifier from the rule version, instrument, decision timestamp and direction. A retry carries the same identifier rather than creating a fresh economic intention. Store event sequence and broker identifiers separately, because one program can contain several orders and fills. An acknowledgement confirms receipt under that system's protocol; it does not necessarily confirm the full requested execution. If the response is missing, reconcile the broker state before retrying an order. Uncertainty about whether an order exists is a reason to investigate, not evidence that no order exists.
Reconcile a partial-fill example
Suppose a paper intention requests six ounces and the execution record confirms two ounces followed by one ounce. Exposure is three ounces, while three requested ounces remain unfilled or otherwise unresolved. A duplicate notification of the one-ounce fill does not increase exposure if it has the same unique execution identifier. If the unfilled remainder is canceled and that cancellation is confirmed, requested size remains six for historical intent, executed size remains three and working remainder becomes zero. Retaining all three quantities explains what happened without rewriting the original request.
| Event | Unique filled oz | Working oz |
|---|---|---|
| Submit six | 0 | 6 |
| Fill two | 2 | 4 |
| Fill one | 3 | 3 |
| Duplicate same fill ID | 3 | 3 |
| Confirmed remainder cancel | 3 | 0 |
Define what can legitimately move the system
Only confirmed new executions alter the fill ledger. A cancellation request moves an order toward a pending-cancel state until its outcome is known. An exit request similarly does not make the position flat. If observations conflict, transition to reconciliation required and block new exposure under the example policy. The process must also account for a fill arriving during cancellation. Write that race explicitly rather than assuming that a button press removes an order instantly. State transitions should be traceable to evidence and should not depend on the color of an indicator label.
Rearm only after the chosen reset condition
Closure of a position and permission for a new attempt are different decisions. A construction exercise might require price to return below the prior threshold and a later completed qualifying bar before another long program is allowed. That is one testable reset policy, not a universal trading rule. Alternative reset choices create different opportunity populations and must be compared as separate versions. Do not reset automatically on a browser refresh, alert retry or chart timeframe change. Technical restarts should recover the durable state rather than silently grant a fresh trade allowance.
Workshop deliverable: a transition and recovery ledger
List each current state, allowed incoming event, resulting state and quantities that change. Include one partial fill, one duplicate, one cancel-fill race and one lost response. Verify that every path ends with reconciled exposure or a visible unresolved state. Keep program accounting distinct from notification counts and from completed-trade statistics. This specification connects earlier webhook and bracket-order lessons into a complete operating process. It also gives the sizing engine a reliable answer to a necessary question: how much exposure is already committed before another intention can be accepted?
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 100 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 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 Setup Rules: Translate Chart Language into Testable Predicates →
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.
Gabriel Nicolaev — CyGuru · Published 7 November 2026. Educational material. Illustrative prices are not current quotes or trade recommendations.