{
  "$defs": {
    "AtValueRef": {
      "additionalProperties": false,
      "description": "Bind a market subtree to one frame and/or instrument.\n\nFor example, at(5m, close \u2212 ema20) binds both leaves to completed 5m bars.\nUse one at with untagged or agreeing leaves. Nested at and contradictory\nroutes are refused: remove the inner at, or route its leaves explicitly.\nA non-native frame also refuses every bound leaf whose schema disallows\nresolution, with that leaf's reason and path; at grants no new capability.\nCombining an explicit symbol route with a non-native frame is refused.\nUse the symbol on the strategy frame, or run the strategy on that instrument\nand bind a higher frame without an explicit symbol route.",
      "examples": [
        {
          "kind": "at",
          "resolution": "5m",
          "source": {
            "kind": "binary_expr",
            "left": {
              "field": "close",
              "kind": "price"
            },
            "op": "-",
            "right": {
              "indicator": "ema",
              "kind": "indicator",
              "period": 20
            }
          }
        }
      ],
      "properties": {
        "kind": {
          "const": "at",
          "default": "at",
          "title": "Kind",
          "type": "string"
        },
        "resolution": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/Timeframe"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Frame bound to the market subtree's unrouted leaves; omitted means the strategy frame."
        },
        "source": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/ValueRef"
            },
            {
              "type": "number"
            }
          ],
          "description": "Market subtree to bind, such as close minus ema20; windows inherit the bound source frame."
        },
        "symbol": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Instrument bound to the market subtree's unrouted leaves; omitted means the traded instrument. Provider restrictions still apply.",
          "title": "Symbol"
        }
      },
      "required": [
        "source"
      ],
      "title": "AtValueRef",
      "type": "object"
    }
  },
  "$ref": "#/$defs/AtValueRef"
}
