{
  "additionalProperties": false,
  "description": "Detect a liquidity sweep pattern (price breaks a level then reclaims it).\n\nPrice sweeps beyond a recent high/low and then reverses back within\nreclaim_within_bars. Common stop-hunt pattern used for reversal entries.\n\ndirection:\n  \"low\"  \u2014 sweep below recent low, reclaim above it (bullish reversal)\n  \"high\" \u2014 sweep above recent high, reclaim below it (bearish reversal)\n  \"both\" \u2014 detect either sweep type",
  "properties": {
    "direction": {
      "default": "low",
      "enum": [
        "low",
        "high",
        "both"
      ],
      "title": "Direction",
      "type": "string"
    },
    "lookback_bars": {
      "default": 20,
      "maximum": 5000,
      "minimum": 1,
      "title": "Lookback Bars",
      "type": "integer"
    },
    "reclaim_within_bars": {
      "default": 5,
      "maximum": 100,
      "minimum": 1,
      "title": "Reclaim Within Bars",
      "type": "integer"
    },
    "type": {
      "const": "liquidity_sweep",
      "default": "liquidity_sweep",
      "title": "Type",
      "type": "string"
    }
  },
  "title": "LiquiditySweepCondition",
  "type": "object"
}
