[{"data":1,"prerenderedAt":11145},["ShallowReactive",2],{"kscript:faq/general":3},{"slug":4,"filePath":5,"frontmatter":6,"rawMarkdown":9,"tree":10},"faq/general","faq/general.md",{"title":7,"description":8},"General FAQ","Frequently asked questions about kScript, covering everything from basic syntax to advanced topics.","---\ntitle: General FAQ\ndescription: >-\n  Frequently asked questions about kScript, covering everything from basic\n  syntax to advanced topics.\n---\n\n\u003Cdiv class=\"flex gap-3 mb-6\">\n  \u003Cspan class=\"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-yellow-50 text-yellow-600 text-sm font-medium\">\n    FAQ\n  \u003C/span>\n  \u003Cspan class=\"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-gray-100 text-gray-600 text-sm font-medium\">\n    5 min read\n  \u003C/span>\n\u003C/div>\n\n## Getting Started\n\n{% faqgroup %}\n{% faqitem question=\"What is kScript?\" %}\n\nkScript is a TypeScript-based domain-specific language designed for financial data analysis and visualization. It allows you to write scripts for technical analysis, trading indicators, and market data processing with a syntax similar to Pine Script but powered by modern web technologies.\n{% endfaqitem %}\n\n{% faqitem question=\"Do I need to know TypeScript to use kScript?\" %}\n\nNo, you don't need to know TypeScript. kScript has its own simplified syntax. However, familiarity with programming concepts will help you write more complex scripts.\n{% endfaqitem %}\n{% endfaqgroup %}\n\n## Data Sources and Context\n\n{% faqgroup %}\n{% faqitem question=\"What are currentSymbol and currentExchange?\" %}\n\nThese are built-in context variables that automatically contain the current trading pair and exchange being analyzed:\n\n```javascript title=\"Context Variables\" lines wrap\ntimeseries data = ohlcv(currentSymbol, currentExchange)\nprint(\"Analyzing:\", currentSymbol, \"on\", currentExchange)\n\n{% endfaqitem %}\n\n{% faqitem question=\"Why do I get NaN when accessing historical data in early bars?\" %}\n\nkScript executes per-bar, meaning on each bar, only data up to that point is available. When you access historical data like `data[5]`, the first 4 bars will return NaN because there aren't 5 bars of history yet.\n\n**Solution:** Always check for NaN or ensure enough historical data exists before using it in calculations. You can use the `barIndex` to make sure you're not accessing data too early.\n```\n```javascript title=\"Historical NaN\" lines wrap\ntimeseries trade = ohlcv(currentSymbol, currentExchange)\n\n// Accessing 5 bars back\nprint(trade[5])\n\n// Output on bars 0-3: NaN (not enough history)\n// Output on bar 4 onwards: actual data from 5 bars ago\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I analyze multiple symbols in one script?\" %}\n\nYes, but you need to explicitly specify each symbol:\n```\n```javascript title=\"Multiple Symbols\" lines wrap\ntimeseries btc_data = ohlcv(\"BTCUSDT\", \"BINANCE\")\ntimeseries eth_data = ohlcv(\"ETHUSDT\", \"BINANCE\")\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I write a script without source data?\" %}\n\n**No**, you cannot run a script without source data. kScript is designed for time-series analysis and requires data to create the timeline for bar-by-bar execution. Even if you declare sources but they return empty data, the script won't run because there are no bars to process.\n```\n```javascript title=\"Script Without Source Data\" lines wrap\n// ✗ Won't produce any output\ndefine(\"Empty Script\", \"onchart\", true)\nvar value = 100\nplotLine(value)  // Never executes because there are no bars\n\n// ✓ Correct - with data source\ndefine(\"Working Script\", \"onchart\", true)\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\nvar value = ohlcvData.close\nplotLine(value)  // Executes for each bar\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I subscribe to sources inside control structures (if/while/for)?\" %}\n\n**No**, you cannot call source functions inside control structures. Source subscriptions must be declared at the root level of your script in `timeseries` declarations.\n\n**Why:** Sources need to be fetched and prepared before the script can execute. The runtime extracts source calls during the initialization phase, before the bar-by-bar loop begins. Dynamic source subscription during control flow would require async operations that aren't supported.\n```\n```javascript title=\"Source Calls in Control Structures\" lines wrap\n// ✓ Correct - at root level\ntimeseries ohlcv = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// ✗ Wrong - inside control structure\nif (someCondition) {\n  timeseries ohlcv = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")  // Won't work\n}\n\n{% endfaqitem %}\n\n{% faqitem question=\"How do I access orderbook heatmap raw data?\" %}\n\nOrderbook data is accessed through specialized built-in functions that operate on orderbook timeseries sources. The data structure is `[timestamp, price1, amount1, price2, amount2, ...]` where positive amounts are bids and negative amounts are asks.\n\n**Available functions:**\n```\n- `sumBids(source, depthPct=10)` - Sum of all bid amounts within depth percentage\n- `sumAsks(source, depthPct=10)` - Sum of all ask amounts within depth percentage\n- `maxBidAmount(source, depthPct=10)` - Maximum bid amount within depth\n- `maxAskAmount(source, depthPct=10)` - Maximum ask amount within depth\n- `minBidAmount(source, depthPct=10)` - Minimum bid amount within depth\n- `minAskAmount(source, depthPct=10)` - Minimum ask amount within depth\n\n```javascript title=\"Orderbook Access\" lines wrap\ntimeseries orderbookData = source(\"orderbook\", \"BTCUSDT\", \"BINANCE\")\n\nvar totalBids = sumBids(orderbookData, depthPct=5)\nvar totalAsks = sumAsks(orderbookData, depthPct=5)\nvar bidAskRatio = totalBids / totalAsks\n\nplotLine(value=bidAskRatio, width=2, colors=[\"blue\"], label=[\"Bid/Ask Ratio\"], desc=[\"Bid Ask Ratio\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"How does kScript handle data gaps and interpolation?\" %}\n\nkScript fills data gaps with `NaN` values. The system creates a continuous timestamp array based on the interval, and when fetched data doesn't match the timeline length, gaps are pre-filled with `NaN`.\n\n**Important:** For line plots, kScript will interpolate to connect points across gaps. For other use cases, if you need interpolation (forward fill, linear interpolation, etc.), you must implement it manually using custom logic.\n```\n```javascript title=\"Data Gaps and Interpolation\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n static lastValue = 0\n\nvar currentValue = ohlcvData.close\nif (isnan(currentValue)) {\n  currentValue = lastValue  // Forward fill\n} else {\n  lastValue = currentValue\n}\n\nplotLine(value=currentValue, width=2, colors=[\"blue\"], label=[\"Current Value\"], desc=[\"Current Value\"])\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Technical Indicators\n\n{% faqgroup %}\n{% faqitem question=\"Why am I getting NaN values in my calculations?\" %}\n\nNaN (Not a Number) usually occurs when:\n\n- There's insufficient historical data for the calculation\n- You're dividing by zero\n- The data source has gaps\n\n**Solution:** Check for NaN values:\n\n```javascript title=\"NaN Handling\" lines wrap\nvar safe_value = !isnan(sma_value) ? sma_value : 0\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Plotting and Visualization\n\n{% faqgroup %}\n{% faqitem question=\"How do I plot multiple indicators on the same chart?\" %}\n\n```javascript title=\"Multiple Plots\" lines wrap\nplotLine(value=sma20, width=1, colors=[\"blue\"], label=[\"SMA 20\"], desc=[\"20-period Simple Moving Average\"])\nplotLine(value=sma50, width=2, colors=[\"red\"], label=[\"SMA 50\"], desc=[\"50-period Simple Moving Average\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I plot conditional signals?\" %}\n\nYes, use ternary operators or conditional values:\n```\n```javascript title=\"Conditional Plot\" lines wrap\nvar buy_signal = crossover(sma_fast, sma_slow)\nplotShape(value=buy_signal ? data.low : na, shape=\"circle\", width=2, colors=[\"green\"], label=[\"Buy Signal\"], desc=[\"Buy Signal Marker\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"How do I change plot colors dynamically?\" %}\n\nUse the `colorIndex` parameter:\n```\n```javascript title=\"Dynamic Colors\" lines wrap\nvar trend = sma_fast > sma_slow ? 1 : 0\nplotLine(value=data.close, width=2, colors=[\"red\", \"green\"], colorIndex=trend, label=[\"Price\"], desc=[\"Price with Dynamic Colors\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I call plot functions inside conditionals (if-else) or loops?\" %}\n\n**Conditionals (if-else): Yes** - You can call plot functions inside if-else statements. The plot will execute conditionally based on the condition at each bar.\n\n**Loops: Not allowed** - Plotting inside loops would create multiple plot outputs per bar, which is not the intended behavior and may cause unexpected results.\n```\n```javascript title=\"Plot Calls in Conditionals and Loops\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// ✓ Allowed in conditionals\nif (ohlcv.close > ohlcv.open) {\n  plotLine(value=ohlcvData.close, width=2, colors=[\"green\"], label=[\"Bullish\"], desc=[\"Bullish Price\"])\n} else {\n  plotLine(value=ohlcvData.close, width=2, colors=[\"red\"], label=[\"Bearish\"], desc=[\"Bearish Price\"])\n}\n\n// ✗ Not recommended in loops\nfor (var i = 0; i \u003C 10; i++) {\n  plotLine(value=i, width=1, colors=[\"blue\"], label=[\"Loop\"], desc=[\"Loop Value\"])  // Creates multiple plots per bar\n}\n\n{% endfaqitem %}\n\n{% faqitem question='Difference between plotLine() and plot(plotType=\"line\")?' %}\n\nThere is **NO functional difference**. `plot()` with `plotType=\"line\"` is simply an alias that internally calls `plotLine()`. The `plot()` function is a generic interface that can create different plot types by changing the `plotType` parameter.\n\n**Available plot types via `plot()`:**\n```\n- `plotType=\"line\"` or `\"spline\"` -> calls `plotLine()`\n- `plotType=\"bar\"` -> calls `plotBar()`\n- `plotType=\"candle\"` -> calls `plotCandle()`\n- `plotType=\"point\"` -> calls `plotShape()`\n\n```javascript title=\"plotLine() vs plot()\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// These three are identical\nplotLine(value=ohlcvData.close, width=2, colors=[\"blue\"], label=[\"Price\"], desc=[\"Close Price\"])\nplot(value=ohlcvData.close, plotType=\"line\", width=2, colors=[\"blue\"], label=[\"Price\"], desc=[\"Close Price\"])\nplot(value=ohlcvData.close, plotType=\"spline\", width=2, colors=[\"blue\"], label=[\"Price\"], desc=[\"Close Price\"])\n\n// plot() can also create other types\nplot(value=ohlcvData.close, plotType=\"bar\", width=1, colors=[\"green\"], label=[\"Volume\"], desc=[\"Volume Bars\"])\nplot(value=[ohlcvData.open, ohlcvData.high, ohlcvData.low, ohlcvData.close], plotType=\"candle\", width=1, colors=[\"red\", \"green\"], label=[\"OHLC\"], desc=[\"OHLC Candlestick\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"How does the positioning system work for shape and text plots?\" %}\n\nShape and text plots use a coordinate-based positioning system with price (y-axis) and time (x-axis):\n```\n- **X-axis (Time):** Automatically set to the current bar timestamp. For `plotRange()`, you can specify custom timestamps for `time1` and `time2`.\n- **Y-axis (Price):** Explicitly provided as the `price` or `value` parameter.\n- **Text alignment:** `xAlign` and `yAlign` parameters affect rendering relative to the anchor point.\n\n```javascript title=\"Shape and Text Positioning\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// Plot shape at high price\nif (ohlcvData.close > ohlcvData.open) {\n  plotShape(value=ohlcvData.high, shape=\"circle\", width=3, colors=[\"green\"], label=[\"Bullish\"], desc=[\"Bullish Signal\"])\n}\n\n// Plot text at specific price level\nplotText(\"Signal\", \"yellow\", ohlcvData.close, size=12, fill=true, backgroundColor=\"black\")\n\n// Plot range between two points\nvar prevTime = time() - (60 * 60 * 1000)  // 1 hour ago\nplotRange(prevTime, ohlcvData.low, time(), ohlcvData.high, color=\"blue\", fillColor=\"rgba(0,0,255,0.2)\")\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Common Issues and Troubleshooting\n\n{% faqgroup %}\n{% faqitem question=\"My script isn't displaying anything. What's wrong?\" %}\n\nCheck:\n\n- You have a proper `define()` statement\n- You're plotting something with `plotLine()`, `plotBar()`, etc.\n- Your data source is valid. Empty data sources can lead to empty charts.\n- Check the Problem pop up for error messages\n\n\u003Cimg src=\"/images/kScript/error_output.png\" alt=\"kScript error output\" style=\"margin-top: 1rem; border-radius: 8px; max-width: 100%\" />\n{% endfaqitem %}\n\n{% faqitem question=\"Undefined identifier errors\" %}\n\nMake sure:\n\n- Variables are declared before use\n- Variable names are spelled correctly\n- You're using proper scope (variables declared in functions are local)\n{% endfaqitem %}\n\n{% faqitem question=\"How do I debug my kScript code?\" %}\n\nUse `print()` and `printTimeSeries()` statements to output values:\n\n```javascript title=\"Debugging\" lines wrap\nprint(\"Current price:\", data.close)\nprint(\"SMA value:\", sma_value)\nprintTimeSeries(data, priceIndex=4)  // Print close prices\n\n{% endfaqitem %}\n\n{% faqitem question=\"Why is my indicator not updating in real-time?\" %}\n\nEnsure you're:\n```\n- Using timeseries data correctly\n- Not using static calculations where dynamic ones are needed\n- Plotting the results properly\n{% endfaqitem %}\n\n{% faqitem question=\"Can I use null instead of na for empty data?\" %}\n\n**No**, using `null` will cause plot values to become `0` because the runtime's `Number(null)` returns `0`, not `NaN`. This means your \"empty\" data points will plot as zero values instead of gaps.\n\n**Solution:** Use `NaN` to represent missing data. The runtime properly handles `NaN` as missing data, and plot functions will show gaps where `NaN` values occur.\n\n```javascript title=\"Null vs NaN\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// ✗ Wrong - null becomes 0\nvar value1 = isnan(ohlcvData.close) ? null : ohlcvData.close\nplotLine(value1)  // Will plot 0 for missing data\n\n// ✓ Correct - use NaN\nvar value2 = isnan(ohlcvData.close) ? NaN : ohlcvData.close\nplotLine(value2)  // Will show gap for missing data\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Language Features and Syntax\n\n{% faqgroup %}\n{% faqitem question=\"Does kScript support switch statements?\" %}\n\n**Yes**, since v3. `switch` is first-match with no fallthrough (no `break` needed): see [control flow](../functions/control-flow.md).\n\n```javascript title=\"Switch (v3)\" lines wrap\nswitch (signal) {\n  case \"buy\": {\n    plotShape(value=data.low, shape=\"arrowUp\", location=\"belowBar\", colors=[\"#16a34a\"])\n  }\n  case \"sell\": {\n    plotShape(value=data.high, shape=\"arrowDown\", location=\"aboveBar\", colors=[\"#dc2626\"])\n  }\n  default: {\n    // no-op\n  }\n}\n\n`if-else` chains remain fully supported:\n```\n```javascript title=\"Equivalent if-else\" lines wrap\n\n// ✓ Use if-else chains instead\nif (signal == \"buy\") {\n  plotShape(value=data.low, shape=\"circle\", width=2, colors=[\"green\"], label=[\"Buy\"], desc=[\"Buy Signal\"])\n} else if (signal == \"sell\") {\n  plotShape(value=data.high, shape=\"circle\", width=2, colors=[\"red\"], label=[\"Sell\"], desc=[\"Sell Signal\"])\n} else if (signal == \"hold\") {\n  // Do nothing\n} else {\n  // Default action\n}\n\n{% endfaqitem %}\n\n{% faqitem question=\"Are objects and arrays supported in kScript?\" %}\n\n**Arrays: Partial support** - Arrays are supported with type restrictions. Arrays must contain elements of the same type (homogeneous arrays).\n\n**Supported array types:**\n```\n- `number[]` - Array of numbers\n- `string[]` - Array of strings\n- `any[]` - Generic arrays (for mixed timeseries/number)\n\n**Objects: full support since v3** via user-defined types and maps. Declare a struct with `type`, construct with `TypeName.new(...)`, and store structs in collections: see [user-defined types](../core-concepts/user-defined-types.md) and [collections](../core-concepts/collections.md). Anonymous `{...}` literals remain limited to specific call options (e.g. `input()` constraints and drawing `opts`).\n\n```javascript title=\"Structs (v3)\" lines wrap\ntype Zone { top: number, bottom: number, touches: number }\npersist zones = []\nzones.push(Zone.new(top=high, bottom=low, touches=0))\n```\n```javascript title=\"Arrays and Objects\" lines wrap\n// ✓ Homogeneous arrays\nvar colors = [\"red\", \"green\", \"blue\"]\nvar prices = [100, 200, 300]\n\n// ✓ Array of timeseries values\nvar ohlc = [ohlcv.open, ohlcv.high, ohlcv.low, ohlcv.close]\nplotCandle(value=ohlc, width=1, colors=[\"green\", \"red\"], label=[\"OHLC\"], desc=[\"OHLC Candlestick\"])\n\n// ✗ Mixed type arrays not allowed\nvar mixed = [100, \"hello\", true]  // Error\n\n// ✓ Object for constraints (limited support)\nvar userLength = input(\"Length\", \"number\", defaultValue=14, constraints={min:1, max:100})\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can a script get signals from another script or indicator?\" %}\n\n**No**, kScript v3 does NOT currently support cross-script communication. Each script runs in isolation and cannot access data or signals from other scripts. Each script has its own runtime context, data manager, variable environment, and series storage.\n\n**Note:** Cross-script communication will be added as a feature soon.\n\n**Workaround:** Use shared data sources. Both scripts can subscribe to the same source data and process it independently. Alternatively, combine the logic of multiple indicators into a single script.\n```\n```javascript title=\"Cross-Script Signals\" lines wrap\n// ✗ Cannot access signals from other scripts\n// var otherRSI = getScriptValue(\"RSI Indicator\", \"rsi\")  // Not supported\n\n// ✓ Workaround: Combine logic in a single script\ndefine(\"Combined Indicator + Strategy\", \"onchart\", true)\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// Calculate indicator\nvar rsiData = rsi(ohlcvData.close, period=14)\n\n// Use indicator for strategy\nif (rsiData > 70) {\n  plotShape(value=ohlcvData.high, shape=\"circle\", width=5, colors=[\"red\"], label=[\"Overbought\"], desc=[\"Overbought Signal\"])\n} else if (rsiData \u003C 30) {\n  plotShape(value=ohlcvData.low, shape=\"circle\", width=5, colors=[\"green\"], label=[\"Oversold\"], desc=[\"Oversold Signal\"])\n}\n\nplotLine(value=rsiData, width=2, colors=[\"purple\"], label=[\"RSI\"], desc=[\"Relative Strength Index\"])\n\n{% endfaqitem %}\n\n{% faqitem question=\"Can I use timeseries in custom functions and control structures?\" %}\n\n**Yes and No**, with important constraints:\n\n**Custom Functions:**\n```\n- Timeseries CAN be passed as parameters to custom functions\n- Inside functions, timeseries are automatically indexed at the current bar to get numeric values. However, the behavior will not be intended, as the timeseries will be treated as a single value. For example, OHLCV timeseries data will be treated as a singular open data value.\n\n**Control Structures:**\n\n- Timeseries cannot be declared inside control structures (if/for/while)\n\n```javascript title=\"Timeseries in Custom Functions\" lines wrap\ntimeseries ohlcvData = source(\"ohlcv\", \"BTCUSDT\", \"BINANCE\")\n\n// Custom function with timeseries parameter\nfunc calculateRange(data) {\n  var high = data.high\n  var low = data.low\n  return high - low\n}\n\n// Use in control structure\nif (ohlcvData.close > ohlcvData.open) {\n  var range = calculateRange(ohlcvData)\n  plotLine(value=range, width=2, colors=[\"green\"], label=[\"Range\"], desc=[\"Price Range\"])\n} else {\n  plotLine(value=0, width=2, colors=[\"red\"], label=[\"Zero\"], desc=[\"Zero Line\"])\n}\n\n{% endfaqitem %}\n\n{% faqitem question=\"Does kScript support alerts?\" %}\n\n**No**, kScript does not currently support alerts. Alert functionality is yet to be implemented for kScripts.\n{% endfaqitem %}\n\n{% faqitem question=\"Can trades be executed from kScript?\" %}\n\n**No**, kScript does not support trade execution. kScript is designed for analysis and visualization purposes only. You cannot place orders, execute trades, or interact with exchange APIs for trading directly from kScript.\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Performance and Optimization\n\n{% faqgroup %}\n{% faqitem question=\"My script is running slowly. How can I optimize it?\" %}\n\n- Use `static` for constants\n- Avoid redundant calculations\n- Use built-in functions instead of custom implementations\n- Limit historical data lookback when possible\n\n```javascript title=\"Optimization\" lines wrap\n// Good: Calculate once\nstatic fibonacci_level = 0.618\n\n// Avoid: Recalculating every bar\nvar fibonacci_level = 618 / 1000\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Common Error Messages\n\n{% faqgroup %}\n{% faqitem question='What does \"source must be a timeseries\" mean?' %}\n\nYou're passing a regular variable to a function that expects timeseries data:\n\n```javascript title=\"Source Timeseries Error\" lines wrap\nvar number = 42\nvar sma_val = sma(number, 14)  // Wrong: number is not timeseries\n\ntimeseries prices = ohlcv(currentSymbol, currentExchange)\nvar sma_val = sma(prices.close, 14)  // Correct\n\n{% endfaqitem %}\n{% endfaqgroup %}\n```\n## Still Have Questions?\n\nCan't find what you're looking for? We're here to help!\n\nJoin the discussion in [**#kscript-floor**](https://discord.gg/hjQRzQtbNu) or check out the [kScript Reference](/kscript/reference/quick-reference) for more details.\n",{"type":11,"children":12,"data":11138,"position":11140},"root",[13,100,101,118,119,162,163,179,180,183,184,187,188,203,204,518,519,710,711,970,971,1392,1393,1684,1685,1866,1867,2308,2309,2654,2655,2672,2673,2676,2677,2680,2681,2696,2697,2755,2756,2787,2788,2913,2914,2930,2931,2934,2935,2938,2939,3218,3219,3479,3480,3810,3811,4551,4552,4742,4743,5432,5433,5665,5666,6140,6141,6158,6159,6162,6163,6320,6321,6396,6397,6693,6694,6697,6698,6821,6822,6903,6904,7171,7172,7188,7189,7192,7193,7196,7197,7287,7288,7557,7558,8048,8049,8141,8142,8319,8320,8424,8425,9061,9062,9745,9746,9786,9787,9809,9810,9834,9835,10528,10529,10545,10546,10549,10550,10553,10554,10643,10644,10791,10792,10809,10810,10813,10814,10817,10818,10833,10834,11035,11036,11052,11053,11067,11068],{"type":14,"tagName":15,"properties":16,"children":21,"position":95},"element","div",{"className":17},[18,19,20],"flex","gap-3","mb-6",[22,34,63,69,88],{"type":23,"value":24,"position":25},"text","\n  ",{"start":26,"end":30},{"line":27,"column":28,"offset":29},1,30,29,{"line":31,"column":32,"offset":33},2,3,32,{"type":14,"tagName":35,"properties":36,"children":48,"position":58},"span",{"className":37},[38,39,40,41,42,43,44,45,46,47],"inline-flex","items-center","gap-1.5","px-3","py-1","rounded-full","bg-yellow-50","text-yellow-600","text-sm","font-medium",[49],{"type":23,"value":50,"position":51},"\n    FAQ\n  ",{"start":52,"end":55},{"line":31,"column":53,"offset":54},122,151,{"line":56,"column":32,"offset":57},4,162,{"start":59,"end":60},{"line":31,"column":32,"offset":33},{"line":56,"column":61,"offset":62},10,169,{"type":23,"value":24,"position":64},{"start":65,"end":66},{"line":56,"column":61,"offset":62},{"line":67,"column":32,"offset":68},5,172,{"type":14,"tagName":35,"properties":70,"children":74,"position":84},{"className":71},[38,39,40,41,42,43,72,73,46,47],"bg-gray-100","text-gray-600",[75],{"type":23,"value":76,"position":77},"\n    5 min read\n  ",{"start":78,"end":81},{"line":67,"column":79,"offset":80},119,288,{"line":82,"column":32,"offset":83},7,306,{"start":85,"end":86},{"line":67,"column":32,"offset":68},{"line":82,"column":61,"offset":87},313,{"type":23,"value":89,"position":90},"\n",{"start":91,"end":92},{"line":82,"column":61,"offset":87},{"line":93,"column":27,"offset":94},8,314,{"start":96,"end":98},{"line":27,"column":27,"offset":97},0,{"line":93,"column":82,"offset":99},320,{"type":23,"value":89},{"type":14,"tagName":102,"properties":103,"children":105,"position":114},"h2",{"id":104},"getting-started",[106],{"type":23,"value":107,"position":108},"Getting Started",{"start":109,"end":111},{"line":61,"column":56,"offset":110},325,{"line":61,"column":112,"offset":113},19,340,{"start":115,"end":117},{"line":61,"column":27,"offset":116},322,{"line":61,"column":112,"offset":113},{"type":23,"value":89},{"type":14,"tagName":120,"properties":121,"children":122},"faqgroup",{},[123,143],{"type":14,"tagName":124,"properties":125,"children":127},"faqitem",{"question":126},"What is kScript?",[128],{"type":14,"tagName":129,"properties":130,"children":131,"position":140},"p",{},[132],{"type":23,"value":133,"position":134},"kScript is a TypeScript-based domain-specific language designed for financial data analysis and visualization. It allows you to write scripts for technical analysis, trading indicators, and market data processing with a syntax similar to Pine Script but powered by modern web technologies.",{"start":135,"end":137},{"line":112,"column":27,"offset":136},404,{"line":112,"column":138,"offset":139},290,693,{"start":141,"end":142},{"line":112,"column":27,"offset":136},{"line":112,"column":138,"offset":139},{"type":14,"tagName":124,"properties":144,"children":146},{"question":145},"Do I need to know TypeScript to use kScript?",[147],{"type":14,"tagName":129,"properties":148,"children":149,"position":159},{},[150],{"type":23,"value":151,"position":152},"No, you don't need to know TypeScript. kScript has its own simplified syntax. However, familiarity with programming concepts will help you write more complex scripts.",{"start":153,"end":156},{"line":154,"column":27,"offset":155},28,787,{"line":154,"column":157,"offset":158},167,953,{"start":160,"end":161},{"line":154,"column":27,"offset":155},{"line":154,"column":157,"offset":158},{"type":23,"value":89},{"type":14,"tagName":102,"properties":164,"children":166,"position":175},{"id":165},"data-sources-and-context",[167],{"type":23,"value":168,"position":169},"Data Sources and Context",{"start":170,"end":173},{"line":171,"column":56,"offset":172},36,997,{"line":171,"column":154,"offset":174},1021,{"start":176,"end":178},{"line":171,"column":27,"offset":177},994,{"line":171,"column":154,"offset":174},{"type":23,"value":89},{"type":14,"tagName":15,"properties":181,"children":182},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":185,"children":186},{},[],{"type":23,"value":89},{"type":14,"tagName":129,"properties":189,"children":190,"position":200},{},[191],{"type":23,"value":192,"position":193},"These are built-in context variables that automatically contain the current trading pair and exchange being analyzed:",{"start":194,"end":197},{"line":195,"column":27,"offset":196},45,1112,{"line":195,"column":198,"offset":199},118,1229,{"start":201,"end":202},{"line":195,"column":27,"offset":196},{"line":195,"column":198,"offset":199},{"type":23,"value":89},{"type":11,"children":205},[206],{"type":14,"tagName":207,"properties":208,"children":213,"data":-1},"pre",{"class":209,"style":210,"tabindex":211,"title":212},"shiki shiki-themes github-dark github-light","--shiki-dark:#e1e4e8;--shiki-light:#24292e;--shiki-dark-bg:#24292e;--shiki-light-bg:#fff","0","Context Variables",[214],{"type":14,"tagName":215,"properties":216,"children":217},"code",{},[218,245,246,280,281,284,285,288,289,316,317,320,321,324,325,328,329,363,364,367,368,371,372,437,438,441,442],{"type":14,"tagName":35,"properties":219,"children":221},{"class":220},"line",[222,228,234,240],{"type":14,"tagName":35,"properties":223,"children":225},{"style":224},"--shiki-dark:#E1E4E8;--shiki-light:#24292E",[226],{"type":23,"value":227},"timeseries data ",{"type":14,"tagName":35,"properties":229,"children":231},{"style":230},"--shiki-dark:#F97583;--shiki-light:#D73A49",[232],{"type":23,"value":233},"=",{"type":14,"tagName":35,"properties":235,"children":237},{"style":236},"--shiki-dark:#B392F0;--shiki-light:#6F42C1",[238],{"type":23,"value":239}," ohlcv",{"type":14,"tagName":35,"properties":241,"children":242},{"style":224},[243],{"type":23,"value":244},"(currentSymbol, currentExchange)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":247,"children":248},{"class":220},[249,254,259,265,270,275],{"type":14,"tagName":35,"properties":250,"children":251},{"style":236},[252],{"type":23,"value":253},"print",{"type":14,"tagName":35,"properties":255,"children":256},{"style":224},[257],{"type":23,"value":258},"(",{"type":14,"tagName":35,"properties":260,"children":262},{"style":261},"--shiki-dark:#9ECBFF;--shiki-light:#032F62",[263],{"type":23,"value":264},"\"Analyzing:\"",{"type":14,"tagName":35,"properties":266,"children":267},{"style":224},[268],{"type":23,"value":269},", currentSymbol, ",{"type":14,"tagName":35,"properties":271,"children":272},{"style":261},[273],{"type":23,"value":274},"\"on\"",{"type":14,"tagName":35,"properties":276,"children":277},{"style":224},[278],{"type":23,"value":279},", currentExchange)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":282,"children":283},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":286,"children":287},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":290,"children":291},{"class":220},[292,297,302,307,311],{"type":14,"tagName":35,"properties":293,"children":294},{"style":224},[295],{"type":23,"value":296},"{",{"type":14,"tagName":35,"properties":298,"children":299},{"style":230},[300],{"type":23,"value":301},"%",{"type":14,"tagName":35,"properties":303,"children":304},{"style":224},[305],{"type":23,"value":306}," endfaqitem ",{"type":14,"tagName":35,"properties":308,"children":309},{"style":230},[310],{"type":23,"value":301},{"type":14,"tagName":35,"properties":312,"children":313},{"style":224},[314],{"type":23,"value":315},"}",{"type":23,"value":89},{"type":14,"tagName":35,"properties":318,"children":319},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":322,"children":323},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":326,"children":327},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":330,"children":331},{"class":220},[332,336,340,345,349,354,359],{"type":14,"tagName":35,"properties":333,"children":334},{"style":224},[335],{"type":23,"value":296},{"type":14,"tagName":35,"properties":337,"children":338},{"style":230},[339],{"type":23,"value":301},{"type":14,"tagName":35,"properties":341,"children":342},{"style":224},[343],{"type":23,"value":344}," faqitem question",{"type":14,"tagName":35,"properties":346,"children":347},{"style":230},[348],{"type":23,"value":233},{"type":14,"tagName":35,"properties":350,"children":351},{"style":261},[352],{"type":23,"value":353},"\"Why do I get NaN when accessing historical data in early bars?\"",{"type":14,"tagName":35,"properties":355,"children":356},{"style":230},[357],{"type":23,"value":358}," %",{"type":14,"tagName":35,"properties":360,"children":361},{"style":224},[362],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":365,"children":366},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":369,"children":370},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":373,"children":374},{"class":220},[375,380,385,390,395,400,406,411,416,421,426,431],{"type":14,"tagName":35,"properties":376,"children":377},{"style":224},[378],{"type":23,"value":379},"kScript executes per",{"type":14,"tagName":35,"properties":381,"children":382},{"style":230},[383],{"type":23,"value":384},"-",{"type":14,"tagName":35,"properties":386,"children":387},{"style":224},[388],{"type":23,"value":389},"bar, meaning on each bar, only data up to that point is available. When you access historical data like ",{"type":14,"tagName":35,"properties":391,"children":392},{"style":261},[393],{"type":23,"value":394},"`data[5]`",{"type":14,"tagName":35,"properties":396,"children":397},{"style":224},[398],{"type":23,"value":399},", the first ",{"type":14,"tagName":35,"properties":401,"children":403},{"style":402},"--shiki-dark:#79B8FF;--shiki-light:#005CC5",[404],{"type":23,"value":405},"4",{"type":14,"tagName":35,"properties":407,"children":408},{"style":224},[409],{"type":23,"value":410}," bars will ",{"type":14,"tagName":35,"properties":412,"children":413},{"style":230},[414],{"type":23,"value":415},"return",{"type":14,"tagName":35,"properties":417,"children":418},{"style":402},[419],{"type":23,"value":420}," NaN",{"type":14,"tagName":35,"properties":422,"children":423},{"style":224},[424],{"type":23,"value":425}," because there aren",{"type":14,"tagName":35,"properties":427,"children":428},{"style":261},[429],{"type":23,"value":430},"'t 5 bars of history yet",{"type":14,"tagName":35,"properties":432,"children":434},{"style":433},"--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;--shiki-light:#B31D28;--shiki-light-font-style:italic",[435],{"type":23,"value":436},".",{"type":23,"value":89},{"type":14,"tagName":35,"properties":439,"children":440},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":443,"children":444},{"class":220},[445,450,455,460,464,469,474,479,484,489,494,499,504,509,514],{"type":14,"tagName":35,"properties":446,"children":447},{"style":230},[448],{"type":23,"value":449},"**",{"type":14,"tagName":35,"properties":451,"children":452},{"style":236},[453],{"type":23,"value":454},"Solution",{"type":14,"tagName":35,"properties":456,"children":457},{"style":224},[458],{"type":23,"value":459},":",{"type":14,"tagName":35,"properties":461,"children":462},{"style":230},[463],{"type":23,"value":449},{"type":14,"tagName":35,"properties":465,"children":466},{"style":224},[467],{"type":23,"value":468}," Always check for ",{"type":14,"tagName":35,"properties":470,"children":471},{"style":402},[472],{"type":23,"value":473},"NaN",{"type":14,"tagName":35,"properties":475,"children":476},{"style":224},[477],{"type":23,"value":478}," or ensure enough historical data exists before ",{"type":14,"tagName":35,"properties":480,"children":481},{"style":230},[482],{"type":23,"value":483},"using",{"type":14,"tagName":35,"properties":485,"children":486},{"style":402},[487],{"type":23,"value":488}," it",{"type":14,"tagName":35,"properties":490,"children":491},{"style":230},[492],{"type":23,"value":493}," in",{"type":14,"tagName":35,"properties":495,"children":496},{"style":224},[497],{"type":23,"value":498}," calculations. You can use the ",{"type":14,"tagName":35,"properties":500,"children":501},{"style":261},[502],{"type":23,"value":503},"`barIndex`",{"type":14,"tagName":35,"properties":505,"children":506},{"style":224},[507],{"type":23,"value":508}," to make sure you",{"type":14,"tagName":35,"properties":510,"children":511},{"style":261},[512],{"type":23,"value":513},"'re not accessing data too early",{"type":14,"tagName":35,"properties":515,"children":516},{"style":433},[517],{"type":23,"value":436},{"type":23,"value":89},{"type":11,"children":520},[521],{"type":14,"tagName":207,"properties":522,"children":524,"data":-1},{"class":209,"style":210,"tabindex":211,"title":523},"Historical NaN",[525],{"type":14,"tagName":215,"properties":526,"children":527},{},[528,548,549,552,553,562,563,585,586,589,590,598,599,607,608,611,612,615,616,639,640,643,644,647,648,651,652,684,685,688,689,692,693],{"type":14,"tagName":35,"properties":529,"children":530},{"class":220},[531,536,540,544],{"type":14,"tagName":35,"properties":532,"children":533},{"style":224},[534],{"type":23,"value":535},"timeseries trade ",{"type":14,"tagName":35,"properties":537,"children":538},{"style":230},[539],{"type":23,"value":233},{"type":14,"tagName":35,"properties":541,"children":542},{"style":236},[543],{"type":23,"value":239},{"type":14,"tagName":35,"properties":545,"children":546},{"style":224},[547],{"type":23,"value":244},{"type":23,"value":89},{"type":14,"tagName":35,"properties":550,"children":551},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":554,"children":555},{"class":220},[556],{"type":14,"tagName":35,"properties":557,"children":559},{"style":558},"--shiki-dark:#6A737D;--shiki-light:#6A737D",[560],{"type":23,"value":561},"// Accessing 5 bars back",{"type":23,"value":89},{"type":14,"tagName":35,"properties":564,"children":565},{"class":220},[566,570,575,580],{"type":14,"tagName":35,"properties":567,"children":568},{"style":236},[569],{"type":23,"value":253},{"type":14,"tagName":35,"properties":571,"children":572},{"style":224},[573],{"type":23,"value":574},"(trade[",{"type":14,"tagName":35,"properties":576,"children":577},{"style":402},[578],{"type":23,"value":579},"5",{"type":14,"tagName":35,"properties":581,"children":582},{"style":224},[583],{"type":23,"value":584},"])",{"type":23,"value":89},{"type":14,"tagName":35,"properties":587,"children":588},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":591,"children":592},{"class":220},[593],{"type":14,"tagName":35,"properties":594,"children":595},{"style":558},[596],{"type":23,"value":597},"// Output on bars 0-3: NaN (not enough history)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":600,"children":601},{"class":220},[602],{"type":14,"tagName":35,"properties":603,"children":604},{"style":558},[605],{"type":23,"value":606},"// Output on bar 4 onwards: actual data from 5 bars ago",{"type":23,"value":89},{"type":14,"tagName":35,"properties":609,"children":610},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":613,"children":614},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":617,"children":618},{"class":220},[619,623,627,631,635],{"type":14,"tagName":35,"properties":620,"children":621},{"style":224},[622],{"type":23,"value":296},{"type":14,"tagName":35,"properties":624,"children":625},{"style":230},[626],{"type":23,"value":301},{"type":14,"tagName":35,"properties":628,"children":629},{"style":224},[630],{"type":23,"value":306},{"type":14,"tagName":35,"properties":632,"children":633},{"style":230},[634],{"type":23,"value":301},{"type":14,"tagName":35,"properties":636,"children":637},{"style":224},[638],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":641,"children":642},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":645,"children":646},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":649,"children":650},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":653,"children":654},{"class":220},[655,659,663,667,671,676,680],{"type":14,"tagName":35,"properties":656,"children":657},{"style":224},[658],{"type":23,"value":296},{"type":14,"tagName":35,"properties":660,"children":661},{"style":230},[662],{"type":23,"value":301},{"type":14,"tagName":35,"properties":664,"children":665},{"style":224},[666],{"type":23,"value":344},{"type":14,"tagName":35,"properties":668,"children":669},{"style":230},[670],{"type":23,"value":233},{"type":14,"tagName":35,"properties":672,"children":673},{"style":261},[674],{"type":23,"value":675},"\"Can I analyze multiple symbols in one script?\"",{"type":14,"tagName":35,"properties":677,"children":678},{"style":230},[679],{"type":23,"value":358},{"type":14,"tagName":35,"properties":681,"children":682},{"style":224},[683],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":686,"children":687},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":690,"children":691},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":694,"children":695},{"class":220},[696,701,706],{"type":14,"tagName":35,"properties":697,"children":698},{"style":224},[699],{"type":23,"value":700},"Yes, but you need to explicitly specify each ",{"type":14,"tagName":35,"properties":702,"children":703},{"style":236},[704],{"type":23,"value":705},"symbol",{"type":14,"tagName":35,"properties":707,"children":708},{"style":224},[709],{"type":23,"value":459},{"type":23,"value":89},{"type":11,"children":712},[713],{"type":14,"tagName":207,"properties":714,"children":716,"data":-1},{"class":209,"style":210,"tabindex":211,"title":715},"Multiple Symbols",[717],{"type":14,"tagName":215,"properties":718,"children":719},{},[720,760,761,798,799,802,803,806,807,830,831,834,835,838,839,842,843,875,876,879,880,883,884],{"type":14,"tagName":35,"properties":721,"children":722},{"class":220},[723,728,732,736,740,745,750,755],{"type":14,"tagName":35,"properties":724,"children":725},{"style":224},[726],{"type":23,"value":727},"timeseries btc_data ",{"type":14,"tagName":35,"properties":729,"children":730},{"style":230},[731],{"type":23,"value":233},{"type":14,"tagName":35,"properties":733,"children":734},{"style":236},[735],{"type":23,"value":239},{"type":14,"tagName":35,"properties":737,"children":738},{"style":224},[739],{"type":23,"value":258},{"type":14,"tagName":35,"properties":741,"children":742},{"style":261},[743],{"type":23,"value":744},"\"BTCUSDT\"",{"type":14,"tagName":35,"properties":746,"children":747},{"style":224},[748],{"type":23,"value":749},", ",{"type":14,"tagName":35,"properties":751,"children":752},{"style":261},[753],{"type":23,"value":754},"\"BINANCE\"",{"type":14,"tagName":35,"properties":756,"children":757},{"style":224},[758],{"type":23,"value":759},")",{"type":23,"value":89},{"type":14,"tagName":35,"properties":762,"children":763},{"class":220},[764,769,773,777,781,786,790,794],{"type":14,"tagName":35,"properties":765,"children":766},{"style":224},[767],{"type":23,"value":768},"timeseries eth_data ",{"type":14,"tagName":35,"properties":770,"children":771},{"style":230},[772],{"type":23,"value":233},{"type":14,"tagName":35,"properties":774,"children":775},{"style":236},[776],{"type":23,"value":239},{"type":14,"tagName":35,"properties":778,"children":779},{"style":224},[780],{"type":23,"value":258},{"type":14,"tagName":35,"properties":782,"children":783},{"style":261},[784],{"type":23,"value":785},"\"ETHUSDT\"",{"type":14,"tagName":35,"properties":787,"children":788},{"style":224},[789],{"type":23,"value":749},{"type":14,"tagName":35,"properties":791,"children":792},{"style":261},[793],{"type":23,"value":754},{"type":14,"tagName":35,"properties":795,"children":796},{"style":224},[797],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":800,"children":801},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":804,"children":805},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":808,"children":809},{"class":220},[810,814,818,822,826],{"type":14,"tagName":35,"properties":811,"children":812},{"style":224},[813],{"type":23,"value":296},{"type":14,"tagName":35,"properties":815,"children":816},{"style":230},[817],{"type":23,"value":301},{"type":14,"tagName":35,"properties":819,"children":820},{"style":224},[821],{"type":23,"value":306},{"type":14,"tagName":35,"properties":823,"children":824},{"style":230},[825],{"type":23,"value":301},{"type":14,"tagName":35,"properties":827,"children":828},{"style":224},[829],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":832,"children":833},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":836,"children":837},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":840,"children":841},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":844,"children":845},{"class":220},[846,850,854,858,862,867,871],{"type":14,"tagName":35,"properties":847,"children":848},{"style":224},[849],{"type":23,"value":296},{"type":14,"tagName":35,"properties":851,"children":852},{"style":230},[853],{"type":23,"value":301},{"type":14,"tagName":35,"properties":855,"children":856},{"style":224},[857],{"type":23,"value":344},{"type":14,"tagName":35,"properties":859,"children":860},{"style":230},[861],{"type":23,"value":233},{"type":14,"tagName":35,"properties":863,"children":864},{"style":261},[865],{"type":23,"value":866},"\"Can I write a script without source data?\"",{"type":14,"tagName":35,"properties":868,"children":869},{"style":230},[870],{"type":23,"value":358},{"type":14,"tagName":35,"properties":872,"children":873},{"style":224},[874],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":877,"children":878},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":881,"children":882},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":885,"children":886},{"class":220},[887,891,896,900,905,909,914,918,923,927,932,937,942,947,952,956,961,966],{"type":14,"tagName":35,"properties":888,"children":889},{"style":230},[890],{"type":23,"value":449},{"type":14,"tagName":35,"properties":892,"children":893},{"style":224},[894],{"type":23,"value":895},"No",{"type":14,"tagName":35,"properties":897,"children":898},{"style":230},[899],{"type":23,"value":449},{"type":14,"tagName":35,"properties":901,"children":902},{"style":224},[903],{"type":23,"value":904},", you cannot run a script without source data. kScript is designed for time",{"type":14,"tagName":35,"properties":906,"children":907},{"style":230},[908],{"type":23,"value":384},{"type":14,"tagName":35,"properties":910,"children":911},{"style":224},[912],{"type":23,"value":913},"series analysis and requires data to create the timeline for bar",{"type":14,"tagName":35,"properties":915,"children":916},{"style":230},[917],{"type":23,"value":384},{"type":14,"tagName":35,"properties":919,"children":920},{"style":224},[921],{"type":23,"value":922},"by",{"type":14,"tagName":35,"properties":924,"children":925},{"style":230},[926],{"type":23,"value":384},{"type":14,"tagName":35,"properties":928,"children":929},{"style":224},[930],{"type":23,"value":931},"bar execution. Even ",{"type":14,"tagName":35,"properties":933,"children":934},{"style":230},[935],{"type":23,"value":936},"if",{"type":14,"tagName":35,"properties":938,"children":939},{"style":224},[940],{"type":23,"value":941}," you ",{"type":14,"tagName":35,"properties":943,"children":944},{"style":230},[945],{"type":23,"value":946},"declare",{"type":14,"tagName":35,"properties":948,"children":949},{"style":224},[950],{"type":23,"value":951}," sources but they ",{"type":14,"tagName":35,"properties":953,"children":954},{"style":230},[955],{"type":23,"value":415},{"type":14,"tagName":35,"properties":957,"children":958},{"style":224},[959],{"type":23,"value":960}," empty data, the script won",{"type":14,"tagName":35,"properties":962,"children":963},{"style":261},[964],{"type":23,"value":965},"'t run because there are no bars to process",{"type":14,"tagName":35,"properties":967,"children":968},{"style":433},[969],{"type":23,"value":436},{"type":23,"value":89},{"type":11,"children":972},[973],{"type":14,"tagName":207,"properties":974,"children":976,"data":-1},{"class":209,"style":210,"tabindex":211,"title":975},"Script Without Source Data",[977],{"type":14,"tagName":215,"properties":978,"children":979},{},[980,988,989,1028,1029,1051,1052,1070,1071,1074,1075,1083,1084,1120,1121,1167,1168,1188,1189,1205,1206,1209,1210,1213,1214,1237,1238,1241,1242,1245,1246,1249,1250,1282,1283,1286,1287,1290,1291,1336,1337,1340,1341],{"type":14,"tagName":35,"properties":981,"children":982},{"class":220},[983],{"type":14,"tagName":35,"properties":984,"children":985},{"style":558},[986],{"type":23,"value":987},"// ✗ Won't produce any output",{"type":23,"value":89},{"type":14,"tagName":35,"properties":990,"children":991},{"class":220},[992,997,1001,1006,1010,1015,1019,1024],{"type":14,"tagName":35,"properties":993,"children":994},{"style":236},[995],{"type":23,"value":996},"define",{"type":14,"tagName":35,"properties":998,"children":999},{"style":224},[1000],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1002,"children":1003},{"style":261},[1004],{"type":23,"value":1005},"\"Empty Script\"",{"type":14,"tagName":35,"properties":1007,"children":1008},{"style":224},[1009],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1011,"children":1012},{"style":261},[1013],{"type":23,"value":1014},"\"onchart\"",{"type":14,"tagName":35,"properties":1016,"children":1017},{"style":224},[1018],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1020,"children":1021},{"style":402},[1022],{"type":23,"value":1023},"true",{"type":14,"tagName":35,"properties":1025,"children":1026},{"style":224},[1027],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1030,"children":1031},{"class":220},[1032,1037,1042,1046],{"type":14,"tagName":35,"properties":1033,"children":1034},{"style":230},[1035],{"type":23,"value":1036},"var",{"type":14,"tagName":35,"properties":1038,"children":1039},{"style":224},[1040],{"type":23,"value":1041}," value ",{"type":14,"tagName":35,"properties":1043,"children":1044},{"style":230},[1045],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1047,"children":1048},{"style":402},[1049],{"type":23,"value":1050}," 100",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1053,"children":1054},{"class":220},[1055,1060,1065],{"type":14,"tagName":35,"properties":1056,"children":1057},{"style":236},[1058],{"type":23,"value":1059},"plotLine",{"type":14,"tagName":35,"properties":1061,"children":1062},{"style":224},[1063],{"type":23,"value":1064},"(value)  ",{"type":14,"tagName":35,"properties":1066,"children":1067},{"style":558},[1068],{"type":23,"value":1069},"// Never executes because there are no bars",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1072,"children":1073},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1076,"children":1077},{"class":220},[1078],{"type":14,"tagName":35,"properties":1079,"children":1080},{"style":558},[1081],{"type":23,"value":1082},"// ✓ Correct - with data source",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1085,"children":1086},{"class":220},[1087,1091,1095,1100,1104,1108,1112,1116],{"type":14,"tagName":35,"properties":1088,"children":1089},{"style":236},[1090],{"type":23,"value":996},{"type":14,"tagName":35,"properties":1092,"children":1093},{"style":224},[1094],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1096,"children":1097},{"style":261},[1098],{"type":23,"value":1099},"\"Working Script\"",{"type":14,"tagName":35,"properties":1101,"children":1102},{"style":224},[1103],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1105,"children":1106},{"style":261},[1107],{"type":23,"value":1014},{"type":14,"tagName":35,"properties":1109,"children":1110},{"style":224},[1111],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1113,"children":1114},{"style":402},[1115],{"type":23,"value":1023},{"type":14,"tagName":35,"properties":1117,"children":1118},{"style":224},[1119],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1122,"children":1123},{"class":220},[1124,1129,1133,1138,1142,1147,1151,1155,1159,1163],{"type":14,"tagName":35,"properties":1125,"children":1126},{"style":224},[1127],{"type":23,"value":1128},"timeseries ohlcvData ",{"type":14,"tagName":35,"properties":1130,"children":1131},{"style":230},[1132],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1134,"children":1135},{"style":236},[1136],{"type":23,"value":1137}," source",{"type":14,"tagName":35,"properties":1139,"children":1140},{"style":224},[1141],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1143,"children":1144},{"style":261},[1145],{"type":23,"value":1146},"\"ohlcv\"",{"type":14,"tagName":35,"properties":1148,"children":1149},{"style":224},[1150],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1152,"children":1153},{"style":261},[1154],{"type":23,"value":744},{"type":14,"tagName":35,"properties":1156,"children":1157},{"style":224},[1158],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1160,"children":1161},{"style":261},[1162],{"type":23,"value":754},{"type":14,"tagName":35,"properties":1164,"children":1165},{"style":224},[1166],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1169,"children":1170},{"class":220},[1171,1175,1179,1183],{"type":14,"tagName":35,"properties":1172,"children":1173},{"style":230},[1174],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":1176,"children":1177},{"style":224},[1178],{"type":23,"value":1041},{"type":14,"tagName":35,"properties":1180,"children":1181},{"style":230},[1182],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1184,"children":1185},{"style":224},[1186],{"type":23,"value":1187}," ohlcvData.close",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1190,"children":1191},{"class":220},[1192,1196,1200],{"type":14,"tagName":35,"properties":1193,"children":1194},{"style":236},[1195],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":1197,"children":1198},{"style":224},[1199],{"type":23,"value":1064},{"type":14,"tagName":35,"properties":1201,"children":1202},{"style":558},[1203],{"type":23,"value":1204},"// Executes for each bar",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1207,"children":1208},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1211,"children":1212},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1215,"children":1216},{"class":220},[1217,1221,1225,1229,1233],{"type":14,"tagName":35,"properties":1218,"children":1219},{"style":224},[1220],{"type":23,"value":296},{"type":14,"tagName":35,"properties":1222,"children":1223},{"style":230},[1224],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1226,"children":1227},{"style":224},[1228],{"type":23,"value":306},{"type":14,"tagName":35,"properties":1230,"children":1231},{"style":230},[1232],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1234,"children":1235},{"style":224},[1236],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1239,"children":1240},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1243,"children":1244},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1247,"children":1248},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1251,"children":1252},{"class":220},[1253,1257,1261,1265,1269,1274,1278],{"type":14,"tagName":35,"properties":1254,"children":1255},{"style":224},[1256],{"type":23,"value":296},{"type":14,"tagName":35,"properties":1258,"children":1259},{"style":230},[1260],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1262,"children":1263},{"style":224},[1264],{"type":23,"value":344},{"type":14,"tagName":35,"properties":1266,"children":1267},{"style":230},[1268],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1270,"children":1271},{"style":261},[1272],{"type":23,"value":1273},"\"Can I subscribe to sources inside control structures (if/while/for)?\"",{"type":14,"tagName":35,"properties":1275,"children":1276},{"style":230},[1277],{"type":23,"value":358},{"type":14,"tagName":35,"properties":1279,"children":1280},{"style":224},[1281],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1284,"children":1285},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1288,"children":1289},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1292,"children":1293},{"class":220},[1294,1298,1302,1306,1311,1316,1321,1326,1331],{"type":14,"tagName":35,"properties":1295,"children":1296},{"style":230},[1297],{"type":23,"value":449},{"type":14,"tagName":35,"properties":1299,"children":1300},{"style":224},[1301],{"type":23,"value":895},{"type":14,"tagName":35,"properties":1303,"children":1304},{"style":230},[1305],{"type":23,"value":449},{"type":14,"tagName":35,"properties":1307,"children":1308},{"style":224},[1309],{"type":23,"value":1310},", you cannot call source functions inside control structures. Source subscriptions must be declared at the root level ",{"type":14,"tagName":35,"properties":1312,"children":1313},{"style":230},[1314],{"type":23,"value":1315},"of",{"type":14,"tagName":35,"properties":1317,"children":1318},{"style":224},[1319],{"type":23,"value":1320}," your script ",{"type":14,"tagName":35,"properties":1322,"children":1323},{"style":230},[1324],{"type":23,"value":1325},"in",{"type":14,"tagName":35,"properties":1327,"children":1328},{"style":261},[1329],{"type":23,"value":1330}," `timeseries`",{"type":14,"tagName":35,"properties":1332,"children":1333},{"style":224},[1334],{"type":23,"value":1335}," declarations.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1338,"children":1339},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1342,"children":1343},{"class":220},[1344,1348,1353,1357,1361,1366,1370,1374,1378,1383,1388],{"type":14,"tagName":35,"properties":1345,"children":1346},{"style":230},[1347],{"type":23,"value":449},{"type":14,"tagName":35,"properties":1349,"children":1350},{"style":236},[1351],{"type":23,"value":1352},"Why",{"type":14,"tagName":35,"properties":1354,"children":1355},{"style":224},[1356],{"type":23,"value":459},{"type":14,"tagName":35,"properties":1358,"children":1359},{"style":230},[1360],{"type":23,"value":449},{"type":14,"tagName":35,"properties":1362,"children":1363},{"style":224},[1364],{"type":23,"value":1365}," Sources need to be fetched and prepared before the script can execute. The runtime extracts source calls during the initialization phase, before the bar",{"type":14,"tagName":35,"properties":1367,"children":1368},{"style":230},[1369],{"type":23,"value":384},{"type":14,"tagName":35,"properties":1371,"children":1372},{"style":224},[1373],{"type":23,"value":922},{"type":14,"tagName":35,"properties":1375,"children":1376},{"style":230},[1377],{"type":23,"value":384},{"type":14,"tagName":35,"properties":1379,"children":1380},{"style":224},[1381],{"type":23,"value":1382},"bar loop begins. Dynamic source subscription during control flow would require async operations that aren",{"type":14,"tagName":35,"properties":1384,"children":1385},{"style":261},[1386],{"type":23,"value":1387},"'t supported",{"type":14,"tagName":35,"properties":1389,"children":1390},{"style":433},[1391],{"type":23,"value":436},{"type":23,"value":89},{"type":11,"children":1394},[1395],{"type":14,"tagName":207,"properties":1396,"children":1398,"data":-1},{"class":209,"style":210,"tabindex":211,"title":1397},"Source Calls in Control Structures",[1399],{"type":14,"tagName":215,"properties":1400,"children":1401},{},[1402,1410,1411,1455,1456,1459,1460,1468,1469,1481,1482,1532,1533,1540,1541,1544,1545,1548,1549,1572,1573,1576,1577,1580,1581,1584,1585,1617,1618,1621,1622,1625,1626,1654,1655,1658,1659],{"type":14,"tagName":35,"properties":1403,"children":1404},{"class":220},[1405],{"type":14,"tagName":35,"properties":1406,"children":1407},{"style":558},[1408],{"type":23,"value":1409},"// ✓ Correct - at root level",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1412,"children":1413},{"class":220},[1414,1419,1423,1427,1431,1435,1439,1443,1447,1451],{"type":14,"tagName":35,"properties":1415,"children":1416},{"style":224},[1417],{"type":23,"value":1418},"timeseries ohlcv ",{"type":14,"tagName":35,"properties":1420,"children":1421},{"style":230},[1422],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1424,"children":1425},{"style":236},[1426],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":1428,"children":1429},{"style":224},[1430],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1432,"children":1433},{"style":261},[1434],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":1436,"children":1437},{"style":224},[1438],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1440,"children":1441},{"style":261},[1442],{"type":23,"value":744},{"type":14,"tagName":35,"properties":1444,"children":1445},{"style":224},[1446],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1448,"children":1449},{"style":261},[1450],{"type":23,"value":754},{"type":14,"tagName":35,"properties":1452,"children":1453},{"style":224},[1454],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1457,"children":1458},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1461,"children":1462},{"class":220},[1463],{"type":14,"tagName":35,"properties":1464,"children":1465},{"style":558},[1466],{"type":23,"value":1467},"// ✗ Wrong - inside control structure",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1470,"children":1471},{"class":220},[1472,1476],{"type":14,"tagName":35,"properties":1473,"children":1474},{"style":230},[1475],{"type":23,"value":936},{"type":14,"tagName":35,"properties":1477,"children":1478},{"style":224},[1479],{"type":23,"value":1480}," (someCondition) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1483,"children":1484},{"class":220},[1485,1490,1494,1498,1502,1506,1510,1514,1518,1522,1527],{"type":14,"tagName":35,"properties":1486,"children":1487},{"style":224},[1488],{"type":23,"value":1489},"  timeseries ohlcv ",{"type":14,"tagName":35,"properties":1491,"children":1492},{"style":230},[1493],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1495,"children":1496},{"style":236},[1497],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":1499,"children":1500},{"style":224},[1501],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1503,"children":1504},{"style":261},[1505],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":1507,"children":1508},{"style":224},[1509],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1511,"children":1512},{"style":261},[1513],{"type":23,"value":744},{"type":14,"tagName":35,"properties":1515,"children":1516},{"style":224},[1517],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1519,"children":1520},{"style":261},[1521],{"type":23,"value":754},{"type":14,"tagName":35,"properties":1523,"children":1524},{"style":224},[1525],{"type":23,"value":1526},")  ",{"type":14,"tagName":35,"properties":1528,"children":1529},{"style":558},[1530],{"type":23,"value":1531},"// Won't work",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1534,"children":1535},{"class":220},[1536],{"type":14,"tagName":35,"properties":1537,"children":1538},{"style":224},[1539],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1542,"children":1543},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1546,"children":1547},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1550,"children":1551},{"class":220},[1552,1556,1560,1564,1568],{"type":14,"tagName":35,"properties":1553,"children":1554},{"style":224},[1555],{"type":23,"value":296},{"type":14,"tagName":35,"properties":1557,"children":1558},{"style":230},[1559],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1561,"children":1562},{"style":224},[1563],{"type":23,"value":306},{"type":14,"tagName":35,"properties":1565,"children":1566},{"style":230},[1567],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1569,"children":1570},{"style":224},[1571],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1574,"children":1575},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1578,"children":1579},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1582,"children":1583},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1586,"children":1587},{"class":220},[1588,1592,1596,1600,1604,1609,1613],{"type":14,"tagName":35,"properties":1589,"children":1590},{"style":224},[1591],{"type":23,"value":296},{"type":14,"tagName":35,"properties":1593,"children":1594},{"style":230},[1595],{"type":23,"value":301},{"type":14,"tagName":35,"properties":1597,"children":1598},{"style":224},[1599],{"type":23,"value":344},{"type":14,"tagName":35,"properties":1601,"children":1602},{"style":230},[1603],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1605,"children":1606},{"style":261},[1607],{"type":23,"value":1608},"\"How do I access orderbook heatmap raw data?\"",{"type":14,"tagName":35,"properties":1610,"children":1611},{"style":230},[1612],{"type":23,"value":358},{"type":14,"tagName":35,"properties":1614,"children":1615},{"style":224},[1616],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1619,"children":1620},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1623,"children":1624},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1627,"children":1628},{"class":220},[1629,1634,1639,1644,1649],{"type":14,"tagName":35,"properties":1630,"children":1631},{"style":224},[1632],{"type":23,"value":1633},"Orderbook data is accessed through specialized built",{"type":14,"tagName":35,"properties":1635,"children":1636},{"style":230},[1637],{"type":23,"value":1638},"-in",{"type":14,"tagName":35,"properties":1640,"children":1641},{"style":224},[1642],{"type":23,"value":1643}," functions that operate on orderbook timeseries sources. The data structure is ",{"type":14,"tagName":35,"properties":1645,"children":1646},{"style":261},[1647],{"type":23,"value":1648},"`[timestamp, price1, amount1, price2, amount2, ...]`",{"type":14,"tagName":35,"properties":1650,"children":1651},{"style":224},[1652],{"type":23,"value":1653}," where positive amounts are bids and negative amounts are asks.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":1656,"children":1657},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1660,"children":1661},{"class":220},[1662,1666,1671,1676,1680],{"type":14,"tagName":35,"properties":1663,"children":1664},{"style":230},[1665],{"type":23,"value":449},{"type":14,"tagName":35,"properties":1667,"children":1668},{"style":224},[1669],{"type":23,"value":1670},"Available ",{"type":14,"tagName":35,"properties":1672,"children":1673},{"style":236},[1674],{"type":23,"value":1675},"functions",{"type":14,"tagName":35,"properties":1677,"children":1678},{"style":224},[1679],{"type":23,"value":459},{"type":14,"tagName":35,"properties":1681,"children":1682},{"style":230},[1683],{"type":23,"value":449},{"type":23,"value":89},{"type":14,"tagName":1686,"properties":1687,"children":1688,"position":1863},"ul",{},[1689,1690,1720,1721,1748,1749,1778,1779,1806,1807,1834,1835,1862],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1692,"children":1693,"position":1716},"li",{},[1694,1709],{"type":14,"tagName":215,"properties":1695,"children":1696,"position":1706},{},[1697],{"type":23,"value":1698,"position":1699},"sumBids(source, depthPct=10)",{"start":1700,"end":1703},{"line":1701,"column":32,"offset":1702},141,4494,{"line":1701,"column":1704,"offset":1705},33,4524,{"start":1707,"end":1708},{"line":1701,"column":32,"offset":1702},{"line":1701,"column":1704,"offset":1705},{"type":23,"value":1710,"position":1711}," - Sum of all bid amounts within depth percentage",{"start":1712,"end":1713},{"line":1701,"column":1704,"offset":1705},{"line":1701,"column":1714,"offset":1715},82,4573,{"start":1717,"end":1719},{"line":1701,"column":27,"offset":1718},4492,{"line":1701,"column":1714,"offset":1715},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1722,"children":1723,"position":1744},{},[1724,1738],{"type":14,"tagName":215,"properties":1725,"children":1726,"position":1735},{},[1727],{"type":23,"value":1728,"position":1729},"sumAsks(source, depthPct=10)",{"start":1730,"end":1733},{"line":1731,"column":32,"offset":1732},142,4576,{"line":1731,"column":1704,"offset":1734},4606,{"start":1736,"end":1737},{"line":1731,"column":32,"offset":1732},{"line":1731,"column":1704,"offset":1734},{"type":23,"value":1739,"position":1740}," - Sum of all ask amounts within depth percentage",{"start":1741,"end":1742},{"line":1731,"column":1704,"offset":1734},{"line":1731,"column":1714,"offset":1743},4655,{"start":1745,"end":1747},{"line":1731,"column":27,"offset":1746},4574,{"line":1731,"column":1714,"offset":1743},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1750,"children":1751,"position":1774},{},[1752,1767],{"type":14,"tagName":215,"properties":1753,"children":1754,"position":1764},{},[1755],{"type":23,"value":1756,"position":1757},"maxBidAmount(source, depthPct=10)",{"start":1758,"end":1761},{"line":1759,"column":32,"offset":1760},143,4658,{"line":1759,"column":1762,"offset":1763},38,4693,{"start":1765,"end":1766},{"line":1759,"column":32,"offset":1760},{"line":1759,"column":1762,"offset":1763},{"type":23,"value":1768,"position":1769}," - Maximum bid amount within depth",{"start":1770,"end":1771},{"line":1759,"column":1762,"offset":1763},{"line":1759,"column":1772,"offset":1773},72,4727,{"start":1775,"end":1777},{"line":1759,"column":27,"offset":1776},4656,{"line":1759,"column":1772,"offset":1773},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1780,"children":1781,"position":1802},{},[1782,1796],{"type":14,"tagName":215,"properties":1783,"children":1784,"position":1793},{},[1785],{"type":23,"value":1786,"position":1787},"maxAskAmount(source, depthPct=10)",{"start":1788,"end":1791},{"line":1789,"column":32,"offset":1790},144,4730,{"line":1789,"column":1762,"offset":1792},4765,{"start":1794,"end":1795},{"line":1789,"column":32,"offset":1790},{"line":1789,"column":1762,"offset":1792},{"type":23,"value":1797,"position":1798}," - Maximum ask amount within depth",{"start":1799,"end":1800},{"line":1789,"column":1762,"offset":1792},{"line":1789,"column":1772,"offset":1801},4799,{"start":1803,"end":1805},{"line":1789,"column":27,"offset":1804},4728,{"line":1789,"column":1772,"offset":1801},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1808,"children":1809,"position":1830},{},[1810,1824],{"type":14,"tagName":215,"properties":1811,"children":1812,"position":1821},{},[1813],{"type":23,"value":1814,"position":1815},"minBidAmount(source, depthPct=10)",{"start":1816,"end":1819},{"line":1817,"column":32,"offset":1818},145,4802,{"line":1817,"column":1762,"offset":1820},4837,{"start":1822,"end":1823},{"line":1817,"column":32,"offset":1818},{"line":1817,"column":1762,"offset":1820},{"type":23,"value":1825,"position":1826}," - Minimum bid amount within depth",{"start":1827,"end":1828},{"line":1817,"column":1762,"offset":1820},{"line":1817,"column":1772,"offset":1829},4871,{"start":1831,"end":1833},{"line":1817,"column":27,"offset":1832},4800,{"line":1817,"column":1772,"offset":1829},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":1836,"children":1837,"position":1858},{},[1838,1852],{"type":14,"tagName":215,"properties":1839,"children":1840,"position":1849},{},[1841],{"type":23,"value":1842,"position":1843},"minAskAmount(source, depthPct=10)",{"start":1844,"end":1847},{"line":1845,"column":32,"offset":1846},146,4874,{"line":1845,"column":1762,"offset":1848},4909,{"start":1850,"end":1851},{"line":1845,"column":32,"offset":1846},{"line":1845,"column":1762,"offset":1848},{"type":23,"value":1853,"position":1854}," - Minimum ask amount within depth",{"start":1855,"end":1856},{"line":1845,"column":1762,"offset":1848},{"line":1845,"column":1772,"offset":1857},4943,{"start":1859,"end":1861},{"line":1845,"column":27,"offset":1860},4872,{"line":1845,"column":1772,"offset":1857},{"type":23,"value":89},{"start":1864,"end":1865},{"line":1701,"column":27,"offset":1718},{"line":1845,"column":1772,"offset":1857},{"type":23,"value":89},{"type":11,"children":1868},[1869],{"type":14,"tagName":207,"properties":1870,"children":1872,"data":-1},{"class":209,"style":210,"tabindex":211,"title":1871},"Orderbook Access",[1873],{"type":14,"tagName":215,"properties":1874,"children":1875},{},[1876,1921,1922,1925,1926,1964,1965,2002,2003,2033,2034,2037,2038,2127,2128,2131,2132,2135,2136,2159,2160,2163,2164,2167,2168,2171,2172,2204,2205,2208,2209,2212,2213,2245,2246,2249,2250],{"type":14,"tagName":35,"properties":1877,"children":1878},{"class":220},[1879,1884,1888,1892,1896,1901,1905,1909,1913,1917],{"type":14,"tagName":35,"properties":1880,"children":1881},{"style":224},[1882],{"type":23,"value":1883},"timeseries orderbookData ",{"type":14,"tagName":35,"properties":1885,"children":1886},{"style":230},[1887],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1889,"children":1890},{"style":236},[1891],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":1893,"children":1894},{"style":224},[1895],{"type":23,"value":258},{"type":14,"tagName":35,"properties":1897,"children":1898},{"style":261},[1899],{"type":23,"value":1900},"\"orderbook\"",{"type":14,"tagName":35,"properties":1902,"children":1903},{"style":224},[1904],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1906,"children":1907},{"style":261},[1908],{"type":23,"value":744},{"type":14,"tagName":35,"properties":1910,"children":1911},{"style":224},[1912],{"type":23,"value":749},{"type":14,"tagName":35,"properties":1914,"children":1915},{"style":261},[1916],{"type":23,"value":754},{"type":14,"tagName":35,"properties":1918,"children":1919},{"style":224},[1920],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1923,"children":1924},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":1927,"children":1928},{"class":220},[1929,1933,1938,1942,1947,1952,1956,1960],{"type":14,"tagName":35,"properties":1930,"children":1931},{"style":230},[1932],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":1934,"children":1935},{"style":224},[1936],{"type":23,"value":1937}," totalBids ",{"type":14,"tagName":35,"properties":1939,"children":1940},{"style":230},[1941],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1943,"children":1944},{"style":236},[1945],{"type":23,"value":1946}," sumBids",{"type":14,"tagName":35,"properties":1948,"children":1949},{"style":224},[1950],{"type":23,"value":1951},"(orderbookData, depthPct",{"type":14,"tagName":35,"properties":1953,"children":1954},{"style":230},[1955],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1957,"children":1958},{"style":402},[1959],{"type":23,"value":579},{"type":14,"tagName":35,"properties":1961,"children":1962},{"style":224},[1963],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":1966,"children":1967},{"class":220},[1968,1972,1977,1981,1986,1990,1994,1998],{"type":14,"tagName":35,"properties":1969,"children":1970},{"style":230},[1971],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":1973,"children":1974},{"style":224},[1975],{"type":23,"value":1976}," totalAsks ",{"type":14,"tagName":35,"properties":1978,"children":1979},{"style":230},[1980],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1982,"children":1983},{"style":236},[1984],{"type":23,"value":1985}," sumAsks",{"type":14,"tagName":35,"properties":1987,"children":1988},{"style":224},[1989],{"type":23,"value":1951},{"type":14,"tagName":35,"properties":1991,"children":1992},{"style":230},[1993],{"type":23,"value":233},{"type":14,"tagName":35,"properties":1995,"children":1996},{"style":402},[1997],{"type":23,"value":579},{"type":14,"tagName":35,"properties":1999,"children":2000},{"style":224},[2001],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2004,"children":2005},{"class":220},[2006,2010,2015,2019,2023,2028],{"type":14,"tagName":35,"properties":2007,"children":2008},{"style":230},[2009],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":2011,"children":2012},{"style":224},[2013],{"type":23,"value":2014}," bidAskRatio ",{"type":14,"tagName":35,"properties":2016,"children":2017},{"style":230},[2018],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2020,"children":2021},{"style":224},[2022],{"type":23,"value":1937},{"type":14,"tagName":35,"properties":2024,"children":2025},{"style":230},[2026],{"type":23,"value":2027},"/",{"type":14,"tagName":35,"properties":2029,"children":2030},{"style":224},[2031],{"type":23,"value":2032}," totalAsks",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2035,"children":2036},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2039,"children":2040},{"class":220},[2041,2045,2050,2054,2059,2063,2068,2073,2077,2082,2087,2092,2096,2100,2105,2110,2114,2118,2123],{"type":14,"tagName":35,"properties":2042,"children":2043},{"style":236},[2044],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":2046,"children":2047},{"style":224},[2048],{"type":23,"value":2049},"(value",{"type":14,"tagName":35,"properties":2051,"children":2052},{"style":230},[2053],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2055,"children":2056},{"style":224},[2057],{"type":23,"value":2058},"bidAskRatio, width",{"type":14,"tagName":35,"properties":2060,"children":2061},{"style":230},[2062],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2064,"children":2065},{"style":402},[2066],{"type":23,"value":2067},"2",{"type":14,"tagName":35,"properties":2069,"children":2070},{"style":224},[2071],{"type":23,"value":2072},", colors",{"type":14,"tagName":35,"properties":2074,"children":2075},{"style":230},[2076],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2078,"children":2079},{"style":224},[2080],{"type":23,"value":2081},"[",{"type":14,"tagName":35,"properties":2083,"children":2084},{"style":261},[2085],{"type":23,"value":2086},"\"blue\"",{"type":14,"tagName":35,"properties":2088,"children":2089},{"style":224},[2090],{"type":23,"value":2091},"], label",{"type":14,"tagName":35,"properties":2093,"children":2094},{"style":230},[2095],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2097,"children":2098},{"style":224},[2099],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2101,"children":2102},{"style":261},[2103],{"type":23,"value":2104},"\"Bid/Ask Ratio\"",{"type":14,"tagName":35,"properties":2106,"children":2107},{"style":224},[2108],{"type":23,"value":2109},"], desc",{"type":14,"tagName":35,"properties":2111,"children":2112},{"style":230},[2113],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2115,"children":2116},{"style":224},[2117],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2119,"children":2120},{"style":261},[2121],{"type":23,"value":2122},"\"Bid Ask Ratio\"",{"type":14,"tagName":35,"properties":2124,"children":2125},{"style":224},[2126],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2129,"children":2130},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2133,"children":2134},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2137,"children":2138},{"class":220},[2139,2143,2147,2151,2155],{"type":14,"tagName":35,"properties":2140,"children":2141},{"style":224},[2142],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2144,"children":2145},{"style":230},[2146],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2148,"children":2149},{"style":224},[2150],{"type":23,"value":306},{"type":14,"tagName":35,"properties":2152,"children":2153},{"style":230},[2154],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2156,"children":2157},{"style":224},[2158],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2161,"children":2162},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2165,"children":2166},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2169,"children":2170},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2173,"children":2174},{"class":220},[2175,2179,2183,2187,2191,2196,2200],{"type":14,"tagName":35,"properties":2176,"children":2177},{"style":224},[2178],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2180,"children":2181},{"style":230},[2182],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2184,"children":2185},{"style":224},[2186],{"type":23,"value":344},{"type":14,"tagName":35,"properties":2188,"children":2189},{"style":230},[2190],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2192,"children":2193},{"style":261},[2194],{"type":23,"value":2195},"\"How does kScript handle data gaps and interpolation?\"",{"type":14,"tagName":35,"properties":2197,"children":2198},{"style":230},[2199],{"type":23,"value":358},{"type":14,"tagName":35,"properties":2201,"children":2202},{"style":224},[2203],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2206,"children":2207},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2210,"children":2211},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2214,"children":2215},{"class":220},[2216,2221,2226,2231,2236,2241],{"type":14,"tagName":35,"properties":2217,"children":2218},{"style":224},[2219],{"type":23,"value":2220},"kScript fills data gaps ",{"type":14,"tagName":35,"properties":2222,"children":2223},{"style":230},[2224],{"type":23,"value":2225},"with",{"type":14,"tagName":35,"properties":2227,"children":2228},{"style":261},[2229],{"type":23,"value":2230}," `NaN`",{"type":14,"tagName":35,"properties":2232,"children":2233},{"style":224},[2234],{"type":23,"value":2235}," values. The system creates a continuous timestamp array based on the interval, and when fetched data doesn",{"type":14,"tagName":35,"properties":2237,"children":2238},{"style":261},[2239],{"type":23,"value":2240},"'t match the timeline length, gaps are pre-filled with `NaN`",{"type":14,"tagName":35,"properties":2242,"children":2243},{"style":433},[2244],{"type":23,"value":436},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2247,"children":2248},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2251,"children":2252},{"class":220},[2253,2257,2262,2266,2270,2275,2279,2284,2289,2294,2298,2303],{"type":14,"tagName":35,"properties":2254,"children":2255},{"style":230},[2256],{"type":23,"value":449},{"type":14,"tagName":35,"properties":2258,"children":2259},{"style":236},[2260],{"type":23,"value":2261},"Important",{"type":14,"tagName":35,"properties":2263,"children":2264},{"style":224},[2265],{"type":23,"value":459},{"type":14,"tagName":35,"properties":2267,"children":2268},{"style":230},[2269],{"type":23,"value":449},{"type":14,"tagName":35,"properties":2271,"children":2272},{"style":224},[2273],{"type":23,"value":2274}," For line plots, kScript will interpolate to connect points across gaps. For other use cases, ",{"type":14,"tagName":35,"properties":2276,"children":2277},{"style":230},[2278],{"type":23,"value":936},{"type":14,"tagName":35,"properties":2280,"children":2281},{"style":224},[2282],{"type":23,"value":2283}," you need ",{"type":14,"tagName":35,"properties":2285,"children":2286},{"style":236},[2287],{"type":23,"value":2288},"interpolation",{"type":14,"tagName":35,"properties":2290,"children":2291},{"style":224},[2292],{"type":23,"value":2293}," (forward fill, linear interpolation, etc.), you must implement it manually ",{"type":14,"tagName":35,"properties":2295,"children":2296},{"style":230},[2297],{"type":23,"value":483},{"type":14,"tagName":35,"properties":2299,"children":2300},{"style":402},[2301],{"type":23,"value":2302}," custom",{"type":14,"tagName":35,"properties":2304,"children":2305},{"style":224},[2306],{"type":23,"value":2307}," logic.",{"type":23,"value":89},{"type":11,"children":2310},[2311],{"type":14,"tagName":207,"properties":2312,"children":2314,"data":-1},{"class":209,"style":210,"tabindex":211,"title":2313},"Data Gaps and Interpolation",[2315],{"type":14,"tagName":215,"properties":2316,"children":2317},{},[2318,2361,2362,2365,2366,2383,2384,2387,2388,2408,2409,2431,2432,2454,2455,2473,2474,2491,2492,2499,2500,2503,2504,2585,2586,2589,2590,2593,2594,2617,2618,2621,2622,2625,2626,2650,2651],{"type":14,"tagName":35,"properties":2319,"children":2320},{"class":220},[2321,2325,2329,2333,2337,2341,2345,2349,2353,2357],{"type":14,"tagName":35,"properties":2322,"children":2323},{"style":224},[2324],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":2326,"children":2327},{"style":230},[2328],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2330,"children":2331},{"style":236},[2332],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":2334,"children":2335},{"style":224},[2336],{"type":23,"value":258},{"type":14,"tagName":35,"properties":2338,"children":2339},{"style":261},[2340],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":2342,"children":2343},{"style":224},[2344],{"type":23,"value":749},{"type":14,"tagName":35,"properties":2346,"children":2347},{"style":261},[2348],{"type":23,"value":744},{"type":14,"tagName":35,"properties":2350,"children":2351},{"style":224},[2352],{"type":23,"value":749},{"type":14,"tagName":35,"properties":2354,"children":2355},{"style":261},[2356],{"type":23,"value":754},{"type":14,"tagName":35,"properties":2358,"children":2359},{"style":224},[2360],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2363,"children":2364},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2367,"children":2368},{"class":220},[2369,2374,2378],{"type":14,"tagName":35,"properties":2370,"children":2371},{"style":224},[2372],{"type":23,"value":2373}," static lastValue ",{"type":14,"tagName":35,"properties":2375,"children":2376},{"style":230},[2377],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2379,"children":2380},{"style":402},[2381],{"type":23,"value":2382}," 0",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2385,"children":2386},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2389,"children":2390},{"class":220},[2391,2395,2400,2404],{"type":14,"tagName":35,"properties":2392,"children":2393},{"style":230},[2394],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":2396,"children":2397},{"style":224},[2398],{"type":23,"value":2399}," currentValue ",{"type":14,"tagName":35,"properties":2401,"children":2402},{"style":230},[2403],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2405,"children":2406},{"style":224},[2407],{"type":23,"value":1187},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2410,"children":2411},{"class":220},[2412,2416,2421,2426],{"type":14,"tagName":35,"properties":2413,"children":2414},{"style":230},[2415],{"type":23,"value":936},{"type":14,"tagName":35,"properties":2417,"children":2418},{"style":224},[2419],{"type":23,"value":2420}," (",{"type":14,"tagName":35,"properties":2422,"children":2423},{"style":236},[2424],{"type":23,"value":2425},"isnan",{"type":14,"tagName":35,"properties":2427,"children":2428},{"style":224},[2429],{"type":23,"value":2430},"(currentValue)) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2433,"children":2434},{"class":220},[2435,2440,2444,2449],{"type":14,"tagName":35,"properties":2436,"children":2437},{"style":224},[2438],{"type":23,"value":2439},"  currentValue ",{"type":14,"tagName":35,"properties":2441,"children":2442},{"style":230},[2443],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2445,"children":2446},{"style":224},[2447],{"type":23,"value":2448}," lastValue  ",{"type":14,"tagName":35,"properties":2450,"children":2451},{"style":558},[2452],{"type":23,"value":2453},"// Forward fill",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2456,"children":2457},{"class":220},[2458,2463,2468],{"type":14,"tagName":35,"properties":2459,"children":2460},{"style":224},[2461],{"type":23,"value":2462},"} ",{"type":14,"tagName":35,"properties":2464,"children":2465},{"style":230},[2466],{"type":23,"value":2467},"else",{"type":14,"tagName":35,"properties":2469,"children":2470},{"style":224},[2471],{"type":23,"value":2472}," {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2475,"children":2476},{"class":220},[2477,2482,2486],{"type":14,"tagName":35,"properties":2478,"children":2479},{"style":224},[2480],{"type":23,"value":2481},"  lastValue ",{"type":14,"tagName":35,"properties":2483,"children":2484},{"style":230},[2485],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2487,"children":2488},{"style":224},[2489],{"type":23,"value":2490}," currentValue",{"type":23,"value":89},{"type":14,"tagName":35,"properties":2493,"children":2494},{"class":220},[2495],{"type":14,"tagName":35,"properties":2496,"children":2497},{"style":224},[2498],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2501,"children":2502},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2505,"children":2506},{"class":220},[2507,2511,2515,2519,2524,2528,2532,2536,2540,2544,2548,2552,2556,2560,2565,2569,2573,2577,2581],{"type":14,"tagName":35,"properties":2508,"children":2509},{"style":236},[2510],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":2512,"children":2513},{"style":224},[2514],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":2516,"children":2517},{"style":230},[2518],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2520,"children":2521},{"style":224},[2522],{"type":23,"value":2523},"currentValue, width",{"type":14,"tagName":35,"properties":2525,"children":2526},{"style":230},[2527],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2529,"children":2530},{"style":402},[2531],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":2533,"children":2534},{"style":224},[2535],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":2537,"children":2538},{"style":230},[2539],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2541,"children":2542},{"style":224},[2543],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2545,"children":2546},{"style":261},[2547],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":2549,"children":2550},{"style":224},[2551],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":2553,"children":2554},{"style":230},[2555],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2557,"children":2558},{"style":224},[2559],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2561,"children":2562},{"style":261},[2563],{"type":23,"value":2564},"\"Current Value\"",{"type":14,"tagName":35,"properties":2566,"children":2567},{"style":224},[2568],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":2570,"children":2571},{"style":230},[2572],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2574,"children":2575},{"style":224},[2576],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2578,"children":2579},{"style":261},[2580],{"type":23,"value":2564},{"type":14,"tagName":35,"properties":2582,"children":2583},{"style":224},[2584],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2587,"children":2588},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2591,"children":2592},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2595,"children":2596},{"class":220},[2597,2601,2605,2609,2613],{"type":14,"tagName":35,"properties":2598,"children":2599},{"style":224},[2600],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2602,"children":2603},{"style":230},[2604],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2606,"children":2607},{"style":224},[2608],{"type":23,"value":306},{"type":14,"tagName":35,"properties":2610,"children":2611},{"style":230},[2612],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2614,"children":2615},{"style":224},[2616],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2619,"children":2620},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2623,"children":2624},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2627,"children":2628},{"class":220},[2629,2633,2637,2642,2646],{"type":14,"tagName":35,"properties":2630,"children":2631},{"style":224},[2632],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2634,"children":2635},{"style":230},[2636],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2638,"children":2639},{"style":224},[2640],{"type":23,"value":2641}," endfaqgroup ",{"type":14,"tagName":35,"properties":2643,"children":2644},{"style":230},[2645],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2647,"children":2648},{"style":224},[2649],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2652,"children":2653},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":2656,"children":2658,"position":2668},{"id":2657},"technical-indicators",[2659],{"type":23,"value":2660,"position":2661},"Technical Indicators",{"start":2662,"end":2665},{"line":2663,"column":56,"offset":2664},190,6292,{"line":2663,"column":2666,"offset":2667},24,6312,{"start":2669,"end":2671},{"line":2663,"column":27,"offset":2670},6289,{"line":2663,"column":2666,"offset":2667},{"type":23,"value":89},{"type":14,"tagName":15,"properties":2674,"children":2675},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":2678,"children":2679},{},[],{"type":23,"value":89},{"type":14,"tagName":129,"properties":2682,"children":2683,"position":2693},{},[2684],{"type":23,"value":2685,"position":2686},"NaN (Not a Number) usually occurs when:",{"start":2687,"end":2690},{"line":2688,"column":27,"offset":2689},199,6407,{"line":2688,"column":2691,"offset":2692},40,6446,{"start":2694,"end":2695},{"line":2688,"column":27,"offset":2689},{"line":2688,"column":2691,"offset":2692},{"type":23,"value":89},{"type":14,"tagName":1686,"properties":2698,"children":2699,"position":2752},{},[2700,2701,2717,2718,2734,2735,2751],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":2702,"children":2703,"position":2713},{},[2704],{"type":23,"value":2705,"position":2706},"There's insufficient historical data for the calculation",{"start":2707,"end":2710},{"line":2708,"column":32,"offset":2709},201,6450,{"line":2708,"column":2711,"offset":2712},59,6506,{"start":2714,"end":2716},{"line":2708,"column":27,"offset":2715},6448,{"line":2708,"column":2711,"offset":2712},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":2719,"children":2720,"position":2730},{},[2721],{"type":23,"value":2722,"position":2723},"You're dividing by zero",{"start":2724,"end":2727},{"line":2725,"column":32,"offset":2726},202,6509,{"line":2725,"column":2728,"offset":2729},26,6532,{"start":2731,"end":2733},{"line":2725,"column":27,"offset":2732},6507,{"line":2725,"column":2728,"offset":2729},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":2736,"children":2737,"position":2747},{},[2738],{"type":23,"value":2739,"position":2740},"The data source has gaps",{"start":2741,"end":2744},{"line":2742,"column":32,"offset":2743},203,6535,{"line":2742,"column":2745,"offset":2746},27,6559,{"start":2748,"end":2750},{"line":2742,"column":27,"offset":2749},6533,{"line":2742,"column":2745,"offset":2746},{"type":23,"value":89},{"start":2753,"end":2754},{"line":2708,"column":27,"offset":2715},{"line":2742,"column":2745,"offset":2746},{"type":23,"value":89},{"type":14,"tagName":129,"properties":2757,"children":2758,"position":2784},{},[2759,2778],{"type":14,"tagName":2760,"properties":2761,"children":2762,"position":2772},"strong",{},[2763],{"type":23,"value":2764,"position":2765},"Solution:",{"start":2766,"end":2769},{"line":2767,"column":32,"offset":2768},205,6563,{"line":2767,"column":2770,"offset":2771},12,6572,{"start":2773,"end":2775},{"line":2767,"column":27,"offset":2774},6561,{"line":2767,"column":2776,"offset":2777},14,6574,{"type":23,"value":2779,"position":2780}," Check for NaN values:",{"start":2781,"end":2782},{"line":2767,"column":2776,"offset":2777},{"line":2767,"column":171,"offset":2783},6596,{"start":2785,"end":2786},{"line":2767,"column":27,"offset":2774},{"line":2767,"column":171,"offset":2783},{"type":23,"value":89},{"type":11,"children":2789},[2790],{"type":14,"tagName":207,"properties":2791,"children":2793,"data":-1},{"class":209,"style":210,"tabindex":211,"title":2792},"NaN Handling",[2794],{"type":14,"tagName":215,"properties":2795,"children":2796},{},[2797,2845,2846,2849,2850,2853,2854,2877,2878,2881,2882,2885,2886,2909,2910],{"type":14,"tagName":35,"properties":2798,"children":2799},{"class":220},[2800,2804,2809,2813,2818,2822,2827,2832,2837,2841],{"type":14,"tagName":35,"properties":2801,"children":2802},{"style":230},[2803],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":2805,"children":2806},{"style":224},[2807],{"type":23,"value":2808}," safe_value ",{"type":14,"tagName":35,"properties":2810,"children":2811},{"style":230},[2812],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2814,"children":2815},{"style":230},[2816],{"type":23,"value":2817}," !",{"type":14,"tagName":35,"properties":2819,"children":2820},{"style":236},[2821],{"type":23,"value":2425},{"type":14,"tagName":35,"properties":2823,"children":2824},{"style":224},[2825],{"type":23,"value":2826},"(sma_value) ",{"type":14,"tagName":35,"properties":2828,"children":2829},{"style":230},[2830],{"type":23,"value":2831},"?",{"type":14,"tagName":35,"properties":2833,"children":2834},{"style":224},[2835],{"type":23,"value":2836}," sma_value ",{"type":14,"tagName":35,"properties":2838,"children":2839},{"style":230},[2840],{"type":23,"value":459},{"type":14,"tagName":35,"properties":2842,"children":2843},{"style":402},[2844],{"type":23,"value":2382},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2847,"children":2848},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2851,"children":2852},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2855,"children":2856},{"class":220},[2857,2861,2865,2869,2873],{"type":14,"tagName":35,"properties":2858,"children":2859},{"style":224},[2860],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2862,"children":2863},{"style":230},[2864],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2866,"children":2867},{"style":224},[2868],{"type":23,"value":306},{"type":14,"tagName":35,"properties":2870,"children":2871},{"style":230},[2872],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2874,"children":2875},{"style":224},[2876],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2879,"children":2880},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2883,"children":2884},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":2887,"children":2888},{"class":220},[2889,2893,2897,2901,2905],{"type":14,"tagName":35,"properties":2890,"children":2891},{"style":224},[2892],{"type":23,"value":296},{"type":14,"tagName":35,"properties":2894,"children":2895},{"style":230},[2896],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2898,"children":2899},{"style":224},[2900],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":2902,"children":2903},{"style":230},[2904],{"type":23,"value":301},{"type":14,"tagName":35,"properties":2906,"children":2907},{"style":224},[2908],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":2911,"children":2912},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":2915,"children":2917,"position":2926},{"id":2916},"plotting-and-visualization",[2918],{"type":23,"value":2919,"position":2920},"Plotting and Visualization",{"start":2921,"end":2924},{"line":2922,"column":56,"offset":2923},217,6742,{"line":2922,"column":28,"offset":2925},6768,{"start":2927,"end":2929},{"line":2922,"column":27,"offset":2928},6739,{"line":2922,"column":28,"offset":2925},{"type":23,"value":89},{"type":14,"tagName":15,"properties":2932,"children":2933},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":2936,"children":2937},{},[],{"type":23,"value":89},{"type":11,"children":2940},[2941],{"type":14,"tagName":207,"properties":2942,"children":2944,"data":-1},{"class":209,"style":210,"tabindex":211,"title":2943},"Multiple Plots",[2945],{"type":14,"tagName":215,"properties":2946,"children":2947},{},[2948,3031,3032,3115,3116,3119,3120,3123,3124,3147,3148,3151,3152,3155,3156,3159,3160,3192,3193,3196,3197,3200,3201],{"type":14,"tagName":35,"properties":2949,"children":2950},{"class":220},[2951,2955,2959,2963,2968,2972,2977,2981,2985,2989,2993,2997,3001,3005,3010,3014,3018,3022,3027],{"type":14,"tagName":35,"properties":2952,"children":2953},{"style":236},[2954],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":2956,"children":2957},{"style":224},[2958],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":2960,"children":2961},{"style":230},[2962],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2964,"children":2965},{"style":224},[2966],{"type":23,"value":2967},"sma20, width",{"type":14,"tagName":35,"properties":2969,"children":2970},{"style":230},[2971],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2973,"children":2974},{"style":402},[2975],{"type":23,"value":2976},"1",{"type":14,"tagName":35,"properties":2978,"children":2979},{"style":224},[2980],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":2982,"children":2983},{"style":230},[2984],{"type":23,"value":233},{"type":14,"tagName":35,"properties":2986,"children":2987},{"style":224},[2988],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":2990,"children":2991},{"style":261},[2992],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":2994,"children":2995},{"style":224},[2996],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":2998,"children":2999},{"style":230},[3000],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3002,"children":3003},{"style":224},[3004],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3006,"children":3007},{"style":261},[3008],{"type":23,"value":3009},"\"SMA 20\"",{"type":14,"tagName":35,"properties":3011,"children":3012},{"style":224},[3013],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":3015,"children":3016},{"style":230},[3017],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3019,"children":3020},{"style":224},[3021],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3023,"children":3024},{"style":261},[3025],{"type":23,"value":3026},"\"20-period Simple Moving Average\"",{"type":14,"tagName":35,"properties":3028,"children":3029},{"style":224},[3030],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3033,"children":3034},{"class":220},[3035,3039,3043,3047,3052,3056,3060,3064,3068,3072,3077,3081,3085,3089,3094,3098,3102,3106,3111],{"type":14,"tagName":35,"properties":3036,"children":3037},{"style":236},[3038],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":3040,"children":3041},{"style":224},[3042],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":3044,"children":3045},{"style":230},[3046],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3048,"children":3049},{"style":224},[3050],{"type":23,"value":3051},"sma50, width",{"type":14,"tagName":35,"properties":3053,"children":3054},{"style":230},[3055],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3057,"children":3058},{"style":402},[3059],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":3061,"children":3062},{"style":224},[3063],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":3065,"children":3066},{"style":230},[3067],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3069,"children":3070},{"style":224},[3071],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3073,"children":3074},{"style":261},[3075],{"type":23,"value":3076},"\"red\"",{"type":14,"tagName":35,"properties":3078,"children":3079},{"style":224},[3080],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":3082,"children":3083},{"style":230},[3084],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3086,"children":3087},{"style":224},[3088],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3090,"children":3091},{"style":261},[3092],{"type":23,"value":3093},"\"SMA 50\"",{"type":14,"tagName":35,"properties":3095,"children":3096},{"style":224},[3097],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":3099,"children":3100},{"style":230},[3101],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3103,"children":3104},{"style":224},[3105],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3107,"children":3108},{"style":261},[3109],{"type":23,"value":3110},"\"50-period Simple Moving Average\"",{"type":14,"tagName":35,"properties":3112,"children":3113},{"style":224},[3114],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3117,"children":3118},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3121,"children":3122},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3125,"children":3126},{"class":220},[3127,3131,3135,3139,3143],{"type":14,"tagName":35,"properties":3128,"children":3129},{"style":224},[3130],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3132,"children":3133},{"style":230},[3134],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3136,"children":3137},{"style":224},[3138],{"type":23,"value":306},{"type":14,"tagName":35,"properties":3140,"children":3141},{"style":230},[3142],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3144,"children":3145},{"style":224},[3146],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3149,"children":3150},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3153,"children":3154},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3157,"children":3158},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3161,"children":3162},{"class":220},[3163,3167,3171,3175,3179,3184,3188],{"type":14,"tagName":35,"properties":3164,"children":3165},{"style":224},[3166],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3168,"children":3169},{"style":230},[3170],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3172,"children":3173},{"style":224},[3174],{"type":23,"value":344},{"type":14,"tagName":35,"properties":3176,"children":3177},{"style":230},[3178],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3180,"children":3181},{"style":261},[3182],{"type":23,"value":3183},"\"Can I plot conditional signals?\"",{"type":14,"tagName":35,"properties":3185,"children":3186},{"style":230},[3187],{"type":23,"value":358},{"type":14,"tagName":35,"properties":3189,"children":3190},{"style":224},[3191],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3194,"children":3195},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3198,"children":3199},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3202,"children":3203},{"class":220},[3204,3209,3214],{"type":14,"tagName":35,"properties":3205,"children":3206},{"style":224},[3207],{"type":23,"value":3208},"Yes, use ternary operators or conditional ",{"type":14,"tagName":35,"properties":3210,"children":3211},{"style":236},[3212],{"type":23,"value":3213},"values",{"type":14,"tagName":35,"properties":3215,"children":3216},{"style":224},[3217],{"type":23,"value":459},{"type":23,"value":89},{"type":11,"children":3220},[3221],{"type":14,"tagName":207,"properties":3222,"children":3224,"data":-1},{"class":209,"style":210,"tabindex":211,"title":3223},"Conditional Plot",[3225],{"type":14,"tagName":215,"properties":3226,"children":3227},{},[3228,3254,3255,3371,3372,3375,3376,3379,3380,3403,3404,3407,3408,3411,3412,3415,3416,3448,3449,3452,3453,3456,3457],{"type":14,"tagName":35,"properties":3229,"children":3230},{"class":220},[3231,3235,3240,3244,3249],{"type":14,"tagName":35,"properties":3232,"children":3233},{"style":230},[3234],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":3236,"children":3237},{"style":224},[3238],{"type":23,"value":3239}," buy_signal ",{"type":14,"tagName":35,"properties":3241,"children":3242},{"style":230},[3243],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3245,"children":3246},{"style":236},[3247],{"type":23,"value":3248}," crossover",{"type":14,"tagName":35,"properties":3250,"children":3251},{"style":224},[3252],{"type":23,"value":3253},"(sma_fast, sma_slow)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":3256,"children":3257},{"class":220},[3258,3263,3267,3271,3276,3280,3285,3289,3294,3298,3303,3308,3312,3316,3320,3324,3328,3333,3337,3341,3345,3350,3354,3358,3362,3367],{"type":14,"tagName":35,"properties":3259,"children":3260},{"style":236},[3261],{"type":23,"value":3262},"plotShape",{"type":14,"tagName":35,"properties":3264,"children":3265},{"style":224},[3266],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":3268,"children":3269},{"style":230},[3270],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3272,"children":3273},{"style":224},[3274],{"type":23,"value":3275},"buy_signal ",{"type":14,"tagName":35,"properties":3277,"children":3278},{"style":230},[3279],{"type":23,"value":2831},{"type":14,"tagName":35,"properties":3281,"children":3282},{"style":224},[3283],{"type":23,"value":3284}," data.low ",{"type":14,"tagName":35,"properties":3286,"children":3287},{"style":230},[3288],{"type":23,"value":459},{"type":14,"tagName":35,"properties":3290,"children":3291},{"style":224},[3292],{"type":23,"value":3293}," na, shape",{"type":14,"tagName":35,"properties":3295,"children":3296},{"style":230},[3297],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3299,"children":3300},{"style":261},[3301],{"type":23,"value":3302},"\"circle\"",{"type":14,"tagName":35,"properties":3304,"children":3305},{"style":224},[3306],{"type":23,"value":3307},", width",{"type":14,"tagName":35,"properties":3309,"children":3310},{"style":230},[3311],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3313,"children":3314},{"style":402},[3315],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":3317,"children":3318},{"style":224},[3319],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":3321,"children":3322},{"style":230},[3323],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3325,"children":3326},{"style":224},[3327],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3329,"children":3330},{"style":261},[3331],{"type":23,"value":3332},"\"green\"",{"type":14,"tagName":35,"properties":3334,"children":3335},{"style":224},[3336],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":3338,"children":3339},{"style":230},[3340],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3342,"children":3343},{"style":224},[3344],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3346,"children":3347},{"style":261},[3348],{"type":23,"value":3349},"\"Buy Signal\"",{"type":14,"tagName":35,"properties":3351,"children":3352},{"style":224},[3353],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":3355,"children":3356},{"style":230},[3357],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3359,"children":3360},{"style":224},[3361],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3363,"children":3364},{"style":261},[3365],{"type":23,"value":3366},"\"Buy Signal Marker\"",{"type":14,"tagName":35,"properties":3368,"children":3369},{"style":224},[3370],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3373,"children":3374},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3377,"children":3378},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3381,"children":3382},{"class":220},[3383,3387,3391,3395,3399],{"type":14,"tagName":35,"properties":3384,"children":3385},{"style":224},[3386],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3388,"children":3389},{"style":230},[3390],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3392,"children":3393},{"style":224},[3394],{"type":23,"value":306},{"type":14,"tagName":35,"properties":3396,"children":3397},{"style":230},[3398],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3400,"children":3401},{"style":224},[3402],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3405,"children":3406},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3409,"children":3410},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3413,"children":3414},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3417,"children":3418},{"class":220},[3419,3423,3427,3431,3435,3440,3444],{"type":14,"tagName":35,"properties":3420,"children":3421},{"style":224},[3422],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3424,"children":3425},{"style":230},[3426],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3428,"children":3429},{"style":224},[3430],{"type":23,"value":344},{"type":14,"tagName":35,"properties":3432,"children":3433},{"style":230},[3434],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3436,"children":3437},{"style":261},[3438],{"type":23,"value":3439},"\"How do I change plot colors dynamically?\"",{"type":14,"tagName":35,"properties":3441,"children":3442},{"style":230},[3443],{"type":23,"value":358},{"type":14,"tagName":35,"properties":3445,"children":3446},{"style":224},[3447],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3450,"children":3451},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3454,"children":3455},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3458,"children":3459},{"class":220},[3460,3465,3470,3475],{"type":14,"tagName":35,"properties":3461,"children":3462},{"style":224},[3463],{"type":23,"value":3464},"Use the ",{"type":14,"tagName":35,"properties":3466,"children":3467},{"style":261},[3468],{"type":23,"value":3469},"`colorIndex`",{"type":14,"tagName":35,"properties":3471,"children":3472},{"style":236},[3473],{"type":23,"value":3474}," parameter",{"type":14,"tagName":35,"properties":3476,"children":3477},{"style":224},[3478],{"type":23,"value":459},{"type":23,"value":89},{"type":11,"children":3481},[3482],{"type":14,"tagName":207,"properties":3483,"children":3485,"data":-1},{"class":209,"style":210,"tabindex":211,"title":3484},"Dynamic Colors",[3486],{"type":14,"tagName":215,"properties":3487,"children":3488},{},[3489,3538,3539,3639,3640,3643,3644,3647,3648,3671,3672,3675,3676,3679,3680,3683,3684,3716,3717,3720,3721,3724,3725,3775,3776,3779,3780],{"type":14,"tagName":35,"properties":3490,"children":3491},{"class":220},[3492,3496,3501,3505,3510,3515,3520,3524,3529,3534],{"type":14,"tagName":35,"properties":3493,"children":3494},{"style":230},[3495],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":3497,"children":3498},{"style":224},[3499],{"type":23,"value":3500}," trend ",{"type":14,"tagName":35,"properties":3502,"children":3503},{"style":230},[3504],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3506,"children":3507},{"style":224},[3508],{"type":23,"value":3509}," sma_fast ",{"type":14,"tagName":35,"properties":3511,"children":3512},{"style":230},[3513],{"type":23,"value":3514},">",{"type":14,"tagName":35,"properties":3516,"children":3517},{"style":224},[3518],{"type":23,"value":3519}," sma_slow ",{"type":14,"tagName":35,"properties":3521,"children":3522},{"style":230},[3523],{"type":23,"value":2831},{"type":14,"tagName":35,"properties":3525,"children":3526},{"style":402},[3527],{"type":23,"value":3528}," 1",{"type":14,"tagName":35,"properties":3530,"children":3531},{"style":230},[3532],{"type":23,"value":3533}," :",{"type":14,"tagName":35,"properties":3535,"children":3536},{"style":402},[3537],{"type":23,"value":2382},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3540,"children":3541},{"class":220},[3542,3546,3550,3554,3559,3563,3567,3571,3575,3579,3583,3587,3591,3596,3600,3605,3609,3613,3618,3622,3626,3630,3635],{"type":14,"tagName":35,"properties":3543,"children":3544},{"style":236},[3545],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":3547,"children":3548},{"style":224},[3549],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":3551,"children":3552},{"style":230},[3553],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3555,"children":3556},{"style":224},[3557],{"type":23,"value":3558},"data.close, width",{"type":14,"tagName":35,"properties":3560,"children":3561},{"style":230},[3562],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3564,"children":3565},{"style":402},[3566],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":3568,"children":3569},{"style":224},[3570],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":3572,"children":3573},{"style":230},[3574],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3576,"children":3577},{"style":224},[3578],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3580,"children":3581},{"style":261},[3582],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":3584,"children":3585},{"style":224},[3586],{"type":23,"value":749},{"type":14,"tagName":35,"properties":3588,"children":3589},{"style":261},[3590],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":3592,"children":3593},{"style":224},[3594],{"type":23,"value":3595},"], colorIndex",{"type":14,"tagName":35,"properties":3597,"children":3598},{"style":230},[3599],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3601,"children":3602},{"style":224},[3603],{"type":23,"value":3604},"trend, label",{"type":14,"tagName":35,"properties":3606,"children":3607},{"style":230},[3608],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3610,"children":3611},{"style":224},[3612],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3614,"children":3615},{"style":261},[3616],{"type":23,"value":3617},"\"Price\"",{"type":14,"tagName":35,"properties":3619,"children":3620},{"style":224},[3621],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":3623,"children":3624},{"style":230},[3625],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3627,"children":3628},{"style":224},[3629],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3631,"children":3632},{"style":261},[3633],{"type":23,"value":3634},"\"Price with Dynamic Colors\"",{"type":14,"tagName":35,"properties":3636,"children":3637},{"style":224},[3638],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3641,"children":3642},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3645,"children":3646},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3649,"children":3650},{"class":220},[3651,3655,3659,3663,3667],{"type":14,"tagName":35,"properties":3652,"children":3653},{"style":224},[3654],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3656,"children":3657},{"style":230},[3658],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3660,"children":3661},{"style":224},[3662],{"type":23,"value":306},{"type":14,"tagName":35,"properties":3664,"children":3665},{"style":230},[3666],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3668,"children":3669},{"style":224},[3670],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3673,"children":3674},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3677,"children":3678},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3681,"children":3682},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3685,"children":3686},{"class":220},[3687,3691,3695,3699,3703,3708,3712],{"type":14,"tagName":35,"properties":3688,"children":3689},{"style":224},[3690],{"type":23,"value":296},{"type":14,"tagName":35,"properties":3692,"children":3693},{"style":230},[3694],{"type":23,"value":301},{"type":14,"tagName":35,"properties":3696,"children":3697},{"style":224},[3698],{"type":23,"value":344},{"type":14,"tagName":35,"properties":3700,"children":3701},{"style":230},[3702],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3704,"children":3705},{"style":261},[3706],{"type":23,"value":3707},"\"Can I call plot functions inside conditionals (if-else) or loops?\"",{"type":14,"tagName":35,"properties":3709,"children":3710},{"style":230},[3711],{"type":23,"value":358},{"type":14,"tagName":35,"properties":3713,"children":3714},{"style":224},[3715],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3718,"children":3719},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3722,"children":3723},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3726,"children":3727},{"class":220},[3728,3732,3737,3742,3746,3751,3755,3760,3765,3770],{"type":14,"tagName":35,"properties":3729,"children":3730},{"style":230},[3731],{"type":23,"value":449},{"type":14,"tagName":35,"properties":3733,"children":3734},{"style":236},[3735],{"type":23,"value":3736},"Conditionals",{"type":14,"tagName":35,"properties":3738,"children":3739},{"style":224},[3740],{"type":23,"value":3741}," (if",{"type":14,"tagName":35,"properties":3743,"children":3744},{"style":230},[3745],{"type":23,"value":384},{"type":14,"tagName":35,"properties":3747,"children":3748},{"style":224},[3749],{"type":23,"value":3750},"else): Yes",{"type":14,"tagName":35,"properties":3752,"children":3753},{"style":230},[3754],{"type":23,"value":449},{"type":14,"tagName":35,"properties":3756,"children":3757},{"style":230},[3758],{"type":23,"value":3759}," -",{"type":14,"tagName":35,"properties":3761,"children":3762},{"style":224},[3763],{"type":23,"value":3764}," You can call plot functions inside ",{"type":14,"tagName":35,"properties":3766,"children":3767},{"style":230},[3768],{"type":23,"value":3769},"if-else",{"type":14,"tagName":35,"properties":3771,"children":3772},{"style":224},[3773],{"type":23,"value":3774}," statements. The plot will execute conditionally based on the condition at each bar.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":3777,"children":3778},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3781,"children":3782},{"class":220},[3783,3787,3792,3797,3801,3805],{"type":14,"tagName":35,"properties":3784,"children":3785},{"style":230},[3786],{"type":23,"value":449},{"type":14,"tagName":35,"properties":3788,"children":3789},{"style":236},[3790],{"type":23,"value":3791},"Loops",{"type":14,"tagName":35,"properties":3793,"children":3794},{"style":224},[3795],{"type":23,"value":3796},": Not allowed",{"type":14,"tagName":35,"properties":3798,"children":3799},{"style":230},[3800],{"type":23,"value":449},{"type":14,"tagName":35,"properties":3802,"children":3803},{"style":230},[3804],{"type":23,"value":3759},{"type":14,"tagName":35,"properties":3806,"children":3807},{"style":224},[3808],{"type":23,"value":3809}," Plotting inside loops would create multiple plot outputs per bar, which is not the intended behavior and may cause unexpected results.",{"type":23,"value":89},{"type":11,"children":3812},[3813],{"type":14,"tagName":207,"properties":3814,"children":3816,"data":-1},{"class":209,"style":210,"tabindex":211,"title":3815},"Plot Calls in Conditionals and Loops",[3817],{"type":14,"tagName":215,"properties":3818,"children":3819},{},[3820,3863,3864,3867,3868,3876,3877,3898,3899,3982,3983,3998,3999,4080,4081,4088,4089,4092,4093,4101,4102,4161,4162,4250,4251,4258,4259,4262,4263,4266,4267,4290,4291,4294,4295,4298,4299,4302,4303,4335,4336,4339,4340,4343,4344,4503,4504,4507,4508],{"type":14,"tagName":35,"properties":3821,"children":3822},{"class":220},[3823,3827,3831,3835,3839,3843,3847,3851,3855,3859],{"type":14,"tagName":35,"properties":3824,"children":3825},{"style":224},[3826],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":3828,"children":3829},{"style":230},[3830],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3832,"children":3833},{"style":236},[3834],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":3836,"children":3837},{"style":224},[3838],{"type":23,"value":258},{"type":14,"tagName":35,"properties":3840,"children":3841},{"style":261},[3842],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":3844,"children":3845},{"style":224},[3846],{"type":23,"value":749},{"type":14,"tagName":35,"properties":3848,"children":3849},{"style":261},[3850],{"type":23,"value":744},{"type":14,"tagName":35,"properties":3852,"children":3853},{"style":224},[3854],{"type":23,"value":749},{"type":14,"tagName":35,"properties":3856,"children":3857},{"style":261},[3858],{"type":23,"value":754},{"type":14,"tagName":35,"properties":3860,"children":3861},{"style":224},[3862],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3865,"children":3866},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":3869,"children":3870},{"class":220},[3871],{"type":14,"tagName":35,"properties":3872,"children":3873},{"style":558},[3874],{"type":23,"value":3875},"// ✓ Allowed in conditionals",{"type":23,"value":89},{"type":14,"tagName":35,"properties":3878,"children":3879},{"class":220},[3880,3884,3889,3893],{"type":14,"tagName":35,"properties":3881,"children":3882},{"style":230},[3883],{"type":23,"value":936},{"type":14,"tagName":35,"properties":3885,"children":3886},{"style":224},[3887],{"type":23,"value":3888}," (ohlcv.close ",{"type":14,"tagName":35,"properties":3890,"children":3891},{"style":230},[3892],{"type":23,"value":3514},{"type":14,"tagName":35,"properties":3894,"children":3895},{"style":224},[3896],{"type":23,"value":3897}," ohlcv.open) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":3900,"children":3901},{"class":220},[3902,3907,3911,3915,3920,3924,3928,3932,3936,3940,3944,3948,3952,3956,3961,3965,3969,3973,3978],{"type":14,"tagName":35,"properties":3903,"children":3904},{"style":236},[3905],{"type":23,"value":3906},"  plotLine",{"type":14,"tagName":35,"properties":3908,"children":3909},{"style":224},[3910],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":3912,"children":3913},{"style":230},[3914],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3916,"children":3917},{"style":224},[3918],{"type":23,"value":3919},"ohlcvData.close, width",{"type":14,"tagName":35,"properties":3921,"children":3922},{"style":230},[3923],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3925,"children":3926},{"style":402},[3927],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":3929,"children":3930},{"style":224},[3931],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":3933,"children":3934},{"style":230},[3935],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3937,"children":3938},{"style":224},[3939],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3941,"children":3942},{"style":261},[3943],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":3945,"children":3946},{"style":224},[3947],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":3949,"children":3950},{"style":230},[3951],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3953,"children":3954},{"style":224},[3955],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3957,"children":3958},{"style":261},[3959],{"type":23,"value":3960},"\"Bullish\"",{"type":14,"tagName":35,"properties":3962,"children":3963},{"style":224},[3964],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":3966,"children":3967},{"style":230},[3968],{"type":23,"value":233},{"type":14,"tagName":35,"properties":3970,"children":3971},{"style":224},[3972],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":3974,"children":3975},{"style":261},[3976],{"type":23,"value":3977},"\"Bullish Price\"",{"type":14,"tagName":35,"properties":3979,"children":3980},{"style":224},[3981],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":3984,"children":3985},{"class":220},[3986,3990,3994],{"type":14,"tagName":35,"properties":3987,"children":3988},{"style":224},[3989],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":3991,"children":3992},{"style":230},[3993],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":3995,"children":3996},{"style":224},[3997],{"type":23,"value":2472},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4000,"children":4001},{"class":220},[4002,4006,4010,4014,4018,4022,4026,4030,4034,4038,4042,4046,4050,4054,4059,4063,4067,4071,4076],{"type":14,"tagName":35,"properties":4003,"children":4004},{"style":236},[4005],{"type":23,"value":3906},{"type":14,"tagName":35,"properties":4007,"children":4008},{"style":224},[4009],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":4011,"children":4012},{"style":230},[4013],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4015,"children":4016},{"style":224},[4017],{"type":23,"value":3919},{"type":14,"tagName":35,"properties":4019,"children":4020},{"style":230},[4021],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4023,"children":4024},{"style":402},[4025],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":4027,"children":4028},{"style":224},[4029],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":4031,"children":4032},{"style":230},[4033],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4035,"children":4036},{"style":224},[4037],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4039,"children":4040},{"style":261},[4041],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":4043,"children":4044},{"style":224},[4045],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":4047,"children":4048},{"style":230},[4049],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4051,"children":4052},{"style":224},[4053],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4055,"children":4056},{"style":261},[4057],{"type":23,"value":4058},"\"Bearish\"",{"type":14,"tagName":35,"properties":4060,"children":4061},{"style":224},[4062],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":4064,"children":4065},{"style":230},[4066],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4068,"children":4069},{"style":224},[4070],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4072,"children":4073},{"style":261},[4074],{"type":23,"value":4075},"\"Bearish Price\"",{"type":14,"tagName":35,"properties":4077,"children":4078},{"style":224},[4079],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4082,"children":4083},{"class":220},[4084],{"type":14,"tagName":35,"properties":4085,"children":4086},{"style":224},[4087],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4090,"children":4091},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4094,"children":4095},{"class":220},[4096],{"type":14,"tagName":35,"properties":4097,"children":4098},{"style":558},[4099],{"type":23,"value":4100},"// ✗ Not recommended in loops",{"type":23,"value":89},{"type":14,"tagName":35,"properties":4103,"children":4104},{"class":220},[4105,4110,4114,4118,4123,4127,4131,4136,4141,4146,4151,4156],{"type":14,"tagName":35,"properties":4106,"children":4107},{"style":230},[4108],{"type":23,"value":4109},"for",{"type":14,"tagName":35,"properties":4111,"children":4112},{"style":224},[4113],{"type":23,"value":2420},{"type":14,"tagName":35,"properties":4115,"children":4116},{"style":230},[4117],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":4119,"children":4120},{"style":224},[4121],{"type":23,"value":4122}," i ",{"type":14,"tagName":35,"properties":4124,"children":4125},{"style":230},[4126],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4128,"children":4129},{"style":402},[4130],{"type":23,"value":2382},{"type":14,"tagName":35,"properties":4132,"children":4133},{"style":224},[4134],{"type":23,"value":4135},"; i ",{"type":14,"tagName":35,"properties":4137,"children":4138},{"style":230},[4139],{"type":23,"value":4140},"\u003C",{"type":14,"tagName":35,"properties":4142,"children":4143},{"style":402},[4144],{"type":23,"value":4145}," 10",{"type":14,"tagName":35,"properties":4147,"children":4148},{"style":224},[4149],{"type":23,"value":4150},"; i",{"type":14,"tagName":35,"properties":4152,"children":4153},{"style":230},[4154],{"type":23,"value":4155},"++",{"type":14,"tagName":35,"properties":4157,"children":4158},{"style":224},[4159],{"type":23,"value":4160},") {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":4163,"children":4164},{"class":220},[4165,4169,4173,4177,4182,4186,4190,4194,4198,4202,4206,4210,4214,4218,4223,4227,4231,4235,4240,4245],{"type":14,"tagName":35,"properties":4166,"children":4167},{"style":236},[4168],{"type":23,"value":3906},{"type":14,"tagName":35,"properties":4170,"children":4171},{"style":224},[4172],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":4174,"children":4175},{"style":230},[4176],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4178,"children":4179},{"style":224},[4180],{"type":23,"value":4181},"i, width",{"type":14,"tagName":35,"properties":4183,"children":4184},{"style":230},[4185],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4187,"children":4188},{"style":402},[4189],{"type":23,"value":2976},{"type":14,"tagName":35,"properties":4191,"children":4192},{"style":224},[4193],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":4195,"children":4196},{"style":230},[4197],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4199,"children":4200},{"style":224},[4201],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4203,"children":4204},{"style":261},[4205],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":4207,"children":4208},{"style":224},[4209],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":4211,"children":4212},{"style":230},[4213],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4215,"children":4216},{"style":224},[4217],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4219,"children":4220},{"style":261},[4221],{"type":23,"value":4222},"\"Loop\"",{"type":14,"tagName":35,"properties":4224,"children":4225},{"style":224},[4226],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":4228,"children":4229},{"style":230},[4230],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4232,"children":4233},{"style":224},[4234],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4236,"children":4237},{"style":261},[4238],{"type":23,"value":4239},"\"Loop Value\"",{"type":14,"tagName":35,"properties":4241,"children":4242},{"style":224},[4243],{"type":23,"value":4244},"])  ",{"type":14,"tagName":35,"properties":4246,"children":4247},{"style":558},[4248],{"type":23,"value":4249},"// Creates multiple plots per bar",{"type":23,"value":89},{"type":14,"tagName":35,"properties":4252,"children":4253},{"class":220},[4254],{"type":14,"tagName":35,"properties":4255,"children":4256},{"style":224},[4257],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4260,"children":4261},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4264,"children":4265},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4268,"children":4269},{"class":220},[4270,4274,4278,4282,4286],{"type":14,"tagName":35,"properties":4271,"children":4272},{"style":224},[4273],{"type":23,"value":296},{"type":14,"tagName":35,"properties":4275,"children":4276},{"style":230},[4277],{"type":23,"value":301},{"type":14,"tagName":35,"properties":4279,"children":4280},{"style":224},[4281],{"type":23,"value":306},{"type":14,"tagName":35,"properties":4283,"children":4284},{"style":230},[4285],{"type":23,"value":301},{"type":14,"tagName":35,"properties":4287,"children":4288},{"style":224},[4289],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4292,"children":4293},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4296,"children":4297},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4300,"children":4301},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4304,"children":4305},{"class":220},[4306,4310,4314,4318,4322,4327,4331],{"type":14,"tagName":35,"properties":4307,"children":4308},{"style":224},[4309],{"type":23,"value":296},{"type":14,"tagName":35,"properties":4311,"children":4312},{"style":230},[4313],{"type":23,"value":301},{"type":14,"tagName":35,"properties":4315,"children":4316},{"style":224},[4317],{"type":23,"value":344},{"type":14,"tagName":35,"properties":4319,"children":4320},{"style":230},[4321],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4323,"children":4324},{"style":261},[4325],{"type":23,"value":4326},"'Difference between plotLine() and plot(plotType=\"line\")?'",{"type":14,"tagName":35,"properties":4328,"children":4329},{"style":230},[4330],{"type":23,"value":358},{"type":14,"tagName":35,"properties":4332,"children":4333},{"style":224},[4334],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4337,"children":4338},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4341,"children":4342},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4345,"children":4346},{"class":220},[4347,4352,4356,4361,4366,4370,4375,4380,4385,4390,4395,4400,4405,4409,4414,4419,4424,4429,4434,4439,4444,4449,4454,4459,4464,4469,4474,4479,4484,4489,4494,4499],{"type":14,"tagName":35,"properties":4348,"children":4349},{"style":224},[4350],{"type":23,"value":4351},"There is ",{"type":14,"tagName":35,"properties":4353,"children":4354},{"style":230},[4355],{"type":23,"value":449},{"type":14,"tagName":35,"properties":4357,"children":4358},{"style":402},[4359],{"type":23,"value":4360},"NO",{"type":14,"tagName":35,"properties":4362,"children":4363},{"style":224},[4364],{"type":23,"value":4365}," functional difference",{"type":14,"tagName":35,"properties":4367,"children":4368},{"style":230},[4369],{"type":23,"value":449},{"type":14,"tagName":35,"properties":4371,"children":4372},{"style":224},[4373],{"type":23,"value":4374},". ",{"type":14,"tagName":35,"properties":4376,"children":4377},{"style":261},[4378],{"type":23,"value":4379},"`plot()`",{"type":14,"tagName":35,"properties":4381,"children":4382},{"style":230},[4383],{"type":23,"value":4384}," with",{"type":14,"tagName":35,"properties":4386,"children":4387},{"style":261},[4388],{"type":23,"value":4389}," `plotType=\"line\"`",{"type":14,"tagName":35,"properties":4391,"children":4392},{"style":224},[4393],{"type":23,"value":4394}," is simply an alias that internally calls ",{"type":14,"tagName":35,"properties":4396,"children":4397},{"style":261},[4398],{"type":23,"value":4399},"`plotLine()`",{"type":14,"tagName":35,"properties":4401,"children":4402},{"style":224},[4403],{"type":23,"value":4404},". The ",{"type":14,"tagName":35,"properties":4406,"children":4407},{"style":261},[4408],{"type":23,"value":4379},{"type":14,"tagName":35,"properties":4410,"children":4411},{"style":230},[4412],{"type":23,"value":4413}," function",{"type":14,"tagName":35,"properties":4415,"children":4416},{"style":236},[4417],{"type":23,"value":4418}," is",{"type":14,"tagName":35,"properties":4420,"children":4421},{"style":236},[4422],{"type":23,"value":4423}," a",{"type":14,"tagName":35,"properties":4425,"children":4426},{"style":236},[4427],{"type":23,"value":4428}," generic",{"type":14,"tagName":35,"properties":4430,"children":4431},{"style":236},[4432],{"type":23,"value":4433}," interface",{"type":14,"tagName":35,"properties":4435,"children":4436},{"style":236},[4437],{"type":23,"value":4438}," that",{"type":14,"tagName":35,"properties":4440,"children":4441},{"style":236},[4442],{"type":23,"value":4443}," can",{"type":14,"tagName":35,"properties":4445,"children":4446},{"style":236},[4447],{"type":23,"value":4448}," create",{"type":14,"tagName":35,"properties":4450,"children":4451},{"style":236},[4452],{"type":23,"value":4453}," different",{"type":14,"tagName":35,"properties":4455,"children":4456},{"style":236},[4457],{"type":23,"value":4458}," plot",{"type":14,"tagName":35,"properties":4460,"children":4461},{"style":236},[4462],{"type":23,"value":4463}," types",{"type":14,"tagName":35,"properties":4465,"children":4466},{"style":236},[4467],{"type":23,"value":4468}," by",{"type":14,"tagName":35,"properties":4470,"children":4471},{"style":236},[4472],{"type":23,"value":4473}," changing",{"type":14,"tagName":35,"properties":4475,"children":4476},{"style":236},[4477],{"type":23,"value":4478}," the",{"type":14,"tagName":35,"properties":4480,"children":4481},{"style":224},[4482],{"type":23,"value":4483}," `",{"type":14,"tagName":35,"properties":4485,"children":4486},{"style":236},[4487],{"type":23,"value":4488},"plotType",{"type":14,"tagName":35,"properties":4490,"children":4491},{"style":224},[4492],{"type":23,"value":4493},"` ",{"type":14,"tagName":35,"properties":4495,"children":4496},{"style":236},[4497],{"type":23,"value":4498},"parameter",{"type":14,"tagName":35,"properties":4500,"children":4501},{"style":224},[4502],{"type":23,"value":436},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4505,"children":4506},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4509,"children":4510},{"class":220},[4511,4515,4520,4524,4528,4533,4537,4542,4547],{"type":14,"tagName":35,"properties":4512,"children":4513},{"style":230},[4514],{"type":23,"value":449},{"type":14,"tagName":35,"properties":4516,"children":4517},{"style":236},[4518],{"type":23,"value":4519},"Available",{"type":14,"tagName":35,"properties":4521,"children":4522},{"style":236},[4523],{"type":23,"value":4458},{"type":14,"tagName":35,"properties":4525,"children":4526},{"style":236},[4527],{"type":23,"value":4463},{"type":14,"tagName":35,"properties":4529,"children":4530},{"style":236},[4531],{"type":23,"value":4532}," via",{"type":14,"tagName":35,"properties":4534,"children":4535},{"style":224},[4536],{"type":23,"value":4483},{"type":14,"tagName":35,"properties":4538,"children":4539},{"style":236},[4540],{"type":23,"value":4541},"plot",{"type":14,"tagName":35,"properties":4543,"children":4544},{"style":224},[4545],{"type":23,"value":4546},"()`:",{"type":14,"tagName":35,"properties":4548,"children":4549},{"style":230},[4550],{"type":23,"value":449},{"type":23,"value":89},{"type":14,"tagName":1686,"properties":4553,"children":4554,"position":4739},{},[4555,4556,4617,4618,4656,4657,4697,4698,4738],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":4557,"children":4558,"position":4613},{},[4559,4574,4580,4593,4600],{"type":14,"tagName":215,"properties":4560,"children":4561,"position":4571},{},[4562],{"type":23,"value":4563,"position":4564},"plotType=\"line\"",{"start":4565,"end":4568},{"line":4566,"column":32,"offset":4567},297,9277,{"line":4566,"column":4569,"offset":4570},20,9294,{"start":4572,"end":4573},{"line":4566,"column":32,"offset":4567},{"line":4566,"column":4569,"offset":4570},{"type":23,"value":4575,"position":4576}," or ",{"start":4577,"end":4578},{"line":4566,"column":4569,"offset":4570},{"line":4566,"column":2666,"offset":4579},9298,{"type":14,"tagName":215,"properties":4581,"children":4582,"position":4590},{},[4583],{"type":23,"value":4584,"position":4585},"\"spline\"",{"start":4586,"end":4587},{"line":4566,"column":2666,"offset":4579},{"line":4566,"column":4588,"offset":4589},34,9308,{"start":4591,"end":4592},{"line":4566,"column":2666,"offset":4579},{"line":4566,"column":4588,"offset":4589},{"type":23,"value":4594,"position":4595}," -> calls ",{"start":4596,"end":4597},{"line":4566,"column":4588,"offset":4589},{"line":4566,"column":4598,"offset":4599},44,9318,{"type":14,"tagName":215,"properties":4601,"children":4602,"position":4610},{},[4603],{"type":23,"value":4604,"position":4605},"plotLine()",{"start":4606,"end":4607},{"line":4566,"column":4598,"offset":4599},{"line":4566,"column":4608,"offset":4609},56,9330,{"start":4611,"end":4612},{"line":4566,"column":4598,"offset":4599},{"line":4566,"column":4608,"offset":4609},{"start":4614,"end":4616},{"line":4566,"column":27,"offset":4615},9275,{"line":4566,"column":4608,"offset":4609},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":4619,"children":4620,"position":4652},{},[4621,4635,4640],{"type":14,"tagName":215,"properties":4622,"children":4623,"position":4632},{},[4624],{"type":23,"value":4625,"position":4626},"plotType=\"bar\"",{"start":4627,"end":4630},{"line":4628,"column":32,"offset":4629},298,9333,{"line":4628,"column":112,"offset":4631},9349,{"start":4633,"end":4634},{"line":4628,"column":32,"offset":4629},{"line":4628,"column":112,"offset":4631},{"type":23,"value":4594,"position":4636},{"start":4637,"end":4638},{"line":4628,"column":112,"offset":4631},{"line":4628,"column":29,"offset":4639},9359,{"type":14,"tagName":215,"properties":4641,"children":4642,"position":4649},{},[4643],{"type":23,"value":4644,"position":4645},"plotBar()",{"start":4646,"end":4647},{"line":4628,"column":29,"offset":4639},{"line":4628,"column":2691,"offset":4648},9370,{"start":4650,"end":4651},{"line":4628,"column":29,"offset":4639},{"line":4628,"column":2691,"offset":4648},{"start":4653,"end":4655},{"line":4628,"column":27,"offset":4654},9331,{"line":4628,"column":2691,"offset":4648},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":4658,"children":4659,"position":4693},{},[4660,4675,4680],{"type":14,"tagName":215,"properties":4661,"children":4662,"position":4672},{},[4663],{"type":23,"value":4664,"position":4665},"plotType=\"candle\"",{"start":4666,"end":4669},{"line":4667,"column":32,"offset":4668},299,9373,{"line":4667,"column":4670,"offset":4671},22,9392,{"start":4673,"end":4674},{"line":4667,"column":32,"offset":4668},{"line":4667,"column":4670,"offset":4671},{"type":23,"value":4594,"position":4676},{"start":4677,"end":4678},{"line":4667,"column":4670,"offset":4671},{"line":4667,"column":33,"offset":4679},9402,{"type":14,"tagName":215,"properties":4681,"children":4682,"position":4690},{},[4683],{"type":23,"value":4684,"position":4685},"plotCandle()",{"start":4686,"end":4687},{"line":4667,"column":33,"offset":4679},{"line":4667,"column":4688,"offset":4689},46,9416,{"start":4691,"end":4692},{"line":4667,"column":33,"offset":4679},{"line":4667,"column":4688,"offset":4689},{"start":4694,"end":4696},{"line":4667,"column":27,"offset":4695},9371,{"line":4667,"column":4688,"offset":4689},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":4699,"children":4700,"position":4734},{},[4701,4716,4722],{"type":14,"tagName":215,"properties":4702,"children":4703,"position":4713},{},[4704],{"type":23,"value":4705,"position":4706},"plotType=\"point\"",{"start":4707,"end":4710},{"line":4708,"column":32,"offset":4709},300,9419,{"line":4708,"column":4711,"offset":4712},21,9437,{"start":4714,"end":4715},{"line":4708,"column":32,"offset":4709},{"line":4708,"column":4711,"offset":4712},{"type":23,"value":4594,"position":4717},{"start":4718,"end":4719},{"line":4708,"column":4711,"offset":4712},{"line":4708,"column":4720,"offset":4721},31,9447,{"type":14,"tagName":215,"properties":4723,"children":4724,"position":4731},{},[4725],{"type":23,"value":4726,"position":4727},"plotShape()",{"start":4728,"end":4729},{"line":4708,"column":4720,"offset":4721},{"line":4708,"column":4598,"offset":4730},9460,{"start":4732,"end":4733},{"line":4708,"column":4720,"offset":4721},{"line":4708,"column":4598,"offset":4730},{"start":4735,"end":4737},{"line":4708,"column":27,"offset":4736},9417,{"line":4708,"column":4598,"offset":4730},{"type":23,"value":89},{"start":4740,"end":4741},{"line":4566,"column":27,"offset":4615},{"line":4708,"column":4598,"offset":4730},{"type":23,"value":89},{"type":11,"children":4744},[4745],{"type":14,"tagName":207,"properties":4746,"children":4748,"data":-1},{"class":209,"style":210,"tabindex":211,"title":4747},"plotLine() vs plot()",[4749],{"type":14,"tagName":215,"properties":4750,"children":4751},{},[4752,4795,4796,4799,4800,4808,4809,4889,4890,4983,4984,5075,5076,5079,5080,5088,5089,5183,5184,5287,5288,5291,5292,5295,5296,5319,5320,5323,5324,5327,5328,5331,5332,5364,5365,5368,5369,5372,5373],{"type":14,"tagName":35,"properties":4753,"children":4754},{"class":220},[4755,4759,4763,4767,4771,4775,4779,4783,4787,4791],{"type":14,"tagName":35,"properties":4756,"children":4757},{"style":224},[4758],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":4760,"children":4761},{"style":230},[4762],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4764,"children":4765},{"style":236},[4766],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":4768,"children":4769},{"style":224},[4770],{"type":23,"value":258},{"type":14,"tagName":35,"properties":4772,"children":4773},{"style":261},[4774],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":4776,"children":4777},{"style":224},[4778],{"type":23,"value":749},{"type":14,"tagName":35,"properties":4780,"children":4781},{"style":261},[4782],{"type":23,"value":744},{"type":14,"tagName":35,"properties":4784,"children":4785},{"style":224},[4786],{"type":23,"value":749},{"type":14,"tagName":35,"properties":4788,"children":4789},{"style":261},[4790],{"type":23,"value":754},{"type":14,"tagName":35,"properties":4792,"children":4793},{"style":224},[4794],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4797,"children":4798},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":4801,"children":4802},{"class":220},[4803],{"type":14,"tagName":35,"properties":4804,"children":4805},{"style":558},[4806],{"type":23,"value":4807},"// These three are identical",{"type":23,"value":89},{"type":14,"tagName":35,"properties":4810,"children":4811},{"class":220},[4812,4816,4820,4824,4828,4832,4836,4840,4844,4848,4852,4856,4860,4864,4868,4872,4876,4880,4885],{"type":14,"tagName":35,"properties":4813,"children":4814},{"style":236},[4815],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":4817,"children":4818},{"style":224},[4819],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":4821,"children":4822},{"style":230},[4823],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4825,"children":4826},{"style":224},[4827],{"type":23,"value":3919},{"type":14,"tagName":35,"properties":4829,"children":4830},{"style":230},[4831],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4833,"children":4834},{"style":402},[4835],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":4837,"children":4838},{"style":224},[4839],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":4841,"children":4842},{"style":230},[4843],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4845,"children":4846},{"style":224},[4847],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4849,"children":4850},{"style":261},[4851],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":4853,"children":4854},{"style":224},[4855],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":4857,"children":4858},{"style":230},[4859],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4861,"children":4862},{"style":224},[4863],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4865,"children":4866},{"style":261},[4867],{"type":23,"value":3617},{"type":14,"tagName":35,"properties":4869,"children":4870},{"style":224},[4871],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":4873,"children":4874},{"style":230},[4875],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4877,"children":4878},{"style":224},[4879],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4881,"children":4882},{"style":261},[4883],{"type":23,"value":4884},"\"Close Price\"",{"type":14,"tagName":35,"properties":4886,"children":4887},{"style":224},[4888],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4891,"children":4892},{"class":220},[4893,4897,4901,4905,4910,4914,4919,4923,4927,4931,4935,4939,4943,4947,4951,4955,4959,4963,4967,4971,4975,4979],{"type":14,"tagName":35,"properties":4894,"children":4895},{"style":236},[4896],{"type":23,"value":4541},{"type":14,"tagName":35,"properties":4898,"children":4899},{"style":224},[4900],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":4902,"children":4903},{"style":230},[4904],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4906,"children":4907},{"style":224},[4908],{"type":23,"value":4909},"ohlcvData.close, plotType",{"type":14,"tagName":35,"properties":4911,"children":4912},{"style":230},[4913],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4915,"children":4916},{"style":261},[4917],{"type":23,"value":4918},"\"line\"",{"type":14,"tagName":35,"properties":4920,"children":4921},{"style":224},[4922],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":4924,"children":4925},{"style":230},[4926],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4928,"children":4929},{"style":402},[4930],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":4932,"children":4933},{"style":224},[4934],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":4936,"children":4937},{"style":230},[4938],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4940,"children":4941},{"style":224},[4942],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4944,"children":4945},{"style":261},[4946],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":4948,"children":4949},{"style":224},[4950],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":4952,"children":4953},{"style":230},[4954],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4956,"children":4957},{"style":224},[4958],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4960,"children":4961},{"style":261},[4962],{"type":23,"value":3617},{"type":14,"tagName":35,"properties":4964,"children":4965},{"style":224},[4966],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":4968,"children":4969},{"style":230},[4970],{"type":23,"value":233},{"type":14,"tagName":35,"properties":4972,"children":4973},{"style":224},[4974],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":4976,"children":4977},{"style":261},[4978],{"type":23,"value":4884},{"type":14,"tagName":35,"properties":4980,"children":4981},{"style":224},[4982],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":4985,"children":4986},{"class":220},[4987,4991,4995,4999,5003,5007,5011,5015,5019,5023,5027,5031,5035,5039,5043,5047,5051,5055,5059,5063,5067,5071],{"type":14,"tagName":35,"properties":4988,"children":4989},{"style":236},[4990],{"type":23,"value":4541},{"type":14,"tagName":35,"properties":4992,"children":4993},{"style":224},[4994],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":4996,"children":4997},{"style":230},[4998],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5000,"children":5001},{"style":224},[5002],{"type":23,"value":4909},{"type":14,"tagName":35,"properties":5004,"children":5005},{"style":230},[5006],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5008,"children":5009},{"style":261},[5010],{"type":23,"value":4584},{"type":14,"tagName":35,"properties":5012,"children":5013},{"style":224},[5014],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":5016,"children":5017},{"style":230},[5018],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5020,"children":5021},{"style":402},[5022],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":5024,"children":5025},{"style":224},[5026],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":5028,"children":5029},{"style":230},[5030],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5032,"children":5033},{"style":224},[5034],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5036,"children":5037},{"style":261},[5038],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":5040,"children":5041},{"style":224},[5042],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":5044,"children":5045},{"style":230},[5046],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5048,"children":5049},{"style":224},[5050],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5052,"children":5053},{"style":261},[5054],{"type":23,"value":3617},{"type":14,"tagName":35,"properties":5056,"children":5057},{"style":224},[5058],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":5060,"children":5061},{"style":230},[5062],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5064,"children":5065},{"style":224},[5066],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5068,"children":5069},{"style":261},[5070],{"type":23,"value":4884},{"type":14,"tagName":35,"properties":5072,"children":5073},{"style":224},[5074],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5077,"children":5078},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5081,"children":5082},{"class":220},[5083],{"type":14,"tagName":35,"properties":5084,"children":5085},{"style":558},[5086],{"type":23,"value":5087},"// plot() can also create other types",{"type":23,"value":89},{"type":14,"tagName":35,"properties":5090,"children":5091},{"class":220},[5092,5096,5100,5104,5108,5112,5117,5121,5125,5129,5133,5137,5141,5145,5149,5153,5157,5162,5166,5170,5174,5179],{"type":14,"tagName":35,"properties":5093,"children":5094},{"style":236},[5095],{"type":23,"value":4541},{"type":14,"tagName":35,"properties":5097,"children":5098},{"style":224},[5099],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":5101,"children":5102},{"style":230},[5103],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5105,"children":5106},{"style":224},[5107],{"type":23,"value":4909},{"type":14,"tagName":35,"properties":5109,"children":5110},{"style":230},[5111],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5113,"children":5114},{"style":261},[5115],{"type":23,"value":5116},"\"bar\"",{"type":14,"tagName":35,"properties":5118,"children":5119},{"style":224},[5120],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":5122,"children":5123},{"style":230},[5124],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5126,"children":5127},{"style":402},[5128],{"type":23,"value":2976},{"type":14,"tagName":35,"properties":5130,"children":5131},{"style":224},[5132],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":5134,"children":5135},{"style":230},[5136],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5138,"children":5139},{"style":224},[5140],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5142,"children":5143},{"style":261},[5144],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":5146,"children":5147},{"style":224},[5148],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":5150,"children":5151},{"style":230},[5152],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5154,"children":5155},{"style":224},[5156],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5158,"children":5159},{"style":261},[5160],{"type":23,"value":5161},"\"Volume\"",{"type":14,"tagName":35,"properties":5163,"children":5164},{"style":224},[5165],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":5167,"children":5168},{"style":230},[5169],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5171,"children":5172},{"style":224},[5173],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5175,"children":5176},{"style":261},[5177],{"type":23,"value":5178},"\"Volume Bars\"",{"type":14,"tagName":35,"properties":5180,"children":5181},{"style":224},[5182],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5185,"children":5186},{"class":220},[5187,5191,5195,5199,5204,5208,5213,5217,5221,5225,5229,5233,5237,5241,5245,5249,5253,5257,5261,5266,5270,5274,5278,5283],{"type":14,"tagName":35,"properties":5188,"children":5189},{"style":236},[5190],{"type":23,"value":4541},{"type":14,"tagName":35,"properties":5192,"children":5193},{"style":224},[5194],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":5196,"children":5197},{"style":230},[5198],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5200,"children":5201},{"style":224},[5202],{"type":23,"value":5203},"[ohlcvData.open, ohlcvData.high, ohlcvData.low, ohlcvData.close], plotType",{"type":14,"tagName":35,"properties":5205,"children":5206},{"style":230},[5207],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5209,"children":5210},{"style":261},[5211],{"type":23,"value":5212},"\"candle\"",{"type":14,"tagName":35,"properties":5214,"children":5215},{"style":224},[5216],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":5218,"children":5219},{"style":230},[5220],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5222,"children":5223},{"style":402},[5224],{"type":23,"value":2976},{"type":14,"tagName":35,"properties":5226,"children":5227},{"style":224},[5228],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":5230,"children":5231},{"style":230},[5232],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5234,"children":5235},{"style":224},[5236],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5238,"children":5239},{"style":261},[5240],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":5242,"children":5243},{"style":224},[5244],{"type":23,"value":749},{"type":14,"tagName":35,"properties":5246,"children":5247},{"style":261},[5248],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":5250,"children":5251},{"style":224},[5252],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":5254,"children":5255},{"style":230},[5256],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5258,"children":5259},{"style":224},[5260],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5262,"children":5263},{"style":261},[5264],{"type":23,"value":5265},"\"OHLC\"",{"type":14,"tagName":35,"properties":5267,"children":5268},{"style":224},[5269],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":5271,"children":5272},{"style":230},[5273],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5275,"children":5276},{"style":224},[5277],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5279,"children":5280},{"style":261},[5281],{"type":23,"value":5282},"\"OHLC Candlestick\"",{"type":14,"tagName":35,"properties":5284,"children":5285},{"style":224},[5286],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5289,"children":5290},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5293,"children":5294},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5297,"children":5298},{"class":220},[5299,5303,5307,5311,5315],{"type":14,"tagName":35,"properties":5300,"children":5301},{"style":224},[5302],{"type":23,"value":296},{"type":14,"tagName":35,"properties":5304,"children":5305},{"style":230},[5306],{"type":23,"value":301},{"type":14,"tagName":35,"properties":5308,"children":5309},{"style":224},[5310],{"type":23,"value":306},{"type":14,"tagName":35,"properties":5312,"children":5313},{"style":230},[5314],{"type":23,"value":301},{"type":14,"tagName":35,"properties":5316,"children":5317},{"style":224},[5318],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5321,"children":5322},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5325,"children":5326},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5329,"children":5330},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5333,"children":5334},{"class":220},[5335,5339,5343,5347,5351,5356,5360],{"type":14,"tagName":35,"properties":5336,"children":5337},{"style":224},[5338],{"type":23,"value":296},{"type":14,"tagName":35,"properties":5340,"children":5341},{"style":230},[5342],{"type":23,"value":301},{"type":14,"tagName":35,"properties":5344,"children":5345},{"style":224},[5346],{"type":23,"value":344},{"type":14,"tagName":35,"properties":5348,"children":5349},{"style":230},[5350],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5352,"children":5353},{"style":261},[5354],{"type":23,"value":5355},"\"How does the positioning system work for shape and text plots?\"",{"type":14,"tagName":35,"properties":5357,"children":5358},{"style":230},[5359],{"type":23,"value":358},{"type":14,"tagName":35,"properties":5361,"children":5362},{"style":224},[5363],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5366,"children":5367},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5370,"children":5371},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5374,"children":5375},{"class":220},[5376,5381,5385,5390,5394,5399,5404,5408,5413,5418,5423,5427],{"type":14,"tagName":35,"properties":5377,"children":5378},{"style":224},[5379],{"type":23,"value":5380},"Shape and text plots use a coordinate",{"type":14,"tagName":35,"properties":5382,"children":5383},{"style":230},[5384],{"type":23,"value":384},{"type":14,"tagName":35,"properties":5386,"children":5387},{"style":224},[5388],{"type":23,"value":5389},"based positioning system ",{"type":14,"tagName":35,"properties":5391,"children":5392},{"style":230},[5393],{"type":23,"value":2225},{"type":14,"tagName":35,"properties":5395,"children":5396},{"style":236},[5397],{"type":23,"value":5398}," price",{"type":14,"tagName":35,"properties":5400,"children":5401},{"style":224},[5402],{"type":23,"value":5403}," (y",{"type":14,"tagName":35,"properties":5405,"children":5406},{"style":230},[5407],{"type":23,"value":384},{"type":14,"tagName":35,"properties":5409,"children":5410},{"style":224},[5411],{"type":23,"value":5412},"axis) and ",{"type":14,"tagName":35,"properties":5414,"children":5415},{"style":236},[5416],{"type":23,"value":5417},"time",{"type":14,"tagName":35,"properties":5419,"children":5420},{"style":224},[5421],{"type":23,"value":5422}," (x",{"type":14,"tagName":35,"properties":5424,"children":5425},{"style":230},[5426],{"type":23,"value":384},{"type":14,"tagName":35,"properties":5428,"children":5429},{"style":224},[5430],{"type":23,"value":5431},"axis):",{"type":23,"value":89},{"type":14,"tagName":1686,"properties":5434,"children":5435,"position":5662},{},[5436,5437,5525,5526,5594,5595,5661],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":5438,"children":5439,"position":5521},{},[5440,5456,5463,5476,5483,5496,5503,5515],{"type":14,"tagName":2760,"properties":5441,"children":5442,"position":5451},{},[5443],{"type":23,"value":5444,"position":5445},"X-axis (Time):",{"start":5446,"end":5449},{"line":5447,"column":67,"offset":5448},324,10471,{"line":5447,"column":112,"offset":5450},10485,{"start":5452,"end":5454},{"line":5447,"column":32,"offset":5453},10469,{"line":5447,"column":4711,"offset":5455},10487,{"type":23,"value":5457,"position":5458}," Automatically set to the current bar timestamp. For ",{"start":5459,"end":5460},{"line":5447,"column":4711,"offset":5455},{"line":5447,"column":5461,"offset":5462},74,10540,{"type":14,"tagName":215,"properties":5464,"children":5465,"position":5473},{},[5466],{"type":23,"value":5467,"position":5468},"plotRange()",{"start":5469,"end":5470},{"line":5447,"column":5461,"offset":5462},{"line":5447,"column":5471,"offset":5472},87,10553,{"start":5474,"end":5475},{"line":5447,"column":5461,"offset":5462},{"line":5447,"column":5471,"offset":5472},{"type":23,"value":5477,"position":5478},", you can specify custom timestamps for ",{"start":5479,"end":5480},{"line":5447,"column":5471,"offset":5472},{"line":5447,"column":5481,"offset":5482},127,10593,{"type":14,"tagName":215,"properties":5484,"children":5485,"position":5493},{},[5486],{"type":23,"value":5487,"position":5488},"time1",{"start":5489,"end":5490},{"line":5447,"column":5481,"offset":5482},{"line":5447,"column":5491,"offset":5492},134,10600,{"start":5494,"end":5495},{"line":5447,"column":5481,"offset":5482},{"line":5447,"column":5491,"offset":5492},{"type":23,"value":5497,"position":5498}," and ",{"start":5499,"end":5500},{"line":5447,"column":5491,"offset":5492},{"line":5447,"column":5501,"offset":5502},139,10605,{"type":14,"tagName":215,"properties":5504,"children":5505,"position":5512},{},[5506],{"type":23,"value":5507,"position":5508},"time2",{"start":5509,"end":5510},{"line":5447,"column":5501,"offset":5502},{"line":5447,"column":1845,"offset":5511},10612,{"start":5513,"end":5514},{"line":5447,"column":5501,"offset":5502},{"line":5447,"column":1845,"offset":5511},{"type":23,"value":436,"position":5516},{"start":5517,"end":5518},{"line":5447,"column":1845,"offset":5511},{"line":5447,"column":5519,"offset":5520},147,10613,{"start":5522,"end":5524},{"line":5447,"column":27,"offset":5523},10467,{"line":5447,"column":5519,"offset":5520},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":5527,"children":5528,"position":5590},{},[5529,5544,5551,5564,5570,5583],{"type":14,"tagName":2760,"properties":5530,"children":5531,"position":5539},{},[5532],{"type":23,"value":5533,"position":5534},"Y-axis (Price):",{"start":5535,"end":5537},{"line":110,"column":67,"offset":5536},10618,{"line":110,"column":4569,"offset":5538},10633,{"start":5540,"end":5542},{"line":110,"column":32,"offset":5541},10616,{"line":110,"column":4670,"offset":5543},10635,{"type":23,"value":5545,"position":5546}," Explicitly provided as the ",{"start":5547,"end":5548},{"line":110,"column":4670,"offset":5543},{"line":110,"column":5549,"offset":5550},50,10663,{"type":14,"tagName":215,"properties":5552,"children":5553,"position":5561},{},[5554],{"type":23,"value":5555,"position":5556},"price",{"start":5557,"end":5558},{"line":110,"column":5549,"offset":5550},{"line":110,"column":5559,"offset":5560},57,10670,{"start":5562,"end":5563},{"line":110,"column":5549,"offset":5550},{"line":110,"column":5559,"offset":5560},{"type":23,"value":4575,"position":5565},{"start":5566,"end":5567},{"line":110,"column":5559,"offset":5560},{"line":110,"column":5568,"offset":5569},61,10674,{"type":14,"tagName":215,"properties":5571,"children":5572,"position":5580},{},[5573],{"type":23,"value":5574,"position":5575},"value",{"start":5576,"end":5577},{"line":110,"column":5568,"offset":5569},{"line":110,"column":5578,"offset":5579},68,10681,{"start":5581,"end":5582},{"line":110,"column":5568,"offset":5569},{"line":110,"column":5578,"offset":5579},{"type":23,"value":5584,"position":5585}," parameter.",{"start":5586,"end":5587},{"line":110,"column":5578,"offset":5579},{"line":110,"column":5588,"offset":5589},79,10692,{"start":5591,"end":5593},{"line":110,"column":27,"offset":5592},10614,{"line":110,"column":5588,"offset":5589},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":5596,"children":5597,"position":5657},{},[5598,5614,5621,5633,5638,5650],{"type":14,"tagName":2760,"properties":5599,"children":5600,"position":5609},{},[5601],{"type":23,"value":5602,"position":5603},"Text alignment:",{"start":5604,"end":5607},{"line":5605,"column":67,"offset":5606},326,10697,{"line":5605,"column":4569,"offset":5608},10712,{"start":5610,"end":5612},{"line":5605,"column":32,"offset":5611},10695,{"line":5605,"column":4670,"offset":5613},10714,{"type":23,"value":5615,"position":5616}," ",{"start":5617,"end":5618},{"line":5605,"column":4670,"offset":5613},{"line":5605,"column":5619,"offset":5620},23,10715,{"type":14,"tagName":215,"properties":5622,"children":5623,"position":5630},{},[5624],{"type":23,"value":5625,"position":5626},"xAlign",{"start":5627,"end":5628},{"line":5605,"column":5619,"offset":5620},{"line":5605,"column":4720,"offset":5629},10723,{"start":5631,"end":5632},{"line":5605,"column":5619,"offset":5620},{"line":5605,"column":4720,"offset":5629},{"type":23,"value":5497,"position":5634},{"start":5635,"end":5636},{"line":5605,"column":4720,"offset":5629},{"line":5605,"column":171,"offset":5637},10728,{"type":14,"tagName":215,"properties":5639,"children":5640,"position":5647},{},[5641],{"type":23,"value":5642,"position":5643},"yAlign",{"start":5644,"end":5645},{"line":5605,"column":171,"offset":5637},{"line":5605,"column":4598,"offset":5646},10736,{"start":5648,"end":5649},{"line":5605,"column":171,"offset":5637},{"line":5605,"column":4598,"offset":5646},{"type":23,"value":5651,"position":5652}," parameters affect rendering relative to the anchor point.",{"start":5653,"end":5654},{"line":5605,"column":4598,"offset":5646},{"line":5605,"column":5655,"offset":5656},102,10794,{"start":5658,"end":5660},{"line":5605,"column":27,"offset":5659},10693,{"line":5605,"column":5655,"offset":5656},{"type":23,"value":89},{"start":5663,"end":5664},{"line":5447,"column":27,"offset":5523},{"line":5605,"column":5655,"offset":5656},{"type":23,"value":89},{"type":11,"children":5667},[5668],{"type":14,"tagName":207,"properties":5669,"children":5671,"data":-1},{"class":209,"style":210,"tabindex":211,"title":5670},"Shape and Text Positioning",[5672],{"type":14,"tagName":215,"properties":5673,"children":5674},{},[5675,5718,5719,5722,5723,5731,5732,5753,5754,5849,5850,5857,5858,5861,5862,5870,5871,5942,5943,5946,5947,5955,5956,6023,6024,6072,6073,6076,6077,6080,6081,6104,6105,6108,6109,6112,6113,6136,6137],{"type":14,"tagName":35,"properties":5676,"children":5677},{"class":220},[5678,5682,5686,5690,5694,5698,5702,5706,5710,5714],{"type":14,"tagName":35,"properties":5679,"children":5680},{"style":224},[5681],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":5683,"children":5684},{"style":230},[5685],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5687,"children":5688},{"style":236},[5689],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":5691,"children":5692},{"style":224},[5693],{"type":23,"value":258},{"type":14,"tagName":35,"properties":5695,"children":5696},{"style":261},[5697],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":5699,"children":5700},{"style":224},[5701],{"type":23,"value":749},{"type":14,"tagName":35,"properties":5703,"children":5704},{"style":261},[5705],{"type":23,"value":744},{"type":14,"tagName":35,"properties":5707,"children":5708},{"style":224},[5709],{"type":23,"value":749},{"type":14,"tagName":35,"properties":5711,"children":5712},{"style":261},[5713],{"type":23,"value":754},{"type":14,"tagName":35,"properties":5715,"children":5716},{"style":224},[5717],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5720,"children":5721},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5724,"children":5725},{"class":220},[5726],{"type":14,"tagName":35,"properties":5727,"children":5728},{"style":558},[5729],{"type":23,"value":5730},"// Plot shape at high price",{"type":23,"value":89},{"type":14,"tagName":35,"properties":5733,"children":5734},{"class":220},[5735,5739,5744,5748],{"type":14,"tagName":35,"properties":5736,"children":5737},{"style":230},[5738],{"type":23,"value":936},{"type":14,"tagName":35,"properties":5740,"children":5741},{"style":224},[5742],{"type":23,"value":5743}," (ohlcvData.close ",{"type":14,"tagName":35,"properties":5745,"children":5746},{"style":230},[5747],{"type":23,"value":3514},{"type":14,"tagName":35,"properties":5749,"children":5750},{"style":224},[5751],{"type":23,"value":5752}," ohlcvData.open) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":5755,"children":5756},{"class":220},[5757,5762,5766,5770,5775,5779,5783,5787,5791,5796,5800,5804,5808,5812,5816,5820,5824,5828,5832,5836,5840,5845],{"type":14,"tagName":35,"properties":5758,"children":5759},{"style":236},[5760],{"type":23,"value":5761},"  plotShape",{"type":14,"tagName":35,"properties":5763,"children":5764},{"style":224},[5765],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":5767,"children":5768},{"style":230},[5769],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5771,"children":5772},{"style":224},[5773],{"type":23,"value":5774},"ohlcvData.high, shape",{"type":14,"tagName":35,"properties":5776,"children":5777},{"style":230},[5778],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5780,"children":5781},{"style":261},[5782],{"type":23,"value":3302},{"type":14,"tagName":35,"properties":5784,"children":5785},{"style":224},[5786],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":5788,"children":5789},{"style":230},[5790],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5792,"children":5793},{"style":402},[5794],{"type":23,"value":5795},"3",{"type":14,"tagName":35,"properties":5797,"children":5798},{"style":224},[5799],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":5801,"children":5802},{"style":230},[5803],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5805,"children":5806},{"style":224},[5807],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5809,"children":5810},{"style":261},[5811],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":5813,"children":5814},{"style":224},[5815],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":5817,"children":5818},{"style":230},[5819],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5821,"children":5822},{"style":224},[5823],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5825,"children":5826},{"style":261},[5827],{"type":23,"value":3960},{"type":14,"tagName":35,"properties":5829,"children":5830},{"style":224},[5831],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":5833,"children":5834},{"style":230},[5835],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5837,"children":5838},{"style":224},[5839],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":5841,"children":5842},{"style":261},[5843],{"type":23,"value":5844},"\"Bullish Signal\"",{"type":14,"tagName":35,"properties":5846,"children":5847},{"style":224},[5848],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5851,"children":5852},{"class":220},[5853],{"type":14,"tagName":35,"properties":5854,"children":5855},{"style":224},[5856],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5859,"children":5860},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5863,"children":5864},{"class":220},[5865],{"type":14,"tagName":35,"properties":5866,"children":5867},{"style":558},[5868],{"type":23,"value":5869},"// Plot text at specific price level",{"type":23,"value":89},{"type":14,"tagName":35,"properties":5872,"children":5873},{"class":220},[5874,5879,5883,5888,5892,5897,5902,5906,5911,5916,5920,5924,5929,5933,5938],{"type":14,"tagName":35,"properties":5875,"children":5876},{"style":236},[5877],{"type":23,"value":5878},"plotText",{"type":14,"tagName":35,"properties":5880,"children":5881},{"style":224},[5882],{"type":23,"value":258},{"type":14,"tagName":35,"properties":5884,"children":5885},{"style":261},[5886],{"type":23,"value":5887},"\"Signal\"",{"type":14,"tagName":35,"properties":5889,"children":5890},{"style":224},[5891],{"type":23,"value":749},{"type":14,"tagName":35,"properties":5893,"children":5894},{"style":261},[5895],{"type":23,"value":5896},"\"yellow\"",{"type":14,"tagName":35,"properties":5898,"children":5899},{"style":224},[5900],{"type":23,"value":5901},", ohlcvData.close, size",{"type":14,"tagName":35,"properties":5903,"children":5904},{"style":230},[5905],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5907,"children":5908},{"style":402},[5909],{"type":23,"value":5910},"12",{"type":14,"tagName":35,"properties":5912,"children":5913},{"style":224},[5914],{"type":23,"value":5915},", fill",{"type":14,"tagName":35,"properties":5917,"children":5918},{"style":230},[5919],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5921,"children":5922},{"style":402},[5923],{"type":23,"value":1023},{"type":14,"tagName":35,"properties":5925,"children":5926},{"style":224},[5927],{"type":23,"value":5928},", backgroundColor",{"type":14,"tagName":35,"properties":5930,"children":5931},{"style":230},[5932],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5934,"children":5935},{"style":261},[5936],{"type":23,"value":5937},"\"black\"",{"type":14,"tagName":35,"properties":5939,"children":5940},{"style":224},[5941],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":5944,"children":5945},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":5948,"children":5949},{"class":220},[5950],{"type":14,"tagName":35,"properties":5951,"children":5952},{"style":558},[5953],{"type":23,"value":5954},"// Plot range between two points",{"type":23,"value":89},{"type":14,"tagName":35,"properties":5957,"children":5958},{"class":220},[5959,5963,5968,5972,5977,5982,5986,5990,5995,6000,6005,6009,6014,6018],{"type":14,"tagName":35,"properties":5960,"children":5961},{"style":230},[5962],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":5964,"children":5965},{"style":224},[5966],{"type":23,"value":5967}," prevTime ",{"type":14,"tagName":35,"properties":5969,"children":5970},{"style":230},[5971],{"type":23,"value":233},{"type":14,"tagName":35,"properties":5973,"children":5974},{"style":236},[5975],{"type":23,"value":5976}," time",{"type":14,"tagName":35,"properties":5978,"children":5979},{"style":224},[5980],{"type":23,"value":5981},"() ",{"type":14,"tagName":35,"properties":5983,"children":5984},{"style":230},[5985],{"type":23,"value":384},{"type":14,"tagName":35,"properties":5987,"children":5988},{"style":224},[5989],{"type":23,"value":2420},{"type":14,"tagName":35,"properties":5991,"children":5992},{"style":402},[5993],{"type":23,"value":5994},"60",{"type":14,"tagName":35,"properties":5996,"children":5997},{"style":230},[5998],{"type":23,"value":5999}," *",{"type":14,"tagName":35,"properties":6001,"children":6002},{"style":402},[6003],{"type":23,"value":6004}," 60",{"type":14,"tagName":35,"properties":6006,"children":6007},{"style":230},[6008],{"type":23,"value":5999},{"type":14,"tagName":35,"properties":6010,"children":6011},{"style":402},[6012],{"type":23,"value":6013}," 1000",{"type":14,"tagName":35,"properties":6015,"children":6016},{"style":224},[6017],{"type":23,"value":1526},{"type":14,"tagName":35,"properties":6019,"children":6020},{"style":558},[6021],{"type":23,"value":6022},"// 1 hour ago",{"type":23,"value":89},{"type":14,"tagName":35,"properties":6025,"children":6026},{"class":220},[6027,6032,6037,6041,6046,6050,6054,6059,6063,6068],{"type":14,"tagName":35,"properties":6028,"children":6029},{"style":236},[6030],{"type":23,"value":6031},"plotRange",{"type":14,"tagName":35,"properties":6033,"children":6034},{"style":224},[6035],{"type":23,"value":6036},"(prevTime, ohlcvData.low, ",{"type":14,"tagName":35,"properties":6038,"children":6039},{"style":236},[6040],{"type":23,"value":5417},{"type":14,"tagName":35,"properties":6042,"children":6043},{"style":224},[6044],{"type":23,"value":6045},"(), ohlcvData.high, color",{"type":14,"tagName":35,"properties":6047,"children":6048},{"style":230},[6049],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6051,"children":6052},{"style":261},[6053],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":6055,"children":6056},{"style":224},[6057],{"type":23,"value":6058},", fillColor",{"type":14,"tagName":35,"properties":6060,"children":6061},{"style":230},[6062],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6064,"children":6065},{"style":261},[6066],{"type":23,"value":6067},"\"rgba(0,0,255,0.2)\"",{"type":14,"tagName":35,"properties":6069,"children":6070},{"style":224},[6071],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6074,"children":6075},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6078,"children":6079},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6082,"children":6083},{"class":220},[6084,6088,6092,6096,6100],{"type":14,"tagName":35,"properties":6085,"children":6086},{"style":224},[6087],{"type":23,"value":296},{"type":14,"tagName":35,"properties":6089,"children":6090},{"style":230},[6091],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6093,"children":6094},{"style":224},[6095],{"type":23,"value":306},{"type":14,"tagName":35,"properties":6097,"children":6098},{"style":230},[6099],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6101,"children":6102},{"style":224},[6103],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6106,"children":6107},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6110,"children":6111},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6114,"children":6115},{"class":220},[6116,6120,6124,6128,6132],{"type":14,"tagName":35,"properties":6117,"children":6118},{"style":224},[6119],{"type":23,"value":296},{"type":14,"tagName":35,"properties":6121,"children":6122},{"style":230},[6123],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6125,"children":6126},{"style":224},[6127],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":6129,"children":6130},{"style":230},[6131],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6133,"children":6134},{"style":224},[6135],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6138,"children":6139},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":6142,"children":6144,"position":6154},{"id":6143},"common-issues-and-troubleshooting",[6145],{"type":23,"value":6146,"position":6147},"Common Issues and Troubleshooting",{"start":6148,"end":6151},{"line":6149,"column":56,"offset":6150},350,11479,{"line":6149,"column":6152,"offset":6153},37,11512,{"start":6155,"end":6157},{"line":6149,"column":27,"offset":6156},11476,{"line":6149,"column":6152,"offset":6153},{"type":23,"value":89},{"type":14,"tagName":15,"properties":6160,"children":6161},{},[],{"type":23,"value":89},{"type":14,"tagName":124,"properties":6164,"children":6166},{"question":6165},"My script isn't displaying anything. What's wrong?",[6167,6181,6306],{"type":14,"tagName":129,"properties":6168,"children":6169,"position":6178},{},[6170],{"type":23,"value":6171,"position":6172},"Check:",{"start":6173,"end":6176},{"line":6174,"column":27,"offset":6175},359,11610,{"line":6174,"column":82,"offset":6177},11616,{"start":6179,"end":6180},{"line":6174,"column":27,"offset":6175},{"line":6174,"column":82,"offset":6177},{"type":14,"tagName":1686,"properties":6182,"children":6183,"position":6303},{},[6184,6185,6219,6220,6270,6271,6286,6287,6302],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6186,"children":6187,"position":6215},{},[6188,6196,6208],{"type":23,"value":6189,"position":6190},"You have a proper ",{"start":6191,"end":6194},{"line":6192,"column":32,"offset":6193},361,11620,{"line":6192,"column":4711,"offset":6195},11638,{"type":14,"tagName":215,"properties":6197,"children":6198,"position":6205},{},[6199],{"type":23,"value":6200,"position":6201},"define()",{"start":6202,"end":6203},{"line":6192,"column":4711,"offset":6195},{"line":6192,"column":4720,"offset":6204},11648,{"start":6206,"end":6207},{"line":6192,"column":4711,"offset":6195},{"line":6192,"column":4720,"offset":6204},{"type":23,"value":6209,"position":6210}," statement",{"start":6211,"end":6212},{"line":6192,"column":4720,"offset":6204},{"line":6192,"column":6213,"offset":6214},41,11658,{"start":6216,"end":6218},{"line":6192,"column":27,"offset":6217},11618,{"line":6192,"column":6213,"offset":6214},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6221,"children":6222,"position":6266},{},[6223,6231,6242,6248,6259],{"type":23,"value":6224,"position":6225},"You're plotting something with ",{"start":6226,"end":6229},{"line":6227,"column":32,"offset":6228},362,11661,{"line":6227,"column":4588,"offset":6230},11692,{"type":14,"tagName":215,"properties":6232,"children":6233,"position":6239},{},[6234],{"type":23,"value":4604,"position":6235},{"start":6236,"end":6237},{"line":6227,"column":4588,"offset":6230},{"line":6227,"column":4688,"offset":6238},11704,{"start":6240,"end":6241},{"line":6227,"column":4588,"offset":6230},{"line":6227,"column":4688,"offset":6238},{"type":23,"value":749,"position":6243},{"start":6244,"end":6245},{"line":6227,"column":4688,"offset":6238},{"line":6227,"column":6246,"offset":6247},48,11706,{"type":14,"tagName":215,"properties":6249,"children":6250,"position":6256},{},[6251],{"type":23,"value":4644,"position":6252},{"start":6253,"end":6254},{"line":6227,"column":6246,"offset":6247},{"line":6227,"column":2711,"offset":6255},11717,{"start":6257,"end":6258},{"line":6227,"column":6246,"offset":6247},{"line":6227,"column":2711,"offset":6255},{"type":23,"value":6260,"position":6261},", etc.",{"start":6262,"end":6263},{"line":6227,"column":2711,"offset":6255},{"line":6227,"column":6264,"offset":6265},65,11723,{"start":6267,"end":6269},{"line":6227,"column":27,"offset":6268},11659,{"line":6227,"column":6264,"offset":6265},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6272,"children":6273,"position":6282},{},[6274],{"type":23,"value":6275,"position":6276},"Your data source is valid. Empty data sources can lead to empty charts.",{"start":6277,"end":6280},{"line":6278,"column":32,"offset":6279},363,11726,{"line":6278,"column":5461,"offset":6281},11797,{"start":6283,"end":6285},{"line":6278,"column":27,"offset":6284},11724,{"line":6278,"column":5461,"offset":6281},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6288,"children":6289,"position":6298},{},[6290],{"type":23,"value":6291,"position":6292},"Check the Problem pop up for error messages",{"start":6293,"end":6296},{"line":6294,"column":32,"offset":6295},364,11800,{"line":6294,"column":4688,"offset":6297},11843,{"start":6299,"end":6301},{"line":6294,"column":27,"offset":6300},11798,{"line":6294,"column":4688,"offset":6297},{"type":23,"value":89},{"start":6304,"end":6305},{"line":6192,"column":27,"offset":6217},{"line":6294,"column":4688,"offset":6297},{"type":14,"tagName":6307,"properties":6308,"children":6312,"position":6313},"img",{"src":6309,"alt":6310,"style":6311},"/images/kScript/error_output.png","kScript error output","margin-top: 1rem; border-radius: 8px; max-width: 100%",[],{"start":6314,"end":6317},{"line":6315,"column":27,"offset":6316},366,11845,{"line":6315,"column":6318,"offset":6319},136,11980,{"type":23,"value":89},{"type":14,"tagName":124,"properties":6322,"children":6324},{"question":6323},"Undefined identifier errors",[6325,6340],{"type":14,"tagName":129,"properties":6326,"children":6327,"position":6337},{},[6328],{"type":23,"value":6329,"position":6330},"Make sure:",{"start":6331,"end":6334},{"line":6332,"column":27,"offset":6333},375,12057,{"line":6332,"column":6335,"offset":6336},11,12067,{"start":6338,"end":6339},{"line":6332,"column":27,"offset":6333},{"line":6332,"column":6335,"offset":6336},{"type":14,"tagName":1686,"properties":6341,"children":6342,"position":6393},{},[6343,6344,6359,6360,6376,6377,6392],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6345,"children":6346,"position":6355},{},[6347],{"type":23,"value":6348,"position":6349},"Variables are declared before use",{"start":6350,"end":6353},{"line":6351,"column":32,"offset":6352},377,12071,{"line":6351,"column":171,"offset":6354},12104,{"start":6356,"end":6358},{"line":6351,"column":27,"offset":6357},12069,{"line":6351,"column":171,"offset":6354},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6361,"children":6362,"position":6372},{},[6363],{"type":23,"value":6364,"position":6365},"Variable names are spelled correctly",{"start":6366,"end":6369},{"line":6367,"column":32,"offset":6368},378,12107,{"line":6367,"column":6370,"offset":6371},39,12143,{"start":6373,"end":6375},{"line":6367,"column":27,"offset":6374},12105,{"line":6367,"column":6370,"offset":6371},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6378,"children":6379,"position":6388},{},[6380],{"type":23,"value":6381,"position":6382},"You're using proper scope (variables declared in functions are local)",{"start":6383,"end":6386},{"line":6384,"column":32,"offset":6385},379,12146,{"line":6384,"column":1772,"offset":6387},12215,{"start":6389,"end":6391},{"line":6384,"column":27,"offset":6390},12144,{"line":6384,"column":1772,"offset":6387},{"type":23,"value":89},{"start":6394,"end":6395},{"line":6351,"column":27,"offset":6357},{"line":6384,"column":1772,"offset":6387},{"type":23,"value":89},{"type":14,"tagName":124,"properties":6398,"children":6400},{"question":6399},"How do I debug my kScript code?",[6401,6451,6637],{"type":14,"tagName":129,"properties":6402,"children":6403,"position":6448},{},[6404,6412,6424,6429,6441],{"type":23,"value":6405,"position":6406},"Use ",{"start":6407,"end":6410},{"line":6408,"column":27,"offset":6409},388,12296,{"line":6408,"column":67,"offset":6411},12300,{"type":14,"tagName":215,"properties":6413,"children":6414,"position":6421},{},[6415],{"type":23,"value":6416,"position":6417},"print()",{"start":6418,"end":6419},{"line":6408,"column":67,"offset":6411},{"line":6408,"column":2776,"offset":6420},12309,{"start":6422,"end":6423},{"line":6408,"column":67,"offset":6411},{"line":6408,"column":2776,"offset":6420},{"type":23,"value":5497,"position":6425},{"start":6426,"end":6427},{"line":6408,"column":2776,"offset":6420},{"line":6408,"column":112,"offset":6428},12314,{"type":14,"tagName":215,"properties":6430,"children":6431,"position":6438},{},[6432],{"type":23,"value":6433,"position":6434},"printTimeSeries()",{"start":6435,"end":6436},{"line":6408,"column":112,"offset":6428},{"line":6408,"column":1762,"offset":6437},12333,{"start":6439,"end":6440},{"line":6408,"column":112,"offset":6428},{"line":6408,"column":1762,"offset":6437},{"type":23,"value":6442,"position":6443}," statements to output values:",{"start":6444,"end":6445},{"line":6408,"column":1762,"offset":6437},{"line":6408,"column":6446,"offset":6447},67,12362,{"start":6449,"end":6450},{"line":6408,"column":27,"offset":6409},{"line":6408,"column":6446,"offset":6447},{"type":11,"children":6452},[6453],{"type":14,"tagName":207,"properties":6454,"children":6456,"data":-1},{"class":209,"style":210,"tabindex":211,"title":6455},"Debugging",[6457],{"type":14,"tagName":215,"properties":6458,"children":6459},{},[6460,6481,6482,6503,6504,6534,6535,6538,6539,6542,6543,6566,6567,6570,6571,6574,6575,6578,6579,6611,6612,6615,6616,6619,6620],{"type":14,"tagName":35,"properties":6461,"children":6462},{"class":220},[6463,6467,6471,6476],{"type":14,"tagName":35,"properties":6464,"children":6465},{"style":236},[6466],{"type":23,"value":253},{"type":14,"tagName":35,"properties":6468,"children":6469},{"style":224},[6470],{"type":23,"value":258},{"type":14,"tagName":35,"properties":6472,"children":6473},{"style":261},[6474],{"type":23,"value":6475},"\"Current price:\"",{"type":14,"tagName":35,"properties":6477,"children":6478},{"style":224},[6479],{"type":23,"value":6480},", data.close)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":6483,"children":6484},{"class":220},[6485,6489,6493,6498],{"type":14,"tagName":35,"properties":6486,"children":6487},{"style":236},[6488],{"type":23,"value":253},{"type":14,"tagName":35,"properties":6490,"children":6491},{"style":224},[6492],{"type":23,"value":258},{"type":14,"tagName":35,"properties":6494,"children":6495},{"style":261},[6496],{"type":23,"value":6497},"\"SMA value:\"",{"type":14,"tagName":35,"properties":6499,"children":6500},{"style":224},[6501],{"type":23,"value":6502},", sma_value)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":6505,"children":6506},{"class":220},[6507,6512,6517,6521,6525,6529],{"type":14,"tagName":35,"properties":6508,"children":6509},{"style":236},[6510],{"type":23,"value":6511},"printTimeSeries",{"type":14,"tagName":35,"properties":6513,"children":6514},{"style":224},[6515],{"type":23,"value":6516},"(data, priceIndex",{"type":14,"tagName":35,"properties":6518,"children":6519},{"style":230},[6520],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6522,"children":6523},{"style":402},[6524],{"type":23,"value":405},{"type":14,"tagName":35,"properties":6526,"children":6527},{"style":224},[6528],{"type":23,"value":1526},{"type":14,"tagName":35,"properties":6530,"children":6531},{"style":558},[6532],{"type":23,"value":6533},"// Print close prices",{"type":23,"value":89},{"type":14,"tagName":35,"properties":6536,"children":6537},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6540,"children":6541},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6544,"children":6545},{"class":220},[6546,6550,6554,6558,6562],{"type":14,"tagName":35,"properties":6547,"children":6548},{"style":224},[6549],{"type":23,"value":296},{"type":14,"tagName":35,"properties":6551,"children":6552},{"style":230},[6553],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6555,"children":6556},{"style":224},[6557],{"type":23,"value":306},{"type":14,"tagName":35,"properties":6559,"children":6560},{"style":230},[6561],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6563,"children":6564},{"style":224},[6565],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6568,"children":6569},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6572,"children":6573},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6576,"children":6577},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6580,"children":6581},{"class":220},[6582,6586,6590,6594,6598,6603,6607],{"type":14,"tagName":35,"properties":6583,"children":6584},{"style":224},[6585],{"type":23,"value":296},{"type":14,"tagName":35,"properties":6587,"children":6588},{"style":230},[6589],{"type":23,"value":301},{"type":14,"tagName":35,"properties":6591,"children":6592},{"style":224},[6593],{"type":23,"value":344},{"type":14,"tagName":35,"properties":6595,"children":6596},{"style":230},[6597],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6599,"children":6600},{"style":261},[6601],{"type":23,"value":6602},"\"Why is my indicator not updating in real-time?\"",{"type":14,"tagName":35,"properties":6604,"children":6605},{"style":230},[6606],{"type":23,"value":358},{"type":14,"tagName":35,"properties":6608,"children":6609},{"style":224},[6610],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6613,"children":6614},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6617,"children":6618},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6621,"children":6622},{"class":220},[6623,6628,6633],{"type":14,"tagName":35,"properties":6624,"children":6625},{"style":224},[6626],{"type":23,"value":6627},"Ensure you",{"type":14,"tagName":35,"properties":6629,"children":6630},{"style":261},[6631],{"type":23,"value":6632},"'re",{"type":14,"tagName":35,"properties":6634,"children":6635},{"style":433},[6636],{"type":23,"value":459},{"type":14,"tagName":1686,"properties":6638,"children":6639,"position":6690},{},[6640,6641,6656,6657,6673,6674,6689],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6642,"children":6643,"position":6652},{},[6644],{"type":23,"value":6645,"position":6646},"Using timeseries data correctly",{"start":6647,"end":6650},{"line":6648,"column":32,"offset":6649},405,12650,{"line":6648,"column":4588,"offset":6651},12681,{"start":6653,"end":6655},{"line":6648,"column":27,"offset":6654},12648,{"line":6648,"column":4588,"offset":6651},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6658,"children":6659,"position":6669},{},[6660],{"type":23,"value":6661,"position":6662},"Not using static calculations where dynamic ones are needed",{"start":6663,"end":6666},{"line":6664,"column":32,"offset":6665},406,12684,{"line":6664,"column":6667,"offset":6668},62,12743,{"start":6670,"end":6672},{"line":6664,"column":27,"offset":6671},12682,{"line":6664,"column":6667,"offset":6668},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":6675,"children":6676,"position":6685},{},[6677],{"type":23,"value":6678,"position":6679},"Plotting the results properly",{"start":6680,"end":6683},{"line":6681,"column":32,"offset":6682},407,12746,{"line":6681,"column":33,"offset":6684},12775,{"start":6686,"end":6688},{"line":6681,"column":27,"offset":6687},12744,{"line":6681,"column":33,"offset":6684},{"type":23,"value":89},{"start":6691,"end":6692},{"line":6648,"column":27,"offset":6654},{"line":6681,"column":33,"offset":6684},{"type":23,"value":89},{"type":14,"tagName":15,"properties":6695,"children":6696},{},[],{"type":23,"value":89},{"type":14,"tagName":129,"properties":6699,"children":6700,"position":6818},{},[6701,6716,6723,6735,6742,6754,6761,6774,6781,6793,6800,6811],{"type":14,"tagName":2760,"properties":6702,"children":6703,"position":6711},{},[6704],{"type":23,"value":895,"position":6705},{"start":6706,"end":6709},{"line":6707,"column":32,"offset":6708},416,12871,{"line":6707,"column":67,"offset":6710},12873,{"start":6712,"end":6714},{"line":6707,"column":27,"offset":6713},12869,{"line":6707,"column":82,"offset":6715},12875,{"type":23,"value":6717,"position":6718},", using ",{"start":6719,"end":6720},{"line":6707,"column":82,"offset":6715},{"line":6707,"column":6721,"offset":6722},15,12883,{"type":14,"tagName":215,"properties":6724,"children":6725,"position":6732},{},[6726],{"type":23,"value":6727,"position":6728},"null",{"start":6729,"end":6730},{"line":6707,"column":6721,"offset":6722},{"line":6707,"column":4711,"offset":6731},12889,{"start":6733,"end":6734},{"line":6707,"column":6721,"offset":6722},{"line":6707,"column":4711,"offset":6731},{"type":23,"value":6736,"position":6737}," will cause plot values to become ",{"start":6738,"end":6739},{"line":6707,"column":4711,"offset":6731},{"line":6707,"column":6740,"offset":6741},55,12923,{"type":14,"tagName":215,"properties":6743,"children":6744,"position":6751},{},[6745],{"type":23,"value":211,"position":6746},{"start":6747,"end":6748},{"line":6707,"column":6740,"offset":6741},{"line":6707,"column":6749,"offset":6750},58,12926,{"start":6752,"end":6753},{"line":6707,"column":6740,"offset":6741},{"line":6707,"column":6749,"offset":6750},{"type":23,"value":6755,"position":6756}," because the runtime's ",{"start":6757,"end":6758},{"line":6707,"column":6749,"offset":6750},{"line":6707,"column":6759,"offset":6760},81,12949,{"type":14,"tagName":215,"properties":6762,"children":6763,"position":6771},{},[6764],{"type":23,"value":6765,"position":6766},"Number(null)",{"start":6767,"end":6768},{"line":6707,"column":6759,"offset":6760},{"line":6707,"column":6769,"offset":6770},95,12963,{"start":6772,"end":6773},{"line":6707,"column":6759,"offset":6760},{"line":6707,"column":6769,"offset":6770},{"type":23,"value":6775,"position":6776}," returns ",{"start":6777,"end":6778},{"line":6707,"column":6769,"offset":6770},{"line":6707,"column":6779,"offset":6780},104,12972,{"type":14,"tagName":215,"properties":6782,"children":6783,"position":6790},{},[6784],{"type":23,"value":211,"position":6785},{"start":6786,"end":6787},{"line":6707,"column":6779,"offset":6780},{"line":6707,"column":6788,"offset":6789},107,12975,{"start":6791,"end":6792},{"line":6707,"column":6779,"offset":6780},{"line":6707,"column":6788,"offset":6789},{"type":23,"value":6794,"position":6795},", not ",{"start":6796,"end":6797},{"line":6707,"column":6788,"offset":6789},{"line":6707,"column":6798,"offset":6799},113,12981,{"type":14,"tagName":215,"properties":6801,"children":6802,"position":6808},{},[6803],{"type":23,"value":473,"position":6804},{"start":6805,"end":6806},{"line":6707,"column":6798,"offset":6799},{"line":6707,"column":198,"offset":6807},12986,{"start":6809,"end":6810},{"line":6707,"column":6798,"offset":6799},{"line":6707,"column":198,"offset":6807},{"type":23,"value":6812,"position":6813},". This means your \"empty\" data points will plot as zero values instead of gaps.",{"start":6814,"end":6815},{"line":6707,"column":198,"offset":6807},{"line":6707,"column":6816,"offset":6817},197,13065,{"start":6819,"end":6820},{"line":6707,"column":27,"offset":6713},{"line":6707,"column":6816,"offset":6817},{"type":23,"value":89},{"type":14,"tagName":129,"properties":6823,"children":6824,"position":6900},{},[6825,6840,6846,6857,6863,6875,6881,6893],{"type":14,"tagName":2760,"properties":6826,"children":6827,"position":6835},{},[6828],{"type":23,"value":2764,"position":6829},{"start":6830,"end":6833},{"line":6831,"column":32,"offset":6832},418,13069,{"line":6831,"column":2770,"offset":6834},13078,{"start":6836,"end":6838},{"line":6831,"column":27,"offset":6837},13067,{"line":6831,"column":2776,"offset":6839},13080,{"type":23,"value":6841,"position":6842}," Use ",{"start":6843,"end":6844},{"line":6831,"column":2776,"offset":6839},{"line":6831,"column":112,"offset":6845},13085,{"type":14,"tagName":215,"properties":6847,"children":6848,"position":6854},{},[6849],{"type":23,"value":473,"position":6850},{"start":6851,"end":6852},{"line":6831,"column":112,"offset":6845},{"line":6831,"column":2666,"offset":6853},13090,{"start":6855,"end":6856},{"line":6831,"column":112,"offset":6845},{"line":6831,"column":2666,"offset":6853},{"type":23,"value":6858,"position":6859}," to represent missing data. The runtime properly handles ",{"start":6860,"end":6861},{"line":6831,"column":2666,"offset":6853},{"line":6831,"column":6759,"offset":6862},13147,{"type":14,"tagName":215,"properties":6864,"children":6865,"position":6872},{},[6866],{"type":23,"value":473,"position":6867},{"start":6868,"end":6869},{"line":6831,"column":6759,"offset":6862},{"line":6831,"column":6870,"offset":6871},86,13152,{"start":6873,"end":6874},{"line":6831,"column":6759,"offset":6862},{"line":6831,"column":6870,"offset":6871},{"type":23,"value":6876,"position":6877}," as missing data, and plot functions will show gaps where ",{"start":6878,"end":6879},{"line":6831,"column":6870,"offset":6871},{"line":6831,"column":1789,"offset":6880},13210,{"type":14,"tagName":215,"properties":6882,"children":6883,"position":6890},{},[6884],{"type":23,"value":473,"position":6885},{"start":6886,"end":6887},{"line":6831,"column":1789,"offset":6880},{"line":6831,"column":6888,"offset":6889},149,13215,{"start":6891,"end":6892},{"line":6831,"column":1789,"offset":6880},{"line":6831,"column":6888,"offset":6889},{"type":23,"value":6894,"position":6895}," values occur.",{"start":6896,"end":6897},{"line":6831,"column":6888,"offset":6889},{"line":6831,"column":6898,"offset":6899},163,13229,{"start":6901,"end":6902},{"line":6831,"column":27,"offset":6837},{"line":6831,"column":6898,"offset":6899},{"type":23,"value":89},{"type":11,"children":6905},[6906],{"type":14,"tagName":207,"properties":6907,"children":6909,"data":-1},{"class":209,"style":210,"tabindex":211,"title":6908},"Null vs NaN",[6910],{"type":14,"tagName":215,"properties":6911,"children":6912},{},[6913,6956,6957,6960,6961,6969,6970,7013,7014,7031,7032,7035,7036,7044,7045,7085,7086,7103,7104,7107,7108,7111,7112,7135,7136,7139,7140,7143,7144,7167,7168],{"type":14,"tagName":35,"properties":6914,"children":6915},{"class":220},[6916,6920,6924,6928,6932,6936,6940,6944,6948,6952],{"type":14,"tagName":35,"properties":6917,"children":6918},{"style":224},[6919],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":6921,"children":6922},{"style":230},[6923],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6925,"children":6926},{"style":236},[6927],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":6929,"children":6930},{"style":224},[6931],{"type":23,"value":258},{"type":14,"tagName":35,"properties":6933,"children":6934},{"style":261},[6935],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":6937,"children":6938},{"style":224},[6939],{"type":23,"value":749},{"type":14,"tagName":35,"properties":6941,"children":6942},{"style":261},[6943],{"type":23,"value":744},{"type":14,"tagName":35,"properties":6945,"children":6946},{"style":224},[6947],{"type":23,"value":749},{"type":14,"tagName":35,"properties":6949,"children":6950},{"style":261},[6951],{"type":23,"value":754},{"type":14,"tagName":35,"properties":6953,"children":6954},{"style":224},[6955],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":6958,"children":6959},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":6962,"children":6963},{"class":220},[6964],{"type":14,"tagName":35,"properties":6965,"children":6966},{"style":558},[6967],{"type":23,"value":6968},"// ✗ Wrong - null becomes 0",{"type":23,"value":89},{"type":14,"tagName":35,"properties":6971,"children":6972},{"class":220},[6973,6977,6982,6986,6991,6996,7000,7005,7009],{"type":14,"tagName":35,"properties":6974,"children":6975},{"style":230},[6976],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":6978,"children":6979},{"style":224},[6980],{"type":23,"value":6981}," value1 ",{"type":14,"tagName":35,"properties":6983,"children":6984},{"style":230},[6985],{"type":23,"value":233},{"type":14,"tagName":35,"properties":6987,"children":6988},{"style":236},[6989],{"type":23,"value":6990}," isnan",{"type":14,"tagName":35,"properties":6992,"children":6993},{"style":224},[6994],{"type":23,"value":6995},"(ohlcvData.close) ",{"type":14,"tagName":35,"properties":6997,"children":6998},{"style":230},[6999],{"type":23,"value":2831},{"type":14,"tagName":35,"properties":7001,"children":7002},{"style":402},[7003],{"type":23,"value":7004}," null",{"type":14,"tagName":35,"properties":7006,"children":7007},{"style":230},[7008],{"type":23,"value":3533},{"type":14,"tagName":35,"properties":7010,"children":7011},{"style":224},[7012],{"type":23,"value":1187},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7015,"children":7016},{"class":220},[7017,7021,7026],{"type":14,"tagName":35,"properties":7018,"children":7019},{"style":236},[7020],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":7022,"children":7023},{"style":224},[7024],{"type":23,"value":7025},"(value1)  ",{"type":14,"tagName":35,"properties":7027,"children":7028},{"style":558},[7029],{"type":23,"value":7030},"// Will plot 0 for missing data",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7033,"children":7034},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7037,"children":7038},{"class":220},[7039],{"type":14,"tagName":35,"properties":7040,"children":7041},{"style":558},[7042],{"type":23,"value":7043},"// ✓ Correct - use NaN",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7046,"children":7047},{"class":220},[7048,7052,7057,7061,7065,7069,7073,7077,7081],{"type":14,"tagName":35,"properties":7049,"children":7050},{"style":230},[7051],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":7053,"children":7054},{"style":224},[7055],{"type":23,"value":7056}," value2 ",{"type":14,"tagName":35,"properties":7058,"children":7059},{"style":230},[7060],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7062,"children":7063},{"style":236},[7064],{"type":23,"value":6990},{"type":14,"tagName":35,"properties":7066,"children":7067},{"style":224},[7068],{"type":23,"value":6995},{"type":14,"tagName":35,"properties":7070,"children":7071},{"style":230},[7072],{"type":23,"value":2831},{"type":14,"tagName":35,"properties":7074,"children":7075},{"style":402},[7076],{"type":23,"value":420},{"type":14,"tagName":35,"properties":7078,"children":7079},{"style":230},[7080],{"type":23,"value":3533},{"type":14,"tagName":35,"properties":7082,"children":7083},{"style":224},[7084],{"type":23,"value":1187},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7087,"children":7088},{"class":220},[7089,7093,7098],{"type":14,"tagName":35,"properties":7090,"children":7091},{"style":236},[7092],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":7094,"children":7095},{"style":224},[7096],{"type":23,"value":7097},"(value2)  ",{"type":14,"tagName":35,"properties":7099,"children":7100},{"style":558},[7101],{"type":23,"value":7102},"// Will show gap for missing data",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7105,"children":7106},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7109,"children":7110},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7113,"children":7114},{"class":220},[7115,7119,7123,7127,7131],{"type":14,"tagName":35,"properties":7116,"children":7117},{"style":224},[7118],{"type":23,"value":296},{"type":14,"tagName":35,"properties":7120,"children":7121},{"style":230},[7122],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7124,"children":7125},{"style":224},[7126],{"type":23,"value":306},{"type":14,"tagName":35,"properties":7128,"children":7129},{"style":230},[7130],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7132,"children":7133},{"style":224},[7134],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7137,"children":7138},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7141,"children":7142},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7145,"children":7146},{"class":220},[7147,7151,7155,7159,7163],{"type":14,"tagName":35,"properties":7148,"children":7149},{"style":224},[7150],{"type":23,"value":296},{"type":14,"tagName":35,"properties":7152,"children":7153},{"style":230},[7154],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7156,"children":7157},{"style":224},[7158],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":7160,"children":7161},{"style":230},[7162],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7164,"children":7165},{"style":224},[7166],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7169,"children":7170},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":7173,"children":7175,"position":7184},{"id":7174},"language-features-and-syntax",[7176],{"type":23,"value":7177,"position":7178},"Language Features and Syntax",{"start":7179,"end":7182},{"line":7180,"column":56,"offset":7181},438,13660,{"line":7180,"column":33,"offset":7183},13688,{"start":7185,"end":7187},{"line":7180,"column":27,"offset":7186},13657,{"line":7180,"column":33,"offset":7183},{"type":23,"value":89},{"type":14,"tagName":15,"properties":7190,"children":7191},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":7194,"children":7195},{},[],{"type":23,"value":89},{"type":14,"tagName":129,"properties":7198,"children":7199,"position":7284},{},[7200,7217,7223,7235,7241,7254,7261,7279],{"type":14,"tagName":2760,"properties":7201,"children":7202,"position":7212},{},[7203],{"type":23,"value":7204,"position":7205},"Yes",{"start":7206,"end":7209},{"line":7207,"column":32,"offset":7208},447,13777,{"line":7207,"column":7210,"offset":7211},6,13780,{"start":7213,"end":7215},{"line":7207,"column":27,"offset":7214},13775,{"line":7207,"column":93,"offset":7216},13782,{"type":23,"value":7218,"position":7219},", since v3. ",{"start":7220,"end":7221},{"line":7207,"column":93,"offset":7216},{"line":7207,"column":4569,"offset":7222},13794,{"type":14,"tagName":215,"properties":7224,"children":7225,"position":7232},{},[7226],{"type":23,"value":7227,"position":7228},"switch",{"start":7229,"end":7230},{"line":7207,"column":4569,"offset":7222},{"line":7207,"column":154,"offset":7231},13802,{"start":7233,"end":7234},{"line":7207,"column":4569,"offset":7222},{"line":7207,"column":154,"offset":7231},{"type":23,"value":7236,"position":7237}," is first-match with no fallthrough (no ",{"start":7238,"end":7239},{"line":7207,"column":154,"offset":7231},{"line":7207,"column":5578,"offset":7240},13842,{"type":14,"tagName":215,"properties":7242,"children":7243,"position":7251},{},[7244],{"type":23,"value":7245,"position":7246},"break",{"start":7247,"end":7248},{"line":7207,"column":5578,"offset":7240},{"line":7207,"column":7249,"offset":7250},75,13849,{"start":7252,"end":7253},{"line":7207,"column":5578,"offset":7240},{"line":7207,"column":7249,"offset":7250},{"type":23,"value":7255,"position":7256}," needed): see ",{"start":7257,"end":7258},{"line":7207,"column":7249,"offset":7250},{"line":7207,"column":7259,"offset":7260},89,13863,{"type":14,"tagName":7262,"properties":7263,"children":7265,"position":7274},"a",{"href":7264},"../functions/control-flow.md",[7266],{"type":23,"value":7267,"position":7268},"control flow",{"start":7269,"end":7272},{"line":7207,"column":7270,"offset":7271},90,13864,{"line":7207,"column":5655,"offset":7273},13876,{"start":7275,"end":7276},{"line":7207,"column":7259,"offset":7260},{"line":7207,"column":7277,"offset":7278},133,13907,{"type":23,"value":436,"position":7280},{"start":7281,"end":7282},{"line":7207,"column":7277,"offset":7278},{"line":7207,"column":5491,"offset":7283},13908,{"start":7285,"end":7286},{"line":7207,"column":27,"offset":7214},{"line":7207,"column":5491,"offset":7283},{"type":23,"value":89},{"type":11,"children":7289},[7290],{"type":14,"tagName":207,"properties":7291,"children":7293,"data":-1},{"class":209,"style":210,"tabindex":211,"title":7292},"Switch (v3)",[7294],{"type":14,"tagName":215,"properties":7295,"children":7296},{},[7297,7309,7310,7328,7329,7394,7395,7403,7404,7420,7421,7484,7485,7492,7493,7505,7506,7514,7515,7522,7523,7530,7531,7534,7535],{"type":14,"tagName":35,"properties":7298,"children":7299},{"class":220},[7300,7304],{"type":14,"tagName":35,"properties":7301,"children":7302},{"style":230},[7303],{"type":23,"value":7227},{"type":14,"tagName":35,"properties":7305,"children":7306},{"style":224},[7307],{"type":23,"value":7308}," (signal) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7311,"children":7312},{"class":220},[7313,7318,7323],{"type":14,"tagName":35,"properties":7314,"children":7315},{"style":230},[7316],{"type":23,"value":7317},"  case",{"type":14,"tagName":35,"properties":7319,"children":7320},{"style":261},[7321],{"type":23,"value":7322}," \"buy\"",{"type":14,"tagName":35,"properties":7324,"children":7325},{"style":224},[7326],{"type":23,"value":7327},": {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7330,"children":7331},{"class":220},[7332,7337,7341,7345,7350,7354,7359,7364,7368,7373,7377,7381,7385,7390],{"type":14,"tagName":35,"properties":7333,"children":7334},{"style":236},[7335],{"type":23,"value":7336},"    plotShape",{"type":14,"tagName":35,"properties":7338,"children":7339},{"style":224},[7340],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":7342,"children":7343},{"style":230},[7344],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7346,"children":7347},{"style":224},[7348],{"type":23,"value":7349},"data.low, shape",{"type":14,"tagName":35,"properties":7351,"children":7352},{"style":230},[7353],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7355,"children":7356},{"style":261},[7357],{"type":23,"value":7358},"\"arrowUp\"",{"type":14,"tagName":35,"properties":7360,"children":7361},{"style":224},[7362],{"type":23,"value":7363},", location",{"type":14,"tagName":35,"properties":7365,"children":7366},{"style":230},[7367],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7369,"children":7370},{"style":261},[7371],{"type":23,"value":7372},"\"belowBar\"",{"type":14,"tagName":35,"properties":7374,"children":7375},{"style":224},[7376],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":7378,"children":7379},{"style":230},[7380],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7382,"children":7383},{"style":224},[7384],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7386,"children":7387},{"style":261},[7388],{"type":23,"value":7389},"\"#16a34a\"",{"type":14,"tagName":35,"properties":7391,"children":7392},{"style":224},[7393],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7396,"children":7397},{"class":220},[7398],{"type":14,"tagName":35,"properties":7399,"children":7400},{"style":224},[7401],{"type":23,"value":7402},"  }",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7405,"children":7406},{"class":220},[7407,7411,7416],{"type":14,"tagName":35,"properties":7408,"children":7409},{"style":230},[7410],{"type":23,"value":7317},{"type":14,"tagName":35,"properties":7412,"children":7413},{"style":261},[7414],{"type":23,"value":7415}," \"sell\"",{"type":14,"tagName":35,"properties":7417,"children":7418},{"style":224},[7419],{"type":23,"value":7327},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7422,"children":7423},{"class":220},[7424,7428,7432,7436,7441,7445,7450,7454,7458,7463,7467,7471,7475,7480],{"type":14,"tagName":35,"properties":7425,"children":7426},{"style":236},[7427],{"type":23,"value":7336},{"type":14,"tagName":35,"properties":7429,"children":7430},{"style":224},[7431],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":7433,"children":7434},{"style":230},[7435],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7437,"children":7438},{"style":224},[7439],{"type":23,"value":7440},"data.high, shape",{"type":14,"tagName":35,"properties":7442,"children":7443},{"style":230},[7444],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7446,"children":7447},{"style":261},[7448],{"type":23,"value":7449},"\"arrowDown\"",{"type":14,"tagName":35,"properties":7451,"children":7452},{"style":224},[7453],{"type":23,"value":7363},{"type":14,"tagName":35,"properties":7455,"children":7456},{"style":230},[7457],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7459,"children":7460},{"style":261},[7461],{"type":23,"value":7462},"\"aboveBar\"",{"type":14,"tagName":35,"properties":7464,"children":7465},{"style":224},[7466],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":7468,"children":7469},{"style":230},[7470],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7472,"children":7473},{"style":224},[7474],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7476,"children":7477},{"style":261},[7478],{"type":23,"value":7479},"\"#dc2626\"",{"type":14,"tagName":35,"properties":7481,"children":7482},{"style":224},[7483],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7486,"children":7487},{"class":220},[7488],{"type":14,"tagName":35,"properties":7489,"children":7490},{"style":224},[7491],{"type":23,"value":7402},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7494,"children":7495},{"class":220},[7496,7501],{"type":14,"tagName":35,"properties":7497,"children":7498},{"style":230},[7499],{"type":23,"value":7500},"  default",{"type":14,"tagName":35,"properties":7502,"children":7503},{"style":224},[7504],{"type":23,"value":7327},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7507,"children":7508},{"class":220},[7509],{"type":14,"tagName":35,"properties":7510,"children":7511},{"style":558},[7512],{"type":23,"value":7513},"    // no-op",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7516,"children":7517},{"class":220},[7518],{"type":14,"tagName":35,"properties":7519,"children":7520},{"style":224},[7521],{"type":23,"value":7402},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7524,"children":7525},{"class":220},[7526],{"type":14,"tagName":35,"properties":7527,"children":7528},{"style":224},[7529],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7532,"children":7533},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7536,"children":7537},{"class":220},[7538,7543,7548,7553],{"type":14,"tagName":35,"properties":7539,"children":7540},{"style":261},[7541],{"type":23,"value":7542},"`if-else`",{"type":14,"tagName":35,"properties":7544,"children":7545},{"style":224},[7546],{"type":23,"value":7547}," chains remain fully ",{"type":14,"tagName":35,"properties":7549,"children":7550},{"style":236},[7551],{"type":23,"value":7552},"supported",{"type":14,"tagName":35,"properties":7554,"children":7555},{"style":224},[7556],{"type":23,"value":459},{"type":23,"value":89},{"type":11,"children":7559},[7560],{"type":14,"tagName":207,"properties":7561,"children":7563,"data":-1},{"class":209,"style":210,"tabindex":211,"title":7562},"Equivalent if-else",[7564],{"type":14,"tagName":215,"properties":7565,"children":7566},{},[7567,7570,7571,7579,7580,7605,7606,7698,7699,7731,7732,7825,7826,7858,7859,7867,7868,7883,7884,7892,7893,7900,7901,7904,7905,7908,7909,7932,7933,7936,7937,7940,7941,7944,7945,7977,7978,7981,7982,7985,7986,8035,8036,8039,8040],{"type":14,"tagName":35,"properties":7568,"children":7569},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7572,"children":7573},{"class":220},[7574],{"type":14,"tagName":35,"properties":7575,"children":7576},{"style":558},[7577],{"type":23,"value":7578},"// ✓ Use if-else chains instead",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7581,"children":7582},{"class":220},[7583,7587,7592,7597,7601],{"type":14,"tagName":35,"properties":7584,"children":7585},{"style":230},[7586],{"type":23,"value":936},{"type":14,"tagName":35,"properties":7588,"children":7589},{"style":224},[7590],{"type":23,"value":7591}," (signal ",{"type":14,"tagName":35,"properties":7593,"children":7594},{"style":230},[7595],{"type":23,"value":7596},"==",{"type":14,"tagName":35,"properties":7598,"children":7599},{"style":261},[7600],{"type":23,"value":7322},{"type":14,"tagName":35,"properties":7602,"children":7603},{"style":224},[7604],{"type":23,"value":4160},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7607,"children":7608},{"class":220},[7609,7613,7617,7621,7625,7629,7633,7637,7641,7645,7649,7653,7657,7661,7665,7669,7673,7678,7682,7686,7690,7694],{"type":14,"tagName":35,"properties":7610,"children":7611},{"style":236},[7612],{"type":23,"value":5761},{"type":14,"tagName":35,"properties":7614,"children":7615},{"style":224},[7616],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":7618,"children":7619},{"style":230},[7620],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7622,"children":7623},{"style":224},[7624],{"type":23,"value":7349},{"type":14,"tagName":35,"properties":7626,"children":7627},{"style":230},[7628],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7630,"children":7631},{"style":261},[7632],{"type":23,"value":3302},{"type":14,"tagName":35,"properties":7634,"children":7635},{"style":224},[7636],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":7638,"children":7639},{"style":230},[7640],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7642,"children":7643},{"style":402},[7644],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":7646,"children":7647},{"style":224},[7648],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":7650,"children":7651},{"style":230},[7652],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7654,"children":7655},{"style":224},[7656],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7658,"children":7659},{"style":261},[7660],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":7662,"children":7663},{"style":224},[7664],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":7666,"children":7667},{"style":230},[7668],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7670,"children":7671},{"style":224},[7672],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7674,"children":7675},{"style":261},[7676],{"type":23,"value":7677},"\"Buy\"",{"type":14,"tagName":35,"properties":7679,"children":7680},{"style":224},[7681],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":7683,"children":7684},{"style":230},[7685],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7687,"children":7688},{"style":224},[7689],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7691,"children":7692},{"style":261},[7693],{"type":23,"value":3349},{"type":14,"tagName":35,"properties":7695,"children":7696},{"style":224},[7697],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7700,"children":7701},{"class":220},[7702,7706,7710,7715,7719,7723,7727],{"type":14,"tagName":35,"properties":7703,"children":7704},{"style":224},[7705],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":7707,"children":7708},{"style":230},[7709],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":7711,"children":7712},{"style":230},[7713],{"type":23,"value":7714}," if",{"type":14,"tagName":35,"properties":7716,"children":7717},{"style":224},[7718],{"type":23,"value":7591},{"type":14,"tagName":35,"properties":7720,"children":7721},{"style":230},[7722],{"type":23,"value":7596},{"type":14,"tagName":35,"properties":7724,"children":7725},{"style":261},[7726],{"type":23,"value":7415},{"type":14,"tagName":35,"properties":7728,"children":7729},{"style":224},[7730],{"type":23,"value":4160},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7733,"children":7734},{"class":220},[7735,7739,7743,7747,7751,7755,7759,7763,7767,7771,7775,7779,7783,7787,7791,7795,7799,7804,7808,7812,7816,7821],{"type":14,"tagName":35,"properties":7736,"children":7737},{"style":236},[7738],{"type":23,"value":5761},{"type":14,"tagName":35,"properties":7740,"children":7741},{"style":224},[7742],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":7744,"children":7745},{"style":230},[7746],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7748,"children":7749},{"style":224},[7750],{"type":23,"value":7440},{"type":14,"tagName":35,"properties":7752,"children":7753},{"style":230},[7754],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7756,"children":7757},{"style":261},[7758],{"type":23,"value":3302},{"type":14,"tagName":35,"properties":7760,"children":7761},{"style":224},[7762],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":7764,"children":7765},{"style":230},[7766],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7768,"children":7769},{"style":402},[7770],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":7772,"children":7773},{"style":224},[7774],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":7776,"children":7777},{"style":230},[7778],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7780,"children":7781},{"style":224},[7782],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7784,"children":7785},{"style":261},[7786],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":7788,"children":7789},{"style":224},[7790],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":7792,"children":7793},{"style":230},[7794],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7796,"children":7797},{"style":224},[7798],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7800,"children":7801},{"style":261},[7802],{"type":23,"value":7803},"\"Sell\"",{"type":14,"tagName":35,"properties":7805,"children":7806},{"style":224},[7807],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":7809,"children":7810},{"style":230},[7811],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7813,"children":7814},{"style":224},[7815],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":7817,"children":7818},{"style":261},[7819],{"type":23,"value":7820},"\"Sell Signal\"",{"type":14,"tagName":35,"properties":7822,"children":7823},{"style":224},[7824],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7827,"children":7828},{"class":220},[7829,7833,7837,7841,7845,7849,7854],{"type":14,"tagName":35,"properties":7830,"children":7831},{"style":224},[7832],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":7834,"children":7835},{"style":230},[7836],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":7838,"children":7839},{"style":230},[7840],{"type":23,"value":7714},{"type":14,"tagName":35,"properties":7842,"children":7843},{"style":224},[7844],{"type":23,"value":7591},{"type":14,"tagName":35,"properties":7846,"children":7847},{"style":230},[7848],{"type":23,"value":7596},{"type":14,"tagName":35,"properties":7850,"children":7851},{"style":261},[7852],{"type":23,"value":7853}," \"hold\"",{"type":14,"tagName":35,"properties":7855,"children":7856},{"style":224},[7857],{"type":23,"value":4160},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7860,"children":7861},{"class":220},[7862],{"type":14,"tagName":35,"properties":7863,"children":7864},{"style":558},[7865],{"type":23,"value":7866},"  // Do nothing",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7869,"children":7870},{"class":220},[7871,7875,7879],{"type":14,"tagName":35,"properties":7872,"children":7873},{"style":224},[7874],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":7876,"children":7877},{"style":230},[7878],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":7880,"children":7881},{"style":224},[7882],{"type":23,"value":2472},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7885,"children":7886},{"class":220},[7887],{"type":14,"tagName":35,"properties":7888,"children":7889},{"style":558},[7890],{"type":23,"value":7891},"  // Default action",{"type":23,"value":89},{"type":14,"tagName":35,"properties":7894,"children":7895},{"class":220},[7896],{"type":14,"tagName":35,"properties":7897,"children":7898},{"style":224},[7899],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7902,"children":7903},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7906,"children":7907},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7910,"children":7911},{"class":220},[7912,7916,7920,7924,7928],{"type":14,"tagName":35,"properties":7913,"children":7914},{"style":224},[7915],{"type":23,"value":296},{"type":14,"tagName":35,"properties":7917,"children":7918},{"style":230},[7919],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7921,"children":7922},{"style":224},[7923],{"type":23,"value":306},{"type":14,"tagName":35,"properties":7925,"children":7926},{"style":230},[7927],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7929,"children":7930},{"style":224},[7931],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7934,"children":7935},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7938,"children":7939},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7942,"children":7943},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7946,"children":7947},{"class":220},[7948,7952,7956,7960,7964,7969,7973],{"type":14,"tagName":35,"properties":7949,"children":7950},{"style":224},[7951],{"type":23,"value":296},{"type":14,"tagName":35,"properties":7953,"children":7954},{"style":230},[7955],{"type":23,"value":301},{"type":14,"tagName":35,"properties":7957,"children":7958},{"style":224},[7959],{"type":23,"value":344},{"type":14,"tagName":35,"properties":7961,"children":7962},{"style":230},[7963],{"type":23,"value":233},{"type":14,"tagName":35,"properties":7965,"children":7966},{"style":261},[7967],{"type":23,"value":7968},"\"Are objects and arrays supported in kScript?\"",{"type":14,"tagName":35,"properties":7970,"children":7971},{"style":230},[7972],{"type":23,"value":358},{"type":14,"tagName":35,"properties":7974,"children":7975},{"style":224},[7976],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":7979,"children":7980},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7983,"children":7984},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":7987,"children":7988},{"class":220},[7989,7993,7998,8003,8007,8011,8016,8020,8025,8030],{"type":14,"tagName":35,"properties":7990,"children":7991},{"style":230},[7992],{"type":23,"value":449},{"type":14,"tagName":35,"properties":7994,"children":7995},{"style":236},[7996],{"type":23,"value":7997},"Arrays",{"type":14,"tagName":35,"properties":7999,"children":8000},{"style":224},[8001],{"type":23,"value":8002},": Partial support",{"type":14,"tagName":35,"properties":8004,"children":8005},{"style":230},[8006],{"type":23,"value":449},{"type":14,"tagName":35,"properties":8008,"children":8009},{"style":230},[8010],{"type":23,"value":3759},{"type":14,"tagName":35,"properties":8012,"children":8013},{"style":224},[8014],{"type":23,"value":8015}," Arrays are supported ",{"type":14,"tagName":35,"properties":8017,"children":8018},{"style":230},[8019],{"type":23,"value":2225},{"type":14,"tagName":35,"properties":8021,"children":8022},{"style":230},[8023],{"type":23,"value":8024}," type",{"type":14,"tagName":35,"properties":8026,"children":8027},{"style":236},[8028],{"type":23,"value":8029}," restrictions",{"type":14,"tagName":35,"properties":8031,"children":8032},{"style":224},[8033],{"type":23,"value":8034},". Arrays must contain elements of the same type (homogeneous arrays).",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8037,"children":8038},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8041,"children":8042},{"class":220},[8043],{"type":14,"tagName":35,"properties":8044,"children":8045},{"style":224},[8046],{"type":23,"value":8047},"**Supported array types:**",{"type":23,"value":89},{"type":14,"tagName":1686,"properties":8050,"children":8051,"position":8138},{},[8052,8053,8081,8082,8109,8110,8137],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":8054,"children":8055,"position":8077},{},[8056,8071],{"type":14,"tagName":215,"properties":8057,"children":8058,"position":8068},{},[8059],{"type":23,"value":8060,"position":8061},"number[]",{"start":8062,"end":8065},{"line":8063,"column":32,"offset":8064},489,14974,{"line":8063,"column":8066,"offset":8067},13,14984,{"start":8069,"end":8070},{"line":8063,"column":32,"offset":8064},{"line":8063,"column":8066,"offset":8067},{"type":23,"value":8072,"position":8073}," - Array of numbers",{"start":8074,"end":8075},{"line":8063,"column":8066,"offset":8067},{"line":8063,"column":33,"offset":8076},15003,{"start":8078,"end":8080},{"line":8063,"column":27,"offset":8079},14972,{"line":8063,"column":33,"offset":8076},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":8083,"children":8084,"position":8105},{},[8085,8099],{"type":14,"tagName":215,"properties":8086,"children":8087,"position":8096},{},[8088],{"type":23,"value":8089,"position":8090},"string[]",{"start":8091,"end":8094},{"line":8092,"column":32,"offset":8093},490,15006,{"line":8092,"column":8066,"offset":8095},15016,{"start":8097,"end":8098},{"line":8092,"column":32,"offset":8093},{"line":8092,"column":8066,"offset":8095},{"type":23,"value":8100,"position":8101}," - Array of strings",{"start":8102,"end":8103},{"line":8092,"column":8066,"offset":8095},{"line":8092,"column":33,"offset":8104},15035,{"start":8106,"end":8108},{"line":8092,"column":27,"offset":8107},15004,{"line":8092,"column":33,"offset":8104},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":8111,"children":8112,"position":8133},{},[8113,8127],{"type":14,"tagName":215,"properties":8114,"children":8115,"position":8124},{},[8116],{"type":23,"value":8117,"position":8118},"any[]",{"start":8119,"end":8122},{"line":8120,"column":32,"offset":8121},491,15038,{"line":8120,"column":61,"offset":8123},15045,{"start":8125,"end":8126},{"line":8120,"column":32,"offset":8121},{"line":8120,"column":61,"offset":8123},{"type":23,"value":8128,"position":8129}," - Generic arrays (for mixed timeseries/number)",{"start":8130,"end":8131},{"line":8120,"column":61,"offset":8123},{"line":8120,"column":5559,"offset":8132},15092,{"start":8134,"end":8136},{"line":8120,"column":27,"offset":8135},15036,{"line":8120,"column":5559,"offset":8132},{"type":23,"value":89},{"start":8139,"end":8140},{"line":8063,"column":27,"offset":8079},{"line":8120,"column":5559,"offset":8132},{"type":23,"value":89},{"type":14,"tagName":129,"properties":8143,"children":8144,"position":8316},{},[8145,8162,8169,8182,8189,8201,8208,8226,8232,8250,8257,8270,8276,8289,8296,8309],{"type":14,"tagName":2760,"properties":8146,"children":8147,"position":8156},{},[8148],{"type":23,"value":8149,"position":8150},"Objects: full support since v3",{"start":8151,"end":8154},{"line":8152,"column":32,"offset":8153},493,15096,{"line":8152,"column":1704,"offset":8155},15126,{"start":8157,"end":8159},{"line":8152,"column":27,"offset":8158},15094,{"line":8152,"column":8160,"offset":8161},35,15128,{"type":23,"value":8163,"position":8164}," via user-defined types and maps. Declare a struct with ",{"start":8165,"end":8166},{"line":8152,"column":8160,"offset":8161},{"line":8152,"column":8167,"offset":8168},91,15184,{"type":14,"tagName":215,"properties":8170,"children":8171,"position":8179},{},[8172],{"type":23,"value":8173,"position":8174},"type",{"start":8175,"end":8176},{"line":8152,"column":8167,"offset":8168},{"line":8152,"column":8177,"offset":8178},97,15190,{"start":8180,"end":8181},{"line":8152,"column":8167,"offset":8168},{"line":8152,"column":8177,"offset":8178},{"type":23,"value":8183,"position":8184},", construct with ",{"start":8185,"end":8186},{"line":8152,"column":8177,"offset":8178},{"line":8152,"column":8187,"offset":8188},114,15207,{"type":14,"tagName":215,"properties":8190,"children":8191,"position":8198},{},[8192],{"type":23,"value":8193,"position":8194},"TypeName.new(...)",{"start":8195,"end":8196},{"line":8152,"column":8187,"offset":8188},{"line":8152,"column":7277,"offset":8197},15226,{"start":8199,"end":8200},{"line":8152,"column":8187,"offset":8188},{"line":8152,"column":7277,"offset":8197},{"type":23,"value":8202,"position":8203},", and store structs in collections: see ",{"start":8204,"end":8205},{"line":8152,"column":7277,"offset":8197},{"line":8152,"column":8206,"offset":8207},173,15266,{"type":14,"tagName":7262,"properties":8209,"children":8211,"position":8221},{"href":8210},"../core-concepts/user-defined-types.md",[8212],{"type":23,"value":8213,"position":8214},"user-defined types",{"start":8215,"end":8218},{"line":8152,"column":8216,"offset":8217},174,15267,{"line":8152,"column":8219,"offset":8220},192,15285,{"start":8222,"end":8223},{"line":8152,"column":8206,"offset":8207},{"line":8152,"column":8224,"offset":8225},233,15326,{"type":23,"value":5497,"position":8227},{"start":8228,"end":8229},{"line":8152,"column":8224,"offset":8225},{"line":8152,"column":8230,"offset":8231},238,15331,{"type":14,"tagName":7262,"properties":8233,"children":8235,"position":8245},{"href":8234},"../core-concepts/collections.md",[8236],{"type":23,"value":8237,"position":8238},"collections",{"start":8239,"end":8242},{"line":8152,"column":8240,"offset":8241},239,15332,{"line":8152,"column":8243,"offset":8244},250,15343,{"start":8246,"end":8247},{"line":8152,"column":8230,"offset":8231},{"line":8152,"column":8248,"offset":8249},284,15377,{"type":23,"value":8251,"position":8252},". Anonymous ",{"start":8253,"end":8254},{"line":8152,"column":8248,"offset":8249},{"line":8152,"column":8255,"offset":8256},296,15389,{"type":14,"tagName":215,"properties":8258,"children":8259,"position":8267},{},[8260],{"type":23,"value":8261,"position":8262},"{...}",{"start":8263,"end":8264},{"line":8152,"column":8255,"offset":8256},{"line":8152,"column":8265,"offset":8266},303,15396,{"start":8268,"end":8269},{"line":8152,"column":8255,"offset":8256},{"line":8152,"column":8265,"offset":8266},{"type":23,"value":8271,"position":8272}," literals remain limited to specific call options (e.g. ",{"start":8273,"end":8274},{"line":8152,"column":8265,"offset":8266},{"line":8152,"column":6174,"offset":8275},15452,{"type":14,"tagName":215,"properties":8277,"children":8278,"position":8286},{},[8279],{"type":23,"value":8280,"position":8281},"input()",{"start":8282,"end":8283},{"line":8152,"column":6174,"offset":8275},{"line":8152,"column":8284,"offset":8285},368,15461,{"start":8287,"end":8288},{"line":8152,"column":6174,"offset":8275},{"line":8152,"column":8284,"offset":8285},{"type":23,"value":8290,"position":8291}," constraints and drawing ",{"start":8292,"end":8293},{"line":8152,"column":8284,"offset":8285},{"line":8152,"column":8294,"offset":8295},393,15486,{"type":14,"tagName":215,"properties":8297,"children":8298,"position":8306},{},[8299],{"type":23,"value":8300,"position":8301},"opts",{"start":8302,"end":8303},{"line":8152,"column":8294,"offset":8295},{"line":8152,"column":8304,"offset":8305},399,15492,{"start":8307,"end":8308},{"line":8152,"column":8294,"offset":8295},{"line":8152,"column":8304,"offset":8305},{"type":23,"value":8310,"position":8311},").",{"start":8312,"end":8313},{"line":8152,"column":8304,"offset":8305},{"line":8152,"column":8314,"offset":8315},401,15494,{"start":8317,"end":8318},{"line":8152,"column":27,"offset":8158},{"line":8152,"column":8314,"offset":8315},{"type":23,"value":89},{"type":11,"children":8321},[8322],{"type":14,"tagName":207,"properties":8323,"children":8325,"data":-1},{"class":209,"style":210,"tabindex":211,"title":8324},"Structs (v3)",[8326],{"type":14,"tagName":215,"properties":8327,"children":8328},{},[8329,8346,8347,8364,8365],{"type":14,"tagName":35,"properties":8330,"children":8331},{"class":220},[8332,8336,8341],{"type":14,"tagName":35,"properties":8333,"children":8334},{"style":230},[8335],{"type":23,"value":8173},{"type":14,"tagName":35,"properties":8337,"children":8338},{"style":236},[8339],{"type":23,"value":8340}," Zone",{"type":14,"tagName":35,"properties":8342,"children":8343},{"style":224},[8344],{"type":23,"value":8345}," { top: number, bottom: number, touches: number }",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8348,"children":8349},{"class":220},[8350,8355,8359],{"type":14,"tagName":35,"properties":8351,"children":8352},{"style":224},[8353],{"type":23,"value":8354},"persist zones ",{"type":14,"tagName":35,"properties":8356,"children":8357},{"style":230},[8358],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8360,"children":8361},{"style":224},[8362],{"type":23,"value":8363}," []",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8366,"children":8367},{"class":220},[8368,8373,8378,8383,8388,8393,8397,8402,8406,8411,8415,8419],{"type":14,"tagName":35,"properties":8369,"children":8370},{"style":224},[8371],{"type":23,"value":8372},"zones.",{"type":14,"tagName":35,"properties":8374,"children":8375},{"style":236},[8376],{"type":23,"value":8377},"push",{"type":14,"tagName":35,"properties":8379,"children":8380},{"style":224},[8381],{"type":23,"value":8382},"(Zone.",{"type":14,"tagName":35,"properties":8384,"children":8385},{"style":236},[8386],{"type":23,"value":8387},"new",{"type":14,"tagName":35,"properties":8389,"children":8390},{"style":224},[8391],{"type":23,"value":8392},"(top",{"type":14,"tagName":35,"properties":8394,"children":8395},{"style":230},[8396],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8398,"children":8399},{"style":224},[8400],{"type":23,"value":8401},"high, bottom",{"type":14,"tagName":35,"properties":8403,"children":8404},{"style":230},[8405],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8407,"children":8408},{"style":224},[8409],{"type":23,"value":8410},"low, touches",{"type":14,"tagName":35,"properties":8412,"children":8413},{"style":230},[8414],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8416,"children":8417},{"style":402},[8418],{"type":23,"value":211},{"type":14,"tagName":35,"properties":8420,"children":8421},{"style":224},[8422],{"type":23,"value":8423},"))",{"type":23,"value":89},{"type":11,"children":8426},[8427],{"type":14,"tagName":207,"properties":8428,"children":8430,"data":-1},{"class":209,"style":210,"tabindex":211,"title":8429},"Arrays and Objects",[8431],{"type":14,"tagName":215,"properties":8432,"children":8433},{},[8434,8442,8443,8489,8490,8537,8538,8541,8542,8550,8551,8572,8573,8662,8663,8666,8667,8675,8676,8727,8728,8731,8732,8740,8741,8826,8827,8830,8831,8834,8835,8858,8859,8862,8863,8866,8867,8870,8871,8903,8904,8907,8908,8911,8912,8960,8961,8964,8965,9022,9023,9026,9027],{"type":14,"tagName":35,"properties":8435,"children":8436},{"class":220},[8437],{"type":14,"tagName":35,"properties":8438,"children":8439},{"style":558},[8440],{"type":23,"value":8441},"// ✓ Homogeneous arrays",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8444,"children":8445},{"class":220},[8446,8450,8455,8459,8464,8468,8472,8476,8480,8484],{"type":14,"tagName":35,"properties":8447,"children":8448},{"style":230},[8449],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":8451,"children":8452},{"style":224},[8453],{"type":23,"value":8454}," colors ",{"type":14,"tagName":35,"properties":8456,"children":8457},{"style":230},[8458],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8460,"children":8461},{"style":224},[8462],{"type":23,"value":8463}," [",{"type":14,"tagName":35,"properties":8465,"children":8466},{"style":261},[8467],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":8469,"children":8470},{"style":224},[8471],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8473,"children":8474},{"style":261},[8475],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":8477,"children":8478},{"style":224},[8479],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8481,"children":8482},{"style":261},[8483],{"type":23,"value":2086},{"type":14,"tagName":35,"properties":8485,"children":8486},{"style":224},[8487],{"type":23,"value":8488},"]",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8491,"children":8492},{"class":220},[8493,8497,8502,8506,8510,8515,8519,8524,8528,8533],{"type":14,"tagName":35,"properties":8494,"children":8495},{"style":230},[8496],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":8498,"children":8499},{"style":224},[8500],{"type":23,"value":8501}," prices ",{"type":14,"tagName":35,"properties":8503,"children":8504},{"style":230},[8505],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8507,"children":8508},{"style":224},[8509],{"type":23,"value":8463},{"type":14,"tagName":35,"properties":8511,"children":8512},{"style":402},[8513],{"type":23,"value":8514},"100",{"type":14,"tagName":35,"properties":8516,"children":8517},{"style":224},[8518],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8520,"children":8521},{"style":402},[8522],{"type":23,"value":8523},"200",{"type":14,"tagName":35,"properties":8525,"children":8526},{"style":224},[8527],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8529,"children":8530},{"style":402},[8531],{"type":23,"value":8532},"300",{"type":14,"tagName":35,"properties":8534,"children":8535},{"style":224},[8536],{"type":23,"value":8488},{"type":23,"value":89},{"type":14,"tagName":35,"properties":8539,"children":8540},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8543,"children":8544},{"class":220},[8545],{"type":14,"tagName":35,"properties":8546,"children":8547},{"style":558},[8548],{"type":23,"value":8549},"// ✓ Array of timeseries values",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8552,"children":8553},{"class":220},[8554,8558,8563,8567],{"type":14,"tagName":35,"properties":8555,"children":8556},{"style":230},[8557],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":8559,"children":8560},{"style":224},[8561],{"type":23,"value":8562}," ohlc ",{"type":14,"tagName":35,"properties":8564,"children":8565},{"style":230},[8566],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8568,"children":8569},{"style":224},[8570],{"type":23,"value":8571}," [ohlcv.open, ohlcv.high, ohlcv.low, ohlcv.close]",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8574,"children":8575},{"class":220},[8576,8581,8585,8589,8594,8598,8602,8606,8610,8614,8618,8622,8626,8630,8634,8638,8642,8646,8650,8654,8658],{"type":14,"tagName":35,"properties":8577,"children":8578},{"style":236},[8579],{"type":23,"value":8580},"plotCandle",{"type":14,"tagName":35,"properties":8582,"children":8583},{"style":224},[8584],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":8586,"children":8587},{"style":230},[8588],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8590,"children":8591},{"style":224},[8592],{"type":23,"value":8593},"ohlc, width",{"type":14,"tagName":35,"properties":8595,"children":8596},{"style":230},[8597],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8599,"children":8600},{"style":402},[8601],{"type":23,"value":2976},{"type":14,"tagName":35,"properties":8603,"children":8604},{"style":224},[8605],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":8607,"children":8608},{"style":230},[8609],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8611,"children":8612},{"style":224},[8613],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":8615,"children":8616},{"style":261},[8617],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":8619,"children":8620},{"style":224},[8621],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8623,"children":8624},{"style":261},[8625],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":8627,"children":8628},{"style":224},[8629],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":8631,"children":8632},{"style":230},[8633],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8635,"children":8636},{"style":224},[8637],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":8639,"children":8640},{"style":261},[8641],{"type":23,"value":5265},{"type":14,"tagName":35,"properties":8643,"children":8644},{"style":224},[8645],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":8647,"children":8648},{"style":230},[8649],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8651,"children":8652},{"style":224},[8653],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":8655,"children":8656},{"style":261},[8657],{"type":23,"value":5282},{"type":14,"tagName":35,"properties":8659,"children":8660},{"style":224},[8661],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":8664,"children":8665},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8668,"children":8669},{"class":220},[8670],{"type":14,"tagName":35,"properties":8671,"children":8672},{"style":558},[8673],{"type":23,"value":8674},"// ✗ Mixed type arrays not allowed",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8677,"children":8678},{"class":220},[8679,8683,8688,8692,8696,8700,8704,8709,8713,8717,8722],{"type":14,"tagName":35,"properties":8680,"children":8681},{"style":230},[8682],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":8684,"children":8685},{"style":224},[8686],{"type":23,"value":8687}," mixed ",{"type":14,"tagName":35,"properties":8689,"children":8690},{"style":230},[8691],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8693,"children":8694},{"style":224},[8695],{"type":23,"value":8463},{"type":14,"tagName":35,"properties":8697,"children":8698},{"style":402},[8699],{"type":23,"value":8514},{"type":14,"tagName":35,"properties":8701,"children":8702},{"style":224},[8703],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8705,"children":8706},{"style":261},[8707],{"type":23,"value":8708},"\"hello\"",{"type":14,"tagName":35,"properties":8710,"children":8711},{"style":224},[8712],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8714,"children":8715},{"style":402},[8716],{"type":23,"value":1023},{"type":14,"tagName":35,"properties":8718,"children":8719},{"style":224},[8720],{"type":23,"value":8721},"]  ",{"type":14,"tagName":35,"properties":8723,"children":8724},{"style":558},[8725],{"type":23,"value":8726},"// Error",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8729,"children":8730},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8733,"children":8734},{"class":220},[8735],{"type":14,"tagName":35,"properties":8736,"children":8737},{"style":558},[8738],{"type":23,"value":8739},"// ✓ Object for constraints (limited support)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8742,"children":8743},{"class":220},[8744,8748,8753,8757,8762,8766,8771,8775,8780,8785,8789,8794,8799,8803,8808,8812,8817,8821],{"type":14,"tagName":35,"properties":8745,"children":8746},{"style":230},[8747],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":8749,"children":8750},{"style":224},[8751],{"type":23,"value":8752}," userLength ",{"type":14,"tagName":35,"properties":8754,"children":8755},{"style":230},[8756],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8758,"children":8759},{"style":236},[8760],{"type":23,"value":8761}," input",{"type":14,"tagName":35,"properties":8763,"children":8764},{"style":224},[8765],{"type":23,"value":258},{"type":14,"tagName":35,"properties":8767,"children":8768},{"style":261},[8769],{"type":23,"value":8770},"\"Length\"",{"type":14,"tagName":35,"properties":8772,"children":8773},{"style":224},[8774],{"type":23,"value":749},{"type":14,"tagName":35,"properties":8776,"children":8777},{"style":261},[8778],{"type":23,"value":8779},"\"number\"",{"type":14,"tagName":35,"properties":8781,"children":8782},{"style":224},[8783],{"type":23,"value":8784},", defaultValue",{"type":14,"tagName":35,"properties":8786,"children":8787},{"style":230},[8788],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8790,"children":8791},{"style":402},[8792],{"type":23,"value":8793},"14",{"type":14,"tagName":35,"properties":8795,"children":8796},{"style":224},[8797],{"type":23,"value":8798},", constraints",{"type":14,"tagName":35,"properties":8800,"children":8801},{"style":230},[8802],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8804,"children":8805},{"style":224},[8806],{"type":23,"value":8807},"{min:",{"type":14,"tagName":35,"properties":8809,"children":8810},{"style":402},[8811],{"type":23,"value":2976},{"type":14,"tagName":35,"properties":8813,"children":8814},{"style":224},[8815],{"type":23,"value":8816},", max:",{"type":14,"tagName":35,"properties":8818,"children":8819},{"style":402},[8820],{"type":23,"value":8514},{"type":14,"tagName":35,"properties":8822,"children":8823},{"style":224},[8824],{"type":23,"value":8825},"})",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8828,"children":8829},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8832,"children":8833},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8836,"children":8837},{"class":220},[8838,8842,8846,8850,8854],{"type":14,"tagName":35,"properties":8839,"children":8840},{"style":224},[8841],{"type":23,"value":296},{"type":14,"tagName":35,"properties":8843,"children":8844},{"style":230},[8845],{"type":23,"value":301},{"type":14,"tagName":35,"properties":8847,"children":8848},{"style":224},[8849],{"type":23,"value":306},{"type":14,"tagName":35,"properties":8851,"children":8852},{"style":230},[8853],{"type":23,"value":301},{"type":14,"tagName":35,"properties":8855,"children":8856},{"style":224},[8857],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":8860,"children":8861},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8864,"children":8865},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8868,"children":8869},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8872,"children":8873},{"class":220},[8874,8878,8882,8886,8890,8895,8899],{"type":14,"tagName":35,"properties":8875,"children":8876},{"style":224},[8877],{"type":23,"value":296},{"type":14,"tagName":35,"properties":8879,"children":8880},{"style":230},[8881],{"type":23,"value":301},{"type":14,"tagName":35,"properties":8883,"children":8884},{"style":224},[8885],{"type":23,"value":344},{"type":14,"tagName":35,"properties":8887,"children":8888},{"style":230},[8889],{"type":23,"value":233},{"type":14,"tagName":35,"properties":8891,"children":8892},{"style":261},[8893],{"type":23,"value":8894},"\"Can a script get signals from another script or indicator?\"",{"type":14,"tagName":35,"properties":8896,"children":8897},{"style":230},[8898],{"type":23,"value":358},{"type":14,"tagName":35,"properties":8900,"children":8901},{"style":224},[8902],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":8905,"children":8906},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8909,"children":8910},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8913,"children":8914},{"class":220},[8915,8919,8923,8927,8932,8937,8942,8946,8951,8955],{"type":14,"tagName":35,"properties":8916,"children":8917},{"style":230},[8918],{"type":23,"value":449},{"type":14,"tagName":35,"properties":8920,"children":8921},{"style":224},[8922],{"type":23,"value":895},{"type":14,"tagName":35,"properties":8924,"children":8925},{"style":230},[8926],{"type":23,"value":449},{"type":14,"tagName":35,"properties":8928,"children":8929},{"style":224},[8930],{"type":23,"value":8931},", kScript v3 does ",{"type":14,"tagName":35,"properties":8933,"children":8934},{"style":402},[8935],{"type":23,"value":8936},"NOT",{"type":14,"tagName":35,"properties":8938,"children":8939},{"style":224},[8940],{"type":23,"value":8941}," currently support cross",{"type":14,"tagName":35,"properties":8943,"children":8944},{"style":230},[8945],{"type":23,"value":384},{"type":14,"tagName":35,"properties":8947,"children":8948},{"style":224},[8949],{"type":23,"value":8950},"script communication. Each script runs ",{"type":14,"tagName":35,"properties":8952,"children":8953},{"style":230},[8954],{"type":23,"value":1325},{"type":14,"tagName":35,"properties":8956,"children":8957},{"style":224},[8958],{"type":23,"value":8959}," isolation and cannot access data or signals from other scripts. Each script has its own runtime context, data manager, variable environment, and series storage.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":8962,"children":8963},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":8966,"children":8967},{"class":220},[8968,8972,8977,8981,8985,8990,8994,8999,9004,9008,9013,9018],{"type":14,"tagName":35,"properties":8969,"children":8970},{"style":230},[8971],{"type":23,"value":449},{"type":14,"tagName":35,"properties":8973,"children":8974},{"style":236},[8975],{"type":23,"value":8976},"Note",{"type":14,"tagName":35,"properties":8978,"children":8979},{"style":224},[8980],{"type":23,"value":459},{"type":14,"tagName":35,"properties":8982,"children":8983},{"style":230},[8984],{"type":23,"value":449},{"type":14,"tagName":35,"properties":8986,"children":8987},{"style":224},[8988],{"type":23,"value":8989}," Cross",{"type":14,"tagName":35,"properties":8991,"children":8992},{"style":230},[8993],{"type":23,"value":384},{"type":14,"tagName":35,"properties":8995,"children":8996},{"style":224},[8997],{"type":23,"value":8998},"script communication will be added ",{"type":14,"tagName":35,"properties":9000,"children":9001},{"style":230},[9002],{"type":23,"value":9003},"as",{"type":14,"tagName":35,"properties":9005,"children":9006},{"style":236},[9007],{"type":23,"value":4423},{"type":14,"tagName":35,"properties":9009,"children":9010},{"style":236},[9011],{"type":23,"value":9012}," feature",{"type":14,"tagName":35,"properties":9014,"children":9015},{"style":236},[9016],{"type":23,"value":9017}," soon",{"type":14,"tagName":35,"properties":9019,"children":9020},{"style":224},[9021],{"type":23,"value":436},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9024,"children":9025},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9028,"children":9029},{"class":220},[9030,9034,9039,9043,9047,9052,9056],{"type":14,"tagName":35,"properties":9031,"children":9032},{"style":230},[9033],{"type":23,"value":449},{"type":14,"tagName":35,"properties":9035,"children":9036},{"style":236},[9037],{"type":23,"value":9038},"Workaround",{"type":14,"tagName":35,"properties":9040,"children":9041},{"style":224},[9042],{"type":23,"value":459},{"type":14,"tagName":35,"properties":9044,"children":9045},{"style":230},[9046],{"type":23,"value":449},{"type":14,"tagName":35,"properties":9048,"children":9049},{"style":224},[9050],{"type":23,"value":9051}," Use shared data sources. Both scripts can subscribe to the same source data and process it independently. Alternatively, combine the logic ",{"type":14,"tagName":35,"properties":9053,"children":9054},{"style":230},[9055],{"type":23,"value":1315},{"type":14,"tagName":35,"properties":9057,"children":9058},{"style":224},[9059],{"type":23,"value":9060}," multiple indicators into a single script.",{"type":23,"value":89},{"type":11,"children":9063},[9064],{"type":14,"tagName":207,"properties":9065,"children":9067,"data":-1},{"class":209,"style":210,"tabindex":211,"title":9066},"Cross-Script Signals",[9068],{"type":14,"tagName":215,"properties":9069,"children":9070},{},[9071,9079,9080,9088,9089,9092,9093,9101,9102,9138,9139,9182,9183,9186,9187,9195,9196,9234,9235,9238,9239,9247,9248,9273,9274,9367,9368,9400,9401,9495,9496,9503,9504,9507,9508,9591,9592,9595,9596,9599,9600,9623,9624,9627,9628,9631,9632,9635,9636,9668,9669,9672,9673,9676,9677,9715,9716,9719,9720],{"type":14,"tagName":35,"properties":9072,"children":9073},{"class":220},[9074],{"type":14,"tagName":35,"properties":9075,"children":9076},{"style":558},[9077],{"type":23,"value":9078},"// ✗ Cannot access signals from other scripts",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9081,"children":9082},{"class":220},[9083],{"type":14,"tagName":35,"properties":9084,"children":9085},{"style":558},[9086],{"type":23,"value":9087},"// var otherRSI = getScriptValue(\"RSI Indicator\", \"rsi\")  // Not supported",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9090,"children":9091},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9094,"children":9095},{"class":220},[9096],{"type":14,"tagName":35,"properties":9097,"children":9098},{"style":558},[9099],{"type":23,"value":9100},"// ✓ Workaround: Combine logic in a single script",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9103,"children":9104},{"class":220},[9105,9109,9113,9118,9122,9126,9130,9134],{"type":14,"tagName":35,"properties":9106,"children":9107},{"style":236},[9108],{"type":23,"value":996},{"type":14,"tagName":35,"properties":9110,"children":9111},{"style":224},[9112],{"type":23,"value":258},{"type":14,"tagName":35,"properties":9114,"children":9115},{"style":261},[9116],{"type":23,"value":9117},"\"Combined Indicator + Strategy\"",{"type":14,"tagName":35,"properties":9119,"children":9120},{"style":224},[9121],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9123,"children":9124},{"style":261},[9125],{"type":23,"value":1014},{"type":14,"tagName":35,"properties":9127,"children":9128},{"style":224},[9129],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9131,"children":9132},{"style":402},[9133],{"type":23,"value":1023},{"type":14,"tagName":35,"properties":9135,"children":9136},{"style":224},[9137],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9140,"children":9141},{"class":220},[9142,9146,9150,9154,9158,9162,9166,9170,9174,9178],{"type":14,"tagName":35,"properties":9143,"children":9144},{"style":224},[9145],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":9147,"children":9148},{"style":230},[9149],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9151,"children":9152},{"style":236},[9153],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":9155,"children":9156},{"style":224},[9157],{"type":23,"value":258},{"type":14,"tagName":35,"properties":9159,"children":9160},{"style":261},[9161],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":9163,"children":9164},{"style":224},[9165],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9167,"children":9168},{"style":261},[9169],{"type":23,"value":744},{"type":14,"tagName":35,"properties":9171,"children":9172},{"style":224},[9173],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9175,"children":9176},{"style":261},[9177],{"type":23,"value":754},{"type":14,"tagName":35,"properties":9179,"children":9180},{"style":224},[9181],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9184,"children":9185},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9188,"children":9189},{"class":220},[9190],{"type":14,"tagName":35,"properties":9191,"children":9192},{"style":558},[9193],{"type":23,"value":9194},"// Calculate indicator",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9197,"children":9198},{"class":220},[9199,9203,9208,9212,9217,9222,9226,9230],{"type":14,"tagName":35,"properties":9200,"children":9201},{"style":230},[9202],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":9204,"children":9205},{"style":224},[9206],{"type":23,"value":9207}," rsiData ",{"type":14,"tagName":35,"properties":9209,"children":9210},{"style":230},[9211],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9213,"children":9214},{"style":236},[9215],{"type":23,"value":9216}," rsi",{"type":14,"tagName":35,"properties":9218,"children":9219},{"style":224},[9220],{"type":23,"value":9221},"(ohlcvData.close, period",{"type":14,"tagName":35,"properties":9223,"children":9224},{"style":230},[9225],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9227,"children":9228},{"style":402},[9229],{"type":23,"value":8793},{"type":14,"tagName":35,"properties":9231,"children":9232},{"style":224},[9233],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9236,"children":9237},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9240,"children":9241},{"class":220},[9242],{"type":14,"tagName":35,"properties":9243,"children":9244},{"style":558},[9245],{"type":23,"value":9246},"// Use indicator for strategy",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9249,"children":9250},{"class":220},[9251,9255,9260,9264,9269],{"type":14,"tagName":35,"properties":9252,"children":9253},{"style":230},[9254],{"type":23,"value":936},{"type":14,"tagName":35,"properties":9256,"children":9257},{"style":224},[9258],{"type":23,"value":9259}," (rsiData ",{"type":14,"tagName":35,"properties":9261,"children":9262},{"style":230},[9263],{"type":23,"value":3514},{"type":14,"tagName":35,"properties":9265,"children":9266},{"style":402},[9267],{"type":23,"value":9268}," 70",{"type":14,"tagName":35,"properties":9270,"children":9271},{"style":224},[9272],{"type":23,"value":4160},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9275,"children":9276},{"class":220},[9277,9281,9285,9289,9293,9297,9301,9305,9309,9313,9317,9321,9325,9329,9333,9337,9341,9346,9350,9354,9358,9363],{"type":14,"tagName":35,"properties":9278,"children":9279},{"style":236},[9280],{"type":23,"value":5761},{"type":14,"tagName":35,"properties":9282,"children":9283},{"style":224},[9284],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":9286,"children":9287},{"style":230},[9288],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9290,"children":9291},{"style":224},[9292],{"type":23,"value":5774},{"type":14,"tagName":35,"properties":9294,"children":9295},{"style":230},[9296],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9298,"children":9299},{"style":261},[9300],{"type":23,"value":3302},{"type":14,"tagName":35,"properties":9302,"children":9303},{"style":224},[9304],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":9306,"children":9307},{"style":230},[9308],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9310,"children":9311},{"style":402},[9312],{"type":23,"value":579},{"type":14,"tagName":35,"properties":9314,"children":9315},{"style":224},[9316],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":9318,"children":9319},{"style":230},[9320],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9322,"children":9323},{"style":224},[9324],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9326,"children":9327},{"style":261},[9328],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":9330,"children":9331},{"style":224},[9332],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":9334,"children":9335},{"style":230},[9336],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9338,"children":9339},{"style":224},[9340],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9342,"children":9343},{"style":261},[9344],{"type":23,"value":9345},"\"Overbought\"",{"type":14,"tagName":35,"properties":9347,"children":9348},{"style":224},[9349],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":9351,"children":9352},{"style":230},[9353],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9355,"children":9356},{"style":224},[9357],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9359,"children":9360},{"style":261},[9361],{"type":23,"value":9362},"\"Overbought Signal\"",{"type":14,"tagName":35,"properties":9364,"children":9365},{"style":224},[9366],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9369,"children":9370},{"class":220},[9371,9375,9379,9383,9387,9391,9396],{"type":14,"tagName":35,"properties":9372,"children":9373},{"style":224},[9374],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":9376,"children":9377},{"style":230},[9378],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":9380,"children":9381},{"style":230},[9382],{"type":23,"value":7714},{"type":14,"tagName":35,"properties":9384,"children":9385},{"style":224},[9386],{"type":23,"value":9259},{"type":14,"tagName":35,"properties":9388,"children":9389},{"style":230},[9390],{"type":23,"value":4140},{"type":14,"tagName":35,"properties":9392,"children":9393},{"style":402},[9394],{"type":23,"value":9395}," 30",{"type":14,"tagName":35,"properties":9397,"children":9398},{"style":224},[9399],{"type":23,"value":4160},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9402,"children":9403},{"class":220},[9404,9408,9412,9416,9421,9425,9429,9433,9437,9441,9445,9449,9453,9457,9461,9465,9469,9474,9478,9482,9486,9491],{"type":14,"tagName":35,"properties":9405,"children":9406},{"style":236},[9407],{"type":23,"value":5761},{"type":14,"tagName":35,"properties":9409,"children":9410},{"style":224},[9411],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":9413,"children":9414},{"style":230},[9415],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9417,"children":9418},{"style":224},[9419],{"type":23,"value":9420},"ohlcvData.low, shape",{"type":14,"tagName":35,"properties":9422,"children":9423},{"style":230},[9424],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9426,"children":9427},{"style":261},[9428],{"type":23,"value":3302},{"type":14,"tagName":35,"properties":9430,"children":9431},{"style":224},[9432],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":9434,"children":9435},{"style":230},[9436],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9438,"children":9439},{"style":402},[9440],{"type":23,"value":579},{"type":14,"tagName":35,"properties":9442,"children":9443},{"style":224},[9444],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":9446,"children":9447},{"style":230},[9448],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9450,"children":9451},{"style":224},[9452],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9454,"children":9455},{"style":261},[9456],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":9458,"children":9459},{"style":224},[9460],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":9462,"children":9463},{"style":230},[9464],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9466,"children":9467},{"style":224},[9468],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9470,"children":9471},{"style":261},[9472],{"type":23,"value":9473},"\"Oversold\"",{"type":14,"tagName":35,"properties":9475,"children":9476},{"style":224},[9477],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":9479,"children":9480},{"style":230},[9481],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9483,"children":9484},{"style":224},[9485],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9487,"children":9488},{"style":261},[9489],{"type":23,"value":9490},"\"Oversold Signal\"",{"type":14,"tagName":35,"properties":9492,"children":9493},{"style":224},[9494],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9497,"children":9498},{"class":220},[9499],{"type":14,"tagName":35,"properties":9500,"children":9501},{"style":224},[9502],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9505,"children":9506},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9509,"children":9510},{"class":220},[9511,9515,9519,9523,9528,9532,9536,9540,9544,9548,9553,9557,9561,9565,9570,9574,9578,9582,9587],{"type":14,"tagName":35,"properties":9512,"children":9513},{"style":236},[9514],{"type":23,"value":1059},{"type":14,"tagName":35,"properties":9516,"children":9517},{"style":224},[9518],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":9520,"children":9521},{"style":230},[9522],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9524,"children":9525},{"style":224},[9526],{"type":23,"value":9527},"rsiData, width",{"type":14,"tagName":35,"properties":9529,"children":9530},{"style":230},[9531],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9533,"children":9534},{"style":402},[9535],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":9537,"children":9538},{"style":224},[9539],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":9541,"children":9542},{"style":230},[9543],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9545,"children":9546},{"style":224},[9547],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9549,"children":9550},{"style":261},[9551],{"type":23,"value":9552},"\"purple\"",{"type":14,"tagName":35,"properties":9554,"children":9555},{"style":224},[9556],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":9558,"children":9559},{"style":230},[9560],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9562,"children":9563},{"style":224},[9564],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9566,"children":9567},{"style":261},[9568],{"type":23,"value":9569},"\"RSI\"",{"type":14,"tagName":35,"properties":9571,"children":9572},{"style":224},[9573],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":9575,"children":9576},{"style":230},[9577],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9579,"children":9580},{"style":224},[9581],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":9583,"children":9584},{"style":261},[9585],{"type":23,"value":9586},"\"Relative Strength Index\"",{"type":14,"tagName":35,"properties":9588,"children":9589},{"style":224},[9590],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9593,"children":9594},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9597,"children":9598},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9601,"children":9602},{"class":220},[9603,9607,9611,9615,9619],{"type":14,"tagName":35,"properties":9604,"children":9605},{"style":224},[9606],{"type":23,"value":296},{"type":14,"tagName":35,"properties":9608,"children":9609},{"style":230},[9610],{"type":23,"value":301},{"type":14,"tagName":35,"properties":9612,"children":9613},{"style":224},[9614],{"type":23,"value":306},{"type":14,"tagName":35,"properties":9616,"children":9617},{"style":230},[9618],{"type":23,"value":301},{"type":14,"tagName":35,"properties":9620,"children":9621},{"style":224},[9622],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9625,"children":9626},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9629,"children":9630},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9633,"children":9634},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9637,"children":9638},{"class":220},[9639,9643,9647,9651,9655,9660,9664],{"type":14,"tagName":35,"properties":9640,"children":9641},{"style":224},[9642],{"type":23,"value":296},{"type":14,"tagName":35,"properties":9644,"children":9645},{"style":230},[9646],{"type":23,"value":301},{"type":14,"tagName":35,"properties":9648,"children":9649},{"style":224},[9650],{"type":23,"value":344},{"type":14,"tagName":35,"properties":9652,"children":9653},{"style":230},[9654],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9656,"children":9657},{"style":261},[9658],{"type":23,"value":9659},"\"Can I use timeseries in custom functions and control structures?\"",{"type":14,"tagName":35,"properties":9661,"children":9662},{"style":230},[9663],{"type":23,"value":358},{"type":14,"tagName":35,"properties":9665,"children":9666},{"style":224},[9667],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9670,"children":9671},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9674,"children":9675},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9678,"children":9679},{"class":220},[9680,9684,9689,9693,9697,9701,9706,9711],{"type":14,"tagName":35,"properties":9681,"children":9682},{"style":230},[9683],{"type":23,"value":449},{"type":14,"tagName":35,"properties":9685,"children":9686},{"style":224},[9687],{"type":23,"value":9688},"Yes and No",{"type":14,"tagName":35,"properties":9690,"children":9691},{"style":230},[9692],{"type":23,"value":449},{"type":14,"tagName":35,"properties":9694,"children":9695},{"style":224},[9696],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9698,"children":9699},{"style":230},[9700],{"type":23,"value":2225},{"type":14,"tagName":35,"properties":9702,"children":9703},{"style":224},[9704],{"type":23,"value":9705}," important ",{"type":14,"tagName":35,"properties":9707,"children":9708},{"style":236},[9709],{"type":23,"value":9710},"constraints",{"type":14,"tagName":35,"properties":9712,"children":9713},{"style":224},[9714],{"type":23,"value":459},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9717,"children":9718},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9721,"children":9722},{"class":220},[9723,9727,9732,9737,9741],{"type":14,"tagName":35,"properties":9724,"children":9725},{"style":230},[9726],{"type":23,"value":449},{"type":14,"tagName":35,"properties":9728,"children":9729},{"style":224},[9730],{"type":23,"value":9731},"Custom ",{"type":14,"tagName":35,"properties":9733,"children":9734},{"style":236},[9735],{"type":23,"value":9736},"Functions",{"type":14,"tagName":35,"properties":9738,"children":9739},{"style":224},[9740],{"type":23,"value":459},{"type":14,"tagName":35,"properties":9742,"children":9743},{"style":230},[9744],{"type":23,"value":449},{"type":23,"value":89},{"type":14,"tagName":1686,"properties":9747,"children":9748,"position":9783},{},[9749,9750,9765,9766,9782],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":9751,"children":9752,"position":9761},{},[9753],{"type":23,"value":9754,"position":9755},"Timeseries CAN be passed as parameters to custom functions",{"start":9756,"end":9759},{"line":9757,"column":32,"offset":9758},561,17899,{"line":9757,"column":5568,"offset":9760},17957,{"start":9762,"end":9764},{"line":9757,"column":27,"offset":9763},17897,{"line":9757,"column":5568,"offset":9760},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":9767,"children":9768,"position":9778},{},[9769],{"type":23,"value":9770,"position":9771},"Inside functions, timeseries are automatically indexed at the current bar to get numeric values. However, the behavior will not be intended, as the timeseries will be treated as a single value. For example, OHLCV timeseries data will be treated as a singular open data value.",{"start":9772,"end":9775},{"line":9773,"column":32,"offset":9774},562,17960,{"line":9773,"column":9776,"offset":9777},278,18235,{"start":9779,"end":9781},{"line":9773,"column":27,"offset":9780},17958,{"line":9773,"column":9776,"offset":9777},{"type":23,"value":89},{"start":9784,"end":9785},{"line":9757,"column":27,"offset":9763},{"line":9773,"column":9776,"offset":9777},{"type":23,"value":89},{"type":14,"tagName":129,"properties":9788,"children":9789,"position":9806},{},[9790],{"type":14,"tagName":2760,"properties":9791,"children":9792,"position":9801},{},[9793],{"type":23,"value":9794,"position":9795},"Control Structures:",{"start":9796,"end":9799},{"line":9797,"column":32,"offset":9798},564,18239,{"line":9797,"column":4670,"offset":9800},18258,{"start":9802,"end":9804},{"line":9797,"column":27,"offset":9803},18237,{"line":9797,"column":2666,"offset":9805},18260,{"start":9807,"end":9808},{"line":9797,"column":27,"offset":9803},{"line":9797,"column":2666,"offset":9805},{"type":23,"value":89},{"type":14,"tagName":1686,"properties":9811,"children":9812,"position":9831},{},[9813,9814,9830],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":9815,"children":9816,"position":9826},{},[9817],{"type":23,"value":9818,"position":9819},"Timeseries cannot be declared inside control structures (if/for/while)",{"start":9820,"end":9823},{"line":9821,"column":32,"offset":9822},566,18264,{"line":9821,"column":9824,"offset":9825},73,18334,{"start":9827,"end":9829},{"line":9821,"column":27,"offset":9828},18262,{"line":9821,"column":9824,"offset":9825},{"type":23,"value":89},{"start":9832,"end":9833},{"line":9821,"column":27,"offset":9828},{"line":9821,"column":9824,"offset":9825},{"type":23,"value":89},{"type":11,"children":9836},[9837],{"type":14,"tagName":207,"properties":9838,"children":9840,"data":-1},{"class":209,"style":210,"tabindex":211,"title":9839},"Timeseries in Custom Functions",[9841],{"type":14,"tagName":215,"properties":9842,"children":9843},{},[9844,9887,9888,9891,9892,9900,9901,9919,9920,9942,9943,9964,9965,9986,9987,9994,9995,9998,9999,10007,10008,10027,10028,10054,10055,10137,10138,10153,10154,10239,10240,10247,10248,10251,10252,10255,10256,10279,10280,10283,10284,10287,10288,10291,10292,10324,10325,10328,10329,10332,10333,10353,10354,10357,10358,10381,10382,10385,10386,10389,10390,10393,10394,10426,10427,10430,10431,10434,10435,10464,10465,10468,10469,10492,10493,10496,10497,10500,10501,10524,10525],{"type":14,"tagName":35,"properties":9845,"children":9846},{"class":220},[9847,9851,9855,9859,9863,9867,9871,9875,9879,9883],{"type":14,"tagName":35,"properties":9848,"children":9849},{"style":224},[9850],{"type":23,"value":1128},{"type":14,"tagName":35,"properties":9852,"children":9853},{"style":230},[9854],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9856,"children":9857},{"style":236},[9858],{"type":23,"value":1137},{"type":14,"tagName":35,"properties":9860,"children":9861},{"style":224},[9862],{"type":23,"value":258},{"type":14,"tagName":35,"properties":9864,"children":9865},{"style":261},[9866],{"type":23,"value":1146},{"type":14,"tagName":35,"properties":9868,"children":9869},{"style":224},[9870],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9872,"children":9873},{"style":261},[9874],{"type":23,"value":744},{"type":14,"tagName":35,"properties":9876,"children":9877},{"style":224},[9878],{"type":23,"value":749},{"type":14,"tagName":35,"properties":9880,"children":9881},{"style":261},[9882],{"type":23,"value":754},{"type":14,"tagName":35,"properties":9884,"children":9885},{"style":224},[9886],{"type":23,"value":759},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9889,"children":9890},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":9893,"children":9894},{"class":220},[9895],{"type":14,"tagName":35,"properties":9896,"children":9897},{"style":558},[9898],{"type":23,"value":9899},"// Custom function with timeseries parameter",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9902,"children":9903},{"class":220},[9904,9909,9914],{"type":14,"tagName":35,"properties":9905,"children":9906},{"style":224},[9907],{"type":23,"value":9908},"func ",{"type":14,"tagName":35,"properties":9910,"children":9911},{"style":236},[9912],{"type":23,"value":9913},"calculateRange",{"type":14,"tagName":35,"properties":9915,"children":9916},{"style":224},[9917],{"type":23,"value":9918},"(data) {",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9921,"children":9922},{"class":220},[9923,9928,9933,9937],{"type":14,"tagName":35,"properties":9924,"children":9925},{"style":230},[9926],{"type":23,"value":9927},"  var",{"type":14,"tagName":35,"properties":9929,"children":9930},{"style":224},[9931],{"type":23,"value":9932}," high ",{"type":14,"tagName":35,"properties":9934,"children":9935},{"style":230},[9936],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9938,"children":9939},{"style":224},[9940],{"type":23,"value":9941}," data.high",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9944,"children":9945},{"class":220},[9946,9950,9955,9959],{"type":14,"tagName":35,"properties":9947,"children":9948},{"style":230},[9949],{"type":23,"value":9927},{"type":14,"tagName":35,"properties":9951,"children":9952},{"style":224},[9953],{"type":23,"value":9954}," low ",{"type":14,"tagName":35,"properties":9956,"children":9957},{"style":230},[9958],{"type":23,"value":233},{"type":14,"tagName":35,"properties":9960,"children":9961},{"style":224},[9962],{"type":23,"value":9963}," data.low",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9966,"children":9967},{"class":220},[9968,9973,9977,9981],{"type":14,"tagName":35,"properties":9969,"children":9970},{"style":230},[9971],{"type":23,"value":9972},"  return",{"type":14,"tagName":35,"properties":9974,"children":9975},{"style":224},[9976],{"type":23,"value":9932},{"type":14,"tagName":35,"properties":9978,"children":9979},{"style":230},[9980],{"type":23,"value":384},{"type":14,"tagName":35,"properties":9982,"children":9983},{"style":224},[9984],{"type":23,"value":9985}," low",{"type":23,"value":89},{"type":14,"tagName":35,"properties":9988,"children":9989},{"class":220},[9990],{"type":14,"tagName":35,"properties":9991,"children":9992},{"style":224},[9993],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":9996,"children":9997},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10000,"children":10001},{"class":220},[10002],{"type":14,"tagName":35,"properties":10003,"children":10004},{"style":558},[10005],{"type":23,"value":10006},"// Use in control structure",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10009,"children":10010},{"class":220},[10011,10015,10019,10023],{"type":14,"tagName":35,"properties":10012,"children":10013},{"style":230},[10014],{"type":23,"value":936},{"type":14,"tagName":35,"properties":10016,"children":10017},{"style":224},[10018],{"type":23,"value":5743},{"type":14,"tagName":35,"properties":10020,"children":10021},{"style":230},[10022],{"type":23,"value":3514},{"type":14,"tagName":35,"properties":10024,"children":10025},{"style":224},[10026],{"type":23,"value":5752},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10029,"children":10030},{"class":220},[10031,10035,10040,10044,10049],{"type":14,"tagName":35,"properties":10032,"children":10033},{"style":230},[10034],{"type":23,"value":9927},{"type":14,"tagName":35,"properties":10036,"children":10037},{"style":224},[10038],{"type":23,"value":10039}," range ",{"type":14,"tagName":35,"properties":10041,"children":10042},{"style":230},[10043],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10045,"children":10046},{"style":236},[10047],{"type":23,"value":10048}," calculateRange",{"type":14,"tagName":35,"properties":10050,"children":10051},{"style":224},[10052],{"type":23,"value":10053},"(ohlcvData)",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10056,"children":10057},{"class":220},[10058,10062,10066,10070,10075,10079,10083,10087,10091,10095,10099,10103,10107,10111,10116,10120,10124,10128,10133],{"type":14,"tagName":35,"properties":10059,"children":10060},{"style":236},[10061],{"type":23,"value":3906},{"type":14,"tagName":35,"properties":10063,"children":10064},{"style":224},[10065],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":10067,"children":10068},{"style":230},[10069],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10071,"children":10072},{"style":224},[10073],{"type":23,"value":10074},"range, width",{"type":14,"tagName":35,"properties":10076,"children":10077},{"style":230},[10078],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10080,"children":10081},{"style":402},[10082],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":10084,"children":10085},{"style":224},[10086],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":10088,"children":10089},{"style":230},[10090],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10092,"children":10093},{"style":224},[10094],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10096,"children":10097},{"style":261},[10098],{"type":23,"value":3332},{"type":14,"tagName":35,"properties":10100,"children":10101},{"style":224},[10102],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":10104,"children":10105},{"style":230},[10106],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10108,"children":10109},{"style":224},[10110],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10112,"children":10113},{"style":261},[10114],{"type":23,"value":10115},"\"Range\"",{"type":14,"tagName":35,"properties":10117,"children":10118},{"style":224},[10119],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":10121,"children":10122},{"style":230},[10123],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10125,"children":10126},{"style":224},[10127],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10129,"children":10130},{"style":261},[10131],{"type":23,"value":10132},"\"Price Range\"",{"type":14,"tagName":35,"properties":10134,"children":10135},{"style":224},[10136],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10139,"children":10140},{"class":220},[10141,10145,10149],{"type":14,"tagName":35,"properties":10142,"children":10143},{"style":224},[10144],{"type":23,"value":2462},{"type":14,"tagName":35,"properties":10146,"children":10147},{"style":230},[10148],{"type":23,"value":2467},{"type":14,"tagName":35,"properties":10150,"children":10151},{"style":224},[10152],{"type":23,"value":2472},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10155,"children":10156},{"class":220},[10157,10161,10165,10169,10173,10177,10181,10185,10189,10193,10197,10201,10205,10209,10213,10218,10222,10226,10230,10235],{"type":14,"tagName":35,"properties":10158,"children":10159},{"style":236},[10160],{"type":23,"value":3906},{"type":14,"tagName":35,"properties":10162,"children":10163},{"style":224},[10164],{"type":23,"value":2049},{"type":14,"tagName":35,"properties":10166,"children":10167},{"style":230},[10168],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10170,"children":10171},{"style":402},[10172],{"type":23,"value":211},{"type":14,"tagName":35,"properties":10174,"children":10175},{"style":224},[10176],{"type":23,"value":3307},{"type":14,"tagName":35,"properties":10178,"children":10179},{"style":230},[10180],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10182,"children":10183},{"style":402},[10184],{"type":23,"value":2067},{"type":14,"tagName":35,"properties":10186,"children":10187},{"style":224},[10188],{"type":23,"value":2072},{"type":14,"tagName":35,"properties":10190,"children":10191},{"style":230},[10192],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10194,"children":10195},{"style":224},[10196],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10198,"children":10199},{"style":261},[10200],{"type":23,"value":3076},{"type":14,"tagName":35,"properties":10202,"children":10203},{"style":224},[10204],{"type":23,"value":2091},{"type":14,"tagName":35,"properties":10206,"children":10207},{"style":230},[10208],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10210,"children":10211},{"style":224},[10212],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10214,"children":10215},{"style":261},[10216],{"type":23,"value":10217},"\"Zero\"",{"type":14,"tagName":35,"properties":10219,"children":10220},{"style":224},[10221],{"type":23,"value":2109},{"type":14,"tagName":35,"properties":10223,"children":10224},{"style":230},[10225],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10227,"children":10228},{"style":224},[10229],{"type":23,"value":2081},{"type":14,"tagName":35,"properties":10231,"children":10232},{"style":261},[10233],{"type":23,"value":10234},"\"Zero Line\"",{"type":14,"tagName":35,"properties":10236,"children":10237},{"style":224},[10238],{"type":23,"value":584},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10241,"children":10242},{"class":220},[10243],{"type":14,"tagName":35,"properties":10244,"children":10245},{"style":224},[10246],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10249,"children":10250},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10253,"children":10254},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10257,"children":10258},{"class":220},[10259,10263,10267,10271,10275],{"type":14,"tagName":35,"properties":10260,"children":10261},{"style":224},[10262],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10264,"children":10265},{"style":230},[10266],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10268,"children":10269},{"style":224},[10270],{"type":23,"value":306},{"type":14,"tagName":35,"properties":10272,"children":10273},{"style":230},[10274],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10276,"children":10277},{"style":224},[10278],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10281,"children":10282},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10285,"children":10286},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10289,"children":10290},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10293,"children":10294},{"class":220},[10295,10299,10303,10307,10311,10316,10320],{"type":14,"tagName":35,"properties":10296,"children":10297},{"style":224},[10298],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10300,"children":10301},{"style":230},[10302],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10304,"children":10305},{"style":224},[10306],{"type":23,"value":344},{"type":14,"tagName":35,"properties":10308,"children":10309},{"style":230},[10310],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10312,"children":10313},{"style":261},[10314],{"type":23,"value":10315},"\"Does kScript support alerts?\"",{"type":14,"tagName":35,"properties":10317,"children":10318},{"style":230},[10319],{"type":23,"value":358},{"type":14,"tagName":35,"properties":10321,"children":10322},{"style":224},[10323],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10326,"children":10327},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10330,"children":10331},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10334,"children":10335},{"class":220},[10336,10340,10344,10348],{"type":14,"tagName":35,"properties":10337,"children":10338},{"style":230},[10339],{"type":23,"value":449},{"type":14,"tagName":35,"properties":10341,"children":10342},{"style":224},[10343],{"type":23,"value":895},{"type":14,"tagName":35,"properties":10345,"children":10346},{"style":230},[10347],{"type":23,"value":449},{"type":14,"tagName":35,"properties":10349,"children":10350},{"style":224},[10351],{"type":23,"value":10352},", kScript does not currently support alerts. Alert functionality is yet to be implemented for kScripts.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10355,"children":10356},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10359,"children":10360},{"class":220},[10361,10365,10369,10373,10377],{"type":14,"tagName":35,"properties":10362,"children":10363},{"style":224},[10364],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10366,"children":10367},{"style":230},[10368],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10370,"children":10371},{"style":224},[10372],{"type":23,"value":306},{"type":14,"tagName":35,"properties":10374,"children":10375},{"style":230},[10376],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10378,"children":10379},{"style":224},[10380],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10383,"children":10384},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10387,"children":10388},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10391,"children":10392},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10395,"children":10396},{"class":220},[10397,10401,10405,10409,10413,10418,10422],{"type":14,"tagName":35,"properties":10398,"children":10399},{"style":224},[10400],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10402,"children":10403},{"style":230},[10404],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10406,"children":10407},{"style":224},[10408],{"type":23,"value":344},{"type":14,"tagName":35,"properties":10410,"children":10411},{"style":230},[10412],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10414,"children":10415},{"style":261},[10416],{"type":23,"value":10417},"\"Can trades be executed from kScript?\"",{"type":14,"tagName":35,"properties":10419,"children":10420},{"style":230},[10421],{"type":23,"value":358},{"type":14,"tagName":35,"properties":10423,"children":10424},{"style":224},[10425],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10428,"children":10429},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10432,"children":10433},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10436,"children":10437},{"class":220},[10438,10442,10446,10450,10455,10459],{"type":14,"tagName":35,"properties":10439,"children":10440},{"style":230},[10441],{"type":23,"value":449},{"type":14,"tagName":35,"properties":10443,"children":10444},{"style":224},[10445],{"type":23,"value":895},{"type":14,"tagName":35,"properties":10447,"children":10448},{"style":230},[10449],{"type":23,"value":449},{"type":14,"tagName":35,"properties":10451,"children":10452},{"style":224},[10453],{"type":23,"value":10454},", kScript does not support trade execution. kScript is designed for analysis and visualization purposes only. You cannot place orders, execute trades, or interact ",{"type":14,"tagName":35,"properties":10456,"children":10457},{"style":230},[10458],{"type":23,"value":2225},{"type":14,"tagName":35,"properties":10460,"children":10461},{"style":224},[10462],{"type":23,"value":10463}," exchange APIs for trading directly from kScript.",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10466,"children":10467},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10470,"children":10471},{"class":220},[10472,10476,10480,10484,10488],{"type":14,"tagName":35,"properties":10473,"children":10474},{"style":224},[10475],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10477,"children":10478},{"style":230},[10479],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10481,"children":10482},{"style":224},[10483],{"type":23,"value":306},{"type":14,"tagName":35,"properties":10485,"children":10486},{"style":230},[10487],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10489,"children":10490},{"style":224},[10491],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10494,"children":10495},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10498,"children":10499},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10502,"children":10503},{"class":220},[10504,10508,10512,10516,10520],{"type":14,"tagName":35,"properties":10505,"children":10506},{"style":224},[10507],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10509,"children":10510},{"style":230},[10511],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10513,"children":10514},{"style":224},[10515],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":10517,"children":10518},{"style":230},[10519],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10521,"children":10522},{"style":224},[10523],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10526,"children":10527},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":10530,"children":10532,"position":10541},{"id":10531},"performance-and-optimization",[10533],{"type":23,"value":10534,"position":10535},"Performance and Optimization",{"start":10536,"end":10539},{"line":10537,"column":56,"offset":10538},611,19434,{"line":10537,"column":33,"offset":10540},19462,{"start":10542,"end":10544},{"line":10537,"column":27,"offset":10543},19431,{"line":10537,"column":33,"offset":10540},{"type":23,"value":89},{"type":14,"tagName":15,"properties":10547,"children":10548},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":10551,"children":10552},{},[],{"type":23,"value":89},{"type":14,"tagName":1686,"properties":10555,"children":10556,"position":10640},{},[10557,10558,10590,10591,10606,10607,10622,10623,10639],{"type":23,"value":89},{"type":14,"tagName":1691,"properties":10559,"children":10560,"position":10586},{},[10561,10568,10580],{"type":23,"value":6405,"position":10562},{"start":10563,"end":10566},{"line":10564,"column":32,"offset":10565},620,19563,{"line":10564,"column":82,"offset":10567},19567,{"type":14,"tagName":215,"properties":10569,"children":10570,"position":10577},{},[10571],{"type":23,"value":10572,"position":10573},"static",{"start":10574,"end":10575},{"line":10564,"column":82,"offset":10567},{"line":10564,"column":6721,"offset":10576},19575,{"start":10578,"end":10579},{"line":10564,"column":82,"offset":10567},{"line":10564,"column":6721,"offset":10576},{"type":23,"value":10581,"position":10582}," for constants",{"start":10583,"end":10584},{"line":10564,"column":6721,"offset":10576},{"line":10564,"column":29,"offset":10585},19589,{"start":10587,"end":10589},{"line":10564,"column":27,"offset":10588},19561,{"line":10564,"column":29,"offset":10585},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":10592,"children":10593,"position":10602},{},[10594],{"type":23,"value":10595,"position":10596},"Avoid redundant calculations",{"start":10597,"end":10600},{"line":10598,"column":32,"offset":10599},621,19592,{"line":10598,"column":4720,"offset":10601},19620,{"start":10603,"end":10605},{"line":10598,"column":27,"offset":10604},19590,{"line":10598,"column":4720,"offset":10601},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":10608,"children":10609,"position":10618},{},[10610],{"type":23,"value":10611,"position":10612},"Use built-in functions instead of custom implementations",{"start":10613,"end":10616},{"line":10614,"column":32,"offset":10615},622,19623,{"line":10614,"column":2711,"offset":10617},19679,{"start":10619,"end":10621},{"line":10614,"column":27,"offset":10620},19621,{"line":10614,"column":2711,"offset":10617},{"type":23,"value":89},{"type":14,"tagName":1691,"properties":10624,"children":10625,"position":10635},{},[10626],{"type":23,"value":10627,"position":10628},"Limit historical data lookback when possible",{"start":10629,"end":10632},{"line":10630,"column":32,"offset":10631},623,19682,{"line":10630,"column":10633,"offset":10634},47,19726,{"start":10636,"end":10638},{"line":10630,"column":27,"offset":10637},19680,{"line":10630,"column":10633,"offset":10634},{"type":23,"value":89},{"start":10641,"end":10642},{"line":10564,"column":27,"offset":10588},{"line":10630,"column":10633,"offset":10634},{"type":23,"value":89},{"type":11,"children":10645},[10646],{"type":14,"tagName":207,"properties":10647,"children":10649,"data":-1},{"class":209,"style":210,"tabindex":211,"title":10648},"Optimization",[10650],{"type":14,"tagName":215,"properties":10651,"children":10652},{},[10653,10661,10662,10679,10680,10683,10684,10692,10693,10723,10724,10727,10728,10731,10732,10755,10756,10759,10760,10763,10764,10787,10788],{"type":14,"tagName":35,"properties":10654,"children":10655},{"class":220},[10656],{"type":14,"tagName":35,"properties":10657,"children":10658},{"style":558},[10659],{"type":23,"value":10660},"// Good: Calculate once",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10663,"children":10664},{"class":220},[10665,10670,10674],{"type":14,"tagName":35,"properties":10666,"children":10667},{"style":224},[10668],{"type":23,"value":10669},"static fibonacci_level ",{"type":14,"tagName":35,"properties":10671,"children":10672},{"style":230},[10673],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10675,"children":10676},{"style":402},[10677],{"type":23,"value":10678}," 0.618",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10681,"children":10682},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10685,"children":10686},{"class":220},[10687],{"type":14,"tagName":35,"properties":10688,"children":10689},{"style":558},[10690],{"type":23,"value":10691},"// Avoid: Recalculating every bar",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10694,"children":10695},{"class":220},[10696,10700,10705,10709,10714,10719],{"type":14,"tagName":35,"properties":10697,"children":10698},{"style":230},[10699],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":10701,"children":10702},{"style":224},[10703],{"type":23,"value":10704}," fibonacci_level ",{"type":14,"tagName":35,"properties":10706,"children":10707},{"style":230},[10708],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10710,"children":10711},{"style":402},[10712],{"type":23,"value":10713}," 618",{"type":14,"tagName":35,"properties":10715,"children":10716},{"style":230},[10717],{"type":23,"value":10718}," /",{"type":14,"tagName":35,"properties":10720,"children":10721},{"style":402},[10722],{"type":23,"value":6013},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10725,"children":10726},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10729,"children":10730},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10733,"children":10734},{"class":220},[10735,10739,10743,10747,10751],{"type":14,"tagName":35,"properties":10736,"children":10737},{"style":224},[10738],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10740,"children":10741},{"style":230},[10742],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10744,"children":10745},{"style":224},[10746],{"type":23,"value":306},{"type":14,"tagName":35,"properties":10748,"children":10749},{"style":230},[10750],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10752,"children":10753},{"style":224},[10754],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10757,"children":10758},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10761,"children":10762},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10765,"children":10766},{"class":220},[10767,10771,10775,10779,10783],{"type":14,"tagName":35,"properties":10768,"children":10769},{"style":224},[10770],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10772,"children":10773},{"style":230},[10774],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10776,"children":10777},{"style":224},[10778],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":10780,"children":10781},{"style":230},[10782],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10784,"children":10785},{"style":224},[10786],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10789,"children":10790},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":10793,"children":10795,"position":10805},{"id":10794},"common-error-messages",[10796],{"type":23,"value":10797,"position":10798},"Common Error Messages",{"start":10799,"end":10802},{"line":10800,"column":56,"offset":10801},639,19944,{"line":10800,"column":10803,"offset":10804},25,19965,{"start":10806,"end":10808},{"line":10800,"column":27,"offset":10807},19941,{"line":10800,"column":10803,"offset":10804},{"type":23,"value":89},{"type":14,"tagName":15,"properties":10811,"children":10812},{},[],{"type":23,"value":89},{"type":14,"tagName":15,"properties":10815,"children":10816},{},[],{"type":23,"value":89},{"type":14,"tagName":129,"properties":10819,"children":10820,"position":10830},{},[10821],{"type":23,"value":10822,"position":10823},"You're passing a regular variable to a function that expects timeseries data:",{"start":10824,"end":10827},{"line":10825,"column":27,"offset":10826},648,20058,{"line":10825,"column":10828,"offset":10829},78,20135,{"start":10831,"end":10832},{"line":10825,"column":27,"offset":10826},{"line":10825,"column":10828,"offset":10829},{"type":23,"value":89},{"type":11,"children":10835},[10836],{"type":14,"tagName":207,"properties":10837,"children":10839,"data":-1},{"class":209,"style":210,"tabindex":211,"title":10838},"Source Timeseries Error",[10840],{"type":14,"tagName":215,"properties":10841,"children":10842},{},[10843,10864,10865,10904,10905,10908,10909,10929,10930,10967,10968,10971,10972,10975,10976,10999,11000,11003,11004,11007,11008,11031,11032],{"type":14,"tagName":35,"properties":10844,"children":10845},{"class":220},[10846,10850,10855,10859],{"type":14,"tagName":35,"properties":10847,"children":10848},{"style":230},[10849],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":10851,"children":10852},{"style":224},[10853],{"type":23,"value":10854}," number ",{"type":14,"tagName":35,"properties":10856,"children":10857},{"style":230},[10858],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10860,"children":10861},{"style":402},[10862],{"type":23,"value":10863}," 42",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10866,"children":10867},{"class":220},[10868,10872,10877,10881,10886,10891,10895,10899],{"type":14,"tagName":35,"properties":10869,"children":10870},{"style":230},[10871],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":10873,"children":10874},{"style":224},[10875],{"type":23,"value":10876}," sma_val ",{"type":14,"tagName":35,"properties":10878,"children":10879},{"style":230},[10880],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10882,"children":10883},{"style":236},[10884],{"type":23,"value":10885}," sma",{"type":14,"tagName":35,"properties":10887,"children":10888},{"style":224},[10889],{"type":23,"value":10890},"(number, ",{"type":14,"tagName":35,"properties":10892,"children":10893},{"style":402},[10894],{"type":23,"value":8793},{"type":14,"tagName":35,"properties":10896,"children":10897},{"style":224},[10898],{"type":23,"value":1526},{"type":14,"tagName":35,"properties":10900,"children":10901},{"style":558},[10902],{"type":23,"value":10903},"// Wrong: number is not timeseries",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10906,"children":10907},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10910,"children":10911},{"class":220},[10912,10917,10921,10925],{"type":14,"tagName":35,"properties":10913,"children":10914},{"style":224},[10915],{"type":23,"value":10916},"timeseries prices ",{"type":14,"tagName":35,"properties":10918,"children":10919},{"style":230},[10920],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10922,"children":10923},{"style":236},[10924],{"type":23,"value":239},{"type":14,"tagName":35,"properties":10926,"children":10927},{"style":224},[10928],{"type":23,"value":244},{"type":23,"value":89},{"type":14,"tagName":35,"properties":10931,"children":10932},{"class":220},[10933,10937,10941,10945,10949,10954,10958,10962],{"type":14,"tagName":35,"properties":10934,"children":10935},{"style":230},[10936],{"type":23,"value":1036},{"type":14,"tagName":35,"properties":10938,"children":10939},{"style":224},[10940],{"type":23,"value":10876},{"type":14,"tagName":35,"properties":10942,"children":10943},{"style":230},[10944],{"type":23,"value":233},{"type":14,"tagName":35,"properties":10946,"children":10947},{"style":236},[10948],{"type":23,"value":10885},{"type":14,"tagName":35,"properties":10950,"children":10951},{"style":224},[10952],{"type":23,"value":10953},"(prices.close, ",{"type":14,"tagName":35,"properties":10955,"children":10956},{"style":402},[10957],{"type":23,"value":8793},{"type":14,"tagName":35,"properties":10959,"children":10960},{"style":224},[10961],{"type":23,"value":1526},{"type":14,"tagName":35,"properties":10963,"children":10964},{"style":558},[10965],{"type":23,"value":10966},"// Correct",{"type":23,"value":89},{"type":14,"tagName":35,"properties":10969,"children":10970},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10973,"children":10974},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":10977,"children":10978},{"class":220},[10979,10983,10987,10991,10995],{"type":14,"tagName":35,"properties":10980,"children":10981},{"style":224},[10982],{"type":23,"value":296},{"type":14,"tagName":35,"properties":10984,"children":10985},{"style":230},[10986],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10988,"children":10989},{"style":224},[10990],{"type":23,"value":306},{"type":14,"tagName":35,"properties":10992,"children":10993},{"style":230},[10994],{"type":23,"value":301},{"type":14,"tagName":35,"properties":10996,"children":10997},{"style":224},[10998],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":11001,"children":11002},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":11005,"children":11006},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":35,"properties":11009,"children":11010},{"class":220},[11011,11015,11019,11023,11027],{"type":14,"tagName":35,"properties":11012,"children":11013},{"style":224},[11014],{"type":23,"value":296},{"type":14,"tagName":35,"properties":11016,"children":11017},{"style":230},[11018],{"type":23,"value":301},{"type":14,"tagName":35,"properties":11020,"children":11021},{"style":224},[11022],{"type":23,"value":2641},{"type":14,"tagName":35,"properties":11024,"children":11025},{"style":230},[11026],{"type":23,"value":301},{"type":14,"tagName":35,"properties":11028,"children":11029},{"style":224},[11030],{"type":23,"value":315},{"type":23,"value":89},{"type":14,"tagName":35,"properties":11033,"children":11034},{"class":220},[],{"type":23,"value":89},{"type":14,"tagName":102,"properties":11037,"children":11039,"position":11048},{"id":11038},"still-have-questions",[11040],{"type":23,"value":11041,"position":11042},"Still Have Questions?",{"start":11043,"end":11046},{"line":11044,"column":56,"offset":11045},664,20430,{"line":11044,"column":10803,"offset":11047},20451,{"start":11049,"end":11051},{"line":11044,"column":27,"offset":11050},20427,{"line":11044,"column":10803,"offset":11047},{"type":23,"value":89},{"type":14,"tagName":129,"properties":11054,"children":11055,"position":11064},{},[11056],{"type":23,"value":11057,"position":11058},"Can't find what you're looking for? We're here to help!",{"start":11059,"end":11062},{"line":11060,"column":27,"offset":11061},666,20453,{"line":11060,"column":4608,"offset":11063},20508,{"start":11065,"end":11066},{"line":11060,"column":27,"offset":11061},{"line":11060,"column":4608,"offset":11063},{"type":23,"value":89},{"type":14,"tagName":129,"properties":11069,"children":11070,"position":11135},{},[11071,11079,11103,11110,11128],{"type":23,"value":11072,"position":11073},"Join the discussion in ",{"start":11074,"end":11077},{"line":11075,"column":27,"offset":11076},668,20510,{"line":11075,"column":2666,"offset":11078},20533,{"type":14,"tagName":7262,"properties":11080,"children":11082,"position":11099},{"href":11081},"https://discord.gg/hjQRzQtbNu",[11083],{"type":14,"tagName":2760,"properties":11084,"children":11085,"position":11093},{},[11086],{"type":23,"value":11087,"position":11088},"#kscript-floor",{"start":11089,"end":11091},{"line":11075,"column":2745,"offset":11090},20536,{"line":11075,"column":6213,"offset":11092},20550,{"start":11094,"end":11096},{"line":11075,"column":10803,"offset":11095},20534,{"line":11075,"column":11097,"offset":11098},43,20552,{"start":11100,"end":11101},{"line":11075,"column":2666,"offset":11078},{"line":11075,"column":7249,"offset":11102},20584,{"type":23,"value":11104,"position":11105}," or check out the ",{"start":11106,"end":11107},{"line":11075,"column":7249,"offset":11102},{"line":11075,"column":11108,"offset":11109},93,20602,{"type":14,"tagName":7262,"properties":11111,"children":11113,"position":11123},{"href":11112},"/kscript/reference/quick-reference",[11114],{"type":23,"value":11115,"position":11116},"kScript Reference",{"start":11117,"end":11120},{"line":11075,"column":11118,"offset":11119},94,20603,{"line":11075,"column":11121,"offset":11122},111,20620,{"start":11124,"end":11125},{"line":11075,"column":11108,"offset":11109},{"line":11075,"column":11126,"offset":11127},148,20657,{"type":23,"value":11129,"position":11130}," for more details.",{"start":11131,"end":11132},{"line":11075,"column":11126,"offset":11127},{"line":11075,"column":11133,"offset":11134},166,20675,{"start":11136,"end":11137},{"line":11075,"column":27,"offset":11076},{"line":11075,"column":11133,"offset":11134},{"quirksMode":11139},false,{"start":11141,"end":11142},{"line":27,"column":27,"offset":97},{"line":11143,"column":27,"offset":11144},669,20676,1784888060063]