Skip to main contentThe 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?
Quantity Score:
qty_score=e−2∣target_qty∣(fill_qty−target_qty)2
Price Score:
px_improvement=(target_px−fill_px)×sign(target_qty)
px_score=1+e−∣target_px∣×0.1px_improvement1
Profitability Score:
pnl_score=0.5+0.5×tanh(∣target_qty×target_px∣×0.01pnl)
Final Score:
final_score=(qty_score×0.3)+(px_score×0.3)+(pnl_score×0.4)
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