canli-mcp / Quant finance
Gain-to-pain ratio
Compute Schwager's gain-to-pain ratio: the sum of returns over the absolute sum of losing returns.
The tool is gain_to_pain in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.
Arguments
| Argument | Required | Type |
|---|---|---|
returns | no | number[] |
prices | no | number[] |
periods_per_year | no | number |
How a model reaches it
Ask in plain words. The model finds gain_to_pain with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:
{
"name": "gain_to_pain",
"arguments": {}
}Words that find it
Besides its name, title and description, find_tool matches a question to gain_to_pain on these words: gain, pain, schwager.
More
Nothing here is investment advice.