{
  "additionalProperties": false,
  "description": "A native standing stop amended each bar, with intrabar fills at its level.\n\npct trails the most favourable extreme since entry by a whole percent;\natrs trails it by a multiple of ATR. level supplies an absolute computed\nprice. Every form ratchets only in the position's favour; absent or invalid\ncandidates hold the previous stop. Partial exits preserve the remaining trail.\nNone for activate_at_pct arms at entry; a threshold latches after that profit.",
  "properties": {
    "activate_at_pct": {
      "anyOf": [
        {
          "maximum": 100.0,
          "minimum": 0.1,
          "type": "number",
          "unit": "percent"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Whole percent profit before arming; None arms at entry.",
      "title": "Activate At Pct"
    },
    "at": {
      "$ref": "../defs.json#/$defs/StopLevel",
      "description": "Required trail distance or absolute computed trail price."
    },
    "kind": {
      "const": "trail",
      "default": "trail",
      "title": "Kind",
      "type": "string"
    }
  },
  "required": [
    "at"
  ],
  "title": "TrailCondition",
  "type": "object"
}
