Catalog/trade-expectancy

Calculators

System expectancy API

Trading-system expectancy: E = W·avgWin − (1−W)·avgLoss (average profit per trade), also as an R-multiple expectancy W·R − (1−W). Deterministic edge math. Answers 'what's my expectancy per trade','is my system profitable','average profit per trade for my win rate'.

Price$0.01per request
MethodPOST
Route/v1/calc/trade-expectancy
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calctradingexpectancyedgewin-ratepayoffstrategyperformance
API URLhttps://x402.hexl.dev/v1/calc/trade-expectancy
Integration docs
Example request
{
  "winRate": 0.5,
  "avgWin": 200,
  "avgLoss": 100
}
Example response
{
  "winRate": 0.5,
  "avgWin": 200,
  "avgLoss": 100,
  "winLossRatio": 2,
  "expectancy": 50,
  "expectancyR": 0.5,
  "rating": "strong",
  "profitable": true,
  "formula": "E = W·avgWin − (1−W)·avgLoss"
}
Input schema
{
  "type": "object",
  "required": [
    "winRate",
    "avgWin",
    "avgLoss"
  ],
  "properties": {
    "winRate": {
      "type": "number",
      "description": "Win probability in [0,1].",
      "examples": [
        0.5
      ]
    },
    "avgWin": {
      "type": "number",
      "examples": [
        200
      ]
    },
    "avgLoss": {
      "type": "number",
      "examples": [
        100
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}