{
  "additionalProperties": false,
  "description": "Reference to a field of the bar that matched a named sequence step.\n\nAddress the bar that satisfied a specific step inside a specific\nSequenceCondition. Useful for \"stop at the retest bar's low\" in\nbreak-retest setups.\n\nLifecycle mirrors EntryBarSignalRef: the snapshot is captured at step\nfire, preserved for the lifetime of the open position, cleared on\nposition close. NaN when no position is open or the step has not yet\nfired on the current match.\n\nFields:\n  - open / high / low / close: step-bar OHLC\n  - range: high - low\n  - body_high: max(open, close)\n  - body_low: min(open, close)",
  "properties": {
    "factor": {
      "anyOf": [
        {
          "maximum": 1000000.0,
          "minimum": -1000000.0,
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Factor"
    },
    "resolution": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional higher-timeframe override for this value ref. Set it inside lhs/rhs refs such as {'type': 'indicator', ..., 'resolution': '4h'} or {'type': 'price', 'field': 'close', 'resolution': '4h'}. Do not put timeframe/source_timeframe on the parent condition. None = strategy timeframe.",
      "title": "Resolution"
    },
    "sequence_id": {
      "description": "Id of the target SequenceCondition.",
      "minLength": 1,
      "title": "Sequence Id",
      "type": "string"
    },
    "step_field": {
      "enum": [
        "open",
        "high",
        "low",
        "close",
        "range",
        "body_high",
        "body_low"
      ],
      "title": "Step Field",
      "type": "string"
    },
    "step_id": {
      "description": "Id of the step within the sequence.",
      "minLength": 1,
      "title": "Step Id",
      "type": "string"
    },
    "type": {
      "const": "sequence_step",
      "default": "sequence_step",
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "sequence_id",
    "step_id",
    "step_field"
  ],
  "title": "SequenceStepSignalRef",
  "type": "object"
}
