{
  "additionalProperties": false,
  "description": "Reference to the current bar's time field.\n\nVIB-1370 / VIB-1319: the sub-metric selector is named ``field`` across\nevery ValueRef-style type. The legacy name ``component`` was removed.\n\nCalendar/intraday fields: ``hour``, ``minute``, ``day_of_week`` (0=Mon),\n``day_of_month``, ``month`` (1=Jan), ``minutes_since_midnight``.\n\nSession-aware fields (use the strategy's session metadata):\n``minutes_to_close``, ``minutes_since_open``. Return NaN for crypto (24h)\nand pre/post-market bars. Comparisons with NaN are silent-False, so\n``not(minutes_to_close <= 5)`` evaluates True outside session \u2014 prefer\n``AllOf([is_in_session, minutes_to_close <= 5])`` when negation is needed.",
  "properties": {
    "factor": {
      "anyOf": [
        {
          "maximum": 1000000.0,
          "minimum": -1000000.0,
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Factor"
    },
    "field": {
      "enum": [
        "hour",
        "minute",
        "day_of_week",
        "day_of_month",
        "month",
        "minutes_since_midnight",
        "minutes_to_close",
        "minutes_since_open"
      ],
      "title": "Field",
      "type": "string"
    },
    "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"
    },
    "timezone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "IANA timezone (e.g. 'America/New_York'). None or 'UTC' = no conversion.",
      "title": "Timezone"
    },
    "type": {
      "const": "time",
      "default": "time",
      "title": "Type",
      "type": "string"
    }
  },
  "required": [
    "field"
  ],
  "title": "TimeSignalRef",
  "type": "object"
}
