threshold is true when the named indicator's value is on the
specified side of a number. It exists alongside
comparison for clarity in
filters - same semantics, slightly different shape.
Shape
{ "type": "threshold", "indicator": "adx", "operator": ">", "value": 25 }Params
indicator- column to read.operator->,<,>=,<=.value- numeric threshold.
When to pick threshold vs comparison
Behaviorally identical for the value-vs-number case. Some teams use
threshold for filters and comparison for side rules to make the
intent visible at a glance. Either works.
Pitfalls
The operator must include the equality marker (>= not >) if you
want bar-equal-to-threshold to count. Off-by-one on the equality
side has cost real fills in our experience.
