Calculators
R-multiple of a trade API
R-multiple of a closed trade: R = (exit − entry)/(entry − stop), the result in units of initial risk — the core metric of systematic trade journals. Deterministic. Answers 'what R was this trade','how many R did I make','express my profit in risk units'.
Price$0.01per request
MethodPOST
Route/v1/calc/trade-r-multiple
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calctradingr-multiplejournalriskexpectancyvan-tharpperformance
API URL
Integration docshttps://x402.hexl.dev/v1/calc/trade-r-multipleExample request
{
"entry": 100,
"stop": 95,
"exit": 115
}Example response
{
"entry": 100,
"stop": 95,
"exit": 115,
"direction": "long",
"initialRisk": 5,
"rMultiple": 3,
"outcome": "win",
"formula": "R = (exit − entry) / (entry − stop)"
}Input schema
{
"type": "object",
"required": [
"entry",
"stop",
"exit"
],
"properties": {
"entry": {
"type": "number",
"examples": [
100
]
},
"stop": {
"type": "number",
"examples": [
95
]
},
"exit": {
"type": "number",
"examples": [
115
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}