[{"data":1,"prerenderedAt":4378},["ShallowReactive",2],{"wrun-open-editor-url":3,"indicators:cookbook/trend-candles":4},"https://openmarket.xyz/chart/#wrun-open=v1",{"slug":5,"filePath":6,"frontmatter":7,"rawMarkdown":12,"tree":13},"cookbook/trend-candles","cookbook/trend-candles.md",{"title":8,"description":9,"order":10,"section":11},"Trend candles","The chart's own candles tinted by where the close sits against two moving averages. Above both averages the candle turns sky, below both it turns violet…",78,"cookbook","---\ntitle: \"Trend candles\"\ndescription: \"The chart's own candles tinted by where the close sits against two moving averages. Above both averages the candle turns sky, below both it turns violet…\"\norder: 78\nsection: \"cookbook\"\n---\n\n\u003C!-- source: docs/indicators/cookbook/trend-candles.md; generated by packages/cli/scripts/gen-indicator-docs.ts, do not edit -->\n\n# Trend candles\n\n![Candles tinted by two averages with flip dots and bar counter](/wrun/images/trend-candles.png)\n\nThe chart's own candles tinted by where the close sits against two moving averages. Above both averages the candle turns sky, below both it turns violet, between them it keeps the chart's own amber and orange. The two averages are thin lines (fast teal, slow slate). A dot marks each bar where the close crossed from one side of both averages to the other: under the bar for a flip up (sky), over it for a flip down (violet); crossing into the gap between the lines and back to the same side is not a flip. A counter at the top right reads how long the current state has held: \"12 bars up\", \"7 bars down\", \"3 bars between\".\n\nThe parts are `render.barcolor`, the per-bar candle tint gated and coloured by two data-only outputs ([Styling](../presentation/styling.md)), two `shape` outputs for the flip dots, and one label handle anchored to the top-right corner for the counter ([Drawing objects](../presentation/drawing-objects.md)). This is also the `trend-candles` template: the **Trend Candles** card under **On price** in the editor's starter list, and it compiles as written.\n\n## The wrun indicator\n\n```typescript sample=trend-candles\n// Trend Candles: the chart's own candles tinted by where the close sits against two moving averages. Above both,\n// the candle turns sky; below both, violet; between them it keeps the chart's own colours. The two averages are drawn\n// as thin lines (fast teal, slow slate), a dot marks each bar where the trend flipped from one side to the other\n// (under the bar for a flip up, over it for a flip down), and a counter at the top right reads how long the current\n// state has held (\"12 bars up\").\n\nparam.int(\"fast_len\", 21, { min: 2, max: 200, label: \"Fast EMA\", row: \"lengths\", description: \"Fast EMA length in bars\" }); // two whole numbers on one dialog line\nparam.int(\"slow_len\", 50, { min: 2, max: 400, label: \"Slow EMA\", row: \"lengths\", description: \"Slow EMA length in bars\" });\nparam.color(\"up_color\", \"#38bdf8\", { label: \"Up tint\", row: \"tints\" }); // two colour settings on one line: each paints the dot and the candle tint of its side below, by name\nparam.color(\"down_color\", \"#a78bfa\", { label: \"Down tint\", row: \"tints\" });\nconst fastLine = output(\"fast_ema\", line, overlay, { color: \"#2dd4bf\", width: 1, label: \"Fast EMA\", format: \"price\", description: \"EMA of the close over fast_len bars\" }); // the handle names it for the hover card\noutput(\"slow_ema\", line, overlay, { color: \"#94a3b8\", width: 1, label: \"Slow EMA\", format: \"price\", description: \"EMA of the close over slow_len bars\" });\noutput(\"trend\", none, overlay, { description: \"+1 above both averages, -1 below both, 0 between\" });\noutput(\"tinted\", none, overlay, { description: \"1 when the candle is tinted (above or below both averages): the tint's gate\" });\noutput(\"tint\", none, overlay, { description: \"1 above both averages (sky), 0 below both (violet): the tint's colour index\" });\noutput(\"run\", none, overlay, { description: \"Bars the current state has held\" });\noutput(\"flip_up\", shape, overlay, { color: \"@up_color\", description: \"A dot under the bar where the trend turned up\" }); // the up tint setting paints it\noutput(\"flip_down\", shape, overlay, { color: \"@down_color\", description: \"A dot over the bar where the trend turned down\" });\nstring(\"text\", { max_bytes: 24 }); // the counter's one line\nhandles.label({ anchor: \"top_right\", align: \"right\", size: 12 }); // the counter, in pane pixels from the chart's top-right corner\nrender.barcolor(\"trend_tint\", { where: \"tinted\", color_by: \"tint\", colors: [\"@down_color\", \"@up_color\"] }); // the bar's own candle, body and wick, in the two tint settings\nhover(fastLine, [block.value(\"Fast EMA\", \"fast_ema\", { format: \"price\" }), block.rows([[\"Slow EMA\", \"slow_ema\", \"price\"], [\"Trend\", \"trend\", \"int\"], [\"Run\", \"run\", \"int\"]])]); // the card the fast average opens under the cursor\n\nconst SLATE = rgba(148, 163, 184, 255);\nconst counter = draw.label(0);\n\nlet fastLen = 21; // settings, read in onStart()\nlet slowLen = 50;\nlet upInk = rgba(56, 189, 248, 255); // the two tint settings: the counter reads in the side's tint\nlet downInk = rgba(167, 139, 250, 255);\nlet fastEma = new Ema(21); // rebuilt in onStart()\nlet slowEma = new Ema(50);\nlet trend = 0; // +1 above both, -1 below both, 0 between\nlet lastTinted = 0; // the last side the close was on (+1 or -1): a flip is a change of side\nlet run = 0; // bars the current state has held\nlet rangeAvg: f64 = NaN; // a running mean of high - low: the dot's distance from the bar\n\nfunction onStart(): void {\n  fastLen = i32(p_fast_len());\n  slowLen = i32(p_slow_len());\n  fastEma = new Ema(fastLen);\n  slowEma = new Ema(slowLen);\n  upInk = fromPacked(p_up_color());\n  downInk = fromPacked(p_down_color());\n}\n\n// onBar() runs once per bar: feed both averages, place the close against them, count the run, catch a flip;\n// then write the averages, the state and the dots on every bar, and the counter 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 fast = fastEma.update(close);\n  const slow = slowEma.update(close);\n  const range = high - low;\n  rangeAvg = isNaN(rangeAvg) ? range : rangeAvg + (range - rangeAvg) * 0.1;\n  let flipUpY: f64 = NaN; // this bar's dots, NaN when the side held\n  let flipDownY: f64 = NaN;\n  if (isNaN(fast) || isNaN(slow)) return; // warm-up rows draw nothing\n  const next = close > fast && close > slow ? 1 : close \u003C fast && close \u003C slow ? -1 : 0;\n  run = next == trend ? run + 1 : 1;\n  trend = next;\n  if (trend != 0 && trend != lastTinted) { // the close crossed to the other side of both averages\n    if (lastTinted != 0) {\n      if (trend > 0) flipUpY = low - rangeAvg * 0.6;\n      else flipDownY = high + rangeAvg * 0.6;\n    }\n    lastTinted = trend;\n  }\n  out_fast_ema(fast);\n  out_slow_ema(slow);\n  out_trend(f64(trend));\n  out_tinted(trend != 0 ? 1.0 : 0.0);\n  out_tint(trend > 0 ? 1.0 : 0.0);\n  out_run(f64(run));\n  out_flip_up(flipUpY);\n  out_flip_down(flipDownY);\n  if (bar.isLast()) {\n    sb_clear();\n    sb_int(run);\n    sb_text(run == 1 ? \" bar \" : \" bars \");\n    sb_text(trend > 0 ? \"up\" : trend \u003C 0 ? \"down\" : \"between\");\n    counter.set(60, 14).text(str_text_sb).align(ALIGN_RIGHT).color(trend > 0 ? upInk : trend \u003C 0 ? downInk : SLATE); // inward past the price-axis tags, in the side's tint\n  }\n}\n```\n\n## How it works\n\n**Two averages, three states.** `fast_len` (21) and `slow_len` (50) are the EMA lengths; `trend` is +1 while the close sits above both averages, -1 below both, 0 between. It is data-only; the editor's Console prompt reads it after a Run.\n\n**The candle reads two numbers.** `render.barcolor(\"trend_tint\", { where: \"tinted\", color_by: \"tint\", colors: [violet, sky] })` tints the bar's own candle, body and wick: `tinted` (1 above or below both averages) is the gate, `tint` (1 above, 0 below) picks the colour. Between the lines the gate is 0 and the candle keeps the chart's own colours.\n\n**A flip is a change of side.** `flip_up` carries the bar's low on a bar where `trend` went from -1 to +1 (a sky dot under the bar), `flip_down` the bar's high on the way back (a violet dot over it); both are NaN elsewhere. Crossing into the gap and back to the same side is not a flip.\n\n**The counter is a slot.** `run` counts the bars the current state has held; on the live bar it is written through the one bounded slot (\"12 bars up\") to a label anchored at the top-right corner in pixels. It reads in the side's tint: `onStart()` turns the **Up tint** and **Down tint** settings into colours with `fromPacked(p_up_color())` and `fromPacked(p_down_color())`, so a changed tint recolours the candles, the dots and the counter together (slate between the averages).\n\n## Where it runs\n\nEvery market with candles: crypto, stocks, FX and prediction markets. CME markets are the exception: the editor's Run is paused there, and a community indicator cannot read CME data.\n\n## When data is missing\n\nThe first `slow_len` bars are warm-up and draw nothing; a bar without a close keeps the chart's own colours.\n\n## Customize it\n\n- **Other averages.** Swap `Ema` for `Sma` from the TA library; the lengths stay settings.\n- **A one-line filter.** Drop the slow average and the \"between\" state to tint by one line.\n- **Tint the wick only.** `render.barcolor` colours body and wick together; for the body alone, draw the tint as a `render.bgcolor` band instead.\n\n## Run it\n\n1. In the editor's Explorer, press the **Templates** icon (\"Browse starter templates\") and pick **Trend Candles** under **On price**.\n2. Press **Run**: the candles take the tint, and the counter appears at the top right.\n3. At the editor's Console prompt, type `last 20 trend` to read the state of the last 20 bars.\n\n## Concepts used\n\n- [Styling](../presentation/styling.md) for `render.barcolor`, gates and colour ladders\n- [Plotting](../presentation/plotting.md) for `shape` outputs that draw only where they are finite\n- [Drawing objects](../presentation/drawing-objects.md) for the anchored label and the text slot\n",{"type":14,"children":15,"data":4371,"position":4373},"root",[16,26,29,30,51,52,67,68,243,244,262,263,3329,3330,3346,3347,3436,3437,3525,3526,3612,3613,3766,3767,3782,3783,3798,3799,3815,3816,3848,3849,3864,3865,4044,4045,4061,4062,4223,4224,4238,4239],{"type":17,"value":18,"position":19},"comment"," source: docs/indicators/cookbook/trend-candles.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},129,128,{"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/trend-candles.png","Candles tinted by two averages with flip dots and bar counter",[],{"start":42,"end":45},{"line":43,"column":21,"offset":44},5,147,{"line":43,"column":46,"offset":47},97,243,{"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":64},{},[55],{"type":27,"value":56,"position":57},"The chart's own candles tinted by where the close sits against two moving averages. Above both averages the candle turns sky, below both it turns violet, between them it keeps the chart's own amber and orange. The two averages are thin lines (fast teal, slow slate). A dot marks each bar where the close crossed from one side of both averages to the other: under the bar for a flip up (sky), over it for a flip down (violet); crossing into the gap between the lines and back to the same side is not a flip. A counter at the top right reads how long the current state has held: \"12 bars up\", \"7 bars down\", \"3 bars between\".",{"start":58,"end":61},{"line":59,"column":21,"offset":60},7,245,{"line":59,"column":62,"offset":63},624,868,{"start":65,"end":66},{"line":59,"column":21,"offset":60},{"line":59,"column":62,"offset":63},{"type":27,"value":28},{"type":31,"tagName":32,"properties":69,"children":70,"position":240},{},[71,80,94,101,120,126,139,146,164,171,184,191,209,216,233],{"type":27,"value":72,"position":73},"The parts are ",{"start":74,"end":77},{"line":75,"column":21,"offset":76},9,870,{"line":75,"column":78,"offset":79},15,884,{"type":31,"tagName":81,"properties":82,"children":83,"position":91},"code",{},[84],{"type":27,"value":85,"position":86},"render.barcolor",{"start":87,"end":88},{"line":75,"column":78,"offset":79},{"line":75,"column":89,"offset":90},32,901,{"start":92,"end":93},{"line":75,"column":78,"offset":79},{"line":75,"column":89,"offset":90},{"type":27,"value":95,"position":96},", the per-bar candle tint gated and coloured by two data-only outputs (",{"start":97,"end":98},{"line":75,"column":89,"offset":90},{"line":75,"column":99,"offset":100},103,972,{"type":31,"tagName":102,"properties":103,"children":105,"position":115},"a",{"href":104},"../presentation/styling.md",[106],{"type":27,"value":107,"position":108},"Styling",{"start":109,"end":112},{"line":75,"column":110,"offset":111},104,973,{"line":75,"column":113,"offset":114},111,980,{"start":116,"end":117},{"line":75,"column":99,"offset":100},{"line":75,"column":118,"offset":119},140,1009,{"type":27,"value":121,"position":122},"), two ",{"start":123,"end":124},{"line":75,"column":118,"offset":119},{"line":75,"column":44,"offset":125},1016,{"type":31,"tagName":81,"properties":127,"children":128,"position":136},{},[129],{"type":27,"value":130,"position":131},"shape",{"start":132,"end":133},{"line":75,"column":44,"offset":125},{"line":75,"column":134,"offset":135},154,1023,{"start":137,"end":138},{"line":75,"column":44,"offset":125},{"line":75,"column":134,"offset":135},{"type":27,"value":140,"position":141}," outputs for the flip dots, and one label handle anchored to the top-right corner for the counter (",{"start":142,"end":143},{"line":75,"column":134,"offset":135},{"line":75,"column":144,"offset":145},253,1122,{"type":31,"tagName":102,"properties":147,"children":149,"position":159},{"href":148},"../presentation/drawing-objects.md",[150],{"type":27,"value":151,"position":152},"Drawing objects",{"start":153,"end":156},{"line":75,"column":154,"offset":155},254,1123,{"line":75,"column":157,"offset":158},269,1138,{"start":160,"end":161},{"line":75,"column":144,"offset":145},{"line":75,"column":162,"offset":163},306,1175,{"type":27,"value":165,"position":166},"). This is also the ",{"start":167,"end":168},{"line":75,"column":162,"offset":163},{"line":75,"column":169,"offset":170},326,1195,{"type":31,"tagName":81,"properties":172,"children":173,"position":181},{},[174],{"type":27,"value":175,"position":176},"trend-candles",{"start":177,"end":178},{"line":75,"column":169,"offset":170},{"line":75,"column":179,"offset":180},341,1210,{"start":182,"end":183},{"line":75,"column":169,"offset":170},{"line":75,"column":179,"offset":180},{"type":27,"value":185,"position":186}," template: the ",{"start":187,"end":188},{"line":75,"column":179,"offset":180},{"line":75,"column":189,"offset":190},356,1225,{"type":31,"tagName":192,"properties":193,"children":194,"position":204},"strong",{},[195],{"type":27,"value":196,"position":197},"Trend Candles",{"start":198,"end":201},{"line":75,"column":199,"offset":200},358,1227,{"line":75,"column":202,"offset":203},371,1240,{"start":205,"end":206},{"line":75,"column":189,"offset":190},{"line":75,"column":207,"offset":208},373,1242,{"type":27,"value":210,"position":211}," card under ",{"start":212,"end":213},{"line":75,"column":207,"offset":208},{"line":75,"column":214,"offset":215},385,1254,{"type":31,"tagName":192,"properties":217,"children":218,"position":228},{},[219],{"type":27,"value":220,"position":221},"On price",{"start":222,"end":225},{"line":75,"column":223,"offset":224},387,1256,{"line":75,"column":226,"offset":227},395,1264,{"start":229,"end":230},{"line":75,"column":214,"offset":215},{"line":75,"column":231,"offset":232},397,1266,{"type":27,"value":234,"position":235}," in the editor's starter list, and it compiles as written.",{"start":236,"end":237},{"line":75,"column":231,"offset":232},{"line":75,"column":238,"offset":239},455,1324,{"start":241,"end":242},{"line":75,"column":21,"offset":76},{"line":75,"column":238,"offset":239},{"type":27,"value":28},{"type":31,"tagName":245,"properties":246,"children":247,"position":258},"h2",{},[248],{"type":27,"value":249,"position":250},"The wrun indicator",{"start":251,"end":255},{"line":252,"column":253,"offset":254},11,4,1329,{"line":252,"column":256,"offset":257},22,1347,{"start":259,"end":261},{"line":252,"column":21,"offset":260},1326,{"line":252,"column":256,"offset":257},{"type":27,"value":28},{"type":14,"children":264},[265],{"type":31,"tagName":266,"properties":267,"children":271,"data":-1},"pre",{"class":268,"style":269,"tabindex":270,"data-sample":175},"shiki shiki-themes github-dark github-light","--shiki-dark:#e1e4e8;--shiki-light:#24292e;--shiki-dark-bg:#24292e;--shiki-light-bg:#fff","0",[272],{"type":31,"tagName":81,"properties":273,"children":276},{"class":274},[275],"language-typescript",[277,288,289,297,298,306,307,315,316,324,325,328,329,426,427,504,505,563,564,614,615,704,705,768,769,799,800,829,830,859,860,889,890,934,935,973,974,1010,1011,1063,1064,1131,1132,1272,1273,1276,1277,1339,1340,1377,1378,1381,1382,1415,1416,1442,1443,1508,1509,1568,1569,1612,1613,1649,1650,1680,1681,1710,1711,1740,1741,1781,1782,1785,1786,1818,1819,1850,1851,1880,1881,1906,1907,1932,1933,1963,1964,1993,1994,2002,2003,2006,2007,2015,2016,2024,2025,2053,2054,2086,2087,2116,2117,2146,2147,2178,2179,2208,2209,2240,2241,2315,2316,2354,2355,2387,2388,2439,2440,2557,2558,2612,2613,2630,2631,2675,2676,2702,2703,2758,2759,2800,2801,2809,2810,2827,2828,2836,2837,2850,2851,2864,2865,2887,2888,2932,2933,2973,2974,2995,2996,3009,3010,3023,3024,3046,3047,3059,3060,3073,3074,3117,3118,3184,3185,3313,3314,3321,3322],{"type":31,"tagName":278,"properties":279,"children":281},"span",{"class":280},"line",[282],{"type":31,"tagName":278,"properties":283,"children":285},{"style":284},"--shiki-dark:#6A737D;--shiki-light:#6A737D",[286],{"type":27,"value":287},"// Trend Candles: the chart's own candles tinted by where the close sits against two moving averages. Above both,",{"type":27,"value":28},{"type":31,"tagName":278,"properties":290,"children":291},{"class":280},[292],{"type":31,"tagName":278,"properties":293,"children":294},{"style":284},[295],{"type":27,"value":296},"// the candle turns sky; below both, violet; between them it keeps the chart's own colours. The two averages are drawn",{"type":27,"value":28},{"type":31,"tagName":278,"properties":299,"children":300},{"class":280},[301],{"type":31,"tagName":278,"properties":302,"children":303},{"style":284},[304],{"type":27,"value":305},"// as thin lines (fast teal, slow slate), a dot marks each bar where the trend flipped from one side to the other",{"type":27,"value":28},{"type":31,"tagName":278,"properties":308,"children":309},{"class":280},[310],{"type":31,"tagName":278,"properties":311,"children":312},{"style":284},[313],{"type":27,"value":314},"// (under the bar for a flip up, over it for a flip down), and a counter at the top right reads how long the current",{"type":27,"value":28},{"type":31,"tagName":278,"properties":317,"children":318},{"class":280},[319],{"type":31,"tagName":278,"properties":320,"children":321},{"style":284},[322],{"type":27,"value":323},"// state has held (\"12 bars up\").",{"type":27,"value":28},{"type":31,"tagName":278,"properties":326,"children":327},{"class":280},[],{"type":27,"value":28},{"type":31,"tagName":278,"properties":330,"children":331},{"class":280},[332,338,344,349,355,360,366,371,376,381,386,391,396,401,406,411,416,421],{"type":31,"tagName":278,"properties":333,"children":335},{"style":334},"--shiki-dark:#E1E4E8;--shiki-light:#24292E",[336],{"type":27,"value":337},"param.",{"type":31,"tagName":278,"properties":339,"children":341},{"style":340},"--shiki-dark:#B392F0;--shiki-light:#6F42C1",[342],{"type":27,"value":343},"int",{"type":31,"tagName":278,"properties":345,"children":346},{"style":334},[347],{"type":27,"value":348},"(",{"type":31,"tagName":278,"properties":350,"children":352},{"style":351},"--shiki-dark:#9ECBFF;--shiki-light:#032F62",[353],{"type":27,"value":354},"\"fast_len\"",{"type":31,"tagName":278,"properties":356,"children":357},{"style":334},[358],{"type":27,"value":359},", ",{"type":31,"tagName":278,"properties":361,"children":363},{"style":362},"--shiki-dark:#79B8FF;--shiki-light:#005CC5",[364],{"type":27,"value":365},"21",{"type":31,"tagName":278,"properties":367,"children":368},{"style":334},[369],{"type":27,"value":370},", { min: ",{"type":31,"tagName":278,"properties":372,"children":373},{"style":362},[374],{"type":27,"value":375},"2",{"type":31,"tagName":278,"properties":377,"children":378},{"style":334},[379],{"type":27,"value":380},", max: ",{"type":31,"tagName":278,"properties":382,"children":383},{"style":362},[384],{"type":27,"value":385},"200",{"type":31,"tagName":278,"properties":387,"children":388},{"style":334},[389],{"type":27,"value":390},", label: ",{"type":31,"tagName":278,"properties":392,"children":393},{"style":351},[394],{"type":27,"value":395},"\"Fast EMA\"",{"type":31,"tagName":278,"properties":397,"children":398},{"style":334},[399],{"type":27,"value":400},", row: ",{"type":31,"tagName":278,"properties":402,"children":403},{"style":351},[404],{"type":27,"value":405},"\"lengths\"",{"type":31,"tagName":278,"properties":407,"children":408},{"style":334},[409],{"type":27,"value":410},", description: ",{"type":31,"tagName":278,"properties":412,"children":413},{"style":351},[414],{"type":27,"value":415},"\"Fast EMA length in bars\"",{"type":31,"tagName":278,"properties":417,"children":418},{"style":334},[419],{"type":27,"value":420}," }); ",{"type":31,"tagName":278,"properties":422,"children":423},{"style":284},[424],{"type":27,"value":425},"// two whole numbers on one dialog line",{"type":27,"value":28},{"type":31,"tagName":278,"properties":428,"children":429},{"class":280},[430,434,438,442,447,451,456,460,464,468,473,477,482,486,490,494,499],{"type":31,"tagName":278,"properties":431,"children":432},{"style":334},[433],{"type":27,"value":337},{"type":31,"tagName":278,"properties":435,"children":436},{"style":340},[437],{"type":27,"value":343},{"type":31,"tagName":278,"properties":439,"children":440},{"style":334},[441],{"type":27,"value":348},{"type":31,"tagName":278,"properties":443,"children":444},{"style":351},[445],{"type":27,"value":446},"\"slow_len\"",{"type":31,"tagName":278,"properties":448,"children":449},{"style":334},[450],{"type":27,"value":359},{"type":31,"tagName":278,"properties":452,"children":453},{"style":362},[454],{"type":27,"value":455},"50",{"type":31,"tagName":278,"properties":457,"children":458},{"style":334},[459],{"type":27,"value":370},{"type":31,"tagName":278,"properties":461,"children":462},{"style":362},[463],{"type":27,"value":375},{"type":31,"tagName":278,"properties":465,"children":466},{"style":334},[467],{"type":27,"value":380},{"type":31,"tagName":278,"properties":469,"children":470},{"style":362},[471],{"type":27,"value":472},"400",{"type":31,"tagName":278,"properties":474,"children":475},{"style":334},[476],{"type":27,"value":390},{"type":31,"tagName":278,"properties":478,"children":479},{"style":351},[480],{"type":27,"value":481},"\"Slow EMA\"",{"type":31,"tagName":278,"properties":483,"children":484},{"style":334},[485],{"type":27,"value":400},{"type":31,"tagName":278,"properties":487,"children":488},{"style":351},[489],{"type":27,"value":405},{"type":31,"tagName":278,"properties":491,"children":492},{"style":334},[493],{"type":27,"value":410},{"type":31,"tagName":278,"properties":495,"children":496},{"style":351},[497],{"type":27,"value":498},"\"Slow EMA length in bars\"",{"type":31,"tagName":278,"properties":500,"children":501},{"style":334},[502],{"type":27,"value":503}," });",{"type":27,"value":28},{"type":31,"tagName":278,"properties":506,"children":507},{"class":280},[508,512,517,521,526,530,535,540,545,549,554,558],{"type":31,"tagName":278,"properties":509,"children":510},{"style":334},[511],{"type":27,"value":337},{"type":31,"tagName":278,"properties":513,"children":514},{"style":340},[515],{"type":27,"value":516},"color",{"type":31,"tagName":278,"properties":518,"children":519},{"style":334},[520],{"type":27,"value":348},{"type":31,"tagName":278,"properties":522,"children":523},{"style":351},[524],{"type":27,"value":525},"\"up_color\"",{"type":31,"tagName":278,"properties":527,"children":528},{"style":334},[529],{"type":27,"value":359},{"type":31,"tagName":278,"properties":531,"children":532},{"style":351},[533],{"type":27,"value":534},"\"#38bdf8\"",{"type":31,"tagName":278,"properties":536,"children":537},{"style":334},[538],{"type":27,"value":539},", { label: ",{"type":31,"tagName":278,"properties":541,"children":542},{"style":351},[543],{"type":27,"value":544},"\"Up tint\"",{"type":31,"tagName":278,"properties":546,"children":547},{"style":334},[548],{"type":27,"value":400},{"type":31,"tagName":278,"properties":550,"children":551},{"style":351},[552],{"type":27,"value":553},"\"tints\"",{"type":31,"tagName":278,"properties":555,"children":556},{"style":334},[557],{"type":27,"value":420},{"type":31,"tagName":278,"properties":559,"children":560},{"style":284},[561],{"type":27,"value":562},"// two colour settings on one line: each paints the dot and the candle tint of its side below, by name",{"type":27,"value":28},{"type":31,"tagName":278,"properties":565,"children":566},{"class":280},[567,571,575,579,584,588,593,597,602,606,610],{"type":31,"tagName":278,"properties":568,"children":569},{"style":334},[570],{"type":27,"value":337},{"type":31,"tagName":278,"properties":572,"children":573},{"style":340},[574],{"type":27,"value":516},{"type":31,"tagName":278,"properties":576,"children":577},{"style":334},[578],{"type":27,"value":348},{"type":31,"tagName":278,"properties":580,"children":581},{"style":351},[582],{"type":27,"value":583},"\"down_color\"",{"type":31,"tagName":278,"properties":585,"children":586},{"style":334},[587],{"type":27,"value":359},{"type":31,"tagName":278,"properties":589,"children":590},{"style":351},[591],{"type":27,"value":592},"\"#a78bfa\"",{"type":31,"tagName":278,"properties":594,"children":595},{"style":334},[596],{"type":27,"value":539},{"type":31,"tagName":278,"properties":598,"children":599},{"style":351},[600],{"type":27,"value":601},"\"Down tint\"",{"type":31,"tagName":278,"properties":603,"children":604},{"style":334},[605],{"type":27,"value":400},{"type":31,"tagName":278,"properties":607,"children":608},{"style":351},[609],{"type":27,"value":553},{"type":31,"tagName":278,"properties":611,"children":612},{"style":334},[613],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":616,"children":617},{"class":280},[618,624,629,634,639,643,648,653,658,663,668,672,676,681,686,690,695,699],{"type":31,"tagName":278,"properties":619,"children":621},{"style":620},"--shiki-dark:#F97583;--shiki-light:#D73A49",[622],{"type":27,"value":623},"const",{"type":31,"tagName":278,"properties":625,"children":626},{"style":362},[627],{"type":27,"value":628}," fastLine",{"type":31,"tagName":278,"properties":630,"children":631},{"style":620},[632],{"type":27,"value":633}," =",{"type":31,"tagName":278,"properties":635,"children":636},{"style":340},[637],{"type":27,"value":638}," output",{"type":31,"tagName":278,"properties":640,"children":641},{"style":334},[642],{"type":27,"value":348},{"type":31,"tagName":278,"properties":644,"children":645},{"style":351},[646],{"type":27,"value":647},"\"fast_ema\"",{"type":31,"tagName":278,"properties":649,"children":650},{"style":334},[651],{"type":27,"value":652},", line, overlay, { color: ",{"type":31,"tagName":278,"properties":654,"children":655},{"style":351},[656],{"type":27,"value":657},"\"#2dd4bf\"",{"type":31,"tagName":278,"properties":659,"children":660},{"style":334},[661],{"type":27,"value":662},", width: ",{"type":31,"tagName":278,"properties":664,"children":665},{"style":362},[666],{"type":27,"value":667},"1",{"type":31,"tagName":278,"properties":669,"children":670},{"style":334},[671],{"type":27,"value":390},{"type":31,"tagName":278,"properties":673,"children":674},{"style":351},[675],{"type":27,"value":395},{"type":31,"tagName":278,"properties":677,"children":678},{"style":334},[679],{"type":27,"value":680},", format: ",{"type":31,"tagName":278,"properties":682,"children":683},{"style":351},[684],{"type":27,"value":685},"\"price\"",{"type":31,"tagName":278,"properties":687,"children":688},{"style":334},[689],{"type":27,"value":410},{"type":31,"tagName":278,"properties":691,"children":692},{"style":351},[693],{"type":27,"value":694},"\"EMA of the close over fast_len bars\"",{"type":31,"tagName":278,"properties":696,"children":697},{"style":334},[698],{"type":27,"value":420},{"type":31,"tagName":278,"properties":700,"children":701},{"style":284},[702],{"type":27,"value":703},"// the handle names it for the hover card",{"type":27,"value":28},{"type":31,"tagName":278,"properties":706,"children":707},{"class":280},[708,713,717,722,726,731,735,739,743,747,751,755,759,764],{"type":31,"tagName":278,"properties":709,"children":710},{"style":340},[711],{"type":27,"value":712},"output",{"type":31,"tagName":278,"properties":714,"children":715},{"style":334},[716],{"type":27,"value":348},{"type":31,"tagName":278,"properties":718,"children":719},{"style":351},[720],{"type":27,"value":721},"\"slow_ema\"",{"type":31,"tagName":278,"properties":723,"children":724},{"style":334},[725],{"type":27,"value":652},{"type":31,"tagName":278,"properties":727,"children":728},{"style":351},[729],{"type":27,"value":730},"\"#94a3b8\"",{"type":31,"tagName":278,"properties":732,"children":733},{"style":334},[734],{"type":27,"value":662},{"type":31,"tagName":278,"properties":736,"children":737},{"style":362},[738],{"type":27,"value":667},{"type":31,"tagName":278,"properties":740,"children":741},{"style":334},[742],{"type":27,"value":390},{"type":31,"tagName":278,"properties":744,"children":745},{"style":351},[746],{"type":27,"value":481},{"type":31,"tagName":278,"properties":748,"children":749},{"style":334},[750],{"type":27,"value":680},{"type":31,"tagName":278,"properties":752,"children":753},{"style":351},[754],{"type":27,"value":685},{"type":31,"tagName":278,"properties":756,"children":757},{"style":334},[758],{"type":27,"value":410},{"type":31,"tagName":278,"properties":760,"children":761},{"style":351},[762],{"type":27,"value":763},"\"EMA of the close over slow_len bars\"",{"type":31,"tagName":278,"properties":765,"children":766},{"style":334},[767],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":770,"children":771},{"class":280},[772,776,780,785,790,795],{"type":31,"tagName":278,"properties":773,"children":774},{"style":340},[775],{"type":27,"value":712},{"type":31,"tagName":278,"properties":777,"children":778},{"style":334},[779],{"type":27,"value":348},{"type":31,"tagName":278,"properties":781,"children":782},{"style":351},[783],{"type":27,"value":784},"\"trend\"",{"type":31,"tagName":278,"properties":786,"children":787},{"style":334},[788],{"type":27,"value":789},", none, overlay, { description: ",{"type":31,"tagName":278,"properties":791,"children":792},{"style":351},[793],{"type":27,"value":794},"\"+1 above both averages, -1 below both, 0 between\"",{"type":31,"tagName":278,"properties":796,"children":797},{"style":334},[798],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":801,"children":802},{"class":280},[803,807,811,816,820,825],{"type":31,"tagName":278,"properties":804,"children":805},{"style":340},[806],{"type":27,"value":712},{"type":31,"tagName":278,"properties":808,"children":809},{"style":334},[810],{"type":27,"value":348},{"type":31,"tagName":278,"properties":812,"children":813},{"style":351},[814],{"type":27,"value":815},"\"tinted\"",{"type":31,"tagName":278,"properties":817,"children":818},{"style":334},[819],{"type":27,"value":789},{"type":31,"tagName":278,"properties":821,"children":822},{"style":351},[823],{"type":27,"value":824},"\"1 when the candle is tinted (above or below both averages): the tint's gate\"",{"type":31,"tagName":278,"properties":826,"children":827},{"style":334},[828],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":831,"children":832},{"class":280},[833,837,841,846,850,855],{"type":31,"tagName":278,"properties":834,"children":835},{"style":340},[836],{"type":27,"value":712},{"type":31,"tagName":278,"properties":838,"children":839},{"style":334},[840],{"type":27,"value":348},{"type":31,"tagName":278,"properties":842,"children":843},{"style":351},[844],{"type":27,"value":845},"\"tint\"",{"type":31,"tagName":278,"properties":847,"children":848},{"style":334},[849],{"type":27,"value":789},{"type":31,"tagName":278,"properties":851,"children":852},{"style":351},[853],{"type":27,"value":854},"\"1 above both averages (sky), 0 below both (violet): the tint's colour index\"",{"type":31,"tagName":278,"properties":856,"children":857},{"style":334},[858],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":861,"children":862},{"class":280},[863,867,871,876,880,885],{"type":31,"tagName":278,"properties":864,"children":865},{"style":340},[866],{"type":27,"value":712},{"type":31,"tagName":278,"properties":868,"children":869},{"style":334},[870],{"type":27,"value":348},{"type":31,"tagName":278,"properties":872,"children":873},{"style":351},[874],{"type":27,"value":875},"\"run\"",{"type":31,"tagName":278,"properties":877,"children":878},{"style":334},[879],{"type":27,"value":789},{"type":31,"tagName":278,"properties":881,"children":882},{"style":351},[883],{"type":27,"value":884},"\"Bars the current state has held\"",{"type":31,"tagName":278,"properties":886,"children":887},{"style":334},[888],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":891,"children":892},{"class":280},[893,897,901,906,911,916,920,925,929],{"type":31,"tagName":278,"properties":894,"children":895},{"style":340},[896],{"type":27,"value":712},{"type":31,"tagName":278,"properties":898,"children":899},{"style":334},[900],{"type":27,"value":348},{"type":31,"tagName":278,"properties":902,"children":903},{"style":351},[904],{"type":27,"value":905},"\"flip_up\"",{"type":31,"tagName":278,"properties":907,"children":908},{"style":334},[909],{"type":27,"value":910},", shape, overlay, { color: ",{"type":31,"tagName":278,"properties":912,"children":913},{"style":351},[914],{"type":27,"value":915},"\"@up_color\"",{"type":31,"tagName":278,"properties":917,"children":918},{"style":334},[919],{"type":27,"value":410},{"type":31,"tagName":278,"properties":921,"children":922},{"style":351},[923],{"type":27,"value":924},"\"A dot under the bar where the trend turned up\"",{"type":31,"tagName":278,"properties":926,"children":927},{"style":334},[928],{"type":27,"value":420},{"type":31,"tagName":278,"properties":930,"children":931},{"style":284},[932],{"type":27,"value":933},"// the up tint setting paints it",{"type":27,"value":28},{"type":31,"tagName":278,"properties":936,"children":937},{"class":280},[938,942,946,951,955,960,964,969],{"type":31,"tagName":278,"properties":939,"children":940},{"style":340},[941],{"type":27,"value":712},{"type":31,"tagName":278,"properties":943,"children":944},{"style":334},[945],{"type":27,"value":348},{"type":31,"tagName":278,"properties":947,"children":948},{"style":351},[949],{"type":27,"value":950},"\"flip_down\"",{"type":31,"tagName":278,"properties":952,"children":953},{"style":334},[954],{"type":27,"value":910},{"type":31,"tagName":278,"properties":956,"children":957},{"style":351},[958],{"type":27,"value":959},"\"@down_color\"",{"type":31,"tagName":278,"properties":961,"children":962},{"style":334},[963],{"type":27,"value":410},{"type":31,"tagName":278,"properties":965,"children":966},{"style":351},[967],{"type":27,"value":968},"\"A dot over the bar where the trend turned down\"",{"type":31,"tagName":278,"properties":970,"children":971},{"style":334},[972],{"type":27,"value":503},{"type":27,"value":28},{"type":31,"tagName":278,"properties":975,"children":976},{"class":280},[977,982,986,991,996,1001,1005],{"type":31,"tagName":278,"properties":978,"children":979},{"style":340},[980],{"type":27,"value":981},"string",{"type":31,"tagName":278,"properties":983,"children":984},{"style":334},[985],{"type":27,"value":348},{"type":31,"tagName":278,"properties":987,"children":988},{"style":351},[989],{"type":27,"value":990},"\"text\"",{"type":31,"tagName":278,"properties":992,"children":993},{"style":334},[994],{"type":27,"value":995},", { max_bytes: ",{"type":31,"tagName":278,"properties":997,"children":998},{"style":362},[999],{"type":27,"value":1000},"24",{"type":31,"tagName":278,"properties":1002,"children":1003},{"style":334},[1004],{"type":27,"value":420},{"type":31,"tagName":278,"properties":1006,"children":1007},{"style":284},[1008],{"type":27,"value":1009},"// the counter's one line",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1012,"children":1013},{"class":280},[1014,1019,1024,1029,1034,1039,1044,1049,1054,1058],{"type":31,"tagName":278,"properties":1015,"children":1016},{"style":334},[1017],{"type":27,"value":1018},"handles.",{"type":31,"tagName":278,"properties":1020,"children":1021},{"style":340},[1022],{"type":27,"value":1023},"label",{"type":31,"tagName":278,"properties":1025,"children":1026},{"style":334},[1027],{"type":27,"value":1028},"({ anchor: ",{"type":31,"tagName":278,"properties":1030,"children":1031},{"style":351},[1032],{"type":27,"value":1033},"\"top_right\"",{"type":31,"tagName":278,"properties":1035,"children":1036},{"style":334},[1037],{"type":27,"value":1038},", align: ",{"type":31,"tagName":278,"properties":1040,"children":1041},{"style":351},[1042],{"type":27,"value":1043},"\"right\"",{"type":31,"tagName":278,"properties":1045,"children":1046},{"style":334},[1047],{"type":27,"value":1048},", size: ",{"type":31,"tagName":278,"properties":1050,"children":1051},{"style":362},[1052],{"type":27,"value":1053},"12",{"type":31,"tagName":278,"properties":1055,"children":1056},{"style":334},[1057],{"type":27,"value":420},{"type":31,"tagName":278,"properties":1059,"children":1060},{"style":284},[1061],{"type":27,"value":1062},"// the counter, in pane pixels from the chart's top-right corner",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1065,"children":1066},{"class":280},[1067,1072,1077,1081,1086,1091,1095,1100,1104,1109,1113,1117,1121,1126],{"type":31,"tagName":278,"properties":1068,"children":1069},{"style":334},[1070],{"type":27,"value":1071},"render.",{"type":31,"tagName":278,"properties":1073,"children":1074},{"style":340},[1075],{"type":27,"value":1076},"barcolor",{"type":31,"tagName":278,"properties":1078,"children":1079},{"style":334},[1080],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1082,"children":1083},{"style":351},[1084],{"type":27,"value":1085},"\"trend_tint\"",{"type":31,"tagName":278,"properties":1087,"children":1088},{"style":334},[1089],{"type":27,"value":1090},", { where: ",{"type":31,"tagName":278,"properties":1092,"children":1093},{"style":351},[1094],{"type":27,"value":815},{"type":31,"tagName":278,"properties":1096,"children":1097},{"style":334},[1098],{"type":27,"value":1099},", color_by: ",{"type":31,"tagName":278,"properties":1101,"children":1102},{"style":351},[1103],{"type":27,"value":845},{"type":31,"tagName":278,"properties":1105,"children":1106},{"style":334},[1107],{"type":27,"value":1108},", colors: [",{"type":31,"tagName":278,"properties":1110,"children":1111},{"style":351},[1112],{"type":27,"value":959},{"type":31,"tagName":278,"properties":1114,"children":1115},{"style":334},[1116],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1118,"children":1119},{"style":351},[1120],{"type":27,"value":915},{"type":31,"tagName":278,"properties":1122,"children":1123},{"style":334},[1124],{"type":27,"value":1125},"] }); ",{"type":31,"tagName":278,"properties":1127,"children":1128},{"style":284},[1129],{"type":27,"value":1130},"// the bar's own candle, body and wick, in the two tint settings",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1133,"children":1134},{"class":280},[1135,1140,1145,1150,1154,1158,1162,1166,1171,1175,1180,1185,1190,1194,1198,1202,1206,1210,1215,1220,1224,1228,1232,1237,1241,1246,1250,1254,1258,1262,1267],{"type":31,"tagName":278,"properties":1136,"children":1137},{"style":340},[1138],{"type":27,"value":1139},"hover",{"type":31,"tagName":278,"properties":1141,"children":1142},{"style":334},[1143],{"type":27,"value":1144},"(fastLine, [block.",{"type":31,"tagName":278,"properties":1146,"children":1147},{"style":340},[1148],{"type":27,"value":1149},"value",{"type":31,"tagName":278,"properties":1151,"children":1152},{"style":334},[1153],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1155,"children":1156},{"style":351},[1157],{"type":27,"value":395},{"type":31,"tagName":278,"properties":1159,"children":1160},{"style":334},[1161],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1163,"children":1164},{"style":351},[1165],{"type":27,"value":647},{"type":31,"tagName":278,"properties":1167,"children":1168},{"style":334},[1169],{"type":27,"value":1170},", { format: ",{"type":31,"tagName":278,"properties":1172,"children":1173},{"style":351},[1174],{"type":27,"value":685},{"type":31,"tagName":278,"properties":1176,"children":1177},{"style":334},[1178],{"type":27,"value":1179}," }), block.",{"type":31,"tagName":278,"properties":1181,"children":1182},{"style":340},[1183],{"type":27,"value":1184},"rows",{"type":31,"tagName":278,"properties":1186,"children":1187},{"style":334},[1188],{"type":27,"value":1189},"([[",{"type":31,"tagName":278,"properties":1191,"children":1192},{"style":351},[1193],{"type":27,"value":481},{"type":31,"tagName":278,"properties":1195,"children":1196},{"style":334},[1197],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1199,"children":1200},{"style":351},[1201],{"type":27,"value":721},{"type":31,"tagName":278,"properties":1203,"children":1204},{"style":334},[1205],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1207,"children":1208},{"style":351},[1209],{"type":27,"value":685},{"type":31,"tagName":278,"properties":1211,"children":1212},{"style":334},[1213],{"type":27,"value":1214},"], [",{"type":31,"tagName":278,"properties":1216,"children":1217},{"style":351},[1218],{"type":27,"value":1219},"\"Trend\"",{"type":31,"tagName":278,"properties":1221,"children":1222},{"style":334},[1223],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1225,"children":1226},{"style":351},[1227],{"type":27,"value":784},{"type":31,"tagName":278,"properties":1229,"children":1230},{"style":334},[1231],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1233,"children":1234},{"style":351},[1235],{"type":27,"value":1236},"\"int\"",{"type":31,"tagName":278,"properties":1238,"children":1239},{"style":334},[1240],{"type":27,"value":1214},{"type":31,"tagName":278,"properties":1242,"children":1243},{"style":351},[1244],{"type":27,"value":1245},"\"Run\"",{"type":31,"tagName":278,"properties":1247,"children":1248},{"style":334},[1249],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1251,"children":1252},{"style":351},[1253],{"type":27,"value":875},{"type":31,"tagName":278,"properties":1255,"children":1256},{"style":334},[1257],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1259,"children":1260},{"style":351},[1261],{"type":27,"value":1236},{"type":31,"tagName":278,"properties":1263,"children":1264},{"style":334},[1265],{"type":27,"value":1266},"]])]); ",{"type":31,"tagName":278,"properties":1268,"children":1269},{"style":284},[1270],{"type":27,"value":1271},"// the card the fast average opens under the cursor",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1274,"children":1275},{"class":280},[],{"type":27,"value":28},{"type":31,"tagName":278,"properties":1278,"children":1279},{"class":280},[1280,1284,1289,1293,1298,1302,1307,1311,1316,1320,1325,1329,1334],{"type":31,"tagName":278,"properties":1281,"children":1282},{"style":620},[1283],{"type":27,"value":623},{"type":31,"tagName":278,"properties":1285,"children":1286},{"style":362},[1287],{"type":27,"value":1288}," SLATE",{"type":31,"tagName":278,"properties":1290,"children":1291},{"style":620},[1292],{"type":27,"value":633},{"type":31,"tagName":278,"properties":1294,"children":1295},{"style":340},[1296],{"type":27,"value":1297}," rgba",{"type":31,"tagName":278,"properties":1299,"children":1300},{"style":334},[1301],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1303,"children":1304},{"style":362},[1305],{"type":27,"value":1306},"148",{"type":31,"tagName":278,"properties":1308,"children":1309},{"style":334},[1310],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1312,"children":1313},{"style":362},[1314],{"type":27,"value":1315},"163",{"type":31,"tagName":278,"properties":1317,"children":1318},{"style":334},[1319],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1321,"children":1322},{"style":362},[1323],{"type":27,"value":1324},"184",{"type":31,"tagName":278,"properties":1326,"children":1327},{"style":334},[1328],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1330,"children":1331},{"style":362},[1332],{"type":27,"value":1333},"255",{"type":31,"tagName":278,"properties":1335,"children":1336},{"style":334},[1337],{"type":27,"value":1338},");",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1341,"children":1342},{"class":280},[1343,1347,1352,1356,1361,1365,1369,1373],{"type":31,"tagName":278,"properties":1344,"children":1345},{"style":620},[1346],{"type":27,"value":623},{"type":31,"tagName":278,"properties":1348,"children":1349},{"style":362},[1350],{"type":27,"value":1351}," counter",{"type":31,"tagName":278,"properties":1353,"children":1354},{"style":620},[1355],{"type":27,"value":633},{"type":31,"tagName":278,"properties":1357,"children":1358},{"style":334},[1359],{"type":27,"value":1360}," draw.",{"type":31,"tagName":278,"properties":1362,"children":1363},{"style":340},[1364],{"type":27,"value":1023},{"type":31,"tagName":278,"properties":1366,"children":1367},{"style":334},[1368],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1370,"children":1371},{"style":362},[1372],{"type":27,"value":270},{"type":31,"tagName":278,"properties":1374,"children":1375},{"style":334},[1376],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1379,"children":1380},{"class":280},[],{"type":27,"value":28},{"type":31,"tagName":278,"properties":1383,"children":1384},{"class":280},[1385,1390,1395,1400,1405,1410],{"type":31,"tagName":278,"properties":1386,"children":1387},{"style":620},[1388],{"type":27,"value":1389},"let",{"type":31,"tagName":278,"properties":1391,"children":1392},{"style":334},[1393],{"type":27,"value":1394}," fastLen ",{"type":31,"tagName":278,"properties":1396,"children":1397},{"style":620},[1398],{"type":27,"value":1399},"=",{"type":31,"tagName":278,"properties":1401,"children":1402},{"style":362},[1403],{"type":27,"value":1404}," 21",{"type":31,"tagName":278,"properties":1406,"children":1407},{"style":334},[1408],{"type":27,"value":1409},"; ",{"type":31,"tagName":278,"properties":1411,"children":1412},{"style":284},[1413],{"type":27,"value":1414},"// settings, read in onStart()",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1417,"children":1418},{"class":280},[1419,1423,1428,1432,1437],{"type":31,"tagName":278,"properties":1420,"children":1421},{"style":620},[1422],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1424,"children":1425},{"style":334},[1426],{"type":27,"value":1427}," slowLen ",{"type":31,"tagName":278,"properties":1429,"children":1430},{"style":620},[1431],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1433,"children":1434},{"style":362},[1435],{"type":27,"value":1436}," 50",{"type":31,"tagName":278,"properties":1438,"children":1439},{"style":334},[1440],{"type":27,"value":1441},";",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1444,"children":1445},{"class":280},[1446,1450,1455,1459,1463,1467,1472,1476,1481,1485,1490,1494,1498,1503],{"type":31,"tagName":278,"properties":1447,"children":1448},{"style":620},[1449],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1451,"children":1452},{"style":334},[1453],{"type":27,"value":1454}," upInk ",{"type":31,"tagName":278,"properties":1456,"children":1457},{"style":620},[1458],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1460,"children":1461},{"style":340},[1462],{"type":27,"value":1297},{"type":31,"tagName":278,"properties":1464,"children":1465},{"style":334},[1466],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1468,"children":1469},{"style":362},[1470],{"type":27,"value":1471},"56",{"type":31,"tagName":278,"properties":1473,"children":1474},{"style":334},[1475],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1477,"children":1478},{"style":362},[1479],{"type":27,"value":1480},"189",{"type":31,"tagName":278,"properties":1482,"children":1483},{"style":334},[1484],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1486,"children":1487},{"style":362},[1488],{"type":27,"value":1489},"248",{"type":31,"tagName":278,"properties":1491,"children":1492},{"style":334},[1493],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1495,"children":1496},{"style":362},[1497],{"type":27,"value":1333},{"type":31,"tagName":278,"properties":1499,"children":1500},{"style":334},[1501],{"type":27,"value":1502},"); ",{"type":31,"tagName":278,"properties":1504,"children":1505},{"style":284},[1506],{"type":27,"value":1507},"// the two tint settings: the counter reads in the side's tint",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1510,"children":1511},{"class":280},[1512,1516,1521,1525,1529,1533,1538,1542,1547,1551,1556,1560,1564],{"type":31,"tagName":278,"properties":1513,"children":1514},{"style":620},[1515],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1517,"children":1518},{"style":334},[1519],{"type":27,"value":1520}," downInk ",{"type":31,"tagName":278,"properties":1522,"children":1523},{"style":620},[1524],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1526,"children":1527},{"style":340},[1528],{"type":27,"value":1297},{"type":31,"tagName":278,"properties":1530,"children":1531},{"style":334},[1532],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1534,"children":1535},{"style":362},[1536],{"type":27,"value":1537},"167",{"type":31,"tagName":278,"properties":1539,"children":1540},{"style":334},[1541],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1543,"children":1544},{"style":362},[1545],{"type":27,"value":1546},"139",{"type":31,"tagName":278,"properties":1548,"children":1549},{"style":334},[1550],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1552,"children":1553},{"style":362},[1554],{"type":27,"value":1555},"250",{"type":31,"tagName":278,"properties":1557,"children":1558},{"style":334},[1559],{"type":27,"value":359},{"type":31,"tagName":278,"properties":1561,"children":1562},{"style":362},[1563],{"type":27,"value":1333},{"type":31,"tagName":278,"properties":1565,"children":1566},{"style":334},[1567],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1570,"children":1571},{"class":280},[1572,1576,1581,1585,1590,1595,1599,1603,1607],{"type":31,"tagName":278,"properties":1573,"children":1574},{"style":620},[1575],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1577,"children":1578},{"style":334},[1579],{"type":27,"value":1580}," fastEma ",{"type":31,"tagName":278,"properties":1582,"children":1583},{"style":620},[1584],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1586,"children":1587},{"style":620},[1588],{"type":27,"value":1589}," new",{"type":31,"tagName":278,"properties":1591,"children":1592},{"style":340},[1593],{"type":27,"value":1594}," Ema",{"type":31,"tagName":278,"properties":1596,"children":1597},{"style":334},[1598],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1600,"children":1601},{"style":362},[1602],{"type":27,"value":365},{"type":31,"tagName":278,"properties":1604,"children":1605},{"style":334},[1606],{"type":27,"value":1502},{"type":31,"tagName":278,"properties":1608,"children":1609},{"style":284},[1610],{"type":27,"value":1611},"// rebuilt in onStart()",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1614,"children":1615},{"class":280},[1616,1620,1625,1629,1633,1637,1641,1645],{"type":31,"tagName":278,"properties":1617,"children":1618},{"style":620},[1619],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1621,"children":1622},{"style":334},[1623],{"type":27,"value":1624}," slowEma ",{"type":31,"tagName":278,"properties":1626,"children":1627},{"style":620},[1628],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1630,"children":1631},{"style":620},[1632],{"type":27,"value":1589},{"type":31,"tagName":278,"properties":1634,"children":1635},{"style":340},[1636],{"type":27,"value":1594},{"type":31,"tagName":278,"properties":1638,"children":1639},{"style":334},[1640],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1642,"children":1643},{"style":362},[1644],{"type":27,"value":455},{"type":31,"tagName":278,"properties":1646,"children":1647},{"style":334},[1648],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1651,"children":1652},{"class":280},[1653,1657,1662,1666,1671,1675],{"type":31,"tagName":278,"properties":1654,"children":1655},{"style":620},[1656],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1658,"children":1659},{"style":334},[1660],{"type":27,"value":1661}," trend ",{"type":31,"tagName":278,"properties":1663,"children":1664},{"style":620},[1665],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1667,"children":1668},{"style":362},[1669],{"type":27,"value":1670}," 0",{"type":31,"tagName":278,"properties":1672,"children":1673},{"style":334},[1674],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":1676,"children":1677},{"style":284},[1678],{"type":27,"value":1679},"// +1 above both, -1 below both, 0 between",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1682,"children":1683},{"class":280},[1684,1688,1693,1697,1701,1705],{"type":31,"tagName":278,"properties":1685,"children":1686},{"style":620},[1687],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1689,"children":1690},{"style":334},[1691],{"type":27,"value":1692}," lastTinted ",{"type":31,"tagName":278,"properties":1694,"children":1695},{"style":620},[1696],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1698,"children":1699},{"style":362},[1700],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":1702,"children":1703},{"style":334},[1704],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":1706,"children":1707},{"style":284},[1708],{"type":27,"value":1709},"// the last side the close was on (+1 or -1): a flip is a change of side",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1712,"children":1713},{"class":280},[1714,1718,1723,1727,1731,1735],{"type":31,"tagName":278,"properties":1715,"children":1716},{"style":620},[1717],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1719,"children":1720},{"style":334},[1721],{"type":27,"value":1722}," run ",{"type":31,"tagName":278,"properties":1724,"children":1725},{"style":620},[1726],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1728,"children":1729},{"style":362},[1730],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":1732,"children":1733},{"style":334},[1734],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":1736,"children":1737},{"style":284},[1738],{"type":27,"value":1739},"// bars the current state has held",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1742,"children":1743},{"class":280},[1744,1748,1753,1758,1763,1767,1772,1776],{"type":31,"tagName":278,"properties":1745,"children":1746},{"style":620},[1747],{"type":27,"value":1389},{"type":31,"tagName":278,"properties":1749,"children":1750},{"style":334},[1751],{"type":27,"value":1752}," rangeAvg",{"type":31,"tagName":278,"properties":1754,"children":1755},{"style":620},[1756],{"type":27,"value":1757},":",{"type":31,"tagName":278,"properties":1759,"children":1760},{"style":340},[1761],{"type":27,"value":1762}," f64",{"type":31,"tagName":278,"properties":1764,"children":1765},{"style":620},[1766],{"type":27,"value":633},{"type":31,"tagName":278,"properties":1768,"children":1769},{"style":362},[1770],{"type":27,"value":1771}," NaN",{"type":31,"tagName":278,"properties":1773,"children":1774},{"style":334},[1775],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":1777,"children":1778},{"style":284},[1779],{"type":27,"value":1780},"// a running mean of high - low: the dot's distance from the bar",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1783,"children":1784},{"class":280},[],{"type":27,"value":28},{"type":31,"tagName":278,"properties":1787,"children":1788},{"class":280},[1789,1794,1799,1804,1808,1813],{"type":31,"tagName":278,"properties":1790,"children":1791},{"style":620},[1792],{"type":27,"value":1793},"function",{"type":31,"tagName":278,"properties":1795,"children":1796},{"style":340},[1797],{"type":27,"value":1798}," onStart",{"type":31,"tagName":278,"properties":1800,"children":1801},{"style":334},[1802],{"type":27,"value":1803},"()",{"type":31,"tagName":278,"properties":1805,"children":1806},{"style":620},[1807],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":1809,"children":1810},{"style":362},[1811],{"type":27,"value":1812}," void",{"type":31,"tagName":278,"properties":1814,"children":1815},{"style":334},[1816],{"type":27,"value":1817}," {",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1820,"children":1821},{"class":280},[1822,1827,1831,1836,1840,1845],{"type":31,"tagName":278,"properties":1823,"children":1824},{"style":334},[1825],{"type":27,"value":1826},"  fastLen ",{"type":31,"tagName":278,"properties":1828,"children":1829},{"style":620},[1830],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1832,"children":1833},{"style":340},[1834],{"type":27,"value":1835}," i32",{"type":31,"tagName":278,"properties":1837,"children":1838},{"style":334},[1839],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1841,"children":1842},{"style":340},[1843],{"type":27,"value":1844},"p_fast_len",{"type":31,"tagName":278,"properties":1846,"children":1847},{"style":334},[1848],{"type":27,"value":1849},"());",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1852,"children":1853},{"class":280},[1854,1859,1863,1867,1871,1876],{"type":31,"tagName":278,"properties":1855,"children":1856},{"style":334},[1857],{"type":27,"value":1858},"  slowLen ",{"type":31,"tagName":278,"properties":1860,"children":1861},{"style":620},[1862],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1864,"children":1865},{"style":340},[1866],{"type":27,"value":1835},{"type":31,"tagName":278,"properties":1868,"children":1869},{"style":334},[1870],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1872,"children":1873},{"style":340},[1874],{"type":27,"value":1875},"p_slow_len",{"type":31,"tagName":278,"properties":1877,"children":1878},{"style":334},[1879],{"type":27,"value":1849},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1882,"children":1883},{"class":280},[1884,1889,1893,1897,1901],{"type":31,"tagName":278,"properties":1885,"children":1886},{"style":334},[1887],{"type":27,"value":1888},"  fastEma ",{"type":31,"tagName":278,"properties":1890,"children":1891},{"style":620},[1892],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1894,"children":1895},{"style":620},[1896],{"type":27,"value":1589},{"type":31,"tagName":278,"properties":1898,"children":1899},{"style":340},[1900],{"type":27,"value":1594},{"type":31,"tagName":278,"properties":1902,"children":1903},{"style":334},[1904],{"type":27,"value":1905},"(fastLen);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1908,"children":1909},{"class":280},[1910,1915,1919,1923,1927],{"type":31,"tagName":278,"properties":1911,"children":1912},{"style":334},[1913],{"type":27,"value":1914},"  slowEma ",{"type":31,"tagName":278,"properties":1916,"children":1917},{"style":620},[1918],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1920,"children":1921},{"style":620},[1922],{"type":27,"value":1589},{"type":31,"tagName":278,"properties":1924,"children":1925},{"style":340},[1926],{"type":27,"value":1594},{"type":31,"tagName":278,"properties":1928,"children":1929},{"style":334},[1930],{"type":27,"value":1931},"(slowLen);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":1934,"children":1935},{"class":280},[1936,1941,1945,1950,1954,1959],{"type":31,"tagName":278,"properties":1937,"children":1938},{"style":334},[1939],{"type":27,"value":1940},"  upInk ",{"type":31,"tagName":278,"properties":1942,"children":1943},{"style":620},[1944],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1946,"children":1947},{"style":340},[1948],{"type":27,"value":1949}," fromPacked",{"type":31,"tagName":278,"properties":1951,"children":1952},{"style":334},[1953],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1955,"children":1956},{"style":340},[1957],{"type":27,"value":1958},"p_up_color",{"type":31,"tagName":278,"properties":1960,"children":1961},{"style":334},[1962],{"type":27,"value":1849},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1965,"children":1966},{"class":280},[1967,1972,1976,1980,1984,1989],{"type":31,"tagName":278,"properties":1968,"children":1969},{"style":334},[1970],{"type":27,"value":1971},"  downInk ",{"type":31,"tagName":278,"properties":1973,"children":1974},{"style":620},[1975],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":1977,"children":1978},{"style":340},[1979],{"type":27,"value":1949},{"type":31,"tagName":278,"properties":1981,"children":1982},{"style":334},[1983],{"type":27,"value":348},{"type":31,"tagName":278,"properties":1985,"children":1986},{"style":340},[1987],{"type":27,"value":1988},"p_down_color",{"type":31,"tagName":278,"properties":1990,"children":1991},{"style":334},[1992],{"type":27,"value":1849},{"type":27,"value":28},{"type":31,"tagName":278,"properties":1995,"children":1996},{"class":280},[1997],{"type":31,"tagName":278,"properties":1998,"children":1999},{"style":334},[2000],{"type":27,"value":2001},"}",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2004,"children":2005},{"class":280},[],{"type":27,"value":28},{"type":31,"tagName":278,"properties":2008,"children":2009},{"class":280},[2010],{"type":31,"tagName":278,"properties":2011,"children":2012},{"style":284},[2013],{"type":27,"value":2014},"// onBar() runs once per bar: feed both averages, place the close against them, count the run, catch a flip;",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2017,"children":2018},{"class":280},[2019],{"type":31,"tagName":278,"properties":2020,"children":2021},{"style":284},[2022],{"type":27,"value":2023},"// then write the averages, the state and the dots on every bar, and the counter on the live bar only.",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2026,"children":2027},{"class":280},[2028,2032,2037,2041,2045,2049],{"type":31,"tagName":278,"properties":2029,"children":2030},{"style":620},[2031],{"type":27,"value":1793},{"type":31,"tagName":278,"properties":2033,"children":2034},{"style":340},[2035],{"type":27,"value":2036}," onBar",{"type":31,"tagName":278,"properties":2038,"children":2039},{"style":334},[2040],{"type":27,"value":1803},{"type":31,"tagName":278,"properties":2042,"children":2043},{"style":620},[2044],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":2046,"children":2047},{"style":362},[2048],{"type":27,"value":1812},{"type":31,"tagName":278,"properties":2050,"children":2051},{"style":334},[2052],{"type":27,"value":1817},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2055,"children":2056},{"class":280},[2057,2062,2067,2071,2076,2081],{"type":31,"tagName":278,"properties":2058,"children":2059},{"style":620},[2060],{"type":27,"value":2061},"  const",{"type":31,"tagName":278,"properties":2063,"children":2064},{"style":362},[2065],{"type":27,"value":2066}," close",{"type":31,"tagName":278,"properties":2068,"children":2069},{"style":620},[2070],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2072,"children":2073},{"style":334},[2074],{"type":27,"value":2075}," bar.",{"type":31,"tagName":278,"properties":2077,"children":2078},{"style":340},[2079],{"type":27,"value":2080},"close",{"type":31,"tagName":278,"properties":2082,"children":2083},{"style":334},[2084],{"type":27,"value":2085},"();",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2088,"children":2089},{"class":280},[2090,2094,2099,2103,2107,2112],{"type":31,"tagName":278,"properties":2091,"children":2092},{"style":620},[2093],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2095,"children":2096},{"style":362},[2097],{"type":27,"value":2098}," high",{"type":31,"tagName":278,"properties":2100,"children":2101},{"style":620},[2102],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2104,"children":2105},{"style":334},[2106],{"type":27,"value":2075},{"type":31,"tagName":278,"properties":2108,"children":2109},{"style":340},[2110],{"type":27,"value":2111},"high",{"type":31,"tagName":278,"properties":2113,"children":2114},{"style":334},[2115],{"type":27,"value":2085},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2118,"children":2119},{"class":280},[2120,2124,2129,2133,2137,2142],{"type":31,"tagName":278,"properties":2121,"children":2122},{"style":620},[2123],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2125,"children":2126},{"style":362},[2127],{"type":27,"value":2128}," low",{"type":31,"tagName":278,"properties":2130,"children":2131},{"style":620},[2132],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2134,"children":2135},{"style":334},[2136],{"type":27,"value":2075},{"type":31,"tagName":278,"properties":2138,"children":2139},{"style":340},[2140],{"type":27,"value":2141},"low",{"type":31,"tagName":278,"properties":2143,"children":2144},{"style":334},[2145],{"type":27,"value":2085},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2148,"children":2149},{"class":280},[2150,2154,2159,2163,2168,2173],{"type":31,"tagName":278,"properties":2151,"children":2152},{"style":620},[2153],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2155,"children":2156},{"style":362},[2157],{"type":27,"value":2158}," fast",{"type":31,"tagName":278,"properties":2160,"children":2161},{"style":620},[2162],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2164,"children":2165},{"style":334},[2166],{"type":27,"value":2167}," fastEma.",{"type":31,"tagName":278,"properties":2169,"children":2170},{"style":340},[2171],{"type":27,"value":2172},"update",{"type":31,"tagName":278,"properties":2174,"children":2175},{"style":334},[2176],{"type":27,"value":2177},"(close);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2180,"children":2181},{"class":280},[2182,2186,2191,2195,2200,2204],{"type":31,"tagName":278,"properties":2183,"children":2184},{"style":620},[2185],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2187,"children":2188},{"style":362},[2189],{"type":27,"value":2190}," slow",{"type":31,"tagName":278,"properties":2192,"children":2193},{"style":620},[2194],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2196,"children":2197},{"style":334},[2198],{"type":27,"value":2199}," slowEma.",{"type":31,"tagName":278,"properties":2201,"children":2202},{"style":340},[2203],{"type":27,"value":2172},{"type":31,"tagName":278,"properties":2205,"children":2206},{"style":334},[2207],{"type":27,"value":2177},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2210,"children":2211},{"class":280},[2212,2216,2221,2225,2230,2235],{"type":31,"tagName":278,"properties":2213,"children":2214},{"style":620},[2215],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2217,"children":2218},{"style":362},[2219],{"type":27,"value":2220}," range",{"type":31,"tagName":278,"properties":2222,"children":2223},{"style":620},[2224],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2226,"children":2227},{"style":334},[2228],{"type":27,"value":2229}," high ",{"type":31,"tagName":278,"properties":2231,"children":2232},{"style":620},[2233],{"type":27,"value":2234},"-",{"type":31,"tagName":278,"properties":2236,"children":2237},{"style":334},[2238],{"type":27,"value":2239}," low;",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2242,"children":2243},{"class":280},[2244,2249,2253,2258,2263,2268,2273,2277,2282,2287,2292,2296,2301,2306,2311],{"type":31,"tagName":278,"properties":2245,"children":2246},{"style":334},[2247],{"type":27,"value":2248},"  rangeAvg ",{"type":31,"tagName":278,"properties":2250,"children":2251},{"style":620},[2252],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2254,"children":2255},{"style":340},[2256],{"type":27,"value":2257}," isNaN",{"type":31,"tagName":278,"properties":2259,"children":2260},{"style":334},[2261],{"type":27,"value":2262},"(rangeAvg) ",{"type":31,"tagName":278,"properties":2264,"children":2265},{"style":620},[2266],{"type":27,"value":2267},"?",{"type":31,"tagName":278,"properties":2269,"children":2270},{"style":334},[2271],{"type":27,"value":2272}," range ",{"type":31,"tagName":278,"properties":2274,"children":2275},{"style":620},[2276],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":2278,"children":2279},{"style":334},[2280],{"type":27,"value":2281}," rangeAvg ",{"type":31,"tagName":278,"properties":2283,"children":2284},{"style":620},[2285],{"type":27,"value":2286},"+",{"type":31,"tagName":278,"properties":2288,"children":2289},{"style":334},[2290],{"type":27,"value":2291}," (range ",{"type":31,"tagName":278,"properties":2293,"children":2294},{"style":620},[2295],{"type":27,"value":2234},{"type":31,"tagName":278,"properties":2297,"children":2298},{"style":334},[2299],{"type":27,"value":2300}," rangeAvg) ",{"type":31,"tagName":278,"properties":2302,"children":2303},{"style":620},[2304],{"type":27,"value":2305},"*",{"type":31,"tagName":278,"properties":2307,"children":2308},{"style":362},[2309],{"type":27,"value":2310}," 0.1",{"type":31,"tagName":278,"properties":2312,"children":2313},{"style":334},[2314],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2317,"children":2318},{"class":280},[2319,2324,2329,2333,2337,2341,2345,2349],{"type":31,"tagName":278,"properties":2320,"children":2321},{"style":620},[2322],{"type":27,"value":2323},"  let",{"type":31,"tagName":278,"properties":2325,"children":2326},{"style":334},[2327],{"type":27,"value":2328}," flipUpY",{"type":31,"tagName":278,"properties":2330,"children":2331},{"style":620},[2332],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":2334,"children":2335},{"style":340},[2336],{"type":27,"value":1762},{"type":31,"tagName":278,"properties":2338,"children":2339},{"style":620},[2340],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2342,"children":2343},{"style":362},[2344],{"type":27,"value":1771},{"type":31,"tagName":278,"properties":2346,"children":2347},{"style":334},[2348],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":2350,"children":2351},{"style":284},[2352],{"type":27,"value":2353},"// this bar's dots, NaN when the side held",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2356,"children":2357},{"class":280},[2358,2362,2367,2371,2375,2379,2383],{"type":31,"tagName":278,"properties":2359,"children":2360},{"style":620},[2361],{"type":27,"value":2323},{"type":31,"tagName":278,"properties":2363,"children":2364},{"style":334},[2365],{"type":27,"value":2366}," flipDownY",{"type":31,"tagName":278,"properties":2368,"children":2369},{"style":620},[2370],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":2372,"children":2373},{"style":340},[2374],{"type":27,"value":1762},{"type":31,"tagName":278,"properties":2376,"children":2377},{"style":620},[2378],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2380,"children":2381},{"style":362},[2382],{"type":27,"value":1771},{"type":31,"tagName":278,"properties":2384,"children":2385},{"style":334},[2386],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2389,"children":2390},{"class":280},[2391,2396,2401,2406,2411,2416,2420,2425,2430,2434],{"type":31,"tagName":278,"properties":2392,"children":2393},{"style":620},[2394],{"type":27,"value":2395},"  if",{"type":31,"tagName":278,"properties":2397,"children":2398},{"style":334},[2399],{"type":27,"value":2400}," (",{"type":31,"tagName":278,"properties":2402,"children":2403},{"style":340},[2404],{"type":27,"value":2405},"isNaN",{"type":31,"tagName":278,"properties":2407,"children":2408},{"style":334},[2409],{"type":27,"value":2410},"(fast) ",{"type":31,"tagName":278,"properties":2412,"children":2413},{"style":620},[2414],{"type":27,"value":2415},"||",{"type":31,"tagName":278,"properties":2417,"children":2418},{"style":340},[2419],{"type":27,"value":2257},{"type":31,"tagName":278,"properties":2421,"children":2422},{"style":334},[2423],{"type":27,"value":2424},"(slow)) ",{"type":31,"tagName":278,"properties":2426,"children":2427},{"style":620},[2428],{"type":27,"value":2429},"return",{"type":31,"tagName":278,"properties":2431,"children":2432},{"style":334},[2433],{"type":27,"value":1409},{"type":31,"tagName":278,"properties":2435,"children":2436},{"style":284},[2437],{"type":27,"value":2438},"// warm-up rows draw nothing",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2441,"children":2442},{"class":280},[2443,2447,2452,2456,2461,2466,2471,2476,2480,2484,2489,2493,2498,2503,2507,2512,2516,2520,2524,2528,2532,2536,2541,2545,2549,2553],{"type":31,"tagName":278,"properties":2444,"children":2445},{"style":620},[2446],{"type":27,"value":2061},{"type":31,"tagName":278,"properties":2448,"children":2449},{"style":362},[2450],{"type":27,"value":2451}," next",{"type":31,"tagName":278,"properties":2453,"children":2454},{"style":620},[2455],{"type":27,"value":633},{"type":31,"tagName":278,"properties":2457,"children":2458},{"style":334},[2459],{"type":27,"value":2460}," close ",{"type":31,"tagName":278,"properties":2462,"children":2463},{"style":620},[2464],{"type":27,"value":2465},">",{"type":31,"tagName":278,"properties":2467,"children":2468},{"style":334},[2469],{"type":27,"value":2470}," fast ",{"type":31,"tagName":278,"properties":2472,"children":2473},{"style":620},[2474],{"type":27,"value":2475},"&&",{"type":31,"tagName":278,"properties":2477,"children":2478},{"style":334},[2479],{"type":27,"value":2460},{"type":31,"tagName":278,"properties":2481,"children":2482},{"style":620},[2483],{"type":27,"value":2465},{"type":31,"tagName":278,"properties":2485,"children":2486},{"style":334},[2487],{"type":27,"value":2488}," slow ",{"type":31,"tagName":278,"properties":2490,"children":2491},{"style":620},[2492],{"type":27,"value":2267},{"type":31,"tagName":278,"properties":2494,"children":2495},{"style":362},[2496],{"type":27,"value":2497}," 1",{"type":31,"tagName":278,"properties":2499,"children":2500},{"style":620},[2501],{"type":27,"value":2502}," :",{"type":31,"tagName":278,"properties":2504,"children":2505},{"style":334},[2506],{"type":27,"value":2460},{"type":31,"tagName":278,"properties":2508,"children":2509},{"style":620},[2510],{"type":27,"value":2511},"\u003C",{"type":31,"tagName":278,"properties":2513,"children":2514},{"style":334},[2515],{"type":27,"value":2470},{"type":31,"tagName":278,"properties":2517,"children":2518},{"style":620},[2519],{"type":27,"value":2475},{"type":31,"tagName":278,"properties":2521,"children":2522},{"style":334},[2523],{"type":27,"value":2460},{"type":31,"tagName":278,"properties":2525,"children":2526},{"style":620},[2527],{"type":27,"value":2511},{"type":31,"tagName":278,"properties":2529,"children":2530},{"style":334},[2531],{"type":27,"value":2488},{"type":31,"tagName":278,"properties":2533,"children":2534},{"style":620},[2535],{"type":27,"value":2267},{"type":31,"tagName":278,"properties":2537,"children":2538},{"style":620},[2539],{"type":27,"value":2540}," -",{"type":31,"tagName":278,"properties":2542,"children":2543},{"style":362},[2544],{"type":27,"value":667},{"type":31,"tagName":278,"properties":2546,"children":2547},{"style":620},[2548],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":2550,"children":2551},{"style":362},[2552],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2554,"children":2555},{"style":334},[2556],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2559,"children":2560},{"class":280},[2561,2566,2570,2575,2580,2584,2588,2592,2596,2600,2604,2608],{"type":31,"tagName":278,"properties":2562,"children":2563},{"style":334},[2564],{"type":27,"value":2565},"  run ",{"type":31,"tagName":278,"properties":2567,"children":2568},{"style":620},[2569],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2571,"children":2572},{"style":334},[2573],{"type":27,"value":2574}," next ",{"type":31,"tagName":278,"properties":2576,"children":2577},{"style":620},[2578],{"type":27,"value":2579},"==",{"type":31,"tagName":278,"properties":2581,"children":2582},{"style":334},[2583],{"type":27,"value":1661},{"type":31,"tagName":278,"properties":2585,"children":2586},{"style":620},[2587],{"type":27,"value":2267},{"type":31,"tagName":278,"properties":2589,"children":2590},{"style":334},[2591],{"type":27,"value":1722},{"type":31,"tagName":278,"properties":2593,"children":2594},{"style":620},[2595],{"type":27,"value":2286},{"type":31,"tagName":278,"properties":2597,"children":2598},{"style":362},[2599],{"type":27,"value":2497},{"type":31,"tagName":278,"properties":2601,"children":2602},{"style":620},[2603],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":2605,"children":2606},{"style":362},[2607],{"type":27,"value":2497},{"type":31,"tagName":278,"properties":2609,"children":2610},{"style":334},[2611],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2614,"children":2615},{"class":280},[2616,2621,2625],{"type":31,"tagName":278,"properties":2617,"children":2618},{"style":334},[2619],{"type":27,"value":2620},"  trend ",{"type":31,"tagName":278,"properties":2622,"children":2623},{"style":620},[2624],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2626,"children":2627},{"style":334},[2628],{"type":27,"value":2629}," next;",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2632,"children":2633},{"class":280},[2634,2638,2643,2648,2652,2657,2661,2665,2670],{"type":31,"tagName":278,"properties":2635,"children":2636},{"style":620},[2637],{"type":27,"value":2395},{"type":31,"tagName":278,"properties":2639,"children":2640},{"style":334},[2641],{"type":27,"value":2642}," (trend ",{"type":31,"tagName":278,"properties":2644,"children":2645},{"style":620},[2646],{"type":27,"value":2647},"!=",{"type":31,"tagName":278,"properties":2649,"children":2650},{"style":362},[2651],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2653,"children":2654},{"style":620},[2655],{"type":27,"value":2656}," &&",{"type":31,"tagName":278,"properties":2658,"children":2659},{"style":334},[2660],{"type":27,"value":1661},{"type":31,"tagName":278,"properties":2662,"children":2663},{"style":620},[2664],{"type":27,"value":2647},{"type":31,"tagName":278,"properties":2666,"children":2667},{"style":334},[2668],{"type":27,"value":2669}," lastTinted) { ",{"type":31,"tagName":278,"properties":2671,"children":2672},{"style":284},[2673],{"type":27,"value":2674},"// the close crossed to the other side of both averages",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2677,"children":2678},{"class":280},[2679,2684,2689,2693,2697],{"type":31,"tagName":278,"properties":2680,"children":2681},{"style":620},[2682],{"type":27,"value":2683},"    if",{"type":31,"tagName":278,"properties":2685,"children":2686},{"style":334},[2687],{"type":27,"value":2688}," (lastTinted ",{"type":31,"tagName":278,"properties":2690,"children":2691},{"style":620},[2692],{"type":27,"value":2647},{"type":31,"tagName":278,"properties":2694,"children":2695},{"style":362},[2696],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2698,"children":2699},{"style":334},[2700],{"type":27,"value":2701},") {",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2704,"children":2705},{"class":280},[2706,2711,2715,2719,2723,2728,2732,2737,2741,2745,2749,2754],{"type":31,"tagName":278,"properties":2707,"children":2708},{"style":620},[2709],{"type":27,"value":2710},"      if",{"type":31,"tagName":278,"properties":2712,"children":2713},{"style":334},[2714],{"type":27,"value":2642},{"type":31,"tagName":278,"properties":2716,"children":2717},{"style":620},[2718],{"type":27,"value":2465},{"type":31,"tagName":278,"properties":2720,"children":2721},{"style":362},[2722],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2724,"children":2725},{"style":334},[2726],{"type":27,"value":2727},") flipUpY ",{"type":31,"tagName":278,"properties":2729,"children":2730},{"style":620},[2731],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2733,"children":2734},{"style":334},[2735],{"type":27,"value":2736}," low ",{"type":31,"tagName":278,"properties":2738,"children":2739},{"style":620},[2740],{"type":27,"value":2234},{"type":31,"tagName":278,"properties":2742,"children":2743},{"style":334},[2744],{"type":27,"value":2281},{"type":31,"tagName":278,"properties":2746,"children":2747},{"style":620},[2748],{"type":27,"value":2305},{"type":31,"tagName":278,"properties":2750,"children":2751},{"style":362},[2752],{"type":27,"value":2753}," 0.6",{"type":31,"tagName":278,"properties":2755,"children":2756},{"style":334},[2757],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2760,"children":2761},{"class":280},[2762,2767,2772,2776,2780,2784,2788,2792,2796],{"type":31,"tagName":278,"properties":2763,"children":2764},{"style":620},[2765],{"type":27,"value":2766},"      else",{"type":31,"tagName":278,"properties":2768,"children":2769},{"style":334},[2770],{"type":27,"value":2771}," flipDownY ",{"type":31,"tagName":278,"properties":2773,"children":2774},{"style":620},[2775],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2777,"children":2778},{"style":334},[2779],{"type":27,"value":2229},{"type":31,"tagName":278,"properties":2781,"children":2782},{"style":620},[2783],{"type":27,"value":2286},{"type":31,"tagName":278,"properties":2785,"children":2786},{"style":334},[2787],{"type":27,"value":2281},{"type":31,"tagName":278,"properties":2789,"children":2790},{"style":620},[2791],{"type":27,"value":2305},{"type":31,"tagName":278,"properties":2793,"children":2794},{"style":362},[2795],{"type":27,"value":2753},{"type":31,"tagName":278,"properties":2797,"children":2798},{"style":334},[2799],{"type":27,"value":1441},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2802,"children":2803},{"class":280},[2804],{"type":31,"tagName":278,"properties":2805,"children":2806},{"style":334},[2807],{"type":27,"value":2808},"    }",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2811,"children":2812},{"class":280},[2813,2818,2822],{"type":31,"tagName":278,"properties":2814,"children":2815},{"style":334},[2816],{"type":27,"value":2817},"    lastTinted ",{"type":31,"tagName":278,"properties":2819,"children":2820},{"style":620},[2821],{"type":27,"value":1399},{"type":31,"tagName":278,"properties":2823,"children":2824},{"style":334},[2825],{"type":27,"value":2826}," trend;",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2829,"children":2830},{"class":280},[2831],{"type":31,"tagName":278,"properties":2832,"children":2833},{"style":334},[2834],{"type":27,"value":2835},"  }",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2838,"children":2839},{"class":280},[2840,2845],{"type":31,"tagName":278,"properties":2841,"children":2842},{"style":340},[2843],{"type":27,"value":2844},"  out_fast_ema",{"type":31,"tagName":278,"properties":2846,"children":2847},{"style":334},[2848],{"type":27,"value":2849},"(fast);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2852,"children":2853},{"class":280},[2854,2859],{"type":31,"tagName":278,"properties":2855,"children":2856},{"style":340},[2857],{"type":27,"value":2858},"  out_slow_ema",{"type":31,"tagName":278,"properties":2860,"children":2861},{"style":334},[2862],{"type":27,"value":2863},"(slow);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2866,"children":2867},{"class":280},[2868,2873,2877,2882],{"type":31,"tagName":278,"properties":2869,"children":2870},{"style":340},[2871],{"type":27,"value":2872},"  out_trend",{"type":31,"tagName":278,"properties":2874,"children":2875},{"style":334},[2876],{"type":27,"value":348},{"type":31,"tagName":278,"properties":2878,"children":2879},{"style":340},[2880],{"type":27,"value":2881},"f64",{"type":31,"tagName":278,"properties":2883,"children":2884},{"style":334},[2885],{"type":27,"value":2886},"(trend));",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2889,"children":2890},{"class":280},[2891,2896,2901,2905,2909,2914,2919,2923,2928],{"type":31,"tagName":278,"properties":2892,"children":2893},{"style":340},[2894],{"type":27,"value":2895},"  out_tinted",{"type":31,"tagName":278,"properties":2897,"children":2898},{"style":334},[2899],{"type":27,"value":2900},"(trend ",{"type":31,"tagName":278,"properties":2902,"children":2903},{"style":620},[2904],{"type":27,"value":2647},{"type":31,"tagName":278,"properties":2906,"children":2907},{"style":362},[2908],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2910,"children":2911},{"style":620},[2912],{"type":27,"value":2913}," ?",{"type":31,"tagName":278,"properties":2915,"children":2916},{"style":362},[2917],{"type":27,"value":2918}," 1.0",{"type":31,"tagName":278,"properties":2920,"children":2921},{"style":620},[2922],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":2924,"children":2925},{"style":362},[2926],{"type":27,"value":2927}," 0.0",{"type":31,"tagName":278,"properties":2929,"children":2930},{"style":334},[2931],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2934,"children":2935},{"class":280},[2936,2941,2945,2949,2953,2957,2961,2965,2969],{"type":31,"tagName":278,"properties":2937,"children":2938},{"style":340},[2939],{"type":27,"value":2940},"  out_tint",{"type":31,"tagName":278,"properties":2942,"children":2943},{"style":334},[2944],{"type":27,"value":2900},{"type":31,"tagName":278,"properties":2946,"children":2947},{"style":620},[2948],{"type":27,"value":2465},{"type":31,"tagName":278,"properties":2950,"children":2951},{"style":362},[2952],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":2954,"children":2955},{"style":620},[2956],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":2958,"children":2959},{"style":362},[2960],{"type":27,"value":2918},{"type":31,"tagName":278,"properties":2962,"children":2963},{"style":620},[2964],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":2966,"children":2967},{"style":362},[2968],{"type":27,"value":2927},{"type":31,"tagName":278,"properties":2970,"children":2971},{"style":334},[2972],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":2975,"children":2976},{"class":280},[2977,2982,2986,2990],{"type":31,"tagName":278,"properties":2978,"children":2979},{"style":340},[2980],{"type":27,"value":2981},"  out_run",{"type":31,"tagName":278,"properties":2983,"children":2984},{"style":334},[2985],{"type":27,"value":348},{"type":31,"tagName":278,"properties":2987,"children":2988},{"style":340},[2989],{"type":27,"value":2881},{"type":31,"tagName":278,"properties":2991,"children":2992},{"style":334},[2993],{"type":27,"value":2994},"(run));",{"type":27,"value":28},{"type":31,"tagName":278,"properties":2997,"children":2998},{"class":280},[2999,3004],{"type":31,"tagName":278,"properties":3000,"children":3001},{"style":340},[3002],{"type":27,"value":3003},"  out_flip_up",{"type":31,"tagName":278,"properties":3005,"children":3006},{"style":334},[3007],{"type":27,"value":3008},"(flipUpY);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":3011,"children":3012},{"class":280},[3013,3018],{"type":31,"tagName":278,"properties":3014,"children":3015},{"style":340},[3016],{"type":27,"value":3017},"  out_flip_down",{"type":31,"tagName":278,"properties":3019,"children":3020},{"style":334},[3021],{"type":27,"value":3022},"(flipDownY);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":3025,"children":3026},{"class":280},[3027,3031,3036,3041],{"type":31,"tagName":278,"properties":3028,"children":3029},{"style":620},[3030],{"type":27,"value":2395},{"type":31,"tagName":278,"properties":3032,"children":3033},{"style":334},[3034],{"type":27,"value":3035}," (bar.",{"type":31,"tagName":278,"properties":3037,"children":3038},{"style":340},[3039],{"type":27,"value":3040},"isLast",{"type":31,"tagName":278,"properties":3042,"children":3043},{"style":334},[3044],{"type":27,"value":3045},"()) {",{"type":27,"value":28},{"type":31,"tagName":278,"properties":3048,"children":3049},{"class":280},[3050,3055],{"type":31,"tagName":278,"properties":3051,"children":3052},{"style":340},[3053],{"type":27,"value":3054},"    sb_clear",{"type":31,"tagName":278,"properties":3056,"children":3057},{"style":334},[3058],{"type":27,"value":2085},{"type":27,"value":28},{"type":31,"tagName":278,"properties":3061,"children":3062},{"class":280},[3063,3068],{"type":31,"tagName":278,"properties":3064,"children":3065},{"style":340},[3066],{"type":27,"value":3067},"    sb_int",{"type":31,"tagName":278,"properties":3069,"children":3070},{"style":334},[3071],{"type":27,"value":3072},"(run);",{"type":27,"value":28},{"type":31,"tagName":278,"properties":3075,"children":3076},{"class":280},[3077,3082,3087,3091,3095,3099,3104,3108,3113],{"type":31,"tagName":278,"properties":3078,"children":3079},{"style":340},[3080],{"type":27,"value":3081},"    sb_text",{"type":31,"tagName":278,"properties":3083,"children":3084},{"style":334},[3085],{"type":27,"value":3086},"(run ",{"type":31,"tagName":278,"properties":3088,"children":3089},{"style":620},[3090],{"type":27,"value":2579},{"type":31,"tagName":278,"properties":3092,"children":3093},{"style":362},[3094],{"type":27,"value":2497},{"type":31,"tagName":278,"properties":3096,"children":3097},{"style":620},[3098],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":3100,"children":3101},{"style":351},[3102],{"type":27,"value":3103}," \" bar \"",{"type":31,"tagName":278,"properties":3105,"children":3106},{"style":620},[3107],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":3109,"children":3110},{"style":351},[3111],{"type":27,"value":3112}," \" bars \"",{"type":31,"tagName":278,"properties":3114,"children":3115},{"style":334},[3116],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":3119,"children":3120},{"class":280},[3121,3125,3129,3133,3137,3141,3146,3150,3154,3158,3162,3166,3171,3175,3180],{"type":31,"tagName":278,"properties":3122,"children":3123},{"style":340},[3124],{"type":27,"value":3081},{"type":31,"tagName":278,"properties":3126,"children":3127},{"style":334},[3128],{"type":27,"value":2900},{"type":31,"tagName":278,"properties":3130,"children":3131},{"style":620},[3132],{"type":27,"value":2465},{"type":31,"tagName":278,"properties":3134,"children":3135},{"style":362},[3136],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":3138,"children":3139},{"style":620},[3140],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":3142,"children":3143},{"style":351},[3144],{"type":27,"value":3145}," \"up\"",{"type":31,"tagName":278,"properties":3147,"children":3148},{"style":620},[3149],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":3151,"children":3152},{"style":334},[3153],{"type":27,"value":1661},{"type":31,"tagName":278,"properties":3155,"children":3156},{"style":620},[3157],{"type":27,"value":2511},{"type":31,"tagName":278,"properties":3159,"children":3160},{"style":362},[3161],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":3163,"children":3164},{"style":620},[3165],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":3167,"children":3168},{"style":351},[3169],{"type":27,"value":3170}," \"down\"",{"type":31,"tagName":278,"properties":3172,"children":3173},{"style":620},[3174],{"type":27,"value":2502},{"type":31,"tagName":278,"properties":3176,"children":3177},{"style":351},[3178],{"type":27,"value":3179}," \"between\"",{"type":31,"tagName":278,"properties":3181,"children":3182},{"style":334},[3183],{"type":27,"value":1338},{"type":27,"value":28},{"type":31,"tagName":278,"properties":3186,"children":3187},{"class":280},[3188,3193,3198,3202,3207,3211,3216,3221,3225,3230,3235,3239,3244,3248,3252,3256,3260,3264,3268,3272,3276,3280,3284,3288,3292,3296,3300,3304,3308],{"type":31,"tagName":278,"properties":3189,"children":3190},{"style":334},[3191],{"type":27,"value":3192},"    counter.",{"type":31,"tagName":278,"properties":3194,"children":3195},{"style":340},[3196],{"type":27,"value":3197},"set",{"type":31,"tagName":278,"properties":3199,"children":3200},{"style":334},[3201],{"type":27,"value":348},{"type":31,"tagName":278,"properties":3203,"children":3204},{"style":362},[3205],{"type":27,"value":3206},"60",{"type":31,"tagName":278,"properties":3208,"children":3209},{"style":334},[3210],{"type":27,"value":359},{"type":31,"tagName":278,"properties":3212,"children":3213},{"style":362},[3214],{"type":27,"value":3215},"14",{"type":31,"tagName":278,"properties":3217,"children":3218},{"style":334},[3219],{"type":27,"value":3220},").",{"type":31,"tagName":278,"properties":3222,"children":3223},{"style":340},[3224],{"type":27,"value":27},{"type":31,"tagName":278,"properties":3226,"children":3227},{"style":334},[3228],{"type":27,"value":3229},"(str_text_sb).",{"type":31,"tagName":278,"properties":3231,"children":3232},{"style":340},[3233],{"type":27,"value":3234},"align",{"type":31,"tagName":278,"properties":3236,"children":3237},{"style":334},[3238],{"type":27,"value":348},{"type":31,"tagName":278,"properties":3240,"children":3241},{"style":362},[3242],{"type":27,"value":3243},"ALIGN_RIGHT",{"type":31,"tagName":278,"properties":3245,"children":3246},{"style":334},[3247],{"type":27,"value":3220},{"type":31,"tagName":278,"properties":3249,"children":3250},{"style":340},[3251],{"type":27,"value":516},{"type":31,"tagName":278,"properties":3253,"children":3254},{"style":334},[3255],{"type":27,"value":2900},{"type":31,"tagName":278,"properties":3257,"children":3258},{"style":620},[3259],{"type":27,"value":2465},{"type":31,"tagName":278,"properties":3261,"children":3262},{"style":362},[3263],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":3265,"children":3266},{"style":620},[3267],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":3269,"children":3270},{"style":334},[3271],{"type":27,"value":1454},{"type":31,"tagName":278,"properties":3273,"children":3274},{"style":620},[3275],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":3277,"children":3278},{"style":334},[3279],{"type":27,"value":1661},{"type":31,"tagName":278,"properties":3281,"children":3282},{"style":620},[3283],{"type":27,"value":2511},{"type":31,"tagName":278,"properties":3285,"children":3286},{"style":362},[3287],{"type":27,"value":1670},{"type":31,"tagName":278,"properties":3289,"children":3290},{"style":620},[3291],{"type":27,"value":2913},{"type":31,"tagName":278,"properties":3293,"children":3294},{"style":334},[3295],{"type":27,"value":1520},{"type":31,"tagName":278,"properties":3297,"children":3298},{"style":620},[3299],{"type":27,"value":1757},{"type":31,"tagName":278,"properties":3301,"children":3302},{"style":362},[3303],{"type":27,"value":1288},{"type":31,"tagName":278,"properties":3305,"children":3306},{"style":334},[3307],{"type":27,"value":1502},{"type":31,"tagName":278,"properties":3309,"children":3310},{"style":284},[3311],{"type":27,"value":3312},"// inward past the price-axis tags, in the side's tint",{"type":27,"value":28},{"type":31,"tagName":278,"properties":3315,"children":3316},{"class":280},[3317],{"type":31,"tagName":278,"properties":3318,"children":3319},{"style":334},[3320],{"type":27,"value":2835},{"type":27,"value":28},{"type":31,"tagName":278,"properties":3323,"children":3324},{"class":280},[3325],{"type":31,"tagName":278,"properties":3326,"children":3327},{"style":334},[3328],{"type":27,"value":2001},{"type":27,"value":28},{"type":31,"tagName":245,"properties":3331,"children":3332,"position":3342},{},[3333],{"type":27,"value":3334,"position":3335},"How it works",{"start":3336,"end":3339},{"line":3337,"column":253,"offset":3338},101,6610,{"line":3337,"column":3340,"offset":3341},16,6622,{"start":3343,"end":3345},{"line":3337,"column":21,"offset":3344},6607,{"line":3337,"column":3340,"offset":3341},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3348,"children":3349,"position":3433},{},[3350,3367,3374,3387,3394,3407,3414,3426],{"type":31,"tagName":192,"properties":3351,"children":3352,"position":3362},{},[3353],{"type":27,"value":3354,"position":3355},"Two averages, three states.",{"start":3356,"end":3359},{"line":99,"column":3357,"offset":3358},3,6626,{"line":99,"column":3360,"offset":3361},30,6653,{"start":3363,"end":3365},{"line":99,"column":21,"offset":3364},6624,{"line":99,"column":89,"offset":3366},6655,{"type":27,"value":3368,"position":3369}," ",{"start":3370,"end":3371},{"line":99,"column":89,"offset":3366},{"line":99,"column":3372,"offset":3373},33,6656,{"type":31,"tagName":81,"properties":3375,"children":3376,"position":3384},{},[3377],{"type":27,"value":3378,"position":3379},"fast_len",{"start":3380,"end":3381},{"line":99,"column":3372,"offset":3373},{"line":99,"column":3382,"offset":3383},43,6666,{"start":3385,"end":3386},{"line":99,"column":3372,"offset":3373},{"line":99,"column":3382,"offset":3383},{"type":27,"value":3388,"position":3389}," (21) and ",{"start":3390,"end":3391},{"line":99,"column":3382,"offset":3383},{"line":99,"column":3392,"offset":3393},53,6676,{"type":31,"tagName":81,"properties":3395,"children":3396,"position":3404},{},[3397],{"type":27,"value":3398,"position":3399},"slow_len",{"start":3400,"end":3401},{"line":99,"column":3392,"offset":3393},{"line":99,"column":3402,"offset":3403},63,6686,{"start":3405,"end":3406},{"line":99,"column":3392,"offset":3393},{"line":99,"column":3402,"offset":3403},{"type":27,"value":3408,"position":3409}," (50) are the EMA lengths; ",{"start":3410,"end":3411},{"line":99,"column":3402,"offset":3403},{"line":99,"column":3412,"offset":3413},90,6713,{"type":31,"tagName":81,"properties":3415,"children":3416,"position":3423},{},[3417],{"type":27,"value":3418,"position":3419},"trend",{"start":3420,"end":3421},{"line":99,"column":3412,"offset":3413},{"line":99,"column":46,"offset":3422},6720,{"start":3424,"end":3425},{"line":99,"column":3412,"offset":3413},{"line":99,"column":46,"offset":3422},{"type":27,"value":3427,"position":3428}," is +1 while the close sits above both averages, -1 below both, 0 between. It is data-only; the editor's Console prompt reads it after a Run.",{"start":3429,"end":3430},{"line":99,"column":46,"offset":3422},{"line":99,"column":3431,"offset":3432},238,6861,{"start":3434,"end":3435},{"line":99,"column":21,"offset":3364},{"line":99,"column":3431,"offset":3432},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3438,"children":3439,"position":3522},{},[3440,3457,3463,3475,3482,3495,3502,3515],{"type":31,"tagName":192,"properties":3441,"children":3442,"position":3451},{},[3443],{"type":27,"value":3444,"position":3445},"The candle reads two numbers.",{"start":3446,"end":3449},{"line":3447,"column":3357,"offset":3448},105,6865,{"line":3447,"column":89,"offset":3450},6894,{"start":3452,"end":3454},{"line":3447,"column":21,"offset":3453},6863,{"line":3447,"column":3455,"offset":3456},34,6896,{"type":27,"value":3368,"position":3458},{"start":3459,"end":3460},{"line":3447,"column":3455,"offset":3456},{"line":3447,"column":3461,"offset":3462},35,6897,{"type":31,"tagName":81,"properties":3464,"children":3465,"position":3472},{},[3466],{"type":27,"value":3467,"position":3468},"render.barcolor(\"trend_tint\", { where: \"tinted\", color_by: \"tint\", colors: [violet, sky] })",{"start":3469,"end":3470},{"line":3447,"column":3461,"offset":3462},{"line":3447,"column":25,"offset":3471},6990,{"start":3473,"end":3474},{"line":3447,"column":3461,"offset":3462},{"line":3447,"column":25,"offset":3471},{"type":27,"value":3476,"position":3477}," tints the bar's own candle, body and wick: ",{"start":3478,"end":3479},{"line":3447,"column":25,"offset":3471},{"line":3447,"column":3480,"offset":3481},172,7034,{"type":31,"tagName":81,"properties":3483,"children":3484,"position":3492},{},[3485],{"type":27,"value":3486,"position":3487},"tinted",{"start":3488,"end":3489},{"line":3447,"column":3480,"offset":3481},{"line":3447,"column":3490,"offset":3491},180,7042,{"start":3493,"end":3494},{"line":3447,"column":3480,"offset":3481},{"line":3447,"column":3490,"offset":3491},{"type":27,"value":3496,"position":3497}," (1 above or below both averages) is the gate, ",{"start":3498,"end":3499},{"line":3447,"column":3490,"offset":3491},{"line":3447,"column":3500,"offset":3501},227,7089,{"type":31,"tagName":81,"properties":3503,"children":3504,"position":3512},{},[3505],{"type":27,"value":3506,"position":3507},"tint",{"start":3508,"end":3509},{"line":3447,"column":3500,"offset":3501},{"line":3447,"column":3510,"offset":3511},233,7095,{"start":3513,"end":3514},{"line":3447,"column":3500,"offset":3501},{"line":3447,"column":3510,"offset":3511},{"type":27,"value":3516,"position":3517}," (1 above, 0 below) picks the colour. Between the lines the gate is 0 and the candle keeps the chart's own colours.",{"start":3518,"end":3519},{"line":3447,"column":3510,"offset":3511},{"line":3447,"column":3520,"offset":3521},348,7210,{"start":3523,"end":3524},{"line":3447,"column":21,"offset":3453},{"line":3447,"column":3520,"offset":3521},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3527,"children":3528,"position":3609},{},[3529,3545,3550,3563,3570,3582,3589,3602],{"type":31,"tagName":192,"properties":3530,"children":3531,"position":3540},{},[3532],{"type":27,"value":3533,"position":3534},"A flip is a change of side.",{"start":3535,"end":3538},{"line":3536,"column":3357,"offset":3537},107,7214,{"line":3536,"column":3360,"offset":3539},7241,{"start":3541,"end":3543},{"line":3536,"column":21,"offset":3542},7212,{"line":3536,"column":89,"offset":3544},7243,{"type":27,"value":3368,"position":3546},{"start":3547,"end":3548},{"line":3536,"column":89,"offset":3544},{"line":3536,"column":3372,"offset":3549},7244,{"type":31,"tagName":81,"properties":3551,"children":3552,"position":3560},{},[3553],{"type":27,"value":3554,"position":3555},"flip_up",{"start":3556,"end":3557},{"line":3536,"column":3372,"offset":3549},{"line":3536,"column":3558,"offset":3559},42,7253,{"start":3561,"end":3562},{"line":3536,"column":3372,"offset":3549},{"line":3536,"column":3558,"offset":3559},{"type":27,"value":3564,"position":3565}," carries the bar's low on a bar where ",{"start":3566,"end":3567},{"line":3536,"column":3558,"offset":3559},{"line":3536,"column":3568,"offset":3569},80,7291,{"type":31,"tagName":81,"properties":3571,"children":3572,"position":3579},{},[3573],{"type":27,"value":3418,"position":3574},{"start":3575,"end":3576},{"line":3536,"column":3568,"offset":3569},{"line":3536,"column":3577,"offset":3578},87,7298,{"start":3580,"end":3581},{"line":3536,"column":3568,"offset":3569},{"line":3536,"column":3577,"offset":3578},{"type":27,"value":3583,"position":3584}," went from -1 to +1 (a sky dot under the bar), ",{"start":3585,"end":3586},{"line":3536,"column":3577,"offset":3578},{"line":3536,"column":3587,"offset":3588},134,7345,{"type":31,"tagName":81,"properties":3590,"children":3591,"position":3599},{},[3592],{"type":27,"value":3593,"position":3594},"flip_down",{"start":3595,"end":3596},{"line":3536,"column":3587,"offset":3588},{"line":3536,"column":3597,"offset":3598},145,7356,{"start":3600,"end":3601},{"line":3536,"column":3587,"offset":3588},{"line":3536,"column":3597,"offset":3598},{"type":27,"value":3603,"position":3604}," the bar's high on the way back (a violet dot over it); both are NaN elsewhere. Crossing into the gap and back to the same side is not a flip.",{"start":3605,"end":3606},{"line":3536,"column":3597,"offset":3598},{"line":3536,"column":3607,"offset":3608},287,7498,{"start":3610,"end":3611},{"line":3536,"column":21,"offset":3542},{"line":3536,"column":3607,"offset":3608},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3614,"children":3615,"position":3763},{},[3616,3634,3640,3652,3659,3672,3679,3695,3702,3718,3725,3737,3743,3756],{"type":31,"tagName":192,"properties":3617,"children":3618,"position":3628},{},[3619],{"type":27,"value":3620,"position":3621},"The counter is a slot.",{"start":3622,"end":3625},{"line":3623,"column":3357,"offset":3624},109,7502,{"line":3623,"column":3626,"offset":3627},25,7524,{"start":3629,"end":3631},{"line":3623,"column":21,"offset":3630},7500,{"line":3623,"column":3632,"offset":3633},27,7526,{"type":27,"value":3368,"position":3635},{"start":3636,"end":3637},{"line":3623,"column":3632,"offset":3633},{"line":3623,"column":3638,"offset":3639},28,7527,{"type":31,"tagName":81,"properties":3641,"children":3642,"position":3649},{},[3643],{"type":27,"value":3644,"position":3645},"run",{"start":3646,"end":3647},{"line":3623,"column":3638,"offset":3639},{"line":3623,"column":3372,"offset":3648},7532,{"start":3650,"end":3651},{"line":3623,"column":3638,"offset":3639},{"line":3623,"column":3372,"offset":3648},{"type":27,"value":3653,"position":3654}," counts the bars the current state has held; on the live bar it is written through the one bounded slot (\"12 bars up\") to a label anchored at the top-right corner in pixels. It reads in the side's tint: ",{"start":3655,"end":3656},{"line":3623,"column":3372,"offset":3648},{"line":3623,"column":3657,"offset":3658},236,7735,{"type":31,"tagName":81,"properties":3660,"children":3661,"position":3669},{},[3662],{"type":27,"value":3663,"position":3664},"onStart()",{"start":3665,"end":3666},{"line":3623,"column":3657,"offset":3658},{"line":3623,"column":3667,"offset":3668},247,7746,{"start":3670,"end":3671},{"line":3623,"column":3657,"offset":3658},{"line":3623,"column":3667,"offset":3668},{"type":27,"value":3673,"position":3674}," turns the ",{"start":3675,"end":3676},{"line":3623,"column":3667,"offset":3668},{"line":3623,"column":3677,"offset":3678},258,7757,{"type":31,"tagName":192,"properties":3680,"children":3681,"position":3691},{},[3682],{"type":27,"value":3683,"position":3684},"Up tint",{"start":3685,"end":3688},{"line":3623,"column":3686,"offset":3687},260,7759,{"line":3623,"column":3689,"offset":3690},267,7766,{"start":3692,"end":3693},{"line":3623,"column":3677,"offset":3678},{"line":3623,"column":157,"offset":3694},7768,{"type":27,"value":3696,"position":3697}," and ",{"start":3698,"end":3699},{"line":3623,"column":157,"offset":3694},{"line":3623,"column":3700,"offset":3701},274,7773,{"type":31,"tagName":192,"properties":3703,"children":3704,"position":3714},{},[3705],{"type":27,"value":3706,"position":3707},"Down tint",{"start":3708,"end":3711},{"line":3623,"column":3709,"offset":3710},276,7775,{"line":3623,"column":3712,"offset":3713},285,7784,{"start":3715,"end":3716},{"line":3623,"column":3700,"offset":3701},{"line":3623,"column":3607,"offset":3717},7786,{"type":27,"value":3719,"position":3720}," settings into colours with ",{"start":3721,"end":3722},{"line":3623,"column":3607,"offset":3717},{"line":3623,"column":3723,"offset":3724},315,7814,{"type":31,"tagName":81,"properties":3726,"children":3727,"position":3734},{},[3728],{"type":27,"value":3729,"position":3730},"fromPacked(p_up_color())",{"start":3731,"end":3732},{"line":3623,"column":3723,"offset":3724},{"line":3623,"column":179,"offset":3733},7840,{"start":3735,"end":3736},{"line":3623,"column":3723,"offset":3724},{"line":3623,"column":179,"offset":3733},{"type":27,"value":3696,"position":3738},{"start":3739,"end":3740},{"line":3623,"column":179,"offset":3733},{"line":3623,"column":3741,"offset":3742},346,7845,{"type":31,"tagName":81,"properties":3744,"children":3745,"position":3753},{},[3746],{"type":27,"value":3747,"position":3748},"fromPacked(p_down_color())",{"start":3749,"end":3750},{"line":3623,"column":3741,"offset":3742},{"line":3623,"column":3751,"offset":3752},374,7873,{"start":3754,"end":3755},{"line":3623,"column":3741,"offset":3742},{"line":3623,"column":3751,"offset":3752},{"type":27,"value":3757,"position":3758},", so a changed tint recolours the candles, the dots and the counter together (slate between the averages).",{"start":3759,"end":3760},{"line":3623,"column":3751,"offset":3752},{"line":3623,"column":3761,"offset":3762},480,7979,{"start":3764,"end":3765},{"line":3623,"column":21,"offset":3630},{"line":3623,"column":3761,"offset":3762},{"type":27,"value":28},{"type":31,"tagName":245,"properties":3768,"children":3769,"position":3778},{},[3770],{"type":27,"value":3771,"position":3772},"Where it runs",{"start":3773,"end":3775},{"line":113,"column":253,"offset":3774},7984,{"line":113,"column":3776,"offset":3777},17,7997,{"start":3779,"end":3781},{"line":113,"column":21,"offset":3780},7981,{"line":113,"column":3776,"offset":3777},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3784,"children":3785,"position":3795},{},[3786],{"type":27,"value":3787,"position":3788},"Every market with candles: crypto, stocks, FX and prediction markets. CME markets are the exception: the editor's Run is paused there, and a community indicator cannot read CME data.",{"start":3789,"end":3792},{"line":3790,"column":21,"offset":3791},113,7999,{"line":3790,"column":3793,"offset":3794},183,8181,{"start":3796,"end":3797},{"line":3790,"column":21,"offset":3791},{"line":3790,"column":3793,"offset":3794},{"type":27,"value":28},{"type":31,"tagName":245,"properties":3800,"children":3801,"position":3811},{},[3802],{"type":27,"value":3803,"position":3804},"When data is missing",{"start":3805,"end":3808},{"line":3806,"column":253,"offset":3807},115,8186,{"line":3806,"column":3809,"offset":3810},24,8206,{"start":3812,"end":3814},{"line":3806,"column":21,"offset":3813},8183,{"line":3806,"column":3809,"offset":3810},{"type":27,"value":28},{"type":31,"tagName":32,"properties":3817,"children":3818,"position":3845},{},[3819,3827,3839],{"type":27,"value":3820,"position":3821},"The first ",{"start":3822,"end":3825},{"line":3823,"column":21,"offset":3824},117,8208,{"line":3823,"column":252,"offset":3826},8218,{"type":31,"tagName":81,"properties":3828,"children":3829,"position":3836},{},[3830],{"type":27,"value":3398,"position":3831},{"start":3832,"end":3833},{"line":3823,"column":252,"offset":3826},{"line":3823,"column":3834,"offset":3835},21,8228,{"start":3837,"end":3838},{"line":3823,"column":252,"offset":3826},{"line":3823,"column":3834,"offset":3835},{"type":27,"value":3840,"position":3841}," bars are warm-up and draw nothing; a bar without a close keeps the chart's own colours.",{"start":3842,"end":3843},{"line":3823,"column":3834,"offset":3835},{"line":3823,"column":3623,"offset":3844},8316,{"start":3846,"end":3847},{"line":3823,"column":21,"offset":3824},{"line":3823,"column":3623,"offset":3844},{"type":27,"value":28},{"type":31,"tagName":245,"properties":3850,"children":3851,"position":3860},{},[3852],{"type":27,"value":3853,"position":3854},"Customize it",{"start":3855,"end":3858},{"line":3856,"column":253,"offset":3857},119,8321,{"line":3856,"column":3340,"offset":3859},8333,{"start":3861,"end":3863},{"line":3856,"column":21,"offset":3862},8318,{"line":3856,"column":3340,"offset":3859},{"type":27,"value":28},{"type":31,"tagName":3866,"properties":3867,"children":3868,"position":4041},"ul",{},[3869,3870,3939,3940,3971,3972,4040],{"type":27,"value":28},{"type":31,"tagName":3871,"properties":3872,"children":3873,"position":3935},"li",{},[3874,3891,3897,3909,3916,3928],{"type":31,"tagName":192,"properties":3875,"children":3876,"position":3886},{},[3877],{"type":27,"value":3878,"position":3879},"Other averages.",{"start":3880,"end":3883},{"line":3881,"column":43,"offset":3882},121,8339,{"line":3881,"column":3884,"offset":3885},20,8354,{"start":3887,"end":3889},{"line":3881,"column":3357,"offset":3888},8337,{"line":3881,"column":256,"offset":3890},8356,{"type":27,"value":3892,"position":3893}," Swap ",{"start":3894,"end":3895},{"line":3881,"column":256,"offset":3890},{"line":3881,"column":3638,"offset":3896},8362,{"type":31,"tagName":81,"properties":3898,"children":3899,"position":3906},{},[3900],{"type":27,"value":3901,"position":3902},"Ema",{"start":3903,"end":3904},{"line":3881,"column":3638,"offset":3896},{"line":3881,"column":3372,"offset":3905},8367,{"start":3907,"end":3908},{"line":3881,"column":3638,"offset":3896},{"line":3881,"column":3372,"offset":3905},{"type":27,"value":3910,"position":3911}," for ",{"start":3912,"end":3913},{"line":3881,"column":3372,"offset":3905},{"line":3881,"column":3914,"offset":3915},38,8372,{"type":31,"tagName":81,"properties":3917,"children":3918,"position":3925},{},[3919],{"type":27,"value":3920,"position":3921},"Sma",{"start":3922,"end":3923},{"line":3881,"column":3914,"offset":3915},{"line":3881,"column":3382,"offset":3924},8377,{"start":3926,"end":3927},{"line":3881,"column":3914,"offset":3915},{"line":3881,"column":3382,"offset":3924},{"type":27,"value":3929,"position":3930}," from the TA library; the lengths stay settings.",{"start":3931,"end":3932},{"line":3881,"column":3382,"offset":3924},{"line":3881,"column":3933,"offset":3934},91,8425,{"start":3936,"end":3938},{"line":3881,"column":21,"offset":3937},8335,{"line":3881,"column":3933,"offset":3934},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":3941,"children":3942,"position":3967},{},[3943,3960],{"type":31,"tagName":192,"properties":3944,"children":3945,"position":3955},{},[3946],{"type":27,"value":3947,"position":3948},"A one-line filter.",{"start":3949,"end":3952},{"line":3950,"column":43,"offset":3951},122,8430,{"line":3950,"column":3953,"offset":3954},23,8448,{"start":3956,"end":3958},{"line":3950,"column":3357,"offset":3957},8428,{"line":3950,"column":3626,"offset":3959},8450,{"type":27,"value":3961,"position":3962}," Drop the slow average and the \"between\" state to tint by one line.",{"start":3963,"end":3964},{"line":3950,"column":3626,"offset":3959},{"line":3950,"column":3965,"offset":3966},92,8517,{"start":3968,"end":3970},{"line":3950,"column":21,"offset":3969},8426,{"line":3950,"column":3965,"offset":3966},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":3973,"children":3974,"position":4036},{},[3975,3992,3997,4009,4016,4029],{"type":31,"tagName":192,"properties":3976,"children":3977,"position":3986},{},[3978],{"type":27,"value":3979,"position":3980},"Tint the wick only.",{"start":3981,"end":3984},{"line":3982,"column":43,"offset":3983},123,8522,{"line":3982,"column":3809,"offset":3985},8541,{"start":3987,"end":3989},{"line":3982,"column":3357,"offset":3988},8520,{"line":3982,"column":3990,"offset":3991},26,8543,{"type":27,"value":3368,"position":3993},{"start":3994,"end":3995},{"line":3982,"column":3990,"offset":3991},{"line":3982,"column":3632,"offset":3996},8544,{"type":31,"tagName":81,"properties":3998,"children":3999,"position":4006},{},[4000],{"type":27,"value":85,"position":4001},{"start":4002,"end":4003},{"line":3982,"column":3632,"offset":3996},{"line":3982,"column":4004,"offset":4005},44,8561,{"start":4007,"end":4008},{"line":3982,"column":3632,"offset":3996},{"line":3982,"column":4004,"offset":4005},{"type":27,"value":4010,"position":4011}," colours body and wick together; for the body alone, draw the tint as a ",{"start":4012,"end":4013},{"line":3982,"column":4004,"offset":4005},{"line":3982,"column":4014,"offset":4015},116,8633,{"type":31,"tagName":81,"properties":4017,"children":4018,"position":4026},{},[4019],{"type":27,"value":4020,"position":4021},"render.bgcolor",{"start":4022,"end":4023},{"line":3982,"column":4014,"offset":4015},{"line":3982,"column":4024,"offset":4025},132,8649,{"start":4027,"end":4028},{"line":3982,"column":4014,"offset":4015},{"line":3982,"column":4024,"offset":4025},{"type":27,"value":4030,"position":4031}," band instead.",{"start":4032,"end":4033},{"line":3982,"column":4024,"offset":4025},{"line":3982,"column":4034,"offset":4035},146,8663,{"start":4037,"end":4039},{"line":3982,"column":21,"offset":4038},8518,{"line":3982,"column":4034,"offset":4035},{"type":27,"value":28},{"start":4042,"end":4043},{"line":3881,"column":21,"offset":3937},{"line":3982,"column":4034,"offset":4035},{"type":27,"value":28},{"type":31,"tagName":245,"properties":4046,"children":4047,"position":4057},{},[4048],{"type":27,"value":4049,"position":4050},"Run it",{"start":4051,"end":4054},{"line":4052,"column":253,"offset":4053},125,8668,{"line":4052,"column":4055,"offset":4056},10,8674,{"start":4058,"end":4060},{"line":4052,"column":21,"offset":4059},8665,{"line":4052,"column":4055,"offset":4056},{"type":27,"value":28},{"type":31,"tagName":4063,"properties":4064,"children":4065,"position":4220},"ol",{},[4066,4067,4147,4148,4183,4184,4219],{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4068,"children":4069,"position":4143},{},[4070,4079,4094,4100,4116,4122,4137],{"type":27,"value":4071,"position":4072},"In the editor's Explorer, press the ",{"start":4073,"end":4076},{"line":4074,"column":253,"offset":4075},127,8679,{"line":4074,"column":4077,"offset":4078},40,8715,{"type":31,"tagName":192,"properties":4080,"children":4081,"position":4090},{},[4082],{"type":27,"value":4083,"position":4084},"Templates",{"start":4085,"end":4087},{"line":4074,"column":3558,"offset":4086},8717,{"line":4074,"column":4088,"offset":4089},51,8726,{"start":4091,"end":4092},{"line":4074,"column":4077,"offset":4078},{"line":4074,"column":3392,"offset":4093},8728,{"type":27,"value":4095,"position":4096}," icon (\"Browse starter templates\") and pick ",{"start":4097,"end":4098},{"line":4074,"column":3392,"offset":4093},{"line":4074,"column":46,"offset":4099},8772,{"type":31,"tagName":192,"properties":4101,"children":4102,"position":4111},{},[4103],{"type":27,"value":196,"position":4104},{"start":4105,"end":4108},{"line":4074,"column":4106,"offset":4107},99,8774,{"line":4074,"column":4109,"offset":4110},112,8787,{"start":4112,"end":4113},{"line":4074,"column":46,"offset":4099},{"line":4074,"column":4114,"offset":4115},114,8789,{"type":27,"value":4117,"position":4118}," under ",{"start":4119,"end":4120},{"line":4074,"column":4114,"offset":4115},{"line":4074,"column":3881,"offset":4121},8796,{"type":31,"tagName":192,"properties":4123,"children":4124,"position":4132},{},[4125],{"type":27,"value":220,"position":4126},{"start":4127,"end":4129},{"line":4074,"column":3982,"offset":4128},8798,{"line":4074,"column":4130,"offset":4131},131,8806,{"start":4133,"end":4134},{"line":4074,"column":3881,"offset":4121},{"line":4074,"column":4135,"offset":4136},133,8808,{"type":27,"value":4138,"position":4139},".",{"start":4140,"end":4141},{"line":4074,"column":4135,"offset":4136},{"line":4074,"column":3587,"offset":4142},8809,{"start":4144,"end":4146},{"line":4074,"column":21,"offset":4145},8676,{"line":4074,"column":3587,"offset":4142},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4149,"children":4150,"position":4179},{},[4151,4158,4173],{"type":27,"value":4152,"position":4153},"Press ",{"start":4154,"end":4156},{"line":25,"column":253,"offset":4155},8813,{"line":25,"column":4055,"offset":4157},8819,{"type":31,"tagName":192,"properties":4159,"children":4160,"position":4169},{},[4161],{"type":27,"value":4162,"position":4163},"Run",{"start":4164,"end":4167},{"line":25,"column":4165,"offset":4166},12,8821,{"line":25,"column":78,"offset":4168},8824,{"start":4170,"end":4171},{"line":25,"column":4055,"offset":4157},{"line":25,"column":3776,"offset":4172},8826,{"type":27,"value":4174,"position":4175},": the candles take the tint, and the counter appears at the top right.",{"start":4176,"end":4177},{"line":25,"column":3776,"offset":4172},{"line":25,"column":3577,"offset":4178},8896,{"start":4180,"end":4182},{"line":25,"column":21,"offset":4181},8810,{"line":25,"column":3577,"offset":4178},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4185,"children":4186,"position":4215},{},[4187,4195,4208],{"type":27,"value":4188,"position":4189},"At the editor's Console prompt, type ",{"start":4190,"end":4192},{"line":24,"column":253,"offset":4191},8900,{"line":24,"column":4193,"offset":4194},41,8937,{"type":31,"tagName":81,"properties":4196,"children":4197,"position":4205},{},[4198],{"type":27,"value":4199,"position":4200},"last 20 trend",{"start":4201,"end":4202},{"line":24,"column":4193,"offset":4194},{"line":24,"column":4203,"offset":4204},56,8952,{"start":4206,"end":4207},{"line":24,"column":4193,"offset":4194},{"line":24,"column":4203,"offset":4204},{"type":27,"value":4209,"position":4210}," to read the state of the last 20 bars.",{"start":4211,"end":4212},{"line":24,"column":4203,"offset":4204},{"line":24,"column":4213,"offset":4214},95,8991,{"start":4216,"end":4218},{"line":24,"column":21,"offset":4217},8897,{"line":24,"column":4213,"offset":4214},{"type":27,"value":28},{"start":4221,"end":4222},{"line":4074,"column":21,"offset":4145},{"line":24,"column":4213,"offset":4214},{"type":27,"value":28},{"type":31,"tagName":245,"properties":4225,"children":4226,"position":4234},{},[4227],{"type":27,"value":4228,"position":4229},"Concepts used",{"start":4230,"end":4232},{"line":4130,"column":253,"offset":4231},8996,{"line":4130,"column":3776,"offset":4233},9009,{"start":4235,"end":4237},{"line":4130,"column":21,"offset":4236},8993,{"line":4130,"column":3776,"offset":4233},{"type":27,"value":28},{"type":31,"tagName":3866,"properties":4240,"children":4241,"position":4368},{},[4242,4243,4289,4290,4337,4338,4367],{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4244,"children":4245,"position":4285},{},[4246,4260,4266,4278],{"type":31,"tagName":102,"properties":4247,"children":4248,"position":4255},{"href":104},[4249],{"type":27,"value":107,"position":4250},{"start":4251,"end":4253},{"line":4135,"column":253,"offset":4252},9014,{"line":4135,"column":252,"offset":4254},9021,{"start":4256,"end":4258},{"line":4135,"column":3357,"offset":4257},9013,{"line":4135,"column":4077,"offset":4259},9050,{"type":27,"value":3910,"position":4261},{"start":4262,"end":4263},{"line":4135,"column":4077,"offset":4259},{"line":4135,"column":4264,"offset":4265},45,9055,{"type":31,"tagName":81,"properties":4267,"children":4268,"position":4275},{},[4269],{"type":27,"value":85,"position":4270},{"start":4271,"end":4272},{"line":4135,"column":4264,"offset":4265},{"line":4135,"column":4273,"offset":4274},62,9072,{"start":4276,"end":4277},{"line":4135,"column":4264,"offset":4265},{"line":4135,"column":4273,"offset":4274},{"type":27,"value":4279,"position":4280},", gates and colour ladders",{"start":4281,"end":4282},{"line":4135,"column":4273,"offset":4274},{"line":4135,"column":4283,"offset":4284},88,9098,{"start":4286,"end":4288},{"line":4135,"column":21,"offset":4287},9011,{"line":4135,"column":4283,"offset":4284},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4291,"children":4292,"position":4333},{},[4293,4309,4315,4327],{"type":31,"tagName":102,"properties":4294,"children":4296,"position":4304},{"href":4295},"../presentation/plotting.md",[4297],{"type":27,"value":4298,"position":4299},"Plotting",{"start":4300,"end":4302},{"line":3587,"column":253,"offset":4301},9102,{"line":3587,"column":4165,"offset":4303},9110,{"start":4305,"end":4307},{"line":3587,"column":3357,"offset":4306},9101,{"line":3587,"column":3558,"offset":4308},9140,{"type":27,"value":3910,"position":4310},{"start":4311,"end":4312},{"line":3587,"column":3558,"offset":4308},{"line":3587,"column":4313,"offset":4314},47,9145,{"type":31,"tagName":81,"properties":4316,"children":4317,"position":4324},{},[4318],{"type":27,"value":130,"position":4319},{"start":4320,"end":4321},{"line":3587,"column":4313,"offset":4314},{"line":3587,"column":4322,"offset":4323},54,9152,{"start":4325,"end":4326},{"line":3587,"column":4313,"offset":4314},{"line":3587,"column":4322,"offset":4323},{"type":27,"value":4328,"position":4329}," outputs that draw only where they are finite",{"start":4330,"end":4331},{"line":3587,"column":4322,"offset":4323},{"line":3587,"column":4106,"offset":4332},9197,{"start":4334,"end":4336},{"line":3587,"column":21,"offset":4335},9099,{"line":3587,"column":4106,"offset":4332},{"type":27,"value":28},{"type":31,"tagName":3871,"properties":4339,"children":4340,"position":4363},{},[4341,4357],{"type":31,"tagName":102,"properties":4342,"children":4343,"position":4352},{"href":148},[4344],{"type":27,"value":151,"position":4345},{"start":4346,"end":4349},{"line":4347,"column":253,"offset":4348},135,9201,{"line":4347,"column":4350,"offset":4351},19,9216,{"start":4353,"end":4355},{"line":4347,"column":3357,"offset":4354},9200,{"line":4347,"column":4203,"offset":4356},9253,{"type":27,"value":4358,"position":4359}," for the anchored label and the text slot",{"start":4360,"end":4361},{"line":4347,"column":4203,"offset":4356},{"line":4347,"column":46,"offset":4362},9294,{"start":4364,"end":4366},{"line":4347,"column":21,"offset":4365},9198,{"line":4347,"column":46,"offset":4362},{"type":27,"value":28},{"start":4369,"end":4370},{"line":4135,"column":21,"offset":4287},{"line":4347,"column":46,"offset":4362},{"quirksMode":4372},false,{"start":4374,"end":4375},{"line":21,"column":21,"offset":22},{"line":4376,"column":21,"offset":4377},136,9295,1791265152147]