[{"data":1,"prerenderedAt":6820},["ShallowReactive",2],{"indicators:cookbook/zone-tracker":3},{"slug":4,"filePath":5,"frontmatter":6,"rawMarkdown":11,"tree":12},"cookbook/zone-tracker","cookbook/zone-tracker.md",{"title":7,"description":8,"order":9,"section":10},"Zone Tracker","Supply and demand zones drawn as boxes that switch themselves off when price mitigates them, with a live count of the zones still active. The kScript (legacy)…",62,"cookbook","---\ntitle: \"Zone Tracker\"\ndescription: \"Supply and demand zones drawn as boxes that switch themselves off when price mitigates them, with a live count of the zones still active. The kScript (legacy)…\"\norder: 62\nsection: \"cookbook\"\n---\n\n\u003C!-- source: docs/indicators/cookbook/zone-tracker.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit -->\n\n# Zone Tracker\n\nSupply and demand zones drawn as boxes that switch themselves off when price mitigates them, with a live count of the zones still active. The kScript (legacy) recipe and the Indicator it became, side by side.\n\nSupply and demand zones are price areas where a strong move began. They stay interesting until price trades back through them, at which point they are mitigated and no longer matter. Tracking them by hand means juggling a list of rectangles and remembering to remove each one when it gets invalidated. This recipe does it for you: it finds zones at confirmed pivots, draws each one as a box, and switches the box off the moment price mitigates the zone. It is a tour of the Indicator drawing model working against a kScript that leaned on everything an Indicator does differently: typed structs, a persisted collection, and drawings that delete themselves.\n\n## The kScript (legacy) recipe\n\n```javascript\n//@version=2\n// ============================================================================\n//  SUPPLY/DEMAND ZONE TRACKER  (v3 only)\n//  Pure v3 stack in ~50 lines: typed structs + top-level funcs hold zone state\n//  across bars, timestamp-based drawing handles paint live boxes that DELETE THEMSELVES when\n//  price mitigates the zone, and a table reports the survivors. v2 had no\n//  types, no persistent collections, no drawings, no tables.\n// ============================================================================\ndefine(title=\"Zone Tracker (structs + drawings)\", position=\"onchart\", axis=false);\n\nvar lookback = input(name=\"lookback\", type=\"number\", defaultValue=20, label=\"Pivot Lookback\", constraints={min: 5, max: 100, step: 1});\nvar maxZones = input(name=\"maxZones\", type=\"number\", defaultValue=6, label=\"Max Active Zones\", constraints={min: 1, max: 12, step: 1});\nvar supCol   = input(name=\"supCol\", type=\"color\", defaultValue=\"#22d3a5\", label=\"Demand\");\nvar resCol   = input(name=\"resCol\", type=\"color\", defaultValue=\"#ff5b7f\", label=\"Supply\");\n\ntimeseries d = ohlcv(symbol=currentSymbol, exchange=currentExchange);\n\n// A data-only type: state shaped like the problem.\ntype Zone {\n  top: number,\n  bottom: number,\n  isDemand: boolean,\n  bornBar: number,\n  handle: any\n}\n\nfunc isZoneMitigated(z, price) {\n  if (z.isDemand) {\n    return price \u003C z.bottom;\n  }\n  return price > z.top;\n}\n\npersist zones = [];\n\n// New pivot -> new zone with its own live box drawing.\ntimeseries hi = highest(d.high, lookback);\ntimeseries lo = lowest(d.low, lookback);\nvar isPivotHigh = isnum(hi[1]) && d.high[1] >= hi[1] && d.high[0] \u003C d.high[1];\nvar isPivotLow  = isnum(lo[1]) && d.low[1] \u003C= lo[1] && d.low[0] > d.low[1];\n\nif (isPivotHigh && zones.length \u003C maxZones) {\n  var zTop = d.high[1];\n  var zBot = math.max(d.open[1], d.close[1]);\n  var b = box.new(d.time[1], zTop, d.time[0] + currentInterval * 40, zBot, { color: opacity(resCol, 18), borderColor: resCol });\n  zones.push(Zone.new(top=zTop, bottom=zBot, isDemand=false, bornBar=barIndex, handle=b));\n}\nif (isPivotLow && zones.length \u003C maxZones) {\n  var zTop2 = math.min(d.open[1], d.close[1]);\n  var zBot2 = d.low[1];\n  var b2 = box.new(d.time[1], zTop2, d.time[0] + currentInterval * 40, zBot2, { color: opacity(supCol, 18), borderColor: supCol });\n  zones.push(Zone.new(top=zTop2, bottom=zBot2, isDemand=true, bornBar=barIndex, handle=b2));\n}\n\n// Mitigated zones remove their own drawing and leave the collection.\nvar survivors = [];\nfor (var i = 0; i \u003C zones.length; i = i + 1) {\n  var z = zones[i];\n  if (isZoneMitigated(z, d.close[0])) {\n    z.handle.delete();\n  } else {\n    survivors.push(z);\n  }\n}\nzones = survivors;\n\n// Live dashboard on the last bar.\nif (isLastBar) {\n  var rows = [[\"Zone Tracker\", \"\"], [\"Active zones\", \"\".concat(zones.length)]];\n  plotTable(data=rows, position=\"top_right\", headerRow=true, backgroundColor=\"#0d1117\", textColor=\"#e6edf3\", fontSize=11);\n}\n```\n\n## The Indicator\n\n```typescript\nimport { box, input, none, ohlcv, output, overlay, param } from \"./sdk/declare\";\nimport { in_close, in_high, in_low, in_open } from \"./gen/inputs\";\nimport {\n  emitRow,\n  out_active_zones,\n  out_demand_bottom,\n  out_demand_live,\n  out_demand_top,\n  out_supply_bottom,\n  out_supply_live,\n  out_supply_top,\n} from \"./gen/outputs\";\nimport { p_lookback } from \"./gen/params\";\n\nparam(\"lookback\", 20, { min: 5, max: 100, description: \"Bars a swing must dominate to count as a pivot\" });\ninput(\"open\", ohlcv.open);\ninput(\"high\", ohlcv.high);\ninput(\"low\", ohlcv.low);\ninput(\"close\", ohlcv.close);\nconst demandTop = output(\"demand_top\", none);\nconst demandBottom = output(\"demand_bottom\", none);\nconst demandLive = output(\"demand_live\", none);\nconst supplyTop = output(\"supply_top\", none);\nconst supplyBottom = output(\"supply_bottom\", none);\nconst supplyLive = output(\"supply_live\", none);\noutput(\"active_zones\", none, overlay, { description: \"Zones alive on this bar, 0 to 2\" });\n// One bar wide (from 0 to 0) on every bar the zone is alive: the bars tile into a band that starts\n// at the pivot and stops on the bar that mitigates it.\nbox(\"demand_zone\", { top: demandTop, bottom: demandBottom, when: demandLive, color: \"#22d3a5\", opacity: 0.18, borderWidth: 0 });\nbox(\"supply_zone\", { top: supplyTop, bottom: supplyBottom, when: supplyLive, color: \"#ff5b7f\", opacity: 0.18, borderWidth: 0 });\n\nconst MAX_LOOKBACK = 100;\nconst highs = new StaticArray\u003Cf64>(MAX_LOOKBACK);\nconst lows = new StaticArray\u003Cf64>(MAX_LOOKBACK);\nlet n: i32 = 20;\nlet cursor: i32 = 0;\nlet count: i32 = 0;\nlet windowHigh: f64 = NaN;\nlet windowLow: f64 = NaN;\nlet prevOpen: f64 = NaN;\nlet prevHigh: f64 = NaN;\nlet prevLow: f64 = NaN;\nlet prevClose: f64 = NaN;\nlet dTop: f64 = NaN;\nlet dBottom: f64 = NaN;\nlet dLive: f64 = 0.0;\nlet sTop: f64 = NaN;\nlet sBottom: f64 = NaN;\nlet sLive: f64 = 0.0;\n\nexport function init(): void {\n  n = i32(p_lookback());\n}\n\nexport function state(): i32 {\n  const open = in_open();\n  const high = in_high();\n  const low = in_low();\n  const close = in_close();\n  // A pivot is confirmed one bar after it prints: the previous bar led its window and this bar turned back.\n  const pivotHigh = !isNaN(windowHigh) && prevHigh >= windowHigh && high \u003C prevHigh;\n  const pivotLow = !isNaN(windowLow) && prevLow \u003C= windowLow && low > prevLow;\n  // One live zone per side: a new pivot is ignored while the side's zone is still alive.\n  if (pivotHigh && sLive == 0.0) {\n    sTop = prevHigh;\n    sBottom = Math.max(prevOpen, prevClose);\n    sLive = 1.0;\n  }\n  if (pivotLow && dLive == 0.0) {\n    dTop = Math.min(prevOpen, prevClose);\n    dBottom = prevLow;\n    dLive = 1.0;\n  }\n  // Mitigation: a close through the far edge retires the zone.\n  if (dLive == 1.0 && close \u003C dBottom) dLive = 0.0;\n  if (sLive == 1.0 && close > sTop) sLive = 0.0;\n  // Push this bar into the window and recompute the window extremes.\n  highs[cursor] = high;\n  lows[cursor] = low;\n  cursor = (cursor + 1) % n;\n  if (count \u003C n) count += 1;\n  windowHigh = NaN;\n  windowLow = NaN;\n  if (count == n) {\n    let h = -Infinity;\n    let l = Infinity;\n    for (let i = 0; i \u003C n; i++) {\n      if (highs[i] > h) h = highs[i];\n      if (lows[i] \u003C l) l = lows[i];\n    }\n    windowHigh = h;\n    windowLow = l;\n  }\n  prevOpen = open;\n  prevHigh = high;\n  prevLow = low;\n  prevClose = close;\n  return 1;\n}\n\nexport function finalize(): void {\n  out_demand_top(dTop);\n  out_demand_bottom(dBottom);\n  out_demand_live(dLive);\n  out_supply_top(sTop);\n  out_supply_bottom(sBottom);\n  out_supply_live(sLive);\n  out_active_zones(dLive + sLive);\n  emitRow();\n}\n\nexport function reset(): void {\n  cursor = 0;\n  count = 0;\n  windowHigh = NaN;\n  windowLow = NaN;\n  prevOpen = NaN;\n  prevHigh = NaN;\n  prevLow = NaN;\n  prevClose = NaN;\n  dTop = NaN;\n  dBottom = NaN;\n  dLive = 0.0;\n  sTop = NaN;\n  sBottom = NaN;\n  sLive = 0.0;\n}\n```\n\n## How it works\n\n**State shaped like the problem.** Each side has three numbers: the zone's top, its bottom, and whether it is alive. They are outputs, so the sheet can draw from them, and they are module-level variables, so they survive from bar to bar. The kScript bundled the same facts into a `Zone` struct; the Indicator spreads them over named outputs because the box has to read them by name.\n\n**Birth.** `highest` and `lowest` over the lookback window are a ring buffer of highs and lows plus a scan: the two `StaticArray\u003Cf64>` buffers are allocated once, at module start, sized from the param's `max`, and `cursor` walks them. A pivot is confirmed one bar after it prints: the previous bar led its window and the current bar turned back. When a pivot fires and that side has no live zone, the zone takes its bounds from the pivot bar's body and wick and its `live` flag flips to `1`.\n\n**Death is a gate turning off.** Every bar checks whether the close went through the zone's far edge. A mitigated zone sets `live` to `0`, and the box's `when` gate stops drawing from that bar on. Nothing is deleted: the bars the zone was alive on keep their slices, which is exactly the history a kScript box erased when it called `delete()`.\n\n**The box.** `box(\"demand_zone\", ...)` with `from` and `to` at `0` draws one bar-wide slice on every bar where `demand_live` is `1`; the slices tile into a band that starts at the pivot and ends on the mitigation bar. `borderWidth: 0` keeps the slices seamless. The coordinates are output handles bound to consts, which is how a box names an output.\n\n**The dashboard.** `active_zones` is `demand_live + supply_live`, a data-only count on every bar. The kScript printed it once, in a table; here it is a metric you can read back or watch.\n\n## What changed in the port\n\n- `persist zones = []` and `box.new(...).delete()` became a fixed set of declared boxes gated per bar. There is no handle to a drawn shape and no collection of them; what a bar draws is decided on that bar ([Drawing objects](../functions/drawing-objects.md)). That is why this port keeps one zone per side, the kScript with `maxZones = 1` per side. More zones are more declared boxes, up to 16 per sheet.\n- A mitigated zone stays visible on the bars it was alive on. If you want a zone to vanish from history the way `delete()` did, kScript (legacy) is the engine for that script.\n- The `Zone` type and `isZoneMitigated` became module-level variables and two `if` lines. An AssemblyScript `class` would carry the same fields ([User-defined types](../core-concepts/user-defined-types.md)); the outputs are the reason the flat form is simpler here.\n- The active-zone table became `active_zones`, a data-only count. It is a metric, so a watch can fire when it changes.\n\n## Customize it\n\n- **Zone frequency.** `lookback` controls how significant a swing must be to spawn a zone. A small value (10) marks many minor pivots, a large one (50) keeps only major swing points. This is the main dial between \"lots of zones\" and \"only the big ones\".\n- **Mitigation rule.** Right now a single close beyond the zone mitigates it. For a stricter definition, require the close to pass fully through to the far edge, or two consecutive closes, by adding a counter beside each `live` flag.\n- **Zone thickness.** The bounds come from the pivot bar's body (`open`/`close`) and wick (`high`/`low`). Use the full candle range for thicker zones by reading `prevHigh` and `prevLow` for both edges, or the body only for tighter ones.\n- **More zones.** Duplicate the three outputs and the box per extra slot and fill the first free slot at each pivot; 16 boxes per sheet is the ceiling.\n- **Alert on a mitigation.** Publish, install, and watch `active_zones` crossing below `1`: it fires on the bar a zone dies.\n\n```bash\nom watch create \"Zone died\" --condition '{\"metric\":\"wrun/@you/zone-tracker/active_zones\",\"selector\":{\"exchange\":\"BINANCE_FUTURES\",\"symbol\":\"BTCUSDT\",\"interval\":\"HOUR\"},\"op\":\"crosses_below\",\"value\":1}'\n```\n\n## Concepts used\n\n- [Collections](../core-concepts/collections.md) for the `StaticArray` ring buffers sized from a param's `max`\n- [Series functions](../functions/series-functions.md) for `highest` and `lowest` as a window scan\n- [Drawing objects](../functions/drawing-objects.md) for boxes with a `when` gate and why nothing is deleted\n- [User-defined types](../core-concepts/user-defined-types.md) for the `class` a struct becomes when you want one\n- [Core variables](../core-concepts/core-variables.md) for the module-level state that `reset()` restores\n",{"type":13,"children":14,"data":6813,"position":6815},"root",[15,25,28,29,46,47,62,63,82,83,2168,2169,2186,2187,5212,5213,5230,5231,5284,5285,5451,5452,5556,5557,5720,5721,5788,5789,5806,5807,6096,6097,6113,6114,6469,6470,6511,6512,6528,6529],{"type":16,"value":17,"position":18},"comment"," source: docs/indicators/cookbook/zone-tracker.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit ",{"start":19,"end":22},{"line":20,"column":20,"offset":21},1,0,{"line":20,"column":23,"offset":24},128,127,{"type":26,"value":27},"text","\n",{"type":26,"value":27},{"type":30,"tagName":31,"properties":32,"children":33,"position":43},"element","p",{},[34],{"type":26,"value":35,"position":36},"Supply and demand zones drawn as boxes that switch themselves off when price mitigates them, with a live count of the zones still active. The kScript (legacy) recipe and the Indicator it became, side by side.",{"start":37,"end":40},{"line":38,"column":20,"offset":39},5,145,{"line":38,"column":41,"offset":42},209,353,{"start":44,"end":45},{"line":38,"column":20,"offset":39},{"line":38,"column":41,"offset":42},{"type":26,"value":27},{"type":30,"tagName":31,"properties":48,"children":49,"position":59},{},[50],{"type":26,"value":51,"position":52},"Supply and demand zones are price areas where a strong move began. They stay interesting until price trades back through them, at which point they are mitigated and no longer matter. Tracking them by hand means juggling a list of rectangles and remembering to remove each one when it gets invalidated. This recipe does it for you: it finds zones at confirmed pivots, draws each one as a box, and switches the box off the moment price mitigates the zone. It is a tour of the Indicator drawing model working against a kScript that leaned on everything an Indicator does differently: typed structs, a persisted collection, and drawings that delete themselves.",{"start":53,"end":56},{"line":54,"column":20,"offset":55},7,355,{"line":54,"column":57,"offset":58},657,1011,{"start":60,"end":61},{"line":54,"column":20,"offset":55},{"line":54,"column":57,"offset":58},{"type":26,"value":27},{"type":30,"tagName":64,"properties":65,"children":67,"position":78},"h2",{"id":66},"the-kscript-legacy-recipe",[68],{"type":26,"value":69,"position":70},"The kScript (legacy) recipe",{"start":71,"end":75},{"line":72,"column":73,"offset":74},9,4,1016,{"line":72,"column":76,"offset":77},31,1043,{"start":79,"end":81},{"line":72,"column":20,"offset":80},1013,{"line":72,"column":76,"offset":77},{"type":26,"value":27},{"type":13,"children":84},[85],{"type":30,"tagName":86,"properties":87,"children":91,"data":-1},"pre",{"class":88,"style":89,"tabindex":90},"shiki shiki-themes github-dark github-light","--shiki-dark:#e1e4e8;--shiki-light:#24292e;--shiki-dark-bg:#24292e;--shiki-light-bg:#fff","0",[92],{"type":30,"tagName":93,"properties":94,"children":95},"code",{},[96,107,108,116,117,125,126,134,135,143,144,152,153,161,162,169,170,231,232,235,236,358,359,467,468,544,545,620,621,624,625,665,666,669,670,678,679,697,698,706,707,715,716,724,725,733,734,742,743,751,752,755,756,774,775,788,789,812,813,821,822,844,845,852,853,856,857,874,875,878,879,887,888,910,911,933,934,1039,1040,1140,1141,1144,1145,1182,1183,1212,1213,1262,1263,1356,1357,1433,1434,1441,1442,1474,1475,1520,1521,1549,1550,1634,1635,1706,1707,1714,1715,1718,1719,1727,1728,1748,1749,1823,1824,1845,1846,1875,1876,1894,1895,1912,1913,1930,1931,1938,1939,1946,1947,1964,1965,1968,1969,1977,1978,1990,1991,2069,2070,2160,2161],{"type":30,"tagName":97,"properties":98,"children":100},"span",{"class":99},"line",[101],{"type":30,"tagName":97,"properties":102,"children":104},{"style":103},"--shiki-dark:#6A737D;--shiki-light:#6A737D",[105],{"type":26,"value":106},"//@version=2",{"type":26,"value":27},{"type":30,"tagName":97,"properties":109,"children":110},{"class":99},[111],{"type":30,"tagName":97,"properties":112,"children":113},{"style":103},[114],{"type":26,"value":115},"// ============================================================================",{"type":26,"value":27},{"type":30,"tagName":97,"properties":118,"children":119},{"class":99},[120],{"type":30,"tagName":97,"properties":121,"children":122},{"style":103},[123],{"type":26,"value":124},"//  SUPPLY/DEMAND ZONE TRACKER  (v3 only)",{"type":26,"value":27},{"type":30,"tagName":97,"properties":127,"children":128},{"class":99},[129],{"type":30,"tagName":97,"properties":130,"children":131},{"style":103},[132],{"type":26,"value":133},"//  Pure v3 stack in ~50 lines: typed structs + top-level funcs hold zone state",{"type":26,"value":27},{"type":30,"tagName":97,"properties":136,"children":137},{"class":99},[138],{"type":30,"tagName":97,"properties":139,"children":140},{"style":103},[141],{"type":26,"value":142},"//  across bars, timestamp-based drawing handles paint live boxes that DELETE THEMSELVES when",{"type":26,"value":27},{"type":30,"tagName":97,"properties":145,"children":146},{"class":99},[147],{"type":30,"tagName":97,"properties":148,"children":149},{"style":103},[150],{"type":26,"value":151},"//  price mitigates the zone, and a table reports the survivors. v2 had no",{"type":26,"value":27},{"type":30,"tagName":97,"properties":154,"children":155},{"class":99},[156],{"type":30,"tagName":97,"properties":157,"children":158},{"style":103},[159],{"type":26,"value":160},"//  types, no persistent collections, no drawings, no tables.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":163,"children":164},{"class":99},[165],{"type":30,"tagName":97,"properties":166,"children":167},{"style":103},[168],{"type":26,"value":115},{"type":26,"value":27},{"type":30,"tagName":97,"properties":171,"children":172},{"class":99},[173,179,185,191,197,202,206,211,216,220,226],{"type":30,"tagName":97,"properties":174,"children":176},{"style":175},"--shiki-dark:#B392F0;--shiki-light:#6F42C1",[177],{"type":26,"value":178},"define",{"type":30,"tagName":97,"properties":180,"children":182},{"style":181},"--shiki-dark:#E1E4E8;--shiki-light:#24292E",[183],{"type":26,"value":184},"(title",{"type":30,"tagName":97,"properties":186,"children":188},{"style":187},"--shiki-dark:#F97583;--shiki-light:#D73A49",[189],{"type":26,"value":190},"=",{"type":30,"tagName":97,"properties":192,"children":194},{"style":193},"--shiki-dark:#9ECBFF;--shiki-light:#032F62",[195],{"type":26,"value":196},"\"Zone Tracker (structs + drawings)\"",{"type":30,"tagName":97,"properties":198,"children":199},{"style":181},[200],{"type":26,"value":201},", position",{"type":30,"tagName":97,"properties":203,"children":204},{"style":187},[205],{"type":26,"value":190},{"type":30,"tagName":97,"properties":207,"children":208},{"style":193},[209],{"type":26,"value":210},"\"onchart\"",{"type":30,"tagName":97,"properties":212,"children":213},{"style":181},[214],{"type":26,"value":215},", axis",{"type":30,"tagName":97,"properties":217,"children":218},{"style":187},[219],{"type":26,"value":190},{"type":30,"tagName":97,"properties":221,"children":223},{"style":222},"--shiki-dark:#79B8FF;--shiki-light:#005CC5",[224],{"type":26,"value":225},"false",{"type":30,"tagName":97,"properties":227,"children":228},{"style":181},[229],{"type":26,"value":230},");",{"type":26,"value":27},{"type":30,"tagName":97,"properties":233,"children":234},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":237,"children":238},{"class":99},[239,244,249,253,258,263,267,272,277,281,286,291,295,300,305,309,314,319,323,328,333,338,343,348,353],{"type":30,"tagName":97,"properties":240,"children":241},{"style":187},[242],{"type":26,"value":243},"var",{"type":30,"tagName":97,"properties":245,"children":246},{"style":181},[247],{"type":26,"value":248}," lookback ",{"type":30,"tagName":97,"properties":250,"children":251},{"style":187},[252],{"type":26,"value":190},{"type":30,"tagName":97,"properties":254,"children":255},{"style":175},[256],{"type":26,"value":257}," input",{"type":30,"tagName":97,"properties":259,"children":260},{"style":181},[261],{"type":26,"value":262},"(name",{"type":30,"tagName":97,"properties":264,"children":265},{"style":187},[266],{"type":26,"value":190},{"type":30,"tagName":97,"properties":268,"children":269},{"style":193},[270],{"type":26,"value":271},"\"lookback\"",{"type":30,"tagName":97,"properties":273,"children":274},{"style":181},[275],{"type":26,"value":276},", type",{"type":30,"tagName":97,"properties":278,"children":279},{"style":187},[280],{"type":26,"value":190},{"type":30,"tagName":97,"properties":282,"children":283},{"style":193},[284],{"type":26,"value":285},"\"number\"",{"type":30,"tagName":97,"properties":287,"children":288},{"style":181},[289],{"type":26,"value":290},", defaultValue",{"type":30,"tagName":97,"properties":292,"children":293},{"style":187},[294],{"type":26,"value":190},{"type":30,"tagName":97,"properties":296,"children":297},{"style":222},[298],{"type":26,"value":299},"20",{"type":30,"tagName":97,"properties":301,"children":302},{"style":181},[303],{"type":26,"value":304},", label",{"type":30,"tagName":97,"properties":306,"children":307},{"style":187},[308],{"type":26,"value":190},{"type":30,"tagName":97,"properties":310,"children":311},{"style":193},[312],{"type":26,"value":313},"\"Pivot Lookback\"",{"type":30,"tagName":97,"properties":315,"children":316},{"style":181},[317],{"type":26,"value":318},", constraints",{"type":30,"tagName":97,"properties":320,"children":321},{"style":187},[322],{"type":26,"value":190},{"type":30,"tagName":97,"properties":324,"children":325},{"style":181},[326],{"type":26,"value":327},"{min: ",{"type":30,"tagName":97,"properties":329,"children":330},{"style":222},[331],{"type":26,"value":332},"5",{"type":30,"tagName":97,"properties":334,"children":335},{"style":181},[336],{"type":26,"value":337},", max: ",{"type":30,"tagName":97,"properties":339,"children":340},{"style":222},[341],{"type":26,"value":342},"100",{"type":30,"tagName":97,"properties":344,"children":345},{"style":181},[346],{"type":26,"value":347},", step: ",{"type":30,"tagName":97,"properties":349,"children":350},{"style":222},[351],{"type":26,"value":352},"1",{"type":30,"tagName":97,"properties":354,"children":355},{"style":181},[356],{"type":26,"value":357},"});",{"type":26,"value":27},{"type":30,"tagName":97,"properties":360,"children":361},{"class":99},[362,366,371,375,379,383,387,392,396,400,404,408,412,417,421,425,430,434,438,442,446,450,455,459,463],{"type":30,"tagName":97,"properties":363,"children":364},{"style":187},[365],{"type":26,"value":243},{"type":30,"tagName":97,"properties":367,"children":368},{"style":181},[369],{"type":26,"value":370}," maxZones ",{"type":30,"tagName":97,"properties":372,"children":373},{"style":187},[374],{"type":26,"value":190},{"type":30,"tagName":97,"properties":376,"children":377},{"style":175},[378],{"type":26,"value":257},{"type":30,"tagName":97,"properties":380,"children":381},{"style":181},[382],{"type":26,"value":262},{"type":30,"tagName":97,"properties":384,"children":385},{"style":187},[386],{"type":26,"value":190},{"type":30,"tagName":97,"properties":388,"children":389},{"style":193},[390],{"type":26,"value":391},"\"maxZones\"",{"type":30,"tagName":97,"properties":393,"children":394},{"style":181},[395],{"type":26,"value":276},{"type":30,"tagName":97,"properties":397,"children":398},{"style":187},[399],{"type":26,"value":190},{"type":30,"tagName":97,"properties":401,"children":402},{"style":193},[403],{"type":26,"value":285},{"type":30,"tagName":97,"properties":405,"children":406},{"style":181},[407],{"type":26,"value":290},{"type":30,"tagName":97,"properties":409,"children":410},{"style":187},[411],{"type":26,"value":190},{"type":30,"tagName":97,"properties":413,"children":414},{"style":222},[415],{"type":26,"value":416},"6",{"type":30,"tagName":97,"properties":418,"children":419},{"style":181},[420],{"type":26,"value":304},{"type":30,"tagName":97,"properties":422,"children":423},{"style":187},[424],{"type":26,"value":190},{"type":30,"tagName":97,"properties":426,"children":427},{"style":193},[428],{"type":26,"value":429},"\"Max Active Zones\"",{"type":30,"tagName":97,"properties":431,"children":432},{"style":181},[433],{"type":26,"value":318},{"type":30,"tagName":97,"properties":435,"children":436},{"style":187},[437],{"type":26,"value":190},{"type":30,"tagName":97,"properties":439,"children":440},{"style":181},[441],{"type":26,"value":327},{"type":30,"tagName":97,"properties":443,"children":444},{"style":222},[445],{"type":26,"value":352},{"type":30,"tagName":97,"properties":447,"children":448},{"style":181},[449],{"type":26,"value":337},{"type":30,"tagName":97,"properties":451,"children":452},{"style":222},[453],{"type":26,"value":454},"12",{"type":30,"tagName":97,"properties":456,"children":457},{"style":181},[458],{"type":26,"value":347},{"type":30,"tagName":97,"properties":460,"children":461},{"style":222},[462],{"type":26,"value":352},{"type":30,"tagName":97,"properties":464,"children":465},{"style":181},[466],{"type":26,"value":357},{"type":26,"value":27},{"type":30,"tagName":97,"properties":469,"children":470},{"class":99},[471,475,480,484,488,492,496,501,505,509,514,518,522,527,531,535,540],{"type":30,"tagName":97,"properties":472,"children":473},{"style":187},[474],{"type":26,"value":243},{"type":30,"tagName":97,"properties":476,"children":477},{"style":181},[478],{"type":26,"value":479}," supCol   ",{"type":30,"tagName":97,"properties":481,"children":482},{"style":187},[483],{"type":26,"value":190},{"type":30,"tagName":97,"properties":485,"children":486},{"style":175},[487],{"type":26,"value":257},{"type":30,"tagName":97,"properties":489,"children":490},{"style":181},[491],{"type":26,"value":262},{"type":30,"tagName":97,"properties":493,"children":494},{"style":187},[495],{"type":26,"value":190},{"type":30,"tagName":97,"properties":497,"children":498},{"style":193},[499],{"type":26,"value":500},"\"supCol\"",{"type":30,"tagName":97,"properties":502,"children":503},{"style":181},[504],{"type":26,"value":276},{"type":30,"tagName":97,"properties":506,"children":507},{"style":187},[508],{"type":26,"value":190},{"type":30,"tagName":97,"properties":510,"children":511},{"style":193},[512],{"type":26,"value":513},"\"color\"",{"type":30,"tagName":97,"properties":515,"children":516},{"style":181},[517],{"type":26,"value":290},{"type":30,"tagName":97,"properties":519,"children":520},{"style":187},[521],{"type":26,"value":190},{"type":30,"tagName":97,"properties":523,"children":524},{"style":193},[525],{"type":26,"value":526},"\"#22d3a5\"",{"type":30,"tagName":97,"properties":528,"children":529},{"style":181},[530],{"type":26,"value":304},{"type":30,"tagName":97,"properties":532,"children":533},{"style":187},[534],{"type":26,"value":190},{"type":30,"tagName":97,"properties":536,"children":537},{"style":193},[538],{"type":26,"value":539},"\"Demand\"",{"type":30,"tagName":97,"properties":541,"children":542},{"style":181},[543],{"type":26,"value":230},{"type":26,"value":27},{"type":30,"tagName":97,"properties":546,"children":547},{"class":99},[548,552,557,561,565,569,573,578,582,586,590,594,598,603,607,611,616],{"type":30,"tagName":97,"properties":549,"children":550},{"style":187},[551],{"type":26,"value":243},{"type":30,"tagName":97,"properties":553,"children":554},{"style":181},[555],{"type":26,"value":556}," resCol   ",{"type":30,"tagName":97,"properties":558,"children":559},{"style":187},[560],{"type":26,"value":190},{"type":30,"tagName":97,"properties":562,"children":563},{"style":175},[564],{"type":26,"value":257},{"type":30,"tagName":97,"properties":566,"children":567},{"style":181},[568],{"type":26,"value":262},{"type":30,"tagName":97,"properties":570,"children":571},{"style":187},[572],{"type":26,"value":190},{"type":30,"tagName":97,"properties":574,"children":575},{"style":193},[576],{"type":26,"value":577},"\"resCol\"",{"type":30,"tagName":97,"properties":579,"children":580},{"style":181},[581],{"type":26,"value":276},{"type":30,"tagName":97,"properties":583,"children":584},{"style":187},[585],{"type":26,"value":190},{"type":30,"tagName":97,"properties":587,"children":588},{"style":193},[589],{"type":26,"value":513},{"type":30,"tagName":97,"properties":591,"children":592},{"style":181},[593],{"type":26,"value":290},{"type":30,"tagName":97,"properties":595,"children":596},{"style":187},[597],{"type":26,"value":190},{"type":30,"tagName":97,"properties":599,"children":600},{"style":193},[601],{"type":26,"value":602},"\"#ff5b7f\"",{"type":30,"tagName":97,"properties":604,"children":605},{"style":181},[606],{"type":26,"value":304},{"type":30,"tagName":97,"properties":608,"children":609},{"style":187},[610],{"type":26,"value":190},{"type":30,"tagName":97,"properties":612,"children":613},{"style":193},[614],{"type":26,"value":615},"\"Supply\"",{"type":30,"tagName":97,"properties":617,"children":618},{"style":181},[619],{"type":26,"value":230},{"type":26,"value":27},{"type":30,"tagName":97,"properties":622,"children":623},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":626,"children":627},{"class":99},[628,633,637,642,647,651,656,660],{"type":30,"tagName":97,"properties":629,"children":630},{"style":181},[631],{"type":26,"value":632},"timeseries d ",{"type":30,"tagName":97,"properties":634,"children":635},{"style":187},[636],{"type":26,"value":190},{"type":30,"tagName":97,"properties":638,"children":639},{"style":175},[640],{"type":26,"value":641}," ohlcv",{"type":30,"tagName":97,"properties":643,"children":644},{"style":181},[645],{"type":26,"value":646},"(symbol",{"type":30,"tagName":97,"properties":648,"children":649},{"style":187},[650],{"type":26,"value":190},{"type":30,"tagName":97,"properties":652,"children":653},{"style":181},[654],{"type":26,"value":655},"currentSymbol, exchange",{"type":30,"tagName":97,"properties":657,"children":658},{"style":187},[659],{"type":26,"value":190},{"type":30,"tagName":97,"properties":661,"children":662},{"style":181},[663],{"type":26,"value":664},"currentExchange);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":667,"children":668},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":671,"children":672},{"class":99},[673],{"type":30,"tagName":97,"properties":674,"children":675},{"style":103},[676],{"type":26,"value":677},"// A data-only type: state shaped like the problem.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":680,"children":681},{"class":99},[682,687,692],{"type":30,"tagName":97,"properties":683,"children":684},{"style":187},[685],{"type":26,"value":686},"type",{"type":30,"tagName":97,"properties":688,"children":689},{"style":175},[690],{"type":26,"value":691}," Zone",{"type":30,"tagName":97,"properties":693,"children":694},{"style":181},[695],{"type":26,"value":696}," {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":699,"children":700},{"class":99},[701],{"type":30,"tagName":97,"properties":702,"children":703},{"style":181},[704],{"type":26,"value":705},"  top: number,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":708,"children":709},{"class":99},[710],{"type":30,"tagName":97,"properties":711,"children":712},{"style":181},[713],{"type":26,"value":714},"  bottom: number,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":717,"children":718},{"class":99},[719],{"type":30,"tagName":97,"properties":720,"children":721},{"style":181},[722],{"type":26,"value":723},"  isDemand: boolean,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":726,"children":727},{"class":99},[728],{"type":30,"tagName":97,"properties":729,"children":730},{"style":181},[731],{"type":26,"value":732},"  bornBar: number,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":735,"children":736},{"class":99},[737],{"type":30,"tagName":97,"properties":738,"children":739},{"style":181},[740],{"type":26,"value":741},"  handle: any",{"type":26,"value":27},{"type":30,"tagName":97,"properties":744,"children":745},{"class":99},[746],{"type":30,"tagName":97,"properties":747,"children":748},{"style":181},[749],{"type":26,"value":750},"}",{"type":26,"value":27},{"type":30,"tagName":97,"properties":753,"children":754},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":757,"children":758},{"class":99},[759,764,769],{"type":30,"tagName":97,"properties":760,"children":761},{"style":181},[762],{"type":26,"value":763},"func ",{"type":30,"tagName":97,"properties":765,"children":766},{"style":175},[767],{"type":26,"value":768},"isZoneMitigated",{"type":30,"tagName":97,"properties":770,"children":771},{"style":181},[772],{"type":26,"value":773},"(z, price) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":776,"children":777},{"class":99},[778,783],{"type":30,"tagName":97,"properties":779,"children":780},{"style":187},[781],{"type":26,"value":782},"  if",{"type":30,"tagName":97,"properties":784,"children":785},{"style":181},[786],{"type":26,"value":787}," (z.isDemand) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":790,"children":791},{"class":99},[792,797,802,807],{"type":30,"tagName":97,"properties":793,"children":794},{"style":187},[795],{"type":26,"value":796},"    return",{"type":30,"tagName":97,"properties":798,"children":799},{"style":181},[800],{"type":26,"value":801}," price ",{"type":30,"tagName":97,"properties":803,"children":804},{"style":187},[805],{"type":26,"value":806},"\u003C",{"type":30,"tagName":97,"properties":808,"children":809},{"style":181},[810],{"type":26,"value":811}," z.bottom;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":814,"children":815},{"class":99},[816],{"type":30,"tagName":97,"properties":817,"children":818},{"style":181},[819],{"type":26,"value":820},"  }",{"type":26,"value":27},{"type":30,"tagName":97,"properties":823,"children":824},{"class":99},[825,830,834,839],{"type":30,"tagName":97,"properties":826,"children":827},{"style":187},[828],{"type":26,"value":829},"  return",{"type":30,"tagName":97,"properties":831,"children":832},{"style":181},[833],{"type":26,"value":801},{"type":30,"tagName":97,"properties":835,"children":836},{"style":187},[837],{"type":26,"value":838},">",{"type":30,"tagName":97,"properties":840,"children":841},{"style":181},[842],{"type":26,"value":843}," z.top;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":846,"children":847},{"class":99},[848],{"type":30,"tagName":97,"properties":849,"children":850},{"style":181},[851],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":854,"children":855},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":858,"children":859},{"class":99},[860,865,869],{"type":30,"tagName":97,"properties":861,"children":862},{"style":181},[863],{"type":26,"value":864},"persist zones ",{"type":30,"tagName":97,"properties":866,"children":867},{"style":187},[868],{"type":26,"value":190},{"type":30,"tagName":97,"properties":870,"children":871},{"style":181},[872],{"type":26,"value":873}," [];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":876,"children":877},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":880,"children":881},{"class":99},[882],{"type":30,"tagName":97,"properties":883,"children":884},{"style":103},[885],{"type":26,"value":886},"// New pivot -> new zone with its own live box drawing.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":889,"children":890},{"class":99},[891,896,900,905],{"type":30,"tagName":97,"properties":892,"children":893},{"style":181},[894],{"type":26,"value":895},"timeseries hi ",{"type":30,"tagName":97,"properties":897,"children":898},{"style":187},[899],{"type":26,"value":190},{"type":30,"tagName":97,"properties":901,"children":902},{"style":175},[903],{"type":26,"value":904}," highest",{"type":30,"tagName":97,"properties":906,"children":907},{"style":181},[908],{"type":26,"value":909},"(d.high, lookback);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":912,"children":913},{"class":99},[914,919,923,928],{"type":30,"tagName":97,"properties":915,"children":916},{"style":181},[917],{"type":26,"value":918},"timeseries lo ",{"type":30,"tagName":97,"properties":920,"children":921},{"style":187},[922],{"type":26,"value":190},{"type":30,"tagName":97,"properties":924,"children":925},{"style":175},[926],{"type":26,"value":927}," lowest",{"type":30,"tagName":97,"properties":929,"children":930},{"style":181},[931],{"type":26,"value":932},"(d.low, lookback);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":935,"children":936},{"class":99},[937,941,946,950,955,960,964,969,974,979,983,988,993,998,1002,1006,1010,1014,1018,1022,1026,1030,1034],{"type":30,"tagName":97,"properties":938,"children":939},{"style":187},[940],{"type":26,"value":243},{"type":30,"tagName":97,"properties":942,"children":943},{"style":181},[944],{"type":26,"value":945}," isPivotHigh ",{"type":30,"tagName":97,"properties":947,"children":948},{"style":187},[949],{"type":26,"value":190},{"type":30,"tagName":97,"properties":951,"children":952},{"style":175},[953],{"type":26,"value":954}," isnum",{"type":30,"tagName":97,"properties":956,"children":957},{"style":181},[958],{"type":26,"value":959},"(hi[",{"type":30,"tagName":97,"properties":961,"children":962},{"style":222},[963],{"type":26,"value":352},{"type":30,"tagName":97,"properties":965,"children":966},{"style":181},[967],{"type":26,"value":968},"]) ",{"type":30,"tagName":97,"properties":970,"children":971},{"style":187},[972],{"type":26,"value":973},"&&",{"type":30,"tagName":97,"properties":975,"children":976},{"style":181},[977],{"type":26,"value":978}," d.high[",{"type":30,"tagName":97,"properties":980,"children":981},{"style":222},[982],{"type":26,"value":352},{"type":30,"tagName":97,"properties":984,"children":985},{"style":181},[986],{"type":26,"value":987},"] ",{"type":30,"tagName":97,"properties":989,"children":990},{"style":187},[991],{"type":26,"value":992},">=",{"type":30,"tagName":97,"properties":994,"children":995},{"style":181},[996],{"type":26,"value":997}," hi[",{"type":30,"tagName":97,"properties":999,"children":1000},{"style":222},[1001],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1003,"children":1004},{"style":181},[1005],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1007,"children":1008},{"style":187},[1009],{"type":26,"value":973},{"type":30,"tagName":97,"properties":1011,"children":1012},{"style":181},[1013],{"type":26,"value":978},{"type":30,"tagName":97,"properties":1015,"children":1016},{"style":222},[1017],{"type":26,"value":90},{"type":30,"tagName":97,"properties":1019,"children":1020},{"style":181},[1021],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1023,"children":1024},{"style":187},[1025],{"type":26,"value":806},{"type":30,"tagName":97,"properties":1027,"children":1028},{"style":181},[1029],{"type":26,"value":978},{"type":30,"tagName":97,"properties":1031,"children":1032},{"style":222},[1033],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1035,"children":1036},{"style":181},[1037],{"type":26,"value":1038},"];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1041,"children":1042},{"class":99},[1043,1047,1052,1056,1060,1065,1069,1073,1077,1082,1086,1090,1095,1100,1104,1108,1112,1116,1120,1124,1128,1132,1136],{"type":30,"tagName":97,"properties":1044,"children":1045},{"style":187},[1046],{"type":26,"value":243},{"type":30,"tagName":97,"properties":1048,"children":1049},{"style":181},[1050],{"type":26,"value":1051}," isPivotLow  ",{"type":30,"tagName":97,"properties":1053,"children":1054},{"style":187},[1055],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1057,"children":1058},{"style":175},[1059],{"type":26,"value":954},{"type":30,"tagName":97,"properties":1061,"children":1062},{"style":181},[1063],{"type":26,"value":1064},"(lo[",{"type":30,"tagName":97,"properties":1066,"children":1067},{"style":222},[1068],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1070,"children":1071},{"style":181},[1072],{"type":26,"value":968},{"type":30,"tagName":97,"properties":1074,"children":1075},{"style":187},[1076],{"type":26,"value":973},{"type":30,"tagName":97,"properties":1078,"children":1079},{"style":181},[1080],{"type":26,"value":1081}," d.low[",{"type":30,"tagName":97,"properties":1083,"children":1084},{"style":222},[1085],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1087,"children":1088},{"style":181},[1089],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1091,"children":1092},{"style":187},[1093],{"type":26,"value":1094},"\u003C=",{"type":30,"tagName":97,"properties":1096,"children":1097},{"style":181},[1098],{"type":26,"value":1099}," lo[",{"type":30,"tagName":97,"properties":1101,"children":1102},{"style":222},[1103],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1105,"children":1106},{"style":181},[1107],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1109,"children":1110},{"style":187},[1111],{"type":26,"value":973},{"type":30,"tagName":97,"properties":1113,"children":1114},{"style":181},[1115],{"type":26,"value":1081},{"type":30,"tagName":97,"properties":1117,"children":1118},{"style":222},[1119],{"type":26,"value":90},{"type":30,"tagName":97,"properties":1121,"children":1122},{"style":181},[1123],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1125,"children":1126},{"style":187},[1127],{"type":26,"value":838},{"type":30,"tagName":97,"properties":1129,"children":1130},{"style":181},[1131],{"type":26,"value":1081},{"type":30,"tagName":97,"properties":1133,"children":1134},{"style":222},[1135],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1137,"children":1138},{"style":181},[1139],{"type":26,"value":1038},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1142,"children":1143},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":1146,"children":1147},{"class":99},[1148,1153,1158,1162,1167,1172,1177],{"type":30,"tagName":97,"properties":1149,"children":1150},{"style":187},[1151],{"type":26,"value":1152},"if",{"type":30,"tagName":97,"properties":1154,"children":1155},{"style":181},[1156],{"type":26,"value":1157}," (isPivotHigh ",{"type":30,"tagName":97,"properties":1159,"children":1160},{"style":187},[1161],{"type":26,"value":973},{"type":30,"tagName":97,"properties":1163,"children":1164},{"style":181},[1165],{"type":26,"value":1166}," zones.",{"type":30,"tagName":97,"properties":1168,"children":1169},{"style":222},[1170],{"type":26,"value":1171},"length",{"type":30,"tagName":97,"properties":1173,"children":1174},{"style":187},[1175],{"type":26,"value":1176}," \u003C",{"type":30,"tagName":97,"properties":1178,"children":1179},{"style":181},[1180],{"type":26,"value":1181}," maxZones) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1184,"children":1185},{"class":99},[1186,1191,1196,1200,1204,1208],{"type":30,"tagName":97,"properties":1187,"children":1188},{"style":187},[1189],{"type":26,"value":1190},"  var",{"type":30,"tagName":97,"properties":1192,"children":1193},{"style":181},[1194],{"type":26,"value":1195}," zTop ",{"type":30,"tagName":97,"properties":1197,"children":1198},{"style":187},[1199],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1201,"children":1202},{"style":181},[1203],{"type":26,"value":978},{"type":30,"tagName":97,"properties":1205,"children":1206},{"style":222},[1207],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1209,"children":1210},{"style":181},[1211],{"type":26,"value":1038},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1214,"children":1215},{"class":99},[1216,1220,1225,1229,1234,1239,1244,1248,1253,1257],{"type":30,"tagName":97,"properties":1217,"children":1218},{"style":187},[1219],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1221,"children":1222},{"style":181},[1223],{"type":26,"value":1224}," zBot ",{"type":30,"tagName":97,"properties":1226,"children":1227},{"style":187},[1228],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1230,"children":1231},{"style":181},[1232],{"type":26,"value":1233}," math.",{"type":30,"tagName":97,"properties":1235,"children":1236},{"style":175},[1237],{"type":26,"value":1238},"max",{"type":30,"tagName":97,"properties":1240,"children":1241},{"style":181},[1242],{"type":26,"value":1243},"(d.open[",{"type":30,"tagName":97,"properties":1245,"children":1246},{"style":222},[1247],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1249,"children":1250},{"style":181},[1251],{"type":26,"value":1252},"], d.close[",{"type":30,"tagName":97,"properties":1254,"children":1255},{"style":222},[1256],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1258,"children":1259},{"style":181},[1260],{"type":26,"value":1261},"]);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1264,"children":1265},{"class":99},[1266,1270,1275,1279,1284,1289,1294,1298,1303,1307,1311,1316,1321,1326,1331,1336,1341,1346,1351],{"type":30,"tagName":97,"properties":1267,"children":1268},{"style":187},[1269],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1271,"children":1272},{"style":181},[1273],{"type":26,"value":1274}," b ",{"type":30,"tagName":97,"properties":1276,"children":1277},{"style":187},[1278],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1280,"children":1281},{"style":181},[1282],{"type":26,"value":1283}," box.",{"type":30,"tagName":97,"properties":1285,"children":1286},{"style":175},[1287],{"type":26,"value":1288},"new",{"type":30,"tagName":97,"properties":1290,"children":1291},{"style":181},[1292],{"type":26,"value":1293},"(d.time[",{"type":30,"tagName":97,"properties":1295,"children":1296},{"style":222},[1297],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1299,"children":1300},{"style":181},[1301],{"type":26,"value":1302},"], zTop, d.time[",{"type":30,"tagName":97,"properties":1304,"children":1305},{"style":222},[1306],{"type":26,"value":90},{"type":30,"tagName":97,"properties":1308,"children":1309},{"style":181},[1310],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1312,"children":1313},{"style":187},[1314],{"type":26,"value":1315},"+",{"type":30,"tagName":97,"properties":1317,"children":1318},{"style":181},[1319],{"type":26,"value":1320}," currentInterval ",{"type":30,"tagName":97,"properties":1322,"children":1323},{"style":187},[1324],{"type":26,"value":1325},"*",{"type":30,"tagName":97,"properties":1327,"children":1328},{"style":222},[1329],{"type":26,"value":1330}," 40",{"type":30,"tagName":97,"properties":1332,"children":1333},{"style":181},[1334],{"type":26,"value":1335},", zBot, { color: ",{"type":30,"tagName":97,"properties":1337,"children":1338},{"style":175},[1339],{"type":26,"value":1340},"opacity",{"type":30,"tagName":97,"properties":1342,"children":1343},{"style":181},[1344],{"type":26,"value":1345},"(resCol, ",{"type":30,"tagName":97,"properties":1347,"children":1348},{"style":222},[1349],{"type":26,"value":1350},"18",{"type":30,"tagName":97,"properties":1352,"children":1353},{"style":181},[1354],{"type":26,"value":1355},"), borderColor: resCol });",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1358,"children":1359},{"class":99},[1360,1365,1370,1375,1379,1384,1388,1393,1397,1402,1406,1410,1415,1419,1424,1428],{"type":30,"tagName":97,"properties":1361,"children":1362},{"style":181},[1363],{"type":26,"value":1364},"  zones.",{"type":30,"tagName":97,"properties":1366,"children":1367},{"style":175},[1368],{"type":26,"value":1369},"push",{"type":30,"tagName":97,"properties":1371,"children":1372},{"style":181},[1373],{"type":26,"value":1374},"(Zone.",{"type":30,"tagName":97,"properties":1376,"children":1377},{"style":175},[1378],{"type":26,"value":1288},{"type":30,"tagName":97,"properties":1380,"children":1381},{"style":181},[1382],{"type":26,"value":1383},"(top",{"type":30,"tagName":97,"properties":1385,"children":1386},{"style":187},[1387],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1389,"children":1390},{"style":181},[1391],{"type":26,"value":1392},"zTop, bottom",{"type":30,"tagName":97,"properties":1394,"children":1395},{"style":187},[1396],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1398,"children":1399},{"style":181},[1400],{"type":26,"value":1401},"zBot, isDemand",{"type":30,"tagName":97,"properties":1403,"children":1404},{"style":187},[1405],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1407,"children":1408},{"style":222},[1409],{"type":26,"value":225},{"type":30,"tagName":97,"properties":1411,"children":1412},{"style":181},[1413],{"type":26,"value":1414},", bornBar",{"type":30,"tagName":97,"properties":1416,"children":1417},{"style":187},[1418],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1420,"children":1421},{"style":181},[1422],{"type":26,"value":1423},"barIndex, handle",{"type":30,"tagName":97,"properties":1425,"children":1426},{"style":187},[1427],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1429,"children":1430},{"style":181},[1431],{"type":26,"value":1432},"b));",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1435,"children":1436},{"class":99},[1437],{"type":30,"tagName":97,"properties":1438,"children":1439},{"style":181},[1440],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1443,"children":1444},{"class":99},[1445,1449,1454,1458,1462,1466,1470],{"type":30,"tagName":97,"properties":1446,"children":1447},{"style":187},[1448],{"type":26,"value":1152},{"type":30,"tagName":97,"properties":1450,"children":1451},{"style":181},[1452],{"type":26,"value":1453}," (isPivotLow ",{"type":30,"tagName":97,"properties":1455,"children":1456},{"style":187},[1457],{"type":26,"value":973},{"type":30,"tagName":97,"properties":1459,"children":1460},{"style":181},[1461],{"type":26,"value":1166},{"type":30,"tagName":97,"properties":1463,"children":1464},{"style":222},[1465],{"type":26,"value":1171},{"type":30,"tagName":97,"properties":1467,"children":1468},{"style":187},[1469],{"type":26,"value":1176},{"type":30,"tagName":97,"properties":1471,"children":1472},{"style":181},[1473],{"type":26,"value":1181},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1476,"children":1477},{"class":99},[1478,1482,1487,1491,1495,1500,1504,1508,1512,1516],{"type":30,"tagName":97,"properties":1479,"children":1480},{"style":187},[1481],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1483,"children":1484},{"style":181},[1485],{"type":26,"value":1486}," zTop2 ",{"type":30,"tagName":97,"properties":1488,"children":1489},{"style":187},[1490],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1492,"children":1493},{"style":181},[1494],{"type":26,"value":1233},{"type":30,"tagName":97,"properties":1496,"children":1497},{"style":175},[1498],{"type":26,"value":1499},"min",{"type":30,"tagName":97,"properties":1501,"children":1502},{"style":181},[1503],{"type":26,"value":1243},{"type":30,"tagName":97,"properties":1505,"children":1506},{"style":222},[1507],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1509,"children":1510},{"style":181},[1511],{"type":26,"value":1252},{"type":30,"tagName":97,"properties":1513,"children":1514},{"style":222},[1515],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1517,"children":1518},{"style":181},[1519],{"type":26,"value":1261},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1522,"children":1523},{"class":99},[1524,1528,1533,1537,1541,1545],{"type":30,"tagName":97,"properties":1525,"children":1526},{"style":187},[1527],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1529,"children":1530},{"style":181},[1531],{"type":26,"value":1532}," zBot2 ",{"type":30,"tagName":97,"properties":1534,"children":1535},{"style":187},[1536],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1538,"children":1539},{"style":181},[1540],{"type":26,"value":1081},{"type":30,"tagName":97,"properties":1542,"children":1543},{"style":222},[1544],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1546,"children":1547},{"style":181},[1548],{"type":26,"value":1038},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1551,"children":1552},{"class":99},[1553,1557,1562,1566,1570,1574,1578,1582,1587,1591,1595,1599,1603,1607,1611,1616,1620,1625,1629],{"type":30,"tagName":97,"properties":1554,"children":1555},{"style":187},[1556],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1558,"children":1559},{"style":181},[1560],{"type":26,"value":1561}," b2 ",{"type":30,"tagName":97,"properties":1563,"children":1564},{"style":187},[1565],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1567,"children":1568},{"style":181},[1569],{"type":26,"value":1283},{"type":30,"tagName":97,"properties":1571,"children":1572},{"style":175},[1573],{"type":26,"value":1288},{"type":30,"tagName":97,"properties":1575,"children":1576},{"style":181},[1577],{"type":26,"value":1293},{"type":30,"tagName":97,"properties":1579,"children":1580},{"style":222},[1581],{"type":26,"value":352},{"type":30,"tagName":97,"properties":1583,"children":1584},{"style":181},[1585],{"type":26,"value":1586},"], zTop2, d.time[",{"type":30,"tagName":97,"properties":1588,"children":1589},{"style":222},[1590],{"type":26,"value":90},{"type":30,"tagName":97,"properties":1592,"children":1593},{"style":181},[1594],{"type":26,"value":987},{"type":30,"tagName":97,"properties":1596,"children":1597},{"style":187},[1598],{"type":26,"value":1315},{"type":30,"tagName":97,"properties":1600,"children":1601},{"style":181},[1602],{"type":26,"value":1320},{"type":30,"tagName":97,"properties":1604,"children":1605},{"style":187},[1606],{"type":26,"value":1325},{"type":30,"tagName":97,"properties":1608,"children":1609},{"style":222},[1610],{"type":26,"value":1330},{"type":30,"tagName":97,"properties":1612,"children":1613},{"style":181},[1614],{"type":26,"value":1615},", zBot2, { color: ",{"type":30,"tagName":97,"properties":1617,"children":1618},{"style":175},[1619],{"type":26,"value":1340},{"type":30,"tagName":97,"properties":1621,"children":1622},{"style":181},[1623],{"type":26,"value":1624},"(supCol, ",{"type":30,"tagName":97,"properties":1626,"children":1627},{"style":222},[1628],{"type":26,"value":1350},{"type":30,"tagName":97,"properties":1630,"children":1631},{"style":181},[1632],{"type":26,"value":1633},"), borderColor: supCol });",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1636,"children":1637},{"class":99},[1638,1642,1646,1650,1654,1658,1662,1667,1671,1676,1680,1685,1689,1693,1697,1701],{"type":30,"tagName":97,"properties":1639,"children":1640},{"style":181},[1641],{"type":26,"value":1364},{"type":30,"tagName":97,"properties":1643,"children":1644},{"style":175},[1645],{"type":26,"value":1369},{"type":30,"tagName":97,"properties":1647,"children":1648},{"style":181},[1649],{"type":26,"value":1374},{"type":30,"tagName":97,"properties":1651,"children":1652},{"style":175},[1653],{"type":26,"value":1288},{"type":30,"tagName":97,"properties":1655,"children":1656},{"style":181},[1657],{"type":26,"value":1383},{"type":30,"tagName":97,"properties":1659,"children":1660},{"style":187},[1661],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1663,"children":1664},{"style":181},[1665],{"type":26,"value":1666},"zTop2, bottom",{"type":30,"tagName":97,"properties":1668,"children":1669},{"style":187},[1670],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1672,"children":1673},{"style":181},[1674],{"type":26,"value":1675},"zBot2, isDemand",{"type":30,"tagName":97,"properties":1677,"children":1678},{"style":187},[1679],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1681,"children":1682},{"style":222},[1683],{"type":26,"value":1684},"true",{"type":30,"tagName":97,"properties":1686,"children":1687},{"style":181},[1688],{"type":26,"value":1414},{"type":30,"tagName":97,"properties":1690,"children":1691},{"style":187},[1692],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1694,"children":1695},{"style":181},[1696],{"type":26,"value":1423},{"type":30,"tagName":97,"properties":1698,"children":1699},{"style":187},[1700],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1702,"children":1703},{"style":181},[1704],{"type":26,"value":1705},"b2));",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1708,"children":1709},{"class":99},[1710],{"type":30,"tagName":97,"properties":1711,"children":1712},{"style":181},[1713],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1716,"children":1717},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":1720,"children":1721},{"class":99},[1722],{"type":30,"tagName":97,"properties":1723,"children":1724},{"style":103},[1725],{"type":26,"value":1726},"// Mitigated zones remove their own drawing and leave the collection.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1729,"children":1730},{"class":99},[1731,1735,1740,1744],{"type":30,"tagName":97,"properties":1732,"children":1733},{"style":187},[1734],{"type":26,"value":243},{"type":30,"tagName":97,"properties":1736,"children":1737},{"style":181},[1738],{"type":26,"value":1739}," survivors ",{"type":30,"tagName":97,"properties":1741,"children":1742},{"style":187},[1743],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1745,"children":1746},{"style":181},[1747],{"type":26,"value":873},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1750,"children":1751},{"class":99},[1752,1757,1762,1766,1771,1775,1780,1785,1789,1793,1797,1801,1805,1809,1813,1818],{"type":30,"tagName":97,"properties":1753,"children":1754},{"style":187},[1755],{"type":26,"value":1756},"for",{"type":30,"tagName":97,"properties":1758,"children":1759},{"style":181},[1760],{"type":26,"value":1761}," (",{"type":30,"tagName":97,"properties":1763,"children":1764},{"style":187},[1765],{"type":26,"value":243},{"type":30,"tagName":97,"properties":1767,"children":1768},{"style":181},[1769],{"type":26,"value":1770}," i ",{"type":30,"tagName":97,"properties":1772,"children":1773},{"style":187},[1774],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1776,"children":1777},{"style":222},[1778],{"type":26,"value":1779}," 0",{"type":30,"tagName":97,"properties":1781,"children":1782},{"style":181},[1783],{"type":26,"value":1784},"; i ",{"type":30,"tagName":97,"properties":1786,"children":1787},{"style":187},[1788],{"type":26,"value":806},{"type":30,"tagName":97,"properties":1790,"children":1791},{"style":181},[1792],{"type":26,"value":1166},{"type":30,"tagName":97,"properties":1794,"children":1795},{"style":222},[1796],{"type":26,"value":1171},{"type":30,"tagName":97,"properties":1798,"children":1799},{"style":181},[1800],{"type":26,"value":1784},{"type":30,"tagName":97,"properties":1802,"children":1803},{"style":187},[1804],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1806,"children":1807},{"style":181},[1808],{"type":26,"value":1770},{"type":30,"tagName":97,"properties":1810,"children":1811},{"style":187},[1812],{"type":26,"value":1315},{"type":30,"tagName":97,"properties":1814,"children":1815},{"style":222},[1816],{"type":26,"value":1817}," 1",{"type":30,"tagName":97,"properties":1819,"children":1820},{"style":181},[1821],{"type":26,"value":1822},") {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1825,"children":1826},{"class":99},[1827,1831,1836,1840],{"type":30,"tagName":97,"properties":1828,"children":1829},{"style":187},[1830],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1832,"children":1833},{"style":181},[1834],{"type":26,"value":1835}," z ",{"type":30,"tagName":97,"properties":1837,"children":1838},{"style":187},[1839],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1841,"children":1842},{"style":181},[1843],{"type":26,"value":1844}," zones[i];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1847,"children":1848},{"class":99},[1849,1853,1857,1861,1866,1870],{"type":30,"tagName":97,"properties":1850,"children":1851},{"style":187},[1852],{"type":26,"value":782},{"type":30,"tagName":97,"properties":1854,"children":1855},{"style":181},[1856],{"type":26,"value":1761},{"type":30,"tagName":97,"properties":1858,"children":1859},{"style":175},[1860],{"type":26,"value":768},{"type":30,"tagName":97,"properties":1862,"children":1863},{"style":181},[1864],{"type":26,"value":1865},"(z, d.close[",{"type":30,"tagName":97,"properties":1867,"children":1868},{"style":222},[1869],{"type":26,"value":90},{"type":30,"tagName":97,"properties":1871,"children":1872},{"style":181},[1873],{"type":26,"value":1874},"])) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1877,"children":1878},{"class":99},[1879,1884,1889],{"type":30,"tagName":97,"properties":1880,"children":1881},{"style":181},[1882],{"type":26,"value":1883},"    z.handle.",{"type":30,"tagName":97,"properties":1885,"children":1886},{"style":175},[1887],{"type":26,"value":1888},"delete",{"type":30,"tagName":97,"properties":1890,"children":1891},{"style":181},[1892],{"type":26,"value":1893},"();",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1896,"children":1897},{"class":99},[1898,1903,1908],{"type":30,"tagName":97,"properties":1899,"children":1900},{"style":181},[1901],{"type":26,"value":1902},"  } ",{"type":30,"tagName":97,"properties":1904,"children":1905},{"style":187},[1906],{"type":26,"value":1907},"else",{"type":30,"tagName":97,"properties":1909,"children":1910},{"style":181},[1911],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1914,"children":1915},{"class":99},[1916,1921,1925],{"type":30,"tagName":97,"properties":1917,"children":1918},{"style":181},[1919],{"type":26,"value":1920},"    survivors.",{"type":30,"tagName":97,"properties":1922,"children":1923},{"style":175},[1924],{"type":26,"value":1369},{"type":30,"tagName":97,"properties":1926,"children":1927},{"style":181},[1928],{"type":26,"value":1929},"(z);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1932,"children":1933},{"class":99},[1934],{"type":30,"tagName":97,"properties":1935,"children":1936},{"style":181},[1937],{"type":26,"value":820},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1940,"children":1941},{"class":99},[1942],{"type":30,"tagName":97,"properties":1943,"children":1944},{"style":181},[1945],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":1948,"children":1949},{"class":99},[1950,1955,1959],{"type":30,"tagName":97,"properties":1951,"children":1952},{"style":181},[1953],{"type":26,"value":1954},"zones ",{"type":30,"tagName":97,"properties":1956,"children":1957},{"style":187},[1958],{"type":26,"value":190},{"type":30,"tagName":97,"properties":1960,"children":1961},{"style":181},[1962],{"type":26,"value":1963}," survivors;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1966,"children":1967},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":1970,"children":1971},{"class":99},[1972],{"type":30,"tagName":97,"properties":1973,"children":1974},{"style":103},[1975],{"type":26,"value":1976},"// Live dashboard on the last bar.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1979,"children":1980},{"class":99},[1981,1985],{"type":30,"tagName":97,"properties":1982,"children":1983},{"style":187},[1984],{"type":26,"value":1152},{"type":30,"tagName":97,"properties":1986,"children":1987},{"style":181},[1988],{"type":26,"value":1989}," (isLastBar) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":1992,"children":1993},{"class":99},[1994,1998,2003,2007,2012,2017,2022,2027,2032,2037,2041,2045,2050,2055,2060,2064],{"type":30,"tagName":97,"properties":1995,"children":1996},{"style":187},[1997],{"type":26,"value":1190},{"type":30,"tagName":97,"properties":1999,"children":2000},{"style":181},[2001],{"type":26,"value":2002}," rows ",{"type":30,"tagName":97,"properties":2004,"children":2005},{"style":187},[2006],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2008,"children":2009},{"style":181},[2010],{"type":26,"value":2011}," [[",{"type":30,"tagName":97,"properties":2013,"children":2014},{"style":193},[2015],{"type":26,"value":2016},"\"Zone Tracker\"",{"type":30,"tagName":97,"properties":2018,"children":2019},{"style":181},[2020],{"type":26,"value":2021},", ",{"type":30,"tagName":97,"properties":2023,"children":2024},{"style":193},[2025],{"type":26,"value":2026},"\"\"",{"type":30,"tagName":97,"properties":2028,"children":2029},{"style":181},[2030],{"type":26,"value":2031},"], [",{"type":30,"tagName":97,"properties":2033,"children":2034},{"style":193},[2035],{"type":26,"value":2036},"\"Active zones\"",{"type":30,"tagName":97,"properties":2038,"children":2039},{"style":181},[2040],{"type":26,"value":2021},{"type":30,"tagName":97,"properties":2042,"children":2043},{"style":193},[2044],{"type":26,"value":2026},{"type":30,"tagName":97,"properties":2046,"children":2047},{"style":181},[2048],{"type":26,"value":2049},".",{"type":30,"tagName":97,"properties":2051,"children":2052},{"style":175},[2053],{"type":26,"value":2054},"concat",{"type":30,"tagName":97,"properties":2056,"children":2057},{"style":181},[2058],{"type":26,"value":2059},"(zones.",{"type":30,"tagName":97,"properties":2061,"children":2062},{"style":222},[2063],{"type":26,"value":1171},{"type":30,"tagName":97,"properties":2065,"children":2066},{"style":181},[2067],{"type":26,"value":2068},")]];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2071,"children":2072},{"class":99},[2073,2078,2083,2087,2092,2096,2101,2106,2110,2114,2119,2123,2128,2133,2137,2142,2147,2151,2156],{"type":30,"tagName":97,"properties":2074,"children":2075},{"style":175},[2076],{"type":26,"value":2077},"  plotTable",{"type":30,"tagName":97,"properties":2079,"children":2080},{"style":181},[2081],{"type":26,"value":2082},"(data",{"type":30,"tagName":97,"properties":2084,"children":2085},{"style":187},[2086],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2088,"children":2089},{"style":181},[2090],{"type":26,"value":2091},"rows, position",{"type":30,"tagName":97,"properties":2093,"children":2094},{"style":187},[2095],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2097,"children":2098},{"style":193},[2099],{"type":26,"value":2100},"\"top_right\"",{"type":30,"tagName":97,"properties":2102,"children":2103},{"style":181},[2104],{"type":26,"value":2105},", headerRow",{"type":30,"tagName":97,"properties":2107,"children":2108},{"style":187},[2109],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2111,"children":2112},{"style":222},[2113],{"type":26,"value":1684},{"type":30,"tagName":97,"properties":2115,"children":2116},{"style":181},[2117],{"type":26,"value":2118},", backgroundColor",{"type":30,"tagName":97,"properties":2120,"children":2121},{"style":187},[2122],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2124,"children":2125},{"style":193},[2126],{"type":26,"value":2127},"\"#0d1117\"",{"type":30,"tagName":97,"properties":2129,"children":2130},{"style":181},[2131],{"type":26,"value":2132},", textColor",{"type":30,"tagName":97,"properties":2134,"children":2135},{"style":187},[2136],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2138,"children":2139},{"style":193},[2140],{"type":26,"value":2141},"\"#e6edf3\"",{"type":30,"tagName":97,"properties":2143,"children":2144},{"style":181},[2145],{"type":26,"value":2146},", fontSize",{"type":30,"tagName":97,"properties":2148,"children":2149},{"style":187},[2150],{"type":26,"value":190},{"type":30,"tagName":97,"properties":2152,"children":2153},{"style":222},[2154],{"type":26,"value":2155},"11",{"type":30,"tagName":97,"properties":2157,"children":2158},{"style":181},[2159],{"type":26,"value":230},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2162,"children":2163},{"class":99},[2164],{"type":30,"tagName":97,"properties":2165,"children":2166},{"style":181},[2167],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":64,"properties":2170,"children":2172,"position":2182},{"id":2171},"the-indicator",[2173],{"type":26,"value":2174,"position":2175},"The Indicator",{"start":2176,"end":2179},{"line":2177,"column":73,"offset":2178},85,4006,{"line":2177,"column":2180,"offset":2181},17,4019,{"start":2183,"end":2185},{"line":2177,"column":20,"offset":2184},4003,{"line":2177,"column":2180,"offset":2181},{"type":26,"value":27},{"type":13,"children":2188},[2189],{"type":30,"tagName":86,"properties":2190,"children":2191,"data":-1},{"class":88,"style":89,"tabindex":90},[2192],{"type":30,"tagName":93,"properties":2193,"children":2194},{},[2195,2223,2224,2249,2250,2261,2262,2270,2271,2279,2280,2288,2289,2297,2298,2306,2307,2315,2316,2324,2325,2333,2334,2355,2356,2381,2382,2385,2386,2443,2444,2466,2467,2488,2489,2510,2511,2532,2533,2570,2571,2604,2605,2638,2639,2672,2673,2706,2707,2740,2741,2772,2773,2781,2782,2790,2791,2840,2841,2886,2887,2890,2891,2916,2917,2966,2967,3011,3012,3048,3049,3081,3082,3114,3115,3149,3150,3182,3183,3215,3216,3248,3249,3281,3282,3314,3315,3347,3348,3380,3381,3414,3415,3447,3448,3480,3481,3513,3514,3517,3518,3554,3555,3585,3586,3593,3594,3597,3598,3630,3631,3657,3658,3683,3684,3709,3710,3735,3736,3744,3745,3812,3813,3878,3879,3887,3888,3922,3923,3939,3940,3966,3967,3988,3989,3996,3997,4030,4031,4055,4056,4072,4073,4093,4094,4101,4102,4110,4111,4162,4163,4212,4213,4221,4222,4239,4240,4257,4258,4298,4299,4333,4334,4354,4355,4375,4376,4396,4397,4428,4429,4454,4455,4505,4506,4537,4538,4568,4569,4577,4578,4595,4596,4613,4614,4621,4622,4639,4640,4656,4657,4673,4674,4691,4692,4707,4708,4715,4716,4719,4720,4752,4753,4766,4767,4780,4781,4794,4795,4808,4809,4822,4823,4836,4837,4859,4860,4872,4873,4880,4881,4884,4885,4917,4918,4937,4938,4958,4959,4978,4979,4998,4999,5018,5019,5038,5039,5058,5059,5078,5079,5099,5100,5120,5121,5141,5142,5162,5163,5183,5184,5204,5205],{"type":30,"tagName":97,"properties":2196,"children":2197},{"class":99},[2198,2203,2208,2213,2218],{"type":30,"tagName":97,"properties":2199,"children":2200},{"style":187},[2201],{"type":26,"value":2202},"import",{"type":30,"tagName":97,"properties":2204,"children":2205},{"style":181},[2206],{"type":26,"value":2207}," { box, input, none, ohlcv, output, overlay, param } ",{"type":30,"tagName":97,"properties":2209,"children":2210},{"style":187},[2211],{"type":26,"value":2212},"from",{"type":30,"tagName":97,"properties":2214,"children":2215},{"style":193},[2216],{"type":26,"value":2217}," \"./sdk/declare\"",{"type":30,"tagName":97,"properties":2219,"children":2220},{"style":181},[2221],{"type":26,"value":2222},";",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2225,"children":2226},{"class":99},[2227,2231,2236,2240,2245],{"type":30,"tagName":97,"properties":2228,"children":2229},{"style":187},[2230],{"type":26,"value":2202},{"type":30,"tagName":97,"properties":2232,"children":2233},{"style":181},[2234],{"type":26,"value":2235}," { in_close, in_high, in_low, in_open } ",{"type":30,"tagName":97,"properties":2237,"children":2238},{"style":187},[2239],{"type":26,"value":2212},{"type":30,"tagName":97,"properties":2241,"children":2242},{"style":193},[2243],{"type":26,"value":2244}," \"./gen/inputs\"",{"type":30,"tagName":97,"properties":2246,"children":2247},{"style":181},[2248],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2251,"children":2252},{"class":99},[2253,2257],{"type":30,"tagName":97,"properties":2254,"children":2255},{"style":187},[2256],{"type":26,"value":2202},{"type":30,"tagName":97,"properties":2258,"children":2259},{"style":181},[2260],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2263,"children":2264},{"class":99},[2265],{"type":30,"tagName":97,"properties":2266,"children":2267},{"style":181},[2268],{"type":26,"value":2269},"  emitRow,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2272,"children":2273},{"class":99},[2274],{"type":30,"tagName":97,"properties":2275,"children":2276},{"style":181},[2277],{"type":26,"value":2278},"  out_active_zones,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2281,"children":2282},{"class":99},[2283],{"type":30,"tagName":97,"properties":2284,"children":2285},{"style":181},[2286],{"type":26,"value":2287},"  out_demand_bottom,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2290,"children":2291},{"class":99},[2292],{"type":30,"tagName":97,"properties":2293,"children":2294},{"style":181},[2295],{"type":26,"value":2296},"  out_demand_live,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2299,"children":2300},{"class":99},[2301],{"type":30,"tagName":97,"properties":2302,"children":2303},{"style":181},[2304],{"type":26,"value":2305},"  out_demand_top,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2308,"children":2309},{"class":99},[2310],{"type":30,"tagName":97,"properties":2311,"children":2312},{"style":181},[2313],{"type":26,"value":2314},"  out_supply_bottom,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2317,"children":2318},{"class":99},[2319],{"type":30,"tagName":97,"properties":2320,"children":2321},{"style":181},[2322],{"type":26,"value":2323},"  out_supply_live,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2326,"children":2327},{"class":99},[2328],{"type":30,"tagName":97,"properties":2329,"children":2330},{"style":181},[2331],{"type":26,"value":2332},"  out_supply_top,",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2335,"children":2336},{"class":99},[2337,2342,2346,2351],{"type":30,"tagName":97,"properties":2338,"children":2339},{"style":181},[2340],{"type":26,"value":2341},"} ",{"type":30,"tagName":97,"properties":2343,"children":2344},{"style":187},[2345],{"type":26,"value":2212},{"type":30,"tagName":97,"properties":2347,"children":2348},{"style":193},[2349],{"type":26,"value":2350}," \"./gen/outputs\"",{"type":30,"tagName":97,"properties":2352,"children":2353},{"style":181},[2354],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2357,"children":2358},{"class":99},[2359,2363,2368,2372,2377],{"type":30,"tagName":97,"properties":2360,"children":2361},{"style":187},[2362],{"type":26,"value":2202},{"type":30,"tagName":97,"properties":2364,"children":2365},{"style":181},[2366],{"type":26,"value":2367}," { p_lookback } ",{"type":30,"tagName":97,"properties":2369,"children":2370},{"style":187},[2371],{"type":26,"value":2212},{"type":30,"tagName":97,"properties":2373,"children":2374},{"style":193},[2375],{"type":26,"value":2376}," \"./gen/params\"",{"type":30,"tagName":97,"properties":2378,"children":2379},{"style":181},[2380],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2383,"children":2384},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":2387,"children":2388},{"class":99},[2389,2394,2399,2403,2407,2411,2416,2420,2424,2428,2433,2438],{"type":30,"tagName":97,"properties":2390,"children":2391},{"style":175},[2392],{"type":26,"value":2393},"param",{"type":30,"tagName":97,"properties":2395,"children":2396},{"style":181},[2397],{"type":26,"value":2398},"(",{"type":30,"tagName":97,"properties":2400,"children":2401},{"style":193},[2402],{"type":26,"value":271},{"type":30,"tagName":97,"properties":2404,"children":2405},{"style":181},[2406],{"type":26,"value":2021},{"type":30,"tagName":97,"properties":2408,"children":2409},{"style":222},[2410],{"type":26,"value":299},{"type":30,"tagName":97,"properties":2412,"children":2413},{"style":181},[2414],{"type":26,"value":2415},", { min: ",{"type":30,"tagName":97,"properties":2417,"children":2418},{"style":222},[2419],{"type":26,"value":332},{"type":30,"tagName":97,"properties":2421,"children":2422},{"style":181},[2423],{"type":26,"value":337},{"type":30,"tagName":97,"properties":2425,"children":2426},{"style":222},[2427],{"type":26,"value":342},{"type":30,"tagName":97,"properties":2429,"children":2430},{"style":181},[2431],{"type":26,"value":2432},", description: ",{"type":30,"tagName":97,"properties":2434,"children":2435},{"style":193},[2436],{"type":26,"value":2437},"\"Bars a swing must dominate to count as a pivot\"",{"type":30,"tagName":97,"properties":2439,"children":2440},{"style":181},[2441],{"type":26,"value":2442}," });",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2445,"children":2446},{"class":99},[2447,2452,2456,2461],{"type":30,"tagName":97,"properties":2448,"children":2449},{"style":175},[2450],{"type":26,"value":2451},"input",{"type":30,"tagName":97,"properties":2453,"children":2454},{"style":181},[2455],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2457,"children":2458},{"style":193},[2459],{"type":26,"value":2460},"\"open\"",{"type":30,"tagName":97,"properties":2462,"children":2463},{"style":181},[2464],{"type":26,"value":2465},", ohlcv.open);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2468,"children":2469},{"class":99},[2470,2474,2478,2483],{"type":30,"tagName":97,"properties":2471,"children":2472},{"style":175},[2473],{"type":26,"value":2451},{"type":30,"tagName":97,"properties":2475,"children":2476},{"style":181},[2477],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2479,"children":2480},{"style":193},[2481],{"type":26,"value":2482},"\"high\"",{"type":30,"tagName":97,"properties":2484,"children":2485},{"style":181},[2486],{"type":26,"value":2487},", ohlcv.high);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2490,"children":2491},{"class":99},[2492,2496,2500,2505],{"type":30,"tagName":97,"properties":2493,"children":2494},{"style":175},[2495],{"type":26,"value":2451},{"type":30,"tagName":97,"properties":2497,"children":2498},{"style":181},[2499],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2501,"children":2502},{"style":193},[2503],{"type":26,"value":2504},"\"low\"",{"type":30,"tagName":97,"properties":2506,"children":2507},{"style":181},[2508],{"type":26,"value":2509},", ohlcv.low);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2512,"children":2513},{"class":99},[2514,2518,2522,2527],{"type":30,"tagName":97,"properties":2515,"children":2516},{"style":175},[2517],{"type":26,"value":2451},{"type":30,"tagName":97,"properties":2519,"children":2520},{"style":181},[2521],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2523,"children":2524},{"style":193},[2525],{"type":26,"value":2526},"\"close\"",{"type":30,"tagName":97,"properties":2528,"children":2529},{"style":181},[2530],{"type":26,"value":2531},", ohlcv.close);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2534,"children":2535},{"class":99},[2536,2541,2546,2551,2556,2560,2565],{"type":30,"tagName":97,"properties":2537,"children":2538},{"style":187},[2539],{"type":26,"value":2540},"const",{"type":30,"tagName":97,"properties":2542,"children":2543},{"style":222},[2544],{"type":26,"value":2545}," demandTop",{"type":30,"tagName":97,"properties":2547,"children":2548},{"style":187},[2549],{"type":26,"value":2550}," =",{"type":30,"tagName":97,"properties":2552,"children":2553},{"style":175},[2554],{"type":26,"value":2555}," output",{"type":30,"tagName":97,"properties":2557,"children":2558},{"style":181},[2559],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2561,"children":2562},{"style":193},[2563],{"type":26,"value":2564},"\"demand_top\"",{"type":30,"tagName":97,"properties":2566,"children":2567},{"style":181},[2568],{"type":26,"value":2569},", none);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2572,"children":2573},{"class":99},[2574,2578,2583,2587,2591,2595,2600],{"type":30,"tagName":97,"properties":2575,"children":2576},{"style":187},[2577],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2579,"children":2580},{"style":222},[2581],{"type":26,"value":2582}," demandBottom",{"type":30,"tagName":97,"properties":2584,"children":2585},{"style":187},[2586],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2588,"children":2589},{"style":175},[2590],{"type":26,"value":2555},{"type":30,"tagName":97,"properties":2592,"children":2593},{"style":181},[2594],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2596,"children":2597},{"style":193},[2598],{"type":26,"value":2599},"\"demand_bottom\"",{"type":30,"tagName":97,"properties":2601,"children":2602},{"style":181},[2603],{"type":26,"value":2569},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2606,"children":2607},{"class":99},[2608,2612,2617,2621,2625,2629,2634],{"type":30,"tagName":97,"properties":2609,"children":2610},{"style":187},[2611],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2613,"children":2614},{"style":222},[2615],{"type":26,"value":2616}," demandLive",{"type":30,"tagName":97,"properties":2618,"children":2619},{"style":187},[2620],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2622,"children":2623},{"style":175},[2624],{"type":26,"value":2555},{"type":30,"tagName":97,"properties":2626,"children":2627},{"style":181},[2628],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2630,"children":2631},{"style":193},[2632],{"type":26,"value":2633},"\"demand_live\"",{"type":30,"tagName":97,"properties":2635,"children":2636},{"style":181},[2637],{"type":26,"value":2569},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2640,"children":2641},{"class":99},[2642,2646,2651,2655,2659,2663,2668],{"type":30,"tagName":97,"properties":2643,"children":2644},{"style":187},[2645],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2647,"children":2648},{"style":222},[2649],{"type":26,"value":2650}," supplyTop",{"type":30,"tagName":97,"properties":2652,"children":2653},{"style":187},[2654],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2656,"children":2657},{"style":175},[2658],{"type":26,"value":2555},{"type":30,"tagName":97,"properties":2660,"children":2661},{"style":181},[2662],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2664,"children":2665},{"style":193},[2666],{"type":26,"value":2667},"\"supply_top\"",{"type":30,"tagName":97,"properties":2669,"children":2670},{"style":181},[2671],{"type":26,"value":2569},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2674,"children":2675},{"class":99},[2676,2680,2685,2689,2693,2697,2702],{"type":30,"tagName":97,"properties":2677,"children":2678},{"style":187},[2679],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2681,"children":2682},{"style":222},[2683],{"type":26,"value":2684}," supplyBottom",{"type":30,"tagName":97,"properties":2686,"children":2687},{"style":187},[2688],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2690,"children":2691},{"style":175},[2692],{"type":26,"value":2555},{"type":30,"tagName":97,"properties":2694,"children":2695},{"style":181},[2696],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2698,"children":2699},{"style":193},[2700],{"type":26,"value":2701},"\"supply_bottom\"",{"type":30,"tagName":97,"properties":2703,"children":2704},{"style":181},[2705],{"type":26,"value":2569},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2708,"children":2709},{"class":99},[2710,2714,2719,2723,2727,2731,2736],{"type":30,"tagName":97,"properties":2711,"children":2712},{"style":187},[2713],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2715,"children":2716},{"style":222},[2717],{"type":26,"value":2718}," supplyLive",{"type":30,"tagName":97,"properties":2720,"children":2721},{"style":187},[2722],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2724,"children":2725},{"style":175},[2726],{"type":26,"value":2555},{"type":30,"tagName":97,"properties":2728,"children":2729},{"style":181},[2730],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2732,"children":2733},{"style":193},[2734],{"type":26,"value":2735},"\"supply_live\"",{"type":30,"tagName":97,"properties":2737,"children":2738},{"style":181},[2739],{"type":26,"value":2569},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2742,"children":2743},{"class":99},[2744,2749,2753,2758,2763,2768],{"type":30,"tagName":97,"properties":2745,"children":2746},{"style":175},[2747],{"type":26,"value":2748},"output",{"type":30,"tagName":97,"properties":2750,"children":2751},{"style":181},[2752],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2754,"children":2755},{"style":193},[2756],{"type":26,"value":2757},"\"active_zones\"",{"type":30,"tagName":97,"properties":2759,"children":2760},{"style":181},[2761],{"type":26,"value":2762},", none, overlay, { description: ",{"type":30,"tagName":97,"properties":2764,"children":2765},{"style":193},[2766],{"type":26,"value":2767},"\"Zones alive on this bar, 0 to 2\"",{"type":30,"tagName":97,"properties":2769,"children":2770},{"style":181},[2771],{"type":26,"value":2442},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2774,"children":2775},{"class":99},[2776],{"type":30,"tagName":97,"properties":2777,"children":2778},{"style":103},[2779],{"type":26,"value":2780},"// One bar wide (from 0 to 0) on every bar the zone is alive: the bars tile into a band that starts",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2783,"children":2784},{"class":99},[2785],{"type":30,"tagName":97,"properties":2786,"children":2787},{"style":103},[2788],{"type":26,"value":2789},"// at the pivot and stops on the bar that mitigates it.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":2792,"children":2793},{"class":99},[2794,2799,2803,2808,2813,2817,2822,2827,2832,2836],{"type":30,"tagName":97,"properties":2795,"children":2796},{"style":175},[2797],{"type":26,"value":2798},"box",{"type":30,"tagName":97,"properties":2800,"children":2801},{"style":181},[2802],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2804,"children":2805},{"style":193},[2806],{"type":26,"value":2807},"\"demand_zone\"",{"type":30,"tagName":97,"properties":2809,"children":2810},{"style":181},[2811],{"type":26,"value":2812},", { top: demandTop, bottom: demandBottom, when: demandLive, color: ",{"type":30,"tagName":97,"properties":2814,"children":2815},{"style":193},[2816],{"type":26,"value":526},{"type":30,"tagName":97,"properties":2818,"children":2819},{"style":181},[2820],{"type":26,"value":2821},", opacity: ",{"type":30,"tagName":97,"properties":2823,"children":2824},{"style":222},[2825],{"type":26,"value":2826},"0.18",{"type":30,"tagName":97,"properties":2828,"children":2829},{"style":181},[2830],{"type":26,"value":2831},", borderWidth: ",{"type":30,"tagName":97,"properties":2833,"children":2834},{"style":222},[2835],{"type":26,"value":90},{"type":30,"tagName":97,"properties":2837,"children":2838},{"style":181},[2839],{"type":26,"value":2442},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2842,"children":2843},{"class":99},[2844,2848,2852,2857,2862,2866,2870,2874,2878,2882],{"type":30,"tagName":97,"properties":2845,"children":2846},{"style":175},[2847],{"type":26,"value":2798},{"type":30,"tagName":97,"properties":2849,"children":2850},{"style":181},[2851],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":2853,"children":2854},{"style":193},[2855],{"type":26,"value":2856},"\"supply_zone\"",{"type":30,"tagName":97,"properties":2858,"children":2859},{"style":181},[2860],{"type":26,"value":2861},", { top: supplyTop, bottom: supplyBottom, when: supplyLive, color: ",{"type":30,"tagName":97,"properties":2863,"children":2864},{"style":193},[2865],{"type":26,"value":602},{"type":30,"tagName":97,"properties":2867,"children":2868},{"style":181},[2869],{"type":26,"value":2821},{"type":30,"tagName":97,"properties":2871,"children":2872},{"style":222},[2873],{"type":26,"value":2826},{"type":30,"tagName":97,"properties":2875,"children":2876},{"style":181},[2877],{"type":26,"value":2831},{"type":30,"tagName":97,"properties":2879,"children":2880},{"style":222},[2881],{"type":26,"value":90},{"type":30,"tagName":97,"properties":2883,"children":2884},{"style":181},[2885],{"type":26,"value":2442},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2888,"children":2889},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":2892,"children":2893},{"class":99},[2894,2898,2903,2907,2912],{"type":30,"tagName":97,"properties":2895,"children":2896},{"style":187},[2897],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2899,"children":2900},{"style":222},[2901],{"type":26,"value":2902}," MAX_LOOKBACK",{"type":30,"tagName":97,"properties":2904,"children":2905},{"style":187},[2906],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2908,"children":2909},{"style":222},[2910],{"type":26,"value":2911}," 100",{"type":30,"tagName":97,"properties":2913,"children":2914},{"style":181},[2915],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2918,"children":2919},{"class":99},[2920,2924,2929,2933,2938,2943,2947,2952,2957,2962],{"type":30,"tagName":97,"properties":2921,"children":2922},{"style":187},[2923],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2925,"children":2926},{"style":222},[2927],{"type":26,"value":2928}," highs",{"type":30,"tagName":97,"properties":2930,"children":2931},{"style":187},[2932],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2934,"children":2935},{"style":187},[2936],{"type":26,"value":2937}," new",{"type":30,"tagName":97,"properties":2939,"children":2940},{"style":175},[2941],{"type":26,"value":2942}," StaticArray",{"type":30,"tagName":97,"properties":2944,"children":2945},{"style":181},[2946],{"type":26,"value":806},{"type":30,"tagName":97,"properties":2948,"children":2949},{"style":175},[2950],{"type":26,"value":2951},"f64",{"type":30,"tagName":97,"properties":2953,"children":2954},{"style":181},[2955],{"type":26,"value":2956},">(",{"type":30,"tagName":97,"properties":2958,"children":2959},{"style":222},[2960],{"type":26,"value":2961},"MAX_LOOKBACK",{"type":30,"tagName":97,"properties":2963,"children":2964},{"style":181},[2965],{"type":26,"value":230},{"type":26,"value":27},{"type":30,"tagName":97,"properties":2968,"children":2969},{"class":99},[2970,2974,2979,2983,2987,2991,2995,2999,3003,3007],{"type":30,"tagName":97,"properties":2971,"children":2972},{"style":187},[2973],{"type":26,"value":2540},{"type":30,"tagName":97,"properties":2975,"children":2976},{"style":222},[2977],{"type":26,"value":2978}," lows",{"type":30,"tagName":97,"properties":2980,"children":2981},{"style":187},[2982],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":2984,"children":2985},{"style":187},[2986],{"type":26,"value":2937},{"type":30,"tagName":97,"properties":2988,"children":2989},{"style":175},[2990],{"type":26,"value":2942},{"type":30,"tagName":97,"properties":2992,"children":2993},{"style":181},[2994],{"type":26,"value":806},{"type":30,"tagName":97,"properties":2996,"children":2997},{"style":175},[2998],{"type":26,"value":2951},{"type":30,"tagName":97,"properties":3000,"children":3001},{"style":181},[3002],{"type":26,"value":2956},{"type":30,"tagName":97,"properties":3004,"children":3005},{"style":222},[3006],{"type":26,"value":2961},{"type":30,"tagName":97,"properties":3008,"children":3009},{"style":181},[3010],{"type":26,"value":230},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3013,"children":3014},{"class":99},[3015,3020,3025,3030,3035,3039,3044],{"type":30,"tagName":97,"properties":3016,"children":3017},{"style":187},[3018],{"type":26,"value":3019},"let",{"type":30,"tagName":97,"properties":3021,"children":3022},{"style":181},[3023],{"type":26,"value":3024}," n",{"type":30,"tagName":97,"properties":3026,"children":3027},{"style":187},[3028],{"type":26,"value":3029},":",{"type":30,"tagName":97,"properties":3031,"children":3032},{"style":175},[3033],{"type":26,"value":3034}," i32",{"type":30,"tagName":97,"properties":3036,"children":3037},{"style":187},[3038],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3040,"children":3041},{"style":222},[3042],{"type":26,"value":3043}," 20",{"type":30,"tagName":97,"properties":3045,"children":3046},{"style":181},[3047],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3050,"children":3051},{"class":99},[3052,3056,3061,3065,3069,3073,3077],{"type":30,"tagName":97,"properties":3053,"children":3054},{"style":187},[3055],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3057,"children":3058},{"style":181},[3059],{"type":26,"value":3060}," cursor",{"type":30,"tagName":97,"properties":3062,"children":3063},{"style":187},[3064],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3066,"children":3067},{"style":175},[3068],{"type":26,"value":3034},{"type":30,"tagName":97,"properties":3070,"children":3071},{"style":187},[3072],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3074,"children":3075},{"style":222},[3076],{"type":26,"value":1779},{"type":30,"tagName":97,"properties":3078,"children":3079},{"style":181},[3080],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3083,"children":3084},{"class":99},[3085,3089,3094,3098,3102,3106,3110],{"type":30,"tagName":97,"properties":3086,"children":3087},{"style":187},[3088],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3090,"children":3091},{"style":181},[3092],{"type":26,"value":3093}," count",{"type":30,"tagName":97,"properties":3095,"children":3096},{"style":187},[3097],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3099,"children":3100},{"style":175},[3101],{"type":26,"value":3034},{"type":30,"tagName":97,"properties":3103,"children":3104},{"style":187},[3105],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3107,"children":3108},{"style":222},[3109],{"type":26,"value":1779},{"type":30,"tagName":97,"properties":3111,"children":3112},{"style":181},[3113],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3116,"children":3117},{"class":99},[3118,3122,3127,3131,3136,3140,3145],{"type":30,"tagName":97,"properties":3119,"children":3120},{"style":187},[3121],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3123,"children":3124},{"style":181},[3125],{"type":26,"value":3126}," windowHigh",{"type":30,"tagName":97,"properties":3128,"children":3129},{"style":187},[3130],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3132,"children":3133},{"style":175},[3134],{"type":26,"value":3135}," f64",{"type":30,"tagName":97,"properties":3137,"children":3138},{"style":187},[3139],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3141,"children":3142},{"style":222},[3143],{"type":26,"value":3144}," NaN",{"type":30,"tagName":97,"properties":3146,"children":3147},{"style":181},[3148],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3151,"children":3152},{"class":99},[3153,3157,3162,3166,3170,3174,3178],{"type":30,"tagName":97,"properties":3154,"children":3155},{"style":187},[3156],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3158,"children":3159},{"style":181},[3160],{"type":26,"value":3161}," windowLow",{"type":30,"tagName":97,"properties":3163,"children":3164},{"style":187},[3165],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3167,"children":3168},{"style":175},[3169],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3171,"children":3172},{"style":187},[3173],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3175,"children":3176},{"style":222},[3177],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3179,"children":3180},{"style":181},[3181],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3184,"children":3185},{"class":99},[3186,3190,3195,3199,3203,3207,3211],{"type":30,"tagName":97,"properties":3187,"children":3188},{"style":187},[3189],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3191,"children":3192},{"style":181},[3193],{"type":26,"value":3194}," prevOpen",{"type":30,"tagName":97,"properties":3196,"children":3197},{"style":187},[3198],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3200,"children":3201},{"style":175},[3202],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3204,"children":3205},{"style":187},[3206],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3208,"children":3209},{"style":222},[3210],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3212,"children":3213},{"style":181},[3214],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3217,"children":3218},{"class":99},[3219,3223,3228,3232,3236,3240,3244],{"type":30,"tagName":97,"properties":3220,"children":3221},{"style":187},[3222],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3224,"children":3225},{"style":181},[3226],{"type":26,"value":3227}," prevHigh",{"type":30,"tagName":97,"properties":3229,"children":3230},{"style":187},[3231],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3233,"children":3234},{"style":175},[3235],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3237,"children":3238},{"style":187},[3239],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3241,"children":3242},{"style":222},[3243],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3245,"children":3246},{"style":181},[3247],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3250,"children":3251},{"class":99},[3252,3256,3261,3265,3269,3273,3277],{"type":30,"tagName":97,"properties":3253,"children":3254},{"style":187},[3255],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3257,"children":3258},{"style":181},[3259],{"type":26,"value":3260}," prevLow",{"type":30,"tagName":97,"properties":3262,"children":3263},{"style":187},[3264],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3266,"children":3267},{"style":175},[3268],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3270,"children":3271},{"style":187},[3272],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3274,"children":3275},{"style":222},[3276],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3278,"children":3279},{"style":181},[3280],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3283,"children":3284},{"class":99},[3285,3289,3294,3298,3302,3306,3310],{"type":30,"tagName":97,"properties":3286,"children":3287},{"style":187},[3288],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3290,"children":3291},{"style":181},[3292],{"type":26,"value":3293}," prevClose",{"type":30,"tagName":97,"properties":3295,"children":3296},{"style":187},[3297],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3299,"children":3300},{"style":175},[3301],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3303,"children":3304},{"style":187},[3305],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3307,"children":3308},{"style":222},[3309],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3311,"children":3312},{"style":181},[3313],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3316,"children":3317},{"class":99},[3318,3322,3327,3331,3335,3339,3343],{"type":30,"tagName":97,"properties":3319,"children":3320},{"style":187},[3321],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3323,"children":3324},{"style":181},[3325],{"type":26,"value":3326}," dTop",{"type":30,"tagName":97,"properties":3328,"children":3329},{"style":187},[3330],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3332,"children":3333},{"style":175},[3334],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3336,"children":3337},{"style":187},[3338],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3340,"children":3341},{"style":222},[3342],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3344,"children":3345},{"style":181},[3346],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3349,"children":3350},{"class":99},[3351,3355,3360,3364,3368,3372,3376],{"type":30,"tagName":97,"properties":3352,"children":3353},{"style":187},[3354],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3356,"children":3357},{"style":181},[3358],{"type":26,"value":3359}," dBottom",{"type":30,"tagName":97,"properties":3361,"children":3362},{"style":187},[3363],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3365,"children":3366},{"style":175},[3367],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3369,"children":3370},{"style":187},[3371],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3373,"children":3374},{"style":222},[3375],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3377,"children":3378},{"style":181},[3379],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3382,"children":3383},{"class":99},[3384,3388,3393,3397,3401,3405,3410],{"type":30,"tagName":97,"properties":3385,"children":3386},{"style":187},[3387],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3389,"children":3390},{"style":181},[3391],{"type":26,"value":3392}," dLive",{"type":30,"tagName":97,"properties":3394,"children":3395},{"style":187},[3396],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3398,"children":3399},{"style":175},[3400],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3402,"children":3403},{"style":187},[3404],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3406,"children":3407},{"style":222},[3408],{"type":26,"value":3409}," 0.0",{"type":30,"tagName":97,"properties":3411,"children":3412},{"style":181},[3413],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3416,"children":3417},{"class":99},[3418,3422,3427,3431,3435,3439,3443],{"type":30,"tagName":97,"properties":3419,"children":3420},{"style":187},[3421],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3423,"children":3424},{"style":181},[3425],{"type":26,"value":3426}," sTop",{"type":30,"tagName":97,"properties":3428,"children":3429},{"style":187},[3430],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3432,"children":3433},{"style":175},[3434],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3436,"children":3437},{"style":187},[3438],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3440,"children":3441},{"style":222},[3442],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3444,"children":3445},{"style":181},[3446],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3449,"children":3450},{"class":99},[3451,3455,3460,3464,3468,3472,3476],{"type":30,"tagName":97,"properties":3452,"children":3453},{"style":187},[3454],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3456,"children":3457},{"style":181},[3458],{"type":26,"value":3459}," sBottom",{"type":30,"tagName":97,"properties":3461,"children":3462},{"style":187},[3463],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3465,"children":3466},{"style":175},[3467],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3469,"children":3470},{"style":187},[3471],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3473,"children":3474},{"style":222},[3475],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":3477,"children":3478},{"style":181},[3479],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3482,"children":3483},{"class":99},[3484,3488,3493,3497,3501,3505,3509],{"type":30,"tagName":97,"properties":3485,"children":3486},{"style":187},[3487],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":3489,"children":3490},{"style":181},[3491],{"type":26,"value":3492}," sLive",{"type":30,"tagName":97,"properties":3494,"children":3495},{"style":187},[3496],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3498,"children":3499},{"style":175},[3500],{"type":26,"value":3135},{"type":30,"tagName":97,"properties":3502,"children":3503},{"style":187},[3504],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3506,"children":3507},{"style":222},[3508],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":3510,"children":3511},{"style":181},[3512],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3515,"children":3516},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":3519,"children":3520},{"class":99},[3521,3526,3531,3536,3541,3545,3550],{"type":30,"tagName":97,"properties":3522,"children":3523},{"style":187},[3524],{"type":26,"value":3525},"export",{"type":30,"tagName":97,"properties":3527,"children":3528},{"style":187},[3529],{"type":26,"value":3530}," function",{"type":30,"tagName":97,"properties":3532,"children":3533},{"style":175},[3534],{"type":26,"value":3535}," init",{"type":30,"tagName":97,"properties":3537,"children":3538},{"style":181},[3539],{"type":26,"value":3540},"()",{"type":30,"tagName":97,"properties":3542,"children":3543},{"style":187},[3544],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3546,"children":3547},{"style":222},[3548],{"type":26,"value":3549}," void",{"type":30,"tagName":97,"properties":3551,"children":3552},{"style":181},[3553],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3556,"children":3557},{"class":99},[3558,3563,3567,3571,3575,3580],{"type":30,"tagName":97,"properties":3559,"children":3560},{"style":181},[3561],{"type":26,"value":3562},"  n ",{"type":30,"tagName":97,"properties":3564,"children":3565},{"style":187},[3566],{"type":26,"value":190},{"type":30,"tagName":97,"properties":3568,"children":3569},{"style":175},[3570],{"type":26,"value":3034},{"type":30,"tagName":97,"properties":3572,"children":3573},{"style":181},[3574],{"type":26,"value":2398},{"type":30,"tagName":97,"properties":3576,"children":3577},{"style":175},[3578],{"type":26,"value":3579},"p_lookback",{"type":30,"tagName":97,"properties":3581,"children":3582},{"style":181},[3583],{"type":26,"value":3584},"());",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3587,"children":3588},{"class":99},[3589],{"type":30,"tagName":97,"properties":3590,"children":3591},{"style":181},[3592],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3595,"children":3596},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":3599,"children":3600},{"class":99},[3601,3605,3609,3614,3618,3622,3626],{"type":30,"tagName":97,"properties":3602,"children":3603},{"style":187},[3604],{"type":26,"value":3525},{"type":30,"tagName":97,"properties":3606,"children":3607},{"style":187},[3608],{"type":26,"value":3530},{"type":30,"tagName":97,"properties":3610,"children":3611},{"style":175},[3612],{"type":26,"value":3613}," state",{"type":30,"tagName":97,"properties":3615,"children":3616},{"style":181},[3617],{"type":26,"value":3540},{"type":30,"tagName":97,"properties":3619,"children":3620},{"style":187},[3621],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":3623,"children":3624},{"style":175},[3625],{"type":26,"value":3034},{"type":30,"tagName":97,"properties":3627,"children":3628},{"style":181},[3629],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3632,"children":3633},{"class":99},[3634,3639,3644,3648,3653],{"type":30,"tagName":97,"properties":3635,"children":3636},{"style":187},[3637],{"type":26,"value":3638},"  const",{"type":30,"tagName":97,"properties":3640,"children":3641},{"style":222},[3642],{"type":26,"value":3643}," open",{"type":30,"tagName":97,"properties":3645,"children":3646},{"style":187},[3647],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3649,"children":3650},{"style":175},[3651],{"type":26,"value":3652}," in_open",{"type":30,"tagName":97,"properties":3654,"children":3655},{"style":181},[3656],{"type":26,"value":1893},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3659,"children":3660},{"class":99},[3661,3665,3670,3674,3679],{"type":30,"tagName":97,"properties":3662,"children":3663},{"style":187},[3664],{"type":26,"value":3638},{"type":30,"tagName":97,"properties":3666,"children":3667},{"style":222},[3668],{"type":26,"value":3669}," high",{"type":30,"tagName":97,"properties":3671,"children":3672},{"style":187},[3673],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3675,"children":3676},{"style":175},[3677],{"type":26,"value":3678}," in_high",{"type":30,"tagName":97,"properties":3680,"children":3681},{"style":181},[3682],{"type":26,"value":1893},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3685,"children":3686},{"class":99},[3687,3691,3696,3700,3705],{"type":30,"tagName":97,"properties":3688,"children":3689},{"style":187},[3690],{"type":26,"value":3638},{"type":30,"tagName":97,"properties":3692,"children":3693},{"style":222},[3694],{"type":26,"value":3695}," low",{"type":30,"tagName":97,"properties":3697,"children":3698},{"style":187},[3699],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3701,"children":3702},{"style":175},[3703],{"type":26,"value":3704}," in_low",{"type":30,"tagName":97,"properties":3706,"children":3707},{"style":181},[3708],{"type":26,"value":1893},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3711,"children":3712},{"class":99},[3713,3717,3722,3726,3731],{"type":30,"tagName":97,"properties":3714,"children":3715},{"style":187},[3716],{"type":26,"value":3638},{"type":30,"tagName":97,"properties":3718,"children":3719},{"style":222},[3720],{"type":26,"value":3721}," close",{"type":30,"tagName":97,"properties":3723,"children":3724},{"style":187},[3725],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3727,"children":3728},{"style":175},[3729],{"type":26,"value":3730}," in_close",{"type":30,"tagName":97,"properties":3732,"children":3733},{"style":181},[3734],{"type":26,"value":1893},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3737,"children":3738},{"class":99},[3739],{"type":30,"tagName":97,"properties":3740,"children":3741},{"style":103},[3742],{"type":26,"value":3743},"  // A pivot is confirmed one bar after it prints: the previous bar led its window and this bar turned back.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3746,"children":3747},{"class":99},[3748,3752,3757,3761,3766,3771,3776,3780,3785,3789,3794,3798,3803,3807],{"type":30,"tagName":97,"properties":3749,"children":3750},{"style":187},[3751],{"type":26,"value":3638},{"type":30,"tagName":97,"properties":3753,"children":3754},{"style":222},[3755],{"type":26,"value":3756}," pivotHigh",{"type":30,"tagName":97,"properties":3758,"children":3759},{"style":187},[3760],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3762,"children":3763},{"style":187},[3764],{"type":26,"value":3765}," !",{"type":30,"tagName":97,"properties":3767,"children":3768},{"style":175},[3769],{"type":26,"value":3770},"isNaN",{"type":30,"tagName":97,"properties":3772,"children":3773},{"style":181},[3774],{"type":26,"value":3775},"(windowHigh) ",{"type":30,"tagName":97,"properties":3777,"children":3778},{"style":187},[3779],{"type":26,"value":973},{"type":30,"tagName":97,"properties":3781,"children":3782},{"style":181},[3783],{"type":26,"value":3784}," prevHigh ",{"type":30,"tagName":97,"properties":3786,"children":3787},{"style":187},[3788],{"type":26,"value":992},{"type":30,"tagName":97,"properties":3790,"children":3791},{"style":181},[3792],{"type":26,"value":3793}," windowHigh ",{"type":30,"tagName":97,"properties":3795,"children":3796},{"style":187},[3797],{"type":26,"value":973},{"type":30,"tagName":97,"properties":3799,"children":3800},{"style":181},[3801],{"type":26,"value":3802}," high ",{"type":30,"tagName":97,"properties":3804,"children":3805},{"style":187},[3806],{"type":26,"value":806},{"type":30,"tagName":97,"properties":3808,"children":3809},{"style":181},[3810],{"type":26,"value":3811}," prevHigh;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3814,"children":3815},{"class":99},[3816,3820,3825,3829,3833,3837,3842,3846,3851,3855,3860,3864,3869,3873],{"type":30,"tagName":97,"properties":3817,"children":3818},{"style":187},[3819],{"type":26,"value":3638},{"type":30,"tagName":97,"properties":3821,"children":3822},{"style":222},[3823],{"type":26,"value":3824}," pivotLow",{"type":30,"tagName":97,"properties":3826,"children":3827},{"style":187},[3828],{"type":26,"value":2550},{"type":30,"tagName":97,"properties":3830,"children":3831},{"style":187},[3832],{"type":26,"value":3765},{"type":30,"tagName":97,"properties":3834,"children":3835},{"style":175},[3836],{"type":26,"value":3770},{"type":30,"tagName":97,"properties":3838,"children":3839},{"style":181},[3840],{"type":26,"value":3841},"(windowLow) ",{"type":30,"tagName":97,"properties":3843,"children":3844},{"style":187},[3845],{"type":26,"value":973},{"type":30,"tagName":97,"properties":3847,"children":3848},{"style":181},[3849],{"type":26,"value":3850}," prevLow ",{"type":30,"tagName":97,"properties":3852,"children":3853},{"style":187},[3854],{"type":26,"value":1094},{"type":30,"tagName":97,"properties":3856,"children":3857},{"style":181},[3858],{"type":26,"value":3859}," windowLow ",{"type":30,"tagName":97,"properties":3861,"children":3862},{"style":187},[3863],{"type":26,"value":973},{"type":30,"tagName":97,"properties":3865,"children":3866},{"style":181},[3867],{"type":26,"value":3868}," low ",{"type":30,"tagName":97,"properties":3870,"children":3871},{"style":187},[3872],{"type":26,"value":838},{"type":30,"tagName":97,"properties":3874,"children":3875},{"style":181},[3876],{"type":26,"value":3877}," prevLow;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3880,"children":3881},{"class":99},[3882],{"type":30,"tagName":97,"properties":3883,"children":3884},{"style":103},[3885],{"type":26,"value":3886},"  // One live zone per side: a new pivot is ignored while the side's zone is still alive.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3889,"children":3890},{"class":99},[3891,3895,3900,3904,3909,3914,3918],{"type":30,"tagName":97,"properties":3892,"children":3893},{"style":187},[3894],{"type":26,"value":782},{"type":30,"tagName":97,"properties":3896,"children":3897},{"style":181},[3898],{"type":26,"value":3899}," (pivotHigh ",{"type":30,"tagName":97,"properties":3901,"children":3902},{"style":187},[3903],{"type":26,"value":973},{"type":30,"tagName":97,"properties":3905,"children":3906},{"style":181},[3907],{"type":26,"value":3908}," sLive ",{"type":30,"tagName":97,"properties":3910,"children":3911},{"style":187},[3912],{"type":26,"value":3913},"==",{"type":30,"tagName":97,"properties":3915,"children":3916},{"style":222},[3917],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":3919,"children":3920},{"style":181},[3921],{"type":26,"value":1822},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3924,"children":3925},{"class":99},[3926,3931,3935],{"type":30,"tagName":97,"properties":3927,"children":3928},{"style":181},[3929],{"type":26,"value":3930},"    sTop ",{"type":30,"tagName":97,"properties":3932,"children":3933},{"style":187},[3934],{"type":26,"value":190},{"type":30,"tagName":97,"properties":3936,"children":3937},{"style":181},[3938],{"type":26,"value":3811},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3941,"children":3942},{"class":99},[3943,3948,3952,3957,3961],{"type":30,"tagName":97,"properties":3944,"children":3945},{"style":181},[3946],{"type":26,"value":3947},"    sBottom ",{"type":30,"tagName":97,"properties":3949,"children":3950},{"style":187},[3951],{"type":26,"value":190},{"type":30,"tagName":97,"properties":3953,"children":3954},{"style":181},[3955],{"type":26,"value":3956}," Math.",{"type":30,"tagName":97,"properties":3958,"children":3959},{"style":175},[3960],{"type":26,"value":1238},{"type":30,"tagName":97,"properties":3962,"children":3963},{"style":181},[3964],{"type":26,"value":3965},"(prevOpen, prevClose);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":3968,"children":3969},{"class":99},[3970,3975,3979,3984],{"type":30,"tagName":97,"properties":3971,"children":3972},{"style":181},[3973],{"type":26,"value":3974},"    sLive ",{"type":30,"tagName":97,"properties":3976,"children":3977},{"style":187},[3978],{"type":26,"value":190},{"type":30,"tagName":97,"properties":3980,"children":3981},{"style":222},[3982],{"type":26,"value":3983}," 1.0",{"type":30,"tagName":97,"properties":3985,"children":3986},{"style":181},[3987],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3990,"children":3991},{"class":99},[3992],{"type":30,"tagName":97,"properties":3993,"children":3994},{"style":181},[3995],{"type":26,"value":820},{"type":26,"value":27},{"type":30,"tagName":97,"properties":3998,"children":3999},{"class":99},[4000,4004,4009,4013,4018,4022,4026],{"type":30,"tagName":97,"properties":4001,"children":4002},{"style":187},[4003],{"type":26,"value":782},{"type":30,"tagName":97,"properties":4005,"children":4006},{"style":181},[4007],{"type":26,"value":4008}," (pivotLow ",{"type":30,"tagName":97,"properties":4010,"children":4011},{"style":187},[4012],{"type":26,"value":973},{"type":30,"tagName":97,"properties":4014,"children":4015},{"style":181},[4016],{"type":26,"value":4017}," dLive ",{"type":30,"tagName":97,"properties":4019,"children":4020},{"style":187},[4021],{"type":26,"value":3913},{"type":30,"tagName":97,"properties":4023,"children":4024},{"style":222},[4025],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":4027,"children":4028},{"style":181},[4029],{"type":26,"value":1822},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4032,"children":4033},{"class":99},[4034,4039,4043,4047,4051],{"type":30,"tagName":97,"properties":4035,"children":4036},{"style":181},[4037],{"type":26,"value":4038},"    dTop ",{"type":30,"tagName":97,"properties":4040,"children":4041},{"style":187},[4042],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4044,"children":4045},{"style":181},[4046],{"type":26,"value":3956},{"type":30,"tagName":97,"properties":4048,"children":4049},{"style":175},[4050],{"type":26,"value":1499},{"type":30,"tagName":97,"properties":4052,"children":4053},{"style":181},[4054],{"type":26,"value":3965},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4057,"children":4058},{"class":99},[4059,4064,4068],{"type":30,"tagName":97,"properties":4060,"children":4061},{"style":181},[4062],{"type":26,"value":4063},"    dBottom ",{"type":30,"tagName":97,"properties":4065,"children":4066},{"style":187},[4067],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4069,"children":4070},{"style":181},[4071],{"type":26,"value":3877},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4074,"children":4075},{"class":99},[4076,4081,4085,4089],{"type":30,"tagName":97,"properties":4077,"children":4078},{"style":181},[4079],{"type":26,"value":4080},"    dLive ",{"type":30,"tagName":97,"properties":4082,"children":4083},{"style":187},[4084],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4086,"children":4087},{"style":222},[4088],{"type":26,"value":3983},{"type":30,"tagName":97,"properties":4090,"children":4091},{"style":181},[4092],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4095,"children":4096},{"class":99},[4097],{"type":30,"tagName":97,"properties":4098,"children":4099},{"style":181},[4100],{"type":26,"value":820},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4103,"children":4104},{"class":99},[4105],{"type":30,"tagName":97,"properties":4106,"children":4107},{"style":103},[4108],{"type":26,"value":4109},"  // Mitigation: a close through the far edge retires the zone.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4112,"children":4113},{"class":99},[4114,4118,4123,4127,4131,4136,4141,4145,4150,4154,4158],{"type":30,"tagName":97,"properties":4115,"children":4116},{"style":187},[4117],{"type":26,"value":782},{"type":30,"tagName":97,"properties":4119,"children":4120},{"style":181},[4121],{"type":26,"value":4122}," (dLive ",{"type":30,"tagName":97,"properties":4124,"children":4125},{"style":187},[4126],{"type":26,"value":3913},{"type":30,"tagName":97,"properties":4128,"children":4129},{"style":222},[4130],{"type":26,"value":3983},{"type":30,"tagName":97,"properties":4132,"children":4133},{"style":187},[4134],{"type":26,"value":4135}," &&",{"type":30,"tagName":97,"properties":4137,"children":4138},{"style":181},[4139],{"type":26,"value":4140}," close ",{"type":30,"tagName":97,"properties":4142,"children":4143},{"style":187},[4144],{"type":26,"value":806},{"type":30,"tagName":97,"properties":4146,"children":4147},{"style":181},[4148],{"type":26,"value":4149}," dBottom) dLive ",{"type":30,"tagName":97,"properties":4151,"children":4152},{"style":187},[4153],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4155,"children":4156},{"style":222},[4157],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":4159,"children":4160},{"style":181},[4161],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4164,"children":4165},{"class":99},[4166,4170,4175,4179,4183,4187,4191,4195,4200,4204,4208],{"type":30,"tagName":97,"properties":4167,"children":4168},{"style":187},[4169],{"type":26,"value":782},{"type":30,"tagName":97,"properties":4171,"children":4172},{"style":181},[4173],{"type":26,"value":4174}," (sLive ",{"type":30,"tagName":97,"properties":4176,"children":4177},{"style":187},[4178],{"type":26,"value":3913},{"type":30,"tagName":97,"properties":4180,"children":4181},{"style":222},[4182],{"type":26,"value":3983},{"type":30,"tagName":97,"properties":4184,"children":4185},{"style":187},[4186],{"type":26,"value":4135},{"type":30,"tagName":97,"properties":4188,"children":4189},{"style":181},[4190],{"type":26,"value":4140},{"type":30,"tagName":97,"properties":4192,"children":4193},{"style":187},[4194],{"type":26,"value":838},{"type":30,"tagName":97,"properties":4196,"children":4197},{"style":181},[4198],{"type":26,"value":4199}," sTop) sLive ",{"type":30,"tagName":97,"properties":4201,"children":4202},{"style":187},[4203],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4205,"children":4206},{"style":222},[4207],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":4209,"children":4210},{"style":181},[4211],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4214,"children":4215},{"class":99},[4216],{"type":30,"tagName":97,"properties":4217,"children":4218},{"style":103},[4219],{"type":26,"value":4220},"  // Push this bar into the window and recompute the window extremes.",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4223,"children":4224},{"class":99},[4225,4230,4234],{"type":30,"tagName":97,"properties":4226,"children":4227},{"style":181},[4228],{"type":26,"value":4229},"  highs[cursor] ",{"type":30,"tagName":97,"properties":4231,"children":4232},{"style":187},[4233],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4235,"children":4236},{"style":181},[4237],{"type":26,"value":4238}," high;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4241,"children":4242},{"class":99},[4243,4248,4252],{"type":30,"tagName":97,"properties":4244,"children":4245},{"style":181},[4246],{"type":26,"value":4247},"  lows[cursor] ",{"type":30,"tagName":97,"properties":4249,"children":4250},{"style":187},[4251],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4253,"children":4254},{"style":181},[4255],{"type":26,"value":4256}," low;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4259,"children":4260},{"class":99},[4261,4266,4270,4275,4279,4283,4288,4293],{"type":30,"tagName":97,"properties":4262,"children":4263},{"style":181},[4264],{"type":26,"value":4265},"  cursor ",{"type":30,"tagName":97,"properties":4267,"children":4268},{"style":187},[4269],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4271,"children":4272},{"style":181},[4273],{"type":26,"value":4274}," (cursor ",{"type":30,"tagName":97,"properties":4276,"children":4277},{"style":187},[4278],{"type":26,"value":1315},{"type":30,"tagName":97,"properties":4280,"children":4281},{"style":222},[4282],{"type":26,"value":1817},{"type":30,"tagName":97,"properties":4284,"children":4285},{"style":181},[4286],{"type":26,"value":4287},") ",{"type":30,"tagName":97,"properties":4289,"children":4290},{"style":187},[4291],{"type":26,"value":4292},"%",{"type":30,"tagName":97,"properties":4294,"children":4295},{"style":181},[4296],{"type":26,"value":4297}," n;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4300,"children":4301},{"class":99},[4302,4306,4311,4315,4320,4325,4329],{"type":30,"tagName":97,"properties":4303,"children":4304},{"style":187},[4305],{"type":26,"value":782},{"type":30,"tagName":97,"properties":4307,"children":4308},{"style":181},[4309],{"type":26,"value":4310}," (count ",{"type":30,"tagName":97,"properties":4312,"children":4313},{"style":187},[4314],{"type":26,"value":806},{"type":30,"tagName":97,"properties":4316,"children":4317},{"style":181},[4318],{"type":26,"value":4319}," n) count ",{"type":30,"tagName":97,"properties":4321,"children":4322},{"style":187},[4323],{"type":26,"value":4324},"+=",{"type":30,"tagName":97,"properties":4326,"children":4327},{"style":222},[4328],{"type":26,"value":1817},{"type":30,"tagName":97,"properties":4330,"children":4331},{"style":181},[4332],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4335,"children":4336},{"class":99},[4337,4342,4346,4350],{"type":30,"tagName":97,"properties":4338,"children":4339},{"style":181},[4340],{"type":26,"value":4341},"  windowHigh ",{"type":30,"tagName":97,"properties":4343,"children":4344},{"style":187},[4345],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4347,"children":4348},{"style":222},[4349],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":4351,"children":4352},{"style":181},[4353],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4356,"children":4357},{"class":99},[4358,4363,4367,4371],{"type":30,"tagName":97,"properties":4359,"children":4360},{"style":181},[4361],{"type":26,"value":4362},"  windowLow ",{"type":30,"tagName":97,"properties":4364,"children":4365},{"style":187},[4366],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4368,"children":4369},{"style":222},[4370],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":4372,"children":4373},{"style":181},[4374],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4377,"children":4378},{"class":99},[4379,4383,4387,4391],{"type":30,"tagName":97,"properties":4380,"children":4381},{"style":187},[4382],{"type":26,"value":782},{"type":30,"tagName":97,"properties":4384,"children":4385},{"style":181},[4386],{"type":26,"value":4310},{"type":30,"tagName":97,"properties":4388,"children":4389},{"style":187},[4390],{"type":26,"value":3913},{"type":30,"tagName":97,"properties":4392,"children":4393},{"style":181},[4394],{"type":26,"value":4395}," n) {",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4398,"children":4399},{"class":99},[4400,4405,4410,4414,4419,4424],{"type":30,"tagName":97,"properties":4401,"children":4402},{"style":187},[4403],{"type":26,"value":4404},"    let",{"type":30,"tagName":97,"properties":4406,"children":4407},{"style":181},[4408],{"type":26,"value":4409}," h ",{"type":30,"tagName":97,"properties":4411,"children":4412},{"style":187},[4413],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4415,"children":4416},{"style":187},[4417],{"type":26,"value":4418}," -",{"type":30,"tagName":97,"properties":4420,"children":4421},{"style":222},[4422],{"type":26,"value":4423},"Infinity",{"type":30,"tagName":97,"properties":4425,"children":4426},{"style":181},[4427],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4430,"children":4431},{"class":99},[4432,4436,4441,4445,4450],{"type":30,"tagName":97,"properties":4433,"children":4434},{"style":187},[4435],{"type":26,"value":4404},{"type":30,"tagName":97,"properties":4437,"children":4438},{"style":181},[4439],{"type":26,"value":4440}," l ",{"type":30,"tagName":97,"properties":4442,"children":4443},{"style":187},[4444],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4446,"children":4447},{"style":222},[4448],{"type":26,"value":4449}," Infinity",{"type":30,"tagName":97,"properties":4451,"children":4452},{"style":181},[4453],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4456,"children":4457},{"class":99},[4458,4463,4467,4471,4475,4479,4483,4487,4491,4496,4501],{"type":30,"tagName":97,"properties":4459,"children":4460},{"style":187},[4461],{"type":26,"value":4462},"    for",{"type":30,"tagName":97,"properties":4464,"children":4465},{"style":181},[4466],{"type":26,"value":1761},{"type":30,"tagName":97,"properties":4468,"children":4469},{"style":187},[4470],{"type":26,"value":3019},{"type":30,"tagName":97,"properties":4472,"children":4473},{"style":181},[4474],{"type":26,"value":1770},{"type":30,"tagName":97,"properties":4476,"children":4477},{"style":187},[4478],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4480,"children":4481},{"style":222},[4482],{"type":26,"value":1779},{"type":30,"tagName":97,"properties":4484,"children":4485},{"style":181},[4486],{"type":26,"value":1784},{"type":30,"tagName":97,"properties":4488,"children":4489},{"style":187},[4490],{"type":26,"value":806},{"type":30,"tagName":97,"properties":4492,"children":4493},{"style":181},[4494],{"type":26,"value":4495}," n; i",{"type":30,"tagName":97,"properties":4497,"children":4498},{"style":187},[4499],{"type":26,"value":4500},"++",{"type":30,"tagName":97,"properties":4502,"children":4503},{"style":181},[4504],{"type":26,"value":1822},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4507,"children":4508},{"class":99},[4509,4514,4519,4523,4528,4532],{"type":30,"tagName":97,"properties":4510,"children":4511},{"style":187},[4512],{"type":26,"value":4513},"      if",{"type":30,"tagName":97,"properties":4515,"children":4516},{"style":181},[4517],{"type":26,"value":4518}," (highs[i] ",{"type":30,"tagName":97,"properties":4520,"children":4521},{"style":187},[4522],{"type":26,"value":838},{"type":30,"tagName":97,"properties":4524,"children":4525},{"style":181},[4526],{"type":26,"value":4527}," h) h ",{"type":30,"tagName":97,"properties":4529,"children":4530},{"style":187},[4531],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4533,"children":4534},{"style":181},[4535],{"type":26,"value":4536}," highs[i];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4539,"children":4540},{"class":99},[4541,4545,4550,4554,4559,4563],{"type":30,"tagName":97,"properties":4542,"children":4543},{"style":187},[4544],{"type":26,"value":4513},{"type":30,"tagName":97,"properties":4546,"children":4547},{"style":181},[4548],{"type":26,"value":4549}," (lows[i] ",{"type":30,"tagName":97,"properties":4551,"children":4552},{"style":187},[4553],{"type":26,"value":806},{"type":30,"tagName":97,"properties":4555,"children":4556},{"style":181},[4557],{"type":26,"value":4558}," l) l ",{"type":30,"tagName":97,"properties":4560,"children":4561},{"style":187},[4562],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4564,"children":4565},{"style":181},[4566],{"type":26,"value":4567}," lows[i];",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4570,"children":4571},{"class":99},[4572],{"type":30,"tagName":97,"properties":4573,"children":4574},{"style":181},[4575],{"type":26,"value":4576},"    }",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4579,"children":4580},{"class":99},[4581,4586,4590],{"type":30,"tagName":97,"properties":4582,"children":4583},{"style":181},[4584],{"type":26,"value":4585},"    windowHigh ",{"type":30,"tagName":97,"properties":4587,"children":4588},{"style":187},[4589],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4591,"children":4592},{"style":181},[4593],{"type":26,"value":4594}," h;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4597,"children":4598},{"class":99},[4599,4604,4608],{"type":30,"tagName":97,"properties":4600,"children":4601},{"style":181},[4602],{"type":26,"value":4603},"    windowLow ",{"type":30,"tagName":97,"properties":4605,"children":4606},{"style":187},[4607],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4609,"children":4610},{"style":181},[4611],{"type":26,"value":4612}," l;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4615,"children":4616},{"class":99},[4617],{"type":30,"tagName":97,"properties":4618,"children":4619},{"style":181},[4620],{"type":26,"value":820},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4623,"children":4624},{"class":99},[4625,4630,4634],{"type":30,"tagName":97,"properties":4626,"children":4627},{"style":181},[4628],{"type":26,"value":4629},"  prevOpen ",{"type":30,"tagName":97,"properties":4631,"children":4632},{"style":187},[4633],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4635,"children":4636},{"style":181},[4637],{"type":26,"value":4638}," open;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4641,"children":4642},{"class":99},[4643,4648,4652],{"type":30,"tagName":97,"properties":4644,"children":4645},{"style":181},[4646],{"type":26,"value":4647},"  prevHigh ",{"type":30,"tagName":97,"properties":4649,"children":4650},{"style":187},[4651],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4653,"children":4654},{"style":181},[4655],{"type":26,"value":4238},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4658,"children":4659},{"class":99},[4660,4665,4669],{"type":30,"tagName":97,"properties":4661,"children":4662},{"style":181},[4663],{"type":26,"value":4664},"  prevLow ",{"type":30,"tagName":97,"properties":4666,"children":4667},{"style":187},[4668],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4670,"children":4671},{"style":181},[4672],{"type":26,"value":4256},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4675,"children":4676},{"class":99},[4677,4682,4686],{"type":30,"tagName":97,"properties":4678,"children":4679},{"style":181},[4680],{"type":26,"value":4681},"  prevClose ",{"type":30,"tagName":97,"properties":4683,"children":4684},{"style":187},[4685],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4687,"children":4688},{"style":181},[4689],{"type":26,"value":4690}," close;",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4693,"children":4694},{"class":99},[4695,4699,4703],{"type":30,"tagName":97,"properties":4696,"children":4697},{"style":187},[4698],{"type":26,"value":829},{"type":30,"tagName":97,"properties":4700,"children":4701},{"style":222},[4702],{"type":26,"value":1817},{"type":30,"tagName":97,"properties":4704,"children":4705},{"style":181},[4706],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4709,"children":4710},{"class":99},[4711],{"type":30,"tagName":97,"properties":4712,"children":4713},{"style":181},[4714],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4717,"children":4718},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":4721,"children":4722},{"class":99},[4723,4727,4731,4736,4740,4744,4748],{"type":30,"tagName":97,"properties":4724,"children":4725},{"style":187},[4726],{"type":26,"value":3525},{"type":30,"tagName":97,"properties":4728,"children":4729},{"style":187},[4730],{"type":26,"value":3530},{"type":30,"tagName":97,"properties":4732,"children":4733},{"style":175},[4734],{"type":26,"value":4735}," finalize",{"type":30,"tagName":97,"properties":4737,"children":4738},{"style":181},[4739],{"type":26,"value":3540},{"type":30,"tagName":97,"properties":4741,"children":4742},{"style":187},[4743],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":4745,"children":4746},{"style":222},[4747],{"type":26,"value":3549},{"type":30,"tagName":97,"properties":4749,"children":4750},{"style":181},[4751],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4754,"children":4755},{"class":99},[4756,4761],{"type":30,"tagName":97,"properties":4757,"children":4758},{"style":175},[4759],{"type":26,"value":4760},"  out_demand_top",{"type":30,"tagName":97,"properties":4762,"children":4763},{"style":181},[4764],{"type":26,"value":4765},"(dTop);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4768,"children":4769},{"class":99},[4770,4775],{"type":30,"tagName":97,"properties":4771,"children":4772},{"style":175},[4773],{"type":26,"value":4774},"  out_demand_bottom",{"type":30,"tagName":97,"properties":4776,"children":4777},{"style":181},[4778],{"type":26,"value":4779},"(dBottom);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4782,"children":4783},{"class":99},[4784,4789],{"type":30,"tagName":97,"properties":4785,"children":4786},{"style":175},[4787],{"type":26,"value":4788},"  out_demand_live",{"type":30,"tagName":97,"properties":4790,"children":4791},{"style":181},[4792],{"type":26,"value":4793},"(dLive);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4796,"children":4797},{"class":99},[4798,4803],{"type":30,"tagName":97,"properties":4799,"children":4800},{"style":175},[4801],{"type":26,"value":4802},"  out_supply_top",{"type":30,"tagName":97,"properties":4804,"children":4805},{"style":181},[4806],{"type":26,"value":4807},"(sTop);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4810,"children":4811},{"class":99},[4812,4817],{"type":30,"tagName":97,"properties":4813,"children":4814},{"style":175},[4815],{"type":26,"value":4816},"  out_supply_bottom",{"type":30,"tagName":97,"properties":4818,"children":4819},{"style":181},[4820],{"type":26,"value":4821},"(sBottom);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4824,"children":4825},{"class":99},[4826,4831],{"type":30,"tagName":97,"properties":4827,"children":4828},{"style":175},[4829],{"type":26,"value":4830},"  out_supply_live",{"type":30,"tagName":97,"properties":4832,"children":4833},{"style":181},[4834],{"type":26,"value":4835},"(sLive);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4838,"children":4839},{"class":99},[4840,4845,4850,4854],{"type":30,"tagName":97,"properties":4841,"children":4842},{"style":175},[4843],{"type":26,"value":4844},"  out_active_zones",{"type":30,"tagName":97,"properties":4846,"children":4847},{"style":181},[4848],{"type":26,"value":4849},"(dLive ",{"type":30,"tagName":97,"properties":4851,"children":4852},{"style":187},[4853],{"type":26,"value":1315},{"type":30,"tagName":97,"properties":4855,"children":4856},{"style":181},[4857],{"type":26,"value":4858}," sLive);",{"type":26,"value":27},{"type":30,"tagName":97,"properties":4861,"children":4862},{"class":99},[4863,4868],{"type":30,"tagName":97,"properties":4864,"children":4865},{"style":175},[4866],{"type":26,"value":4867},"  emitRow",{"type":30,"tagName":97,"properties":4869,"children":4870},{"style":181},[4871],{"type":26,"value":1893},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4874,"children":4875},{"class":99},[4876],{"type":30,"tagName":97,"properties":4877,"children":4878},{"style":181},[4879],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4882,"children":4883},{"class":99},[],{"type":26,"value":27},{"type":30,"tagName":97,"properties":4886,"children":4887},{"class":99},[4888,4892,4896,4901,4905,4909,4913],{"type":30,"tagName":97,"properties":4889,"children":4890},{"style":187},[4891],{"type":26,"value":3525},{"type":30,"tagName":97,"properties":4893,"children":4894},{"style":187},[4895],{"type":26,"value":3530},{"type":30,"tagName":97,"properties":4897,"children":4898},{"style":175},[4899],{"type":26,"value":4900}," reset",{"type":30,"tagName":97,"properties":4902,"children":4903},{"style":181},[4904],{"type":26,"value":3540},{"type":30,"tagName":97,"properties":4906,"children":4907},{"style":187},[4908],{"type":26,"value":3029},{"type":30,"tagName":97,"properties":4910,"children":4911},{"style":222},[4912],{"type":26,"value":3549},{"type":30,"tagName":97,"properties":4914,"children":4915},{"style":181},[4916],{"type":26,"value":696},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4919,"children":4920},{"class":99},[4921,4925,4929,4933],{"type":30,"tagName":97,"properties":4922,"children":4923},{"style":181},[4924],{"type":26,"value":4265},{"type":30,"tagName":97,"properties":4926,"children":4927},{"style":187},[4928],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4930,"children":4931},{"style":222},[4932],{"type":26,"value":1779},{"type":30,"tagName":97,"properties":4934,"children":4935},{"style":181},[4936],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4939,"children":4940},{"class":99},[4941,4946,4950,4954],{"type":30,"tagName":97,"properties":4942,"children":4943},{"style":181},[4944],{"type":26,"value":4945},"  count ",{"type":30,"tagName":97,"properties":4947,"children":4948},{"style":187},[4949],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4951,"children":4952},{"style":222},[4953],{"type":26,"value":1779},{"type":30,"tagName":97,"properties":4955,"children":4956},{"style":181},[4957],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4960,"children":4961},{"class":99},[4962,4966,4970,4974],{"type":30,"tagName":97,"properties":4963,"children":4964},{"style":181},[4965],{"type":26,"value":4341},{"type":30,"tagName":97,"properties":4967,"children":4968},{"style":187},[4969],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4971,"children":4972},{"style":222},[4973],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":4975,"children":4976},{"style":181},[4977],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":4980,"children":4981},{"class":99},[4982,4986,4990,4994],{"type":30,"tagName":97,"properties":4983,"children":4984},{"style":181},[4985],{"type":26,"value":4362},{"type":30,"tagName":97,"properties":4987,"children":4988},{"style":187},[4989],{"type":26,"value":190},{"type":30,"tagName":97,"properties":4991,"children":4992},{"style":222},[4993],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":4995,"children":4996},{"style":181},[4997],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5000,"children":5001},{"class":99},[5002,5006,5010,5014],{"type":30,"tagName":97,"properties":5003,"children":5004},{"style":181},[5005],{"type":26,"value":4629},{"type":30,"tagName":97,"properties":5007,"children":5008},{"style":187},[5009],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5011,"children":5012},{"style":222},[5013],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5015,"children":5016},{"style":181},[5017],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5020,"children":5021},{"class":99},[5022,5026,5030,5034],{"type":30,"tagName":97,"properties":5023,"children":5024},{"style":181},[5025],{"type":26,"value":4647},{"type":30,"tagName":97,"properties":5027,"children":5028},{"style":187},[5029],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5031,"children":5032},{"style":222},[5033],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5035,"children":5036},{"style":181},[5037],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5040,"children":5041},{"class":99},[5042,5046,5050,5054],{"type":30,"tagName":97,"properties":5043,"children":5044},{"style":181},[5045],{"type":26,"value":4664},{"type":30,"tagName":97,"properties":5047,"children":5048},{"style":187},[5049],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5051,"children":5052},{"style":222},[5053],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5055,"children":5056},{"style":181},[5057],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5060,"children":5061},{"class":99},[5062,5066,5070,5074],{"type":30,"tagName":97,"properties":5063,"children":5064},{"style":181},[5065],{"type":26,"value":4681},{"type":30,"tagName":97,"properties":5067,"children":5068},{"style":187},[5069],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5071,"children":5072},{"style":222},[5073],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5075,"children":5076},{"style":181},[5077],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5080,"children":5081},{"class":99},[5082,5087,5091,5095],{"type":30,"tagName":97,"properties":5083,"children":5084},{"style":181},[5085],{"type":26,"value":5086},"  dTop ",{"type":30,"tagName":97,"properties":5088,"children":5089},{"style":187},[5090],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5092,"children":5093},{"style":222},[5094],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5096,"children":5097},{"style":181},[5098],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5101,"children":5102},{"class":99},[5103,5108,5112,5116],{"type":30,"tagName":97,"properties":5104,"children":5105},{"style":181},[5106],{"type":26,"value":5107},"  dBottom ",{"type":30,"tagName":97,"properties":5109,"children":5110},{"style":187},[5111],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5113,"children":5114},{"style":222},[5115],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5117,"children":5118},{"style":181},[5119],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5122,"children":5123},{"class":99},[5124,5129,5133,5137],{"type":30,"tagName":97,"properties":5125,"children":5126},{"style":181},[5127],{"type":26,"value":5128},"  dLive ",{"type":30,"tagName":97,"properties":5130,"children":5131},{"style":187},[5132],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5134,"children":5135},{"style":222},[5136],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":5138,"children":5139},{"style":181},[5140],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5143,"children":5144},{"class":99},[5145,5150,5154,5158],{"type":30,"tagName":97,"properties":5146,"children":5147},{"style":181},[5148],{"type":26,"value":5149},"  sTop ",{"type":30,"tagName":97,"properties":5151,"children":5152},{"style":187},[5153],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5155,"children":5156},{"style":222},[5157],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5159,"children":5160},{"style":181},[5161],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5164,"children":5165},{"class":99},[5166,5171,5175,5179],{"type":30,"tagName":97,"properties":5167,"children":5168},{"style":181},[5169],{"type":26,"value":5170},"  sBottom ",{"type":30,"tagName":97,"properties":5172,"children":5173},{"style":187},[5174],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5176,"children":5177},{"style":222},[5178],{"type":26,"value":3144},{"type":30,"tagName":97,"properties":5180,"children":5181},{"style":181},[5182],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5185,"children":5186},{"class":99},[5187,5192,5196,5200],{"type":30,"tagName":97,"properties":5188,"children":5189},{"style":181},[5190],{"type":26,"value":5191},"  sLive ",{"type":30,"tagName":97,"properties":5193,"children":5194},{"style":187},[5195],{"type":26,"value":190},{"type":30,"tagName":97,"properties":5197,"children":5198},{"style":222},[5199],{"type":26,"value":3409},{"type":30,"tagName":97,"properties":5201,"children":5202},{"style":181},[5203],{"type":26,"value":2222},{"type":26,"value":27},{"type":30,"tagName":97,"properties":5206,"children":5207},{"class":99},[5208],{"type":30,"tagName":97,"properties":5209,"children":5210},{"style":181},[5211],{"type":26,"value":750},{"type":26,"value":27},{"type":30,"tagName":64,"properties":5214,"children":5216,"position":5226},{"id":5215},"how-it-works",[5217],{"type":26,"value":5218,"position":5219},"How it works",{"start":5220,"end":5223},{"line":5221,"column":73,"offset":5222},217,7900,{"line":5221,"column":5224,"offset":5225},16,7912,{"start":5227,"end":5229},{"line":5221,"column":20,"offset":5228},7897,{"line":5221,"column":5224,"offset":5225},{"type":26,"value":27},{"type":30,"tagName":31,"properties":5232,"children":5233,"position":5281},{},[5234,5254,5261,5274],{"type":30,"tagName":5235,"properties":5236,"children":5237,"position":5248},"strong",{},[5238],{"type":26,"value":5239,"position":5240},"State shaped like the problem.",{"start":5241,"end":5245},{"line":5242,"column":5243,"offset":5244},219,3,7916,{"line":5242,"column":5246,"offset":5247},33,7946,{"start":5249,"end":5251},{"line":5242,"column":20,"offset":5250},7914,{"line":5242,"column":5252,"offset":5253},35,7948,{"type":26,"value":5255,"position":5256}," Each side has three numbers: the zone's top, its bottom, and whether it is alive. They are outputs, so the sheet can draw from them, and they are module-level variables, so they survive from bar to bar. The kScript bundled the same facts into a ",{"start":5257,"end":5258},{"line":5242,"column":5252,"offset":5253},{"line":5242,"column":5259,"offset":5260},281,8194,{"type":30,"tagName":93,"properties":5262,"children":5263,"position":5271},{},[5264],{"type":26,"value":5265,"position":5266},"Zone",{"start":5267,"end":5268},{"line":5242,"column":5259,"offset":5260},{"line":5242,"column":5269,"offset":5270},287,8200,{"start":5272,"end":5273},{"line":5242,"column":5259,"offset":5260},{"line":5242,"column":5269,"offset":5270},{"type":26,"value":5275,"position":5276}," struct; the Indicator spreads them over named outputs because the box has to read them by name.",{"start":5277,"end":5278},{"line":5242,"column":5269,"offset":5270},{"line":5242,"column":5279,"offset":5280},383,8296,{"start":5282,"end":5283},{"line":5242,"column":20,"offset":5250},{"line":5242,"column":5279,"offset":5280},{"type":26,"value":27},{"type":30,"tagName":31,"properties":5286,"children":5287,"position":5448},{},[5288,5305,5312,5325,5332,5345,5352,5365,5372,5383,5390,5403,5410,5423,5430,5442],{"type":30,"tagName":5235,"properties":5289,"children":5290,"position":5299},{},[5291],{"type":26,"value":5292,"position":5293},"Birth.",{"start":5294,"end":5297},{"line":5295,"column":5243,"offset":5296},221,8300,{"line":5295,"column":72,"offset":5298},8306,{"start":5300,"end":5302},{"line":5295,"column":20,"offset":5301},8298,{"line":5295,"column":5303,"offset":5304},11,8308,{"type":26,"value":5306,"position":5307}," ",{"start":5308,"end":5309},{"line":5295,"column":5303,"offset":5304},{"line":5295,"column":5310,"offset":5311},12,8309,{"type":30,"tagName":93,"properties":5313,"children":5314,"position":5322},{},[5315],{"type":26,"value":5316,"position":5317},"highest",{"start":5318,"end":5319},{"line":5295,"column":5310,"offset":5311},{"line":5295,"column":5320,"offset":5321},21,8318,{"start":5323,"end":5324},{"line":5295,"column":5310,"offset":5311},{"line":5295,"column":5320,"offset":5321},{"type":26,"value":5326,"position":5327}," and ",{"start":5328,"end":5329},{"line":5295,"column":5320,"offset":5321},{"line":5295,"column":5330,"offset":5331},26,8323,{"type":30,"tagName":93,"properties":5333,"children":5334,"position":5342},{},[5335],{"type":26,"value":5336,"position":5337},"lowest",{"start":5338,"end":5339},{"line":5295,"column":5330,"offset":5331},{"line":5295,"column":5340,"offset":5341},34,8331,{"start":5343,"end":5344},{"line":5295,"column":5330,"offset":5331},{"line":5295,"column":5340,"offset":5341},{"type":26,"value":5346,"position":5347}," over the lookback window are a ring buffer of highs and lows plus a scan: the two ",{"start":5348,"end":5349},{"line":5295,"column":5340,"offset":5341},{"line":5295,"column":5350,"offset":5351},117,8414,{"type":30,"tagName":93,"properties":5353,"children":5354,"position":5362},{},[5355],{"type":26,"value":5356,"position":5357},"StaticArray\u003Cf64>",{"start":5358,"end":5359},{"line":5295,"column":5350,"offset":5351},{"line":5295,"column":5360,"offset":5361},135,8432,{"start":5363,"end":5364},{"line":5295,"column":5350,"offset":5351},{"line":5295,"column":5360,"offset":5361},{"type":26,"value":5366,"position":5367}," buffers are allocated once, at module start, sized from the param's ",{"start":5368,"end":5369},{"line":5295,"column":5360,"offset":5361},{"line":5295,"column":5370,"offset":5371},204,8501,{"type":30,"tagName":93,"properties":5373,"children":5374,"position":5380},{},[5375],{"type":26,"value":1238,"position":5376},{"start":5377,"end":5378},{"line":5295,"column":5370,"offset":5371},{"line":5295,"column":41,"offset":5379},8506,{"start":5381,"end":5382},{"line":5295,"column":5370,"offset":5371},{"line":5295,"column":41,"offset":5379},{"type":26,"value":5384,"position":5385},", and ",{"start":5386,"end":5387},{"line":5295,"column":41,"offset":5379},{"line":5295,"column":5388,"offset":5389},215,8512,{"type":30,"tagName":93,"properties":5391,"children":5392,"position":5400},{},[5393],{"type":26,"value":5394,"position":5395},"cursor",{"start":5396,"end":5397},{"line":5295,"column":5388,"offset":5389},{"line":5295,"column":5398,"offset":5399},223,8520,{"start":5401,"end":5402},{"line":5295,"column":5388,"offset":5389},{"line":5295,"column":5398,"offset":5399},{"type":26,"value":5404,"position":5405}," walks them. A pivot is confirmed one bar after it prints: the previous bar led its window and the current bar turned back. When a pivot fires and that side has no live zone, the zone takes its bounds from the pivot bar's body and wick and its ",{"start":5406,"end":5407},{"line":5295,"column":5398,"offset":5399},{"line":5295,"column":5408,"offset":5409},467,8764,{"type":30,"tagName":93,"properties":5411,"children":5412,"position":5420},{},[5413],{"type":26,"value":5414,"position":5415},"live",{"start":5416,"end":5417},{"line":5295,"column":5408,"offset":5409},{"line":5295,"column":5418,"offset":5419},473,8770,{"start":5421,"end":5422},{"line":5295,"column":5408,"offset":5409},{"line":5295,"column":5418,"offset":5419},{"type":26,"value":5424,"position":5425}," flag flips to ",{"start":5426,"end":5427},{"line":5295,"column":5418,"offset":5419},{"line":5295,"column":5428,"offset":5429},488,8785,{"type":30,"tagName":93,"properties":5431,"children":5432,"position":5439},{},[5433],{"type":26,"value":352,"position":5434},{"start":5435,"end":5436},{"line":5295,"column":5428,"offset":5429},{"line":5295,"column":5437,"offset":5438},491,8788,{"start":5440,"end":5441},{"line":5295,"column":5428,"offset":5429},{"line":5295,"column":5437,"offset":5438},{"type":26,"value":2049,"position":5443},{"start":5444,"end":5445},{"line":5295,"column":5437,"offset":5438},{"line":5295,"column":5446,"offset":5447},492,8789,{"start":5449,"end":5450},{"line":5295,"column":20,"offset":5301},{"line":5295,"column":5446,"offset":5447},{"type":26,"value":27},{"type":30,"tagName":31,"properties":5453,"children":5454,"position":5553},{},[5455,5470,5477,5489,5495,5507,5514,5527,5534,5547],{"type":30,"tagName":5235,"properties":5456,"children":5457,"position":5465},{},[5458],{"type":26,"value":5459,"position":5460},"Death is a gate turning off.",{"start":5461,"end":5463},{"line":5398,"column":5243,"offset":5462},8793,{"line":5398,"column":76,"offset":5464},8821,{"start":5466,"end":5468},{"line":5398,"column":20,"offset":5467},8791,{"line":5398,"column":5246,"offset":5469},8823,{"type":26,"value":5471,"position":5472}," Every bar checks whether the close went through the zone's far edge. A mitigated zone sets ",{"start":5473,"end":5474},{"line":5398,"column":5246,"offset":5469},{"line":5398,"column":5475,"offset":5476},125,8915,{"type":30,"tagName":93,"properties":5478,"children":5479,"position":5486},{},[5480],{"type":26,"value":5414,"position":5481},{"start":5482,"end":5483},{"line":5398,"column":5475,"offset":5476},{"line":5398,"column":5484,"offset":5485},131,8921,{"start":5487,"end":5488},{"line":5398,"column":5475,"offset":5476},{"line":5398,"column":5484,"offset":5485},{"type":26,"value":5490,"position":5491}," to ",{"start":5492,"end":5493},{"line":5398,"column":5484,"offset":5485},{"line":5398,"column":5360,"offset":5494},8925,{"type":30,"tagName":93,"properties":5496,"children":5497,"position":5504},{},[5498],{"type":26,"value":90,"position":5499},{"start":5500,"end":5501},{"line":5398,"column":5360,"offset":5494},{"line":5398,"column":5502,"offset":5503},138,8928,{"start":5505,"end":5506},{"line":5398,"column":5360,"offset":5494},{"line":5398,"column":5502,"offset":5503},{"type":26,"value":5508,"position":5509},", and the box's ",{"start":5510,"end":5511},{"line":5398,"column":5502,"offset":5503},{"line":5398,"column":5512,"offset":5513},154,8944,{"type":30,"tagName":93,"properties":5515,"children":5516,"position":5524},{},[5517],{"type":26,"value":5518,"position":5519},"when",{"start":5520,"end":5521},{"line":5398,"column":5512,"offset":5513},{"line":5398,"column":5522,"offset":5523},160,8950,{"start":5525,"end":5526},{"line":5398,"column":5512,"offset":5513},{"line":5398,"column":5522,"offset":5523},{"type":26,"value":5528,"position":5529}," gate stops drawing from that bar on. Nothing is deleted: the bars the zone was alive on keep their slices, which is exactly the history a kScript box erased when it called ",{"start":5530,"end":5531},{"line":5398,"column":5522,"offset":5523},{"line":5398,"column":5532,"offset":5533},333,9123,{"type":30,"tagName":93,"properties":5535,"children":5536,"position":5544},{},[5537],{"type":26,"value":5538,"position":5539},"delete()",{"start":5540,"end":5541},{"line":5398,"column":5532,"offset":5533},{"line":5398,"column":5542,"offset":5543},343,9133,{"start":5545,"end":5546},{"line":5398,"column":5532,"offset":5533},{"line":5398,"column":5542,"offset":5543},{"type":26,"value":2049,"position":5548},{"start":5549,"end":5550},{"line":5398,"column":5542,"offset":5543},{"line":5398,"column":5551,"offset":5552},344,9134,{"start":5554,"end":5555},{"line":5398,"column":20,"offset":5467},{"line":5398,"column":5551,"offset":5552},{"type":26,"value":27},{"type":30,"tagName":31,"properties":5558,"children":5559,"position":5717},{},[5560,5577,5583,5596,5603,5615,5621,5634,5641,5653,5660,5672,5679,5691,5697,5710],{"type":30,"tagName":5235,"properties":5561,"children":5562,"position":5571},{},[5563],{"type":26,"value":5564,"position":5565},"The box.",{"start":5566,"end":5569},{"line":5567,"column":5243,"offset":5568},225,9138,{"line":5567,"column":5303,"offset":5570},9146,{"start":5572,"end":5574},{"line":5567,"column":20,"offset":5573},9136,{"line":5567,"column":5575,"offset":5576},13,9148,{"type":26,"value":5306,"position":5578},{"start":5579,"end":5580},{"line":5567,"column":5575,"offset":5576},{"line":5567,"column":5581,"offset":5582},14,9149,{"type":30,"tagName":93,"properties":5584,"children":5585,"position":5593},{},[5586],{"type":26,"value":5587,"position":5588},"box(\"demand_zone\", ...)",{"start":5589,"end":5590},{"line":5567,"column":5581,"offset":5582},{"line":5567,"column":5591,"offset":5592},39,9174,{"start":5594,"end":5595},{"line":5567,"column":5581,"offset":5582},{"line":5567,"column":5591,"offset":5592},{"type":26,"value":5597,"position":5598}," with ",{"start":5599,"end":5600},{"line":5567,"column":5591,"offset":5592},{"line":5567,"column":5601,"offset":5602},45,9180,{"type":30,"tagName":93,"properties":5604,"children":5605,"position":5612},{},[5606],{"type":26,"value":2212,"position":5607},{"start":5608,"end":5609},{"line":5567,"column":5601,"offset":5602},{"line":5567,"column":5610,"offset":5611},51,9186,{"start":5613,"end":5614},{"line":5567,"column":5601,"offset":5602},{"line":5567,"column":5610,"offset":5611},{"type":26,"value":5326,"position":5616},{"start":5617,"end":5618},{"line":5567,"column":5610,"offset":5611},{"line":5567,"column":5619,"offset":5620},56,9191,{"type":30,"tagName":93,"properties":5622,"children":5623,"position":5631},{},[5624],{"type":26,"value":5625,"position":5626},"to",{"start":5627,"end":5628},{"line":5567,"column":5619,"offset":5620},{"line":5567,"column":5629,"offset":5630},60,9195,{"start":5632,"end":5633},{"line":5567,"column":5619,"offset":5620},{"line":5567,"column":5629,"offset":5630},{"type":26,"value":5635,"position":5636}," at ",{"start":5637,"end":5638},{"line":5567,"column":5629,"offset":5630},{"line":5567,"column":5639,"offset":5640},64,9199,{"type":30,"tagName":93,"properties":5642,"children":5643,"position":5650},{},[5644],{"type":26,"value":90,"position":5645},{"start":5646,"end":5647},{"line":5567,"column":5639,"offset":5640},{"line":5567,"column":5648,"offset":5649},67,9202,{"start":5651,"end":5652},{"line":5567,"column":5639,"offset":5640},{"line":5567,"column":5648,"offset":5649},{"type":26,"value":5654,"position":5655}," draws one bar-wide slice on every bar where ",{"start":5656,"end":5657},{"line":5567,"column":5648,"offset":5649},{"line":5567,"column":5658,"offset":5659},112,9247,{"type":30,"tagName":93,"properties":5661,"children":5662,"position":5669},{},[5663],{"type":26,"value":5664,"position":5665},"demand_live",{"start":5666,"end":5667},{"line":5567,"column":5658,"offset":5659},{"line":5567,"column":5475,"offset":5668},9260,{"start":5670,"end":5671},{"line":5567,"column":5658,"offset":5659},{"line":5567,"column":5475,"offset":5668},{"type":26,"value":5673,"position":5674}," is ",{"start":5675,"end":5676},{"line":5567,"column":5475,"offset":5668},{"line":5567,"column":5677,"offset":5678},129,9264,{"type":30,"tagName":93,"properties":5680,"children":5681,"position":5688},{},[5682],{"type":26,"value":352,"position":5683},{"start":5684,"end":5685},{"line":5567,"column":5677,"offset":5678},{"line":5567,"column":5686,"offset":5687},132,9267,{"start":5689,"end":5690},{"line":5567,"column":5677,"offset":5678},{"line":5567,"column":5686,"offset":5687},{"type":26,"value":5692,"position":5693},"; the slices tile into a band that starts at the pivot and ends on the mitigation bar. ",{"start":5694,"end":5695},{"line":5567,"column":5686,"offset":5687},{"line":5567,"column":5242,"offset":5696},9354,{"type":30,"tagName":93,"properties":5698,"children":5699,"position":5707},{},[5700],{"type":26,"value":5701,"position":5702},"borderWidth: 0",{"start":5703,"end":5704},{"line":5567,"column":5242,"offset":5696},{"line":5567,"column":5705,"offset":5706},235,9370,{"start":5708,"end":5709},{"line":5567,"column":5242,"offset":5696},{"line":5567,"column":5705,"offset":5706},{"type":26,"value":5711,"position":5712}," keeps the slices seamless. The coordinates are output handles bound to consts, which is how a box names an output.",{"start":5713,"end":5714},{"line":5567,"column":5705,"offset":5706},{"line":5567,"column":5715,"offset":5716},350,9485,{"start":5718,"end":5719},{"line":5567,"column":20,"offset":5573},{"line":5567,"column":5715,"offset":5716},{"type":26,"value":27},{"type":30,"tagName":31,"properties":5722,"children":5723,"position":5785},{},[5724,5741,5747,5759,5765,5778],{"type":30,"tagName":5235,"properties":5725,"children":5726,"position":5735},{},[5727],{"type":26,"value":5728,"position":5729},"The dashboard.",{"start":5730,"end":5733},{"line":5731,"column":5243,"offset":5732},227,9489,{"line":5731,"column":2180,"offset":5734},9503,{"start":5736,"end":5738},{"line":5731,"column":20,"offset":5737},9487,{"line":5731,"column":5739,"offset":5740},19,9505,{"type":26,"value":5306,"position":5742},{"start":5743,"end":5744},{"line":5731,"column":5739,"offset":5740},{"line":5731,"column":5745,"offset":5746},20,9506,{"type":30,"tagName":93,"properties":5748,"children":5749,"position":5756},{},[5750],{"type":26,"value":5751,"position":5752},"active_zones",{"start":5753,"end":5754},{"line":5731,"column":5745,"offset":5746},{"line":5731,"column":5340,"offset":5755},9520,{"start":5757,"end":5758},{"line":5731,"column":5745,"offset":5746},{"line":5731,"column":5340,"offset":5755},{"type":26,"value":5673,"position":5760},{"start":5761,"end":5762},{"line":5731,"column":5340,"offset":5755},{"line":5731,"column":5763,"offset":5764},38,9524,{"type":30,"tagName":93,"properties":5766,"children":5767,"position":5775},{},[5768],{"type":26,"value":5769,"position":5770},"demand_live + supply_live",{"start":5771,"end":5772},{"line":5731,"column":5763,"offset":5764},{"line":5731,"column":5773,"offset":5774},65,9551,{"start":5776,"end":5777},{"line":5731,"column":5763,"offset":5764},{"line":5731,"column":5773,"offset":5774},{"type":26,"value":5779,"position":5780},", a data-only count on every bar. The kScript printed it once, in a table; here it is a metric you can read back or watch.",{"start":5781,"end":5782},{"line":5731,"column":5773,"offset":5774},{"line":5731,"column":5783,"offset":5784},187,9673,{"start":5786,"end":5787},{"line":5731,"column":20,"offset":5737},{"line":5731,"column":5783,"offset":5784},{"type":26,"value":27},{"type":30,"tagName":64,"properties":5790,"children":5792,"position":5802},{"id":5791},"what-changed-in-the-port",[5793],{"type":26,"value":5794,"position":5795},"What changed in the port",{"start":5796,"end":5799},{"line":5797,"column":73,"offset":5798},229,9678,{"line":5797,"column":5800,"offset":5801},28,9702,{"start":5803,"end":5805},{"line":5797,"column":20,"offset":5804},9675,{"line":5797,"column":5800,"offset":5801},{"type":26,"value":27},{"type":30,"tagName":5808,"properties":5809,"children":5810,"position":6093},"ul",{},[5811,5812,5904,5905,5940,5941,6056,6057,6092],{"type":26,"value":27},{"type":30,"tagName":5813,"properties":5814,"children":5815,"position":5900},"li",{},[5816,5831,5836,5848,5855,5873,5880,5893],{"type":30,"tagName":93,"properties":5817,"children":5818,"position":5828},{},[5819],{"type":26,"value":5820,"position":5821},"persist zones = []",{"start":5822,"end":5825},{"line":5823,"column":5243,"offset":5824},231,9706,{"line":5823,"column":5826,"offset":5827},23,9726,{"start":5829,"end":5830},{"line":5823,"column":5243,"offset":5824},{"line":5823,"column":5826,"offset":5827},{"type":26,"value":5326,"position":5832},{"start":5833,"end":5834},{"line":5823,"column":5826,"offset":5827},{"line":5823,"column":5800,"offset":5835},9731,{"type":30,"tagName":93,"properties":5837,"children":5838,"position":5845},{},[5839],{"type":26,"value":5840,"position":5841},"box.new(...).delete()",{"start":5842,"end":5843},{"line":5823,"column":5800,"offset":5835},{"line":5823,"column":5610,"offset":5844},9754,{"start":5846,"end":5847},{"line":5823,"column":5800,"offset":5835},{"line":5823,"column":5610,"offset":5844},{"type":26,"value":5849,"position":5850}," became a fixed set of declared boxes gated per bar. There is no handle to a drawn shape and no collection of them; what a bar draws is decided on that bar (",{"start":5851,"end":5852},{"line":5823,"column":5610,"offset":5844},{"line":5823,"column":5853,"offset":5854},208,9911,{"type":30,"tagName":5856,"properties":5857,"children":5859,"position":5868},"a",{"href":5858},"../functions/drawing-objects.md",[5860],{"type":26,"value":5861,"position":5862},"Drawing objects",{"start":5863,"end":5865},{"line":5823,"column":41,"offset":5864},9912,{"line":5823,"column":5866,"offset":5867},224,9927,{"start":5869,"end":5870},{"line":5823,"column":5853,"offset":5854},{"line":5823,"column":5871,"offset":5872},258,9961,{"type":26,"value":5874,"position":5875},"). That is why this port keeps one zone per side, the kScript with ",{"start":5876,"end":5877},{"line":5823,"column":5871,"offset":5872},{"line":5823,"column":5878,"offset":5879},325,10028,{"type":30,"tagName":93,"properties":5881,"children":5882,"position":5890},{},[5883],{"type":26,"value":5884,"position":5885},"maxZones = 1",{"start":5886,"end":5887},{"line":5823,"column":5878,"offset":5879},{"line":5823,"column":5888,"offset":5889},339,10042,{"start":5891,"end":5892},{"line":5823,"column":5878,"offset":5879},{"line":5823,"column":5888,"offset":5889},{"type":26,"value":5894,"position":5895}," per side. More zones are more declared boxes, up to 16 per sheet.",{"start":5896,"end":5897},{"line":5823,"column":5888,"offset":5889},{"line":5823,"column":5898,"offset":5899},405,10108,{"start":5901,"end":5903},{"line":5823,"column":20,"offset":5902},9704,{"line":5823,"column":5898,"offset":5899},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":5906,"children":5907,"position":5936},{},[5908,5917,5929],{"type":26,"value":5909,"position":5910},"A mitigated zone stays visible on the bars it was alive on. If you want a zone to vanish from history the way ",{"start":5911,"end":5914},{"line":5912,"column":5243,"offset":5913},232,10111,{"line":5912,"column":5915,"offset":5916},113,10221,{"type":30,"tagName":93,"properties":5918,"children":5919,"position":5926},{},[5920],{"type":26,"value":5538,"position":5921},{"start":5922,"end":5923},{"line":5912,"column":5915,"offset":5916},{"line":5912,"column":5924,"offset":5925},123,10231,{"start":5927,"end":5928},{"line":5912,"column":5915,"offset":5916},{"line":5912,"column":5924,"offset":5925},{"type":26,"value":5930,"position":5931}," did, kScript (legacy) is the engine for that script.",{"start":5932,"end":5933},{"line":5912,"column":5924,"offset":5925},{"line":5912,"column":5934,"offset":5935},176,10284,{"start":5937,"end":5939},{"line":5912,"column":20,"offset":5938},10109,{"line":5912,"column":5934,"offset":5935},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":5942,"children":5943,"position":6052},{},[5944,5952,5963,5969,5981,5988,6000,6007,6020,6027,6045],{"type":26,"value":5945,"position":5946},"The ",{"start":5947,"end":5950},{"line":5948,"column":5243,"offset":5949},233,10287,{"line":5948,"column":54,"offset":5951},10291,{"type":30,"tagName":93,"properties":5953,"children":5954,"position":5960},{},[5955],{"type":26,"value":5265,"position":5956},{"start":5957,"end":5958},{"line":5948,"column":54,"offset":5951},{"line":5948,"column":5575,"offset":5959},10297,{"start":5961,"end":5962},{"line":5948,"column":54,"offset":5951},{"line":5948,"column":5575,"offset":5959},{"type":26,"value":5964,"position":5965}," type and ",{"start":5966,"end":5967},{"line":5948,"column":5575,"offset":5959},{"line":5948,"column":5826,"offset":5968},10307,{"type":30,"tagName":93,"properties":5970,"children":5971,"position":5978},{},[5972],{"type":26,"value":768,"position":5973},{"start":5974,"end":5975},{"line":5948,"column":5826,"offset":5968},{"line":5948,"column":5976,"offset":5977},40,10324,{"start":5979,"end":5980},{"line":5948,"column":5826,"offset":5968},{"line":5948,"column":5976,"offset":5977},{"type":26,"value":5982,"position":5983}," became module-level variables and two ",{"start":5984,"end":5985},{"line":5948,"column":5976,"offset":5977},{"line":5948,"column":5986,"offset":5987},79,10363,{"type":30,"tagName":93,"properties":5989,"children":5990,"position":5997},{},[5991],{"type":26,"value":1152,"position":5992},{"start":5993,"end":5994},{"line":5948,"column":5986,"offset":5987},{"line":5948,"column":5995,"offset":5996},83,10367,{"start":5998,"end":5999},{"line":5948,"column":5986,"offset":5987},{"line":5948,"column":5995,"offset":5996},{"type":26,"value":6001,"position":6002}," lines. An AssemblyScript ",{"start":6003,"end":6004},{"line":5948,"column":5995,"offset":5996},{"line":5948,"column":6005,"offset":6006},109,10393,{"type":30,"tagName":93,"properties":6008,"children":6009,"position":6017},{},[6010],{"type":26,"value":6011,"position":6012},"class",{"start":6013,"end":6014},{"line":5948,"column":6005,"offset":6006},{"line":5948,"column":6015,"offset":6016},116,10400,{"start":6018,"end":6019},{"line":5948,"column":6005,"offset":6006},{"line":5948,"column":6015,"offset":6016},{"type":26,"value":6021,"position":6022}," would carry the same fields (",{"start":6023,"end":6024},{"line":5948,"column":6015,"offset":6016},{"line":5948,"column":6025,"offset":6026},146,10430,{"type":30,"tagName":5856,"properties":6028,"children":6030,"position":6040},{"href":6029},"../core-concepts/user-defined-types.md",[6031],{"type":26,"value":6032,"position":6033},"User-defined types",{"start":6034,"end":6037},{"line":5948,"column":6035,"offset":6036},147,10431,{"line":5948,"column":6038,"offset":6039},165,10449,{"start":6041,"end":6042},{"line":5948,"column":6025,"offset":6026},{"line":5948,"column":6043,"offset":6044},206,10490,{"type":26,"value":6046,"position":6047},"); the outputs are the reason the flat form is simpler here.",{"start":6048,"end":6049},{"line":5948,"column":6043,"offset":6044},{"line":5948,"column":6050,"offset":6051},266,10550,{"start":6053,"end":6055},{"line":5948,"column":20,"offset":6054},10285,{"line":5948,"column":6050,"offset":6051},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6058,"children":6059,"position":6088},{},[6060,6069,6081],{"type":26,"value":6061,"position":6062},"The active-zone table became ",{"start":6063,"end":6066},{"line":6064,"column":5243,"offset":6065},234,10553,{"line":6064,"column":6067,"offset":6068},32,10582,{"type":30,"tagName":93,"properties":6070,"children":6071,"position":6078},{},[6072],{"type":26,"value":5751,"position":6073},{"start":6074,"end":6075},{"line":6064,"column":6067,"offset":6068},{"line":6064,"column":6076,"offset":6077},46,10596,{"start":6079,"end":6080},{"line":6064,"column":6067,"offset":6068},{"line":6064,"column":6076,"offset":6077},{"type":26,"value":6082,"position":6083},", a data-only count. It is a metric, so a watch can fire when it changes.",{"start":6084,"end":6085},{"line":6064,"column":6076,"offset":6077},{"line":6064,"column":6086,"offset":6087},119,10669,{"start":6089,"end":6091},{"line":6064,"column":20,"offset":6090},10551,{"line":6064,"column":6086,"offset":6087},{"type":26,"value":27},{"start":6094,"end":6095},{"line":5823,"column":20,"offset":5902},{"line":6064,"column":6086,"offset":6087},{"type":26,"value":27},{"type":30,"tagName":64,"properties":6098,"children":6100,"position":6109},{"id":6099},"customize-it",[6101],{"type":26,"value":6102,"position":6103},"Customize it",{"start":6104,"end":6107},{"line":6105,"column":73,"offset":6106},236,10674,{"line":6105,"column":5224,"offset":6108},10686,{"start":6110,"end":6112},{"line":6105,"column":20,"offset":6111},10671,{"line":6105,"column":5224,"offset":6108},{"type":26,"value":27},{"type":30,"tagName":5808,"properties":6115,"children":6116,"position":6466},{},[6117,6118,6166,6167,6215,6216,6364,6365,6396,6397,6465],{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6119,"children":6120,"position":6162},{},[6121,6138,6143,6155],{"type":30,"tagName":5235,"properties":6122,"children":6123,"position":6132},{},[6124],{"type":26,"value":6125,"position":6126},"Zone frequency.",{"start":6127,"end":6130},{"line":6128,"column":38,"offset":6129},238,10692,{"line":6128,"column":5745,"offset":6131},10707,{"start":6133,"end":6135},{"line":6128,"column":5243,"offset":6134},10690,{"line":6128,"column":6136,"offset":6137},22,10709,{"type":26,"value":5306,"position":6139},{"start":6140,"end":6141},{"line":6128,"column":6136,"offset":6137},{"line":6128,"column":5826,"offset":6142},10710,{"type":30,"tagName":93,"properties":6144,"children":6145,"position":6152},{},[6146],{"type":26,"value":6147,"position":6148},"lookback",{"start":6149,"end":6150},{"line":6128,"column":5826,"offset":6142},{"line":6128,"column":5246,"offset":6151},10720,{"start":6153,"end":6154},{"line":6128,"column":5826,"offset":6142},{"line":6128,"column":5246,"offset":6151},{"type":26,"value":6156,"position":6157}," controls how significant a swing must be to spawn a zone. A small value (10) marks many minor pivots, a large one (50) keeps only major swing points. This is the main dial between \"lots of zones\" and \"only the big ones\".",{"start":6158,"end":6159},{"line":6128,"column":5246,"offset":6151},{"line":6128,"column":6160,"offset":6161},254,10941,{"start":6163,"end":6165},{"line":6128,"column":20,"offset":6164},10688,{"line":6128,"column":6160,"offset":6161},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6168,"children":6169,"position":6211},{},[6170,6186,6193,6205],{"type":30,"tagName":5235,"properties":6171,"children":6172,"position":6181},{},[6173],{"type":26,"value":6174,"position":6175},"Mitigation rule.",{"start":6176,"end":6179},{"line":6177,"column":38,"offset":6178},239,10946,{"line":6177,"column":5320,"offset":6180},10962,{"start":6182,"end":6184},{"line":6177,"column":5243,"offset":6183},10944,{"line":6177,"column":5826,"offset":6185},10964,{"type":26,"value":6187,"position":6188}," Right now a single close beyond the zone mitigates it. For a stricter definition, require the close to pass fully through to the far edge, or two consecutive closes, by adding a counter beside each ",{"start":6189,"end":6190},{"line":6177,"column":5826,"offset":6185},{"line":6177,"column":6191,"offset":6192},222,11163,{"type":30,"tagName":93,"properties":6194,"children":6195,"position":6202},{},[6196],{"type":26,"value":5414,"position":6197},{"start":6198,"end":6199},{"line":6177,"column":6191,"offset":6192},{"line":6177,"column":6200,"offset":6201},228,11169,{"start":6203,"end":6204},{"line":6177,"column":6191,"offset":6192},{"line":6177,"column":6200,"offset":6201},{"type":26,"value":6206,"position":6207}," flag.",{"start":6208,"end":6209},{"line":6177,"column":6200,"offset":6201},{"line":6177,"column":6064,"offset":6210},11175,{"start":6212,"end":6214},{"line":6177,"column":20,"offset":6213},10942,{"line":6177,"column":6064,"offset":6210},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6217,"children":6218,"position":6360},{},[6219,6235,6242,6255,6262,6275,6282,6295,6301,6314,6321,6334,6340,6353],{"type":30,"tagName":5235,"properties":6220,"children":6221,"position":6230},{},[6222],{"type":26,"value":6223,"position":6224},"Zone thickness.",{"start":6225,"end":6228},{"line":6226,"column":38,"offset":6227},240,11180,{"line":6226,"column":5745,"offset":6229},11195,{"start":6231,"end":6233},{"line":6226,"column":5243,"offset":6232},11178,{"line":6226,"column":6136,"offset":6234},11197,{"type":26,"value":6236,"position":6237}," The bounds come from the pivot bar's body (",{"start":6238,"end":6239},{"line":6226,"column":6136,"offset":6234},{"line":6226,"column":6240,"offset":6241},66,11241,{"type":30,"tagName":93,"properties":6243,"children":6244,"position":6252},{},[6245],{"type":26,"value":6246,"position":6247},"open",{"start":6248,"end":6249},{"line":6226,"column":6240,"offset":6241},{"line":6226,"column":6250,"offset":6251},72,11247,{"start":6253,"end":6254},{"line":6226,"column":6240,"offset":6241},{"line":6226,"column":6250,"offset":6251},{"type":26,"value":6256,"position":6257},"/",{"start":6258,"end":6259},{"line":6226,"column":6250,"offset":6251},{"line":6226,"column":6260,"offset":6261},73,11248,{"type":30,"tagName":93,"properties":6263,"children":6264,"position":6272},{},[6265],{"type":26,"value":6266,"position":6267},"close",{"start":6268,"end":6269},{"line":6226,"column":6260,"offset":6261},{"line":6226,"column":6270,"offset":6271},80,11255,{"start":6273,"end":6274},{"line":6226,"column":6260,"offset":6261},{"line":6226,"column":6270,"offset":6271},{"type":26,"value":6276,"position":6277},") and wick (",{"start":6278,"end":6279},{"line":6226,"column":6270,"offset":6271},{"line":6226,"column":6280,"offset":6281},92,11267,{"type":30,"tagName":93,"properties":6283,"children":6284,"position":6292},{},[6285],{"type":26,"value":6286,"position":6287},"high",{"start":6288,"end":6289},{"line":6226,"column":6280,"offset":6281},{"line":6226,"column":6290,"offset":6291},98,11273,{"start":6293,"end":6294},{"line":6226,"column":6280,"offset":6281},{"line":6226,"column":6290,"offset":6291},{"type":26,"value":6256,"position":6296},{"start":6297,"end":6298},{"line":6226,"column":6290,"offset":6291},{"line":6226,"column":6299,"offset":6300},99,11274,{"type":30,"tagName":93,"properties":6302,"children":6303,"position":6311},{},[6304],{"type":26,"value":6305,"position":6306},"low",{"start":6307,"end":6308},{"line":6226,"column":6299,"offset":6300},{"line":6226,"column":6309,"offset":6310},104,11279,{"start":6312,"end":6313},{"line":6226,"column":6299,"offset":6300},{"line":6226,"column":6309,"offset":6310},{"type":26,"value":6315,"position":6316},"). Use the full candle range for thicker zones by reading ",{"start":6317,"end":6318},{"line":6226,"column":6309,"offset":6310},{"line":6226,"column":6319,"offset":6320},162,11337,{"type":30,"tagName":93,"properties":6322,"children":6323,"position":6331},{},[6324],{"type":26,"value":6325,"position":6326},"prevHigh",{"start":6327,"end":6328},{"line":6226,"column":6319,"offset":6320},{"line":6226,"column":6329,"offset":6330},172,11347,{"start":6332,"end":6333},{"line":6226,"column":6319,"offset":6320},{"line":6226,"column":6329,"offset":6330},{"type":26,"value":5326,"position":6335},{"start":6336,"end":6337},{"line":6226,"column":6329,"offset":6330},{"line":6226,"column":6338,"offset":6339},177,11352,{"type":30,"tagName":93,"properties":6341,"children":6342,"position":6350},{},[6343],{"type":26,"value":6344,"position":6345},"prevLow",{"start":6346,"end":6347},{"line":6226,"column":6338,"offset":6339},{"line":6226,"column":6348,"offset":6349},186,11361,{"start":6351,"end":6352},{"line":6226,"column":6338,"offset":6339},{"line":6226,"column":6348,"offset":6349},{"type":26,"value":6354,"position":6355}," for both edges, or the body only for tighter ones.",{"start":6356,"end":6357},{"line":6226,"column":6348,"offset":6349},{"line":6226,"column":6358,"offset":6359},237,11412,{"start":6361,"end":6363},{"line":6226,"column":20,"offset":6362},11176,{"line":6226,"column":6358,"offset":6359},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6366,"children":6367,"position":6392},{},[6368,6385],{"type":30,"tagName":5235,"properties":6369,"children":6370,"position":6379},{},[6371],{"type":26,"value":6372,"position":6373},"More zones.",{"start":6374,"end":6377},{"line":6375,"column":38,"offset":6376},241,11417,{"line":6375,"column":5224,"offset":6378},11428,{"start":6380,"end":6382},{"line":6375,"column":5243,"offset":6381},11415,{"line":6375,"column":6383,"offset":6384},18,11430,{"type":26,"value":6386,"position":6387}," Duplicate the three outputs and the box per extra slot and fill the first free slot at each pivot; 16 boxes per sheet is the ceiling.",{"start":6388,"end":6389},{"line":6375,"column":6383,"offset":6384},{"line":6375,"column":6390,"offset":6391},152,11564,{"start":6393,"end":6395},{"line":6375,"column":20,"offset":6394},11413,{"line":6375,"column":6390,"offset":6391},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6398,"children":6399,"position":6461},{},[6400,6418,6425,6436,6443,6455],{"type":30,"tagName":5235,"properties":6401,"children":6402,"position":6412},{},[6403],{"type":26,"value":6404,"position":6405},"Alert on a mitigation.",{"start":6406,"end":6409},{"line":6407,"column":38,"offset":6408},242,11569,{"line":6407,"column":6410,"offset":6411},27,11591,{"start":6413,"end":6415},{"line":6407,"column":5243,"offset":6414},11567,{"line":6407,"column":6416,"offset":6417},29,11593,{"type":26,"value":6419,"position":6420}," Publish, install, and watch ",{"start":6421,"end":6422},{"line":6407,"column":6416,"offset":6417},{"line":6407,"column":6423,"offset":6424},58,11622,{"type":30,"tagName":93,"properties":6426,"children":6427,"position":6433},{},[6428],{"type":26,"value":5751,"position":6429},{"start":6430,"end":6431},{"line":6407,"column":6423,"offset":6424},{"line":6407,"column":6250,"offset":6432},11636,{"start":6434,"end":6435},{"line":6407,"column":6423,"offset":6424},{"line":6407,"column":6250,"offset":6432},{"type":26,"value":6437,"position":6438}," crossing below ",{"start":6439,"end":6440},{"line":6407,"column":6250,"offset":6432},{"line":6407,"column":6441,"offset":6442},88,11652,{"type":30,"tagName":93,"properties":6444,"children":6445,"position":6452},{},[6446],{"type":26,"value":352,"position":6447},{"start":6448,"end":6449},{"line":6407,"column":6441,"offset":6442},{"line":6407,"column":6450,"offset":6451},91,11655,{"start":6453,"end":6454},{"line":6407,"column":6441,"offset":6442},{"line":6407,"column":6450,"offset":6451},{"type":26,"value":6456,"position":6457},": it fires on the bar a zone dies.",{"start":6458,"end":6459},{"line":6407,"column":6450,"offset":6451},{"line":6407,"column":5475,"offset":6460},11689,{"start":6462,"end":6464},{"line":6407,"column":20,"offset":6463},11565,{"line":6407,"column":5475,"offset":6460},{"type":26,"value":27},{"start":6467,"end":6468},{"line":6128,"column":20,"offset":6164},{"line":6407,"column":5475,"offset":6460},{"type":26,"value":27},{"type":13,"children":6471},[6472],{"type":30,"tagName":86,"properties":6473,"children":6474,"data":-1},{"class":88,"style":89,"tabindex":90},[6475],{"type":30,"tagName":93,"properties":6476,"children":6477},{},[6478],{"type":30,"tagName":97,"properties":6479,"children":6480},{"class":99},[6481,6486,6491,6496,6501,6506],{"type":30,"tagName":97,"properties":6482,"children":6483},{"style":175},[6484],{"type":26,"value":6485},"om",{"type":30,"tagName":97,"properties":6487,"children":6488},{"style":193},[6489],{"type":26,"value":6490}," watch",{"type":30,"tagName":97,"properties":6492,"children":6493},{"style":193},[6494],{"type":26,"value":6495}," create",{"type":30,"tagName":97,"properties":6497,"children":6498},{"style":193},[6499],{"type":26,"value":6500}," \"Zone died\"",{"type":30,"tagName":97,"properties":6502,"children":6503},{"style":222},[6504],{"type":26,"value":6505}," --condition",{"type":30,"tagName":97,"properties":6507,"children":6508},{"style":193},[6509],{"type":26,"value":6510}," '{\"metric\":\"wrun/@you/zone-tracker/active_zones\",\"selector\":{\"exchange\":\"BINANCE_FUTURES\",\"symbol\":\"BTCUSDT\",\"interval\":\"HOUR\"},\"op\":\"crosses_below\",\"value\":1}'",{"type":26,"value":27},{"type":30,"tagName":64,"properties":6513,"children":6515,"position":6524},{"id":6514},"concepts-used",[6516],{"type":26,"value":6517,"position":6518},"Concepts used",{"start":6519,"end":6522},{"line":6520,"column":73,"offset":6521},248,11908,{"line":6520,"column":2180,"offset":6523},11921,{"start":6525,"end":6527},{"line":6520,"column":20,"offset":6526},11905,{"line":6520,"column":2180,"offset":6523},{"type":26,"value":27},{"type":30,"tagName":5808,"properties":6530,"children":6531,"position":6810},{},[6532,6533,6597,6598,6665,6666,6713,6714,6760,6761,6809],{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6534,"children":6535,"position":6593},{},[6536,6555,6561,6574,6581],{"type":30,"tagName":5856,"properties":6537,"children":6539,"position":6549},{"href":6538},"../core-concepts/collections.md",[6540],{"type":26,"value":6541,"position":6542},"Collections",{"start":6543,"end":6546},{"line":6544,"column":73,"offset":6545},250,11926,{"line":6544,"column":6547,"offset":6548},15,11937,{"start":6550,"end":6552},{"line":6544,"column":5243,"offset":6551},11925,{"line":6544,"column":6553,"offset":6554},49,11971,{"type":26,"value":6556,"position":6557}," for the ",{"start":6558,"end":6559},{"line":6544,"column":6553,"offset":6554},{"line":6544,"column":6423,"offset":6560},11980,{"type":30,"tagName":93,"properties":6562,"children":6563,"position":6571},{},[6564],{"type":26,"value":6565,"position":6566},"StaticArray",{"start":6567,"end":6568},{"line":6544,"column":6423,"offset":6560},{"line":6544,"column":6569,"offset":6570},71,11993,{"start":6572,"end":6573},{"line":6544,"column":6423,"offset":6560},{"line":6544,"column":6569,"offset":6570},{"type":26,"value":6575,"position":6576}," ring buffers sized from a param's ",{"start":6577,"end":6578},{"line":6544,"column":6569,"offset":6570},{"line":6544,"column":6579,"offset":6580},106,12028,{"type":30,"tagName":93,"properties":6582,"children":6583,"position":6590},{},[6584],{"type":26,"value":1238,"position":6585},{"start":6586,"end":6587},{"line":6544,"column":6579,"offset":6580},{"line":6544,"column":6588,"offset":6589},111,12033,{"start":6591,"end":6592},{"line":6544,"column":6579,"offset":6580},{"line":6544,"column":6588,"offset":6589},{"start":6594,"end":6596},{"line":6544,"column":20,"offset":6595},11923,{"line":6544,"column":6588,"offset":6589},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6599,"children":6600,"position":6661},{},[6601,6619,6625,6637,6643,6655],{"type":30,"tagName":5856,"properties":6602,"children":6604,"position":6613},{"href":6603},"../functions/series-functions.md",[6605],{"type":26,"value":6606,"position":6607},"Series functions",{"start":6608,"end":6611},{"line":6609,"column":73,"offset":6610},251,12037,{"line":6609,"column":5745,"offset":6612},12053,{"start":6614,"end":6616},{"line":6609,"column":5243,"offset":6615},12036,{"line":6609,"column":6617,"offset":6618},55,12088,{"type":26,"value":6620,"position":6621}," for ",{"start":6622,"end":6623},{"line":6609,"column":6617,"offset":6618},{"line":6609,"column":5629,"offset":6624},12093,{"type":30,"tagName":93,"properties":6626,"children":6627,"position":6634},{},[6628],{"type":26,"value":5316,"position":6629},{"start":6630,"end":6631},{"line":6609,"column":5629,"offset":6624},{"line":6609,"column":6632,"offset":6633},69,12102,{"start":6635,"end":6636},{"line":6609,"column":5629,"offset":6624},{"line":6609,"column":6632,"offset":6633},{"type":26,"value":5326,"position":6638},{"start":6639,"end":6640},{"line":6609,"column":6632,"offset":6633},{"line":6609,"column":6641,"offset":6642},74,12107,{"type":30,"tagName":93,"properties":6644,"children":6645,"position":6652},{},[6646],{"type":26,"value":5336,"position":6647},{"start":6648,"end":6649},{"line":6609,"column":6641,"offset":6642},{"line":6609,"column":6650,"offset":6651},82,12115,{"start":6653,"end":6654},{"line":6609,"column":6641,"offset":6642},{"line":6609,"column":6650,"offset":6651},{"type":26,"value":6656,"position":6657}," as a window scan",{"start":6658,"end":6659},{"line":6609,"column":6650,"offset":6651},{"line":6609,"column":6299,"offset":6660},12132,{"start":6662,"end":6664},{"line":6609,"column":20,"offset":6663},12034,{"line":6609,"column":6299,"offset":6660},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6667,"children":6668,"position":6709},{},[6669,6685,6691,6703],{"type":30,"tagName":5856,"properties":6670,"children":6671,"position":6679},{"href":5858},[6672],{"type":26,"value":5861,"position":6673},{"start":6674,"end":6677},{"line":6675,"column":73,"offset":6676},252,12136,{"line":6675,"column":5739,"offset":6678},12151,{"start":6680,"end":6682},{"line":6675,"column":5243,"offset":6681},12135,{"line":6675,"column":6683,"offset":6684},53,12185,{"type":26,"value":6686,"position":6687}," for boxes with a ",{"start":6688,"end":6689},{"line":6675,"column":6683,"offset":6684},{"line":6675,"column":6569,"offset":6690},12203,{"type":30,"tagName":93,"properties":6692,"children":6693,"position":6700},{},[6694],{"type":26,"value":5518,"position":6695},{"start":6696,"end":6697},{"line":6675,"column":6569,"offset":6690},{"line":6675,"column":6698,"offset":6699},77,12209,{"start":6701,"end":6702},{"line":6675,"column":6569,"offset":6690},{"line":6675,"column":6698,"offset":6699},{"type":26,"value":6704,"position":6705}," gate and why nothing is deleted",{"start":6706,"end":6707},{"line":6675,"column":6698,"offset":6699},{"line":6675,"column":6005,"offset":6708},12241,{"start":6710,"end":6712},{"line":6675,"column":20,"offset":6711},12133,{"line":6675,"column":6005,"offset":6708},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6715,"children":6716,"position":6756},{},[6717,6733,6738,6749],{"type":30,"tagName":5856,"properties":6718,"children":6719,"position":6727},{"href":6029},[6720],{"type":26,"value":6032,"position":6721},{"start":6722,"end":6725},{"line":6723,"column":73,"offset":6724},253,12245,{"line":6723,"column":6136,"offset":6726},12263,{"start":6728,"end":6730},{"line":6723,"column":5243,"offset":6729},12244,{"line":6723,"column":6731,"offset":6732},63,12304,{"type":26,"value":6556,"position":6734},{"start":6735,"end":6736},{"line":6723,"column":6731,"offset":6732},{"line":6723,"column":6250,"offset":6737},12313,{"type":30,"tagName":93,"properties":6739,"children":6740,"position":6746},{},[6741],{"type":26,"value":6011,"position":6742},{"start":6743,"end":6744},{"line":6723,"column":6250,"offset":6737},{"line":6723,"column":5986,"offset":6745},12320,{"start":6747,"end":6748},{"line":6723,"column":6250,"offset":6737},{"line":6723,"column":5986,"offset":6745},{"type":26,"value":6750,"position":6751}," a struct becomes when you want one",{"start":6752,"end":6753},{"line":6723,"column":5986,"offset":6745},{"line":6723,"column":6754,"offset":6755},114,12355,{"start":6757,"end":6759},{"line":6723,"column":20,"offset":6758},12242,{"line":6723,"column":6754,"offset":6755},{"type":26,"value":27},{"type":30,"tagName":5813,"properties":6762,"children":6763,"position":6805},{},[6764,6780,6786,6799],{"type":30,"tagName":5856,"properties":6765,"children":6767,"position":6775},{"href":6766},"../core-concepts/core-variables.md",[6768],{"type":26,"value":6769,"position":6770},"Core variables",{"start":6771,"end":6773},{"line":6160,"column":73,"offset":6772},12359,{"line":6160,"column":6383,"offset":6774},12373,{"start":6776,"end":6778},{"line":6160,"column":5243,"offset":6777},12358,{"line":6160,"column":6617,"offset":6779},12410,{"type":26,"value":6781,"position":6782}," for the module-level state that ",{"start":6783,"end":6784},{"line":6160,"column":6617,"offset":6779},{"line":6160,"column":6441,"offset":6785},12443,{"type":30,"tagName":93,"properties":6787,"children":6788,"position":6796},{},[6789],{"type":26,"value":6790,"position":6791},"reset()",{"start":6792,"end":6793},{"line":6160,"column":6441,"offset":6785},{"line":6160,"column":6794,"offset":6795},97,12452,{"start":6797,"end":6798},{"line":6160,"column":6441,"offset":6785},{"line":6160,"column":6794,"offset":6795},{"type":26,"value":6800,"position":6801}," restores",{"start":6802,"end":6803},{"line":6160,"column":6794,"offset":6795},{"line":6160,"column":6579,"offset":6804},12461,{"start":6806,"end":6808},{"line":6160,"column":20,"offset":6807},12356,{"line":6160,"column":6579,"offset":6804},{"type":26,"value":27},{"start":6811,"end":6812},{"line":6544,"column":20,"offset":6595},{"line":6160,"column":6579,"offset":6804},{"quirksMode":6814},false,{"start":6816,"end":6817},{"line":20,"column":20,"offset":21},{"line":6818,"column":20,"offset":6819},255,12462,1790157165069]