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