{
  "additionalProperties": false,
  "description": "ATR as percentage of price. Measures realized volatility.\n\nATR% = ATR(lookback_bars) / close * 100. High values indicate volatile markets,\nlow values indicate calm markets. Use as a gate or overlay condition.",
  "properties": {
    "lookback_bars": {
      "default": 14,
      "maximum": 5000,
      "minimum": 1,
      "title": "Lookback Bars",
      "type": "integer"
    },
    "mode": {
      "default": "level",
      "description": "Firing mode. 'level' (default) = true every bar the ATR% comparison holds. 'cross' = edge, fires once on the bar the ATR% first crosses the threshold in the op direction.",
      "enum": [
        "level",
        "cross"
      ],
      "title": "Mode",
      "type": "string"
    },
    "op": {
      "enum": [
        ">",
        ">=",
        "<",
        "<=",
        "between",
        "==",
        "!="
      ],
      "title": "Op",
      "type": "string"
    },
    "type": {
      "const": "vol_atr_pct",
      "default": "vol_atr_pct",
      "title": "Type",
      "type": "string"
    },
    "value": {
      "title": "Value",
      "type": "number"
    }
  },
  "required": [
    "op",
    "value"
  ],
  "title": "VolATRPctCondition",
  "type": "object"
}
