Skip to main content

ZScoreStrategy

typeType (string)required
Constant value: z_score
params objectrequired

z_score strategy parameters.

threshold: number of standard deviations required to trigger (must be > 0) direction: 'above' | 'below' | 'any' window: lookback duration string (default '30d')

Note: parameter key is 'threshold', NOT 'value' or 'cutoff'. This is different from every other strategy — z_score is the only one where the sensitivity param is called 'threshold'.

thresholdThreshold (number)required

Possible values: > 0

directionZScoreDirection (string)required

Possible values: [above, below, any]

windowWindow (string)
Default value: 30d
ZScoreStrategy
{
"type": "z_score",
"params": {
"threshold": 0,
"direction": "above",
"window": "30d"
}
}