Skip to main content
The Mirage Score measures how well your trading execution matches the given order.

Score weights

It’s a number between 0 and 1.
  • Quantity (30%) - Did you get the right position size?
  • Price (30%) - Did you get good fill prices?
  • Profit (40%) - Did you make money?

Formula

Quantity Score: qty_score=e(fill_qtytarget_qty)22target_qtyqty\_score = e^{-\frac{(fill\_qty - target\_qty)^2}{2|target\_qty|}} Price Score: px_improvement=(target_pxfill_px)×sign(target_qty)px\_improvement = (target\_px - fill\_px) \times \text{sign}(target\_qty) px_score=11+epx_improvementtarget_px×0.1px\_score = \frac{1}{1 + e^{-\frac{px\_improvement}{|target\_px| \times 0.1}}} Profitability Score: pnl_score=0.5+0.5×tanh(pnltarget_qty×target_px×0.01)pnl\_score = 0.5 + 0.5 \times \tanh\left(\frac{pnl}{|target\_qty \times target\_px| \times 0.01}\right) Final Score: final_score=(qty_score×0.3)+(px_score×0.3)+(pnl_score×0.4)final\_score = (qty\_score \times 0.3) + (px\_score \times 0.3) + (pnl\_score \times 0.4) mirage_score=max(0,min(1,final_score))mirage\_score = \max(0, \min(1, final\_score))

Examples

Example 1: Perfect Execution with Profit
  • Target: Buy 100 shares at $50 limit
  • Actual: Bought 100 shares at $50 average
  • P&L: +$1,000
  • Mirage Score: 0.85
Example 2: Good Price Execution
  • Target: Buy 100 shares at $50 limit
  • Actual: Bought 100 shares at $40 average
  • P&L: $0
  • Mirage Score: 0.76
Example 3: Partial Fill
  • Target: Buy 100 shares at $50 limit
  • Actual: Bought 75 shares at $50 average
  • P&L: $0
  • Mirage Score: 0.36
Example 4: Zero Fill
  • Target: Buy 100 shares at $50 limit
  • Actual: Bought 0 shares
  • P&L: $0
  • Mirage Score: 0.00