canli-mcp / Quant finance
Triple-barrier labels
Label events with the triple-barrier method: a profit-take and a stop-loss set as multiples of recent volatility, and a time limit; each label is which barrier was touched first (+1, -1, or the sign at the time limit), with the touch period so overlapping labels can be purged. With a side per period it produces meta-labels (1 = the bet paid).
The tool is triple_barrier_labels 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 |
|---|---|---|
prices | yes | number[] |
events | no | integer[] |
profit_take | no | number |
stop_loss | no | number |
max_holding | no | integer |
vol_span | no | integer |
min_return | no | number |
side | no | integer[] |
vertical_label | no | sign|zero |
include_rows | no | boolean |
How a model reaches it
Ask in plain words. The model finds triple_barrier_labels 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": "triple_barrier_labels",
"arguments": {
"prices": "<number[]>"
}
}Words that find it
Besides its name, title and description, find_tool matches a question to triple_barrier_labels on these words: triple, barrier, labeling, meta, labels, machine, learning, profit, take, stop, loss, vertical, lopez, de, prado, training, data.
More
Nothing here is investment advice.