[{"data":1,"prerenderedAt":8674},["ShallowReactive",2],{"wrun-open-editor-url":3,"indicators:cookbook/liquidation-heat-oi":4},"https://openmarket.xyz/chart/#wrun-open=v1",{"slug":5,"filePath":6,"frontmatter":7,"rawMarkdown":12,"tree":13},"cookbook/liquidation-heat-oi","cookbook/liquidation-heat-oi.md",{"title":8,"description":9,"order":10,"section":11},"OI Liquidation Heat","Where the positions opened over the lookback would be liquidated, estimated from the market's open interest and painted behind the candles as a heatmap. It is…",88,"cookbook","---\ntitle: \"OI Liquidation Heat\"\ndescription: \"Where the positions opened over the lookback would be liquidated, estimated from the market's open interest and painted behind the candles as a heatmap. It is…\"\norder: 88\nsection: \"cookbook\"\n---\n\n\u003C!-- source: docs/indicators/cookbook/liquidation-heat-oi.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit -->\n\n# OI Liquidation Heat\n\n![Estimated liquidations painted behind the candles as a heatmap built from open interest, amber and red bands that end where price ran into them](/wrun/images/liquidation-heat-oi.png)\n\nWhere the positions opened over the lookback would be liquidated, estimated from the market's open interest and painted behind the candles as a heatmap. It is the model of the [Liquidation Map](liquidation-map.md) drawn through time: every bar keeps the same ledger of opened positions and folds it onto a map of 128 rows around the close, its rows on round prices so the bands run straight, and each column shows the estimate as it stood on that bar. The brighter a row, the more money a sweep there would force out. A level that price trades through is gone from that bar on, so the bands end where price ran into them, and a band that runs on to the right edge is money still waiting. Resting the pointer on a cell reads its dollars and its price.\n\nThe parts are an `oi.close` input and side-split `trades.volume` inputs read as positions ([Data sources](../core-concepts/data-sources.md)), an `out.grid` of 128 rows written cell by cell from `onBar()`, two data-only outputs that place the grid on the price axis, a `plot.heatmap` declaration over the grid ([Price canvases](../presentation/price-canvases.md)), and a label handle for the one sentence shown without open interest ([Drawing objects](../presentation/drawing-objects.md)). This is also the `liquidation-heat-oi` template: the **OI Liquidation Heat** card under **Order flow** in the editor's starter list, and it compiles as written.\n\n## The wrun indicator\n\n```typescript sample=liquidation-heat-oi\n// OI Liquidation Heat: where the positions opened over the lookback would be liquidated, ESTIMATED from the market's\n// open interest and sided volume, painted behind the candles as a heatmap. It is the Liquidation Map's model drawn\n// through time: every bar keeps the same ledger and folds it onto a 128-row map around the close, its rows on round\n// prices so the bands run straight, and each column shows the estimate as it stood on that bar. The brighter a row,\n// the more money a sweep there would force out; a level price trades through is gone from that bar on, so the bands\n// end where price ran into them.\n//\n// The model, per bar: a rise in open interest opens positions at the bar's typical price, split into longs and\n// shorts by the bar's buy share of sided volume, and across four leverage tiers (10x, 25x, 50x, 100x) with fixed\n// weights; each position's liquidation price follows from its leverage and the maintenance margin. A fall in open\n// interest scales every live level down in proportion. A long level is swept when a later bar's low reaches it, a\n// short level when a later bar's high does. Levels older than the lookback drop. Nothing here is a venue's own\n// liquidation feed: it is a model of where the open positions sit, built from the open-interest change bar by bar.\n\nsection(\"Positions\");\nparam.int(\"lookback\", 672, { min: 96, max: 2000, label: \"Lookback in bars\", description: \"Bars of opened positions kept in the map, in the chart's own bars; the map covers no more than the chart has loaded\" });\nparam.number(\"maint_margin_pct\", 0.5, { min: 0, max: 2, step: 0.1, label: \"Maintenance margin in percent\", description: \"Maintenance margin as a percent of the position: the distance a liquidation sits short of the leverage's full move\" });\nsection(\"Map\");\nparam.number(\"range_pct\", 5, { min: 2, max: 25, step: 0.5, label: \"Map range in percent\", description: \"Map range: percent around the close, each side; the 128 rows split it on round prices, so the reach varies a little and a narrower range draws finer rows\" });\nlegend({ title: \"estimated, up to {{lookback}} bars\" }); // the words after the name in the legend: up to, since a chart holding fewer bars builds from those\ninput(\"close\", ohlcv.close); // the chart's own candles: the map's centre, the entry price and the sweeps\ninput(\"oi\", oi.close, { missing: \"nan\", description: \"Open interest in USD; NaN on a market without it (spot, FX, prediction markets), which blanks the map\" });\ninput(\"buy\", trades.volume, { side: \"BUY\", missing: \"zero\", description: \"Buy volume of the bar: its share of sided volume is the share of new positions read as longs\" });\ninput(\"sell\", trades.volume, { side: \"SELL\", missing: \"zero\", description: \"Sell volume of the bar\" });\noutput(\"grid_low\", none, overlay, { description: \"The bottom edge of the map's lowest row on this bar\" }); // data-only: the heatmap reads it\noutput(\"row_step\", none, overlay, { description: \"The map's row height in price on this bar\" });\noutput(\"longs_near\", none, overlay, { format: \"usd\", description: \"Estimated long liquidations within 5% below the close, USD, every bar\" }); // data-only: the Console and alerts read them\noutput(\"shorts_near\", none, overlay, { format: \"usd\", description: \"Estimated short liquidations within 5% above the close, USD, every bar\" });\nout.grid(\"heat\", { rows: 128 }); // 128 data-only outputs heat_0..heat_127, one per row of the map in USD, written with out_heat(row, value)\nstring(\"note\", { max_bytes: 80 }); // the one sentence shown when the market has no open interest\nhandles.label({ anchor: \"top_right\", align: \"right\", color: \"#94a3b8\", size: 12, style: \"plain\", safe_area: true });\nplot.heatmap({ name: \"liq_heat\", grid: \"heat\", price_low: \"grid_low\", price_step: \"row_step\", palette: [\"theme.bg\", \"#f8c00040\", \"#f8c000\", \"#f86800\", \"#ef4444\"], scale: \"linear\", min: 0, auto_quantile: 0.98, opacity: 0.8, behind_candles: true, label: \"Estimated liquidations\", tooltip: \"{{value:usd}} at {{price}}\" });\n\n// Leverage tiers the opened positions are spread over, and the share of new open interest each tier takes: the\n// Liquidation Map's guess at a perpetual's crowd (most size at low leverage, a thin tail at 100x), so the two\n// templates estimate the same levels.\nconst TIERS = 4;\nconst SLOTS = TIERS * 2; // per bar: four long levels, then four short levels\nfunction tierLeverage(tier: i32): f64 {\n  return tier == 0 ? 10.0 : tier == 1 ? 25.0 : tier == 2 ? 50.0 : 100.0;\n}\nfunction tierWeight(tier: i32): f64 {\n  return tier == 0 ? 0.4 : tier == 1 ? 0.3 : tier == 2 ? 0.2 : 0.1;\n}\n\nconst ROWS = 128; // rows in the map, the grid's declared count\nconst MAX_LOOKBACK = 2000; // the ring is sized for the largest lookback setting\nconst levelPrice = new StaticArray\u003Cf64>(MAX_LOOKBACK * SLOTS); // the ledger: one price and one USD size per level, SLOTS per bar\nconst levelUsd = new StaticArray\u003Cf64>(MAX_LOOKBACK * SLOTS); // 0 once swept or dropped\nconst rowUsd = new StaticArray\u003Cf64>(ROWS); // this bar's map: USD per row\nconst note = draw.label(0); // the one slate sentence; a handle allocates once at module load\n\nlet lookback = 672; // settings, read in onStart()\nlet mm = 0.005;\nlet rangeFrac = 0.05;\nlet head = -1; // the ring: head is the newest bar, count the bars in use\nlet count = 0;\nlet prevOi: f64 = NaN; // the last finite open interest reading\nlet oiSeen = false; // the market served open interest at least once\nlet noteShown = false;\nlet gridLow: f64 = NaN; // this bar's map: the bottom edge of row 0 and the row height\nlet step: f64 = NaN;\nlet longsNear = 0.0; // live long levels within 5% below the close, USD\nlet shortsNear = 0.0; // live short levels within 5% above the close, USD\n\nfunction onStart(): void {\n  lookback = i32(p_lookback());\n  mm = p_maint_margin_pct() / 100.0;\n  rangeFrac = p_range_pct() / 100.0;\n}\n\nfunction niceStep(raw: f64): f64 { // the nearest of 1, 2, 2.5 and 5 times a power of ten (in ratio terms): rows on round prices that line up bar to bar\n  const mag = Math.pow(10.0, Math.floor(Math.log(raw) / Math.LN10));\n  const m = raw / mag;\n  return (m \u003C 1.414 ? 1.0 : m \u003C 2.236 ? 2.0 : m \u003C 3.536 ? 2.5 : m \u003C 7.071 ? 5.0 : 10.0) * mag; // the cut points are the geometric midpoints\n}\n\nfunction addToMap(price: f64, usd: f64): void { // a live level adds its USD to the row it falls in; off the map it waits for price to come near\n  const pos = (price - gridLow) / step;\n  if (pos >= 0.0 && pos \u003C f64(ROWS)) rowUsd[i32(pos)] += usd;\n}\n\n// One pass over the ledger: the levels this bar traded through are gone, the rest fold onto this bar's map and,\n// within 5% of the close, into the near sums.\nfunction sweepAndFold(close: f64, high: f64, low: f64): void {\n  const nearLo = close * 0.95;\n  const nearHi = close * 1.05;\n  longsNear = 0.0;\n  shortsNear = 0.0;\n  for (let r = 0; r \u003C ROWS; r += 1) rowUsd[r] = 0.0;\n  const used = count * SLOTS;\n  for (let i = 0; i \u003C used; i += 1) {\n    const usd = levelUsd[i];\n    if (usd \u003C= 0.0) continue;\n    const price = levelPrice[i];\n    if (i % SLOTS \u003C TIERS) { // a long level: swept once a bar's low reaches it\n      if (low \u003C= price) {\n        levelUsd[i] = 0.0;\n        continue;\n      }\n      if (price >= nearLo) longsNear += usd;\n    } else { // a short level: swept once a bar's high reaches it\n      if (high >= price) {\n        levelUsd[i] = 0.0;\n        continue;\n      }\n      if (price \u003C= nearHi) shortsNear += usd;\n    }\n    addToMap(price, usd);\n  }\n}\n\nfunction openPositions(base: i32, close: f64, high: f64, low: f64, dOi: f64): void { // new open interest, placed at its liquidation prices\n  const buy = in_buy();\n  const sell = in_sell();\n  const total = buy + sell;\n  const longShare = total > 0.0 ? buy / total : 0.5;\n  const entry = isNaN(high) || isNaN(low) ? close : (high + low + close) / 3.0; // the bar's typical price\n  const nearLo = close * 0.95;\n  const nearHi = close * 1.05;\n  for (let tier = 0; tier \u003C TIERS; tier += 1) {\n    const move = 1.0 / tierLeverage(tier) - mm; // the adverse move that liquidates this tier\n    if (move \u003C= 0.0) continue; // a margin wider than the tier's whole move: nobody holds that position\n    const longPrice = entry * (1.0 - move);\n    const shortPrice = entry * (1.0 + move);\n    const longUsd = dOi * longShare * tierWeight(tier);\n    const shortUsd = dOi * (1.0 - longShare) * tierWeight(tier);\n    levelPrice[base + tier] = longPrice;\n    levelUsd[base + tier] = longUsd;\n    levelPrice[base + TIERS + tier] = shortPrice;\n    levelUsd[base + TIERS + tier] = shortUsd;\n    if (longUsd > 0.0) {\n      if (longPrice >= nearLo) longsNear += longUsd;\n      addToMap(longPrice, longUsd);\n    }\n    if (shortUsd > 0.0) {\n      if (shortPrice \u003C= nearHi) shortsNear += shortUsd;\n      addToMap(shortPrice, shortUsd);\n    }\n  }\n}\n\nfunction scaleAll(factor: f64): void { // open interest fell: every live level shrinks in proportion, and the map with it\n  const used = count * SLOTS;\n  for (let i = 0; i \u003C used; i += 1) if (levelUsd[i] > 0.0) levelUsd[i] *= factor;\n  for (let r = 0; r \u003C ROWS; r += 1) rowUsd[r] *= factor;\n  longsNear *= factor;\n  shortsNear *= factor;\n}\n\nfunction writeEmpty(): void { // no map on this bar: every cell empty, the grid unplaced\n  out_grid_low(NaN);\n  out_row_step(NaN);\n  out_longs_near(NaN);\n  out_shorts_near(NaN);\n  for (let r = 0; r \u003C ROWS; r += 1) out_heat(r, NaN);\n}\n\nfunction writeNote(): void { // on the live bar: the one sentence while the market has served no open interest, gone once it does\n  if (!bar.isLast()) return;\n  if (!oiSeen) {\n    sb_clear();\n    sb_text(\"No open interest on this market, so no liquidation estimate\");\n    note.set(16.0, 12.0).text(str_note_sb);\n    noteShown = true;\n  } else if (noteShown) {\n    note.delete();\n    noteShown = false;\n  }\n}\n\n// onBar() runs once per bar: recycle the oldest bar's slots, sweep the ledger with the bar's range while folding the\n// survivors onto this bar's map, fold the bar's open-interest change in (new positions at their liquidation prices,\n// or every level scaled down), then write the map, its bottom edge, its row height and the near sums.\nfunction onBar(): void {\n  const close = bar.close();\n  const high = bar.high();\n  const low = bar.low();\n  if (isNaN(close) || close \u003C= 0.0) { // no price on this bar: no map, and the ledger waits for the next one\n    writeEmpty();\n    return;\n  }\n  head = (head + 1) % lookback; // this bar's slots: the oldest bar's levels are recycled once the ring is full\n  if (count \u003C lookback) count += 1;\n  const base = head * SLOTS;\n  for (let s = 0; s \u003C SLOTS; s += 1) {\n    levelUsd[base + s] = 0.0;\n    levelPrice[base + s] = NaN;\n  }\n  step = niceStep((close * rangeFrac * 2.0) / f64(ROWS));\n  gridLow = (Math.floor(close / step) - f64(ROWS / 2)) * step; // a fixed lattice of round prices, the close in the middle row\n  sweepAndFold(close, high, low);\n  const oiNow = in_oi();\n  if (!isNaN(oiNow)) { // a bar without a reading changes nothing: the last reading carries forward\n    oiSeen = true;\n    if (!isNaN(prevOi)) {\n      const dOi = oiNow - prevOi;\n      if (dOi > 0.0) openPositions(base, close, high, low, dOi);\n      else if (dOi \u003C 0.0 && prevOi > 0.0) scaleAll(oiNow / prevOi);\n    }\n    prevOi = oiNow;\n  }\n  writeNote();\n  if (!oiSeen) {\n    writeEmpty();\n    return;\n  }\n  out_grid_low(gridLow);\n  out_row_step(step);\n  out_longs_near(longsNear);\n  out_shorts_near(shortsNear);\n  for (let r = 0; r \u003C ROWS; r += 1) out_heat(r, rowUsd[r] > 0.0 ? rowUsd[r] : NaN); // NaN = an empty cell\n}\n```\n\n## How it works\n\n**Open interest is read as positions.** On every bar `in_oi()` (the `oi.close` input, in USD) is compared with the last finite reading; a bar without a reading changes nothing. A rise is new open interest opened at the bar's typical price (high, low and close averaged), split into longs and shorts by the bar's buy share of `in_buy()` and `in_sell()`, and spread over four leverage tiers, 10x, 25x, 50x and 100x, weighted 40, 30, 20 and 10 percent in `tierLeverage` and `tierWeight`. Each tier is liquidated by an adverse move of one over its leverage less `maint_margin_pct`: a 10x long opened at 84,000 with the default 0.5% margin is liquidated about 9.5% lower, near 76,000, and a 10x short about 9.5% higher, near 92,000. A fall in open interest scales every live level down in proportion (`scaleAll`), the map and the near sums with it.\n\n**The ledger is a ring.** `levelPrice` and `levelUsd` are two fixed arrays sized for the largest lookback, eight slots per bar (four long tiers, then four short tiers); once `lookback` bars are held, the oldest bar's slots are recycled, so a level older than the lookback drops. `sweepAndFold` walks the ledger once per bar: a long level is gone once the bar's low reaches it, a short level once the bar's high does, and every level left adds its dollars to the row it falls in. A level outside the map on this bar stays in the ledger and comes back when price moves toward it. Nothing fades with age: a level keeps its full size until a sweep, a fall in open interest or the lookback takes it.\n\n**The map follows the close.** The 128 rows reach about `range_pct` each side of the close (5% by default). `niceStep()` snaps the row height to a round price (1, 2, 2.5 or 5 times a power of ten), so the rows sit on the same prices bar after bar and the bands run straight: 50 on BTC near 85,000, a reach of 3,200 each side, varying a little as the snap moves. `grid_low` is the bottom edge of row 0 on each bar, a whole number of rows below the close's row, and `row_step` every row's height in price; `plot.heatmap({ grid: \"heat\", price_low: \"grid_low\", price_step: \"row_step\" })` reads the two to place the grid, so the map moves with the close. `out_heat(row, value)` writes a row's dollars, and NaN leaves a cell empty. A narrower range draws finer rows and leaves the far tiers off the map until price comes near them.\n\n**The scale.** The palette runs from the chart's background through a faint amber (`#f8c00040`, amber at a quarter strength, so it reads on a light chart too) and full amber and orange to red. `scale: \"linear\"` with `min: 0` keeps most cells dark and lets only the stacked rows glow, and `auto_quantile: 0.98` sets the top of the scale at the 98th percentile of every cell in the run, so one huge row does not wash out the rest. `behind_candles: true` keeps the bars on top, and the tooltip `{{value:usd}} at {{price}}` reads a cell as its dollars and its price.\n\n**The near sums.** `longs_near` and `shorts_near` are data-only outputs written on every bar: the estimated long liquidations within 5% below the close and the short liquidations within 5% above it, in USD. They draw nothing; read them at the editor's Console prompt or set an alert on them.\n\n**An estimate, beside two siblings.** Nothing here is a venue's own liquidation feed: read a band as \"about this much, about here\". [Liquidation Heat](liquidation-heat.md) builds its map from the candles alone: every bar seeds levels at its close weighted by its volume, and the levels fade with age, so it draws on any chart but knows nothing of positions opened or closed. The [Liquidation Map](liquidation-map.md) is this model, with the same tiers, margin, sweeps and lookback, docked on the price axis as a two-sided profile measured on the live bar only. This recipe keeps that ledger and draws it on every bar, behind the candles.\n\n## Where it runs\n\nPerpetual futures with open interest: Binance Futures and Hyperliquid perpetuals, at any interval. The lookback is counted in the chart's own bars, so 672 is a week at 15m and four weeks at 1h, and the map covers no more than the chart has loaded: a 1h chart holding 297 bars builds from those 297, which is why the legend reads \"up to 672 bars\". Every bar draws its own column, so the history shows how the estimate moved; the forming bar replays from the chart's snapshot, so the ring advances once per bar on live ticks too ([Repainting](../core-concepts/repainting.md)). No market refuses the run: the `oi` input declares `missing: \"nan\"`, so a market without open interest reads NaN and gets the sentence below instead of a toast.\n\n## When data is missing\n\nOn a market without open interest (spot pairs, FX, prediction markets) the map stays empty and one line of words shows at the top right, `No open interest on this market, so no liquidation estimate`, in plain slate: the `note` label handle pinned to the pane's top right corner and right-aligned, clear of the price axis. `longs_near` and `shorts_near` read NaN there. Once the market serves open interest, the sentence goes and the map builds up from the first rise. On a market with open interest but without sided trades, every new position is split half longs and half shorts. A bar whose close is NaN writes an empty column and leaves the ledger as it was.\n\n## Customize it\n\n- **A longer or shorter memory.** `lookback` (672, 96 to 2000) is the bars of opened positions the map keeps, in the chart's own bars: 672 is a week at 15m and four weeks at 1h. `maint_margin_pct` (0.5, 0 to 2) is the maintenance margin as a percent of the position: a larger margin moves every liquidation price closer to its entry, and a margin as wide as a tier's whole move leaves that tier out.\n- **A finer or wider map.** `range_pct` (5, 2 to 25) is about how far around the close the map reaches each side; the 128 rows split it on round prices, so a narrower range draws finer rows and a wider one brings the 10x tier into view. `rows: 128` in `out.grid` is the most a grid holds; a smaller grid needs `ROWS` changed to match.\n- **Another crowd.** The tier mix, 10x, 25x, 50x and 100x at 40, 30, 20 and 10 percent, is a guess at a perpetual's crowd, named in `tierLeverage` and `tierWeight` at the top of the file. It is the Liquidation Map's mix, so the two estimate the same levels; change both to keep them agreeing.\n- **A fixed scale.** Set `min` and `max` on the heatmap to compare days on one scale, or `floor` to hide the faintest cells.\n\n## Run it\n\n1. In the editor's Explorer, press the **Templates** icon (\"Browse starter templates\") and pick **OI Liquidation Heat** under **Order flow**.\n2. Press **Run** on a perpetual with open interest, such as BTCUSDT on Binance Futures at 15m: the map paints behind the candles, bright where opened positions would be liquidated, and each band ends where price swept it. The legend reads \"OI Liquidation Heat estimated, up to 672 bars\".\n3. Rest the pointer on a cell for the dollars at that price; at the editor's Console prompt, type `last 20 longs_near` to read the estimated long liquidations within 5% below the price on the last 20 bars.\n\n## Concepts used\n\n- [Price canvases](../presentation/price-canvases.md) for `out.grid`, `plot.heatmap` over a grid, `price_low` and `price_step`\n- [Data sources](../core-concepts/data-sources.md) for the `oi` and `trades` sources, `side` and the `missing` policies\n- [Drawing objects](../presentation/drawing-objects.md) for `handles.label`, the `draw.label(id)` handle and pane anchors\n- [Plotting](../presentation/plotting.md) for data-only outputs\n",{"type":14,"children":15,"data":8667,"position":8669},"root",[16,26,29,30,51,52,93,94,353,354,372,373,6835,6836,6852,6853,7041,7042,7150,7151,7302,7303,7454,7455,7523,7524,7601,7602,7617,7618,7698,7699,7714,7715,7807,7808,7823,7824,8157,8158,8174,8175,8342,8343,8358,8359],{"type":17,"value":18,"position":19},"comment"," source: docs/indicators/cookbook/liquidation-heat-oi.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit ",{"start":20,"end":23},{"line":21,"column":21,"offset":22},1,0,{"line":21,"column":24,"offset":25},135,134,{"type":27,"value":28},"text","\n",{"type":27,"value":28},{"type":31,"tagName":32,"properties":33,"children":34,"position":48},"element","p",{},[35],{"type":31,"tagName":36,"properties":37,"children":40,"position":41},"img",{"src":38,"alt":39},"/wrun/images/liquidation-heat-oi.png","Estimated liquidations painted behind the candles as a heatmap built from open interest, amber and red bands that end where price ran into them",[],{"start":42,"end":45},{"line":43,"column":21,"offset":44},5,159,{"line":43,"column":46,"offset":47},185,343,{"start":49,"end":50},{"line":43,"column":21,"offset":44},{"line":43,"column":46,"offset":47},{"type":27,"value":28},{"type":31,"tagName":32,"properties":53,"children":54,"position":90},{},[55,64,83],{"type":27,"value":56,"position":57},"Where the positions opened over the lookback would be liquidated, estimated from the market's open interest and painted behind the candles as a heatmap. It is the model of the ",{"start":58,"end":61},{"line":59,"column":21,"offset":60},7,345,{"line":59,"column":62,"offset":63},177,521,{"type":31,"tagName":65,"properties":66,"children":68,"position":78},"a",{"href":67},"liquidation-map.md",[69],{"type":27,"value":70,"position":71},"Liquidation Map",{"start":72,"end":75},{"line":59,"column":73,"offset":74},178,522,{"line":59,"column":76,"offset":77},193,537,{"start":79,"end":80},{"line":59,"column":62,"offset":63},{"line":59,"column":81,"offset":82},214,558,{"type":27,"value":84,"position":85}," drawn through time: every bar keeps the same ledger of opened positions and folds it onto a map of 128 rows around the close, its rows on round prices so the bands run straight, and each column shows the estimate as it stood on that bar. The brighter a row, the more money a sweep there would force out. A level that price trades through is gone from that bar on, so the bands end where price ran into them, and a band that runs on to the right edge is money still waiting. Resting the pointer on a cell reads its dollars and its price.",{"start":86,"end":87},{"line":59,"column":81,"offset":82},{"line":59,"column":88,"offset":89},751,1095,{"start":91,"end":92},{"line":59,"column":21,"offset":60},{"line":59,"column":88,"offset":89},{"type":27,"value":28},{"type":31,"tagName":32,"properties":95,"children":96,"position":350},{},[97,106,120,127,140,147,165,172,185,192,205,212,225,232,250,257,275,282,295,302,319,326,343],{"type":27,"value":98,"position":99},"The parts are an ",{"start":100,"end":103},{"line":101,"column":21,"offset":102},9,1097,{"line":101,"column":104,"offset":105},18,1114,{"type":31,"tagName":107,"properties":108,"children":109,"position":117},"code",{},[110],{"type":27,"value":111,"position":112},"oi.close",{"start":113,"end":114},{"line":101,"column":104,"offset":105},{"line":101,"column":115,"offset":116},28,1124,{"start":118,"end":119},{"line":101,"column":104,"offset":105},{"line":101,"column":115,"offset":116},{"type":27,"value":121,"position":122}," input and side-split ",{"start":123,"end":124},{"line":101,"column":115,"offset":116},{"line":101,"column":125,"offset":126},50,1146,{"type":31,"tagName":107,"properties":128,"children":129,"position":137},{},[130],{"type":27,"value":131,"position":132},"trades.volume",{"start":133,"end":134},{"line":101,"column":125,"offset":126},{"line":101,"column":135,"offset":136},65,1161,{"start":138,"end":139},{"line":101,"column":125,"offset":126},{"line":101,"column":135,"offset":136},{"type":27,"value":141,"position":142}," inputs read as positions (",{"start":143,"end":144},{"line":101,"column":135,"offset":136},{"line":101,"column":145,"offset":146},92,1188,{"type":31,"tagName":65,"properties":148,"children":150,"position":160},{"href":149},"../core-concepts/data-sources.md",[151],{"type":27,"value":152,"position":153},"Data sources",{"start":154,"end":157},{"line":101,"column":155,"offset":156},93,1189,{"line":101,"column":158,"offset":159},105,1201,{"start":161,"end":162},{"line":101,"column":145,"offset":146},{"line":101,"column":163,"offset":164},140,1236,{"type":27,"value":166,"position":167},"), an ",{"start":168,"end":169},{"line":101,"column":163,"offset":164},{"line":101,"column":170,"offset":171},146,1242,{"type":31,"tagName":107,"properties":173,"children":174,"position":182},{},[175],{"type":27,"value":176,"position":177},"out.grid",{"start":178,"end":179},{"line":101,"column":170,"offset":171},{"line":101,"column":180,"offset":181},156,1252,{"start":183,"end":184},{"line":101,"column":170,"offset":171},{"line":101,"column":180,"offset":181},{"type":27,"value":186,"position":187}," of 128 rows written cell by cell from ",{"start":188,"end":189},{"line":101,"column":180,"offset":181},{"line":101,"column":190,"offset":191},195,1291,{"type":31,"tagName":107,"properties":193,"children":194,"position":202},{},[195],{"type":27,"value":196,"position":197},"onBar()",{"start":198,"end":199},{"line":101,"column":190,"offset":191},{"line":101,"column":200,"offset":201},204,1300,{"start":203,"end":204},{"line":101,"column":190,"offset":191},{"line":101,"column":200,"offset":201},{"type":27,"value":206,"position":207},", two data-only outputs that place the grid on the price axis, a ",{"start":208,"end":209},{"line":101,"column":200,"offset":201},{"line":101,"column":210,"offset":211},269,1365,{"type":31,"tagName":107,"properties":213,"children":214,"position":222},{},[215],{"type":27,"value":216,"position":217},"plot.heatmap",{"start":218,"end":219},{"line":101,"column":210,"offset":211},{"line":101,"column":220,"offset":221},283,1379,{"start":223,"end":224},{"line":101,"column":210,"offset":211},{"line":101,"column":220,"offset":221},{"type":27,"value":226,"position":227}," declaration over the grid (",{"start":228,"end":229},{"line":101,"column":220,"offset":221},{"line":101,"column":230,"offset":231},311,1407,{"type":31,"tagName":65,"properties":233,"children":235,"position":245},{"href":234},"../presentation/price-canvases.md",[236],{"type":27,"value":237,"position":238},"Price canvases",{"start":239,"end":242},{"line":101,"column":240,"offset":241},312,1408,{"line":101,"column":243,"offset":244},326,1422,{"start":246,"end":247},{"line":101,"column":230,"offset":231},{"line":101,"column":248,"offset":249},362,1458,{"type":27,"value":251,"position":252},"), and a label handle for the one sentence shown without open interest (",{"start":253,"end":254},{"line":101,"column":248,"offset":249},{"line":101,"column":255,"offset":256},434,1530,{"type":31,"tagName":65,"properties":258,"children":260,"position":270},{"href":259},"../presentation/drawing-objects.md",[261],{"type":27,"value":262,"position":263},"Drawing objects",{"start":264,"end":267},{"line":101,"column":265,"offset":266},435,1531,{"line":101,"column":268,"offset":269},450,1546,{"start":271,"end":272},{"line":101,"column":255,"offset":256},{"line":101,"column":273,"offset":274},487,1583,{"type":27,"value":276,"position":277},"). This is also the ",{"start":278,"end":279},{"line":101,"column":273,"offset":274},{"line":101,"column":280,"offset":281},507,1603,{"type":31,"tagName":107,"properties":283,"children":284,"position":292},{},[285],{"type":27,"value":286,"position":287},"liquidation-heat-oi",{"start":288,"end":289},{"line":101,"column":280,"offset":281},{"line":101,"column":290,"offset":291},528,1624,{"start":293,"end":294},{"line":101,"column":280,"offset":281},{"line":101,"column":290,"offset":291},{"type":27,"value":296,"position":297}," template: the ",{"start":298,"end":299},{"line":101,"column":290,"offset":291},{"line":101,"column":300,"offset":301},543,1639,{"type":31,"tagName":303,"properties":304,"children":305,"position":314},"strong",{},[306],{"type":27,"value":8,"position":307},{"start":308,"end":311},{"line":101,"column":309,"offset":310},545,1641,{"line":101,"column":312,"offset":313},564,1660,{"start":315,"end":316},{"line":101,"column":300,"offset":301},{"line":101,"column":317,"offset":318},566,1662,{"type":27,"value":320,"position":321}," card under ",{"start":322,"end":323},{"line":101,"column":317,"offset":318},{"line":101,"column":324,"offset":325},578,1674,{"type":31,"tagName":303,"properties":327,"children":328,"position":338},{},[329],{"type":27,"value":330,"position":331},"Order flow",{"start":332,"end":335},{"line":101,"column":333,"offset":334},580,1676,{"line":101,"column":336,"offset":337},590,1686,{"start":339,"end":340},{"line":101,"column":324,"offset":325},{"line":101,"column":341,"offset":342},592,1688,{"type":27,"value":344,"position":345}," in the editor's starter list, and it compiles as written.",{"start":346,"end":347},{"line":101,"column":341,"offset":342},{"line":101,"column":348,"offset":349},650,1746,{"start":351,"end":352},{"line":101,"column":21,"offset":102},{"line":101,"column":348,"offset":349},{"type":27,"value":28},{"type":31,"tagName":355,"properties":356,"children":357,"position":368},"h2",{},[358],{"type":27,"value":359,"position":360},"The wrun indicator",{"start":361,"end":365},{"line":362,"column":363,"offset":364},11,4,1751,{"line":362,"column":366,"offset":367},22,1769,{"start":369,"end":371},{"line":362,"column":21,"offset":370},1748,{"line":362,"column":366,"offset":367},{"type":27,"value":28},{"type":14,"children":374},[375],{"type":31,"tagName":376,"properties":377,"children":381,"data":-1},"pre",{"class":378,"style":379,"tabindex":380,"data-sample":286},"shiki shiki-themes github-dark github-light","--shiki-dark:#e1e4e8;--shiki-light:#24292e;--shiki-dark-bg:#24292e;--shiki-light-bg:#fff","0",[382],{"type":31,"tagName":107,"properties":383,"children":386},{"class":384},[385],"language-typescript",[387,398,399,407,408,416,417,425,426,434,435,443,444,452,453,461,462,470,471,479,480,488,489,497,498,506,507,510,511,537,538,616,617,696,697,717,718,794,795,823,824,851,852,891,892,941,942,988,989,1025,1026,1055,1056,1100,1101,1138,1139,1180,1181,1217,1218,1295,1296,1463,1464,1467,1468,1476,1477,1485,1486,1494,1495,1524,1525,1565,1566,1618,1619,1717,1718,1726,1727,1771,1772,1863,1864,1871,1872,1875,1876,1906,1907,1937,1938,2002,2003,2060,2061,2111,2112,2154,2155,2158,2159,2191,2192,2217,2218,2243,2244,2279,2280,2304,2305,2343,2344,2374,2375,2399,2400,2437,2438,2470,2471,2501,2502,2531,2532,2535,2536,2566,2567,2597,2598,2633,2634,2667,2668,2675,2676,2679,2680,2731,2732,2811,2812,2842,2843,2980,2981,2988,2989,2992,2993,3060,3061,3101,3102,3175,3176,3183,3184,3187,3188,3196,3197,3205,3206,3285,3286,3320,3321,3354,3355,3375,3376,3396,3397,3469,3470,3502,3503,3558,3559,3581,3582,3617,3618,3639,3640,3680,3681,3703,3704,3724,3725,3737,3738,3746,3747,3775,3776,3798,3799,3819,3820,3839,3840,3851,3852,3859,3860,3888,3889,3897,3898,3911,3912,3920,3921,3928,3929,3932,3933,4048,4049,4075,4076,4101,4102,4133,4134,4193,4194,4287,4288,4319,4320,4351,4352,4408,4409,4457,4458,4495,4496,4539,4540,4581,4582,4625,4626,4679,4680,4706,4707,4732,4733,4765,4766,4798,4799,4823,4824,4852,4853,4866,4867,4874,4875,4899,4900,4928,4929,4941,4942,4949,4950,4957,4958,4965,4966,4969,4970,5020,5021,5052,5053,5137,5138,5201,5202,5217,5218,5233,5234,5241,5242,5245,5246,5279,5280,5301,5302,5322,5323,5343,5344,5364,5365,5438,5439,5446,5447,5450,5451,5484,5485,5525,5526,5546,5547,5559,5560,5581,5582,5627,5628,5649,5650,5672,5673,5689,5690,5709,5710,5717,5718,5725,5726,5729,5730,5738,5739,5747,5748,5756,5757,5785,5786,5815,5816,5844,5845,5873,5874,5920,5921,5933,5934,5946,5947,5954,5955,5998,5999,6032,6033,6065,6066,6123,6124,6152,6153,6180,6181,6188,6189,6250,6251,6329,6330,6343,6344,6369,6370,6399,6400,6420,6421,6445,6446,6477,6478,6512,6513,6577,6578,6585,6586,6603,6604,6611,6612,6624,6625,6644,6645,6656,6657,6668,6669,6676,6677,6689,6690,6702,6703,6715,6716,6728,6729,6827,6828],{"type":31,"tagName":388,"properties":389,"children":391},"span",{"class":390},"line",[392],{"type":31,"tagName":388,"properties":393,"children":395},{"style":394},"--shiki-dark:#6A737D;--shiki-light:#6A737D",[396],{"type":27,"value":397},"// OI Liquidation Heat: where the positions opened over the lookback would be liquidated, ESTIMATED from the market's",{"type":27,"value":28},{"type":31,"tagName":388,"properties":400,"children":401},{"class":390},[402],{"type":31,"tagName":388,"properties":403,"children":404},{"style":394},[405],{"type":27,"value":406},"// open interest and sided volume, painted behind the candles as a heatmap. It is the Liquidation Map's model drawn",{"type":27,"value":28},{"type":31,"tagName":388,"properties":409,"children":410},{"class":390},[411],{"type":31,"tagName":388,"properties":412,"children":413},{"style":394},[414],{"type":27,"value":415},"// through time: every bar keeps the same ledger and folds it onto a 128-row map around the close, its rows on round",{"type":27,"value":28},{"type":31,"tagName":388,"properties":418,"children":419},{"class":390},[420],{"type":31,"tagName":388,"properties":421,"children":422},{"style":394},[423],{"type":27,"value":424},"// prices so the bands run straight, and each column shows the estimate as it stood on that bar. The brighter a row,",{"type":27,"value":28},{"type":31,"tagName":388,"properties":427,"children":428},{"class":390},[429],{"type":31,"tagName":388,"properties":430,"children":431},{"style":394},[432],{"type":27,"value":433},"// the more money a sweep there would force out; a level price trades through is gone from that bar on, so the bands",{"type":27,"value":28},{"type":31,"tagName":388,"properties":436,"children":437},{"class":390},[438],{"type":31,"tagName":388,"properties":439,"children":440},{"style":394},[441],{"type":27,"value":442},"// end where price ran into them.",{"type":27,"value":28},{"type":31,"tagName":388,"properties":445,"children":446},{"class":390},[447],{"type":31,"tagName":388,"properties":448,"children":449},{"style":394},[450],{"type":27,"value":451},"//",{"type":27,"value":28},{"type":31,"tagName":388,"properties":454,"children":455},{"class":390},[456],{"type":31,"tagName":388,"properties":457,"children":458},{"style":394},[459],{"type":27,"value":460},"// The model, per bar: a rise in open interest opens positions at the bar's typical price, split into longs and",{"type":27,"value":28},{"type":31,"tagName":388,"properties":463,"children":464},{"class":390},[465],{"type":31,"tagName":388,"properties":466,"children":467},{"style":394},[468],{"type":27,"value":469},"// shorts by the bar's buy share of sided volume, and across four leverage tiers (10x, 25x, 50x, 100x) with fixed",{"type":27,"value":28},{"type":31,"tagName":388,"properties":472,"children":473},{"class":390},[474],{"type":31,"tagName":388,"properties":475,"children":476},{"style":394},[477],{"type":27,"value":478},"// weights; each position's liquidation price follows from its leverage and the maintenance margin. A fall in open",{"type":27,"value":28},{"type":31,"tagName":388,"properties":481,"children":482},{"class":390},[483],{"type":31,"tagName":388,"properties":484,"children":485},{"style":394},[486],{"type":27,"value":487},"// interest scales every live level down in proportion. A long level is swept when a later bar's low reaches it, a",{"type":27,"value":28},{"type":31,"tagName":388,"properties":490,"children":491},{"class":390},[492],{"type":31,"tagName":388,"properties":493,"children":494},{"style":394},[495],{"type":27,"value":496},"// short level when a later bar's high does. Levels older than the lookback drop. Nothing here is a venue's own",{"type":27,"value":28},{"type":31,"tagName":388,"properties":499,"children":500},{"class":390},[501],{"type":31,"tagName":388,"properties":502,"children":503},{"style":394},[504],{"type":27,"value":505},"// liquidation feed: it is a model of where the open positions sit, built from the open-interest change bar by bar.",{"type":27,"value":28},{"type":31,"tagName":388,"properties":508,"children":509},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":512,"children":513},{"class":390},[514,520,526,532],{"type":31,"tagName":388,"properties":515,"children":517},{"style":516},"--shiki-dark:#B392F0;--shiki-light:#6F42C1",[518],{"type":27,"value":519},"section",{"type":31,"tagName":388,"properties":521,"children":523},{"style":522},"--shiki-dark:#E1E4E8;--shiki-light:#24292E",[524],{"type":27,"value":525},"(",{"type":31,"tagName":388,"properties":527,"children":529},{"style":528},"--shiki-dark:#9ECBFF;--shiki-light:#032F62",[530],{"type":27,"value":531},"\"Positions\"",{"type":31,"tagName":388,"properties":533,"children":534},{"style":522},[535],{"type":27,"value":536},");",{"type":27,"value":28},{"type":31,"tagName":388,"properties":539,"children":540},{"class":390},[541,546,551,555,560,565,571,576,581,586,591,596,601,606,611],{"type":31,"tagName":388,"properties":542,"children":543},{"style":522},[544],{"type":27,"value":545},"param.",{"type":31,"tagName":388,"properties":547,"children":548},{"style":516},[549],{"type":27,"value":550},"int",{"type":31,"tagName":388,"properties":552,"children":553},{"style":522},[554],{"type":27,"value":525},{"type":31,"tagName":388,"properties":556,"children":557},{"style":528},[558],{"type":27,"value":559},"\"lookback\"",{"type":31,"tagName":388,"properties":561,"children":562},{"style":522},[563],{"type":27,"value":564},", ",{"type":31,"tagName":388,"properties":566,"children":568},{"style":567},"--shiki-dark:#79B8FF;--shiki-light:#005CC5",[569],{"type":27,"value":570},"672",{"type":31,"tagName":388,"properties":572,"children":573},{"style":522},[574],{"type":27,"value":575},", { min: ",{"type":31,"tagName":388,"properties":577,"children":578},{"style":567},[579],{"type":27,"value":580},"96",{"type":31,"tagName":388,"properties":582,"children":583},{"style":522},[584],{"type":27,"value":585},", max: ",{"type":31,"tagName":388,"properties":587,"children":588},{"style":567},[589],{"type":27,"value":590},"2000",{"type":31,"tagName":388,"properties":592,"children":593},{"style":522},[594],{"type":27,"value":595},", label: ",{"type":31,"tagName":388,"properties":597,"children":598},{"style":528},[599],{"type":27,"value":600},"\"Lookback in bars\"",{"type":31,"tagName":388,"properties":602,"children":603},{"style":522},[604],{"type":27,"value":605},", description: ",{"type":31,"tagName":388,"properties":607,"children":608},{"style":528},[609],{"type":27,"value":610},"\"Bars of opened positions kept in the map, in the chart's own bars; the map covers no more than the chart has loaded\"",{"type":31,"tagName":388,"properties":612,"children":613},{"style":522},[614],{"type":27,"value":615}," });",{"type":27,"value":28},{"type":31,"tagName":388,"properties":618,"children":619},{"class":390},[620,624,629,633,638,642,647,651,655,659,664,669,674,678,683,687,692],{"type":31,"tagName":388,"properties":621,"children":622},{"style":522},[623],{"type":27,"value":545},{"type":31,"tagName":388,"properties":625,"children":626},{"style":516},[627],{"type":27,"value":628},"number",{"type":31,"tagName":388,"properties":630,"children":631},{"style":522},[632],{"type":27,"value":525},{"type":31,"tagName":388,"properties":634,"children":635},{"style":528},[636],{"type":27,"value":637},"\"maint_margin_pct\"",{"type":31,"tagName":388,"properties":639,"children":640},{"style":522},[641],{"type":27,"value":564},{"type":31,"tagName":388,"properties":643,"children":644},{"style":567},[645],{"type":27,"value":646},"0.5",{"type":31,"tagName":388,"properties":648,"children":649},{"style":522},[650],{"type":27,"value":575},{"type":31,"tagName":388,"properties":652,"children":653},{"style":567},[654],{"type":27,"value":380},{"type":31,"tagName":388,"properties":656,"children":657},{"style":522},[658],{"type":27,"value":585},{"type":31,"tagName":388,"properties":660,"children":661},{"style":567},[662],{"type":27,"value":663},"2",{"type":31,"tagName":388,"properties":665,"children":666},{"style":522},[667],{"type":27,"value":668},", step: ",{"type":31,"tagName":388,"properties":670,"children":671},{"style":567},[672],{"type":27,"value":673},"0.1",{"type":31,"tagName":388,"properties":675,"children":676},{"style":522},[677],{"type":27,"value":595},{"type":31,"tagName":388,"properties":679,"children":680},{"style":528},[681],{"type":27,"value":682},"\"Maintenance margin in percent\"",{"type":31,"tagName":388,"properties":684,"children":685},{"style":522},[686],{"type":27,"value":605},{"type":31,"tagName":388,"properties":688,"children":689},{"style":528},[690],{"type":27,"value":691},"\"Maintenance margin as a percent of the position: the distance a liquidation sits short of the leverage's full move\"",{"type":31,"tagName":388,"properties":693,"children":694},{"style":522},[695],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":698,"children":699},{"class":390},[700,704,708,713],{"type":31,"tagName":388,"properties":701,"children":702},{"style":516},[703],{"type":27,"value":519},{"type":31,"tagName":388,"properties":705,"children":706},{"style":522},[707],{"type":27,"value":525},{"type":31,"tagName":388,"properties":709,"children":710},{"style":528},[711],{"type":27,"value":712},"\"Map\"",{"type":31,"tagName":388,"properties":714,"children":715},{"style":522},[716],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":719,"children":720},{"class":390},[721,725,729,733,738,742,747,751,755,759,764,768,772,776,781,785,790],{"type":31,"tagName":388,"properties":722,"children":723},{"style":522},[724],{"type":27,"value":545},{"type":31,"tagName":388,"properties":726,"children":727},{"style":516},[728],{"type":27,"value":628},{"type":31,"tagName":388,"properties":730,"children":731},{"style":522},[732],{"type":27,"value":525},{"type":31,"tagName":388,"properties":734,"children":735},{"style":528},[736],{"type":27,"value":737},"\"range_pct\"",{"type":31,"tagName":388,"properties":739,"children":740},{"style":522},[741],{"type":27,"value":564},{"type":31,"tagName":388,"properties":743,"children":744},{"style":567},[745],{"type":27,"value":746},"5",{"type":31,"tagName":388,"properties":748,"children":749},{"style":522},[750],{"type":27,"value":575},{"type":31,"tagName":388,"properties":752,"children":753},{"style":567},[754],{"type":27,"value":663},{"type":31,"tagName":388,"properties":756,"children":757},{"style":522},[758],{"type":27,"value":585},{"type":31,"tagName":388,"properties":760,"children":761},{"style":567},[762],{"type":27,"value":763},"25",{"type":31,"tagName":388,"properties":765,"children":766},{"style":522},[767],{"type":27,"value":668},{"type":31,"tagName":388,"properties":769,"children":770},{"style":567},[771],{"type":27,"value":646},{"type":31,"tagName":388,"properties":773,"children":774},{"style":522},[775],{"type":27,"value":595},{"type":31,"tagName":388,"properties":777,"children":778},{"style":528},[779],{"type":27,"value":780},"\"Map range in percent\"",{"type":31,"tagName":388,"properties":782,"children":783},{"style":522},[784],{"type":27,"value":605},{"type":31,"tagName":388,"properties":786,"children":787},{"style":528},[788],{"type":27,"value":789},"\"Map range: percent around the close, each side; the 128 rows split it on round prices, so the reach varies a little and a narrower range draws finer rows\"",{"type":31,"tagName":388,"properties":791,"children":792},{"style":522},[793],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":796,"children":797},{"class":390},[798,803,808,813,818],{"type":31,"tagName":388,"properties":799,"children":800},{"style":516},[801],{"type":27,"value":802},"legend",{"type":31,"tagName":388,"properties":804,"children":805},{"style":522},[806],{"type":27,"value":807},"({ title: ",{"type":31,"tagName":388,"properties":809,"children":810},{"style":528},[811],{"type":27,"value":812},"\"estimated, up to {{lookback}} bars\"",{"type":31,"tagName":388,"properties":814,"children":815},{"style":522},[816],{"type":27,"value":817}," }); ",{"type":31,"tagName":388,"properties":819,"children":820},{"style":394},[821],{"type":27,"value":822},"// the words after the name in the legend: up to, since a chart holding fewer bars builds from those",{"type":27,"value":28},{"type":31,"tagName":388,"properties":825,"children":826},{"class":390},[827,832,836,841,846],{"type":31,"tagName":388,"properties":828,"children":829},{"style":516},[830],{"type":27,"value":831},"input",{"type":31,"tagName":388,"properties":833,"children":834},{"style":522},[835],{"type":27,"value":525},{"type":31,"tagName":388,"properties":837,"children":838},{"style":528},[839],{"type":27,"value":840},"\"close\"",{"type":31,"tagName":388,"properties":842,"children":843},{"style":522},[844],{"type":27,"value":845},", ohlcv.close); ",{"type":31,"tagName":388,"properties":847,"children":848},{"style":394},[849],{"type":27,"value":850},"// the chart's own candles: the map's centre, the entry price and the sweeps",{"type":27,"value":28},{"type":31,"tagName":388,"properties":853,"children":854},{"class":390},[855,859,863,868,873,878,882,887],{"type":31,"tagName":388,"properties":856,"children":857},{"style":516},[858],{"type":27,"value":831},{"type":31,"tagName":388,"properties":860,"children":861},{"style":522},[862],{"type":27,"value":525},{"type":31,"tagName":388,"properties":864,"children":865},{"style":528},[866],{"type":27,"value":867},"\"oi\"",{"type":31,"tagName":388,"properties":869,"children":870},{"style":522},[871],{"type":27,"value":872},", oi.close, { missing: ",{"type":31,"tagName":388,"properties":874,"children":875},{"style":528},[876],{"type":27,"value":877},"\"nan\"",{"type":31,"tagName":388,"properties":879,"children":880},{"style":522},[881],{"type":27,"value":605},{"type":31,"tagName":388,"properties":883,"children":884},{"style":528},[885],{"type":27,"value":886},"\"Open interest in USD; NaN on a market without it (spot, FX, prediction markets), which blanks the map\"",{"type":31,"tagName":388,"properties":888,"children":889},{"style":522},[890],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":893,"children":894},{"class":390},[895,899,903,908,913,918,923,928,932,937],{"type":31,"tagName":388,"properties":896,"children":897},{"style":516},[898],{"type":27,"value":831},{"type":31,"tagName":388,"properties":900,"children":901},{"style":522},[902],{"type":27,"value":525},{"type":31,"tagName":388,"properties":904,"children":905},{"style":528},[906],{"type":27,"value":907},"\"buy\"",{"type":31,"tagName":388,"properties":909,"children":910},{"style":522},[911],{"type":27,"value":912},", trades.volume, { side: ",{"type":31,"tagName":388,"properties":914,"children":915},{"style":528},[916],{"type":27,"value":917},"\"BUY\"",{"type":31,"tagName":388,"properties":919,"children":920},{"style":522},[921],{"type":27,"value":922},", missing: ",{"type":31,"tagName":388,"properties":924,"children":925},{"style":528},[926],{"type":27,"value":927},"\"zero\"",{"type":31,"tagName":388,"properties":929,"children":930},{"style":522},[931],{"type":27,"value":605},{"type":31,"tagName":388,"properties":933,"children":934},{"style":528},[935],{"type":27,"value":936},"\"Buy volume of the bar: its share of sided volume is the share of new positions read as longs\"",{"type":31,"tagName":388,"properties":938,"children":939},{"style":522},[940],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":943,"children":944},{"class":390},[945,949,953,958,962,967,971,975,979,984],{"type":31,"tagName":388,"properties":946,"children":947},{"style":516},[948],{"type":27,"value":831},{"type":31,"tagName":388,"properties":950,"children":951},{"style":522},[952],{"type":27,"value":525},{"type":31,"tagName":388,"properties":954,"children":955},{"style":528},[956],{"type":27,"value":957},"\"sell\"",{"type":31,"tagName":388,"properties":959,"children":960},{"style":522},[961],{"type":27,"value":912},{"type":31,"tagName":388,"properties":963,"children":964},{"style":528},[965],{"type":27,"value":966},"\"SELL\"",{"type":31,"tagName":388,"properties":968,"children":969},{"style":522},[970],{"type":27,"value":922},{"type":31,"tagName":388,"properties":972,"children":973},{"style":528},[974],{"type":27,"value":927},{"type":31,"tagName":388,"properties":976,"children":977},{"style":522},[978],{"type":27,"value":605},{"type":31,"tagName":388,"properties":980,"children":981},{"style":528},[982],{"type":27,"value":983},"\"Sell volume of the bar\"",{"type":31,"tagName":388,"properties":985,"children":986},{"style":522},[987],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":990,"children":991},{"class":390},[992,997,1001,1006,1011,1016,1020],{"type":31,"tagName":388,"properties":993,"children":994},{"style":516},[995],{"type":27,"value":996},"output",{"type":31,"tagName":388,"properties":998,"children":999},{"style":522},[1000],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1002,"children":1003},{"style":528},[1004],{"type":27,"value":1005},"\"grid_low\"",{"type":31,"tagName":388,"properties":1007,"children":1008},{"style":522},[1009],{"type":27,"value":1010},", none, overlay, { description: ",{"type":31,"tagName":388,"properties":1012,"children":1013},{"style":528},[1014],{"type":27,"value":1015},"\"The bottom edge of the map's lowest row on this bar\"",{"type":31,"tagName":388,"properties":1017,"children":1018},{"style":522},[1019],{"type":27,"value":817},{"type":31,"tagName":388,"properties":1021,"children":1022},{"style":394},[1023],{"type":27,"value":1024},"// data-only: the heatmap reads it",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1027,"children":1028},{"class":390},[1029,1033,1037,1042,1046,1051],{"type":31,"tagName":388,"properties":1030,"children":1031},{"style":516},[1032],{"type":27,"value":996},{"type":31,"tagName":388,"properties":1034,"children":1035},{"style":522},[1036],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1038,"children":1039},{"style":528},[1040],{"type":27,"value":1041},"\"row_step\"",{"type":31,"tagName":388,"properties":1043,"children":1044},{"style":522},[1045],{"type":27,"value":1010},{"type":31,"tagName":388,"properties":1047,"children":1048},{"style":528},[1049],{"type":27,"value":1050},"\"The map's row height in price on this bar\"",{"type":31,"tagName":388,"properties":1052,"children":1053},{"style":522},[1054],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1057,"children":1058},{"class":390},[1059,1063,1067,1072,1077,1082,1086,1091,1095],{"type":31,"tagName":388,"properties":1060,"children":1061},{"style":516},[1062],{"type":27,"value":996},{"type":31,"tagName":388,"properties":1064,"children":1065},{"style":522},[1066],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1068,"children":1069},{"style":528},[1070],{"type":27,"value":1071},"\"longs_near\"",{"type":31,"tagName":388,"properties":1073,"children":1074},{"style":522},[1075],{"type":27,"value":1076},", none, overlay, { format: ",{"type":31,"tagName":388,"properties":1078,"children":1079},{"style":528},[1080],{"type":27,"value":1081},"\"usd\"",{"type":31,"tagName":388,"properties":1083,"children":1084},{"style":522},[1085],{"type":27,"value":605},{"type":31,"tagName":388,"properties":1087,"children":1088},{"style":528},[1089],{"type":27,"value":1090},"\"Estimated long liquidations within 5% below the close, USD, every bar\"",{"type":31,"tagName":388,"properties":1092,"children":1093},{"style":522},[1094],{"type":27,"value":817},{"type":31,"tagName":388,"properties":1096,"children":1097},{"style":394},[1098],{"type":27,"value":1099},"// data-only: the Console and alerts read them",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1102,"children":1103},{"class":390},[1104,1108,1112,1117,1121,1125,1129,1134],{"type":31,"tagName":388,"properties":1105,"children":1106},{"style":516},[1107],{"type":27,"value":996},{"type":31,"tagName":388,"properties":1109,"children":1110},{"style":522},[1111],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1113,"children":1114},{"style":528},[1115],{"type":27,"value":1116},"\"shorts_near\"",{"type":31,"tagName":388,"properties":1118,"children":1119},{"style":522},[1120],{"type":27,"value":1076},{"type":31,"tagName":388,"properties":1122,"children":1123},{"style":528},[1124],{"type":27,"value":1081},{"type":31,"tagName":388,"properties":1126,"children":1127},{"style":522},[1128],{"type":27,"value":605},{"type":31,"tagName":388,"properties":1130,"children":1131},{"style":528},[1132],{"type":27,"value":1133},"\"Estimated short liquidations within 5% above the close, USD, every bar\"",{"type":31,"tagName":388,"properties":1135,"children":1136},{"style":522},[1137],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1140,"children":1141},{"class":390},[1142,1147,1152,1156,1161,1166,1171,1175],{"type":31,"tagName":388,"properties":1143,"children":1144},{"style":522},[1145],{"type":27,"value":1146},"out.",{"type":31,"tagName":388,"properties":1148,"children":1149},{"style":516},[1150],{"type":27,"value":1151},"grid",{"type":31,"tagName":388,"properties":1153,"children":1154},{"style":522},[1155],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1157,"children":1158},{"style":528},[1159],{"type":27,"value":1160},"\"heat\"",{"type":31,"tagName":388,"properties":1162,"children":1163},{"style":522},[1164],{"type":27,"value":1165},", { rows: ",{"type":31,"tagName":388,"properties":1167,"children":1168},{"style":567},[1169],{"type":27,"value":1170},"128",{"type":31,"tagName":388,"properties":1172,"children":1173},{"style":522},[1174],{"type":27,"value":817},{"type":31,"tagName":388,"properties":1176,"children":1177},{"style":394},[1178],{"type":27,"value":1179},"// 128 data-only outputs heat_0..heat_127, one per row of the map in USD, written with out_heat(row, value)",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1182,"children":1183},{"class":390},[1184,1189,1193,1198,1203,1208,1212],{"type":31,"tagName":388,"properties":1185,"children":1186},{"style":516},[1187],{"type":27,"value":1188},"string",{"type":31,"tagName":388,"properties":1190,"children":1191},{"style":522},[1192],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1194,"children":1195},{"style":528},[1196],{"type":27,"value":1197},"\"note\"",{"type":31,"tagName":388,"properties":1199,"children":1200},{"style":522},[1201],{"type":27,"value":1202},", { max_bytes: ",{"type":31,"tagName":388,"properties":1204,"children":1205},{"style":567},[1206],{"type":27,"value":1207},"80",{"type":31,"tagName":388,"properties":1209,"children":1210},{"style":522},[1211],{"type":27,"value":817},{"type":31,"tagName":388,"properties":1213,"children":1214},{"style":394},[1215],{"type":27,"value":1216},"// the one sentence shown when the market has no open interest",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1219,"children":1220},{"class":390},[1221,1226,1231,1236,1241,1246,1251,1256,1261,1266,1271,1276,1281,1286,1291],{"type":31,"tagName":388,"properties":1222,"children":1223},{"style":522},[1224],{"type":27,"value":1225},"handles.",{"type":31,"tagName":388,"properties":1227,"children":1228},{"style":516},[1229],{"type":27,"value":1230},"label",{"type":31,"tagName":388,"properties":1232,"children":1233},{"style":522},[1234],{"type":27,"value":1235},"({ anchor: ",{"type":31,"tagName":388,"properties":1237,"children":1238},{"style":528},[1239],{"type":27,"value":1240},"\"top_right\"",{"type":31,"tagName":388,"properties":1242,"children":1243},{"style":522},[1244],{"type":27,"value":1245},", align: ",{"type":31,"tagName":388,"properties":1247,"children":1248},{"style":528},[1249],{"type":27,"value":1250},"\"right\"",{"type":31,"tagName":388,"properties":1252,"children":1253},{"style":522},[1254],{"type":27,"value":1255},", color: ",{"type":31,"tagName":388,"properties":1257,"children":1258},{"style":528},[1259],{"type":27,"value":1260},"\"#94a3b8\"",{"type":31,"tagName":388,"properties":1262,"children":1263},{"style":522},[1264],{"type":27,"value":1265},", size: ",{"type":31,"tagName":388,"properties":1267,"children":1268},{"style":567},[1269],{"type":27,"value":1270},"12",{"type":31,"tagName":388,"properties":1272,"children":1273},{"style":522},[1274],{"type":27,"value":1275},", style: ",{"type":31,"tagName":388,"properties":1277,"children":1278},{"style":528},[1279],{"type":27,"value":1280},"\"plain\"",{"type":31,"tagName":388,"properties":1282,"children":1283},{"style":522},[1284],{"type":27,"value":1285},", safe_area: ",{"type":31,"tagName":388,"properties":1287,"children":1288},{"style":567},[1289],{"type":27,"value":1290},"true",{"type":31,"tagName":388,"properties":1292,"children":1293},{"style":522},[1294],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1297,"children":1298},{"class":390},[1299,1304,1309,1314,1319,1324,1328,1333,1337,1342,1346,1351,1356,1360,1365,1369,1374,1378,1383,1387,1392,1397,1402,1407,1411,1416,1421,1426,1431,1436,1440,1444,1449,1454,1459],{"type":31,"tagName":388,"properties":1300,"children":1301},{"style":522},[1302],{"type":27,"value":1303},"plot.",{"type":31,"tagName":388,"properties":1305,"children":1306},{"style":516},[1307],{"type":27,"value":1308},"heatmap",{"type":31,"tagName":388,"properties":1310,"children":1311},{"style":522},[1312],{"type":27,"value":1313},"({ name: ",{"type":31,"tagName":388,"properties":1315,"children":1316},{"style":528},[1317],{"type":27,"value":1318},"\"liq_heat\"",{"type":31,"tagName":388,"properties":1320,"children":1321},{"style":522},[1322],{"type":27,"value":1323},", grid: ",{"type":31,"tagName":388,"properties":1325,"children":1326},{"style":528},[1327],{"type":27,"value":1160},{"type":31,"tagName":388,"properties":1329,"children":1330},{"style":522},[1331],{"type":27,"value":1332},", price_low: ",{"type":31,"tagName":388,"properties":1334,"children":1335},{"style":528},[1336],{"type":27,"value":1005},{"type":31,"tagName":388,"properties":1338,"children":1339},{"style":522},[1340],{"type":27,"value":1341},", price_step: ",{"type":31,"tagName":388,"properties":1343,"children":1344},{"style":528},[1345],{"type":27,"value":1041},{"type":31,"tagName":388,"properties":1347,"children":1348},{"style":522},[1349],{"type":27,"value":1350},", palette: [",{"type":31,"tagName":388,"properties":1352,"children":1353},{"style":528},[1354],{"type":27,"value":1355},"\"theme.bg\"",{"type":31,"tagName":388,"properties":1357,"children":1358},{"style":522},[1359],{"type":27,"value":564},{"type":31,"tagName":388,"properties":1361,"children":1362},{"style":528},[1363],{"type":27,"value":1364},"\"#f8c00040\"",{"type":31,"tagName":388,"properties":1366,"children":1367},{"style":522},[1368],{"type":27,"value":564},{"type":31,"tagName":388,"properties":1370,"children":1371},{"style":528},[1372],{"type":27,"value":1373},"\"#f8c000\"",{"type":31,"tagName":388,"properties":1375,"children":1376},{"style":522},[1377],{"type":27,"value":564},{"type":31,"tagName":388,"properties":1379,"children":1380},{"style":528},[1381],{"type":27,"value":1382},"\"#f86800\"",{"type":31,"tagName":388,"properties":1384,"children":1385},{"style":522},[1386],{"type":27,"value":564},{"type":31,"tagName":388,"properties":1388,"children":1389},{"style":528},[1390],{"type":27,"value":1391},"\"#ef4444\"",{"type":31,"tagName":388,"properties":1393,"children":1394},{"style":522},[1395],{"type":27,"value":1396},"], scale: ",{"type":31,"tagName":388,"properties":1398,"children":1399},{"style":528},[1400],{"type":27,"value":1401},"\"linear\"",{"type":31,"tagName":388,"properties":1403,"children":1404},{"style":522},[1405],{"type":27,"value":1406},", min: ",{"type":31,"tagName":388,"properties":1408,"children":1409},{"style":567},[1410],{"type":27,"value":380},{"type":31,"tagName":388,"properties":1412,"children":1413},{"style":522},[1414],{"type":27,"value":1415},", auto_quantile: ",{"type":31,"tagName":388,"properties":1417,"children":1418},{"style":567},[1419],{"type":27,"value":1420},"0.98",{"type":31,"tagName":388,"properties":1422,"children":1423},{"style":522},[1424],{"type":27,"value":1425},", opacity: ",{"type":31,"tagName":388,"properties":1427,"children":1428},{"style":567},[1429],{"type":27,"value":1430},"0.8",{"type":31,"tagName":388,"properties":1432,"children":1433},{"style":522},[1434],{"type":27,"value":1435},", behind_candles: ",{"type":31,"tagName":388,"properties":1437,"children":1438},{"style":567},[1439],{"type":27,"value":1290},{"type":31,"tagName":388,"properties":1441,"children":1442},{"style":522},[1443],{"type":27,"value":595},{"type":31,"tagName":388,"properties":1445,"children":1446},{"style":528},[1447],{"type":27,"value":1448},"\"Estimated liquidations\"",{"type":31,"tagName":388,"properties":1450,"children":1451},{"style":522},[1452],{"type":27,"value":1453},", tooltip: ",{"type":31,"tagName":388,"properties":1455,"children":1456},{"style":528},[1457],{"type":27,"value":1458},"\"{{value:usd}} at {{price}}\"",{"type":31,"tagName":388,"properties":1460,"children":1461},{"style":522},[1462],{"type":27,"value":615},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1465,"children":1466},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":1469,"children":1470},{"class":390},[1471],{"type":31,"tagName":388,"properties":1472,"children":1473},{"style":394},[1474],{"type":27,"value":1475},"// Leverage tiers the opened positions are spread over, and the share of new open interest each tier takes: the",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1478,"children":1479},{"class":390},[1480],{"type":31,"tagName":388,"properties":1481,"children":1482},{"style":394},[1483],{"type":27,"value":1484},"// Liquidation Map's guess at a perpetual's crowd (most size at low leverage, a thin tail at 100x), so the two",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1487,"children":1488},{"class":390},[1489],{"type":31,"tagName":388,"properties":1490,"children":1491},{"style":394},[1492],{"type":27,"value":1493},"// templates estimate the same levels.",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1496,"children":1497},{"class":390},[1498,1504,1509,1514,1519],{"type":31,"tagName":388,"properties":1499,"children":1501},{"style":1500},"--shiki-dark:#F97583;--shiki-light:#D73A49",[1502],{"type":27,"value":1503},"const",{"type":31,"tagName":388,"properties":1505,"children":1506},{"style":567},[1507],{"type":27,"value":1508}," TIERS",{"type":31,"tagName":388,"properties":1510,"children":1511},{"style":1500},[1512],{"type":27,"value":1513}," =",{"type":31,"tagName":388,"properties":1515,"children":1516},{"style":567},[1517],{"type":27,"value":1518}," 4",{"type":31,"tagName":388,"properties":1520,"children":1521},{"style":522},[1522],{"type":27,"value":1523},";",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1526,"children":1527},{"class":390},[1528,1532,1537,1541,1545,1550,1555,1560],{"type":31,"tagName":388,"properties":1529,"children":1530},{"style":1500},[1531],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":1533,"children":1534},{"style":567},[1535],{"type":27,"value":1536}," SLOTS",{"type":31,"tagName":388,"properties":1538,"children":1539},{"style":1500},[1540],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":1542,"children":1543},{"style":567},[1544],{"type":27,"value":1508},{"type":31,"tagName":388,"properties":1546,"children":1547},{"style":1500},[1548],{"type":27,"value":1549}," *",{"type":31,"tagName":388,"properties":1551,"children":1552},{"style":567},[1553],{"type":27,"value":1554}," 2",{"type":31,"tagName":388,"properties":1556,"children":1557},{"style":522},[1558],{"type":27,"value":1559},"; ",{"type":31,"tagName":388,"properties":1561,"children":1562},{"style":394},[1563],{"type":27,"value":1564},"// per bar: four long levels, then four short levels",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1567,"children":1568},{"class":390},[1569,1574,1579,1583,1589,1594,1599,1604,1608,1613],{"type":31,"tagName":388,"properties":1570,"children":1571},{"style":1500},[1572],{"type":27,"value":1573},"function",{"type":31,"tagName":388,"properties":1575,"children":1576},{"style":516},[1577],{"type":27,"value":1578}," tierLeverage",{"type":31,"tagName":388,"properties":1580,"children":1581},{"style":522},[1582],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1584,"children":1586},{"style":1585},"--shiki-dark:#FFAB70;--shiki-light:#E36209",[1587],{"type":27,"value":1588},"tier",{"type":31,"tagName":388,"properties":1590,"children":1591},{"style":1500},[1592],{"type":27,"value":1593},":",{"type":31,"tagName":388,"properties":1595,"children":1596},{"style":516},[1597],{"type":27,"value":1598}," i32",{"type":31,"tagName":388,"properties":1600,"children":1601},{"style":522},[1602],{"type":27,"value":1603},")",{"type":31,"tagName":388,"properties":1605,"children":1606},{"style":1500},[1607],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":1609,"children":1610},{"style":516},[1611],{"type":27,"value":1612}," f64",{"type":31,"tagName":388,"properties":1614,"children":1615},{"style":522},[1616],{"type":27,"value":1617}," {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1620,"children":1621},{"class":390},[1622,1627,1632,1637,1642,1647,1652,1657,1661,1665,1670,1674,1679,1683,1687,1691,1695,1699,1704,1708,1713],{"type":31,"tagName":388,"properties":1623,"children":1624},{"style":1500},[1625],{"type":27,"value":1626},"  return",{"type":31,"tagName":388,"properties":1628,"children":1629},{"style":522},[1630],{"type":27,"value":1631}," tier ",{"type":31,"tagName":388,"properties":1633,"children":1634},{"style":1500},[1635],{"type":27,"value":1636},"==",{"type":31,"tagName":388,"properties":1638,"children":1639},{"style":567},[1640],{"type":27,"value":1641}," 0",{"type":31,"tagName":388,"properties":1643,"children":1644},{"style":1500},[1645],{"type":27,"value":1646}," ?",{"type":31,"tagName":388,"properties":1648,"children":1649},{"style":567},[1650],{"type":27,"value":1651}," 10.0",{"type":31,"tagName":388,"properties":1653,"children":1654},{"style":1500},[1655],{"type":27,"value":1656}," :",{"type":31,"tagName":388,"properties":1658,"children":1659},{"style":522},[1660],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":1662,"children":1663},{"style":1500},[1664],{"type":27,"value":1636},{"type":31,"tagName":388,"properties":1666,"children":1667},{"style":567},[1668],{"type":27,"value":1669}," 1",{"type":31,"tagName":388,"properties":1671,"children":1672},{"style":1500},[1673],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":1675,"children":1676},{"style":567},[1677],{"type":27,"value":1678}," 25.0",{"type":31,"tagName":388,"properties":1680,"children":1681},{"style":1500},[1682],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":1684,"children":1685},{"style":522},[1686],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":1688,"children":1689},{"style":1500},[1690],{"type":27,"value":1636},{"type":31,"tagName":388,"properties":1692,"children":1693},{"style":567},[1694],{"type":27,"value":1554},{"type":31,"tagName":388,"properties":1696,"children":1697},{"style":1500},[1698],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":1700,"children":1701},{"style":567},[1702],{"type":27,"value":1703}," 50.0",{"type":31,"tagName":388,"properties":1705,"children":1706},{"style":1500},[1707],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":1709,"children":1710},{"style":567},[1711],{"type":27,"value":1712}," 100.0",{"type":31,"tagName":388,"properties":1714,"children":1715},{"style":522},[1716],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1719,"children":1720},{"class":390},[1721],{"type":31,"tagName":388,"properties":1722,"children":1723},{"style":522},[1724],{"type":27,"value":1725},"}",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1728,"children":1729},{"class":390},[1730,1734,1739,1743,1747,1751,1755,1759,1763,1767],{"type":31,"tagName":388,"properties":1731,"children":1732},{"style":1500},[1733],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":1735,"children":1736},{"style":516},[1737],{"type":27,"value":1738}," tierWeight",{"type":31,"tagName":388,"properties":1740,"children":1741},{"style":522},[1742],{"type":27,"value":525},{"type":31,"tagName":388,"properties":1744,"children":1745},{"style":1585},[1746],{"type":27,"value":1588},{"type":31,"tagName":388,"properties":1748,"children":1749},{"style":1500},[1750],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":1752,"children":1753},{"style":516},[1754],{"type":27,"value":1598},{"type":31,"tagName":388,"properties":1756,"children":1757},{"style":522},[1758],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":1760,"children":1761},{"style":1500},[1762],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":1764,"children":1765},{"style":516},[1766],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":1768,"children":1769},{"style":522},[1770],{"type":27,"value":1617},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1773,"children":1774},{"class":390},[1775,1779,1783,1787,1791,1795,1800,1804,1808,1812,1816,1820,1825,1829,1833,1837,1841,1845,1850,1854,1859],{"type":31,"tagName":388,"properties":1776,"children":1777},{"style":1500},[1778],{"type":27,"value":1626},{"type":31,"tagName":388,"properties":1780,"children":1781},{"style":522},[1782],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":1784,"children":1785},{"style":1500},[1786],{"type":27,"value":1636},{"type":31,"tagName":388,"properties":1788,"children":1789},{"style":567},[1790],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":1792,"children":1793},{"style":1500},[1794],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":1796,"children":1797},{"style":567},[1798],{"type":27,"value":1799}," 0.4",{"type":31,"tagName":388,"properties":1801,"children":1802},{"style":1500},[1803],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":1805,"children":1806},{"style":522},[1807],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":1809,"children":1810},{"style":1500},[1811],{"type":27,"value":1636},{"type":31,"tagName":388,"properties":1813,"children":1814},{"style":567},[1815],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":1817,"children":1818},{"style":1500},[1819],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":1821,"children":1822},{"style":567},[1823],{"type":27,"value":1824}," 0.3",{"type":31,"tagName":388,"properties":1826,"children":1827},{"style":1500},[1828],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":1830,"children":1831},{"style":522},[1832],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":1834,"children":1835},{"style":1500},[1836],{"type":27,"value":1636},{"type":31,"tagName":388,"properties":1838,"children":1839},{"style":567},[1840],{"type":27,"value":1554},{"type":31,"tagName":388,"properties":1842,"children":1843},{"style":1500},[1844],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":1846,"children":1847},{"style":567},[1848],{"type":27,"value":1849}," 0.2",{"type":31,"tagName":388,"properties":1851,"children":1852},{"style":1500},[1853],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":1855,"children":1856},{"style":567},[1857],{"type":27,"value":1858}," 0.1",{"type":31,"tagName":388,"properties":1860,"children":1861},{"style":522},[1862],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1865,"children":1866},{"class":390},[1867],{"type":31,"tagName":388,"properties":1868,"children":1869},{"style":522},[1870],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":1873,"children":1874},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":1877,"children":1878},{"class":390},[1879,1883,1888,1892,1897,1901],{"type":31,"tagName":388,"properties":1880,"children":1881},{"style":1500},[1882],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":1884,"children":1885},{"style":567},[1886],{"type":27,"value":1887}," ROWS",{"type":31,"tagName":388,"properties":1889,"children":1890},{"style":1500},[1891],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":1893,"children":1894},{"style":567},[1895],{"type":27,"value":1896}," 128",{"type":31,"tagName":388,"properties":1898,"children":1899},{"style":522},[1900],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":1902,"children":1903},{"style":394},[1904],{"type":27,"value":1905},"// rows in the map, the grid's declared count",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1908,"children":1909},{"class":390},[1910,1914,1919,1923,1928,1932],{"type":31,"tagName":388,"properties":1911,"children":1912},{"style":1500},[1913],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":1915,"children":1916},{"style":567},[1917],{"type":27,"value":1918}," MAX_LOOKBACK",{"type":31,"tagName":388,"properties":1920,"children":1921},{"style":1500},[1922],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":1924,"children":1925},{"style":567},[1926],{"type":27,"value":1927}," 2000",{"type":31,"tagName":388,"properties":1929,"children":1930},{"style":522},[1931],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":1933,"children":1934},{"style":394},[1935],{"type":27,"value":1936},"// the ring is sized for the largest lookback setting",{"type":27,"value":28},{"type":31,"tagName":388,"properties":1939,"children":1940},{"class":390},[1941,1945,1950,1954,1959,1964,1969,1974,1979,1984,1988,1992,1997],{"type":31,"tagName":388,"properties":1942,"children":1943},{"style":1500},[1944],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":1946,"children":1947},{"style":567},[1948],{"type":27,"value":1949}," levelPrice",{"type":31,"tagName":388,"properties":1951,"children":1952},{"style":1500},[1953],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":1955,"children":1956},{"style":1500},[1957],{"type":27,"value":1958}," new",{"type":31,"tagName":388,"properties":1960,"children":1961},{"style":516},[1962],{"type":27,"value":1963}," StaticArray",{"type":31,"tagName":388,"properties":1965,"children":1966},{"style":522},[1967],{"type":27,"value":1968},"\u003C",{"type":31,"tagName":388,"properties":1970,"children":1971},{"style":516},[1972],{"type":27,"value":1973},"f64",{"type":31,"tagName":388,"properties":1975,"children":1976},{"style":522},[1977],{"type":27,"value":1978},">(",{"type":31,"tagName":388,"properties":1980,"children":1981},{"style":567},[1982],{"type":27,"value":1983},"MAX_LOOKBACK",{"type":31,"tagName":388,"properties":1985,"children":1986},{"style":1500},[1987],{"type":27,"value":1549},{"type":31,"tagName":388,"properties":1989,"children":1990},{"style":567},[1991],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":1993,"children":1994},{"style":522},[1995],{"type":27,"value":1996},"); ",{"type":31,"tagName":388,"properties":1998,"children":1999},{"style":394},[2000],{"type":27,"value":2001},"// the ledger: one price and one USD size per level, SLOTS per bar",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2004,"children":2005},{"class":390},[2006,2010,2015,2019,2023,2027,2031,2035,2039,2043,2047,2051,2055],{"type":31,"tagName":388,"properties":2007,"children":2008},{"style":1500},[2009],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":2011,"children":2012},{"style":567},[2013],{"type":27,"value":2014}," levelUsd",{"type":31,"tagName":388,"properties":2016,"children":2017},{"style":1500},[2018],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2020,"children":2021},{"style":1500},[2022],{"type":27,"value":1958},{"type":31,"tagName":388,"properties":2024,"children":2025},{"style":516},[2026],{"type":27,"value":1963},{"type":31,"tagName":388,"properties":2028,"children":2029},{"style":522},[2030],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2032,"children":2033},{"style":516},[2034],{"type":27,"value":1973},{"type":31,"tagName":388,"properties":2036,"children":2037},{"style":522},[2038],{"type":27,"value":1978},{"type":31,"tagName":388,"properties":2040,"children":2041},{"style":567},[2042],{"type":27,"value":1983},{"type":31,"tagName":388,"properties":2044,"children":2045},{"style":1500},[2046],{"type":27,"value":1549},{"type":31,"tagName":388,"properties":2048,"children":2049},{"style":567},[2050],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":2052,"children":2053},{"style":522},[2054],{"type":27,"value":1996},{"type":31,"tagName":388,"properties":2056,"children":2057},{"style":394},[2058],{"type":27,"value":2059},"// 0 once swept or dropped",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2062,"children":2063},{"class":390},[2064,2068,2073,2077,2081,2085,2089,2093,2097,2102,2106],{"type":31,"tagName":388,"properties":2065,"children":2066},{"style":1500},[2067],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":2069,"children":2070},{"style":567},[2071],{"type":27,"value":2072}," rowUsd",{"type":31,"tagName":388,"properties":2074,"children":2075},{"style":1500},[2076],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2078,"children":2079},{"style":1500},[2080],{"type":27,"value":1958},{"type":31,"tagName":388,"properties":2082,"children":2083},{"style":516},[2084],{"type":27,"value":1963},{"type":31,"tagName":388,"properties":2086,"children":2087},{"style":522},[2088],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2090,"children":2091},{"style":516},[2092],{"type":27,"value":1973},{"type":31,"tagName":388,"properties":2094,"children":2095},{"style":522},[2096],{"type":27,"value":1978},{"type":31,"tagName":388,"properties":2098,"children":2099},{"style":567},[2100],{"type":27,"value":2101},"ROWS",{"type":31,"tagName":388,"properties":2103,"children":2104},{"style":522},[2105],{"type":27,"value":1996},{"type":31,"tagName":388,"properties":2107,"children":2108},{"style":394},[2109],{"type":27,"value":2110},"// this bar's map: USD per row",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2113,"children":2114},{"class":390},[2115,2119,2124,2128,2133,2137,2141,2145,2149],{"type":31,"tagName":388,"properties":2116,"children":2117},{"style":1500},[2118],{"type":27,"value":1503},{"type":31,"tagName":388,"properties":2120,"children":2121},{"style":567},[2122],{"type":27,"value":2123}," note",{"type":31,"tagName":388,"properties":2125,"children":2126},{"style":1500},[2127],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2129,"children":2130},{"style":522},[2131],{"type":27,"value":2132}," draw.",{"type":31,"tagName":388,"properties":2134,"children":2135},{"style":516},[2136],{"type":27,"value":1230},{"type":31,"tagName":388,"properties":2138,"children":2139},{"style":522},[2140],{"type":27,"value":525},{"type":31,"tagName":388,"properties":2142,"children":2143},{"style":567},[2144],{"type":27,"value":380},{"type":31,"tagName":388,"properties":2146,"children":2147},{"style":522},[2148],{"type":27,"value":1996},{"type":31,"tagName":388,"properties":2150,"children":2151},{"style":394},[2152],{"type":27,"value":2153},"// the one slate sentence; a handle allocates once at module load",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2156,"children":2157},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":2160,"children":2161},{"class":390},[2162,2167,2172,2177,2182,2186],{"type":31,"tagName":388,"properties":2163,"children":2164},{"style":1500},[2165],{"type":27,"value":2166},"let",{"type":31,"tagName":388,"properties":2168,"children":2169},{"style":522},[2170],{"type":27,"value":2171}," lookback ",{"type":31,"tagName":388,"properties":2173,"children":2174},{"style":1500},[2175],{"type":27,"value":2176},"=",{"type":31,"tagName":388,"properties":2178,"children":2179},{"style":567},[2180],{"type":27,"value":2181}," 672",{"type":31,"tagName":388,"properties":2183,"children":2184},{"style":522},[2185],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2187,"children":2188},{"style":394},[2189],{"type":27,"value":2190},"// settings, read in onStart()",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2193,"children":2194},{"class":390},[2195,2199,2204,2208,2213],{"type":31,"tagName":388,"properties":2196,"children":2197},{"style":1500},[2198],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2200,"children":2201},{"style":522},[2202],{"type":27,"value":2203}," mm ",{"type":31,"tagName":388,"properties":2205,"children":2206},{"style":1500},[2207],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2209,"children":2210},{"style":567},[2211],{"type":27,"value":2212}," 0.005",{"type":31,"tagName":388,"properties":2214,"children":2215},{"style":522},[2216],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2219,"children":2220},{"class":390},[2221,2225,2230,2234,2239],{"type":31,"tagName":388,"properties":2222,"children":2223},{"style":1500},[2224],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2226,"children":2227},{"style":522},[2228],{"type":27,"value":2229}," rangeFrac ",{"type":31,"tagName":388,"properties":2231,"children":2232},{"style":1500},[2233],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2235,"children":2236},{"style":567},[2237],{"type":27,"value":2238}," 0.05",{"type":31,"tagName":388,"properties":2240,"children":2241},{"style":522},[2242],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2245,"children":2246},{"class":390},[2247,2251,2256,2260,2265,2270,2274],{"type":31,"tagName":388,"properties":2248,"children":2249},{"style":1500},[2250],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2252,"children":2253},{"style":522},[2254],{"type":27,"value":2255}," head ",{"type":31,"tagName":388,"properties":2257,"children":2258},{"style":1500},[2259],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2261,"children":2262},{"style":1500},[2263],{"type":27,"value":2264}," -",{"type":31,"tagName":388,"properties":2266,"children":2267},{"style":567},[2268],{"type":27,"value":2269},"1",{"type":31,"tagName":388,"properties":2271,"children":2272},{"style":522},[2273],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2275,"children":2276},{"style":394},[2277],{"type":27,"value":2278},"// the ring: head is the newest bar, count the bars in use",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2281,"children":2282},{"class":390},[2283,2287,2292,2296,2300],{"type":31,"tagName":388,"properties":2284,"children":2285},{"style":1500},[2286],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2288,"children":2289},{"style":522},[2290],{"type":27,"value":2291}," count ",{"type":31,"tagName":388,"properties":2293,"children":2294},{"style":1500},[2295],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2297,"children":2298},{"style":567},[2299],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":2301,"children":2302},{"style":522},[2303],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2306,"children":2307},{"class":390},[2308,2312,2317,2321,2325,2329,2334,2338],{"type":31,"tagName":388,"properties":2309,"children":2310},{"style":1500},[2311],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2313,"children":2314},{"style":522},[2315],{"type":27,"value":2316}," prevOi",{"type":31,"tagName":388,"properties":2318,"children":2319},{"style":1500},[2320],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2322,"children":2323},{"style":516},[2324],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":2326,"children":2327},{"style":1500},[2328],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2330,"children":2331},{"style":567},[2332],{"type":27,"value":2333}," NaN",{"type":31,"tagName":388,"properties":2335,"children":2336},{"style":522},[2337],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2339,"children":2340},{"style":394},[2341],{"type":27,"value":2342},"// the last finite open interest reading",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2345,"children":2346},{"class":390},[2347,2351,2356,2360,2365,2369],{"type":31,"tagName":388,"properties":2348,"children":2349},{"style":1500},[2350],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2352,"children":2353},{"style":522},[2354],{"type":27,"value":2355}," oiSeen ",{"type":31,"tagName":388,"properties":2357,"children":2358},{"style":1500},[2359],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2361,"children":2362},{"style":567},[2363],{"type":27,"value":2364}," false",{"type":31,"tagName":388,"properties":2366,"children":2367},{"style":522},[2368],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2370,"children":2371},{"style":394},[2372],{"type":27,"value":2373},"// the market served open interest at least once",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2376,"children":2377},{"class":390},[2378,2382,2387,2391,2395],{"type":31,"tagName":388,"properties":2379,"children":2380},{"style":1500},[2381],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2383,"children":2384},{"style":522},[2385],{"type":27,"value":2386}," noteShown ",{"type":31,"tagName":388,"properties":2388,"children":2389},{"style":1500},[2390],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2392,"children":2393},{"style":567},[2394],{"type":27,"value":2364},{"type":31,"tagName":388,"properties":2396,"children":2397},{"style":522},[2398],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2401,"children":2402},{"class":390},[2403,2407,2412,2416,2420,2424,2428,2432],{"type":31,"tagName":388,"properties":2404,"children":2405},{"style":1500},[2406],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2408,"children":2409},{"style":522},[2410],{"type":27,"value":2411}," gridLow",{"type":31,"tagName":388,"properties":2413,"children":2414},{"style":1500},[2415],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2417,"children":2418},{"style":516},[2419],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":2421,"children":2422},{"style":1500},[2423],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2425,"children":2426},{"style":567},[2427],{"type":27,"value":2333},{"type":31,"tagName":388,"properties":2429,"children":2430},{"style":522},[2431],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2433,"children":2434},{"style":394},[2435],{"type":27,"value":2436},"// this bar's map: the bottom edge of row 0 and the row height",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2439,"children":2440},{"class":390},[2441,2445,2450,2454,2458,2462,2466],{"type":31,"tagName":388,"properties":2442,"children":2443},{"style":1500},[2444],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2446,"children":2447},{"style":522},[2448],{"type":27,"value":2449}," step",{"type":31,"tagName":388,"properties":2451,"children":2452},{"style":1500},[2453],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2455,"children":2456},{"style":516},[2457],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":2459,"children":2460},{"style":1500},[2461],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2463,"children":2464},{"style":567},[2465],{"type":27,"value":2333},{"type":31,"tagName":388,"properties":2467,"children":2468},{"style":522},[2469],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2472,"children":2473},{"class":390},[2474,2478,2483,2487,2492,2496],{"type":31,"tagName":388,"properties":2475,"children":2476},{"style":1500},[2477],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2479,"children":2480},{"style":522},[2481],{"type":27,"value":2482}," longsNear ",{"type":31,"tagName":388,"properties":2484,"children":2485},{"style":1500},[2486],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2488,"children":2489},{"style":567},[2490],{"type":27,"value":2491}," 0.0",{"type":31,"tagName":388,"properties":2493,"children":2494},{"style":522},[2495],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2497,"children":2498},{"style":394},[2499],{"type":27,"value":2500},"// live long levels within 5% below the close, USD",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2503,"children":2504},{"class":390},[2505,2509,2514,2518,2522,2526],{"type":31,"tagName":388,"properties":2506,"children":2507},{"style":1500},[2508],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":2510,"children":2511},{"style":522},[2512],{"type":27,"value":2513}," shortsNear ",{"type":31,"tagName":388,"properties":2515,"children":2516},{"style":1500},[2517],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2519,"children":2520},{"style":567},[2521],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":2523,"children":2524},{"style":522},[2525],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":2527,"children":2528},{"style":394},[2529],{"type":27,"value":2530},"// live short levels within 5% above the close, USD",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2533,"children":2534},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":2537,"children":2538},{"class":390},[2539,2543,2548,2553,2557,2562],{"type":31,"tagName":388,"properties":2540,"children":2541},{"style":1500},[2542],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":2544,"children":2545},{"style":516},[2546],{"type":27,"value":2547}," onStart",{"type":31,"tagName":388,"properties":2549,"children":2550},{"style":522},[2551],{"type":27,"value":2552},"()",{"type":31,"tagName":388,"properties":2554,"children":2555},{"style":1500},[2556],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2558,"children":2559},{"style":567},[2560],{"type":27,"value":2561}," void",{"type":31,"tagName":388,"properties":2563,"children":2564},{"style":522},[2565],{"type":27,"value":1617},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2568,"children":2569},{"class":390},[2570,2575,2579,2583,2587,2592],{"type":31,"tagName":388,"properties":2571,"children":2572},{"style":522},[2573],{"type":27,"value":2574},"  lookback ",{"type":31,"tagName":388,"properties":2576,"children":2577},{"style":1500},[2578],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2580,"children":2581},{"style":516},[2582],{"type":27,"value":1598},{"type":31,"tagName":388,"properties":2584,"children":2585},{"style":522},[2586],{"type":27,"value":525},{"type":31,"tagName":388,"properties":2588,"children":2589},{"style":516},[2590],{"type":27,"value":2591},"p_lookback",{"type":31,"tagName":388,"properties":2593,"children":2594},{"style":522},[2595],{"type":27,"value":2596},"());",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2599,"children":2600},{"class":390},[2601,2606,2610,2615,2620,2625,2629],{"type":31,"tagName":388,"properties":2602,"children":2603},{"style":522},[2604],{"type":27,"value":2605},"  mm ",{"type":31,"tagName":388,"properties":2607,"children":2608},{"style":1500},[2609],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2611,"children":2612},{"style":516},[2613],{"type":27,"value":2614}," p_maint_margin_pct",{"type":31,"tagName":388,"properties":2616,"children":2617},{"style":522},[2618],{"type":27,"value":2619},"() ",{"type":31,"tagName":388,"properties":2621,"children":2622},{"style":1500},[2623],{"type":27,"value":2624},"/",{"type":31,"tagName":388,"properties":2626,"children":2627},{"style":567},[2628],{"type":27,"value":1712},{"type":31,"tagName":388,"properties":2630,"children":2631},{"style":522},[2632],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2635,"children":2636},{"class":390},[2637,2642,2646,2651,2655,2659,2663],{"type":31,"tagName":388,"properties":2638,"children":2639},{"style":522},[2640],{"type":27,"value":2641},"  rangeFrac ",{"type":31,"tagName":388,"properties":2643,"children":2644},{"style":1500},[2645],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":2647,"children":2648},{"style":516},[2649],{"type":27,"value":2650}," p_range_pct",{"type":31,"tagName":388,"properties":2652,"children":2653},{"style":522},[2654],{"type":27,"value":2619},{"type":31,"tagName":388,"properties":2656,"children":2657},{"style":1500},[2658],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":2660,"children":2661},{"style":567},[2662],{"type":27,"value":1712},{"type":31,"tagName":388,"properties":2664,"children":2665},{"style":522},[2666],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2669,"children":2670},{"class":390},[2671],{"type":31,"tagName":388,"properties":2672,"children":2673},{"style":522},[2674],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2677,"children":2678},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":2681,"children":2682},{"class":390},[2683,2687,2692,2696,2701,2705,2709,2713,2717,2721,2726],{"type":31,"tagName":388,"properties":2684,"children":2685},{"style":1500},[2686],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":2688,"children":2689},{"style":516},[2690],{"type":27,"value":2691}," niceStep",{"type":31,"tagName":388,"properties":2693,"children":2694},{"style":522},[2695],{"type":27,"value":525},{"type":31,"tagName":388,"properties":2697,"children":2698},{"style":1585},[2699],{"type":27,"value":2700},"raw",{"type":31,"tagName":388,"properties":2702,"children":2703},{"style":1500},[2704],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2706,"children":2707},{"style":516},[2708],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":2710,"children":2711},{"style":522},[2712],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":2714,"children":2715},{"style":1500},[2716],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":2718,"children":2719},{"style":516},[2720],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":2722,"children":2723},{"style":522},[2724],{"type":27,"value":2725}," { ",{"type":31,"tagName":388,"properties":2727,"children":2728},{"style":394},[2729],{"type":27,"value":2730},"// the nearest of 1, 2, 2.5 and 5 times a power of ten (in ratio terms): rows on round prices that line up bar to bar",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2733,"children":2734},{"class":390},[2735,2740,2745,2749,2754,2759,2763,2768,2773,2778,2783,2788,2793,2797,2801,2806],{"type":31,"tagName":388,"properties":2736,"children":2737},{"style":1500},[2738],{"type":27,"value":2739},"  const",{"type":31,"tagName":388,"properties":2741,"children":2742},{"style":567},[2743],{"type":27,"value":2744}," mag",{"type":31,"tagName":388,"properties":2746,"children":2747},{"style":1500},[2748],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2750,"children":2751},{"style":522},[2752],{"type":27,"value":2753}," Math.",{"type":31,"tagName":388,"properties":2755,"children":2756},{"style":516},[2757],{"type":27,"value":2758},"pow",{"type":31,"tagName":388,"properties":2760,"children":2761},{"style":522},[2762],{"type":27,"value":525},{"type":31,"tagName":388,"properties":2764,"children":2765},{"style":567},[2766],{"type":27,"value":2767},"10.0",{"type":31,"tagName":388,"properties":2769,"children":2770},{"style":522},[2771],{"type":27,"value":2772},", Math.",{"type":31,"tagName":388,"properties":2774,"children":2775},{"style":516},[2776],{"type":27,"value":2777},"floor",{"type":31,"tagName":388,"properties":2779,"children":2780},{"style":522},[2781],{"type":27,"value":2782},"(Math.",{"type":31,"tagName":388,"properties":2784,"children":2785},{"style":516},[2786],{"type":27,"value":2787},"log",{"type":31,"tagName":388,"properties":2789,"children":2790},{"style":522},[2791],{"type":27,"value":2792},"(raw) ",{"type":31,"tagName":388,"properties":2794,"children":2795},{"style":1500},[2796],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":2798,"children":2799},{"style":522},[2800],{"type":27,"value":2753},{"type":31,"tagName":388,"properties":2802,"children":2803},{"style":567},[2804],{"type":27,"value":2805},"LN10",{"type":31,"tagName":388,"properties":2807,"children":2808},{"style":522},[2809],{"type":27,"value":2810},"));",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2813,"children":2814},{"class":390},[2815,2819,2824,2828,2833,2837],{"type":31,"tagName":388,"properties":2816,"children":2817},{"style":1500},[2818],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":2820,"children":2821},{"style":567},[2822],{"type":27,"value":2823}," m",{"type":31,"tagName":388,"properties":2825,"children":2826},{"style":1500},[2827],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":2829,"children":2830},{"style":522},[2831],{"type":27,"value":2832}," raw ",{"type":31,"tagName":388,"properties":2834,"children":2835},{"style":1500},[2836],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":2838,"children":2839},{"style":522},[2840],{"type":27,"value":2841}," mag;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2844,"children":2845},{"class":390},[2846,2850,2855,2859,2864,2868,2873,2877,2882,2886,2891,2895,2900,2904,2908,2912,2917,2921,2926,2930,2934,2938,2943,2947,2952,2956,2960,2965,2970,2975],{"type":31,"tagName":388,"properties":2847,"children":2848},{"style":1500},[2849],{"type":27,"value":1626},{"type":31,"tagName":388,"properties":2851,"children":2852},{"style":522},[2853],{"type":27,"value":2854}," (m ",{"type":31,"tagName":388,"properties":2856,"children":2857},{"style":1500},[2858],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2860,"children":2861},{"style":567},[2862],{"type":27,"value":2863}," 1.414",{"type":31,"tagName":388,"properties":2865,"children":2866},{"style":1500},[2867],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":2869,"children":2870},{"style":567},[2871],{"type":27,"value":2872}," 1.0",{"type":31,"tagName":388,"properties":2874,"children":2875},{"style":1500},[2876],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":2878,"children":2879},{"style":522},[2880],{"type":27,"value":2881}," m ",{"type":31,"tagName":388,"properties":2883,"children":2884},{"style":1500},[2885],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2887,"children":2888},{"style":567},[2889],{"type":27,"value":2890}," 2.236",{"type":31,"tagName":388,"properties":2892,"children":2893},{"style":1500},[2894],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":2896,"children":2897},{"style":567},[2898],{"type":27,"value":2899}," 2.0",{"type":31,"tagName":388,"properties":2901,"children":2902},{"style":1500},[2903],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":2905,"children":2906},{"style":522},[2907],{"type":27,"value":2881},{"type":31,"tagName":388,"properties":2909,"children":2910},{"style":1500},[2911],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2913,"children":2914},{"style":567},[2915],{"type":27,"value":2916}," 3.536",{"type":31,"tagName":388,"properties":2918,"children":2919},{"style":1500},[2920],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":2922,"children":2923},{"style":567},[2924],{"type":27,"value":2925}," 2.5",{"type":31,"tagName":388,"properties":2927,"children":2928},{"style":1500},[2929],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":2931,"children":2932},{"style":522},[2933],{"type":27,"value":2881},{"type":31,"tagName":388,"properties":2935,"children":2936},{"style":1500},[2937],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":2939,"children":2940},{"style":567},[2941],{"type":27,"value":2942}," 7.071",{"type":31,"tagName":388,"properties":2944,"children":2945},{"style":1500},[2946],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":2948,"children":2949},{"style":567},[2950],{"type":27,"value":2951}," 5.0",{"type":31,"tagName":388,"properties":2953,"children":2954},{"style":1500},[2955],{"type":27,"value":1656},{"type":31,"tagName":388,"properties":2957,"children":2958},{"style":567},[2959],{"type":27,"value":1651},{"type":31,"tagName":388,"properties":2961,"children":2962},{"style":522},[2963],{"type":27,"value":2964},") ",{"type":31,"tagName":388,"properties":2966,"children":2967},{"style":1500},[2968],{"type":27,"value":2969},"*",{"type":31,"tagName":388,"properties":2971,"children":2972},{"style":522},[2973],{"type":27,"value":2974}," mag; ",{"type":31,"tagName":388,"properties":2976,"children":2977},{"style":394},[2978],{"type":27,"value":2979},"// the cut points are the geometric midpoints",{"type":27,"value":28},{"type":31,"tagName":388,"properties":2982,"children":2983},{"class":390},[2984],{"type":31,"tagName":388,"properties":2985,"children":2986},{"style":522},[2987],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":2990,"children":2991},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":2994,"children":2995},{"class":390},[2996,3000,3005,3009,3014,3018,3022,3026,3031,3035,3039,3043,3047,3051,3055],{"type":31,"tagName":388,"properties":2997,"children":2998},{"style":1500},[2999],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":3001,"children":3002},{"style":516},[3003],{"type":27,"value":3004}," addToMap",{"type":31,"tagName":388,"properties":3006,"children":3007},{"style":522},[3008],{"type":27,"value":525},{"type":31,"tagName":388,"properties":3010,"children":3011},{"style":1585},[3012],{"type":27,"value":3013},"price",{"type":31,"tagName":388,"properties":3015,"children":3016},{"style":1500},[3017],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3019,"children":3020},{"style":516},[3021],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3023,"children":3024},{"style":522},[3025],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3027,"children":3028},{"style":1585},[3029],{"type":27,"value":3030},"usd",{"type":31,"tagName":388,"properties":3032,"children":3033},{"style":1500},[3034],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3036,"children":3037},{"style":516},[3038],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3040,"children":3041},{"style":522},[3042],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":3044,"children":3045},{"style":1500},[3046],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3048,"children":3049},{"style":567},[3050],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":3052,"children":3053},{"style":522},[3054],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":3056,"children":3057},{"style":394},[3058],{"type":27,"value":3059},"// a live level adds its USD to the row it falls in; off the map it waits for price to come near",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3062,"children":3063},{"class":390},[3064,3068,3073,3077,3082,3087,3092,3096],{"type":31,"tagName":388,"properties":3065,"children":3066},{"style":1500},[3067],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":3069,"children":3070},{"style":567},[3071],{"type":27,"value":3072}," pos",{"type":31,"tagName":388,"properties":3074,"children":3075},{"style":1500},[3076],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3078,"children":3079},{"style":522},[3080],{"type":27,"value":3081}," (price ",{"type":31,"tagName":388,"properties":3083,"children":3084},{"style":1500},[3085],{"type":27,"value":3086},"-",{"type":31,"tagName":388,"properties":3088,"children":3089},{"style":522},[3090],{"type":27,"value":3091}," gridLow) ",{"type":31,"tagName":388,"properties":3093,"children":3094},{"style":1500},[3095],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":3097,"children":3098},{"style":522},[3099],{"type":27,"value":3100}," step;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3103,"children":3104},{"class":390},[3105,3110,3115,3120,3124,3129,3134,3138,3142,3146,3150,3155,3160,3165,3170],{"type":31,"tagName":388,"properties":3106,"children":3107},{"style":1500},[3108],{"type":27,"value":3109},"  if",{"type":31,"tagName":388,"properties":3111,"children":3112},{"style":522},[3113],{"type":27,"value":3114}," (pos ",{"type":31,"tagName":388,"properties":3116,"children":3117},{"style":1500},[3118],{"type":27,"value":3119},">=",{"type":31,"tagName":388,"properties":3121,"children":3122},{"style":567},[3123],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3125,"children":3126},{"style":1500},[3127],{"type":27,"value":3128}," &&",{"type":31,"tagName":388,"properties":3130,"children":3131},{"style":522},[3132],{"type":27,"value":3133}," pos ",{"type":31,"tagName":388,"properties":3135,"children":3136},{"style":1500},[3137],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":3139,"children":3140},{"style":516},[3141],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3143,"children":3144},{"style":522},[3145],{"type":27,"value":525},{"type":31,"tagName":388,"properties":3147,"children":3148},{"style":567},[3149],{"type":27,"value":2101},{"type":31,"tagName":388,"properties":3151,"children":3152},{"style":522},[3153],{"type":27,"value":3154},")) rowUsd[",{"type":31,"tagName":388,"properties":3156,"children":3157},{"style":516},[3158],{"type":27,"value":3159},"i32",{"type":31,"tagName":388,"properties":3161,"children":3162},{"style":522},[3163],{"type":27,"value":3164},"(pos)] ",{"type":31,"tagName":388,"properties":3166,"children":3167},{"style":1500},[3168],{"type":27,"value":3169},"+=",{"type":31,"tagName":388,"properties":3171,"children":3172},{"style":522},[3173],{"type":27,"value":3174}," usd;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3177,"children":3178},{"class":390},[3179],{"type":31,"tagName":388,"properties":3180,"children":3181},{"style":522},[3182],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3185,"children":3186},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":3189,"children":3190},{"class":390},[3191],{"type":31,"tagName":388,"properties":3192,"children":3193},{"style":394},[3194],{"type":27,"value":3195},"// One pass over the ledger: the levels this bar traded through are gone, the rest fold onto this bar's map and,",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3198,"children":3199},{"class":390},[3200],{"type":31,"tagName":388,"properties":3201,"children":3202},{"style":394},[3203],{"type":27,"value":3204},"// within 5% of the close, into the near sums.",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3207,"children":3208},{"class":390},[3209,3213,3218,3222,3227,3231,3235,3239,3244,3248,3252,3256,3261,3265,3269,3273,3277,3281],{"type":31,"tagName":388,"properties":3210,"children":3211},{"style":1500},[3212],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":3214,"children":3215},{"style":516},[3216],{"type":27,"value":3217}," sweepAndFold",{"type":31,"tagName":388,"properties":3219,"children":3220},{"style":522},[3221],{"type":27,"value":525},{"type":31,"tagName":388,"properties":3223,"children":3224},{"style":1585},[3225],{"type":27,"value":3226},"close",{"type":31,"tagName":388,"properties":3228,"children":3229},{"style":1500},[3230],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3232,"children":3233},{"style":516},[3234],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3236,"children":3237},{"style":522},[3238],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3240,"children":3241},{"style":1585},[3242],{"type":27,"value":3243},"high",{"type":31,"tagName":388,"properties":3245,"children":3246},{"style":1500},[3247],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3249,"children":3250},{"style":516},[3251],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3253,"children":3254},{"style":522},[3255],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3257,"children":3258},{"style":1585},[3259],{"type":27,"value":3260},"low",{"type":31,"tagName":388,"properties":3262,"children":3263},{"style":1500},[3264],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3266,"children":3267},{"style":516},[3268],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3270,"children":3271},{"style":522},[3272],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":3274,"children":3275},{"style":1500},[3276],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3278,"children":3279},{"style":567},[3280],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":3282,"children":3283},{"style":522},[3284],{"type":27,"value":1617},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3287,"children":3288},{"class":390},[3289,3293,3298,3302,3307,3311,3316],{"type":31,"tagName":388,"properties":3290,"children":3291},{"style":1500},[3292],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":3294,"children":3295},{"style":567},[3296],{"type":27,"value":3297}," nearLo",{"type":31,"tagName":388,"properties":3299,"children":3300},{"style":1500},[3301],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3303,"children":3304},{"style":522},[3305],{"type":27,"value":3306}," close ",{"type":31,"tagName":388,"properties":3308,"children":3309},{"style":1500},[3310],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":3312,"children":3313},{"style":567},[3314],{"type":27,"value":3315}," 0.95",{"type":31,"tagName":388,"properties":3317,"children":3318},{"style":522},[3319],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3322,"children":3323},{"class":390},[3324,3328,3333,3337,3341,3345,3350],{"type":31,"tagName":388,"properties":3325,"children":3326},{"style":1500},[3327],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":3329,"children":3330},{"style":567},[3331],{"type":27,"value":3332}," nearHi",{"type":31,"tagName":388,"properties":3334,"children":3335},{"style":1500},[3336],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3338,"children":3339},{"style":522},[3340],{"type":27,"value":3306},{"type":31,"tagName":388,"properties":3342,"children":3343},{"style":1500},[3344],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":3346,"children":3347},{"style":567},[3348],{"type":27,"value":3349}," 1.05",{"type":31,"tagName":388,"properties":3351,"children":3352},{"style":522},[3353],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3356,"children":3357},{"class":390},[3358,3363,3367,3371],{"type":31,"tagName":388,"properties":3359,"children":3360},{"style":522},[3361],{"type":27,"value":3362},"  longsNear ",{"type":31,"tagName":388,"properties":3364,"children":3365},{"style":1500},[3366],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3368,"children":3369},{"style":567},[3370],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3372,"children":3373},{"style":522},[3374],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3377,"children":3378},{"class":390},[3379,3384,3388,3392],{"type":31,"tagName":388,"properties":3380,"children":3381},{"style":522},[3382],{"type":27,"value":3383},"  shortsNear ",{"type":31,"tagName":388,"properties":3385,"children":3386},{"style":1500},[3387],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3389,"children":3390},{"style":567},[3391],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3393,"children":3394},{"style":522},[3395],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3398,"children":3399},{"class":390},[3400,3405,3410,3414,3419,3423,3427,3432,3436,3440,3444,3448,3452,3457,3461,3465],{"type":31,"tagName":388,"properties":3401,"children":3402},{"style":1500},[3403],{"type":27,"value":3404},"  for",{"type":31,"tagName":388,"properties":3406,"children":3407},{"style":522},[3408],{"type":27,"value":3409}," (",{"type":31,"tagName":388,"properties":3411,"children":3412},{"style":1500},[3413],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":3415,"children":3416},{"style":522},[3417],{"type":27,"value":3418}," r ",{"type":31,"tagName":388,"properties":3420,"children":3421},{"style":1500},[3422],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3424,"children":3425},{"style":567},[3426],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":3428,"children":3429},{"style":522},[3430],{"type":27,"value":3431},"; r ",{"type":31,"tagName":388,"properties":3433,"children":3434},{"style":1500},[3435],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":3437,"children":3438},{"style":567},[3439],{"type":27,"value":1887},{"type":31,"tagName":388,"properties":3441,"children":3442},{"style":522},[3443],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":3445,"children":3446},{"style":1500},[3447],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":3449,"children":3450},{"style":567},[3451],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":3453,"children":3454},{"style":522},[3455],{"type":27,"value":3456},") rowUsd[r] ",{"type":31,"tagName":388,"properties":3458,"children":3459},{"style":1500},[3460],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3462,"children":3463},{"style":567},[3464],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3466,"children":3467},{"style":522},[3468],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3471,"children":3472},{"class":390},[3473,3477,3482,3486,3490,3494,3498],{"type":31,"tagName":388,"properties":3474,"children":3475},{"style":1500},[3476],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":3478,"children":3479},{"style":567},[3480],{"type":27,"value":3481}," used",{"type":31,"tagName":388,"properties":3483,"children":3484},{"style":1500},[3485],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3487,"children":3488},{"style":522},[3489],{"type":27,"value":2291},{"type":31,"tagName":388,"properties":3491,"children":3492},{"style":1500},[3493],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":3495,"children":3496},{"style":567},[3497],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":3499,"children":3500},{"style":522},[3501],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3504,"children":3505},{"class":390},[3506,3510,3514,3518,3523,3527,3531,3536,3540,3545,3549,3553],{"type":31,"tagName":388,"properties":3507,"children":3508},{"style":1500},[3509],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":3511,"children":3512},{"style":522},[3513],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":3515,"children":3516},{"style":1500},[3517],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":3519,"children":3520},{"style":522},[3521],{"type":27,"value":3522}," i ",{"type":31,"tagName":388,"properties":3524,"children":3525},{"style":1500},[3526],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3528,"children":3529},{"style":567},[3530],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":3532,"children":3533},{"style":522},[3534],{"type":27,"value":3535},"; i ",{"type":31,"tagName":388,"properties":3537,"children":3538},{"style":1500},[3539],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":3541,"children":3542},{"style":522},[3543],{"type":27,"value":3544}," used; i ",{"type":31,"tagName":388,"properties":3546,"children":3547},{"style":1500},[3548],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":3550,"children":3551},{"style":567},[3552],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":3554,"children":3555},{"style":522},[3556],{"type":27,"value":3557},") {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3560,"children":3561},{"class":390},[3562,3567,3572,3576],{"type":31,"tagName":388,"properties":3563,"children":3564},{"style":1500},[3565],{"type":27,"value":3566},"    const",{"type":31,"tagName":388,"properties":3568,"children":3569},{"style":567},[3570],{"type":27,"value":3571}," usd",{"type":31,"tagName":388,"properties":3573,"children":3574},{"style":1500},[3575],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3577,"children":3578},{"style":522},[3579],{"type":27,"value":3580}," levelUsd[i];",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3583,"children":3584},{"class":390},[3585,3590,3595,3600,3604,3608,3613],{"type":31,"tagName":388,"properties":3586,"children":3587},{"style":1500},[3588],{"type":27,"value":3589},"    if",{"type":31,"tagName":388,"properties":3591,"children":3592},{"style":522},[3593],{"type":27,"value":3594}," (usd ",{"type":31,"tagName":388,"properties":3596,"children":3597},{"style":1500},[3598],{"type":27,"value":3599},"\u003C=",{"type":31,"tagName":388,"properties":3601,"children":3602},{"style":567},[3603],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3605,"children":3606},{"style":522},[3607],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":3609,"children":3610},{"style":1500},[3611],{"type":27,"value":3612},"continue",{"type":31,"tagName":388,"properties":3614,"children":3615},{"style":522},[3616],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3619,"children":3620},{"class":390},[3621,3625,3630,3634],{"type":31,"tagName":388,"properties":3622,"children":3623},{"style":1500},[3624],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":3626,"children":3627},{"style":567},[3628],{"type":27,"value":3629}," price",{"type":31,"tagName":388,"properties":3631,"children":3632},{"style":1500},[3633],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":3635,"children":3636},{"style":522},[3637],{"type":27,"value":3638}," levelPrice[i];",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3641,"children":3642},{"class":390},[3643,3647,3652,3657,3661,3666,3670,3675],{"type":31,"tagName":388,"properties":3644,"children":3645},{"style":1500},[3646],{"type":27,"value":3589},{"type":31,"tagName":388,"properties":3648,"children":3649},{"style":522},[3650],{"type":27,"value":3651}," (i ",{"type":31,"tagName":388,"properties":3653,"children":3654},{"style":1500},[3655],{"type":27,"value":3656},"%",{"type":31,"tagName":388,"properties":3658,"children":3659},{"style":567},[3660],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":3662,"children":3663},{"style":1500},[3664],{"type":27,"value":3665}," \u003C",{"type":31,"tagName":388,"properties":3667,"children":3668},{"style":567},[3669],{"type":27,"value":1508},{"type":31,"tagName":388,"properties":3671,"children":3672},{"style":522},[3673],{"type":27,"value":3674},") { ",{"type":31,"tagName":388,"properties":3676,"children":3677},{"style":394},[3678],{"type":27,"value":3679},"// a long level: swept once a bar's low reaches it",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3682,"children":3683},{"class":390},[3684,3689,3694,3698],{"type":31,"tagName":388,"properties":3685,"children":3686},{"style":1500},[3687],{"type":27,"value":3688},"      if",{"type":31,"tagName":388,"properties":3690,"children":3691},{"style":522},[3692],{"type":27,"value":3693}," (low ",{"type":31,"tagName":388,"properties":3695,"children":3696},{"style":1500},[3697],{"type":27,"value":3599},{"type":31,"tagName":388,"properties":3699,"children":3700},{"style":522},[3701],{"type":27,"value":3702}," price) {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3705,"children":3706},{"class":390},[3707,3712,3716,3720],{"type":31,"tagName":388,"properties":3708,"children":3709},{"style":522},[3710],{"type":27,"value":3711},"        levelUsd[i] ",{"type":31,"tagName":388,"properties":3713,"children":3714},{"style":1500},[3715],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3717,"children":3718},{"style":567},[3719],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3721,"children":3722},{"style":522},[3723],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3726,"children":3727},{"class":390},[3728,3733],{"type":31,"tagName":388,"properties":3729,"children":3730},{"style":1500},[3731],{"type":27,"value":3732},"        continue",{"type":31,"tagName":388,"properties":3734,"children":3735},{"style":522},[3736],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3739,"children":3740},{"class":390},[3741],{"type":31,"tagName":388,"properties":3742,"children":3743},{"style":522},[3744],{"type":27,"value":3745},"      }",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3748,"children":3749},{"class":390},[3750,3754,3758,3762,3767,3771],{"type":31,"tagName":388,"properties":3751,"children":3752},{"style":1500},[3753],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":3755,"children":3756},{"style":522},[3757],{"type":27,"value":3081},{"type":31,"tagName":388,"properties":3759,"children":3760},{"style":1500},[3761],{"type":27,"value":3119},{"type":31,"tagName":388,"properties":3763,"children":3764},{"style":522},[3765],{"type":27,"value":3766}," nearLo) longsNear ",{"type":31,"tagName":388,"properties":3768,"children":3769},{"style":1500},[3770],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":3772,"children":3773},{"style":522},[3774],{"type":27,"value":3174},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3777,"children":3778},{"class":390},[3779,3784,3789,3793],{"type":31,"tagName":388,"properties":3780,"children":3781},{"style":522},[3782],{"type":27,"value":3783},"    } ",{"type":31,"tagName":388,"properties":3785,"children":3786},{"style":1500},[3787],{"type":27,"value":3788},"else",{"type":31,"tagName":388,"properties":3790,"children":3791},{"style":522},[3792],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":3794,"children":3795},{"style":394},[3796],{"type":27,"value":3797},"// a short level: swept once a bar's high reaches it",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3800,"children":3801},{"class":390},[3802,3806,3811,3815],{"type":31,"tagName":388,"properties":3803,"children":3804},{"style":1500},[3805],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":3807,"children":3808},{"style":522},[3809],{"type":27,"value":3810}," (high ",{"type":31,"tagName":388,"properties":3812,"children":3813},{"style":1500},[3814],{"type":27,"value":3119},{"type":31,"tagName":388,"properties":3816,"children":3817},{"style":522},[3818],{"type":27,"value":3702},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3821,"children":3822},{"class":390},[3823,3827,3831,3835],{"type":31,"tagName":388,"properties":3824,"children":3825},{"style":522},[3826],{"type":27,"value":3711},{"type":31,"tagName":388,"properties":3828,"children":3829},{"style":1500},[3830],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":3832,"children":3833},{"style":567},[3834],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":3836,"children":3837},{"style":522},[3838],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3841,"children":3842},{"class":390},[3843,3847],{"type":31,"tagName":388,"properties":3844,"children":3845},{"style":1500},[3846],{"type":27,"value":3732},{"type":31,"tagName":388,"properties":3848,"children":3849},{"style":522},[3850],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3853,"children":3854},{"class":390},[3855],{"type":31,"tagName":388,"properties":3856,"children":3857},{"style":522},[3858],{"type":27,"value":3745},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3861,"children":3862},{"class":390},[3863,3867,3871,3875,3880,3884],{"type":31,"tagName":388,"properties":3864,"children":3865},{"style":1500},[3866],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":3868,"children":3869},{"style":522},[3870],{"type":27,"value":3081},{"type":31,"tagName":388,"properties":3872,"children":3873},{"style":1500},[3874],{"type":27,"value":3599},{"type":31,"tagName":388,"properties":3876,"children":3877},{"style":522},[3878],{"type":27,"value":3879}," nearHi) shortsNear ",{"type":31,"tagName":388,"properties":3881,"children":3882},{"style":1500},[3883],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":3885,"children":3886},{"style":522},[3887],{"type":27,"value":3174},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3890,"children":3891},{"class":390},[3892],{"type":31,"tagName":388,"properties":3893,"children":3894},{"style":522},[3895],{"type":27,"value":3896},"    }",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3899,"children":3900},{"class":390},[3901,3906],{"type":31,"tagName":388,"properties":3902,"children":3903},{"style":516},[3904],{"type":27,"value":3905},"    addToMap",{"type":31,"tagName":388,"properties":3907,"children":3908},{"style":522},[3909],{"type":27,"value":3910},"(price, usd);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3913,"children":3914},{"class":390},[3915],{"type":31,"tagName":388,"properties":3916,"children":3917},{"style":522},[3918],{"type":27,"value":3919},"  }",{"type":27,"value":28},{"type":31,"tagName":388,"properties":3922,"children":3923},{"class":390},[3924],{"type":31,"tagName":388,"properties":3925,"children":3926},{"style":522},[3927],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":3930,"children":3931},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":3934,"children":3935},{"class":390},[3936,3940,3945,3949,3954,3958,3962,3966,3970,3974,3978,3982,3986,3990,3994,3998,4002,4006,4010,4014,4019,4023,4027,4031,4035,4039,4043],{"type":31,"tagName":388,"properties":3937,"children":3938},{"style":1500},[3939],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":3941,"children":3942},{"style":516},[3943],{"type":27,"value":3944}," openPositions",{"type":31,"tagName":388,"properties":3946,"children":3947},{"style":522},[3948],{"type":27,"value":525},{"type":31,"tagName":388,"properties":3950,"children":3951},{"style":1585},[3952],{"type":27,"value":3953},"base",{"type":31,"tagName":388,"properties":3955,"children":3956},{"style":1500},[3957],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3959,"children":3960},{"style":516},[3961],{"type":27,"value":1598},{"type":31,"tagName":388,"properties":3963,"children":3964},{"style":522},[3965],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3967,"children":3968},{"style":1585},[3969],{"type":27,"value":3226},{"type":31,"tagName":388,"properties":3971,"children":3972},{"style":1500},[3973],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3975,"children":3976},{"style":516},[3977],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3979,"children":3980},{"style":522},[3981],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3983,"children":3984},{"style":1585},[3985],{"type":27,"value":3243},{"type":31,"tagName":388,"properties":3987,"children":3988},{"style":1500},[3989],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":3991,"children":3992},{"style":516},[3993],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":3995,"children":3996},{"style":522},[3997],{"type":27,"value":564},{"type":31,"tagName":388,"properties":3999,"children":4000},{"style":1585},[4001],{"type":27,"value":3260},{"type":31,"tagName":388,"properties":4003,"children":4004},{"style":1500},[4005],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4007,"children":4008},{"style":516},[4009],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":4011,"children":4012},{"style":522},[4013],{"type":27,"value":564},{"type":31,"tagName":388,"properties":4015,"children":4016},{"style":1585},[4017],{"type":27,"value":4018},"dOi",{"type":31,"tagName":388,"properties":4020,"children":4021},{"style":1500},[4022],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4024,"children":4025},{"style":516},[4026],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":4028,"children":4029},{"style":522},[4030],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":4032,"children":4033},{"style":1500},[4034],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4036,"children":4037},{"style":567},[4038],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":4040,"children":4041},{"style":522},[4042],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":4044,"children":4045},{"style":394},[4046],{"type":27,"value":4047},"// new open interest, placed at its liquidation prices",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4050,"children":4051},{"class":390},[4052,4056,4061,4065,4070],{"type":31,"tagName":388,"properties":4053,"children":4054},{"style":1500},[4055],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4057,"children":4058},{"style":567},[4059],{"type":27,"value":4060}," buy",{"type":31,"tagName":388,"properties":4062,"children":4063},{"style":1500},[4064],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4066,"children":4067},{"style":516},[4068],{"type":27,"value":4069}," in_buy",{"type":31,"tagName":388,"properties":4071,"children":4072},{"style":522},[4073],{"type":27,"value":4074},"();",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4077,"children":4078},{"class":390},[4079,4083,4088,4092,4097],{"type":31,"tagName":388,"properties":4080,"children":4081},{"style":1500},[4082],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4084,"children":4085},{"style":567},[4086],{"type":27,"value":4087}," sell",{"type":31,"tagName":388,"properties":4089,"children":4090},{"style":1500},[4091],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4093,"children":4094},{"style":516},[4095],{"type":27,"value":4096}," in_sell",{"type":31,"tagName":388,"properties":4098,"children":4099},{"style":522},[4100],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4103,"children":4104},{"class":390},[4105,4109,4114,4118,4123,4128],{"type":31,"tagName":388,"properties":4106,"children":4107},{"style":1500},[4108],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4110,"children":4111},{"style":567},[4112],{"type":27,"value":4113}," total",{"type":31,"tagName":388,"properties":4115,"children":4116},{"style":1500},[4117],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4119,"children":4120},{"style":522},[4121],{"type":27,"value":4122}," buy ",{"type":31,"tagName":388,"properties":4124,"children":4125},{"style":1500},[4126],{"type":27,"value":4127},"+",{"type":31,"tagName":388,"properties":4129,"children":4130},{"style":522},[4131],{"type":27,"value":4132}," sell;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4135,"children":4136},{"class":390},[4137,4141,4146,4150,4155,4160,4164,4168,4172,4176,4180,4184,4189],{"type":31,"tagName":388,"properties":4138,"children":4139},{"style":1500},[4140],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4142,"children":4143},{"style":567},[4144],{"type":27,"value":4145}," longShare",{"type":31,"tagName":388,"properties":4147,"children":4148},{"style":1500},[4149],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4151,"children":4152},{"style":522},[4153],{"type":27,"value":4154}," total ",{"type":31,"tagName":388,"properties":4156,"children":4157},{"style":1500},[4158],{"type":27,"value":4159},">",{"type":31,"tagName":388,"properties":4161,"children":4162},{"style":567},[4163],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":4165,"children":4166},{"style":1500},[4167],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":4169,"children":4170},{"style":522},[4171],{"type":27,"value":4122},{"type":31,"tagName":388,"properties":4173,"children":4174},{"style":1500},[4175],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":4177,"children":4178},{"style":522},[4179],{"type":27,"value":4154},{"type":31,"tagName":388,"properties":4181,"children":4182},{"style":1500},[4183],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4185,"children":4186},{"style":567},[4187],{"type":27,"value":4188}," 0.5",{"type":31,"tagName":388,"properties":4190,"children":4191},{"style":522},[4192],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4195,"children":4196},{"class":390},[4197,4201,4206,4210,4215,4220,4225,4229,4234,4239,4243,4247,4251,4255,4260,4264,4269,4273,4278,4282],{"type":31,"tagName":388,"properties":4198,"children":4199},{"style":1500},[4200],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4202,"children":4203},{"style":567},[4204],{"type":27,"value":4205}," entry",{"type":31,"tagName":388,"properties":4207,"children":4208},{"style":1500},[4209],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4211,"children":4212},{"style":516},[4213],{"type":27,"value":4214}," isNaN",{"type":31,"tagName":388,"properties":4216,"children":4217},{"style":522},[4218],{"type":27,"value":4219},"(high) ",{"type":31,"tagName":388,"properties":4221,"children":4222},{"style":1500},[4223],{"type":27,"value":4224},"||",{"type":31,"tagName":388,"properties":4226,"children":4227},{"style":516},[4228],{"type":27,"value":4214},{"type":31,"tagName":388,"properties":4230,"children":4231},{"style":522},[4232],{"type":27,"value":4233},"(low) ",{"type":31,"tagName":388,"properties":4235,"children":4236},{"style":1500},[4237],{"type":27,"value":4238},"?",{"type":31,"tagName":388,"properties":4240,"children":4241},{"style":522},[4242],{"type":27,"value":3306},{"type":31,"tagName":388,"properties":4244,"children":4245},{"style":1500},[4246],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4248,"children":4249},{"style":522},[4250],{"type":27,"value":3810},{"type":31,"tagName":388,"properties":4252,"children":4253},{"style":1500},[4254],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4256,"children":4257},{"style":522},[4258],{"type":27,"value":4259}," low ",{"type":31,"tagName":388,"properties":4261,"children":4262},{"style":1500},[4263],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4265,"children":4266},{"style":522},[4267],{"type":27,"value":4268}," close) ",{"type":31,"tagName":388,"properties":4270,"children":4271},{"style":1500},[4272],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":4274,"children":4275},{"style":567},[4276],{"type":27,"value":4277}," 3.0",{"type":31,"tagName":388,"properties":4279,"children":4280},{"style":522},[4281],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":4283,"children":4284},{"style":394},[4285],{"type":27,"value":4286},"// the bar's typical price",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4289,"children":4290},{"class":390},[4291,4295,4299,4303,4307,4311,4315],{"type":31,"tagName":388,"properties":4292,"children":4293},{"style":1500},[4294],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4296,"children":4297},{"style":567},[4298],{"type":27,"value":3297},{"type":31,"tagName":388,"properties":4300,"children":4301},{"style":1500},[4302],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4304,"children":4305},{"style":522},[4306],{"type":27,"value":3306},{"type":31,"tagName":388,"properties":4308,"children":4309},{"style":1500},[4310],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4312,"children":4313},{"style":567},[4314],{"type":27,"value":3315},{"type":31,"tagName":388,"properties":4316,"children":4317},{"style":522},[4318],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4321,"children":4322},{"class":390},[4323,4327,4331,4335,4339,4343,4347],{"type":31,"tagName":388,"properties":4324,"children":4325},{"style":1500},[4326],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":4328,"children":4329},{"style":567},[4330],{"type":27,"value":3332},{"type":31,"tagName":388,"properties":4332,"children":4333},{"style":1500},[4334],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4336,"children":4337},{"style":522},[4338],{"type":27,"value":3306},{"type":31,"tagName":388,"properties":4340,"children":4341},{"style":1500},[4342],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4344,"children":4345},{"style":567},[4346],{"type":27,"value":3349},{"type":31,"tagName":388,"properties":4348,"children":4349},{"style":522},[4350],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4353,"children":4354},{"class":390},[4355,4359,4363,4367,4371,4375,4379,4384,4388,4392,4396,4400,4404],{"type":31,"tagName":388,"properties":4356,"children":4357},{"style":1500},[4358],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":4360,"children":4361},{"style":522},[4362],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":4364,"children":4365},{"style":1500},[4366],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":4368,"children":4369},{"style":522},[4370],{"type":27,"value":1631},{"type":31,"tagName":388,"properties":4372,"children":4373},{"style":1500},[4374],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":4376,"children":4377},{"style":567},[4378],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":4380,"children":4381},{"style":522},[4382],{"type":27,"value":4383},"; tier ",{"type":31,"tagName":388,"properties":4385,"children":4386},{"style":1500},[4387],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":4389,"children":4390},{"style":567},[4391],{"type":27,"value":1508},{"type":31,"tagName":388,"properties":4393,"children":4394},{"style":522},[4395],{"type":27,"value":4383},{"type":31,"tagName":388,"properties":4397,"children":4398},{"style":1500},[4399],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":4401,"children":4402},{"style":567},[4403],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":4405,"children":4406},{"style":522},[4407],{"type":27,"value":3557},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4410,"children":4411},{"class":390},[4412,4416,4421,4425,4429,4434,4438,4443,4447,4452],{"type":31,"tagName":388,"properties":4413,"children":4414},{"style":1500},[4415],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":4417,"children":4418},{"style":567},[4419],{"type":27,"value":4420}," move",{"type":31,"tagName":388,"properties":4422,"children":4423},{"style":1500},[4424],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4426,"children":4427},{"style":567},[4428],{"type":27,"value":2872},{"type":31,"tagName":388,"properties":4430,"children":4431},{"style":1500},[4432],{"type":27,"value":4433}," /",{"type":31,"tagName":388,"properties":4435,"children":4436},{"style":516},[4437],{"type":27,"value":1578},{"type":31,"tagName":388,"properties":4439,"children":4440},{"style":522},[4441],{"type":27,"value":4442},"(tier) ",{"type":31,"tagName":388,"properties":4444,"children":4445},{"style":1500},[4446],{"type":27,"value":3086},{"type":31,"tagName":388,"properties":4448,"children":4449},{"style":522},[4450],{"type":27,"value":4451}," mm; ",{"type":31,"tagName":388,"properties":4453,"children":4454},{"style":394},[4455],{"type":27,"value":4456},"// the adverse move that liquidates this tier",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4459,"children":4460},{"class":390},[4461,4465,4470,4474,4478,4482,4486,4490],{"type":31,"tagName":388,"properties":4462,"children":4463},{"style":1500},[4464],{"type":27,"value":3589},{"type":31,"tagName":388,"properties":4466,"children":4467},{"style":522},[4468],{"type":27,"value":4469}," (move ",{"type":31,"tagName":388,"properties":4471,"children":4472},{"style":1500},[4473],{"type":27,"value":3599},{"type":31,"tagName":388,"properties":4475,"children":4476},{"style":567},[4477],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":4479,"children":4480},{"style":522},[4481],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":4483,"children":4484},{"style":1500},[4485],{"type":27,"value":3612},{"type":31,"tagName":388,"properties":4487,"children":4488},{"style":522},[4489],{"type":27,"value":1559},{"type":31,"tagName":388,"properties":4491,"children":4492},{"style":394},[4493],{"type":27,"value":4494},"// a margin wider than the tier's whole move: nobody holds that position",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4497,"children":4498},{"class":390},[4499,4503,4508,4512,4517,4521,4525,4530,4534],{"type":31,"tagName":388,"properties":4500,"children":4501},{"style":1500},[4502],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":4504,"children":4505},{"style":567},[4506],{"type":27,"value":4507}," longPrice",{"type":31,"tagName":388,"properties":4509,"children":4510},{"style":1500},[4511],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4513,"children":4514},{"style":522},[4515],{"type":27,"value":4516}," entry ",{"type":31,"tagName":388,"properties":4518,"children":4519},{"style":1500},[4520],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4522,"children":4523},{"style":522},[4524],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":4526,"children":4527},{"style":567},[4528],{"type":27,"value":4529},"1.0",{"type":31,"tagName":388,"properties":4531,"children":4532},{"style":1500},[4533],{"type":27,"value":2264},{"type":31,"tagName":388,"properties":4535,"children":4536},{"style":522},[4537],{"type":27,"value":4538}," move);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4541,"children":4542},{"class":390},[4543,4547,4552,4556,4560,4564,4568,4572,4577],{"type":31,"tagName":388,"properties":4544,"children":4545},{"style":1500},[4546],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":4548,"children":4549},{"style":567},[4550],{"type":27,"value":4551}," shortPrice",{"type":31,"tagName":388,"properties":4553,"children":4554},{"style":1500},[4555],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4557,"children":4558},{"style":522},[4559],{"type":27,"value":4516},{"type":31,"tagName":388,"properties":4561,"children":4562},{"style":1500},[4563],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4565,"children":4566},{"style":522},[4567],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":4569,"children":4570},{"style":567},[4571],{"type":27,"value":4529},{"type":31,"tagName":388,"properties":4573,"children":4574},{"style":1500},[4575],{"type":27,"value":4576}," +",{"type":31,"tagName":388,"properties":4578,"children":4579},{"style":522},[4580],{"type":27,"value":4538},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4583,"children":4584},{"class":390},[4585,4589,4594,4598,4603,4607,4612,4616,4620],{"type":31,"tagName":388,"properties":4586,"children":4587},{"style":1500},[4588],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":4590,"children":4591},{"style":567},[4592],{"type":27,"value":4593}," longUsd",{"type":31,"tagName":388,"properties":4595,"children":4596},{"style":1500},[4597],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4599,"children":4600},{"style":522},[4601],{"type":27,"value":4602}," dOi ",{"type":31,"tagName":388,"properties":4604,"children":4605},{"style":1500},[4606],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4608,"children":4609},{"style":522},[4610],{"type":27,"value":4611}," longShare ",{"type":31,"tagName":388,"properties":4613,"children":4614},{"style":1500},[4615],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4617,"children":4618},{"style":516},[4619],{"type":27,"value":1738},{"type":31,"tagName":388,"properties":4621,"children":4622},{"style":522},[4623],{"type":27,"value":4624},"(tier);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4627,"children":4628},{"class":390},[4629,4633,4638,4642,4646,4650,4654,4658,4662,4667,4671,4675],{"type":31,"tagName":388,"properties":4630,"children":4631},{"style":1500},[4632],{"type":27,"value":3566},{"type":31,"tagName":388,"properties":4634,"children":4635},{"style":567},[4636],{"type":27,"value":4637}," shortUsd",{"type":31,"tagName":388,"properties":4639,"children":4640},{"style":1500},[4641],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":4643,"children":4644},{"style":522},[4645],{"type":27,"value":4602},{"type":31,"tagName":388,"properties":4647,"children":4648},{"style":1500},[4649],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4651,"children":4652},{"style":522},[4653],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":4655,"children":4656},{"style":567},[4657],{"type":27,"value":4529},{"type":31,"tagName":388,"properties":4659,"children":4660},{"style":1500},[4661],{"type":27,"value":2264},{"type":31,"tagName":388,"properties":4663,"children":4664},{"style":522},[4665],{"type":27,"value":4666}," longShare) ",{"type":31,"tagName":388,"properties":4668,"children":4669},{"style":1500},[4670],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":4672,"children":4673},{"style":516},[4674],{"type":27,"value":1738},{"type":31,"tagName":388,"properties":4676,"children":4677},{"style":522},[4678],{"type":27,"value":4624},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4681,"children":4682},{"class":390},[4683,4688,4692,4697,4701],{"type":31,"tagName":388,"properties":4684,"children":4685},{"style":522},[4686],{"type":27,"value":4687},"    levelPrice[base ",{"type":31,"tagName":388,"properties":4689,"children":4690},{"style":1500},[4691],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4693,"children":4694},{"style":522},[4695],{"type":27,"value":4696}," tier] ",{"type":31,"tagName":388,"properties":4698,"children":4699},{"style":1500},[4700],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":4702,"children":4703},{"style":522},[4704],{"type":27,"value":4705}," longPrice;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4708,"children":4709},{"class":390},[4710,4715,4719,4723,4727],{"type":31,"tagName":388,"properties":4711,"children":4712},{"style":522},[4713],{"type":27,"value":4714},"    levelUsd[base ",{"type":31,"tagName":388,"properties":4716,"children":4717},{"style":1500},[4718],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4720,"children":4721},{"style":522},[4722],{"type":27,"value":4696},{"type":31,"tagName":388,"properties":4724,"children":4725},{"style":1500},[4726],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":4728,"children":4729},{"style":522},[4730],{"type":27,"value":4731}," longUsd;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4734,"children":4735},{"class":390},[4736,4740,4744,4748,4752,4756,4760],{"type":31,"tagName":388,"properties":4737,"children":4738},{"style":522},[4739],{"type":27,"value":4687},{"type":31,"tagName":388,"properties":4741,"children":4742},{"style":1500},[4743],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4745,"children":4746},{"style":567},[4747],{"type":27,"value":1508},{"type":31,"tagName":388,"properties":4749,"children":4750},{"style":1500},[4751],{"type":27,"value":4576},{"type":31,"tagName":388,"properties":4753,"children":4754},{"style":522},[4755],{"type":27,"value":4696},{"type":31,"tagName":388,"properties":4757,"children":4758},{"style":1500},[4759],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":4761,"children":4762},{"style":522},[4763],{"type":27,"value":4764}," shortPrice;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4767,"children":4768},{"class":390},[4769,4773,4777,4781,4785,4789,4793],{"type":31,"tagName":388,"properties":4770,"children":4771},{"style":522},[4772],{"type":27,"value":4714},{"type":31,"tagName":388,"properties":4774,"children":4775},{"style":1500},[4776],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":4778,"children":4779},{"style":567},[4780],{"type":27,"value":1508},{"type":31,"tagName":388,"properties":4782,"children":4783},{"style":1500},[4784],{"type":27,"value":4576},{"type":31,"tagName":388,"properties":4786,"children":4787},{"style":522},[4788],{"type":27,"value":4696},{"type":31,"tagName":388,"properties":4790,"children":4791},{"style":1500},[4792],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":4794,"children":4795},{"style":522},[4796],{"type":27,"value":4797}," shortUsd;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4800,"children":4801},{"class":390},[4802,4806,4811,4815,4819],{"type":31,"tagName":388,"properties":4803,"children":4804},{"style":1500},[4805],{"type":27,"value":3589},{"type":31,"tagName":388,"properties":4807,"children":4808},{"style":522},[4809],{"type":27,"value":4810}," (longUsd ",{"type":31,"tagName":388,"properties":4812,"children":4813},{"style":1500},[4814],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":4816,"children":4817},{"style":567},[4818],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":4820,"children":4821},{"style":522},[4822],{"type":27,"value":3557},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4825,"children":4826},{"class":390},[4827,4831,4836,4840,4844,4848],{"type":31,"tagName":388,"properties":4828,"children":4829},{"style":1500},[4830],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":4832,"children":4833},{"style":522},[4834],{"type":27,"value":4835}," (longPrice ",{"type":31,"tagName":388,"properties":4837,"children":4838},{"style":1500},[4839],{"type":27,"value":3119},{"type":31,"tagName":388,"properties":4841,"children":4842},{"style":522},[4843],{"type":27,"value":3766},{"type":31,"tagName":388,"properties":4845,"children":4846},{"style":1500},[4847],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":4849,"children":4850},{"style":522},[4851],{"type":27,"value":4731},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4854,"children":4855},{"class":390},[4856,4861],{"type":31,"tagName":388,"properties":4857,"children":4858},{"style":516},[4859],{"type":27,"value":4860},"      addToMap",{"type":31,"tagName":388,"properties":4862,"children":4863},{"style":522},[4864],{"type":27,"value":4865},"(longPrice, longUsd);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4868,"children":4869},{"class":390},[4870],{"type":31,"tagName":388,"properties":4871,"children":4872},{"style":522},[4873],{"type":27,"value":3896},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4876,"children":4877},{"class":390},[4878,4882,4887,4891,4895],{"type":31,"tagName":388,"properties":4879,"children":4880},{"style":1500},[4881],{"type":27,"value":3589},{"type":31,"tagName":388,"properties":4883,"children":4884},{"style":522},[4885],{"type":27,"value":4886}," (shortUsd ",{"type":31,"tagName":388,"properties":4888,"children":4889},{"style":1500},[4890],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":4892,"children":4893},{"style":567},[4894],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":4896,"children":4897},{"style":522},[4898],{"type":27,"value":3557},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4901,"children":4902},{"class":390},[4903,4907,4912,4916,4920,4924],{"type":31,"tagName":388,"properties":4904,"children":4905},{"style":1500},[4906],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":4908,"children":4909},{"style":522},[4910],{"type":27,"value":4911}," (shortPrice ",{"type":31,"tagName":388,"properties":4913,"children":4914},{"style":1500},[4915],{"type":27,"value":3599},{"type":31,"tagName":388,"properties":4917,"children":4918},{"style":522},[4919],{"type":27,"value":3879},{"type":31,"tagName":388,"properties":4921,"children":4922},{"style":1500},[4923],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":4925,"children":4926},{"style":522},[4927],{"type":27,"value":4797},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4930,"children":4931},{"class":390},[4932,4936],{"type":31,"tagName":388,"properties":4933,"children":4934},{"style":516},[4935],{"type":27,"value":4860},{"type":31,"tagName":388,"properties":4937,"children":4938},{"style":522},[4939],{"type":27,"value":4940},"(shortPrice, shortUsd);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":4943,"children":4944},{"class":390},[4945],{"type":31,"tagName":388,"properties":4946,"children":4947},{"style":522},[4948],{"type":27,"value":3896},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4951,"children":4952},{"class":390},[4953],{"type":31,"tagName":388,"properties":4954,"children":4955},{"style":522},[4956],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4959,"children":4960},{"class":390},[4961],{"type":31,"tagName":388,"properties":4962,"children":4963},{"style":522},[4964],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":4967,"children":4968},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":4971,"children":4972},{"class":390},[4973,4977,4982,4986,4991,4995,4999,5003,5007,5011,5015],{"type":31,"tagName":388,"properties":4974,"children":4975},{"style":1500},[4976],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":4978,"children":4979},{"style":516},[4980],{"type":27,"value":4981}," scaleAll",{"type":31,"tagName":388,"properties":4983,"children":4984},{"style":522},[4985],{"type":27,"value":525},{"type":31,"tagName":388,"properties":4987,"children":4988},{"style":1585},[4989],{"type":27,"value":4990},"factor",{"type":31,"tagName":388,"properties":4992,"children":4993},{"style":1500},[4994],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":4996,"children":4997},{"style":516},[4998],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":5000,"children":5001},{"style":522},[5002],{"type":27,"value":1603},{"type":31,"tagName":388,"properties":5004,"children":5005},{"style":1500},[5006],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":5008,"children":5009},{"style":567},[5010],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":5012,"children":5013},{"style":522},[5014],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":5016,"children":5017},{"style":394},[5018],{"type":27,"value":5019},"// open interest fell: every live level shrinks in proportion, and the map with it",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5022,"children":5023},{"class":390},[5024,5028,5032,5036,5040,5044,5048],{"type":31,"tagName":388,"properties":5025,"children":5026},{"style":1500},[5027],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":5029,"children":5030},{"style":567},[5031],{"type":27,"value":3481},{"type":31,"tagName":388,"properties":5033,"children":5034},{"style":1500},[5035],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":5037,"children":5038},{"style":522},[5039],{"type":27,"value":2291},{"type":31,"tagName":388,"properties":5041,"children":5042},{"style":1500},[5043],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":5045,"children":5046},{"style":567},[5047],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":5049,"children":5050},{"style":522},[5051],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5054,"children":5055},{"class":390},[5056,5060,5064,5068,5072,5076,5080,5084,5088,5092,5096,5100,5104,5109,5114,5118,5122,5127,5132],{"type":31,"tagName":388,"properties":5057,"children":5058},{"style":1500},[5059],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":5061,"children":5062},{"style":522},[5063],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5065,"children":5066},{"style":1500},[5067],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":5069,"children":5070},{"style":522},[5071],{"type":27,"value":3522},{"type":31,"tagName":388,"properties":5073,"children":5074},{"style":1500},[5075],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5077,"children":5078},{"style":567},[5079],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":5081,"children":5082},{"style":522},[5083],{"type":27,"value":3535},{"type":31,"tagName":388,"properties":5085,"children":5086},{"style":1500},[5087],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":5089,"children":5090},{"style":522},[5091],{"type":27,"value":3544},{"type":31,"tagName":388,"properties":5093,"children":5094},{"style":1500},[5095],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":5097,"children":5098},{"style":567},[5099],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":5101,"children":5102},{"style":522},[5103],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":5105,"children":5106},{"style":1500},[5107],{"type":27,"value":5108},"if",{"type":31,"tagName":388,"properties":5110,"children":5111},{"style":522},[5112],{"type":27,"value":5113}," (levelUsd[i] ",{"type":31,"tagName":388,"properties":5115,"children":5116},{"style":1500},[5117],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":5119,"children":5120},{"style":567},[5121],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":5123,"children":5124},{"style":522},[5125],{"type":27,"value":5126},") levelUsd[i] ",{"type":31,"tagName":388,"properties":5128,"children":5129},{"style":1500},[5130],{"type":27,"value":5131},"*=",{"type":31,"tagName":388,"properties":5133,"children":5134},{"style":522},[5135],{"type":27,"value":5136}," factor;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5139,"children":5140},{"class":390},[5141,5145,5149,5153,5157,5161,5165,5169,5173,5177,5181,5185,5189,5193,5197],{"type":31,"tagName":388,"properties":5142,"children":5143},{"style":1500},[5144],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":5146,"children":5147},{"style":522},[5148],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5150,"children":5151},{"style":1500},[5152],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":5154,"children":5155},{"style":522},[5156],{"type":27,"value":3418},{"type":31,"tagName":388,"properties":5158,"children":5159},{"style":1500},[5160],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5162,"children":5163},{"style":567},[5164],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":5166,"children":5167},{"style":522},[5168],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":5170,"children":5171},{"style":1500},[5172],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":5174,"children":5175},{"style":567},[5176],{"type":27,"value":1887},{"type":31,"tagName":388,"properties":5178,"children":5179},{"style":522},[5180],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":5182,"children":5183},{"style":1500},[5184],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":5186,"children":5187},{"style":567},[5188],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":5190,"children":5191},{"style":522},[5192],{"type":27,"value":3456},{"type":31,"tagName":388,"properties":5194,"children":5195},{"style":1500},[5196],{"type":27,"value":5131},{"type":31,"tagName":388,"properties":5198,"children":5199},{"style":522},[5200],{"type":27,"value":5136},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5203,"children":5204},{"class":390},[5205,5209,5213],{"type":31,"tagName":388,"properties":5206,"children":5207},{"style":522},[5208],{"type":27,"value":3362},{"type":31,"tagName":388,"properties":5210,"children":5211},{"style":1500},[5212],{"type":27,"value":5131},{"type":31,"tagName":388,"properties":5214,"children":5215},{"style":522},[5216],{"type":27,"value":5136},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5219,"children":5220},{"class":390},[5221,5225,5229],{"type":31,"tagName":388,"properties":5222,"children":5223},{"style":522},[5224],{"type":27,"value":3383},{"type":31,"tagName":388,"properties":5226,"children":5227},{"style":1500},[5228],{"type":27,"value":5131},{"type":31,"tagName":388,"properties":5230,"children":5231},{"style":522},[5232],{"type":27,"value":5136},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5235,"children":5236},{"class":390},[5237],{"type":31,"tagName":388,"properties":5238,"children":5239},{"style":522},[5240],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5243,"children":5244},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":5247,"children":5248},{"class":390},[5249,5253,5258,5262,5266,5270,5274],{"type":31,"tagName":388,"properties":5250,"children":5251},{"style":1500},[5252],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":5254,"children":5255},{"style":516},[5256],{"type":27,"value":5257}," writeEmpty",{"type":31,"tagName":388,"properties":5259,"children":5260},{"style":522},[5261],{"type":27,"value":2552},{"type":31,"tagName":388,"properties":5263,"children":5264},{"style":1500},[5265],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":5267,"children":5268},{"style":567},[5269],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":5271,"children":5272},{"style":522},[5273],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":5275,"children":5276},{"style":394},[5277],{"type":27,"value":5278},"// no map on this bar: every cell empty, the grid unplaced",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5281,"children":5282},{"class":390},[5283,5288,5292,5297],{"type":31,"tagName":388,"properties":5284,"children":5285},{"style":516},[5286],{"type":27,"value":5287},"  out_grid_low",{"type":31,"tagName":388,"properties":5289,"children":5290},{"style":522},[5291],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5293,"children":5294},{"style":567},[5295],{"type":27,"value":5296},"NaN",{"type":31,"tagName":388,"properties":5298,"children":5299},{"style":522},[5300],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5303,"children":5304},{"class":390},[5305,5310,5314,5318],{"type":31,"tagName":388,"properties":5306,"children":5307},{"style":516},[5308],{"type":27,"value":5309},"  out_row_step",{"type":31,"tagName":388,"properties":5311,"children":5312},{"style":522},[5313],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5315,"children":5316},{"style":567},[5317],{"type":27,"value":5296},{"type":31,"tagName":388,"properties":5319,"children":5320},{"style":522},[5321],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5324,"children":5325},{"class":390},[5326,5331,5335,5339],{"type":31,"tagName":388,"properties":5327,"children":5328},{"style":516},[5329],{"type":27,"value":5330},"  out_longs_near",{"type":31,"tagName":388,"properties":5332,"children":5333},{"style":522},[5334],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5336,"children":5337},{"style":567},[5338],{"type":27,"value":5296},{"type":31,"tagName":388,"properties":5340,"children":5341},{"style":522},[5342],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5345,"children":5346},{"class":390},[5347,5352,5356,5360],{"type":31,"tagName":388,"properties":5348,"children":5349},{"style":516},[5350],{"type":27,"value":5351},"  out_shorts_near",{"type":31,"tagName":388,"properties":5353,"children":5354},{"style":522},[5355],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5357,"children":5358},{"style":567},[5359],{"type":27,"value":5296},{"type":31,"tagName":388,"properties":5361,"children":5362},{"style":522},[5363],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5366,"children":5367},{"class":390},[5368,5372,5376,5380,5384,5388,5392,5396,5400,5404,5408,5412,5416,5420,5425,5430,5434],{"type":31,"tagName":388,"properties":5369,"children":5370},{"style":1500},[5371],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":5373,"children":5374},{"style":522},[5375],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5377,"children":5378},{"style":1500},[5379],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":5381,"children":5382},{"style":522},[5383],{"type":27,"value":3418},{"type":31,"tagName":388,"properties":5385,"children":5386},{"style":1500},[5387],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5389,"children":5390},{"style":567},[5391],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":5393,"children":5394},{"style":522},[5395],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":5397,"children":5398},{"style":1500},[5399],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":5401,"children":5402},{"style":567},[5403],{"type":27,"value":1887},{"type":31,"tagName":388,"properties":5405,"children":5406},{"style":522},[5407],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":5409,"children":5410},{"style":1500},[5411],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":5413,"children":5414},{"style":567},[5415],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":5417,"children":5418},{"style":522},[5419],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":5421,"children":5422},{"style":516},[5423],{"type":27,"value":5424},"out_heat",{"type":31,"tagName":388,"properties":5426,"children":5427},{"style":522},[5428],{"type":27,"value":5429},"(r, ",{"type":31,"tagName":388,"properties":5431,"children":5432},{"style":567},[5433],{"type":27,"value":5296},{"type":31,"tagName":388,"properties":5435,"children":5436},{"style":522},[5437],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5440,"children":5441},{"class":390},[5442],{"type":31,"tagName":388,"properties":5443,"children":5444},{"style":522},[5445],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5448,"children":5449},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":5452,"children":5453},{"class":390},[5454,5458,5463,5467,5471,5475,5479],{"type":31,"tagName":388,"properties":5455,"children":5456},{"style":1500},[5457],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":5459,"children":5460},{"style":516},[5461],{"type":27,"value":5462}," writeNote",{"type":31,"tagName":388,"properties":5464,"children":5465},{"style":522},[5466],{"type":27,"value":2552},{"type":31,"tagName":388,"properties":5468,"children":5469},{"style":1500},[5470],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":5472,"children":5473},{"style":567},[5474],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":5476,"children":5477},{"style":522},[5478],{"type":27,"value":2725},{"type":31,"tagName":388,"properties":5480,"children":5481},{"style":394},[5482],{"type":27,"value":5483},"// on the live bar: the one sentence while the market has served no open interest, gone once it does",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5486,"children":5487},{"class":390},[5488,5492,5496,5501,5506,5511,5516,5521],{"type":31,"tagName":388,"properties":5489,"children":5490},{"style":1500},[5491],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":5493,"children":5494},{"style":522},[5495],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5497,"children":5498},{"style":1500},[5499],{"type":27,"value":5500},"!",{"type":31,"tagName":388,"properties":5502,"children":5503},{"style":522},[5504],{"type":27,"value":5505},"bar.",{"type":31,"tagName":388,"properties":5507,"children":5508},{"style":516},[5509],{"type":27,"value":5510},"isLast",{"type":31,"tagName":388,"properties":5512,"children":5513},{"style":522},[5514],{"type":27,"value":5515},"()) ",{"type":31,"tagName":388,"properties":5517,"children":5518},{"style":1500},[5519],{"type":27,"value":5520},"return",{"type":31,"tagName":388,"properties":5522,"children":5523},{"style":522},[5524],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5527,"children":5528},{"class":390},[5529,5533,5537,5541],{"type":31,"tagName":388,"properties":5530,"children":5531},{"style":1500},[5532],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":5534,"children":5535},{"style":522},[5536],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5538,"children":5539},{"style":1500},[5540],{"type":27,"value":5500},{"type":31,"tagName":388,"properties":5542,"children":5543},{"style":522},[5544],{"type":27,"value":5545},"oiSeen) {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5548,"children":5549},{"class":390},[5550,5555],{"type":31,"tagName":388,"properties":5551,"children":5552},{"style":516},[5553],{"type":27,"value":5554},"    sb_clear",{"type":31,"tagName":388,"properties":5556,"children":5557},{"style":522},[5558],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5561,"children":5562},{"class":390},[5563,5568,5572,5577],{"type":31,"tagName":388,"properties":5564,"children":5565},{"style":516},[5566],{"type":27,"value":5567},"    sb_text",{"type":31,"tagName":388,"properties":5569,"children":5570},{"style":522},[5571],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5573,"children":5574},{"style":528},[5575],{"type":27,"value":5576},"\"No open interest on this market, so no liquidation estimate\"",{"type":31,"tagName":388,"properties":5578,"children":5579},{"style":522},[5580],{"type":27,"value":536},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5583,"children":5584},{"class":390},[5585,5590,5595,5599,5604,5608,5613,5618,5622],{"type":31,"tagName":388,"properties":5586,"children":5587},{"style":522},[5588],{"type":27,"value":5589},"    note.",{"type":31,"tagName":388,"properties":5591,"children":5592},{"style":516},[5593],{"type":27,"value":5594},"set",{"type":31,"tagName":388,"properties":5596,"children":5597},{"style":522},[5598],{"type":27,"value":525},{"type":31,"tagName":388,"properties":5600,"children":5601},{"style":567},[5602],{"type":27,"value":5603},"16.0",{"type":31,"tagName":388,"properties":5605,"children":5606},{"style":522},[5607],{"type":27,"value":564},{"type":31,"tagName":388,"properties":5609,"children":5610},{"style":567},[5611],{"type":27,"value":5612},"12.0",{"type":31,"tagName":388,"properties":5614,"children":5615},{"style":522},[5616],{"type":27,"value":5617},").",{"type":31,"tagName":388,"properties":5619,"children":5620},{"style":516},[5621],{"type":27,"value":27},{"type":31,"tagName":388,"properties":5623,"children":5624},{"style":522},[5625],{"type":27,"value":5626},"(str_note_sb);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5629,"children":5630},{"class":390},[5631,5636,5640,5645],{"type":31,"tagName":388,"properties":5632,"children":5633},{"style":522},[5634],{"type":27,"value":5635},"    noteShown ",{"type":31,"tagName":388,"properties":5637,"children":5638},{"style":1500},[5639],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5641,"children":5642},{"style":567},[5643],{"type":27,"value":5644}," true",{"type":31,"tagName":388,"properties":5646,"children":5647},{"style":522},[5648],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5651,"children":5652},{"class":390},[5653,5658,5662,5667],{"type":31,"tagName":388,"properties":5654,"children":5655},{"style":522},[5656],{"type":27,"value":5657},"  } ",{"type":31,"tagName":388,"properties":5659,"children":5660},{"style":1500},[5661],{"type":27,"value":3788},{"type":31,"tagName":388,"properties":5663,"children":5664},{"style":1500},[5665],{"type":27,"value":5666}," if",{"type":31,"tagName":388,"properties":5668,"children":5669},{"style":522},[5670],{"type":27,"value":5671}," (noteShown) {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5674,"children":5675},{"class":390},[5676,5680,5685],{"type":31,"tagName":388,"properties":5677,"children":5678},{"style":522},[5679],{"type":27,"value":5589},{"type":31,"tagName":388,"properties":5681,"children":5682},{"style":516},[5683],{"type":27,"value":5684},"delete",{"type":31,"tagName":388,"properties":5686,"children":5687},{"style":522},[5688],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5691,"children":5692},{"class":390},[5693,5697,5701,5705],{"type":31,"tagName":388,"properties":5694,"children":5695},{"style":522},[5696],{"type":27,"value":5635},{"type":31,"tagName":388,"properties":5698,"children":5699},{"style":1500},[5700],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5702,"children":5703},{"style":567},[5704],{"type":27,"value":2364},{"type":31,"tagName":388,"properties":5706,"children":5707},{"style":522},[5708],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5711,"children":5712},{"class":390},[5713],{"type":31,"tagName":388,"properties":5714,"children":5715},{"style":522},[5716],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5719,"children":5720},{"class":390},[5721],{"type":31,"tagName":388,"properties":5722,"children":5723},{"style":522},[5724],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5727,"children":5728},{"class":390},[],{"type":27,"value":28},{"type":31,"tagName":388,"properties":5731,"children":5732},{"class":390},[5733],{"type":31,"tagName":388,"properties":5734,"children":5735},{"style":394},[5736],{"type":27,"value":5737},"// onBar() runs once per bar: recycle the oldest bar's slots, sweep the ledger with the bar's range while folding the",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5740,"children":5741},{"class":390},[5742],{"type":31,"tagName":388,"properties":5743,"children":5744},{"style":394},[5745],{"type":27,"value":5746},"// survivors onto this bar's map, fold the bar's open-interest change in (new positions at their liquidation prices,",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5749,"children":5750},{"class":390},[5751],{"type":31,"tagName":388,"properties":5752,"children":5753},{"style":394},[5754],{"type":27,"value":5755},"// or every level scaled down), then write the map, its bottom edge, its row height and the near sums.",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5758,"children":5759},{"class":390},[5760,5764,5769,5773,5777,5781],{"type":31,"tagName":388,"properties":5761,"children":5762},{"style":1500},[5763],{"type":27,"value":1573},{"type":31,"tagName":388,"properties":5765,"children":5766},{"style":516},[5767],{"type":27,"value":5768}," onBar",{"type":31,"tagName":388,"properties":5770,"children":5771},{"style":522},[5772],{"type":27,"value":2552},{"type":31,"tagName":388,"properties":5774,"children":5775},{"style":1500},[5776],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":5778,"children":5779},{"style":567},[5780],{"type":27,"value":2561},{"type":31,"tagName":388,"properties":5782,"children":5783},{"style":522},[5784],{"type":27,"value":1617},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5787,"children":5788},{"class":390},[5789,5793,5798,5802,5807,5811],{"type":31,"tagName":388,"properties":5790,"children":5791},{"style":1500},[5792],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":5794,"children":5795},{"style":567},[5796],{"type":27,"value":5797}," close",{"type":31,"tagName":388,"properties":5799,"children":5800},{"style":1500},[5801],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":5803,"children":5804},{"style":522},[5805],{"type":27,"value":5806}," bar.",{"type":31,"tagName":388,"properties":5808,"children":5809},{"style":516},[5810],{"type":27,"value":3226},{"type":31,"tagName":388,"properties":5812,"children":5813},{"style":522},[5814],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5817,"children":5818},{"class":390},[5819,5823,5828,5832,5836,5840],{"type":31,"tagName":388,"properties":5820,"children":5821},{"style":1500},[5822],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":5824,"children":5825},{"style":567},[5826],{"type":27,"value":5827}," high",{"type":31,"tagName":388,"properties":5829,"children":5830},{"style":1500},[5831],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":5833,"children":5834},{"style":522},[5835],{"type":27,"value":5806},{"type":31,"tagName":388,"properties":5837,"children":5838},{"style":516},[5839],{"type":27,"value":3243},{"type":31,"tagName":388,"properties":5841,"children":5842},{"style":522},[5843],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5846,"children":5847},{"class":390},[5848,5852,5857,5861,5865,5869],{"type":31,"tagName":388,"properties":5849,"children":5850},{"style":1500},[5851],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":5853,"children":5854},{"style":567},[5855],{"type":27,"value":5856}," low",{"type":31,"tagName":388,"properties":5858,"children":5859},{"style":1500},[5860],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":5862,"children":5863},{"style":522},[5864],{"type":27,"value":5806},{"type":31,"tagName":388,"properties":5866,"children":5867},{"style":516},[5868],{"type":27,"value":3260},{"type":31,"tagName":388,"properties":5870,"children":5871},{"style":522},[5872],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5875,"children":5876},{"class":390},[5877,5881,5885,5890,5895,5899,5903,5907,5911,5915],{"type":31,"tagName":388,"properties":5878,"children":5879},{"style":1500},[5880],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":5882,"children":5883},{"style":522},[5884],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":5886,"children":5887},{"style":516},[5888],{"type":27,"value":5889},"isNaN",{"type":31,"tagName":388,"properties":5891,"children":5892},{"style":522},[5893],{"type":27,"value":5894},"(close) ",{"type":31,"tagName":388,"properties":5896,"children":5897},{"style":1500},[5898],{"type":27,"value":4224},{"type":31,"tagName":388,"properties":5900,"children":5901},{"style":522},[5902],{"type":27,"value":3306},{"type":31,"tagName":388,"properties":5904,"children":5905},{"style":1500},[5906],{"type":27,"value":3599},{"type":31,"tagName":388,"properties":5908,"children":5909},{"style":567},[5910],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":5912,"children":5913},{"style":522},[5914],{"type":27,"value":3674},{"type":31,"tagName":388,"properties":5916,"children":5917},{"style":394},[5918],{"type":27,"value":5919},"// no price on this bar: no map, and the ledger waits for the next one",{"type":27,"value":28},{"type":31,"tagName":388,"properties":5922,"children":5923},{"class":390},[5924,5929],{"type":31,"tagName":388,"properties":5925,"children":5926},{"style":516},[5927],{"type":27,"value":5928},"    writeEmpty",{"type":31,"tagName":388,"properties":5930,"children":5931},{"style":522},[5932],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5935,"children":5936},{"class":390},[5937,5942],{"type":31,"tagName":388,"properties":5938,"children":5939},{"style":1500},[5940],{"type":27,"value":5941},"    return",{"type":31,"tagName":388,"properties":5943,"children":5944},{"style":522},[5945],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5948,"children":5949},{"class":390},[5950],{"type":31,"tagName":388,"properties":5951,"children":5952},{"style":522},[5953],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":5956,"children":5957},{"class":390},[5958,5963,5967,5972,5976,5980,5984,5988,5993],{"type":31,"tagName":388,"properties":5959,"children":5960},{"style":522},[5961],{"type":27,"value":5962},"  head ",{"type":31,"tagName":388,"properties":5964,"children":5965},{"style":1500},[5966],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":5968,"children":5969},{"style":522},[5970],{"type":27,"value":5971}," (head ",{"type":31,"tagName":388,"properties":5973,"children":5974},{"style":1500},[5975],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":5977,"children":5978},{"style":567},[5979],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":5981,"children":5982},{"style":522},[5983],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":5985,"children":5986},{"style":1500},[5987],{"type":27,"value":3656},{"type":31,"tagName":388,"properties":5989,"children":5990},{"style":522},[5991],{"type":27,"value":5992}," lookback; ",{"type":31,"tagName":388,"properties":5994,"children":5995},{"style":394},[5996],{"type":27,"value":5997},"// this bar's slots: the oldest bar's levels are recycled once the ring is full",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6000,"children":6001},{"class":390},[6002,6006,6011,6015,6020,6024,6028],{"type":31,"tagName":388,"properties":6003,"children":6004},{"style":1500},[6005],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":6007,"children":6008},{"style":522},[6009],{"type":27,"value":6010}," (count ",{"type":31,"tagName":388,"properties":6012,"children":6013},{"style":1500},[6014],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":6016,"children":6017},{"style":522},[6018],{"type":27,"value":6019}," lookback) count ",{"type":31,"tagName":388,"properties":6021,"children":6022},{"style":1500},[6023],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":6025,"children":6026},{"style":567},[6027],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":6029,"children":6030},{"style":522},[6031],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6034,"children":6035},{"class":390},[6036,6040,6045,6049,6053,6057,6061],{"type":31,"tagName":388,"properties":6037,"children":6038},{"style":1500},[6039],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":6041,"children":6042},{"style":567},[6043],{"type":27,"value":6044}," base",{"type":31,"tagName":388,"properties":6046,"children":6047},{"style":1500},[6048],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":6050,"children":6051},{"style":522},[6052],{"type":27,"value":2255},{"type":31,"tagName":388,"properties":6054,"children":6055},{"style":1500},[6056],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":6058,"children":6059},{"style":567},[6060],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":6062,"children":6063},{"style":522},[6064],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6067,"children":6068},{"class":390},[6069,6073,6077,6081,6086,6090,6094,6099,6103,6107,6111,6115,6119],{"type":31,"tagName":388,"properties":6070,"children":6071},{"style":1500},[6072],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":6074,"children":6075},{"style":522},[6076],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":6078,"children":6079},{"style":1500},[6080],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":6082,"children":6083},{"style":522},[6084],{"type":27,"value":6085}," s ",{"type":31,"tagName":388,"properties":6087,"children":6088},{"style":1500},[6089],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6091,"children":6092},{"style":567},[6093],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":6095,"children":6096},{"style":522},[6097],{"type":27,"value":6098},"; s ",{"type":31,"tagName":388,"properties":6100,"children":6101},{"style":1500},[6102],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":6104,"children":6105},{"style":567},[6106],{"type":27,"value":1536},{"type":31,"tagName":388,"properties":6108,"children":6109},{"style":522},[6110],{"type":27,"value":6098},{"type":31,"tagName":388,"properties":6112,"children":6113},{"style":1500},[6114],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":6116,"children":6117},{"style":567},[6118],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":6120,"children":6121},{"style":522},[6122],{"type":27,"value":3557},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6125,"children":6126},{"class":390},[6127,6131,6135,6140,6144,6148],{"type":31,"tagName":388,"properties":6128,"children":6129},{"style":522},[6130],{"type":27,"value":4714},{"type":31,"tagName":388,"properties":6132,"children":6133},{"style":1500},[6134],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":6136,"children":6137},{"style":522},[6138],{"type":27,"value":6139}," s] ",{"type":31,"tagName":388,"properties":6141,"children":6142},{"style":1500},[6143],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6145,"children":6146},{"style":567},[6147],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":6149,"children":6150},{"style":522},[6151],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6154,"children":6155},{"class":390},[6156,6160,6164,6168,6172,6176],{"type":31,"tagName":388,"properties":6157,"children":6158},{"style":522},[6159],{"type":27,"value":4687},{"type":31,"tagName":388,"properties":6161,"children":6162},{"style":1500},[6163],{"type":27,"value":4127},{"type":31,"tagName":388,"properties":6165,"children":6166},{"style":522},[6167],{"type":27,"value":6139},{"type":31,"tagName":388,"properties":6169,"children":6170},{"style":1500},[6171],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6173,"children":6174},{"style":567},[6175],{"type":27,"value":2333},{"type":31,"tagName":388,"properties":6177,"children":6178},{"style":522},[6179],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6182,"children":6183},{"class":390},[6184],{"type":31,"tagName":388,"properties":6185,"children":6186},{"style":522},[6187],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6190,"children":6191},{"class":390},[6192,6197,6201,6205,6210,6214,6218,6222,6226,6230,6234,6238,6242,6246],{"type":31,"tagName":388,"properties":6193,"children":6194},{"style":522},[6195],{"type":27,"value":6196},"  step ",{"type":31,"tagName":388,"properties":6198,"children":6199},{"style":1500},[6200],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6202,"children":6203},{"style":516},[6204],{"type":27,"value":2691},{"type":31,"tagName":388,"properties":6206,"children":6207},{"style":522},[6208],{"type":27,"value":6209},"((close ",{"type":31,"tagName":388,"properties":6211,"children":6212},{"style":1500},[6213],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":6215,"children":6216},{"style":522},[6217],{"type":27,"value":2229},{"type":31,"tagName":388,"properties":6219,"children":6220},{"style":1500},[6221],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":6223,"children":6224},{"style":567},[6225],{"type":27,"value":2899},{"type":31,"tagName":388,"properties":6227,"children":6228},{"style":522},[6229],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":6231,"children":6232},{"style":1500},[6233],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":6235,"children":6236},{"style":516},[6237],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":6239,"children":6240},{"style":522},[6241],{"type":27,"value":525},{"type":31,"tagName":388,"properties":6243,"children":6244},{"style":567},[6245],{"type":27,"value":2101},{"type":31,"tagName":388,"properties":6247,"children":6248},{"style":522},[6249],{"type":27,"value":2810},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6252,"children":6253},{"class":390},[6254,6259,6263,6268,6272,6277,6281,6286,6290,6294,6298,6302,6306,6310,6315,6319,6324],{"type":31,"tagName":388,"properties":6255,"children":6256},{"style":522},[6257],{"type":27,"value":6258},"  gridLow ",{"type":31,"tagName":388,"properties":6260,"children":6261},{"style":1500},[6262],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6264,"children":6265},{"style":522},[6266],{"type":27,"value":6267}," (Math.",{"type":31,"tagName":388,"properties":6269,"children":6270},{"style":516},[6271],{"type":27,"value":2777},{"type":31,"tagName":388,"properties":6273,"children":6274},{"style":522},[6275],{"type":27,"value":6276},"(close ",{"type":31,"tagName":388,"properties":6278,"children":6279},{"style":1500},[6280],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":6282,"children":6283},{"style":522},[6284],{"type":27,"value":6285}," step) ",{"type":31,"tagName":388,"properties":6287,"children":6288},{"style":1500},[6289],{"type":27,"value":3086},{"type":31,"tagName":388,"properties":6291,"children":6292},{"style":516},[6293],{"type":27,"value":1612},{"type":31,"tagName":388,"properties":6295,"children":6296},{"style":522},[6297],{"type":27,"value":525},{"type":31,"tagName":388,"properties":6299,"children":6300},{"style":567},[6301],{"type":27,"value":2101},{"type":31,"tagName":388,"properties":6303,"children":6304},{"style":1500},[6305],{"type":27,"value":4433},{"type":31,"tagName":388,"properties":6307,"children":6308},{"style":567},[6309],{"type":27,"value":1554},{"type":31,"tagName":388,"properties":6311,"children":6312},{"style":522},[6313],{"type":27,"value":6314},")) ",{"type":31,"tagName":388,"properties":6316,"children":6317},{"style":1500},[6318],{"type":27,"value":2969},{"type":31,"tagName":388,"properties":6320,"children":6321},{"style":522},[6322],{"type":27,"value":6323}," step; ",{"type":31,"tagName":388,"properties":6325,"children":6326},{"style":394},[6327],{"type":27,"value":6328},"// a fixed lattice of round prices, the close in the middle row",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6331,"children":6332},{"class":390},[6333,6338],{"type":31,"tagName":388,"properties":6334,"children":6335},{"style":516},[6336],{"type":27,"value":6337},"  sweepAndFold",{"type":31,"tagName":388,"properties":6339,"children":6340},{"style":522},[6341],{"type":27,"value":6342},"(close, high, low);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6345,"children":6346},{"class":390},[6347,6351,6356,6360,6365],{"type":31,"tagName":388,"properties":6348,"children":6349},{"style":1500},[6350],{"type":27,"value":2739},{"type":31,"tagName":388,"properties":6352,"children":6353},{"style":567},[6354],{"type":27,"value":6355}," oiNow",{"type":31,"tagName":388,"properties":6357,"children":6358},{"style":1500},[6359],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":6361,"children":6362},{"style":516},[6363],{"type":27,"value":6364}," in_oi",{"type":31,"tagName":388,"properties":6366,"children":6367},{"style":522},[6368],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6371,"children":6372},{"class":390},[6373,6377,6381,6385,6389,6394],{"type":31,"tagName":388,"properties":6374,"children":6375},{"style":1500},[6376],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":6378,"children":6379},{"style":522},[6380],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":6382,"children":6383},{"style":1500},[6384],{"type":27,"value":5500},{"type":31,"tagName":388,"properties":6386,"children":6387},{"style":516},[6388],{"type":27,"value":5889},{"type":31,"tagName":388,"properties":6390,"children":6391},{"style":522},[6392],{"type":27,"value":6393},"(oiNow)) { ",{"type":31,"tagName":388,"properties":6395,"children":6396},{"style":394},[6397],{"type":27,"value":6398},"// a bar without a reading changes nothing: the last reading carries forward",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6401,"children":6402},{"class":390},[6403,6408,6412,6416],{"type":31,"tagName":388,"properties":6404,"children":6405},{"style":522},[6406],{"type":27,"value":6407},"    oiSeen ",{"type":31,"tagName":388,"properties":6409,"children":6410},{"style":1500},[6411],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6413,"children":6414},{"style":567},[6415],{"type":27,"value":5644},{"type":31,"tagName":388,"properties":6417,"children":6418},{"style":522},[6419],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6422,"children":6423},{"class":390},[6424,6428,6432,6436,6440],{"type":31,"tagName":388,"properties":6425,"children":6426},{"style":1500},[6427],{"type":27,"value":3589},{"type":31,"tagName":388,"properties":6429,"children":6430},{"style":522},[6431],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":6433,"children":6434},{"style":1500},[6435],{"type":27,"value":5500},{"type":31,"tagName":388,"properties":6437,"children":6438},{"style":516},[6439],{"type":27,"value":5889},{"type":31,"tagName":388,"properties":6441,"children":6442},{"style":522},[6443],{"type":27,"value":6444},"(prevOi)) {",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6447,"children":6448},{"class":390},[6449,6454,6459,6463,6468,6472],{"type":31,"tagName":388,"properties":6450,"children":6451},{"style":1500},[6452],{"type":27,"value":6453},"      const",{"type":31,"tagName":388,"properties":6455,"children":6456},{"style":567},[6457],{"type":27,"value":6458}," dOi",{"type":31,"tagName":388,"properties":6460,"children":6461},{"style":1500},[6462],{"type":27,"value":1513},{"type":31,"tagName":388,"properties":6464,"children":6465},{"style":522},[6466],{"type":27,"value":6467}," oiNow ",{"type":31,"tagName":388,"properties":6469,"children":6470},{"style":1500},[6471],{"type":27,"value":3086},{"type":31,"tagName":388,"properties":6473,"children":6474},{"style":522},[6475],{"type":27,"value":6476}," prevOi;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6479,"children":6480},{"class":390},[6481,6485,6490,6494,6498,6502,6507],{"type":31,"tagName":388,"properties":6482,"children":6483},{"style":1500},[6484],{"type":27,"value":3688},{"type":31,"tagName":388,"properties":6486,"children":6487},{"style":522},[6488],{"type":27,"value":6489}," (dOi ",{"type":31,"tagName":388,"properties":6491,"children":6492},{"style":1500},[6493],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":6495,"children":6496},{"style":567},[6497],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":6499,"children":6500},{"style":522},[6501],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":6503,"children":6504},{"style":516},[6505],{"type":27,"value":6506},"openPositions",{"type":31,"tagName":388,"properties":6508,"children":6509},{"style":522},[6510],{"type":27,"value":6511},"(base, close, high, low, dOi);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6514,"children":6515},{"class":390},[6516,6521,6525,6529,6533,6537,6541,6546,6550,6554,6558,6563,6568,6572],{"type":31,"tagName":388,"properties":6517,"children":6518},{"style":1500},[6519],{"type":27,"value":6520},"      else",{"type":31,"tagName":388,"properties":6522,"children":6523},{"style":1500},[6524],{"type":27,"value":5666},{"type":31,"tagName":388,"properties":6526,"children":6527},{"style":522},[6528],{"type":27,"value":6489},{"type":31,"tagName":388,"properties":6530,"children":6531},{"style":1500},[6532],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":6534,"children":6535},{"style":567},[6536],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":6538,"children":6539},{"style":1500},[6540],{"type":27,"value":3128},{"type":31,"tagName":388,"properties":6542,"children":6543},{"style":522},[6544],{"type":27,"value":6545}," prevOi ",{"type":31,"tagName":388,"properties":6547,"children":6548},{"style":1500},[6549],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":6551,"children":6552},{"style":567},[6553],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":6555,"children":6556},{"style":522},[6557],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":6559,"children":6560},{"style":516},[6561],{"type":27,"value":6562},"scaleAll",{"type":31,"tagName":388,"properties":6564,"children":6565},{"style":522},[6566],{"type":27,"value":6567},"(oiNow ",{"type":31,"tagName":388,"properties":6569,"children":6570},{"style":1500},[6571],{"type":27,"value":2624},{"type":31,"tagName":388,"properties":6573,"children":6574},{"style":522},[6575],{"type":27,"value":6576}," prevOi);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6579,"children":6580},{"class":390},[6581],{"type":31,"tagName":388,"properties":6582,"children":6583},{"style":522},[6584],{"type":27,"value":3896},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6587,"children":6588},{"class":390},[6589,6594,6598],{"type":31,"tagName":388,"properties":6590,"children":6591},{"style":522},[6592],{"type":27,"value":6593},"    prevOi ",{"type":31,"tagName":388,"properties":6595,"children":6596},{"style":1500},[6597],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6599,"children":6600},{"style":522},[6601],{"type":27,"value":6602}," oiNow;",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6605,"children":6606},{"class":390},[6607],{"type":31,"tagName":388,"properties":6608,"children":6609},{"style":522},[6610],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6613,"children":6614},{"class":390},[6615,6620],{"type":31,"tagName":388,"properties":6616,"children":6617},{"style":516},[6618],{"type":27,"value":6619},"  writeNote",{"type":31,"tagName":388,"properties":6621,"children":6622},{"style":522},[6623],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6626,"children":6627},{"class":390},[6628,6632,6636,6640],{"type":31,"tagName":388,"properties":6629,"children":6630},{"style":1500},[6631],{"type":27,"value":3109},{"type":31,"tagName":388,"properties":6633,"children":6634},{"style":522},[6635],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":6637,"children":6638},{"style":1500},[6639],{"type":27,"value":5500},{"type":31,"tagName":388,"properties":6641,"children":6642},{"style":522},[6643],{"type":27,"value":5545},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6646,"children":6647},{"class":390},[6648,6652],{"type":31,"tagName":388,"properties":6649,"children":6650},{"style":516},[6651],{"type":27,"value":5928},{"type":31,"tagName":388,"properties":6653,"children":6654},{"style":522},[6655],{"type":27,"value":4074},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6658,"children":6659},{"class":390},[6660,6664],{"type":31,"tagName":388,"properties":6661,"children":6662},{"style":1500},[6663],{"type":27,"value":5941},{"type":31,"tagName":388,"properties":6665,"children":6666},{"style":522},[6667],{"type":27,"value":1523},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6670,"children":6671},{"class":390},[6672],{"type":31,"tagName":388,"properties":6673,"children":6674},{"style":522},[6675],{"type":27,"value":3919},{"type":27,"value":28},{"type":31,"tagName":388,"properties":6678,"children":6679},{"class":390},[6680,6684],{"type":31,"tagName":388,"properties":6681,"children":6682},{"style":516},[6683],{"type":27,"value":5287},{"type":31,"tagName":388,"properties":6685,"children":6686},{"style":522},[6687],{"type":27,"value":6688},"(gridLow);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6691,"children":6692},{"class":390},[6693,6697],{"type":31,"tagName":388,"properties":6694,"children":6695},{"style":516},[6696],{"type":27,"value":5309},{"type":31,"tagName":388,"properties":6698,"children":6699},{"style":522},[6700],{"type":27,"value":6701},"(step);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6704,"children":6705},{"class":390},[6706,6710],{"type":31,"tagName":388,"properties":6707,"children":6708},{"style":516},[6709],{"type":27,"value":5330},{"type":31,"tagName":388,"properties":6711,"children":6712},{"style":522},[6713],{"type":27,"value":6714},"(longsNear);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6717,"children":6718},{"class":390},[6719,6723],{"type":31,"tagName":388,"properties":6720,"children":6721},{"style":516},[6722],{"type":27,"value":5351},{"type":31,"tagName":388,"properties":6724,"children":6725},{"style":522},[6726],{"type":27,"value":6727},"(shortsNear);",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6730,"children":6731},{"class":390},[6732,6736,6740,6744,6748,6752,6756,6760,6764,6768,6772,6776,6780,6784,6788,6793,6797,6801,6805,6810,6814,6818,6822],{"type":31,"tagName":388,"properties":6733,"children":6734},{"style":1500},[6735],{"type":27,"value":3404},{"type":31,"tagName":388,"properties":6737,"children":6738},{"style":522},[6739],{"type":27,"value":3409},{"type":31,"tagName":388,"properties":6741,"children":6742},{"style":1500},[6743],{"type":27,"value":2166},{"type":31,"tagName":388,"properties":6745,"children":6746},{"style":522},[6747],{"type":27,"value":3418},{"type":31,"tagName":388,"properties":6749,"children":6750},{"style":1500},[6751],{"type":27,"value":2176},{"type":31,"tagName":388,"properties":6753,"children":6754},{"style":567},[6755],{"type":27,"value":1641},{"type":31,"tagName":388,"properties":6757,"children":6758},{"style":522},[6759],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":6761,"children":6762},{"style":1500},[6763],{"type":27,"value":1968},{"type":31,"tagName":388,"properties":6765,"children":6766},{"style":567},[6767],{"type":27,"value":1887},{"type":31,"tagName":388,"properties":6769,"children":6770},{"style":522},[6771],{"type":27,"value":3431},{"type":31,"tagName":388,"properties":6773,"children":6774},{"style":1500},[6775],{"type":27,"value":3169},{"type":31,"tagName":388,"properties":6777,"children":6778},{"style":567},[6779],{"type":27,"value":1669},{"type":31,"tagName":388,"properties":6781,"children":6782},{"style":522},[6783],{"type":27,"value":2964},{"type":31,"tagName":388,"properties":6785,"children":6786},{"style":516},[6787],{"type":27,"value":5424},{"type":31,"tagName":388,"properties":6789,"children":6790},{"style":522},[6791],{"type":27,"value":6792},"(r, rowUsd[r] ",{"type":31,"tagName":388,"properties":6794,"children":6795},{"style":1500},[6796],{"type":27,"value":4159},{"type":31,"tagName":388,"properties":6798,"children":6799},{"style":567},[6800],{"type":27,"value":2491},{"type":31,"tagName":388,"properties":6802,"children":6803},{"style":1500},[6804],{"type":27,"value":1646},{"type":31,"tagName":388,"properties":6806,"children":6807},{"style":522},[6808],{"type":27,"value":6809}," rowUsd[r] ",{"type":31,"tagName":388,"properties":6811,"children":6812},{"style":1500},[6813],{"type":27,"value":1593},{"type":31,"tagName":388,"properties":6815,"children":6816},{"style":567},[6817],{"type":27,"value":2333},{"type":31,"tagName":388,"properties":6819,"children":6820},{"style":522},[6821],{"type":27,"value":1996},{"type":31,"tagName":388,"properties":6823,"children":6824},{"style":394},[6825],{"type":27,"value":6826},"// NaN = an empty cell",{"type":27,"value":28},{"type":31,"tagName":388,"properties":6829,"children":6830},{"class":390},[6831],{"type":31,"tagName":388,"properties":6832,"children":6833},{"style":522},[6834],{"type":27,"value":1725},{"type":27,"value":28},{"type":31,"tagName":355,"properties":6837,"children":6838,"position":6848},{},[6839],{"type":27,"value":6840,"position":6841},"How it works",{"start":6842,"end":6845},{"line":6843,"column":363,"offset":6844},229,13324,{"line":6843,"column":6846,"offset":6847},16,13336,{"start":6849,"end":6851},{"line":6843,"column":21,"offset":6850},13321,{"line":6843,"column":6846,"offset":6847},{"type":27,"value":28},{"type":31,"tagName":32,"properties":6854,"children":6855,"position":7038},{},[6856,6875,6882,6895,6902,6914,6920,6933,6940,6953,6960,6973,6979,6992,6999,7012,7019,7031],{"type":31,"tagName":303,"properties":6857,"children":6858,"position":6869},{},[6859],{"type":27,"value":6860,"position":6861},"Open interest is read as positions.",{"start":6862,"end":6866},{"line":6863,"column":6864,"offset":6865},231,3,13340,{"line":6863,"column":6867,"offset":6868},38,13375,{"start":6870,"end":6872},{"line":6863,"column":21,"offset":6871},13338,{"line":6863,"column":6873,"offset":6874},40,13377,{"type":27,"value":6876,"position":6877}," On every bar ",{"start":6878,"end":6879},{"line":6863,"column":6873,"offset":6874},{"line":6863,"column":6880,"offset":6881},54,13391,{"type":31,"tagName":107,"properties":6883,"children":6884,"position":6892},{},[6885],{"type":27,"value":6886,"position":6887},"in_oi()",{"start":6888,"end":6889},{"line":6863,"column":6880,"offset":6881},{"line":6863,"column":6890,"offset":6891},63,13400,{"start":6893,"end":6894},{"line":6863,"column":6880,"offset":6881},{"line":6863,"column":6890,"offset":6891},{"type":27,"value":6896,"position":6897}," (the ",{"start":6898,"end":6899},{"line":6863,"column":6890,"offset":6891},{"line":6863,"column":6900,"offset":6901},69,13406,{"type":31,"tagName":107,"properties":6903,"children":6904,"position":6911},{},[6905],{"type":27,"value":111,"position":6906},{"start":6907,"end":6908},{"line":6863,"column":6900,"offset":6901},{"line":6863,"column":6909,"offset":6910},79,13416,{"start":6912,"end":6913},{"line":6863,"column":6900,"offset":6901},{"line":6863,"column":6909,"offset":6910},{"type":27,"value":6915,"position":6916}," input, in USD) is compared with the last finite reading; a bar without a reading changes nothing. A rise is new open interest opened at the bar's typical price (high, low and close averaged), split into longs and shorts by the bar's buy share of ",{"start":6917,"end":6918},{"line":6863,"column":6909,"offset":6910},{"line":6863,"column":243,"offset":6919},13663,{"type":31,"tagName":107,"properties":6921,"children":6922,"position":6930},{},[6923],{"type":27,"value":6924,"position":6925},"in_buy()",{"start":6926,"end":6927},{"line":6863,"column":243,"offset":6919},{"line":6863,"column":6928,"offset":6929},336,13673,{"start":6931,"end":6932},{"line":6863,"column":243,"offset":6919},{"line":6863,"column":6928,"offset":6929},{"type":27,"value":6934,"position":6935}," and ",{"start":6936,"end":6937},{"line":6863,"column":6928,"offset":6929},{"line":6863,"column":6938,"offset":6939},341,13678,{"type":31,"tagName":107,"properties":6941,"children":6942,"position":6950},{},[6943],{"type":27,"value":6944,"position":6945},"in_sell()",{"start":6946,"end":6947},{"line":6863,"column":6938,"offset":6939},{"line":6863,"column":6948,"offset":6949},352,13689,{"start":6951,"end":6952},{"line":6863,"column":6938,"offset":6939},{"line":6863,"column":6948,"offset":6949},{"type":27,"value":6954,"position":6955},", and spread over four leverage tiers, 10x, 25x, 50x and 100x, weighted 40, 30, 20 and 10 percent in ",{"start":6956,"end":6957},{"line":6863,"column":6948,"offset":6949},{"line":6863,"column":6958,"offset":6959},453,13790,{"type":31,"tagName":107,"properties":6961,"children":6962,"position":6970},{},[6963],{"type":27,"value":6964,"position":6965},"tierLeverage",{"start":6966,"end":6967},{"line":6863,"column":6958,"offset":6959},{"line":6863,"column":6968,"offset":6969},467,13804,{"start":6971,"end":6972},{"line":6863,"column":6958,"offset":6959},{"line":6863,"column":6968,"offset":6969},{"type":27,"value":6934,"position":6974},{"start":6975,"end":6976},{"line":6863,"column":6968,"offset":6969},{"line":6863,"column":6977,"offset":6978},472,13809,{"type":31,"tagName":107,"properties":6980,"children":6981,"position":6989},{},[6982],{"type":27,"value":6983,"position":6984},"tierWeight",{"start":6985,"end":6986},{"line":6863,"column":6977,"offset":6978},{"line":6863,"column":6987,"offset":6988},484,13821,{"start":6990,"end":6991},{"line":6863,"column":6977,"offset":6978},{"line":6863,"column":6987,"offset":6988},{"type":27,"value":6993,"position":6994},". Each tier is liquidated by an adverse move of one over its leverage less ",{"start":6995,"end":6996},{"line":6863,"column":6987,"offset":6988},{"line":6863,"column":6997,"offset":6998},559,13896,{"type":31,"tagName":107,"properties":7000,"children":7001,"position":7009},{},[7002],{"type":27,"value":7003,"position":7004},"maint_margin_pct",{"start":7005,"end":7006},{"line":6863,"column":6997,"offset":6998},{"line":6863,"column":7007,"offset":7008},577,13914,{"start":7010,"end":7011},{"line":6863,"column":6997,"offset":6998},{"line":6863,"column":7007,"offset":7008},{"type":27,"value":7013,"position":7014},": a 10x long opened at 84,000 with the default 0.5% margin is liquidated about 9.5% lower, near 76,000, and a 10x short about 9.5% higher, near 92,000. A fall in open interest scales every live level down in proportion (",{"start":7015,"end":7016},{"line":6863,"column":7007,"offset":7008},{"line":6863,"column":7017,"offset":7018},797,14134,{"type":31,"tagName":107,"properties":7020,"children":7021,"position":7028},{},[7022],{"type":27,"value":6562,"position":7023},{"start":7024,"end":7025},{"line":6863,"column":7017,"offset":7018},{"line":6863,"column":7026,"offset":7027},807,14144,{"start":7029,"end":7030},{"line":6863,"column":7017,"offset":7018},{"line":6863,"column":7026,"offset":7027},{"type":27,"value":7032,"position":7033},"), the map and the near sums with it.",{"start":7034,"end":7035},{"line":6863,"column":7026,"offset":7027},{"line":6863,"column":7036,"offset":7037},844,14181,{"start":7039,"end":7040},{"line":6863,"column":21,"offset":6871},{"line":6863,"column":7036,"offset":7037},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7043,"children":7044,"position":7147},{},[7045,7063,7070,7083,7089,7101,7108,7120,7127,7140],{"type":31,"tagName":303,"properties":7046,"children":7047,"position":7057},{},[7048],{"type":27,"value":7049,"position":7050},"The ledger is a ring.",{"start":7051,"end":7054},{"line":7052,"column":6864,"offset":7053},233,14185,{"line":7052,"column":7055,"offset":7056},24,14206,{"start":7058,"end":7060},{"line":7052,"column":21,"offset":7059},14183,{"line":7052,"column":7061,"offset":7062},26,14208,{"type":27,"value":7064,"position":7065}," ",{"start":7066,"end":7067},{"line":7052,"column":7061,"offset":7062},{"line":7052,"column":7068,"offset":7069},27,14209,{"type":31,"tagName":107,"properties":7071,"children":7072,"position":7080},{},[7073],{"type":27,"value":7074,"position":7075},"levelPrice",{"start":7076,"end":7077},{"line":7052,"column":7068,"offset":7069},{"line":7052,"column":7078,"offset":7079},39,14221,{"start":7081,"end":7082},{"line":7052,"column":7068,"offset":7069},{"line":7052,"column":7078,"offset":7079},{"type":27,"value":6934,"position":7084},{"start":7085,"end":7086},{"line":7052,"column":7078,"offset":7079},{"line":7052,"column":7087,"offset":7088},44,14226,{"type":31,"tagName":107,"properties":7090,"children":7091,"position":7098},{},[7092],{"type":27,"value":7093,"position":7094},"levelUsd",{"start":7095,"end":7096},{"line":7052,"column":7087,"offset":7088},{"line":7052,"column":6880,"offset":7097},14236,{"start":7099,"end":7100},{"line":7052,"column":7087,"offset":7088},{"line":7052,"column":6880,"offset":7097},{"type":27,"value":7102,"position":7103}," are two fixed arrays sized for the largest lookback, eight slots per bar (four long tiers, then four short tiers); once ",{"start":7104,"end":7105},{"line":7052,"column":6880,"offset":7097},{"line":7052,"column":7106,"offset":7107},175,14357,{"type":31,"tagName":107,"properties":7109,"children":7110,"position":7117},{},[7111],{"type":27,"value":7112,"position":7113},"lookback",{"start":7114,"end":7115},{"line":7052,"column":7106,"offset":7107},{"line":7052,"column":46,"offset":7116},14367,{"start":7118,"end":7119},{"line":7052,"column":7106,"offset":7107},{"line":7052,"column":46,"offset":7116},{"type":27,"value":7121,"position":7122}," bars are held, the oldest bar's slots are recycled, so a level older than the lookback drops. ",{"start":7123,"end":7124},{"line":7052,"column":46,"offset":7116},{"line":7052,"column":7125,"offset":7126},280,14462,{"type":31,"tagName":107,"properties":7128,"children":7129,"position":7137},{},[7130],{"type":27,"value":7131,"position":7132},"sweepAndFold",{"start":7133,"end":7134},{"line":7052,"column":7125,"offset":7126},{"line":7052,"column":7135,"offset":7136},294,14476,{"start":7138,"end":7139},{"line":7052,"column":7125,"offset":7126},{"line":7052,"column":7135,"offset":7136},{"type":27,"value":7141,"position":7142}," walks the ledger once per bar: a long level is gone once the bar's low reaches it, a short level once the bar's high does, and every level left adds its dollars to the row it falls in. A level outside the map on this bar stays in the ledger and comes back when price moves toward it. Nothing fades with age: a level keeps its full size until a sweep, a fall in open interest or the lookback takes it.",{"start":7143,"end":7144},{"line":7052,"column":7135,"offset":7136},{"line":7052,"column":7145,"offset":7146},695,14877,{"start":7148,"end":7149},{"line":7052,"column":21,"offset":7059},{"line":7052,"column":7145,"offset":7146},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7152,"children":7153,"position":7299},{},[7154,7172,7179,7192,7199,7212,7219,7232,7239,7252,7259,7272,7279,7292],{"type":31,"tagName":303,"properties":7155,"children":7156,"position":7166},{},[7157],{"type":27,"value":7158,"position":7159},"The map follows the close.",{"start":7160,"end":7163},{"line":7161,"column":6864,"offset":7162},235,14881,{"line":7161,"column":7164,"offset":7165},29,14907,{"start":7167,"end":7169},{"line":7161,"column":21,"offset":7168},14879,{"line":7161,"column":7170,"offset":7171},31,14909,{"type":27,"value":7173,"position":7174}," The 128 rows reach about ",{"start":7175,"end":7176},{"line":7161,"column":7170,"offset":7171},{"line":7161,"column":7177,"offset":7178},57,14935,{"type":31,"tagName":107,"properties":7180,"children":7181,"position":7189},{},[7182],{"type":27,"value":7183,"position":7184},"range_pct",{"start":7185,"end":7186},{"line":7161,"column":7177,"offset":7178},{"line":7161,"column":7187,"offset":7188},68,14946,{"start":7190,"end":7191},{"line":7161,"column":7177,"offset":7178},{"line":7161,"column":7187,"offset":7188},{"type":27,"value":7193,"position":7194}," each side of the close (5% by default). ",{"start":7195,"end":7196},{"line":7161,"column":7187,"offset":7188},{"line":7161,"column":7197,"offset":7198},109,14987,{"type":31,"tagName":107,"properties":7200,"children":7201,"position":7209},{},[7202],{"type":27,"value":7203,"position":7204},"niceStep()",{"start":7205,"end":7206},{"line":7161,"column":7197,"offset":7198},{"line":7161,"column":7207,"offset":7208},121,14999,{"start":7210,"end":7211},{"line":7161,"column":7197,"offset":7198},{"line":7161,"column":7207,"offset":7208},{"type":27,"value":7213,"position":7214}," snaps the row height to a round price (1, 2, 2.5 or 5 times a power of ten), so the rows sit on the same prices bar after bar and the bands run straight: 50 on BTC near 85,000, a reach of 3,200 each side, varying a little as the snap moves. ",{"start":7215,"end":7216},{"line":7161,"column":7207,"offset":7208},{"line":7161,"column":7217,"offset":7218},363,15241,{"type":31,"tagName":107,"properties":7220,"children":7221,"position":7229},{},[7222],{"type":27,"value":7223,"position":7224},"grid_low",{"start":7225,"end":7226},{"line":7161,"column":7217,"offset":7218},{"line":7161,"column":7227,"offset":7228},373,15251,{"start":7230,"end":7231},{"line":7161,"column":7217,"offset":7218},{"line":7161,"column":7227,"offset":7228},{"type":27,"value":7233,"position":7234}," is the bottom edge of row 0 on each bar, a whole number of rows below the close's row, and ",{"start":7235,"end":7236},{"line":7161,"column":7227,"offset":7228},{"line":7161,"column":7237,"offset":7238},465,15343,{"type":31,"tagName":107,"properties":7240,"children":7241,"position":7249},{},[7242],{"type":27,"value":7243,"position":7244},"row_step",{"start":7245,"end":7246},{"line":7161,"column":7237,"offset":7238},{"line":7161,"column":7247,"offset":7248},475,15353,{"start":7250,"end":7251},{"line":7161,"column":7237,"offset":7238},{"line":7161,"column":7247,"offset":7248},{"type":27,"value":7253,"position":7254}," every row's height in price; ",{"start":7255,"end":7256},{"line":7161,"column":7247,"offset":7248},{"line":7161,"column":7257,"offset":7258},505,15383,{"type":31,"tagName":107,"properties":7260,"children":7261,"position":7269},{},[7262],{"type":27,"value":7263,"position":7264},"plot.heatmap({ grid: \"heat\", price_low: \"grid_low\", price_step: \"row_step\" })",{"start":7265,"end":7266},{"line":7161,"column":7257,"offset":7258},{"line":7161,"column":7267,"offset":7268},584,15462,{"start":7270,"end":7271},{"line":7161,"column":7257,"offset":7258},{"line":7161,"column":7267,"offset":7268},{"type":27,"value":7273,"position":7274}," reads the two to place the grid, so the map moves with the close. ",{"start":7275,"end":7276},{"line":7161,"column":7267,"offset":7268},{"line":7161,"column":7277,"offset":7278},651,15529,{"type":31,"tagName":107,"properties":7280,"children":7281,"position":7289},{},[7282],{"type":27,"value":7283,"position":7284},"out_heat(row, value)",{"start":7285,"end":7286},{"line":7161,"column":7277,"offset":7278},{"line":7161,"column":7287,"offset":7288},673,15551,{"start":7290,"end":7291},{"line":7161,"column":7277,"offset":7278},{"line":7161,"column":7287,"offset":7288},{"type":27,"value":7293,"position":7294}," writes a row's dollars, and NaN leaves a cell empty. A narrower range draws finer rows and leaves the far tiers off the map until price comes near them.",{"start":7295,"end":7296},{"line":7161,"column":7287,"offset":7288},{"line":7161,"column":7297,"offset":7298},826,15704,{"start":7300,"end":7301},{"line":7161,"column":21,"offset":7168},{"line":7161,"column":7297,"offset":7298},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7304,"children":7305,"position":7451},{},[7306,7324,7331,7344,7351,7364,7371,7384,7391,7404,7411,7424,7431,7444],{"type":31,"tagName":303,"properties":7307,"children":7308,"position":7318},{},[7309],{"type":27,"value":7310,"position":7311},"The scale.",{"start":7312,"end":7315},{"line":7313,"column":6864,"offset":7314},237,15708,{"line":7313,"column":7316,"offset":7317},13,15718,{"start":7319,"end":7321},{"line":7313,"column":21,"offset":7320},15706,{"line":7313,"column":7322,"offset":7323},15,15720,{"type":27,"value":7325,"position":7326}," The palette runs from the chart's background through a faint amber (",{"start":7327,"end":7328},{"line":7313,"column":7322,"offset":7323},{"line":7313,"column":7329,"offset":7330},84,15789,{"type":31,"tagName":107,"properties":7332,"children":7333,"position":7341},{},[7334],{"type":27,"value":7335,"position":7336},"#f8c00040",{"start":7337,"end":7338},{"line":7313,"column":7329,"offset":7330},{"line":7313,"column":7339,"offset":7340},95,15800,{"start":7342,"end":7343},{"line":7313,"column":7329,"offset":7330},{"line":7313,"column":7339,"offset":7340},{"type":27,"value":7345,"position":7346},", amber at a quarter strength, so it reads on a light chart too) and full amber and orange to red. ",{"start":7347,"end":7348},{"line":7313,"column":7339,"offset":7340},{"line":7313,"column":7349,"offset":7350},194,15899,{"type":31,"tagName":107,"properties":7352,"children":7353,"position":7361},{},[7354],{"type":27,"value":7355,"position":7356},"scale: \"linear\"",{"start":7357,"end":7358},{"line":7313,"column":7349,"offset":7350},{"line":7313,"column":7359,"offset":7360},211,15916,{"start":7362,"end":7363},{"line":7313,"column":7349,"offset":7350},{"line":7313,"column":7359,"offset":7360},{"type":27,"value":7365,"position":7366}," with ",{"start":7367,"end":7368},{"line":7313,"column":7359,"offset":7360},{"line":7313,"column":7369,"offset":7370},217,15922,{"type":31,"tagName":107,"properties":7372,"children":7373,"position":7381},{},[7374],{"type":27,"value":7375,"position":7376},"min: 0",{"start":7377,"end":7378},{"line":7313,"column":7369,"offset":7370},{"line":7313,"column":7379,"offset":7380},225,15930,{"start":7382,"end":7383},{"line":7313,"column":7369,"offset":7370},{"line":7313,"column":7379,"offset":7380},{"type":27,"value":7385,"position":7386}," keeps most cells dark and lets only the stacked rows glow, and ",{"start":7387,"end":7388},{"line":7313,"column":7379,"offset":7380},{"line":7313,"column":7389,"offset":7390},289,15994,{"type":31,"tagName":107,"properties":7392,"children":7393,"position":7401},{},[7394],{"type":27,"value":7395,"position":7396},"auto_quantile: 0.98",{"start":7397,"end":7398},{"line":7313,"column":7389,"offset":7390},{"line":7313,"column":7399,"offset":7400},310,16015,{"start":7402,"end":7403},{"line":7313,"column":7389,"offset":7390},{"line":7313,"column":7399,"offset":7400},{"type":27,"value":7405,"position":7406}," sets the top of the scale at the 98th percentile of every cell in the run, so one huge row does not wash out the rest. ",{"start":7407,"end":7408},{"line":7313,"column":7399,"offset":7400},{"line":7313,"column":7409,"offset":7410},430,16135,{"type":31,"tagName":107,"properties":7412,"children":7413,"position":7421},{},[7414],{"type":27,"value":7415,"position":7416},"behind_candles: true",{"start":7417,"end":7418},{"line":7313,"column":7409,"offset":7410},{"line":7313,"column":7419,"offset":7420},452,16157,{"start":7422,"end":7423},{"line":7313,"column":7409,"offset":7410},{"line":7313,"column":7419,"offset":7420},{"type":27,"value":7425,"position":7426}," keeps the bars on top, and the tooltip ",{"start":7427,"end":7428},{"line":7313,"column":7419,"offset":7420},{"line":7313,"column":7429,"offset":7430},492,16197,{"type":31,"tagName":107,"properties":7432,"children":7433,"position":7441},{},[7434],{"type":27,"value":7435,"position":7436},"{{value:usd}} at {{price}}",{"start":7437,"end":7438},{"line":7313,"column":7429,"offset":7430},{"line":7313,"column":7439,"offset":7440},520,16225,{"start":7442,"end":7443},{"line":7313,"column":7429,"offset":7430},{"line":7313,"column":7439,"offset":7440},{"type":27,"value":7445,"position":7446}," reads a cell as its dollars and its price.",{"start":7447,"end":7448},{"line":7313,"column":7439,"offset":7440},{"line":7313,"column":7449,"offset":7450},563,16268,{"start":7452,"end":7453},{"line":7313,"column":21,"offset":7320},{"line":7313,"column":7449,"offset":7450},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7456,"children":7457,"position":7520},{},[7458,7476,7482,7495,7501,7513],{"type":31,"tagName":303,"properties":7459,"children":7460,"position":7470},{},[7461],{"type":27,"value":7462,"position":7463},"The near sums.",{"start":7464,"end":7467},{"line":7465,"column":6864,"offset":7466},239,16272,{"line":7465,"column":7468,"offset":7469},17,16286,{"start":7471,"end":7473},{"line":7465,"column":21,"offset":7472},16270,{"line":7465,"column":7474,"offset":7475},19,16288,{"type":27,"value":7064,"position":7477},{"start":7478,"end":7479},{"line":7465,"column":7474,"offset":7475},{"line":7465,"column":7480,"offset":7481},20,16289,{"type":31,"tagName":107,"properties":7483,"children":7484,"position":7492},{},[7485],{"type":27,"value":7486,"position":7487},"longs_near",{"start":7488,"end":7489},{"line":7465,"column":7480,"offset":7481},{"line":7465,"column":7490,"offset":7491},32,16301,{"start":7493,"end":7494},{"line":7465,"column":7480,"offset":7481},{"line":7465,"column":7490,"offset":7491},{"type":27,"value":6934,"position":7496},{"start":7497,"end":7498},{"line":7465,"column":7490,"offset":7491},{"line":7465,"column":7499,"offset":7500},37,16306,{"type":31,"tagName":107,"properties":7502,"children":7503,"position":7510},{},[7504],{"type":27,"value":7505,"position":7506},"shorts_near",{"start":7507,"end":7508},{"line":7465,"column":7499,"offset":7500},{"line":7465,"column":125,"offset":7509},16319,{"start":7511,"end":7512},{"line":7465,"column":7499,"offset":7500},{"line":7465,"column":125,"offset":7509},{"type":27,"value":7514,"position":7515}," are data-only outputs written on every bar: the estimated long liquidations within 5% below the close and the short liquidations within 5% above it, in USD. They draw nothing; read them at the editor's Console prompt or set an alert on them.",{"start":7516,"end":7517},{"line":7465,"column":125,"offset":7509},{"line":7465,"column":7518,"offset":7519},292,16561,{"start":7521,"end":7522},{"line":7465,"column":21,"offset":7472},{"line":7465,"column":7518,"offset":7519},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7525,"children":7526,"position":7598},{},[7527,7544,7551,7568,7575,7591],{"type":31,"tagName":303,"properties":7528,"children":7529,"position":7539},{},[7530],{"type":27,"value":7531,"position":7532},"An estimate, beside two siblings.",{"start":7533,"end":7536},{"line":7534,"column":6864,"offset":7535},241,16565,{"line":7534,"column":7537,"offset":7538},36,16598,{"start":7540,"end":7542},{"line":7534,"column":21,"offset":7541},16563,{"line":7534,"column":6867,"offset":7543},16600,{"type":27,"value":7545,"position":7546}," Nothing here is a venue's own liquidation feed: read a band as \"about this much, about here\". ",{"start":7547,"end":7548},{"line":7534,"column":6867,"offset":7543},{"line":7534,"column":7549,"offset":7550},133,16695,{"type":31,"tagName":65,"properties":7552,"children":7554,"position":7563},{"href":7553},"liquidation-heat.md",[7555],{"type":27,"value":7556,"position":7557},"Liquidation Heat",{"start":7558,"end":7560},{"line":7534,"column":25,"offset":7559},16696,{"line":7534,"column":7561,"offset":7562},150,16712,{"start":7564,"end":7565},{"line":7534,"column":7549,"offset":7550},{"line":7534,"column":7566,"offset":7567},172,16734,{"type":27,"value":7569,"position":7570}," builds its map from the candles alone: every bar seeds levels at its close weighted by its volume, and the levels fade with age, so it draws on any chart but knows nothing of positions opened or closed. The ",{"start":7571,"end":7572},{"line":7534,"column":7566,"offset":7567},{"line":7534,"column":7573,"offset":7574},380,16942,{"type":31,"tagName":65,"properties":7576,"children":7577,"position":7586},{"href":67},[7578],{"type":27,"value":70,"position":7579},{"start":7580,"end":7583},{"line":7534,"column":7581,"offset":7582},381,16943,{"line":7534,"column":7584,"offset":7585},396,16958,{"start":7587,"end":7588},{"line":7534,"column":7573,"offset":7574},{"line":7534,"column":7589,"offset":7590},417,16979,{"type":27,"value":7592,"position":7593}," is this model, with the same tiers, margin, sweeps and lookback, docked on the price axis as a two-sided profile measured on the live bar only. This recipe keeps that ledger and draws it on every bar, behind the candles.",{"start":7594,"end":7595},{"line":7534,"column":7589,"offset":7590},{"line":7534,"column":7596,"offset":7597},638,17200,{"start":7599,"end":7600},{"line":7534,"column":21,"offset":7541},{"line":7534,"column":7596,"offset":7597},{"type":27,"value":28},{"type":31,"tagName":355,"properties":7603,"children":7604,"position":7613},{},[7605],{"type":27,"value":7606,"position":7607},"Where it runs",{"start":7608,"end":7611},{"line":7609,"column":363,"offset":7610},243,17205,{"line":7609,"column":7468,"offset":7612},17218,{"start":7614,"end":7616},{"line":7609,"column":21,"offset":7615},17202,{"line":7609,"column":7468,"offset":7612},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7619,"children":7620,"position":7695},{},[7621,7630,7648,7655,7668,7675,7688],{"type":27,"value":7622,"position":7623},"Perpetual futures with open interest: Binance Futures and Hyperliquid perpetuals, at any interval. The lookback is counted in the chart's own bars, so 672 is a week at 15m and four weeks at 1h, and the map covers no more than the chart has loaded: a 1h chart holding 297 bars builds from those 297, which is why the legend reads \"up to 672 bars\". Every bar draws its own column, so the history shows how the estimate moved; the forming bar replays from the chart's snapshot, so the ring advances once per bar on live ticks too (",{"start":7624,"end":7627},{"line":7625,"column":21,"offset":7626},245,17220,{"line":7625,"column":7628,"offset":7629},529,17748,{"type":31,"tagName":65,"properties":7631,"children":7633,"position":7643},{"href":7632},"../core-concepts/repainting.md",[7634],{"type":27,"value":7635,"position":7636},"Repainting",{"start":7637,"end":7640},{"line":7625,"column":7638,"offset":7639},530,17749,{"line":7625,"column":7641,"offset":7642},540,17759,{"start":7644,"end":7645},{"line":7625,"column":7628,"offset":7629},{"line":7625,"column":7646,"offset":7647},573,17792,{"type":27,"value":7649,"position":7650},"). No market refuses the run: the ",{"start":7651,"end":7652},{"line":7625,"column":7646,"offset":7647},{"line":7625,"column":7653,"offset":7654},607,17826,{"type":31,"tagName":107,"properties":7656,"children":7657,"position":7665},{},[7658],{"type":27,"value":7659,"position":7660},"oi",{"start":7661,"end":7662},{"line":7625,"column":7653,"offset":7654},{"line":7625,"column":7663,"offset":7664},611,17830,{"start":7666,"end":7667},{"line":7625,"column":7653,"offset":7654},{"line":7625,"column":7663,"offset":7664},{"type":27,"value":7669,"position":7670}," input declares ",{"start":7671,"end":7672},{"line":7625,"column":7663,"offset":7664},{"line":7625,"column":7673,"offset":7674},627,17846,{"type":31,"tagName":107,"properties":7676,"children":7677,"position":7685},{},[7678],{"type":27,"value":7679,"position":7680},"missing: \"nan\"",{"start":7681,"end":7682},{"line":7625,"column":7673,"offset":7674},{"line":7625,"column":7683,"offset":7684},643,17862,{"start":7686,"end":7687},{"line":7625,"column":7673,"offset":7674},{"line":7625,"column":7683,"offset":7684},{"type":27,"value":7689,"position":7690},", so a market without open interest reads NaN and gets the sentence below instead of a toast.",{"start":7691,"end":7692},{"line":7625,"column":7683,"offset":7684},{"line":7625,"column":7693,"offset":7694},736,17955,{"start":7696,"end":7697},{"line":7625,"column":21,"offset":7626},{"line":7625,"column":7693,"offset":7694},{"type":27,"value":28},{"type":31,"tagName":355,"properties":7700,"children":7701,"position":7710},{},[7702],{"type":27,"value":7703,"position":7704},"When data is missing",{"start":7705,"end":7708},{"line":7706,"column":363,"offset":7707},247,17960,{"line":7706,"column":7055,"offset":7709},17980,{"start":7711,"end":7713},{"line":7706,"column":21,"offset":7712},17957,{"line":7706,"column":7055,"offset":7709},{"type":27,"value":28},{"type":31,"tagName":32,"properties":7716,"children":7717,"position":7804},{},[7718,7727,7740,7747,7760,7767,7779,7785,7797],{"type":27,"value":7719,"position":7720},"On a market without open interest (spot pairs, FX, prediction markets) the map stays empty and one line of words shows at the top right, ",{"start":7721,"end":7724},{"line":7722,"column":21,"offset":7723},249,17982,{"line":7722,"column":7725,"offset":7726},138,18119,{"type":31,"tagName":107,"properties":7728,"children":7729,"position":7737},{},[7730],{"type":27,"value":7731,"position":7732},"No open interest on this market, so no liquidation estimate",{"start":7733,"end":7734},{"line":7722,"column":7725,"offset":7726},{"line":7722,"column":7735,"offset":7736},199,18180,{"start":7738,"end":7739},{"line":7722,"column":7725,"offset":7726},{"line":7722,"column":7735,"offset":7736},{"type":27,"value":7741,"position":7742},", in plain slate: the ",{"start":7743,"end":7744},{"line":7722,"column":7735,"offset":7736},{"line":7722,"column":7745,"offset":7746},221,18202,{"type":31,"tagName":107,"properties":7748,"children":7749,"position":7757},{},[7750],{"type":27,"value":7751,"position":7752},"note",{"start":7753,"end":7754},{"line":7722,"column":7745,"offset":7746},{"line":7722,"column":7755,"offset":7756},227,18208,{"start":7758,"end":7759},{"line":7722,"column":7745,"offset":7746},{"line":7722,"column":7755,"offset":7756},{"type":27,"value":7761,"position":7762}," label handle pinned to the pane's top right corner and right-aligned, clear of the price axis. ",{"start":7763,"end":7764},{"line":7722,"column":7755,"offset":7756},{"line":7722,"column":7765,"offset":7766},323,18304,{"type":31,"tagName":107,"properties":7768,"children":7769,"position":7776},{},[7770],{"type":27,"value":7486,"position":7771},{"start":7772,"end":7773},{"line":7722,"column":7765,"offset":7766},{"line":7722,"column":7774,"offset":7775},335,18316,{"start":7777,"end":7778},{"line":7722,"column":7765,"offset":7766},{"line":7722,"column":7774,"offset":7775},{"type":27,"value":6934,"position":7780},{"start":7781,"end":7782},{"line":7722,"column":7774,"offset":7775},{"line":7722,"column":7783,"offset":7784},340,18321,{"type":31,"tagName":107,"properties":7786,"children":7787,"position":7794},{},[7788],{"type":27,"value":7505,"position":7789},{"start":7790,"end":7791},{"line":7722,"column":7783,"offset":7784},{"line":7722,"column":7792,"offset":7793},353,18334,{"start":7795,"end":7796},{"line":7722,"column":7783,"offset":7784},{"line":7722,"column":7792,"offset":7793},{"type":27,"value":7798,"position":7799}," read NaN there. Once the market serves open interest, the sentence goes and the map builds up from the first rise. On a market with open interest but without sided trades, every new position is split half longs and half shorts. A bar whose close is NaN writes an empty column and leaves the ledger as it was.",{"start":7800,"end":7801},{"line":7722,"column":7792,"offset":7793},{"line":7722,"column":7802,"offset":7803},662,18643,{"start":7805,"end":7806},{"line":7722,"column":21,"offset":7723},{"line":7722,"column":7802,"offset":7803},{"type":27,"value":28},{"type":31,"tagName":355,"properties":7809,"children":7810,"position":7819},{},[7811],{"type":27,"value":7812,"position":7813},"Customize it",{"start":7814,"end":7817},{"line":7815,"column":363,"offset":7816},251,18648,{"line":7815,"column":6846,"offset":7818},18660,{"start":7820,"end":7822},{"line":7815,"column":21,"offset":7821},18645,{"line":7815,"column":6846,"offset":7818},{"type":27,"value":28},{"type":31,"tagName":7825,"properties":7826,"children":7827,"position":8154},"ul",{},[7828,7829,7898,7899,7999,8000,8067,8068,8153],{"type":27,"value":28},{"type":31,"tagName":7830,"properties":7831,"children":7832,"position":7894},"li",{},[7833,7850,7856,7868,7875,7887],{"type":31,"tagName":303,"properties":7834,"children":7835,"position":7844},{},[7836],{"type":27,"value":7837,"position":7838},"A longer or shorter memory.",{"start":7839,"end":7842},{"line":7840,"column":43,"offset":7841},253,18666,{"line":7840,"column":7490,"offset":7843},18693,{"start":7845,"end":7847},{"line":7840,"column":6864,"offset":7846},18664,{"line":7840,"column":7848,"offset":7849},34,18695,{"type":27,"value":7064,"position":7851},{"start":7852,"end":7853},{"line":7840,"column":7848,"offset":7849},{"line":7840,"column":7854,"offset":7855},35,18696,{"type":31,"tagName":107,"properties":7857,"children":7858,"position":7865},{},[7859],{"type":27,"value":7112,"position":7860},{"start":7861,"end":7862},{"line":7840,"column":7854,"offset":7855},{"line":7840,"column":7863,"offset":7864},45,18706,{"start":7866,"end":7867},{"line":7840,"column":7854,"offset":7855},{"line":7840,"column":7863,"offset":7864},{"type":27,"value":7869,"position":7870}," (672, 96 to 2000) is the bars of opened positions the map keeps, in the chart's own bars: 672 is a week at 15m and four weeks at 1h. ",{"start":7871,"end":7872},{"line":7840,"column":7863,"offset":7864},{"line":7840,"column":7873,"offset":7874},179,18840,{"type":31,"tagName":107,"properties":7876,"children":7877,"position":7884},{},[7878],{"type":27,"value":7003,"position":7879},{"start":7880,"end":7881},{"line":7840,"column":7873,"offset":7874},{"line":7840,"column":7882,"offset":7883},197,18858,{"start":7885,"end":7886},{"line":7840,"column":7873,"offset":7874},{"line":7840,"column":7882,"offset":7883},{"type":27,"value":7888,"position":7889}," (0.5, 0 to 2) is the maintenance margin as a percent of the position: a larger margin moves every liquidation price closer to its entry, and a margin as wide as a tier's whole move leaves that tier out.",{"start":7890,"end":7891},{"line":7840,"column":7882,"offset":7883},{"line":7840,"column":7892,"offset":7893},400,19061,{"start":7895,"end":7897},{"line":7840,"column":21,"offset":7896},18662,{"line":7840,"column":7892,"offset":7893},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":7900,"children":7901,"position":7995},{},[7902,7918,7923,7934,7941,7953,7959,7971,7977,7989],{"type":31,"tagName":303,"properties":7903,"children":7904,"position":7913},{},[7905],{"type":27,"value":7906,"position":7907},"A finer or wider map.",{"start":7908,"end":7911},{"line":7909,"column":43,"offset":7910},254,19066,{"line":7909,"column":7061,"offset":7912},19087,{"start":7914,"end":7916},{"line":7909,"column":6864,"offset":7915},19064,{"line":7909,"column":115,"offset":7917},19089,{"type":27,"value":7064,"position":7919},{"start":7920,"end":7921},{"line":7909,"column":115,"offset":7917},{"line":7909,"column":7164,"offset":7922},19090,{"type":31,"tagName":107,"properties":7924,"children":7925,"position":7931},{},[7926],{"type":27,"value":7183,"position":7927},{"start":7928,"end":7929},{"line":7909,"column":7164,"offset":7922},{"line":7909,"column":6873,"offset":7930},19101,{"start":7932,"end":7933},{"line":7909,"column":7164,"offset":7922},{"line":7909,"column":6873,"offset":7930},{"type":27,"value":7935,"position":7936}," (5, 2 to 25) is about how far around the close the map reaches each side; the 128 rows split it on round prices, so a narrower range draws finer rows and a wider one brings the 10x tier into view. ",{"start":7937,"end":7938},{"line":7909,"column":6873,"offset":7930},{"line":7909,"column":7939,"offset":7940},238,19299,{"type":31,"tagName":107,"properties":7942,"children":7943,"position":7950},{},[7944],{"type":27,"value":7945,"position":7946},"rows: 128",{"start":7947,"end":7948},{"line":7909,"column":7939,"offset":7940},{"line":7909,"column":7722,"offset":7949},19310,{"start":7951,"end":7952},{"line":7909,"column":7939,"offset":7940},{"line":7909,"column":7722,"offset":7949},{"type":27,"value":7954,"position":7955}," in ",{"start":7956,"end":7957},{"line":7909,"column":7722,"offset":7949},{"line":7909,"column":7840,"offset":7958},19314,{"type":31,"tagName":107,"properties":7960,"children":7961,"position":7968},{},[7962],{"type":27,"value":176,"position":7963},{"start":7964,"end":7965},{"line":7909,"column":7840,"offset":7958},{"line":7909,"column":7966,"offset":7967},263,19324,{"start":7969,"end":7970},{"line":7909,"column":7840,"offset":7958},{"line":7909,"column":7966,"offset":7967},{"type":27,"value":7972,"position":7973}," is the most a grid holds; a smaller grid needs ",{"start":7974,"end":7975},{"line":7909,"column":7966,"offset":7967},{"line":7909,"column":230,"offset":7976},19372,{"type":31,"tagName":107,"properties":7978,"children":7979,"position":7986},{},[7980],{"type":27,"value":2101,"position":7981},{"start":7982,"end":7983},{"line":7909,"column":230,"offset":7976},{"line":7909,"column":7984,"offset":7985},317,19378,{"start":7987,"end":7988},{"line":7909,"column":230,"offset":7976},{"line":7909,"column":7984,"offset":7985},{"type":27,"value":7990,"position":7991}," changed to match.",{"start":7992,"end":7993},{"line":7909,"column":7984,"offset":7985},{"line":7909,"column":7774,"offset":7994},19396,{"start":7996,"end":7998},{"line":7909,"column":21,"offset":7997},19062,{"line":7909,"column":7774,"offset":7994},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8001,"children":8002,"position":8063},{},[8003,8020,8026,8038,8044,8056],{"type":31,"tagName":303,"properties":8004,"children":8005,"position":8014},{},[8006],{"type":27,"value":8007,"position":8008},"Another crowd.",{"start":8009,"end":8012},{"line":8010,"column":43,"offset":8011},255,19401,{"line":8010,"column":7474,"offset":8013},19415,{"start":8015,"end":8017},{"line":8010,"column":6864,"offset":8016},19399,{"line":8010,"column":8018,"offset":8019},21,19417,{"type":27,"value":8021,"position":8022}," The tier mix, 10x, 25x, 50x and 100x at 40, 30, 20 and 10 percent, is a guess at a perpetual's crowd, named in ",{"start":8023,"end":8024},{"line":8010,"column":8018,"offset":8019},{"line":8010,"column":7549,"offset":8025},19529,{"type":31,"tagName":107,"properties":8027,"children":8028,"position":8035},{},[8029],{"type":27,"value":6964,"position":8030},{"start":8031,"end":8032},{"line":8010,"column":7549,"offset":8025},{"line":8010,"column":8033,"offset":8034},147,19543,{"start":8036,"end":8037},{"line":8010,"column":7549,"offset":8025},{"line":8010,"column":8033,"offset":8034},{"type":27,"value":6934,"position":8039},{"start":8040,"end":8041},{"line":8010,"column":8033,"offset":8034},{"line":8010,"column":8042,"offset":8043},152,19548,{"type":31,"tagName":107,"properties":8045,"children":8046,"position":8053},{},[8047],{"type":27,"value":6983,"position":8048},{"start":8049,"end":8050},{"line":8010,"column":8042,"offset":8043},{"line":8010,"column":8051,"offset":8052},164,19560,{"start":8054,"end":8055},{"line":8010,"column":8042,"offset":8043},{"line":8010,"column":8051,"offset":8052},{"type":27,"value":8057,"position":8058}," at the top of the file. It is the Liquidation Map's mix, so the two estimate the same levels; change both to keep them agreeing.",{"start":8059,"end":8060},{"line":8010,"column":8051,"offset":8052},{"line":8010,"column":8061,"offset":8062},293,19689,{"start":8064,"end":8066},{"line":8010,"column":21,"offset":8065},19397,{"line":8010,"column":8061,"offset":8062},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8069,"children":8070,"position":8149},{},[8071,8087,8093,8105,8110,8123,8130,8142],{"type":31,"tagName":303,"properties":8072,"children":8073,"position":8082},{},[8074],{"type":27,"value":8075,"position":8076},"A fixed scale.",{"start":8077,"end":8080},{"line":8078,"column":43,"offset":8079},256,19694,{"line":8078,"column":7474,"offset":8081},19708,{"start":8083,"end":8085},{"line":8078,"column":6864,"offset":8084},19692,{"line":8078,"column":8018,"offset":8086},19710,{"type":27,"value":8088,"position":8089}," Set ",{"start":8090,"end":8091},{"line":8078,"column":8018,"offset":8086},{"line":8078,"column":7061,"offset":8092},19715,{"type":31,"tagName":107,"properties":8094,"children":8095,"position":8102},{},[8096],{"type":27,"value":8097,"position":8098},"min",{"start":8099,"end":8100},{"line":8078,"column":7061,"offset":8092},{"line":8078,"column":7170,"offset":8101},19720,{"start":8103,"end":8104},{"line":8078,"column":7061,"offset":8092},{"line":8078,"column":7170,"offset":8101},{"type":27,"value":6934,"position":8106},{"start":8107,"end":8108},{"line":8078,"column":7170,"offset":8101},{"line":8078,"column":7537,"offset":8109},19725,{"type":31,"tagName":107,"properties":8111,"children":8112,"position":8120},{},[8113],{"type":27,"value":8114,"position":8115},"max",{"start":8116,"end":8117},{"line":8078,"column":7537,"offset":8109},{"line":8078,"column":8118,"offset":8119},41,19730,{"start":8121,"end":8122},{"line":8078,"column":7537,"offset":8109},{"line":8078,"column":8118,"offset":8119},{"type":27,"value":8124,"position":8125}," on the heatmap to compare days on one scale, or ",{"start":8126,"end":8127},{"line":8078,"column":8118,"offset":8119},{"line":8078,"column":8128,"offset":8129},90,19779,{"type":31,"tagName":107,"properties":8131,"children":8132,"position":8139},{},[8133],{"type":27,"value":2777,"position":8134},{"start":8135,"end":8136},{"line":8078,"column":8128,"offset":8129},{"line":8078,"column":8137,"offset":8138},97,19786,{"start":8140,"end":8141},{"line":8078,"column":8128,"offset":8129},{"line":8078,"column":8137,"offset":8138},{"type":27,"value":8143,"position":8144}," to hide the faintest cells.",{"start":8145,"end":8146},{"line":8078,"column":8137,"offset":8138},{"line":8078,"column":8147,"offset":8148},125,19814,{"start":8150,"end":8152},{"line":8078,"column":21,"offset":8151},19690,{"line":8078,"column":8147,"offset":8148},{"type":27,"value":28},{"start":8155,"end":8156},{"line":7840,"column":21,"offset":7896},{"line":8078,"column":8147,"offset":8148},{"type":27,"value":28},{"type":31,"tagName":355,"properties":8159,"children":8160,"position":8170},{},[8161],{"type":27,"value":8162,"position":8163},"Run it",{"start":8164,"end":8167},{"line":8165,"column":363,"offset":8166},258,19819,{"line":8165,"column":8168,"offset":8169},10,19825,{"start":8171,"end":8173},{"line":8165,"column":21,"offset":8172},19816,{"line":8165,"column":8168,"offset":8169},{"type":27,"value":28},{"type":31,"tagName":8176,"properties":8177,"children":8178,"position":8339},"ol",{},[8179,8180,8264,8265,8302,8303,8338],{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8181,"children":8182,"position":8260},{},[8183,8191,8208,8214,8230,8237,8253],{"type":27,"value":8184,"position":8185},"In the editor's Explorer, press the ",{"start":8186,"end":8189},{"line":8187,"column":363,"offset":8188},260,19830,{"line":8187,"column":6873,"offset":8190},19866,{"type":31,"tagName":303,"properties":8192,"children":8193,"position":8203},{},[8194],{"type":27,"value":8195,"position":8196},"Templates",{"start":8197,"end":8200},{"line":8187,"column":8198,"offset":8199},42,19868,{"line":8187,"column":8201,"offset":8202},51,19877,{"start":8204,"end":8205},{"line":8187,"column":6873,"offset":8190},{"line":8187,"column":8206,"offset":8207},53,19879,{"type":27,"value":8209,"position":8210}," icon (\"Browse starter templates\") and pick ",{"start":8211,"end":8212},{"line":8187,"column":8206,"offset":8207},{"line":8187,"column":8137,"offset":8213},19923,{"type":31,"tagName":303,"properties":8215,"children":8216,"position":8225},{},[8217],{"type":27,"value":8,"position":8218},{"start":8219,"end":8222},{"line":8187,"column":8220,"offset":8221},99,19925,{"line":8187,"column":8223,"offset":8224},118,19944,{"start":8226,"end":8227},{"line":8187,"column":8137,"offset":8213},{"line":8187,"column":8228,"offset":8229},120,19946,{"type":27,"value":8231,"position":8232}," under ",{"start":8233,"end":8234},{"line":8187,"column":8228,"offset":8229},{"line":8187,"column":8235,"offset":8236},127,19953,{"type":31,"tagName":303,"properties":8238,"children":8239,"position":8248},{},[8240],{"type":27,"value":330,"position":8241},{"start":8242,"end":8245},{"line":8187,"column":8243,"offset":8244},129,19955,{"line":8187,"column":8246,"offset":8247},139,19965,{"start":8249,"end":8250},{"line":8187,"column":8235,"offset":8236},{"line":8187,"column":8251,"offset":8252},141,19967,{"type":27,"value":8254,"position":8255},".",{"start":8256,"end":8257},{"line":8187,"column":8251,"offset":8252},{"line":8187,"column":8258,"offset":8259},142,19968,{"start":8261,"end":8263},{"line":8187,"column":21,"offset":8262},19827,{"line":8187,"column":8258,"offset":8259},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8266,"children":8267,"position":8298},{},[8268,8276,8291],{"type":27,"value":8269,"position":8270},"Press ",{"start":8271,"end":8274},{"line":8272,"column":363,"offset":8273},261,19972,{"line":8272,"column":8168,"offset":8275},19978,{"type":31,"tagName":303,"properties":8277,"children":8278,"position":8287},{},[8279],{"type":27,"value":8280,"position":8281},"Run",{"start":8282,"end":8285},{"line":8272,"column":8283,"offset":8284},12,19980,{"line":8272,"column":7322,"offset":8286},19983,{"start":8288,"end":8289},{"line":8272,"column":8168,"offset":8275},{"line":8272,"column":7468,"offset":8290},19985,{"type":27,"value":8292,"position":8293}," on a perpetual with open interest, such as BTCUSDT on Binance Futures at 15m: the map paints behind the candles, bright where opened positions would be liquidated, and each band ends where price swept it. The legend reads \"OI Liquidation Heat estimated, up to 672 bars\".",{"start":8294,"end":8295},{"line":8272,"column":7468,"offset":8290},{"line":8272,"column":8296,"offset":8297},288,20256,{"start":8299,"end":8301},{"line":8272,"column":21,"offset":8300},19969,{"line":8272,"column":8296,"offset":8297},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8304,"children":8305,"position":8334},{},[8306,8314,8327],{"type":27,"value":8307,"position":8308},"Rest the pointer on a cell for the dollars at that price; at the editor's Console prompt, type ",{"start":8309,"end":8312},{"line":8310,"column":363,"offset":8311},262,20260,{"line":8310,"column":8220,"offset":8313},20355,{"type":31,"tagName":107,"properties":8315,"children":8316,"position":8324},{},[8317],{"type":27,"value":8318,"position":8319},"last 20 longs_near",{"start":8320,"end":8321},{"line":8310,"column":8220,"offset":8313},{"line":8310,"column":8322,"offset":8323},119,20375,{"start":8325,"end":8326},{"line":8310,"column":8220,"offset":8313},{"line":8310,"column":8322,"offset":8323},{"type":27,"value":8328,"position":8329}," to read the estimated long liquidations within 5% below the price on the last 20 bars.",{"start":8330,"end":8331},{"line":8310,"column":8322,"offset":8323},{"line":8310,"column":8332,"offset":8333},206,20462,{"start":8335,"end":8337},{"line":8310,"column":21,"offset":8336},20257,{"line":8310,"column":8332,"offset":8333},{"type":27,"value":28},{"start":8340,"end":8341},{"line":8187,"column":21,"offset":8262},{"line":8310,"column":8332,"offset":8333},{"type":27,"value":28},{"type":31,"tagName":355,"properties":8344,"children":8345,"position":8354},{},[8346],{"type":27,"value":8347,"position":8348},"Concepts used",{"start":8349,"end":8352},{"line":8350,"column":363,"offset":8351},264,20467,{"line":8350,"column":7468,"offset":8353},20480,{"start":8355,"end":8357},{"line":8350,"column":21,"offset":8356},20464,{"line":8350,"column":7468,"offset":8353},{"type":27,"value":28},{"type":31,"tagName":7825,"properties":8360,"children":8361,"position":8664},{},[8362,8363,8458,8459,8563,8564,8633,8634,8663],{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8364,"children":8365,"position":8454},{},[8366,8381,8388,8399,8405,8417,8423,8436,8442],{"type":31,"tagName":65,"properties":8367,"children":8368,"position":8376},{"href":234},[8369],{"type":27,"value":237,"position":8370},{"start":8371,"end":8374},{"line":8372,"column":363,"offset":8373},266,20485,{"line":8372,"column":104,"offset":8375},20499,{"start":8377,"end":8379},{"line":8372,"column":6864,"offset":8378},20484,{"line":8372,"column":6880,"offset":8380},20535,{"type":27,"value":8382,"position":8383}," for ",{"start":8384,"end":8385},{"line":8372,"column":6880,"offset":8380},{"line":8372,"column":8386,"offset":8387},59,20540,{"type":31,"tagName":107,"properties":8389,"children":8390,"position":8396},{},[8391],{"type":27,"value":176,"position":8392},{"start":8393,"end":8394},{"line":8372,"column":8386,"offset":8387},{"line":8372,"column":6900,"offset":8395},20550,{"start":8397,"end":8398},{"line":8372,"column":8386,"offset":8387},{"line":8372,"column":6900,"offset":8395},{"type":27,"value":564,"position":8400},{"start":8401,"end":8402},{"line":8372,"column":6900,"offset":8395},{"line":8372,"column":8403,"offset":8404},71,20552,{"type":31,"tagName":107,"properties":8406,"children":8407,"position":8414},{},[8408],{"type":27,"value":216,"position":8409},{"start":8410,"end":8411},{"line":8372,"column":8403,"offset":8404},{"line":8372,"column":8412,"offset":8413},85,20566,{"start":8415,"end":8416},{"line":8372,"column":8403,"offset":8404},{"line":8372,"column":8412,"offset":8413},{"type":27,"value":8418,"position":8419}," over a grid, ",{"start":8420,"end":8421},{"line":8372,"column":8412,"offset":8413},{"line":8372,"column":8220,"offset":8422},20580,{"type":31,"tagName":107,"properties":8424,"children":8425,"position":8433},{},[8426],{"type":27,"value":8427,"position":8428},"price_low",{"start":8429,"end":8430},{"line":8372,"column":8220,"offset":8422},{"line":8372,"column":8431,"offset":8432},110,20591,{"start":8434,"end":8435},{"line":8372,"column":8220,"offset":8422},{"line":8372,"column":8431,"offset":8432},{"type":27,"value":6934,"position":8437},{"start":8438,"end":8439},{"line":8372,"column":8431,"offset":8432},{"line":8372,"column":8440,"offset":8441},115,20596,{"type":31,"tagName":107,"properties":8443,"children":8444,"position":8451},{},[8445],{"type":27,"value":8446,"position":8447},"price_step",{"start":8448,"end":8449},{"line":8372,"column":8440,"offset":8441},{"line":8372,"column":8235,"offset":8450},20608,{"start":8452,"end":8453},{"line":8372,"column":8440,"offset":8441},{"line":8372,"column":8235,"offset":8450},{"start":8455,"end":8457},{"line":8372,"column":21,"offset":8456},20482,{"line":8372,"column":8235,"offset":8450},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8460,"children":8461,"position":8559},{},[8462,8477,8484,8496,8501,8514,8521,8533,8540,8553],{"type":31,"tagName":65,"properties":8463,"children":8464,"position":8472},{"href":149},[8465],{"type":27,"value":152,"position":8466},{"start":8467,"end":8470},{"line":8468,"column":363,"offset":8469},267,20612,{"line":8468,"column":6846,"offset":8471},20624,{"start":8473,"end":8475},{"line":8468,"column":6864,"offset":8474},20611,{"line":8468,"column":8201,"offset":8476},20659,{"type":27,"value":8478,"position":8479}," for the ",{"start":8480,"end":8481},{"line":8468,"column":8201,"offset":8476},{"line":8468,"column":8482,"offset":8483},60,20668,{"type":31,"tagName":107,"properties":8485,"children":8486,"position":8493},{},[8487],{"type":27,"value":7659,"position":8488},{"start":8489,"end":8490},{"line":8468,"column":8482,"offset":8483},{"line":8468,"column":8491,"offset":8492},64,20672,{"start":8494,"end":8495},{"line":8468,"column":8482,"offset":8483},{"line":8468,"column":8491,"offset":8492},{"type":27,"value":6934,"position":8497},{"start":8498,"end":8499},{"line":8468,"column":8491,"offset":8492},{"line":8468,"column":6900,"offset":8500},20677,{"type":31,"tagName":107,"properties":8502,"children":8503,"position":8511},{},[8504],{"type":27,"value":8505,"position":8506},"trades",{"start":8507,"end":8508},{"line":8468,"column":6900,"offset":8500},{"line":8468,"column":8509,"offset":8510},77,20685,{"start":8512,"end":8513},{"line":8468,"column":6900,"offset":8500},{"line":8468,"column":8509,"offset":8510},{"type":27,"value":8515,"position":8516}," sources, ",{"start":8517,"end":8518},{"line":8468,"column":8509,"offset":8510},{"line":8468,"column":8519,"offset":8520},87,20695,{"type":31,"tagName":107,"properties":8522,"children":8523,"position":8530},{},[8524],{"type":27,"value":8525,"position":8526},"side",{"start":8527,"end":8528},{"line":8468,"column":8519,"offset":8520},{"line":8468,"column":155,"offset":8529},20701,{"start":8531,"end":8532},{"line":8468,"column":8519,"offset":8520},{"line":8468,"column":155,"offset":8529},{"type":27,"value":8534,"position":8535}," and the ",{"start":8536,"end":8537},{"line":8468,"column":155,"offset":8529},{"line":8468,"column":8538,"offset":8539},102,20710,{"type":31,"tagName":107,"properties":8541,"children":8542,"position":8550},{},[8543],{"type":27,"value":8544,"position":8545},"missing",{"start":8546,"end":8547},{"line":8468,"column":8538,"offset":8539},{"line":8468,"column":8548,"offset":8549},111,20719,{"start":8551,"end":8552},{"line":8468,"column":8538,"offset":8539},{"line":8468,"column":8548,"offset":8549},{"type":27,"value":8554,"position":8555}," policies",{"start":8556,"end":8557},{"line":8468,"column":8548,"offset":8549},{"line":8468,"column":8228,"offset":8558},20728,{"start":8560,"end":8562},{"line":8468,"column":21,"offset":8561},20609,{"line":8468,"column":8228,"offset":8558},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8565,"children":8566,"position":8629},{},[8567,8583,8589,8602,8609,8622],{"type":31,"tagName":65,"properties":8568,"children":8569,"position":8577},{"href":259},[8570],{"type":27,"value":262,"position":8571},{"start":8572,"end":8575},{"line":8573,"column":363,"offset":8574},268,20732,{"line":8573,"column":7474,"offset":8576},20747,{"start":8578,"end":8580},{"line":8573,"column":6864,"offset":8579},20731,{"line":8573,"column":8581,"offset":8582},56,20784,{"type":27,"value":8382,"position":8584},{"start":8585,"end":8586},{"line":8573,"column":8581,"offset":8582},{"line":8573,"column":8587,"offset":8588},61,20789,{"type":31,"tagName":107,"properties":8590,"children":8591,"position":8599},{},[8592],{"type":27,"value":8593,"position":8594},"handles.label",{"start":8595,"end":8596},{"line":8573,"column":8587,"offset":8588},{"line":8573,"column":8597,"offset":8598},76,20804,{"start":8600,"end":8601},{"line":8573,"column":8587,"offset":8588},{"line":8573,"column":8597,"offset":8598},{"type":27,"value":8603,"position":8604},", the ",{"start":8605,"end":8606},{"line":8573,"column":8597,"offset":8598},{"line":8573,"column":8607,"offset":8608},82,20810,{"type":31,"tagName":107,"properties":8610,"children":8611,"position":8619},{},[8612],{"type":27,"value":8613,"position":8614},"draw.label(id)",{"start":8615,"end":8616},{"line":8573,"column":8607,"offset":8608},{"line":8573,"column":8617,"offset":8618},98,20826,{"start":8620,"end":8621},{"line":8573,"column":8607,"offset":8608},{"line":8573,"column":8617,"offset":8618},{"type":27,"value":8623,"position":8624}," handle and pane anchors",{"start":8625,"end":8626},{"line":8573,"column":8617,"offset":8618},{"line":8573,"column":8627,"offset":8628},122,20850,{"start":8630,"end":8632},{"line":8573,"column":21,"offset":8631},20729,{"line":8573,"column":8627,"offset":8628},{"type":27,"value":28},{"type":31,"tagName":7830,"properties":8635,"children":8636,"position":8659},{},[8637,8653],{"type":31,"tagName":65,"properties":8638,"children":8640,"position":8648},{"href":8639},"../presentation/plotting.md",[8641],{"type":27,"value":8642,"position":8643},"Plotting",{"start":8644,"end":8646},{"line":210,"column":363,"offset":8645},20854,{"line":210,"column":8283,"offset":8647},20862,{"start":8649,"end":8651},{"line":210,"column":6864,"offset":8650},20853,{"line":210,"column":8198,"offset":8652},20892,{"type":27,"value":8654,"position":8655}," for data-only outputs",{"start":8656,"end":8657},{"line":210,"column":8198,"offset":8652},{"line":210,"column":8491,"offset":8658},20914,{"start":8660,"end":8662},{"line":210,"column":21,"offset":8661},20851,{"line":210,"column":8491,"offset":8658},{"type":27,"value":28},{"start":8665,"end":8666},{"line":8372,"column":21,"offset":8456},{"line":210,"column":8491,"offset":8658},{"quirksMode":8668},false,{"start":8670,"end":8671},{"line":21,"column":21,"offset":22},{"line":8672,"column":21,"offset":8673},270,20915,1791265157562]