canli-mcp / Quant finance

Sample events with a CUSUM filter

Sample the periods worth labeling with the symmetric CUSUM filter on log prices: an event fires when the cumulative up or down move since the last event exceeds a threshold (fixed, or a multiple of recent volatility), so labels concentrate on meaningful moves instead of every bar.

The tool is cusum_filter_events 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

As the server declares them
ArgumentRequiredType
pricesyesnumber[]
thresholdnonumber
volatility_multiplenonumber
vol_spannointeger

How a model reaches it

Ask in plain words. The model finds cusum_filter_events 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": "cusum_filter_events",
  "arguments": {
    "prices": "<number[]>"
  }
}

Words that find it

Besides its name, title and description, find_tool matches a question to cusum_filter_events on these words: cusum, filter, event, sampling, events, labels, machine, learning, lopez, de, prado, downsampling, structural, moves.

More

Nothing here is investment advice.