{
  "kind": "illustrative",
  "description": "Every close is 100. Once an old high of 120 leaves the five-bar range, raw %K rises even though the close stays flat.",
  "precision": 2,
  "source": {
    "label": "Constructed five-bar range example",
    "note": "One high of 120 followed by highs of 101; all lows 99 and closes 100. Smoothing uses a three-observation arithmetic mean."
  },
  "x": [
    "Candle 1",
    "Candle 2",
    "Candle 3",
    "Candle 4",
    "Candle 5",
    "Candle 6",
    "Candle 7",
    "Candle 8",
    "Candle 9",
    "Candle 10",
    "Candle 11",
    "Candle 12",
    "Candle 13",
    "Candle 14"
  ],
  "panels": [
    {
      "label": "Price and five-bar highest high",
      "series": [
        {
          "id": "close",
          "label": "Unchanged close",
          "color": "price",
          "values": [
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100,
            100
          ]
        },
        {
          "id": "high",
          "label": "Highest high",
          "color": "amber",
          "values": [
            null,
            null,
            null,
            null,
            120,
            101,
            101,
            101,
            101,
            101,
            101,
            101,
            101,
            101
          ]
        }
      ]
    },
    {
      "label": "Stochastic",
      "domain": [
        0,
        100
      ],
      "guides": [
        {
          "value": 20,
          "label": "20"
        },
        {
          "value": 80,
          "label": "80"
        }
      ],
      "series": [
        {
          "id": "raw",
          "label": "Raw %K",
          "color": "blue",
          "values": [
            null,
            null,
            null,
            null,
            4.761904761904762,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0
          ]
        },
        {
          "id": "smooth",
          "label": "Three-bar %K",
          "color": "purple",
          "values": [
            null,
            null,
            null,
            null,
            null,
            null,
            34.92063492063492,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0,
            50.0
          ]
        }
      ]
    }
  ],
  "annotations": [
    {
      "index": 4,
      "title": "Old high remains",
      "text": "Close 100, highest high 120, lowest low 99: raw %K is 4.76."
    },
    {
      "index": 5,
      "title": "Old high expires",
      "text": "Close is still 100, but the range top falls to 101. Raw %K becomes 50; the close has not risen."
    },
    {
      "index": 7,
      "title": "Smoothing catches up",
      "text": "The three-bar average reaches 50 only after three new raw readings. Smoothing changes timing, not the unchanged closes."
    }
  ]
}
