7-90 Day Multi-Horizon Demand Forecasting, 90-180 Day Backtest and Read-Only Shadow Mode: A Zero-Risk Migration Guide

Backtest on 90-180 days of history, a 5-band days-of-cover stock shield, TACoS/CAC-aware floors, Monte Carlo and 3-mode Pareto selection, validated without writing to live prices.

December 1, 2026 · 11 min

Key Takeaways

  • The migration is six steps end to end, and each step lowers the risk of the next.
  • Demand is forecast on 7/14/30/60/90 day horizons and backtested on 90-180 days of history.
  • A 5-band DOC stock shield limits discounts before stock runs out.
  • A TACoS/CAC-aware P_min floor never double counts ad cost.
  • Read-only Shadow Mode never writes to a live price.

Step 1: Multi-horizon demand forecasting (7-90 days)

A single forecast horizon is misleading. A 7-day forecast is sensitive to campaigns and weekends; a 90-day forecast is sensitive to seasonal trend. XPrice forecasts demand on 7, 14, 30, 60 and 90 day horizons, and stock and price decisions draw on the horizon that best matches replenishment lead time. Forecasts are reduced to whole units: whole units x effective price = expected revenue.

Step 2: A 90-180 day backtest

A backtest asks what would have happened had the model made the same decision in the past: data is split in two, the model is fitted on the first part, and the second part is treated as the future and compared with the forecast. The window is rolled forward and repeated several times.

HorizonIllustrative WAPEReading
7 days18%Short range, low uncertainty
30 days26%Campaign deviation becomes visible
90 days38%Wide uncertainty range; the Monte Carlo band is used

If error is high, the model stays a recommendation rather than a decision. Figures are illustrative.

Step 3: The 5-band days-of-cover stock shield

DOC = Sellable stock / Forecast daily unit sales, compared with replenishment lead time.

Days of coverPolicy
0-7 daysStockout Shield: automatic discount stop and reverse
8-21 daysConservative margin protection (Profit-First weighting)
22-45 daysNormal competitive Pareto optimization
46-90 daysSell-through velocity optimization (above P_min)
90+ daysControlled aging-stock liquidation

Band thresholds are configurable; the table shows the default policy.

Step 4: TACoS and CAC aware floor price (P_min)

For Amazon, P_min = (COGS + inbound + FBA/FBM + returns share) / (1 - commission - TACoS - m); for Shopify, P_min = (COGS + 3PL + fixed payment fee + returns share) / (1 - payment rate - CAC share - m). Ad cost appears once in the formula and is never added to product cost again.

Step 5: Monte Carlo and 3-mode Pareto selection

With 5 candidate prices x 10,000 scenarios, each candidate gets a profit and revenue distribution. Then one of three modes is chosen: Profit-First, Revenue-First or Balanced Pareto (default). No mode goes below the P_min floor.

Step 6: Read-only Shadow Mode

Shadow Mode does not write to live prices. For every SKU, the recommended price vs. realized price and simulated vs. actual contribution profit are written to a ledger. When the ledger is trustworthy you move to Approval Mode and then optionally to Autopilot. After the 14-day trial, an active subscription allows an unlimited 30+ day Shadow Mode.

See Pricing for plans and the 0% variable fee guarantee, Product for every capability and Resources for other guides. Fee structure comparison: 0% GMV commission and flat fee. Contract terms: Terms.

FAQ: Will Shadow Mode change my price?

No. Shadow Mode is read-only; it produces and records recommendations and never writes to a live price.

Markdown version