{
  "additionalProperties": false,
  "description": "Protect the position with a resting stop measured from the entry fill.\n\nPercent levels use whole percents; ATR levels move away from entry and price\nlevels are read at fill. A gap through the stop can fill at the next open,\nwith a loss greater than the threshold. Standing stops and targets resolve\nbefore per-bar exits; priority and attachment order break remaining ties.",
  "properties": {
    "at": {
      "$ref": "../defs.json#/$defs/StopLevel"
    },
    "breakeven": {
      "anyOf": [
        {
          "$ref": "../defs.json#/$defs/Breakeven"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "kind": {
      "const": "stop",
      "default": "stop",
      "title": "Kind",
      "type": "string"
    }
  },
  "required": [
    "at"
  ],
  "title": "StopCondition",
  "type": "object"
}
