{
  "name": "Spectral indicator store",
  "url": "https://spectral.trade/indicators/",
  "format": "https://spectral.trade/docs/custom-indicators.llm.md",
  "license": {
    "spdx": "MIT-0",
    "url": "https://spectral.trade/docs/custom-indicators/LICENSE.txt",
    "summary": "Every indicator file is free to use, copy, modify and share without attribution."
  },
  "schemaVersion": 3,
  "minAppVersion": "1.5.0",
  "minAppVersionBySchemaVersion": {
    "1": "1.3.0",
    "2": "1.3.0",
    "3": "1.5.0"
  },
  "indicators": [
    {
      "id": "accumulation-distribution",
      "name": "Accumulation/Distribution",
      "shortName": "A/D",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Running total of volume weighted by where each bar closes inside its range: rising on accumulation, falling on distribution.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "accumulation distribution",
        "a/d line",
        "adl",
        "chaikin",
        "money flow",
        "divergence"
      ],
      "builtIn": "accumulation-distribution",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showSignal",
          "type": "boolean",
          "label": "Signal line",
          "default": false,
          "description": "Draw a simple moving average of the A/D line as a signal line."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Number of bars in the signal line average. Only used when the signal line is on."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "adl",
            "label": "A/D",
            "color": "#C98B7A",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#8AA9C3"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "signal-20",
          "name": "A/D with signal (20)",
          "shortName": "A/D S20",
          "inputs": {
            "showSignal": true,
            "signalLength": 20
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Accumulation/Distribution line, by Marc Chaikin, adds up a share of each bar's volume depending on where the bar closes inside its own range. The money flow multiplier is ((close - low) - (high - close)) / (high - low): +1 when the bar closes on its high, -1 when it closes on its low, 0 in the middle. Multiplied by the volume it is added to the running total, which starts on the first loaded bar.\n\nUnlike On Balance Volume, which uses the whole volume of a bar by the direction of the close versus the previous close, this line weighs volume by the position of the close inside the bar.",
        "howToRead": "A rising line shows accumulation: bars tend to close in the upper part of their range on volume. A falling line shows distribution. Look for agreement with price: a rising price with a rising line is confirmed, and a price that makes new highs while the line does not is a bearish divergence; the reverse at lows is a bullish divergence.\n\nThe absolute value has no meaning, only the slope and the divergences do. A gap between bars is ignored, because the multiplier only looks at the close inside the bar's own range, so strong gap moves can be underweighted.",
        "settings": "Signal line switches an optional simple moving average of the A/D line on; Signal length sets its window (20 by default, first value after that many bars). The A/D line itself has no setting and has a value from the first bar.\n\nThe line is cumulative, so its level depends on how much history is loaded; scrolling back shifts it up or down without changing its shape. It works on every bar size, but on very small bar sizes many bars have a high equal to the low, which contribute nothing.",
        "notes": "This is the standard Chaikin Accumulation/Distribution line and uses the same formula as TradingView: a bar whose high equals its low adds nothing. TradingView draws the same shape; only a constant offset can differ when the loaded history starts at another bar. The optional signal line is not part of the original definition and is off by default."
      },
      "sourcePath": "/indicators/accumulation-distribution.js",
      "sha256": "038744a2f7090b0dfa734ee0da60837abc24b4500b0cb16991ec06a1e00e0909",
      "bytes": 4105,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/accumulation-distribution/",
      "sourceUrl": "https://spectral.trade/indicators/accumulation-distribution.js"
    },
    {
      "id": "adx-dmi",
      "name": "ADX & DMI",
      "shortName": "ADX",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Wilder's Directional Movement Index: ADX for trend strength and +DI and -DI for its direction.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "adx",
        "dmi",
        "directional movement",
        "+di -di",
        "trend strength",
        "wilder"
      ],
      "builtIn": "adx-dmi",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "diLength",
          "type": "integer",
          "label": "DI length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the Wilder smoothing of the directional movement and the true range behind +DI and -DI."
        },
        {
          "key": "adxSmoothing",
          "type": "integer",
          "label": "ADX smoothing",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the Wilder smoothing that turns the directional index (DX) into the ADX."
        },
        {
          "key": "trendLevel",
          "type": "number",
          "label": "Trend threshold",
          "default": 25,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Reference line for a trending market; an ADX above it is usually read as a trend. 20 and 25 are common."
        },
        {
          "key": "showDi",
          "type": "boolean",
          "label": "Show +DI and -DI",
          "default": true,
          "description": "Draw the two directional lines; switch off to show only the ADX."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "adx",
            "label": "ADX",
            "color": "#E3B341",
            "lineWidth": 2,
            "primary": true
          },
          {
            "key": "plusDi",
            "label": "+DI",
            "color": "#3FB950",
            "lineWidth": 1.5
          },
          {
            "key": "minusDi",
            "label": "-DI",
            "color": "#E5534B",
            "lineWidth": 1.5
          }
        ],
        "levels": [
          {
            "key": "trend",
            "label": "Trend threshold",
            "color": "#788493",
            "lineStyle": "dotted",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fast",
          "name": "ADX & DMI (7)",
          "shortName": "ADX 7",
          "inputs": {
            "diLength": 7,
            "adxSmoothing": 7
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Directional Movement Index by J. Welles Wilder compares how far each bar extends above the previous high (plus directional movement) with how far it extends below the previous low (minus directional movement). Smoothed and divided by the smoothed true range, they give +DI and -DI, the share of the recent range made by upward and by downward moves.\n\nThe ADX (Average Directional Index) is the Wilder average of the gap between the two lines relative to their sum, on a scale of 0 to 100. It measures how strongly the market trends, not in which direction.",
        "howToRead": "+DI above -DI means upward moves dominate; -DI above +DI means downward moves dominate, and a cross of the two is the classic direction signal. The ADX tells you whether that direction is worth acting on: above the threshold (often 20 to 25) the market trends, below it the market drifts sideways and crossovers are unreliable.\n\nA rising ADX shows a strengthening trend in either direction; a falling ADX from a high level shows the trend losing force, even while price still moves its way. A very high ADX often comes late in a move.",
        "settings": "DI length (14) and ADX smoothing (14) are Wilder's defaults; shorter values react sooner and are noisier. +DI and -DI start on bar DI length + 1 and the ADX on bar DI length + ADX smoothing (bar 28 with the defaults), and both settle over the next few dozen bars because Wilder smoothing has a long memory. Trend threshold only moves the reference line.",
        "notes": "Matches TradingView's built-in DMI and Wilder's definition: directional movement counts only the larger of the up and down move, both lines and the true range use Wilder smoothing seeded with a simple average, and the ADX smooths the directional index the same way."
      },
      "sourcePath": "/indicators/adx-dmi.js",
      "sha256": "833f5a0fdda5b18c869af5ef87c75534be4bc5492fa57ce7310e7ab229462d31",
      "bytes": 5603,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/adx-dmi/",
      "sourceUrl": "https://spectral.trade/indicators/adx-dmi.js"
    },
    {
      "id": "alma",
      "name": "Arnaud Legoux Moving Average",
      "shortName": "ALMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Arnaud Legoux and Dimitris Kouzis-Loukas' moving average: a Gaussian-weighted window tilted toward recent bars, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "window",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "alma",
        "arnaud legoux",
        "gaussian",
        "moving average",
        "trend"
      ],
      "builtIn": "alma",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "window",
          "type": "integer",
          "label": "Window",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the weighted window. Longer windows are smoother and react later."
        },
        {
          "key": "offset",
          "type": "number",
          "label": "Offset",
          "default": 0.85,
          "min": 0,
          "max": 1,
          "step": 0.01,
          "description": "Where in the window the weights peak: 0 at the oldest bar, 1 at the newest. Higher values react faster; lower values are smoother."
        },
        {
          "key": "sigma",
          "type": "number",
          "label": "Sigma",
          "default": 6,
          "min": 0.5,
          "max": 100,
          "step": 0.5,
          "description": "Sharpness of the weight curve. Higher values concentrate the weight around the offset; lower values spread it over the window."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "alma",
            "label": "ALMA",
            "color": "#6FB3C8",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "alma-21",
          "name": "ALMA 21",
          "shortName": "ALMA 21",
          "inputs": {
            "window": 21
          }
        },
        {
          "id": "alma-50",
          "name": "ALMA 50",
          "shortName": "ALMA 50",
          "inputs": {
            "window": 50
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Arnaud Legoux Moving Average (2009) weights the prices in its window with a bell curve instead of equally or in a straight line. The curve's peak sits at Offset along the window (0.85 means close to the newest bar), and Sigma sets how narrow the bell is.\n\nPlacing the peak near the recent end keeps the line responsive, while the smooth fall-off of the weights on both sides filters out much of the bar-to-bar noise, a balance between the lag of an SMA and the jitter of a short EMA.",
        "howToRead": "Read it like other moving averages: its slope gives the direction, and price holding above a rising ALMA (or below a falling one) describes a move with follow-through. With the default settings it reacts about as fast as a short EMA but draws a noticeably smoother line, so turns in the ALMA are less often false starts.\n\nComparing a short and a long ALMA, or price with one ALMA, gives the usual crossover view of trend changes.",
        "settings": "Window 9, Offset 0.85 and Sigma 6 are the published defaults and the ones most platforms use; the presets widen the window to 21 and 50. Move Offset toward 1 for a faster line or toward 0.5 for a smoother, centred one. Raising Sigma narrows the bell around the offset and makes the line follow fewer bars more closely.\n\nThe first value appears after Window bars.",
        "notes": "Same weights as TradingView's ALMA: the peak sits at Offset x (Window - 1) bars from the oldest bar, with a spread of Window / Sigma bars, and the weights are normalised to sum to one. TradingView's optional floor of the peak position is not applied, as in its default."
      },
      "sourcePath": "/indicators/alma.js",
      "sha256": "15aa193287e7ecce9523707b10837f127be5888ab7707817f34b42dd427a10ef",
      "bytes": 4115,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/alma/",
      "sourceUrl": "https://spectral.trade/indicators/alma.js"
    },
    {
      "id": "anchored-vwap",
      "name": "Anchored VWAP",
      "shortName": "AVWAP",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Volume-weighted average price counted from a chosen start time, with optional volume-weighted standard deviation bands.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "anchored vwap",
        "vwap",
        "volume weighted",
        "anchor",
        "standard deviation bands"
      ],
      "builtIn": "anchored-vwap",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "anchorTime",
          "type": "time",
          "label": "Anchor time",
          "default": 0,
          "description": "The moment the VWAP starts, as a New York date and time. Not set: the VWAP starts at the first bar of the latest trading date on the chart."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "hlc3",
          "description": "Price weighted by volume. hlc3 is the average of high, low and close."
        },
        {
          "key": "showBand1",
          "type": "boolean",
          "label": "Band 1",
          "default": true,
          "description": "Draw the first pair of bands."
        },
        {
          "key": "mult1",
          "type": "number",
          "label": "Band 1 multiplier",
          "default": 1,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the first bands from VWAP, in standard deviations."
        },
        {
          "key": "showBand2",
          "type": "boolean",
          "label": "Band 2",
          "default": false,
          "description": "Draw the second pair of bands."
        },
        {
          "key": "mult2",
          "type": "number",
          "label": "Band 2 multiplier",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the second bands from VWAP, in standard deviations."
        },
        {
          "key": "showBand3",
          "type": "boolean",
          "label": "Band 3",
          "default": false,
          "description": "Draw the third pair of bands."
        },
        {
          "key": "mult3",
          "type": "number",
          "label": "Band 3 multiplier",
          "default": 3,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the third bands from VWAP, in standard deviations."
        },
        {
          "key": "showZones",
          "type": "boolean",
          "label": "Shaded zones",
          "default": true,
          "description": "Fill the area between each pair of enabled bands with a light color."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "vwap",
            "label": "AVWAP",
            "color": "#A895D0",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "upper1",
            "label": "Upper band 1",
            "color": "#A895D0"
          },
          {
            "key": "lower1",
            "label": "Lower band 1",
            "color": "#A895D0"
          },
          {
            "key": "upper2",
            "label": "Upper band 2",
            "color": "#A895D0",
            "lineStyle": "dashed"
          },
          {
            "key": "lower2",
            "label": "Lower band 2",
            "color": "#A895D0",
            "lineStyle": "dashed"
          },
          {
            "key": "upper3",
            "label": "Upper band 3",
            "color": "#A895D0",
            "lineStyle": "dotted"
          },
          {
            "key": "lower3",
            "label": "Lower band 3",
            "color": "#A895D0",
            "lineStyle": "dotted"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "zone1",
            "label": "Zone 1",
            "color": "#A895D0",
            "opacity": 0.07
          },
          {
            "key": "zone2",
            "label": "Zone 2",
            "color": "#A895D0",
            "opacity": 0.05
          },
          {
            "key": "zone3",
            "label": "Zone 3",
            "color": "#A895D0",
            "opacity": 0.03
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "vwap-only",
          "name": "Anchored VWAP (no bands)",
          "shortName": "AVWAP",
          "inputs": {
            "showBand1": false,
            "showBand2": false,
            "showBand3": false
          }
        },
        {
          "id": "bands-1-2-3",
          "name": "Anchored VWAP (bands 1, 2, 3)",
          "shortName": "AVWAP 1-2-3",
          "inputs": {
            "showBand1": true,
            "showBand2": true,
            "showBand3": true
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Anchored VWAP is the volume-weighted average price counted from a bar you choose, instead of from the start of the session. Every price from the anchor onward is weighted by its volume, so the line shows the average price paid by everyone who traded since that moment.\n\nTraders anchor it to events that matter: a swing high or low, an earnings release, a gap, a breakout or the start of a trend. Optional bands at a chosen number of volume-weighted standard deviations show how far price has stretched from that average.",
        "howToRead": "The line is the average cost of all volume since the anchor. Price above it means that, on average, participants who entered at the anchor are in profit; below it, in loss. Price often returns to an anchored VWAP and reacts there, acting as dynamic support after an upward anchor and as resistance after a downward one.\n\nThe bands mark stretched conditions around that average, narrow at first and wider as more volume accumulates. A line anchored too close to the present is noisy because few bars have contributed yet. It tells you the average price, not why price moved.",
        "settings": "Anchor time sets the start as a New York date and time; the bar that contains that moment is the first bar of the calculation. Values before the anchor are empty. An anchor earlier than the first loaded bar starts at the first loaded bar (scroll back to load more history if you want the true start). An anchor after the last bar draws nothing yet. When Anchor time is not set, the VWAP starts at the first bar of the latest New York trading date on the chart, which gives a VWAP for today. It counts all bars of that date, so on an extended-hours chart it includes pre-market and starts at 04:00; set an Anchor time at 09:30 to start at the open.\n\nSource is the weighted price (hlc3 by default). Band 1, 2 and 3 switch each pair on or off (only band 1 by default) and the multipliers set their distance in standard deviations (1, 2 and 3). Shaded zones fills between each enabled pair.",
        "notes": "The calculation is the standard anchored VWAP: the cumulative sum of price times volume divided by the cumulative volume from the anchor bar, with bands at multiples of the volume-weighted standard deviation, as in TradingView's Anchored VWAP. TradingView lets you click the anchor on the chart; here it is a setting. Bars with no volume do not move the line. The line has no value until the first bar with volume at or after the anchor. The first bar after an anchor is exactly the source price, so the bands start at zero width."
      },
      "sourcePath": "/indicators/anchored-vwap.js",
      "sha256": "7c05fac51b8ce5ff44f138ded3288772c31ba8d3e1c963576475afce2ba51622",
      "bytes": 9600,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/anchored-vwap/",
      "sourceUrl": "https://spectral.trade/indicators/anchored-vwap.js"
    },
    {
      "id": "aroon",
      "name": "Aroon",
      "shortName": "Aroon",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Aroon Up and Aroon Down: how recently price made its highest high and its lowest low, from 0 to 100.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "aroon",
        "aroon up",
        "aroon down",
        "trend age",
        "chande",
        "new highs"
      ],
      "builtIn": "aroon",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Number of bars looked back for the highest high and the lowest low (the window includes the current bar plus Length bars)."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "up",
            "label": "Aroon Up",
            "color": "#3FB950",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "down",
            "label": "Aroon Down",
            "color": "#E5534B",
            "lineWidth": 1.5
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "70",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "30",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "classic",
          "name": "Aroon (25)",
          "shortName": "Aroon 25",
          "inputs": {
            "length": 25
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Aroon by Tushar Chande measures time, not price: Aroon Up is 100 when the current bar makes the highest high of the window and falls to 0 as that high ages; Aroon Down does the same for the lowest low. Each is 100 times (Length minus the bars since the extreme) divided by Length.",
        "howToRead": "Aroon Up near 100 with Aroon Down near 0 shows a fresh uptrend: new highs keep coming and no new lows. The reverse shows a downtrend. A cross of the two lines marks a possible change of trend, and both lines low (below 30) show a market without new extremes, often a range.\n\nThe 70 and 30 lines are common guides; a line staying above 70 marks a persistent trend in its direction.",
        "settings": "Length 14 is TradingView's default; Chande's original 25 is available as a preset. Values appear once Length plus one bars are loaded. A longer length gives slower, steadier lines.",
        "notes": "Like TradingView's Aroon, the window holds Length plus one bars, so a high made exactly Length bars ago still counts and gives 0. When the window holds the same high or low twice, the most recent one counts."
      },
      "sourcePath": "/indicators/aroon.js",
      "sha256": "ae0934b4d5fa9ec79a3338b2631f84843d79f1e89ca2a15b746888662abd9250",
      "bytes": 3535,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/aroon/",
      "sourceUrl": "https://spectral.trade/indicators/aroon.js"
    },
    {
      "id": "atr",
      "name": "Average True Range",
      "shortName": "ATR",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Average True Range: the average size of a bar including gaps, in price units, with Wilder smoothing by default.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "atr",
        "average true range",
        "true range",
        "wilder",
        "volatility",
        "stop loss",
        "position sizing"
      ],
      "builtIn": "atr",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars averaged. 14 is Wilder's original setting."
        },
        {
          "key": "smoothing",
          "type": "select",
          "label": "Smoothing",
          "default": "RMA",
          "options": [
            "RMA",
            "SMA",
            "EMA",
            "WMA"
          ],
          "description": "How the true ranges are averaged. RMA is Wilder's smoothing, the standard; SMA, EMA and WMA are simple, exponential and weighted averages."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "atr",
            "label": "ATR",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "atr-10",
          "name": "Average True Range (10)",
          "shortName": "ATR 10",
          "inputs": {
            "length": 10
          }
        },
        {
          "id": "atr-20-sma",
          "name": "Average True Range (20, SMA)",
          "shortName": "ATR 20 SMA",
          "inputs": {
            "length": 20,
            "smoothing": "SMA"
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Average True Range (ATR), introduced by J. Welles Wilder, measures how much a market moves per bar. The true range of a bar is the largest of: its high minus its low, the distance from the previous close up to the high, and the distance from the previous close down to the low, so overnight gaps count as movement. ATR is the average of the true ranges over the last Length bars.\n\nATR is in price units: an ATR of 1.20 on a stock means a typical bar covers about 1.20 dollars.",
        "howToRead": "Rising ATR means bars are getting larger and the market more volatile; falling ATR means it is calming down. ATR says nothing about direction: a sharp sell-off and a strong rally both raise it.\n\nTraders use it to size stops and targets (for example a stop 1.5 or 2 ATR from entry), to size positions so each trade risks a similar amount of volatility, and to judge whether a move is large for this market. Because it is in price units, compare ATR across symbols as a percentage of price, not as a raw number.",
        "settings": "Length sets how many bars are averaged; 14 is the standard, shorter values react faster to a change in volatility. Smoothing chooses the average: RMA (Wilder's smoothing) is the classic definition; SMA weighs every bar in the window equally; EMA and WMA react faster than RMA.\n\nThe first value appears after Length bars. The first bar of the chart has no previous close, so its true range is its high minus its low.",
        "notes": "With RMA smoothing this is Wilder's ATR and matches TradingView's Average True Range and Spectral's ATR used by other indicators. Wilder's smoothing starts with the simple average of the first Length true ranges; the exponential average starts at the first true range and is shown from bar Length onwards, so very early EMA values can differ slightly from platforms that start it with a simple average."
      },
      "sourcePath": "/indicators/atr.js",
      "sha256": "c45926241d265165fad8331cc654b52a68fc75637f19c63e149578154eb24148",
      "bytes": 3723,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/atr/",
      "sourceUrl": "https://spectral.trade/indicators/atr.js"
    },
    {
      "id": "auto-fib-retracement",
      "name": "Auto Fib Retracement",
      "shortName": "Auto Fib",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Fibonacci retracement levels of the latest confirmed swing, with a swing size that scales with volatility, and optional extensions beyond the swing.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "fibonacci",
        "retracement",
        "extensions",
        "swing",
        "support resistance",
        "auto fib"
      ],
      "builtIn": "auto-fib-retracement",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "deviation",
          "type": "number",
          "label": "Deviation (x ATR)",
          "default": 3,
          "min": 0,
          "max": 50,
          "step": 0.1,
          "description": "The smallest move that counts as a new swing, in multiples of the 10-bar average true range (as a percent of price), as in TradingView's Auto Fib."
        },
        {
          "key": "depth",
          "type": "integer",
          "label": "Depth",
          "default": 10,
          "min": 2,
          "max": 100,
          "description": "Bars a swing high or low must stand out against: half of them, but at least 2, on each side, as in Zig Zag."
        },
        {
          "key": "showExtensions",
          "type": "boolean",
          "label": "Extensions",
          "default": false,
          "description": "Also draw the 127.2, 161.8 and 261.8 percent extensions of the swing, beyond its end."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "level0",
            "label": "0",
            "color": "#8B949E",
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "level236",
            "label": "0.236",
            "color": "#F85149",
            "showValue": true
          },
          {
            "key": "level382",
            "label": "0.382",
            "color": "#E3B341",
            "showValue": true
          },
          {
            "key": "level500",
            "label": "0.5",
            "color": "#3FB950",
            "showValue": true
          },
          {
            "key": "level618",
            "label": "0.618",
            "color": "#2DA44E",
            "lineWidth": 1.5,
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "level786",
            "label": "0.786",
            "color": "#58A6FF",
            "showValue": true
          },
          {
            "key": "level1",
            "label": "1",
            "color": "#8B949E",
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "ext1272",
            "label": "1.272 ext",
            "color": "#BC8CFF",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "ext1618",
            "label": "1.618 ext",
            "color": "#BC8CFF",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "ext2618",
            "label": "2.618 ext",
            "color": "#BC8CFF",
            "lineStyle": "dotted",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "sensitive",
          "name": "Auto Fib Retracement (sensitive)",
          "shortName": "Auto Fib 2x",
          "inputs": {
            "deviation": 2
          }
        },
        {
          "id": "extensions",
          "name": "Auto Fib Retracement (with extensions)",
          "shortName": "Auto Fib ext",
          "inputs": {
            "showExtensions": true
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Auto Fib Retracement finds the latest swing on the chart and draws the Fibonacci retracement levels of it, so you do not have to place the drawing by hand. The swings are found with the Zig Zag swing rule: highs and lows that stand out against the bars around them, alternating, with a minimum move between them. That minimum is the deviation times the 10-bar average true range as a percent of price, so it adapts to the bar size and the market's volatility. The latest swing runs from the second-to-last swing point (its start, level 1) to the last one (its end, level 0).\n\nThe levels sit at 0, 23.6, 38.2, 50, 61.8, 78.6 and 100 percent of the swing, measured back from its end, and start at the bar where the swing began. Extensions add 127.2, 161.8 and 261.8 percent of the swing measured from its start, beyond its end.",
        "howToRead": "After a swing up, the levels are where a pullback may find support: 38.2 percent is a shallow pullback in a strong trend, 50 to 61.8 percent the classic zone, 78.6 percent a deep one, and a move back through level 1 undoes the whole swing. After a swing down they are resistance for a bounce. The extensions are common targets if price leaves the swing beyond its end.\n\nThe levels are references for reaction, not signals; they work best where they line up with other levels. The swing end is confirmed only half the depth bars after it printed and moves while price keeps extending in its direction, so the levels redraw until the next swing in the other direction is confirmed.",
        "settings": "Deviation sets the smallest swing in multiples of the 10-bar average true range; the default of 3 follows TradingView and works on any bar size; a smaller value (the sensitive preset uses 2) measures smaller, more recent swings, a larger one bigger swings. Depth sets how many bars a swing must stand out against, as in Zig Zag; a larger depth picks bigger, slower swings. Extensions switches the three extension levels.\n\nNothing is drawn until the chart holds two confirmed swing points. Swings are confirmed when a bar closes, so the levels never change while a bar is forming.",
        "notes": "Swings follow TradingView's Auto Fib Retracement: the Zig Zag swing rule with a deviation of a multiple of the 10-bar average true range as a percent of the close, read at the bar that confirms the swing. TradingView places its 1.618 and higher levels beyond the swing start; this indicator places the extensions beyond the swing end, where traders look for targets. Zig Zag uses a fixed percent instead, so the two can pick different swings."
      },
      "sourcePath": "/indicators/auto-fib-retracement.js",
      "sha256": "08247edf4b82be69abc4252c70b0b5a722108e8a4de6f14994e55fe69f7c60a6",
      "bytes": 8580,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/auto-fib-retracement/",
      "sourceUrl": "https://spectral.trade/indicators/auto-fib-retracement.js"
    },
    {
      "id": "awesome-oscillator",
      "name": "Awesome Oscillator",
      "shortName": "AO",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Fast minus slow simple average of the median price, as columns colored by whether they rise or fall.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "awesome oscillator",
        "ao",
        "bill williams",
        "histogram",
        "momentum",
        "median price"
      ],
      "builtIn": "awesome-oscillator",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "fastLength",
          "type": "integer",
          "label": "Fast length",
          "default": 5,
          "min": 1,
          "max": 500,
          "description": "Bars in the fast simple average of the median price."
        },
        {
          "key": "slowLength",
          "type": "integer",
          "label": "Slow length",
          "default": 34,
          "min": 1,
          "max": 500,
          "description": "Bars in the slow simple average of the median price."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [
          {
            "key": "rising",
            "label": "Rising",
            "color": "#6FAF8A"
          },
          {
            "key": "falling",
            "label": "Falling",
            "color": "#C98282"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Awesome Oscillator (Bill Williams) is the 5-bar simple average of the median price, (high + low) / 2, minus its 34-bar simple average, drawn as columns. A column is green when it is higher than the one before and red when it is lower or equal.",
        "howToRead": "Above zero the short-term average is above the long-term one, below zero beneath it. A run of green columns shows momentum building in the upward direction, a run of red columns in the downward direction, on either side of zero.\n\nWilliams described three setups: the zero-line cross; the saucer, a dip of red columns above zero (or a rise of green columns below zero) that turns back with the trend; and twin peaks, two lows below zero where the second is higher (or two highs above zero where the second is lower). Read them with price structure.",
        "settings": "Defaults are the original 5 and 34 bars, as on TradingView. The first column appears on bar Slow length (bar 34 with the defaults). Changing the lengths changes the character of the indicator; the defaults are what traders compare.",
        "notes": "Matches the Awesome Oscillator on TradingView and most platforms, including the coloring: a column equal to the previous one counts as falling."
      },
      "sourcePath": "/indicators/awesome-oscillator.js",
      "sha256": "a4b7b14236d010a8f87ba1bccfc530771a3bdf6d3aadcc3de3190fdd7b40cc1d",
      "bytes": 3077,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/awesome-oscillator/",
      "sourceUrl": "https://spectral.trade/indicators/awesome-oscillator.js"
    },
    {
      "id": "bollinger-bands",
      "name": "Bollinger Bands",
      "shortName": "BB",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A moving average with bands a chosen number of standard deviations above and below it, so the band width follows volatility.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "bollinger bands",
        "bands",
        "standard deviation",
        "moving average",
        "squeeze",
        "volatility"
      ],
      "builtIn": "bollinger-bands",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Bars in the moving average and in the standard deviation."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Basis average",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA",
            "SMMA (RMA)",
            "WMA"
          ],
          "description": "Moving average used for the middle line. Bollinger's definition uses the simple moving average (SMA)."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average and the standard deviation are computed from."
        },
        {
          "key": "mult",
          "type": "number",
          "label": "Standard deviations",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of each band from the basis, in standard deviations of the source over Length bars."
        },
        {
          "key": "offset",
          "type": "integer",
          "label": "Offset",
          "default": 0,
          "min": -500,
          "max": 500,
          "description": "Draw the bands this many bars to the right (positive) or left (negative) of the bars they were computed on. 0 is the usual setting."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "primary": true,
            "offset": "offset"
          },
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#8AA9C3",
            "lineWidth": 1,
            "offset": "offset"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#8AA9C3",
            "lineWidth": 1,
            "offset": "offset"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "band",
            "label": "Band fill",
            "color": "#8AA9C3",
            "opacity": 0.08,
            "offset": "offset"
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "short",
          "name": "Bollinger Bands (10, 1.9)",
          "shortName": "BB 10",
          "inputs": {
            "length": 10,
            "mult": 1.9
          }
        },
        {
          "id": "long",
          "name": "Bollinger Bands (50, 2.1)",
          "shortName": "BB 50",
          "inputs": {
            "length": 50,
            "mult": 2.1
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Bollinger Bands draw a moving average of price (the basis) with an upper and a lower band a set number of standard deviations away from it. Standard deviation measures how far price has been spreading around its average, so the bands widen when the market becomes volatile and narrow when it quiets down.\n\nWith the defaults the basis is the 20-bar simple moving average of the close, and the bands sit two standard deviations of the last 20 closes above and below it.",
        "howToRead": "The bands describe what is normal for the recent past. A close near the upper band is high relative to recent volatility, a close near the lower band is low; neither is a buy or sell signal by itself. In strong trends price can ride along one band for a long time, while in ranges it tends to move between them.\n\nA squeeze, where the bands become unusually narrow, marks a quiet market that often comes before a larger move; it does not tell you the direction. A close outside a band followed by a close back inside is a common reversal setup, best confirmed with price structure or another indicator.",
        "settings": "Length sets the window for both the average and the standard deviation; 20 is the standard. Standard deviations sets the band distance; 2 is the standard, and John Bollinger suggests about 1.9 with a 10-bar length and 2.1 with a 50-bar length, which the presets use. Basis average switches the middle line to an exponential, smoothed (Wilder) or weighted average; the band distance is still measured as the standard deviation of the source.\n\nThe bands appear after Length bars. Offset only moves the drawing in time. Works on every bar size.",
        "notes": "Matches the Bollinger Bands of TradingView and most platforms: the standard deviation is the population standard deviation (divided by the number of bars, not by one less). With the EMA basis, the average starts at the first bar instead of after Length bars, so the first few dozen basis values can differ from TradingView's. Bollinger %B and Bollinger BandWidth, also built in, turn the same bands into oscillators."
      },
      "sourcePath": "/indicators/bollinger-bands.js",
      "sha256": "7b5844055711925aeff18bcbb3114c258263b0427af659172bc793ff9aa9e5c2",
      "bytes": 5169,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/bollinger-bands/",
      "sourceUrl": "https://spectral.trade/indicators/bollinger-bands.js"
    },
    {
      "id": "bollinger-bandwidth",
      "name": "Bollinger BandWidth",
      "shortName": "BBW",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The width of the Bollinger Bands as a percentage of the basis, with its highest and lowest value over a longer lookback to spot squeezes.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length + expansionLength + contractionLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "bollinger bands",
        "bandwidth",
        "squeeze",
        "volatility",
        "contraction",
        "expansion"
      ],
      "builtIn": "bollinger-bandwidth",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Bars in the moving average and in the standard deviation of the bands."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Basis average",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA",
            "SMMA (RMA)",
            "WMA"
          ],
          "description": "Moving average used for the middle of the bands. Bollinger's definition uses the simple moving average (SMA)."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the bands are computed from."
        },
        {
          "key": "mult",
          "type": "number",
          "label": "Standard deviations",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of each band from the basis, in standard deviations of the source over Length bars."
        },
        {
          "key": "expansionLength",
          "type": "integer",
          "label": "Highest expansion length",
          "default": 125,
          "min": 1,
          "max": 500,
          "description": "Bars over which the highest BandWidth is tracked. A new high marks a volatility expansion."
        },
        {
          "key": "contractionLength",
          "type": "integer",
          "label": "Lowest contraction length",
          "default": 125,
          "min": 1,
          "max": 500,
          "description": "Bars over which the lowest BandWidth is tracked. A new low marks a squeeze."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "bandwidth",
            "label": "BandWidth",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "expansion",
            "label": "Highest expansion",
            "color": "#D98282",
            "lineWidth": 1
          },
          {
            "key": "contraction",
            "label": "Lowest contraction",
            "color": "#7FB5A0",
            "lineWidth": 1
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Bollinger BandWidth measures how wide the Bollinger Bands are relative to their basis: (upper band minus lower band) divided by the basis, times 100. A reading of 4 means the bands are 4 percent of price apart.\n\nTwo extra lines track the highest and the lowest BandWidth over a longer lookback (125 bars by default), so you can see at a glance when volatility is at an extreme for the period.",
        "howToRead": "Low BandWidth means a quiet, compressed market; high BandWidth an expanded, volatile one. Volatility alternates between the two, so a reading at or near the lowest contraction line is the Bollinger squeeze: a sign that a larger move may be coming, though not in which direction.\n\nA new highest expansion usually comes with a strong move already under way; when BandWidth turns down from such a high, the move often starts to lose momentum or turn into a range.",
        "settings": "Length, Basis average, Source and Standard deviations define the bands exactly as in Bollinger Bands; 20 bars and 2 standard deviations are the standard. Highest expansion length and Lowest contraction length set the lookback of the two reference lines; Bollinger uses about six months of daily bars (125) for the squeeze.\n\nBandWidth appears after Length bars; each reference line needs its own lookback of BandWidth values on top of that. Because the value is a percentage of price, it can be compared across symbols.",
        "notes": "Matches TradingView's Bollinger BandWidth, including the scale (times 100) and the highest expansion and lowest contraction lines. Some platforms show the same ratio without the factor of 100. Uses the population standard deviation, like the Bollinger Bands built-in."
      },
      "sourcePath": "/indicators/bollinger-bandwidth.js",
      "sha256": "0927862c15ea5605dffc3fedfd8e822184a003c64cfe73ea8fab777b11f52700",
      "bytes": 4852,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/bollinger-bandwidth/",
      "sourceUrl": "https://spectral.trade/indicators/bollinger-bandwidth.js"
    },
    {
      "id": "bollinger-percent-b",
      "name": "Bollinger %B",
      "shortName": "%B",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Where price sits within its Bollinger Bands: 1 at the upper band, 0.5 at the basis, 0 at the lower band.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "bollinger bands",
        "percent b",
        "%b",
        "oscillator",
        "overbought",
        "oversold",
        "volatility"
      ],
      "builtIn": "bollinger-percent-b",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Bars in the moving average and in the standard deviation of the bands."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Basis average",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA",
            "SMMA (RMA)",
            "WMA"
          ],
          "description": "Moving average used for the middle of the bands. Bollinger's definition uses the simple moving average (SMA)."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the bands are computed from and that %B places within them."
        },
        {
          "key": "mult",
          "type": "number",
          "label": "Standard deviations",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of each band from the basis, in standard deviations of the source over Length bars."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "percentB",
            "label": "%B",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "upperBand",
            "label": "Upper band",
            "color": "#8AA9C3",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Basis",
            "color": "#6E7681",
            "lineStyle": "dotted"
          },
          {
            "key": "lowerBand",
            "label": "Lower band",
            "color": "#8AA9C3",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "band",
            "label": "Inside the bands",
            "color": "#8AA9C3",
            "opacity": 0.06
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Bollinger %B shows where the price is relative to its Bollinger Bands as a single number: (price minus lower band) divided by (upper band minus lower band). A value of 1 means price is exactly on the upper band, 0.5 on the basis and 0 on the lower band.\n\nValues above 1 or below 0 mean price has closed outside the bands.",
        "howToRead": "High readings mean price is strong relative to its recent volatility, low readings weak. Above 1, price has closed above the upper band; below 0, below the lower band. In a strong uptrend %B can stay above 0.8 for a long time, so a high value alone is not a sell signal.\n\nBecause it is normalised, %B is useful for comparing with other oscillators and for divergences: a new price high with a lower %B peak shows the move is weaker relative to volatility than the previous one.",
        "settings": "Length, Basis average, Source and Standard deviations define the bands exactly as in Bollinger Bands; keep them the same as the bands on your chart. 20 bars and 2 standard deviations are the standard.\n\nValues appear after Length bars. When the bands have zero width (a perfectly flat market) %B is undefined and is not drawn.",
        "notes": "Matches TradingView's Bollinger Bands %B with its guides at 1, 0.5 and 0. Uses the population standard deviation, like the Bollinger Bands built-in."
      },
      "sourcePath": "/indicators/bollinger-percent-b.js",
      "sha256": "467666c9103baed4ba824e301d57d845a5c12ff99a128b98df4d8d05c88ee4c9",
      "bytes": 4226,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/bollinger-percent-b/",
      "sourceUrl": "https://spectral.trade/indicators/bollinger-percent-b.js"
    },
    {
      "id": "cci",
      "name": "Commodity Channel Index",
      "shortName": "CCI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "How far the typical price is from its average, in units of its mean deviation, with +100 and -100 bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "cci",
        "commodity channel index",
        "oscillator",
        "overbought",
        "oversold",
        "momentum",
        "mean deviation"
      ],
      "builtIn": "cci",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the average and the mean deviation."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "hlc3",
          "description": "Price the index is calculated from; the typical price (high + low + close) / 3 is standard."
        },
        {
          "key": "showSmoothing",
          "type": "boolean",
          "label": "Show smoothing line",
          "default": false,
          "description": "Draw a simple average of the CCI over it."
        },
        {
          "key": "smoothingLength",
          "type": "integer",
          "label": "Smoothing length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the average of the smoothing line."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 100,
          "min": 0,
          "max": 500,
          "step": 10,
          "description": "Level of the upper reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": -100,
          "min": -500,
          "max": 0,
          "step": 10,
          "description": "Level of the lower reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "cci",
            "label": "CCI",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "smoothing",
            "label": "Smoothing",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#8AA9C3",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "short",
          "name": "CCI (14)",
          "shortName": "CCI 14",
          "inputs": {
            "length": 14
          }
        },
        {
          "id": "long",
          "name": "CCI (50)",
          "shortName": "CCI 50",
          "inputs": {
            "length": 50
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Commodity Channel Index (Donald Lambert) compares the typical price with its simple average over the last Length bars and divides the difference by the mean absolute deviation, scaled by 0.015 so that most values fall between +100 and -100. Zero means price is at its average.",
        "howToRead": "Above +100 price is unusually far above its average for the recent variability, below -100 unusually far below. A move beyond +100 can mark the start of a strong advance rather than an overbought market, and a fall back inside the band shows that the push is fading.\n\nThe zero line separates price above and below its average. Divergences between the CCI and price, and turns near the bands, are context for price structure, not standalone signals.",
        "settings": "Length defaults to 20 bars with the typical price, as on TradingView; 14 is also common, and longer lengths such as 50 suit trend filtering. The optional smoothing line is a simple average of the CCI. The first value appears on bar Length (bar 20 with the default). When every price in the window is the same, there is no value.",
        "notes": "Matches the CCI on TradingView and most platforms: (price - average) / (0.015 x mean deviation), with a simple average and mean absolute deviation over the same window."
      },
      "sourcePath": "/indicators/cci.js",
      "sha256": "17f0071e307521e6a5c6ff2661040ade717304559ef6f71696476736badae1a7",
      "bytes": 5098,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/cci/",
      "sourceUrl": "https://spectral.trade/indicators/cci.js"
    },
    {
      "id": "chaikin-money-flow",
      "name": "Chaikin Money Flow",
      "shortName": "CMF",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Share of volume over the last bars that closed in the upper or lower part of its bar range, from -1 to +1.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "chaikin money flow",
        "cmf",
        "money flow",
        "accumulation",
        "distribution"
      ],
      "builtIn": "chaikin-money-flow",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Number of bars over which money flow volume and volume are added up."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "cmf",
            "label": "CMF",
            "color": "#6FAFB5",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero",
            "color": "#8A94A3",
            "lineStyle": "dashed"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "length-10",
          "name": "CMF (10)",
          "shortName": "CMF 10",
          "inputs": {
            "length": 10
          }
        },
        {
          "id": "length-21",
          "name": "CMF (21)",
          "shortName": "CMF 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "length-50",
          "name": "CMF (50)",
          "shortName": "CMF 50",
          "inputs": {
            "length": 50
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Chaikin Money Flow measures buying and selling pressure from where each bar closes inside its own range. For every bar the money flow multiplier is ((close - low) - (high - close)) / (high - low): +1 when the bar closes on its high, -1 when it closes on its low, 0 in the middle. Multiplied by the bar's volume it gives the money flow volume.\n\nCMF is the sum of the money flow volume over the chosen length divided by the sum of the volume over the same length. It therefore stays between -1 and +1 and shows what share of recent volume was accumulation or distribution.",
        "howToRead": "Above zero means that, on balance, bars have been closing in the upper part of their range on volume: accumulation and buying pressure. Below zero means closes in the lower part: distribution and selling pressure. Readings beyond about +0.25 or -0.25 are considered strong.\n\nA trend is better trusted when CMF agrees with it: a rising price with CMF above zero is healthy, a rising price with CMF falling toward or below zero is a warning. Crosses of the zero line change the bias but lag, because the value sums the money flow of the last Length bars. A bar with no range, or with no volume, contributes nothing.",
        "settings": "Length is the number of bars in the window; 20 is the usual choice (21 is also common). A shorter length reacts faster and is noisier, a longer one is smoother. The first value appears after Length bars. If the window contains no volume at all there is no value.\n\nThe presets offer lengths of 10, 21 and 50. CMF is bounded, so it can be compared across instruments, but because it depends on the bar range it behaves differently on tiny bar sizes, where many bars close at their high or low.",
        "notes": "This is the standard Chaikin Money Flow of Marc Chaikin and the same formula TradingView uses. A bar whose high equals its low has a multiplier of 0 here, as in TradingView. If the volume sum of the window is zero, no value is drawn."
      },
      "sourcePath": "/indicators/chaikin-money-flow.js",
      "sha256": "7b45111647dfac45868028c4f03c924759771c0401a1cc33047869c7aa033de8",
      "bytes": 4135,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/chaikin-money-flow/",
      "sourceUrl": "https://spectral.trade/indicators/chaikin-money-flow.js"
    },
    {
      "id": "choppiness-index",
      "name": "Choppiness Index",
      "shortName": "CHOP",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Whether the market trends or chops sideways, on a 0 to 100 scale with the 38.2 and 61.8 guides.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "choppiness",
        "chop",
        "sideways",
        "range or trend",
        "trend filter",
        "fibonacci levels"
      ],
      "builtIn": "choppiness-index",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 2,
          "max": 500,
          "description": "Number of bars compared: the sum of their true ranges against the range from their highest high to their lowest low."
        },
        {
          "key": "upperLevel",
          "type": "number",
          "label": "Choppy level",
          "default": 61.8,
          "min": 0,
          "max": 100,
          "step": 0.1,
          "description": "Guide above which the market counts as choppy (sideways)."
        },
        {
          "key": "lowerLevel",
          "type": "number",
          "label": "Trending level",
          "default": 38.2,
          "min": 0,
          "max": 100,
          "step": 0.1,
          "description": "Guide below which the market counts as trending."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "chop",
            "label": "CHOP",
            "color": "#58A6FF",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Choppy",
            "color": "#788493",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "lower",
            "label": "Trending",
            "color": "#788493",
            "lineStyle": "dotted",
            "showValue": true
          }
        ],
        "zones": [
          {
            "key": "band",
            "label": "Neutral band",
            "color": "#58A6FF",
            "opacity": 0.06
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Choppiness Index by E. W. Dreiss compares the path price travelled with the ground it covered. It adds up the true range of every bar in the window and divides that sum by the window's high-low range: a market that moves in one direction covers its range in a short path, a market that swings back and forth travels a long path inside a small range.\n\nThe result is scaled with a logarithm to 0-100: 100 times log10(sum of true ranges / (highest high - lowest low)) / log10(Length).",
        "howToRead": "High values (above 61.8) mark choppy, sideways conditions; low values (below 38.2) mark a directional trend. The index says nothing about the direction of that trend.\n\nTraders use it as a filter: trend-following entries when it falls below the trending level, range tactics or patience while it stays high. A long stretch of high values often precedes a breakout, and a very low value after a strong move often comes before a pause.",
        "settings": "Length 14 is the common default. The guides use the Fibonacci levels 61.8 and 38.2; change them to suit the market. Values appear after Length bars; a window without any range shows no value.",
        "notes": "Matches TradingView's Choppiness Index: the true range includes gaps from the previous close and the high-low range covers the same Length bars."
      },
      "sourcePath": "/indicators/choppiness-index.js",
      "sha256": "9d013de5a477693a48ab4eefc19d8ea8eeb4fd434a48d078ee961bb4ad5f302c",
      "bytes": 3749,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/choppiness-index/",
      "sourceUrl": "https://spectral.trade/indicators/choppiness-index.js"
    },
    {
      "id": "connors-rsi",
      "name": "Connors RSI",
      "shortName": "CRSI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The average of a short RSI, an RSI of the up/down streak length and the percent rank of the last change, on a 0-100 scale.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "rankLength + 1",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "connors rsi",
        "crsi",
        "rsi",
        "streak",
        "percent rank",
        "mean reversion",
        "momentum"
      ],
      "builtIn": "connors-rsi",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "rsiLength",
          "type": "integer",
          "label": "RSI length",
          "default": 3,
          "min": 1,
          "max": 500,
          "description": "Bars in the RSI of price."
        },
        {
          "key": "streakLength",
          "type": "integer",
          "label": "Streak RSI length",
          "default": 2,
          "min": 1,
          "max": 500,
          "description": "Bars in the RSI of the up/down streak."
        },
        {
          "key": "rankLength",
          "type": "integer",
          "label": "Percent rank length",
          "default": 100,
          "min": 1,
          "max": 500,
          "description": "Earlier bars the latest one-bar percent change is ranked against."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the three parts are calculated from."
        },
        {
          "key": "showComponents",
          "type": "boolean",
          "label": "Show components",
          "default": false,
          "description": "Also draw the three parts: the RSI, the streak RSI and the percent rank."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 70,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the upper reference band; Connors used 90 or 95."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": 50,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": 30,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the lower reference band; Connors used 10 or 5."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "crsi",
            "label": "CRSI",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "rsi",
            "label": "RSI",
            "color": "#8AA9C3",
            "lineWidth": 1,
            "lineStyle": "dotted"
          },
          {
            "key": "streakRsi",
            "label": "Streak RSI",
            "color": "#C4A46A",
            "lineWidth": 1,
            "lineStyle": "dotted"
          },
          {
            "key": "rank",
            "label": "Percent rank",
            "color": "#7FB5A0",
            "lineWidth": 1,
            "lineStyle": "dotted"
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#B7A1C8",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "extremes",
          "name": "Connors RSI (90/10 bands)",
          "shortName": "CRSI 90/10",
          "inputs": {
            "upperBand": 90,
            "lowerBand": 10
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Connors RSI (Larry Connors) averages three short-term measures on a 0-100 scale: a 3-bar RSI of price, a 2-bar RSI of the streak (how many closes in a row were up, as a positive count, or down, as a negative count), and the percent rank of the latest one-bar percent change among the previous 100 bars.",
        "howToRead": "It is built for short-term mean reversion. High readings mean price rose quickly, for several bars in a row, and by more than usual; low readings the opposite. Connors bought pullbacks in uptrends when it fell below 10 (or 5) and exited when it rose above 90 or 95; TradingView draws 70 and 30.\n\nIt turns quickly and spends little time in the middle, so use it to time entries inside a trend you have identified elsewhere, not to define the trend. Show components draws the three parts to see which one drives a reading.",
        "settings": "Defaults are 3 bars for the RSI, 2 for the streak RSI and 100 for the percent rank, as defined by Connors and used on TradingView. The first value appears on bar Percent rank length + 2 (bar 102 with the defaults). An unchanged close ends a streak (the streak is 0). On a price that does not move at all, all three parts read 100, as on TradingView.",
        "notes": "Matches Connors RSI on TradingView: the percent rank counts the earlier changes that are less than or equal to the latest one. Connors's original description counts only those that are strictly less, which gives slightly lower readings when changes repeat. Both RSIs are Wilder's RSI."
      },
      "sourcePath": "/indicators/connors-rsi.js",
      "sha256": "7df809f3464768e11e38eeb94f1a5a70f4f0f0abc37c08ac2b1ca620f9de71d8",
      "bytes": 6048,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/connors-rsi/",
      "sourceUrl": "https://spectral.trade/indicators/connors-rsi.js"
    },
    {
      "id": "coppock-curve",
      "name": "Coppock Curve",
      "shortName": "Coppock",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A weighted average of the sum of a long and a short rate of change, around a zero line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "wmaLength + longRocLength + shortRocLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "coppock curve",
        "rate of change",
        "long term",
        "monthly",
        "momentum",
        "oscillator"
      ],
      "builtIn": "coppock-curve",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "wmaLength",
          "type": "integer",
          "label": "Average length",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the weighted average of the summed rates of change."
        },
        {
          "key": "longRocLength",
          "type": "integer",
          "label": "Long ROC length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the longer rate of change."
        },
        {
          "key": "shortRocLength",
          "type": "integer",
          "label": "Short ROC length",
          "default": 11,
          "min": 1,
          "max": 500,
          "description": "Bars in the shorter rate of change."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the rates of change are calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "coppock",
            "label": "Coppock",
            "color": "#7FB5A0",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Coppock Curve (Edwin Coppock) adds the 14-bar and the 11-bar percent rate of change and smooths the sum with a 10-bar weighted average. Coppock designed it on monthly bars of a stock index to find the turns after a large decline.",
        "howToRead": "The classic signal is the curve turning up while it is below zero, after a decline: momentum is still negative but no longer worsening. A turn down above zero shows an advance losing speed, though Coppock did not use it as a sell signal.\n\nOn monthly and weekly bars it marks major turns; on intraday bars it behaves like a smoothed momentum line and turns far more often.",
        "settings": "Defaults are 10, 14 and 11, the original monthly settings and TradingView's defaults; keep them on monthly bars. The first value appears on bar Long ROC length + Average length (bar 24 with the defaults).",
        "notes": "Matches the Coppock Curve on TradingView and most platforms."
      },
      "sourcePath": "/indicators/coppock-curve.js",
      "sha256": "ecdbe7185c21dd5ffbf61a9dd6dd1a18959aa562ccacf8935ed6ff795e3f2bab",
      "bytes": 3150,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/coppock-curve/",
      "sourceUrl": "https://spectral.trade/indicators/coppock-curve.js"
    },
    {
      "id": "cumulative-volume-delta",
      "name": "Cumulative Volume Delta",
      "shortName": "CVD",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Approximate cumulative volume delta from up and down bars: volume of rising bars minus volume of falling bars, summed.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "cumulative volume delta",
        "cvd",
        "volume delta",
        "buying pressure",
        "selling pressure"
      ],
      "builtIn": "cumulative-volume-delta",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "reset",
          "type": "select",
          "label": "Reset",
          "default": "Session",
          "options": [
            "Session",
            "Never"
          ],
          "description": "Session restarts the total at zero on each New York trading date; Never keeps one running total over all loaded bars."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "cvd",
            "label": "CVD",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero",
            "color": "#8A94A3",
            "lineStyle": "dashed"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "no-reset",
          "name": "CVD (no reset)",
          "shortName": "CVD",
          "inputs": {
            "reset": "Never"
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Cumulative Volume Delta is a running total of the difference between buying and selling volume. Spectral's bars carry only open, high, low, close and total volume, with no split into trades at the bid and at the ask, so this indicator approximates each bar's delta from the direction of the bar: a bar that closes above its open counts its whole volume as positive, a bar that closes below its open counts it as negative, and a bar that closes at its open counts as zero.\n\nThis is an approximation, not true order-flow delta. Real delta needs tick data with the side of every trade. Treat the line as a volume-weighted measure of up bars versus down bars.",
        "howToRead": "A rising line means that volume has been concentrated in rising bars; a falling line, in falling bars. Price rising while CVD rises is a healthy move; price making a new high while CVD does not is a divergence that suggests the advance is not backed by volume, and the reverse at lows.\n\nBecause each bar is classified as a whole, a bar that rallied and then closed slightly below its open counts completely as selling. The approximation is better on small bar sizes, where a bar is closer to a single move, and weaker on large ones. It cannot show absorption, where heavy selling is met by passive buyers.",
        "settings": "Reset chooses the starting point of the total. Session starts the total at zero on every New York trading date, so each day shows its own build-up of up or down volume (best on intraday charts). Never keeps a single total over all loaded bars, whose level depends on how much history is loaded. On daily and longer bars every bar is its own session, so use Never there.\n\nThe line has a value from the first bar. A bar without volume adds nothing.",
        "notes": "Standard cumulative volume delta uses the volume traded at the ask minus the volume traded at the bid. TradingView offers this as Cumulative Volume Delta, computed from lower timeframe data (or tick data) inside each bar, which is more precise; this indicator does not use lower timeframe data and therefore differs, sometimes noticeably. The Session reset follows the New York calendar date, so for instruments that trade around the clock the total restarts at midnight New York time."
      },
      "sourcePath": "/indicators/cumulative-volume-delta.js",
      "sha256": "092b0d81f0eeea6613c67e5fc9e2ece592002dd7e7da2941b3597a72e89f9fba",
      "bytes": 4200,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/cumulative-volume-delta/",
      "sourceUrl": "https://spectral.trade/indicators/cumulative-volume-delta.js"
    },
    {
      "id": "cwx",
      "name": "Current Week High/Low",
      "shortName": "CWx",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Developing high and low of the current trading week as horizontal levels, with optional history.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "current week",
        "weekly high",
        "weekly low",
        "range"
      ],
      "builtIn": "cwx",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showHistory",
          "type": "boolean",
          "label": "Show history",
          "default": false,
          "description": "Also draw how each week's high and low developed bar by bar, as step lines."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "highHistory",
            "label": "CWH history",
            "color": "#6FAF8A",
            "lineStyle": "dotted",
            "primary": true
          },
          {
            "key": "lowHistory",
            "label": "CWL history",
            "color": "#6FAF8A",
            "lineStyle": "dotted"
          }
        ],
        "levels": [
          {
            "key": "high",
            "label": "CWH",
            "color": "#6FAF8A",
            "showValue": true
          },
          {
            "key": "low",
            "label": "CWL",
            "color": "#6FAF8A",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Current Week High/Low tracks the highest high and the lowest low of the developing calendar trading week (New York time) and draws them as two horizontal levels that move as new extremes print.",
        "howToRead": "The levels show the range the market has traded so far this week. Tests of the week's high or low show whether the range is expanding; repeated rejections at one side often mark it as the week's reference.",
        "settings": "Show history adds step lines that show how every week's high and low developed bar by bar. Pre-market and after-hours bars count when the chart shows them.",
        "notes": "Computes the same levels as the built-in CWx in Spectral. The levels change while the week develops, so they are context, not fixed support or resistance."
      },
      "sourcePath": "/indicators/cwx.js",
      "sha256": "e1674f952d9c60bd7d694eec87296c2dcb4e59d31f5d145a3c70a4dc124edb75",
      "bytes": 2867,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/cwx/",
      "sourceUrl": "https://spectral.trade/indicators/cwx.js"
    },
    {
      "id": "daily-weekly-ema-levels",
      "name": "Daily & Weekly EMA Levels",
      "shortName": "D/W EMA",
      "version": "1.0.1",
      "author": "Spectral",
      "description": "Latest daily EMA 5/8/21/50 and SMA 100 and weekly EMA 5/8/21/50 as levels on any chart, read from daily and weekly bars.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "ema",
        "sma",
        "daily",
        "weekly",
        "higher timeframe"
      ],
      "builtIn": "daily-weekly-ema-levels",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showDaily",
          "type": "boolean",
          "label": "Daily levels",
          "default": true,
          "description": "Draw the daily EMA and SMA levels, read from daily bars."
        },
        {
          "key": "showWeekly",
          "type": "boolean",
          "label": "Weekly levels",
          "default": true,
          "description": "Draw the weekly EMA levels, read from weekly bars."
        },
        {
          "key": "showEma5",
          "type": "boolean",
          "label": "EMA 5",
          "default": true,
          "description": "Draw the 5-period EMA of the daily and weekly groups."
        },
        {
          "key": "showEma8",
          "type": "boolean",
          "label": "EMA 8",
          "default": true,
          "description": "Draw the 8-period EMA of the daily and weekly groups."
        },
        {
          "key": "showEma21",
          "type": "boolean",
          "label": "EMA 21",
          "default": true,
          "description": "Draw the 21-period EMA of the daily and weekly groups."
        },
        {
          "key": "showEma50",
          "type": "boolean",
          "label": "EMA 50",
          "default": true,
          "description": "Draw the 50-period EMA of the daily and weekly groups."
        },
        {
          "key": "showSma100",
          "type": "boolean",
          "label": "SMA 100",
          "default": true,
          "description": "Draw the 100-day SMA (daily group only)."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "dailyEma5",
            "label": "D EMA 5",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "dailyEma8",
            "label": "D EMA 8",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "dailyEma21",
            "label": "D EMA 21",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "dailyEma50",
            "label": "D EMA 50",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "dailySma100",
            "label": "D SMA 100",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "weeklyEma5",
            "label": "W EMA 5",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "weeklyEma8",
            "label": "W EMA 8",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "weeklyEma21",
            "label": "W EMA 21",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          },
          {
            "key": "weeklyEma50",
            "label": "W EMA 50",
            "color": "#9AA5B1",
            "lineWidth": 1,
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "2 Y"
        },
        {
          "alias": "weekly",
          "barSize": "1 week",
          "duration": "5 Y"
        }
      ],
      "docs": {
        "overview": "Daily & Weekly EMA Levels draws where the higher-timeframe moving averages sit right now: the latest daily EMA 5, 8, 21 and 50 and the daily SMA 100, and the latest weekly EMA 5, 8, 21 and 50, as labeled horizontal levels on any chart, including intraday charts. The values come from daily and weekly bars that Spectral loads beside the chart's own bars.",
        "howToRead": "Each level shows where a daily or weekly moving average currently is relative to intraday price. Levels that cluster mark confluence. A reclaim, a rejection or acceptance above or below a level still has to be judged from price action and volume; a level is a reference, not a signal.",
        "settings": "Daily levels and Weekly levels switch each group on or off; the EMA and SMA switches choose the periods in both groups (SMA 100 is daily only). A group that is switched off loads no bars. The values use regular-trading-hours daily and weekly bars: two years of daily bars and five years of weekly bars, so even the 100-day SMA and the 50-week EMA have enough history.",
        "notes": "Computes the same values as the built-in Daily/Weekly EMA Levels in Spectral. Each EMA starts from the first bar's close, as the built-in does. The current day and week count as they trade: the daily and weekly bars stay up to date while the chart is open, so the levels follow today's and this week's price, and they start at the last chart bar. Needs schemaVersion 2 (Spectral with auxiliary bars)."
      },
      "sourcePath": "/indicators/daily-weekly-ema-levels.js",
      "sha256": "474fba5cb71d2608374fac647c97d56503bc7dc37b311375f7cc2253c0ab7117",
      "bytes": 5641,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/daily-weekly-ema-levels/",
      "sourceUrl": "https://spectral.trade/indicators/daily-weekly-ema-levels.js"
    },
    {
      "id": "daily-weekly-levels",
      "name": "Daily & Weekly Levels",
      "shortName": "D/W Levels",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Previous and current day and week open, high, low and close as levels, read from real daily and weekly bars.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "previous day",
        "previous week",
        "daily levels",
        "weekly levels",
        "high low",
        "open close",
        "higher timeframe"
      ],
      "builtIn": "daily-weekly-levels",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showPrevDay",
          "type": "boolean",
          "label": "Previous day",
          "default": true,
          "description": "Draw the previous trading day's levels (PDO, PDH, PDL, PDC)."
        },
        {
          "key": "showToday",
          "type": "boolean",
          "label": "Current day",
          "default": true,
          "description": "Draw the current trading day's open, high and low (DO, DH, DL)."
        },
        {
          "key": "showPrevWeek",
          "type": "boolean",
          "label": "Previous week",
          "default": true,
          "description": "Draw the previous week's levels (PWO, PWH, PWL, PWC)."
        },
        {
          "key": "showThisWeek",
          "type": "boolean",
          "label": "Current week",
          "default": true,
          "description": "Draw the current week's open, high and low (WO, WH, WL)."
        },
        {
          "key": "showOpen",
          "type": "boolean",
          "label": "Opens",
          "default": true,
          "description": "Draw the open of each enabled day and week."
        },
        {
          "key": "showHighLow",
          "type": "boolean",
          "label": "Highs and lows",
          "default": true,
          "description": "Draw the high and low of each enabled day and week."
        },
        {
          "key": "showClose",
          "type": "boolean",
          "label": "Closes",
          "default": true,
          "description": "Draw the close of the previous day and the previous week."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "prevDayOpen",
            "label": "PDO",
            "color": "#C4A46A",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "prevDayHigh",
            "label": "PDH",
            "color": "#C4A46A",
            "showValue": true
          },
          {
            "key": "prevDayLow",
            "label": "PDL",
            "color": "#C4A46A",
            "showValue": true
          },
          {
            "key": "prevDayClose",
            "label": "PDC",
            "color": "#C4A46A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "dayOpen",
            "label": "DO",
            "color": "#B7A1C8",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "dayHigh",
            "label": "DH",
            "color": "#B7A1C8",
            "showValue": true
          },
          {
            "key": "dayLow",
            "label": "DL",
            "color": "#B7A1C8",
            "showValue": true
          },
          {
            "key": "prevWeekOpen",
            "label": "PWO",
            "color": "#8AA9C3",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "prevWeekHigh",
            "label": "PWH",
            "color": "#8AA9C3",
            "showValue": true
          },
          {
            "key": "prevWeekLow",
            "label": "PWL",
            "color": "#8AA9C3",
            "showValue": true
          },
          {
            "key": "prevWeekClose",
            "label": "PWC",
            "color": "#8AA9C3",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "weekOpen",
            "label": "WO",
            "color": "#7FB5A0",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "weekHigh",
            "label": "WH",
            "color": "#7FB5A0",
            "showValue": true
          },
          {
            "key": "weekLow",
            "label": "WL",
            "color": "#7FB5A0",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "1 M"
        },
        {
          "alias": "weekly",
          "barSize": "1 week",
          "duration": "6 M"
        }
      ],
      "docs": {
        "overview": "Daily & Weekly Levels marks the reference prices traders watch from the higher timeframes: the previous trading day's open, high, low and close (PDO, PDH, PDL, PDC), the current day's open, high and low (DO, DH, DL), and the same for the previous and current week (PWO, PWH, PWL, PWC and WO, WH, WL).\n\nThe values come from real daily and weekly regular-trading-hours bars that Spectral loads beside the chart's own bars, so they are correct on any bar size, even when the chart has loaded only a few hours of history.",
        "howToRead": "The previous day's and week's high and low frame the range the market accepted; a move beyond them, and whether price holds there or returns inside, tells you more than the touch itself. The prior close is where the last session settled, and the open is where the current period began, so price above or below the open shows who has controlled the period so far.\n\nThe current day and week high and low move as new extremes print. Levels are references for reaction, acceptance or rejection, not signals on their own.",
        "settings": "Previous day, Current day, Previous week and Current week switch each group; Opens, Highs and lows, and Closes choose which values every enabled group draws. A switched-off group loads no bars.\n\nThe current day is the trading date of the chart's last bar, and the previous day is the trading date before it; the same applies to weeks (Monday to Friday). Values use regular trading hours, 09:30 to 16:00 New York time, so the open is the 09:30 open and the close is the 16:00 close (13:00 on early-close days). Before the regular session opens, the current-day levels are hidden.",
        "notes": "Unlike the Previous Day and Previous Week levels computed from the chart's own bars, this indicator reads daily and weekly bars directly, so it also works on higher bar sizes and short histories. The current-day and current-week values update live while the chart is open. Weeks run Monday to Friday by New York date, as on stock exchanges; for markets with a Sunday-evening session, bars before Monday count toward the previous week. Needs a Spectral version with schemaVersion 2."
      },
      "sourcePath": "/indicators/daily-weekly-levels.js",
      "sha256": "64879ba5f6a47d0f3188d60c9d16b7a6a9d3d4156c40ddfee52306d811fff4fd",
      "bytes": 8287,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/daily-weekly-levels/",
      "sourceUrl": "https://spectral.trade/indicators/daily-weekly-levels.js"
    },
    {
      "id": "dema",
      "name": "Double Exponential Moving Average",
      "shortName": "DEMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Patrick Mulloy's double exponential moving average: an EMA with most of its lag removed, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "dema",
        "double ema",
        "moving average",
        "low lag",
        "trend"
      ],
      "builtIn": "dema",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 9,
          "min": 1,
          "max": 1000,
          "description": "Length of both exponential averages inside the DEMA. Longer lengths are smoother and react later."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "dema",
            "label": "DEMA",
            "color": "#D49A7A",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "dema-21",
          "name": "DEMA 21",
          "shortName": "DEMA 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "dema-50",
          "name": "DEMA 50",
          "shortName": "DEMA 50",
          "inputs": {
            "length": 50
          }
        },
        {
          "id": "dema-200",
          "name": "DEMA 200",
          "shortName": "DEMA 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Double Exponential Moving Average, published by Patrick Mulloy in 1994, is not an EMA applied twice but a lag correction: it takes an EMA of price, then an EMA of that EMA, and plots twice the first minus the second.\n\nThe second average measures how far the first one trails price, and subtracting it moves the line back toward price. On a steady trend the DEMA follows price with almost no delay, while still being smoother than price itself.",
        "howToRead": "Read it like a fast EMA: its slope gives the short-term direction, and price holding above a rising DEMA (or below a falling one) describes a move with follow-through. Because it reacts sooner, a DEMA crossing a slower average gives earlier signals than an EMA cross of the same lengths.\n\nThe lag correction also means it overshoots after sharp reversals and turns more often in choppy, sideways markets. Confirm turns with price structure.",
        "settings": "Length defaults to 9 bars, as on TradingView; the presets add 21, 50 and 200. Both inner averages use the same length.\n\nLike the EMA, the line starts at the first bar with no warm-up, so its earliest values lean on the first prices and settle after a few multiples of Length.",
        "notes": "Computes 2 x EMA - EMA of EMA, Mulloy's formula. The EMAs start from the first value, like Spectral's EMA; platforms that start an EMA from a simple average, TradingView among them, draw nothing for the first 2 x Length - 2 bars, and the values agree once warmed up. The Triple EMA (TEMA) carries the same idea one step further."
      },
      "sourcePath": "/indicators/dema.js",
      "sha256": "e24a27fe0080bf22da10a92099d4a23c4a3aec4fa4e20ec93238127b0589be9c",
      "bytes": 3158,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/dema/",
      "sourceUrl": "https://spectral.trade/indicators/dema.js"
    },
    {
      "id": "donchian-channels",
      "name": "Donchian Channels",
      "shortName": "DC",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The highest high and the lowest low of the last bars, with their midpoint: the range price has traded in.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "donchian channels",
        "channel",
        "breakout",
        "highest high",
        "lowest low",
        "turtle",
        "range"
      ],
      "builtIn": "donchian-channels",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars whose highest high and lowest low form the channel, including the current bar."
        },
        {
          "key": "offset",
          "type": "integer",
          "label": "Offset",
          "default": 0,
          "min": -500,
          "max": 500,
          "description": "Draw the channel this many bars later (positive) or earlier (negative). 1 compares each bar with the channel of the bars before it, as breakout traders do."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1,
            "lineStyle": "dashed",
            "offset": "offset"
          },
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#58A6FF",
            "lineWidth": 1.5,
            "primary": true,
            "offset": "offset"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#58A6FF",
            "lineWidth": 1.5,
            "offset": "offset"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "band",
            "label": "Channel fill",
            "color": "#58A6FF",
            "opacity": 0.06,
            "offset": "offset"
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "dc-10",
          "name": "Donchian Channels (10)",
          "shortName": "DC 10",
          "inputs": {
            "length": 10
          }
        },
        {
          "id": "dc-55",
          "name": "Donchian Channels (55)",
          "shortName": "DC 55",
          "inputs": {
            "length": 55
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Donchian Channels, developed by Richard Donchian, draw the highest high (upper band) and the lowest low (lower band) of the last Length bars, and the midpoint between them (basis). The channel is the range the market has traded in over that window.\n\nWith the default 20 bars on a daily chart, the bands are roughly the four-week high and low.",
        "howToRead": "The upper band rising to a new high, or the lower band falling to a new low, marks a breakout from the recent range; trend-following systems such as the Turtle rules buy a 20- or 55-bar high and sell a 20- or 55-bar low. A flat band means no new extreme has printed for a while; a rising lower band in an uptrend shows higher lows.\n\nThe basis splits the range in two: in a healthy uptrend price tends to stay in the upper half. A narrow channel marks consolidation; it widens again as soon as price breaks out.",
        "settings": "Length sets the window; 20 is the standard, 55 the slower Turtle channel and 10 a common exit channel. The bands include the current bar, so price cannot close outside them: a breakout shows as the band moving with price. Set Offset to 1 to draw each bar's channel from the bars before it, so a breakout bar closes visibly outside the channel.\n\nThe channel appears after Length bars. Works on every bar size.",
        "notes": "Matches TradingView's Donchian Channels (highest high, lowest low and their average, with an offset). Some platforms build the channel from closes instead of highs and lows; this one uses highs and lows."
      },
      "sourcePath": "/indicators/donchian-channels.js",
      "sha256": "2213cb50f451cfae1efc46ad931c3cc48934c3cac40b5e633a94db443a6f27fc",
      "bytes": 3601,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/donchian-channels/",
      "sourceUrl": "https://spectral.trade/indicators/donchian-channels.js"
    },
    {
      "id": "ema",
      "name": "Exponential Moving Average",
      "shortName": "EMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Exponential moving average of the chosen price, weighting recent bars more, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "ema",
        "moving average",
        "trend",
        "exponential"
      ],
      "builtIn": "ema",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 21,
          "min": 1,
          "max": 1000,
          "description": "Smoothing length in bars. Shorter lengths follow price closely; longer lengths smooth more."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "ema",
            "label": "EMA",
            "color": "#8AA9C3",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "ema-8",
          "name": "EMA 8",
          "shortName": "EMA 8",
          "inputs": {
            "length": 8
          }
        },
        {
          "id": "ema-13",
          "name": "EMA 13",
          "shortName": "EMA 13",
          "inputs": {
            "length": 13
          }
        },
        {
          "id": "ema-48",
          "name": "EMA 48",
          "shortName": "EMA 48",
          "inputs": {
            "length": 48
          }
        },
        {
          "id": "ema-50",
          "name": "EMA 50",
          "shortName": "EMA 50",
          "inputs": {
            "length": 50
          }
        },
        {
          "id": "ema-200",
          "name": "EMA 200",
          "shortName": "EMA 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The exponential moving average weights each new price by 2 / (Length + 1) and carries the rest of its previous value forward. Recent bars therefore count more than older ones, and the line reacts faster than a simple average of the same length.",
        "howToRead": "A rising EMA describes positive recent price pressure; a falling EMA describes negative pressure. Traders watch how price behaves around the line (holds, reclaims, rejections) and how several EMAs are stacked, rather than treating a single cross as a signal.\n\nAn EMA reacts sooner than an SMA of the same length but also turns more often in choppy markets.",
        "settings": "Length defaults to 21 bars; the presets add 8, 13, 48, 50 and 200. The line starts at the first bar without a warm-up, so its earliest values lean heavily on the first prices and settle after a few multiples of Length.",
        "notes": "Computes the same values as the built-in EMA in Spectral. The built-in lists one toolbox entry per length; this file covers them with one indicator and its presets."
      },
      "sourcePath": "/indicators/ema.js",
      "sha256": "41da5cd5fc375205c1ad3e31ff9b992d5606712f794c4b6604514f636ccea587",
      "bytes": 2600,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ema/",
      "sourceUrl": "https://spectral.trade/indicators/ema.js"
    },
    {
      "id": "ema-clouds",
      "name": "EMA Clouds",
      "shortName": "EMA Clouds",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Shaded bullish and bearish clouds between EMA 4 and three slower averages: EMA 20, SMA 21 and EMA 10.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "ema",
        "cloud",
        "moving average",
        "trend",
        "crossover"
      ],
      "builtIn": "ema-clouds",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showEma20Cloud",
          "type": "boolean",
          "label": "EMA 4 vs EMA 20",
          "default": true,
          "description": "Show the cloud between EMA 4 and EMA 20."
        },
        {
          "key": "showSma21Cloud",
          "type": "boolean",
          "label": "EMA 4 vs SMA 21",
          "default": true,
          "description": "Show the cloud between EMA 4 and SMA 21."
        },
        {
          "key": "showEma10Cloud",
          "type": "boolean",
          "label": "EMA 4 vs EMA 10",
          "default": true,
          "description": "Show the cloud between EMA 4 and EMA 10."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [
          {
            "key": "ema20Bull",
            "label": "EMA 4 above EMA 20",
            "color": "#6FAF8A",
            "opacity": 0.12
          },
          {
            "key": "ema20Bear",
            "label": "EMA 4 below EMA 20",
            "color": "#C98282",
            "opacity": 0.12
          },
          {
            "key": "sma21Bull",
            "label": "EMA 4 above SMA 21",
            "color": "#6FAF8A",
            "opacity": 0.12
          },
          {
            "key": "sma21Bear",
            "label": "EMA 4 below SMA 21",
            "color": "#C98282",
            "opacity": 0.12
          },
          {
            "key": "ema10Bull",
            "label": "EMA 4 above EMA 10",
            "color": "#6FAF8A",
            "opacity": 0.12
          },
          {
            "key": "ema10Bear",
            "label": "EMA 4 below EMA 10",
            "color": "#C98282",
            "opacity": 0.12
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "EMA Clouds shades the space between a fast EMA 4 of the close and each enabled slower average. Three fixed pairs are available: EMA 4 against EMA 20, against SMA 21 and against EMA 10. Each pair has a bullish and a bearish cloud.",
        "howToRead": "A green cloud means EMA 4 is above its slower partner; a red cloud means it is below. Wider spacing shows a larger difference between the averages, and a color flip usually follows a cross.\n\nWhen all enabled clouds share one color the short-term trend agrees across the pairs; mixed colors show a market in transition.",
        "settings": "Turn each pair on or off; colors and opacity are settings of each cloud. Clouds need enough bars for the slower average (about 20) before they appear.",
        "notes": "Computes the same clouds as the built-in EMA Clouds in Spectral. Clouds do not define support, resistance or a trade on their own."
      },
      "sourcePath": "/indicators/ema-clouds.js",
      "sha256": "7e00de7f0b7fa11852e9a3932021f4a77bd1a8eff73054cda1d95c34c391786f",
      "bytes": 3579,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ema-clouds/",
      "sourceUrl": "https://spectral.trade/indicators/ema-clouds.js"
    },
    {
      "id": "ema-ribbon",
      "name": "EMA Ribbon",
      "shortName": "Ribbon",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Three exponential moving averages on the price pane with a shaded band between the fastest and the slowest.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "ema",
        "moving average",
        "ribbon",
        "trend",
        "crossover"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "fast",
          "type": "integer",
          "label": "Fast length",
          "default": 8,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the fast EMA."
        },
        {
          "key": "mid",
          "type": "integer",
          "label": "Mid length",
          "default": 21,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the middle EMA."
        },
        {
          "key": "slow",
          "type": "integer",
          "label": "Slow length",
          "default": 55,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the slow EMA."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the three averages are calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "fast",
            "label": "Fast EMA",
            "color": "#58A6FF",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "mid",
            "label": "Mid EMA",
            "color": "#C4A46A"
          },
          {
            "key": "slow",
            "label": "Slow EMA",
            "color": "#F0883E"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "ribbon",
            "label": "Ribbon",
            "color": "#58A6FF",
            "opacity": 0.08
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Three EMAs of different lengths; the shaded ribbon spans the fast and slow averages.",
        "howToRead": "A fast average above mid above slow with a widening ribbon shows a trending market; a compressed ribbon shows consolidation.",
        "settings": "Keep Fast < Mid < Slow. Shorter lengths react sooner but flip more often. EMAs start at the first bar, so the earliest values are less reliable.",
        "notes": null
      },
      "sourcePath": "/indicators/ema-ribbon.js",
      "sha256": "205118f0f8c7a762f0716dcca5c3cbfe4405531775feae8f94c0c09dedad9832",
      "bytes": 2362,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ema-ribbon/",
      "sourceUrl": "https://spectral.trade/indicators/ema-ribbon.js"
    },
    {
      "id": "envelopes",
      "name": "Moving Average Envelopes",
      "shortName": "ENV",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A moving average with bands a fixed percentage above and below it.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "envelopes",
        "moving average envelope",
        "percent bands",
        "moving average",
        "channel",
        "bands"
      ],
      "builtIn": "envelopes",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the moving average."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Average",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA"
          ],
          "description": "Simple or exponential moving average for the basis."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is computed from."
        },
        {
          "key": "percent",
          "type": "number",
          "label": "Percent",
          "default": 2.5,
          "min": 0.01,
          "max": 50,
          "step": 0.1,
          "description": "Distance of each band from the average, in percent of the average."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "upper",
            "label": "Upper envelope",
            "color": "#B7A1C8",
            "lineWidth": 1
          },
          {
            "key": "lower",
            "label": "Lower envelope",
            "color": "#B7A1C8",
            "lineWidth": 1
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "band",
            "label": "Envelope fill",
            "color": "#B7A1C8",
            "opacity": 0.06
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "tight",
          "name": "Envelopes (20, 1%)",
          "shortName": "ENV 1%",
          "inputs": {
            "percent": 1
          }
        },
        {
          "id": "wide",
          "name": "Envelopes (20, 10%)",
          "shortName": "ENV 10%",
          "inputs": {
            "percent": 10
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Moving Average Envelopes draw a moving average (the basis) with an upper and a lower band a fixed percentage above and below it. With the defaults, the bands sit 2.5 percent above and below the 20-bar simple moving average of the close.\n\nUnlike Bollinger Bands or Keltner Channels, the distance does not follow volatility: it is always the same share of the average.",
        "howToRead": "The envelopes show how far price has stretched from its average. In a range, closes near or beyond a band often mark an overextended move that tends to return toward the basis. In a strong trend, price can hug one envelope for a long time, and a pullback to the basis can be an entry instead.\n\nBecause the width is fixed, choose it for the market: it should contain most of the price action, with only the larger moves reaching the bands.",
        "settings": "Length sets the average (20 is common); Average switches between a simple and an exponential average. Percent sets the band distance: about 2 to 3 percent suits daily stock charts, intraday charts need well under 1 percent, and very volatile markets need more. The presets give tight (1 percent) and wide (10 percent, TradingView's default) envelopes.\n\nThe simple average appears after Length bars; the exponential one from the first bar.",
        "notes": "Matches TradingView's Envelope apart from the default distance: TradingView starts with 10 percent, Spectral with the 2.5 percent StockCharts uses for daily charts, and offers 10 percent as a preset. With the exponential average, the first few dozen values can differ from TradingView's, which starts its average after Length bars."
      },
      "sourcePath": "/indicators/envelopes.js",
      "sha256": "664f188d8f5856fe5be413be4c50d76db5e2a0dee63f033ef589ee23c82315a9",
      "bytes": 3825,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/envelopes/",
      "sourceUrl": "https://spectral.trade/indicators/envelopes.js"
    },
    {
      "id": "fair-value-gaps",
      "name": "Fair Value Gaps",
      "shortName": "FVG",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Boxes every three-bar fair value gap from its first bar until price fills (or touches) it, labelled with the gap size; hovering a box shows its size in percent and whether it is still open.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "fair value gap",
        "fvg",
        "ict",
        "imbalance",
        "gap",
        "box"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "minGap",
          "type": "number",
          "label": "Minimum gap %",
          "default": 0.05,
          "min": 0,
          "max": 5,
          "step": 0.01,
          "description": "Smallest gap drawn, as a percentage of the price."
        },
        {
          "key": "maxBoxes",
          "type": "integer",
          "label": "Gaps shown",
          "default": 60,
          "min": 1,
          "max": 500,
          "description": "Most recent gaps drawn (open and filled)."
        },
        {
          "key": "mitigation",
          "type": "select",
          "label": "Mitigated when",
          "default": "Filled",
          "options": [
            "Filled",
            "Touched"
          ],
          "description": "Filled: a later bar trades through the gap to its far side. Touched: a later bar trades back into the gap at all."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": [
          {
            "key": "gaps",
            "label": "Fair value gaps",
            "color": "#3FB950",
            "palette": "gap",
            "opacity": 0.18,
            "textSize": "small",
            "hideBelowBarWidth": 3
          }
        ]
      },
      "palettes": [
        {
          "key": "gap",
          "label": "Gap",
          "colors": [
            "#3FB950",
            "#F85149",
            "#8B949E"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "A fair value gap (FVG, from ICT's inner-circle-trader teaching) is a three-bar pattern where the middle bar moved so fast that the outer bars do not overlap: bullish when the third bar's low is above the first bar's high, bearish when the third bar's high is below the first bar's low. The gap between them is boxed from the first of the three bars until price mitigates it.",
        "howToRead": "Open gaps (green bullish, red bearish) reach the latest bar; a mitigated gap is drawn grey and ends on the bar that mitigated it. Open gaps often act as support (bullish) or resistance (bearish) when price returns to them. Hover a box for its direction, size, share of the price and state.",
        "settings": "Minimum gap % hides small gaps; Gaps shown limits the drawn boxes to the most recent ones. Mitigated when chooses the rule that closes a gap: Filled (price trades through to the gap's far side, the default) or Touched (price trades back into it). The three colours and the box opacity are appearance settings.",
        "notes": "Rule: bullish FVG when low[i] > high[i - 2], the gap spanning high[i - 2] to low[i]; bearish when high[i] < low[i - 2], spanning high[i] to low[i - 2] (the common ICT definition; there is no formal standard for mitigation, so both readings are offered: a later low at or below the bottom of a bullish gap fills it, one at or below its top touches it; mirrored for bearish gaps). The bar that completes a gap never mitigates it. Minimum gap % compares the gap with the close that formed it. Marks completed bars only (live: none). The text is the gap size in price; the tooltip adds the size as a percentage of that close and whether the gap is open."
      },
      "sourcePath": "/indicators/fair-value-gaps.js",
      "sha256": "80282b83a596ccf8ed4e7fea2b6f63b65a25ab4345facf5e11f0da6a590a220a",
      "bytes": 5855,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/fair-value-gaps/",
      "sourceUrl": "https://spectral.trade/indicators/fair-value-gaps.js"
    },
    {
      "id": "fifty-two-week-high-low",
      "name": "52-Week High/Low",
      "shortName": "52W H/L",
      "version": "1.0.1",
      "author": "Spectral",
      "description": "The highest high and lowest low of the last 52 weeks as levels, read from real daily bars.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "52-week high",
        "52-week low",
        "yearly range",
        "new highs",
        "breakout",
        "higher timeframe"
      ],
      "builtIn": "fifty-two-week-high-low",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showHigh",
          "type": "boolean",
          "label": "52-week high",
          "default": true,
          "description": "Draw the highest regular-session high of the last 52 weeks."
        },
        {
          "key": "showLow",
          "type": "boolean",
          "label": "52-week low",
          "default": true,
          "description": "Draw the lowest regular-session low of the last 52 weeks."
        },
        {
          "key": "showMid",
          "type": "boolean",
          "label": "Midpoint",
          "default": false,
          "description": "Draw the middle of the 52-week range."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "high",
            "label": "52W High",
            "color": "#3FB950",
            "lineWidth": 1.5,
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "low",
            "label": "52W Low",
            "color": "#F85149",
            "lineWidth": 1.5,
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "mid",
            "label": "52W Mid",
            "color": "#8B949E",
            "lineStyle": "dashed",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "1 Y"
        }
      ],
      "docs": {
        "overview": "52-Week High/Low draws the highest high and the lowest low the symbol has traded at over the last year, the range quoted on every stock page and scanned for in new-high and new-low lists. The values come from real daily regular-trading-hours bars that Spectral loads beside the chart, so they are correct on any bar size, even when the chart has loaded only a few days.\n\nEach level starts at the chart bar of the day the extreme was set, or spans the whole chart when that day is older than the loaded chart history.",
        "howToRead": "Price near the 52-week high is at the top of a year of trading: many traders buy breakouts to new highs, because there is no overhead supply from holders at a loss, while others watch for a failed break. The 52-week low is the mirror image. A stock that keeps setting new highs (or lows) is in a strong long-term trend.\n\nThe midpoint splits the range; price above it is in the upper half of the year. The levels are references, not signals.",
        "settings": "52-week high, 52-week low and Midpoint switch each level; the midpoint is off by default.\n\nThe 52 weeks end at the trading date of the chart's last bar and include it, so the current day's high and low count as soon as they print and update live. Values use regular trading hours (09:30 to 16:00 New York time, to 13:00 on early-close days), like the 52-week range most quote pages show; pre-market and after-hours prices are not included.",
        "notes": "The window is one calendar year: every daily bar after the same date a year earlier, up to the chart's last trading date. Some data vendors use closing prices or include extended hours, so their 52-week range can differ slightly.\n\nA symbol that has traded for less than a year (a recent listing) has no full 52 weeks: the built-in in Spectral then draws the range since its first trading day, which is exact for the history that exists, and its status says since when. A copy imported as your own file waits for a full year instead."
      },
      "sourcePath": "/indicators/fifty-two-week-high-low.js",
      "sha256": "6bdc619fcbf08c2aef7b3ec105336e9ba37eff582ca33187bf2001ead0ee382e",
      "bytes": 4636,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/fifty-two-week-high-low/",
      "sourceUrl": "https://spectral.trade/indicators/fifty-two-week-high-low.js"
    },
    {
      "id": "fisher-transform",
      "name": "Fisher Transform",
      "shortName": "Fisher",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Ehlers' Fisher Transform of the median price's position in its recent range, with a one-bar trigger line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "fisher transform",
        "ehlers",
        "trigger line",
        "turning points",
        "momentum",
        "oscillator"
      ],
      "builtIn": "fisher-transform",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Bars in the high-low range of the median price."
        },
        {
          "key": "outerBand",
          "type": "number",
          "label": "Outer bands",
          "default": 1.5,
          "min": 0,
          "max": 10,
          "step": 0.25,
          "description": "Distance of the outer reference bands above and below zero."
        },
        {
          "key": "innerBand",
          "type": "number",
          "label": "Inner bands",
          "default": 0.75,
          "min": 0,
          "max": 10,
          "step": 0.25,
          "description": "Distance of the inner reference bands above and below zero."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "fisher",
            "label": "Fisher",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "trigger",
            "label": "Trigger",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "upperOuter",
            "label": "Upper outer band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "upperInner",
            "label": "Upper inner band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lowerInner",
            "label": "Lower inner band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lowerOuter",
            "label": "Lower outer band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Fisher Transform (John Ehlers) takes the median price, (high + low) / 2, measures its position inside the range of the last Length bars on a -1 to +1 scale, smooths it, and applies the Fisher transform, which stretches values near the ends of the range. Turning points become sharp, clear swings. The trigger line is the Fisher value of the previous bar.",
        "howToRead": "Readings far from zero mark price at an extreme of its recent range; the sharp turns that follow are the indicator's main use. The Fisher line crossing its trigger shows the turn: crossing down from above the upper bands suggests a swing high, crossing up from below the lower bands a swing low.\n\nIt has no fixed upper or lower limit, and in a steady trend it can stay on one side of zero for a long time. Use the bands as a guide to how stretched a move is, not as fixed overbought and oversold levels.",
        "settings": "Length defaults to 9 bars, as on TradingView. Shorter lengths give more swings. Reference bands sit at 1.5 and 0.75 above and below zero. The first value appears on bar Length (bar 9 with the default) and settles over the next few bars, because each value builds on the previous one.",
        "notes": "Matches the Fisher Transform on TradingView: position = 0.66 x (scaled position - 0.5) + 0.67 x previous position, with anything beyond 0.99 set to 0.999, and Fisher = 0.5 x ln((1 + position) / (1 - position)) + 0.5 x previous Fisher. A bar whose window has no range has no value, and the next bar starts again from zero, as on TradingView."
      },
      "sourcePath": "/indicators/fisher-transform.js",
      "sha256": "f464564d4a792e61927aa36039df4d84c5eceed087c3aeba69497fb4f7454119",
      "bytes": 4855,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/fisher-transform/",
      "sourceUrl": "https://spectral.trade/indicators/fisher-transform.js"
    },
    {
      "id": "heikin-ashi-colors",
      "name": "Heikin-Ashi Bar Coloring",
      "shortName": "HA Colors",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Colours the chart's candles by the Heikin-Ashi trend while they keep their true prices, marks the strong Heikin-Ashi bars without a counter shadow, and labels every turn.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "heikin ashi",
        "candles",
        "bar color",
        "trend",
        "reversal"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "showStrong",
          "type": "boolean",
          "label": "Strong bars",
          "default": true,
          "description": "Use the strong colours for Heikin-Ashi bars without a lower shadow (up) or an upper shadow (down)."
        },
        {
          "key": "showTurns",
          "type": "boolean",
          "label": "Turn labels",
          "default": true,
          "description": "Label the bars where the Heikin-Ashi direction turns."
        },
        {
          "key": "minRun",
          "type": "integer",
          "label": "Turn after bars",
          "default": 5,
          "min": 1,
          "max": 50,
          "description": "Label a turn only when it ends a run of at least this many Heikin-Ashi bars of the other colour."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "upTurns",
            "label": "Turns up",
            "color": "#3FB950",
            "style": "pin",
            "placement": "below",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 8
          },
          {
            "key": "downTurns",
            "label": "Turns down",
            "color": "#F85149",
            "style": "pin",
            "placement": "above",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 8
          }
        ],
        "barColors": [
          {
            "key": "candles",
            "label": "Heikin-Ashi candles",
            "palette": "ha"
          }
        ],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "ha",
          "label": "Heikin-Ashi",
          "colors": [
            "#3FB950",
            "#7EC699",
            "#E08A8A",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Heikin-Ashi (\"average bar\" in Japanese) smooths candles: its close is the average of the bar's open, high, low and close, and its open the midpoint of the previous Heikin-Ashi open and close. This indicator keeps the chart's real candles, so every price stays true, and colours each one by its Heikin-Ashi bar: green while the Heikin-Ashi close is at or above its open, red below. A label marks each bar where the colour turns after a run of at least five bars.",
        "howToRead": "Runs of one colour show the trend the smoothing sees; a turn label marks where it changed. The strong colours (bright green and bright red) mark Heikin-Ashi bars without a counter shadow: an up bar whose open is its low, or a down bar whose open is its high. Series of them describe a strong advance or decline; pale bars and frequent turns show a trend losing strength or a range.",
        "settings": "Strong bars uses the pale up and down colours for every bar when it is off. Turn labels switches the labels, and Turn after bars sets how long the run a turn ends must be (1 labels every turn; 5 by default keeps the short flickers of a range unlabelled); the chart shows the 8 most recent turns of each direction on screen. The four candle colours and the label colours are appearance settings.",
        "notes": "Formulas (StockCharts ChartSchool, Heikin-Ashi): HA close = (O + H + L + C) / 4; HA open = (previous HA open + previous HA close) / 2, and (O + C) / 2 on the first bar; HA high = max(H, HA open, HA close); HA low = min(L, HA open, HA close). An HA bar with its close equal to its open counts as up. Because the HA open carries over from the first loaded bar, the colours of the first few bars depend on where the chart's history starts; the effect of the start halves with every bar. The chart keeps the 2,000 most recent labels of each direction."
      },
      "sourcePath": "/indicators/heikin-ashi-colors.js",
      "sha256": "2827b8f6ecfe8f97aef3d88c02dc43da4b1051ddfc7aa137883b687b6435ba37",
      "bytes": 5039,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/heikin-ashi-colors/",
      "sourceUrl": "https://spectral.trade/indicators/heikin-ashi-colors.js"
    },
    {
      "id": "historical-volatility",
      "name": "Historical Volatility",
      "shortName": "HV",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Annualised standard deviation of log returns in percent, scaled correctly for the chart's bar size.",
      "pane": "oscillator",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "historical volatility",
        "realized volatility",
        "standard deviation",
        "log returns",
        "annualized",
        "options",
        "volatility"
      ],
      "builtIn": "historical-volatility",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 10,
          "min": 2,
          "max": 500,
          "description": "Returns in the standard deviation. 10 matches TradingView; 20 or 21 is about one month of daily bars."
        },
        {
          "key": "daysPerYear",
          "type": "integer",
          "label": "Trading days per year",
          "default": 252,
          "min": 1,
          "max": 366,
          "description": "Trading days used to annualise. 252 for stocks and futures; 365 for markets that trade every day, such as crypto."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "hv",
            "label": "HV",
            "color": "#D9A066",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "hv-20",
          "name": "Historical Volatility (20)",
          "shortName": "HV 20",
          "inputs": {
            "length": 20
          }
        },
        {
          "id": "hv-30",
          "name": "Historical Volatility (30)",
          "shortName": "HV 30",
          "inputs": {
            "length": 30
          }
        },
        {
          "id": "every-day",
          "name": "Historical Volatility (365 days)",
          "shortName": "HV 365d",
          "inputs": {
            "daysPerYear": 365
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Historical Volatility (also called realised or statistical volatility) measures how much price has actually been moving. It takes the log return of every bar, the natural log of close divided by the previous close, computes their standard deviation over the last Length bars and annualises it, in percent.\n\nA reading of 25 means that, if returns kept their recent spread for a whole year, a one-standard-deviation year would move price about 25 percent. This is the same scale as implied volatility quoted for options.",
        "howToRead": "Rising HV means bigger swings, falling HV calmer trading; it says nothing about direction. Volatility clusters and tends to revert to its own average, so very low readings often come before an expansion and spikes rarely last.\n\nOption traders compare HV with implied volatility: implied well above historical means options price in more movement than the market has recently delivered, and the other way round. Compare HV between symbols to see which one moves more, independent of its price.",
        "settings": "Length sets how many returns are measured: short lengths react quickly but are noisy; 20 to 30 daily bars (about a month) is the usual reference. Trading days per year sets the annualisation: 252 for exchange-traded markets, 365 for markets open every day.\n\nThe scaling follows the bar size: daily returns are multiplied by the square root of trading days per year, weekly by the square root of 52, monthly by the square root of 12, and intraday returns by the square root of trading days times bars per day. Bars per day is counted from the loaded history (the usual number of bars on a full day), so regular-hours and extended-hours charts both annualise correctly. With fewer than three days loaded, as on second charts, it assumes the 6.5-hour regular session, or 16 hours (04:00 to 20:00) when the chart shows extended hours, or 24 hours with 365 trading days. The first value appears after Length plus one bars. The value updates when each bar completes, not with the forming bar: on intraday charts the annualisation counts bars per day over the whole loaded history.",
        "notes": "Uses the population standard deviation of log returns, as TradingView's Historical Volatility does. TradingView annualises with 365 days and applies the daily factor to intraday bars, so its intraday values are much smaller than an annual figure; on daily charts it reads about 20 percent higher than the 252-day convention used here (set Trading days per year to 365 to match it on daily bars). Gaps such as weekends and overnight count as one return each."
      },
      "sourcePath": "/indicators/historical-volatility.js",
      "sha256": "7f8b53226e07229af9e6326ac733dec1f39ac9506b1b1699a28267b85c35f19a",
      "bytes": 6180,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/historical-volatility/",
      "sourceUrl": "https://spectral.trade/indicators/historical-volatility.js"
    },
    {
      "id": "hod-l",
      "name": "High/Low of Day",
      "shortName": "HOD/L",
      "version": "1.0.1",
      "author": "Spectral",
      "description": "Developing high and low of the current regular session as labeled levels, with optional history.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "high of day",
        "low of day",
        "intraday",
        "session range"
      ],
      "builtIn": "hod-l",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showHistory",
          "type": "boolean",
          "label": "Show history",
          "default": false,
          "description": "Also draw how each session's high and low developed bar by bar, as step lines."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "highHistory",
            "label": "HOD history",
            "color": "#C98282",
            "lineStyle": "dotted",
            "primary": true
          },
          {
            "key": "lowHistory",
            "label": "LOD history",
            "color": "#C98282",
            "lineStyle": "dotted"
          }
        ],
        "levels": [
          {
            "key": "high",
            "label": "HOD",
            "color": "#C98282",
            "showValue": true
          },
          {
            "key": "low",
            "label": "LOD",
            "color": "#C98282",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "High/Low of Day tracks the highest high and the lowest low of the latest New York regular session (09:30-16:00, to 13:00 on early-close days) and draws them as two labeled levels. Before the session opens it falls back to the extremes of all bars of the latest date.",
        "howToRead": "The levels show the range of the current session. A test of the high or low of day shows whether the range is expanding; a reclaim or rejection there is common intraday context. Treat a touch as information, not as an entry by itself.",
        "settings": "Show history adds step lines that show how each session's high and low developed bar by bar. Use a bar size of 15 minutes or less: with larger bars, the bar that contains the 09:30 open starts earlier and is not counted as part of the session.",
        "notes": "Matches the built-in HOD/L in Spectral on bar sizes up to 15 minutes. On larger bar sizes the built-in reads 30-minute regular-session bars to stay exact, which a custom indicator cannot do in schema v1."
      },
      "sourcePath": "/indicators/hod-l.js",
      "sha256": "024aadc7a3b951f2afa16c84a7ac5d370f57376db590aaf57932072da2eee6d9",
      "bytes": 3749,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/hod-l/",
      "sourceUrl": "https://spectral.trade/indicators/hod-l.js"
    },
    {
      "id": "hull-ma",
      "name": "Hull Moving Average",
      "shortName": "HMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Alan Hull's moving average: a smooth line with very little lag, built from weighted averages, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "2*length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "hull",
        "hma",
        "moving average",
        "low lag",
        "trend"
      ],
      "builtIn": "hull-ma",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 9,
          "min": 2,
          "max": 1000,
          "description": "Number of bars the average covers. Longer lengths are smoother; the Hull average stays responsive even at long lengths."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "hull",
            "label": "HMA",
            "color": "#7FB5A0",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "hma-21",
          "name": "Hull MA 21",
          "shortName": "HMA 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "hma-55",
          "name": "Hull MA 55",
          "shortName": "HMA 55",
          "inputs": {
            "length": 55
          }
        },
        {
          "id": "hma-200",
          "name": "Hull MA 200",
          "shortName": "HMA 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Hull Moving Average, published by Alan Hull in 2005, aims to be both smooth and fast. It takes a weighted moving average (WMA) over half the length, doubles it, subtracts the WMA over the full length, and smooths the result with a WMA over the square root of the length.\n\nThe doubling pushes the line ahead to offset the lag of the full average, and the short final smoothing removes the noise this adds. On a steady straight-line trend the Hull average stays within a fraction of a bar of price instead of trailing behind it.",
        "howToRead": "Traders mainly read the slope: a Hull line turning up marks a shift to rising prices, turning down a shift to falling ones, and these turns come earlier than on an SMA or EMA of the same length. Price holding above a rising Hull line describes a healthy up-move.\n\nThe speed has a cost: after a sharp move the line overshoots, so it can run beyond price for a few bars before it turns, and in sideways markets it turns often. It describes direction; it is not a support level as reliably as slower averages.",
        "settings": "Length defaults to 9 bars, as on most platforms; the presets add 21, 55 and 200 for swing and trend views. The half length and the square-root length are rounded down, so lengths 16 and 17 both smooth over 4 bars.\n\nThe first value appears on bar Length + square-root length - 1, for example on bar 11 with the default length.",
        "notes": "Alan Hull's formula with the half length and the square-root length rounded down, as in TradingView's Hull Moving Average script. Some implementations round the square root to the nearest whole number instead, which changes the final smoothing for a few lengths (21 smooths over 4 bars here, over 5 there). The Moving Average indicator offers the same line as its HMA type, next to the other common averages."
      },
      "sourcePath": "/indicators/hull-ma.js",
      "sha256": "35f7f1739e34501f98aa9ea9bdae75a00e9ccfcadcef5788734c3524d97ed830",
      "bytes": 3614,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/hull-ma/",
      "sourceUrl": "https://spectral.trade/indicators/hull-ma.js"
    },
    {
      "id": "ichimoku-cloud",
      "name": "Ichimoku Cloud",
      "shortName": "Ichimoku",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Ichimoku Kinko Hyo: conversion and base lines, a cloud of two leading spans projected into the future, and the lagging close.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "conversionLength + baseLength + spanBLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "ichimoku",
        "kumo",
        "cloud",
        "tenkan",
        "kijun",
        "senkou span",
        "chikou",
        "support resistance"
      ],
      "builtIn": "ichimoku-cloud",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "conversionLength",
          "type": "integer",
          "label": "Conversion line length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Bars in the conversion line (Tenkan-sen), the middle of their highest high and lowest low."
        },
        {
          "key": "baseLength",
          "type": "integer",
          "label": "Base line length",
          "default": 26,
          "min": 1,
          "max": 500,
          "description": "Bars in the base line (Kijun-sen), the middle of their highest high and lowest low."
        },
        {
          "key": "spanBLength",
          "type": "integer",
          "label": "Leading span B length",
          "default": 52,
          "min": 1,
          "max": 500,
          "description": "Bars in leading span B (Senkou Span B), the middle of their highest high and lowest low."
        },
        {
          "key": "displacement",
          "type": "integer",
          "label": "Displacement",
          "default": 26,
          "min": 1,
          "max": 250,
          "description": "How far the cloud is projected forward and the lagging span drawn back, counting the current bar as the first, as on TradingView."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "conversion",
            "label": "Conversion line",
            "color": "#2962FF",
            "lineWidth": 1
          },
          {
            "key": "base",
            "label": "Base line",
            "color": "#B71C1C",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "lagging",
            "label": "Lagging span",
            "color": "#43A047",
            "lineWidth": 1,
            "offset": "-displacement+1"
          },
          {
            "key": "spanA",
            "label": "Leading span A",
            "color": "#A5D6A7",
            "lineWidth": 1,
            "offset": "displacement-1"
          },
          {
            "key": "spanB",
            "label": "Leading span B",
            "color": "#EF9A9A",
            "lineWidth": 1,
            "offset": "displacement-1"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "bullCloud",
            "label": "Cloud, span A above B",
            "color": "#43A047",
            "opacity": 0.2,
            "offset": "displacement-1"
          },
          {
            "key": "bearCloud",
            "label": "Cloud, span B above A",
            "color": "#E53935",
            "opacity": 0.2,
            "offset": "displacement-1"
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "crypto",
          "name": "Ichimoku Cloud (20, 60, 120, 30)",
          "shortName": "Ichimoku 20",
          "inputs": {
            "conversionLength": 20,
            "baseLength": 60,
            "spanBLength": 120,
            "displacement": 30
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Ichimoku Kinko Hyo (one-glance equilibrium chart) by Goichi Hosoda. The conversion line (Tenkan-sen) and the base line (Kijun-sen) are the middle of the highest high and lowest low over 9 and 26 bars. Leading span A (Senkou Span A) is the average of those two lines and leading span B (Senkou Span B) the middle of the 52-bar range; both are projected 26 bars forward, counting the current bar as the first (25 bars past it), and the area between them is the cloud (Kumo). The lagging span (Chikou Span) is the close drawn back the same way.\n\nBecause the spans are projected forward, the cloud continues into the empty space right of the last bar and shows where support or resistance will sit in the coming bars.",
        "howToRead": "Price above the cloud is bullish, below it bearish, inside it undecided. A green cloud (span A above span B) leans up, a red cloud leans down, and a thick cloud is stronger support or resistance than a thin one; a twist of the spans ahead of price warns of a possible change of trend.\n\nThe conversion line crossing above the base line is a bullish signal (Tenkan/Kijun cross), stronger above the cloud; the reverse is bearish. The base line acts as a level price often returns to. The lagging span above the price it is drawn against confirms an uptrend, below it a downtrend.",
        "settings": "The lengths 9, 26 and 52 and the displacement of 26 are Hosoda's originals for a six-day trading week; the preset 20, 60, 120 and 30 is a common choice for markets that trade around the clock. The displacement only moves the spans and does not change their values. The cloud needs Leading span B length bars before it appears.",
        "notes": "Matches TradingView's Ichimoku Cloud: the displacement counts the current bar as the first, so with 26 the cloud reaches 25 bars past the last bar and the lagging span sits 25 bars back, and the cloud is green where span A is above span B and red elsewhere."
      },
      "sourcePath": "/indicators/ichimoku-cloud.js",
      "sha256": "a09deaf4c2ac5d6c3d4b6a5bc7243c8868bd887d101433164c0fa4d0dcb11100",
      "bytes": 6010,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ichimoku-cloud/",
      "sourceUrl": "https://spectral.trade/indicators/ichimoku-cloud.js"
    },
    {
      "id": "ichimoku-colored",
      "name": "Ichimoku Cloud Colored",
      "shortName": "Ichimoku",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Ichimoku Kinko Hyo with one cloud coloured bar by bar (green where leading span A is above B, red elsewhere) and a label at every Tenkan/Kijun cross.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "conversionLength + baseLength + spanBLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "ichimoku",
        "cloud",
        "kumo",
        "tenkan",
        "kijun",
        "crossover"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "conversionLength",
          "type": "integer",
          "label": "Conversion line length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Bars in the conversion line (Tenkan-sen), the middle of their highest high and lowest low."
        },
        {
          "key": "baseLength",
          "type": "integer",
          "label": "Base line length",
          "default": 26,
          "min": 1,
          "max": 500,
          "description": "Bars in the base line (Kijun-sen), the middle of their highest high and lowest low."
        },
        {
          "key": "spanBLength",
          "type": "integer",
          "label": "Leading span B length",
          "default": 52,
          "min": 1,
          "max": 500,
          "description": "Bars in leading span B (Senkou Span B), the middle of their highest high and lowest low."
        },
        {
          "key": "displacement",
          "type": "integer",
          "label": "Displacement",
          "default": 26,
          "min": 1,
          "max": 250,
          "description": "How far the cloud is projected forward and the lagging span drawn back, counting the current bar as the first, as on TradingView."
        },
        {
          "key": "showCrosses",
          "type": "boolean",
          "label": "Cross labels",
          "default": true,
          "description": "Label the bars where the conversion line crosses the base line."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "conversion",
            "label": "Conversion line",
            "color": "#2962FF",
            "lineWidth": 1
          },
          {
            "key": "base",
            "label": "Base line",
            "color": "#B71C1C",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "lagging",
            "label": "Lagging span",
            "color": "#43A047",
            "lineWidth": 1,
            "offset": "-displacement+1"
          },
          {
            "key": "spanA",
            "label": "Leading span A",
            "color": "#A5D6A7",
            "lineWidth": 1,
            "offset": "displacement-1"
          },
          {
            "key": "spanB",
            "label": "Leading span B",
            "color": "#EF9A9A",
            "lineWidth": 1,
            "offset": "displacement-1"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "cloud",
            "label": "Cloud",
            "color": "#43A047",
            "opacity": 0.2,
            "offset": "displacement-1",
            "palette": "kumo"
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "tkUp",
            "label": "Bullish TK cross",
            "color": "#2EA043",
            "style": "pin",
            "placement": "below",
            "textSize": "small"
          },
          {
            "key": "tkDown",
            "label": "Bearish TK cross",
            "color": "#DA3633",
            "style": "pin",
            "placement": "above",
            "textSize": "small"
          }
        ],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "kumo",
          "label": "Cloud colors",
          "colors": [
            "#43A047",
            "#E53935"
          ]
        }
      ],
      "presets": [
        {
          "id": "crypto",
          "name": "Ichimoku Cloud Colored (20, 60, 120, 30)",
          "shortName": "Ichimoku 20",
          "inputs": {
            "conversionLength": 20,
            "baseLength": 60,
            "spanBLength": 120,
            "displacement": 30
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Ichimoku Kinko Hyo (one-glance equilibrium chart) by Goichi Hosoda. The conversion line (Tenkan-sen) and the base line (Kijun-sen) are the middle of the highest high and lowest low over 9 and 26 bars. Leading span A (Senkou Span A) is the average of those two lines and leading span B (Senkou Span B) the middle of the 52-bar range; both are projected 26 bars forward, counting the current bar as the first. The cloud (Kumo) between them is one area coloured bar by bar, and every Tenkan/Kijun cross gets a label.",
        "howToRead": "Price above the cloud is bullish, below it bearish, inside it undecided. Where span A is above span B the cloud is green, elsewhere red; a thick cloud is stronger support or resistance than a thin one, and a colour change ahead of price warns of a possible change of trend.\n\nTK up marks the conversion line crossing above the base line, the classic bullish signal, stronger when it happens above the cloud; TK down is the bearish cross. The lagging span above the price it is drawn against confirms an uptrend, below it a downtrend.",
        "settings": "The lengths 9, 26 and 52 and the displacement of 26 are Hosoda's originals for a six-day trading week; the preset 20, 60, 120 and 30 is a common choice for markets that trade around the clock. The displacement only moves the spans and the cloud and does not change their values. Cross labels switches the labels. The two cloud colours are appearance settings.",
        "notes": "Formulas (StockCharts ChartSchool, Ichimoku Cloud): Tenkan = (9-bar high + 9-bar low) / 2, Kijun = (26-bar high + 26-bar low) / 2, Senkou A = (Tenkan + Kijun) / 2 and Senkou B = (52-bar high + 52-bar low) / 2, both drawn 26 bars ahead, Chikou = close drawn 26 bars back. The displacement counts the current bar as the first, as TradingView does, so the cloud reaches 25 bars past the last bar. A cross is a bar whose conversion line is above the base line after it was at or below it on the bar before (below after at or above for a bearish cross). Same values as the built-in Ichimoku Cloud, which draws two clouds instead of one coloured one. The chart keeps the 2,000 most recent labels of each direction."
      },
      "sourcePath": "/indicators/ichimoku-colored.js",
      "sha256": "6e74c048785ecdfbddcb9b89351e2e9878a44c99868d438ba249c108053567b8",
      "bytes": 6752,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ichimoku-colored/",
      "sourceUrl": "https://spectral.trade/indicators/ichimoku-colored.js"
    },
    {
      "id": "initial-balance",
      "name": "Initial Balance",
      "shortName": "IB",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "High (IBH) and low (IBL) of the opening period of the New York regular session, drawn once the period completes.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "initial balance",
        "opening range",
        "market profile",
        "session"
      ],
      "builtIn": "initial-balance",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "duration",
          "type": "select",
          "label": "IB duration",
          "default": "60 minutes",
          "options": [
            "15 minutes",
            "30 minutes",
            "45 minutes",
            "60 minutes",
            "120 minutes"
          ],
          "description": "Opening period measured from 09:30 New York time."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "high",
            "label": "IBH",
            "color": "#9AA5B1",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "low",
            "label": "IBL",
            "color": "#9AA5B1",
            "lineStyle": "dashed",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Initial Balance records the highest high (IBH) and the lowest low (IBL) of the selected opening period of the latest New York regular session, starting at 09:30. Both levels appear once that period has completed and then stay for the rest of the day.",
        "howToRead": "The IB range frames early-session balance. A move outside it can be watched for acceptance, rejection or a return into the range, and the width of the range tells you how volatile the opening was.",
        "settings": "Choose 15, 30, 45, 60 (default) or 120 minutes. Use a bar size that divides the duration evenly and starts at 09:30, for example 1, 5 or 15 minutes; with larger bars the period cannot be measured exactly.",
        "notes": "Computes the same levels as the built-in Initial Balance in Spectral on 1-minute and other evenly dividing bar sizes. The built-in reads 1-minute bars on every bar size, which a custom indicator cannot do in schema v1. IB does not define breakouts or targets."
      },
      "sourcePath": "/indicators/initial-balance.js",
      "sha256": "9fd809c6b436e11a8f14db576b8ec1ba36c55c95879dc871d608a3ec1a975109",
      "bytes": 3445,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/initial-balance/",
      "sourceUrl": "https://spectral.trade/indicators/initial-balance.js"
    },
    {
      "id": "inside-bar-shapes",
      "name": "Inside Bar Breakouts",
      "shortName": "IB Break",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Marks inside bars with a triangle below the bar and the first close beyond the mother bar with an arrow.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "inside bar",
        "breakout",
        "markers",
        "price action",
        "mother bar"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "maxRatio",
          "type": "number",
          "label": "Tight ratio",
          "default": 0.5,
          "min": 0.1,
          "max": 1,
          "step": 0.05,
          "description": "An inside bar whose range is at most this share of the mother bar range is drawn in the tight colour."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "inside",
            "label": "Inside bar",
            "color": "#58A6FF",
            "shape": "triangleUp",
            "size": "small",
            "placement": "belowBar",
            "palette": "inside",
            "hideBelowBarWidth": 2
          },
          {
            "key": "breakUp",
            "label": "Breakout up",
            "color": "#3FB950",
            "shape": "arrowUp",
            "size": "normal",
            "placement": "belowBar"
          },
          {
            "key": "breakDown",
            "label": "Breakout down",
            "color": "#F85149",
            "shape": "arrowDown",
            "size": "normal",
            "placement": "aboveBar"
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "inside",
          "label": "Inside bar",
          "colors": [
            "#58A6FF",
            "#D29922"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "A small triangle under every inside bar (its high and low inside the mother bar, the bar before the first inside bar), and an arrow on the first bar that closes above or below the mother bar.",
        "howToRead": "A run of triangles shows compression; the arrow marks the close that broke out of it. Tight inside bars (the second colour) often precede the stronger breaks.",
        "settings": "Tight ratio sets which inside bars are drawn in the tight colour: their range as a share of the mother bar range.",
        "notes": "Marks completed bars only (live: none), so the forming bar never flickers in and out. On a long chart only the newest 4,000 inside bars and breakouts of each kind are marked (Spectral keeps at most 4,000 shape markers per key)."
      },
      "sourcePath": "/indicators/inside-bar-shapes.js",
      "sha256": "7c3063b2960de05305372142313c1ccd56ef89f20162c31c1869d25ea544b970",
      "bytes": 3385,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/inside-bar-shapes/",
      "sourceUrl": "https://spectral.trade/indicators/inside-bar-shapes.js"
    },
    {
      "id": "inside-bars",
      "name": "Inside Bars",
      "shortName": "IB",
      "version": "1.0.1",
      "author": "Spectral examples",
      "description": "Marks completed bars whose high and low sit inside the previous bar.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Patterns & signals",
      "tags": [
        "inside bar",
        "candlestick pattern",
        "compression",
        "breakout",
        "price action"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "maxRatio",
          "type": "number",
          "label": "Max range ratio",
          "default": 1,
          "min": 0.1,
          "max": 1,
          "step": 0.05,
          "description": "Largest inside-bar range as a share of the previous bar range. 1 marks every inside bar; lower values mark only tight ones."
        },
        {
          "key": "regularOnly",
          "type": "boolean",
          "label": "Regular session only",
          "default": false,
          "description": "Mark only regular-session bars: 09:30 to 16:00 New York time, to 13:00 on early-close days."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "inside",
            "label": "Inside bar",
            "color": "#58A6FF",
            "radius": 4
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "A dot under every bar whose range is contained in the previous bar's range.",
        "howToRead": "Clusters of inside bars show compression; a break of the enclosing bar often starts the next move.",
        "settings": "Lower Max range ratio to mark only tight inside bars. Turn on Regular session only to ignore pre-market and after-hours bars.",
        "notes": "Marks completed bars only (live: none), so the forming bar never flickers in and out."
      },
      "sourcePath": "/indicators/inside-bars.js",
      "sha256": "587094e864b7e78c0a95ac6380d1ae4efd2f199054ef07090cf09f6981bf097c",
      "bytes": 2119,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/inside-bars/",
      "sourceUrl": "https://spectral.trade/indicators/inside-bars.js"
    },
    {
      "id": "kama",
      "name": "Kaufman Adaptive Moving Average",
      "shortName": "KAMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Perry Kaufman's adaptive moving average: fast when price trends cleanly, nearly flat when it chops, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "kama",
        "kaufman",
        "adaptive",
        "moving average",
        "efficiency ratio",
        "trend"
      ],
      "builtIn": "kama",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Efficiency length",
          "default": 10,
          "min": 1,
          "max": 1000,
          "description": "Bars over which the efficiency ratio compares the net price change with the total bar-to-bar movement."
        },
        {
          "key": "fastLength",
          "type": "integer",
          "label": "Fast length",
          "default": 2,
          "min": 1,
          "max": 1000,
          "description": "EMA length the average moves at when price trends perfectly (efficiency ratio 1)."
        },
        {
          "key": "slowLength",
          "type": "integer",
          "label": "Slow length",
          "default": 30,
          "min": 1,
          "max": 1000,
          "description": "EMA length the average moves at when price goes nowhere (efficiency ratio 0)."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "kama",
            "label": "KAMA",
            "color": "#9FB86F",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "kama-14",
          "name": "KAMA 14",
          "shortName": "KAMA 14",
          "inputs": {
            "length": 14
          }
        },
        {
          "id": "kama-20",
          "name": "KAMA 20",
          "shortName": "KAMA 20",
          "inputs": {
            "length": 20
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Kaufman Adaptive Moving Average, described by Perry Kaufman in Smarter Trading (1995), changes its speed with the market. Over the last Efficiency length bars it divides the net price change by the sum of all bar-to-bar moves. This efficiency ratio is 1 when price moved in a straight line and near 0 when it went back and forth without getting anywhere.\n\nThe ratio sets the smoothing between the speed of a Fast length EMA and a Slow length EMA, and that value is squared, so noise slows the line down sharply. Each bar the average moves that fraction of the way from its previous value toward price.",
        "howToRead": "In a clean trend KAMA follows price closely; in a choppy range it goes almost flat and lets price swing around it. A flat KAMA therefore describes a market without direction, and a KAMA that starts to slope again shows that price has begun to move efficiently.\n\nBecause it barely moves on noise, price crossing a flat KAMA is less meaningful than the line itself turning. Many traders use its slope as a trend filter and its flat stretches as a sign to stand aside from trend trades.",
        "settings": "The defaults 10, 2 and 30 are Kaufman's own and the most widely published. A longer Efficiency length judges the trend over more bars; the presets use 14 and 20. Fast length sets how closely the line can follow a strong trend; Slow length how still it stays in noise. Keep Fast below Slow.\n\nThe first value appears on bar Efficiency length + 1 and equals that bar's price; the line then adapts from there.",
        "notes": "Follows Kaufman's definition: smoothing constant (ER x (fast - slow) + slow) squared, with fast and slow as 2 / (length + 1). The first value is that bar's price; other implementations start from the previous price or from a simple average, so the first values can differ until the line has adapted, after which they agree."
      },
      "sourcePath": "/indicators/kama.js",
      "sha256": "46801f1aa935782af48b3d1659c59c12e1cf94bcc07434aadeea45a7eec6db17",
      "bytes": 4540,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/kama/",
      "sourceUrl": "https://spectral.trade/indicators/kama.js"
    },
    {
      "id": "keltner-channels",
      "name": "Keltner Channels",
      "shortName": "KC",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "An exponential moving average with bands a multiple of the Average True Range above and below it.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "keltner channels",
        "channel",
        "atr",
        "ema",
        "bands",
        "squeeze",
        "volatility"
      ],
      "builtIn": "keltner-channels",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the moving average of the basis (and of the range when Bands use Range)."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Basis average",
          "default": "EMA",
          "options": [
            "EMA",
            "SMA"
          ],
          "description": "Moving average of the basis. The modern definition uses an EMA; Chester Keltner's original used a simple average."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the basis is computed from."
        },
        {
          "key": "mult",
          "type": "number",
          "label": "Multiplier",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of each band from the basis, as a multiple of the band range (the ATR by default)."
        },
        {
          "key": "bandsStyle",
          "type": "select",
          "label": "Bands",
          "default": "Average True Range",
          "options": [
            "Average True Range",
            "True Range",
            "Range"
          ],
          "description": "What the multiplier scales: the Average True Range, the current bar's true range, or a smoothed high-to-low range over Length bars."
        },
        {
          "key": "atrLength",
          "type": "integer",
          "label": "ATR length",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the Average True Range (Wilder smoothing) when Bands use Average True Range."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#7FB5A0",
            "lineWidth": 1
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#7FB5A0",
            "lineWidth": 1
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "band",
            "label": "Channel fill",
            "color": "#7FB5A0",
            "opacity": 0.07
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "squeeze",
          "name": "Keltner Channels (20, 1.5 ATR)",
          "shortName": "KC 1.5",
          "inputs": {
            "mult": 1.5
          }
        },
        {
          "id": "classic",
          "name": "Keltner Channels (classic)",
          "shortName": "KC classic",
          "inputs": {
            "length": 10,
            "maType": "SMA",
            "source": "hlc3",
            "bandsStyle": "Range",
            "mult": 1
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Keltner Channels draw a moving average of price (the basis) with an upper and a lower band at a multiple of the Average True Range (ATR) above and below it. Because ATR measures the typical bar size including gaps, the channel widens in volatile markets and narrows in quiet ones.\n\nWith the defaults, the basis is the 20-bar exponential moving average of the close and the bands sit two 10-bar ATRs away, as on TradingView.",
        "howToRead": "In a trend, price tends to hold one side of the basis: pullbacks to the basis are common entries, and a close outside a band shows unusual strength or weakness. In a range, the bands mark where moves tend to stall.\n\nKeltner Channels are smoother than Bollinger Bands, because ATR reacts less to a single large close than a standard deviation. When the Bollinger Bands contract inside the Keltner Channels, volatility is unusually low: the squeeze many traders watch (the Keltner 1.5 preset is the common setting for it).",
        "settings": "Length sets the basis average; Multiplier the band distance (2 is standard, 1.5 for squeeze setups, 1 for tight channels). Bands chooses the range the multiplier scales: Average True Range over ATR length bars (standard), the current bar's true range (very jumpy), or the high-to-low range smoothed over Length bars. The classic preset approximates Chester Keltner's 1960 version: a 10-bar simple average of the typical price with bands one average range away.\n\nThe bands appear once the basis and the range both have values: after ATR length bars by default.",
        "notes": "Matches TradingView's Keltner Channels, including its three band styles; the Range style uses Wilder smoothing of high minus low, as TradingView does, where Keltner used a simple average. The exponential basis starts at the first bar, while TradingView starts it after Length bars, so the bands appear earlier here and their first few dozen values can differ; later values match."
      },
      "sourcePath": "/indicators/keltner-channels.js",
      "sha256": "a357901e248ec8f3cef43fcf4e56262d19ceb2356331ee36d8a88bbd04767dff",
      "bytes": 5159,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/keltner-channels/",
      "sourceUrl": "https://spectral.trade/indicators/keltner-channels.js"
    },
    {
      "id": "keltner-trend-shading",
      "name": "Keltner Channel Trend Shading",
      "shortName": "KC Trend",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Keltner Channels (EMA 20 +/- 2 ATR 10) with the basis and channel coloured by the direction of the EMA and the pane shaded where a bar closes outside the bands.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Volatility",
      "tags": [
        "keltner",
        "channel",
        "atr",
        "ema",
        "trend",
        "breakout"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "EMA length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the EMA of the close that forms the basis."
        },
        {
          "key": "mult",
          "type": "number",
          "label": "ATR multiplier",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of each band from the basis, in multiples of the Average True Range."
        },
        {
          "key": "atrLength",
          "type": "integer",
          "label": "ATR length",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the Average True Range (Wilder smoothing)."
        },
        {
          "key": "shadeOutside",
          "type": "boolean",
          "label": "Shade closes outside",
          "default": true,
          "description": "Shade the bars that close above the upper band or below the lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "palette": "trend",
            "primary": true
          },
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#8B949E",
            "lineWidth": 1
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#8B949E",
            "lineWidth": 1
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "channel",
            "label": "Channel fill",
            "color": "#8B949E",
            "opacity": 0.08,
            "palette": "trend"
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [
          {
            "key": "breakout",
            "label": "Close outside the bands",
            "palette": "outside",
            "opacity": 0.1
          }
        ],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "trend",
          "label": "Trend",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        },
        {
          "key": "outside",
          "label": "Close outside",
          "colors": [
            "#2EA043",
            "#DA3633"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Keltner Channels in Linda Bradford Raschke's ATR form: an EMA of the close as the basis, with bands a multiple of the Average True Range above and below it (EMA 20 +/- 2 x ATR 10 by default). The basis and the channel fill turn green while the EMA rises and red while it falls, and the pane is shaded on every bar that closes outside the bands.",
        "howToRead": "The colour of the channel is the direction of the trend the EMA follows. A close above the upper band (green shading) is a strong move up, a close below the lower band (red shading) a strong move down: in a trend of the same colour they show strength and continuation, against it an overextended move that often returns into the channel. Narrow bands mean low volatility, wide bands high volatility.",
        "settings": "EMA length sets the basis, ATR length and ATR multiplier the width of the bands (the squeeze preset of many traders is 1.5). Shade closes outside switches the shading. The trend colours, the shading colours and its opacity are appearance settings.",
        "notes": "Formulas (StockCharts ChartSchool, Keltner Channels): middle line = EMA(20) of the close, upper = EMA + 2 x ATR(10), lower = EMA - 2 x ATR(10), with the ATR a Wilder average of the true range seeded with the plain average of the first 10 values; Chester Keltner's 1960 original used a 10-day average of the typical price and range instead. The EMA starts at the first close. The basis counts as rising when it is at or above the previous bar's basis. Same bands as the built-in Keltner Channels with its default settings."
      },
      "sourcePath": "/indicators/keltner-trend-shading.js",
      "sha256": "aabbd6cbaafe256e9b156ca18ff93d6082b08c92b98381a0b17edd04c2e04dab",
      "bytes": 4606,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/keltner-trend-shading/",
      "sourceUrl": "https://spectral.trade/indicators/keltner-trend-shading.js"
    },
    {
      "id": "kst",
      "name": "Know Sure Thing",
      "shortName": "KST",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A weighted sum of four smoothed rates of change over rising lookbacks, with a signal line and a zero line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "rocLength1 + rocLength2 + rocLength3 + rocLength4",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "kst",
        "know sure thing",
        "martin pring",
        "rate of change",
        "signal line",
        "momentum"
      ],
      "builtIn": "kst",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "rocLength1",
          "type": "integer",
          "label": "ROC length 1",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the shortest rate of change, weighted 1."
        },
        {
          "key": "rocLength2",
          "type": "integer",
          "label": "ROC length 2",
          "default": 15,
          "min": 1,
          "max": 500,
          "description": "Bars in the second rate of change, weighted 2."
        },
        {
          "key": "rocLength3",
          "type": "integer",
          "label": "ROC length 3",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the third rate of change, weighted 3."
        },
        {
          "key": "rocLength4",
          "type": "integer",
          "label": "ROC length 4",
          "default": 30,
          "min": 1,
          "max": 500,
          "description": "Bars in the longest rate of change, weighted 4."
        },
        {
          "key": "smaLength1",
          "type": "integer",
          "label": "SMA length 1",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the simple average of the first rate of change."
        },
        {
          "key": "smaLength2",
          "type": "integer",
          "label": "SMA length 2",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the simple average of the second rate of change."
        },
        {
          "key": "smaLength3",
          "type": "integer",
          "label": "SMA length 3",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the simple average of the third rate of change."
        },
        {
          "key": "smaLength4",
          "type": "integer",
          "label": "SMA length 4",
          "default": 15,
          "min": 1,
          "max": 500,
          "description": "Bars in the simple average of the fourth rate of change."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Bars in the simple average of KST that forms the signal line."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the rates of change are calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "kst",
            "label": "KST",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Know Sure Thing (Martin Pring) combines four rates of change over 10, 15, 20 and 30 bars. Each is smoothed with a simple average, and the four are added with weights 1, 2, 3 and 4, so the longer cycles count more. The signal line is a 9-bar simple average of KST.",
        "howToRead": "Above zero the combined momentum of the four cycles is positive, below zero negative. KST crossing its signal line is the main signal; Pring gave crosses far from zero, after a long run in one direction, the most weight.\n\nBecause it blends short and long cycles, KST turns more smoothly than a single rate of change and gives fewer, later crosses. Divergences against price show the cycles losing strength.",
        "settings": "Defaults are Pring's short-term settings, also TradingView's: rates of change of 10, 15, 20 and 30 bars, smoothed by 10, 10, 10 and 15, with a 9-bar signal. The first value appears on bar ROC length 4 + SMA length 4 (bar 45 with the defaults).",
        "notes": "Matches the KST on TradingView and most platforms. Pring also published longer settings for weekly and monthly charts; set the lengths to use them."
      },
      "sourcePath": "/indicators/kst.js",
      "sha256": "fba0ce08edfeadbb41658f7f6763baef203c4e0987c4ac2b789cc32ecb3c153e",
      "bytes": 4743,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/kst/",
      "sourceUrl": "https://spectral.trade/indicators/kst.js"
    },
    {
      "id": "linear-regression-channel",
      "name": "Linear Regression Channel",
      "shortName": "LRC",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The best-fit straight line through the last bars, with a channel a chosen number of standard deviations around it.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volatility",
      "tags": [
        "linear regression",
        "regression channel",
        "trend",
        "standard deviation",
        "channel",
        "least squares"
      ],
      "builtIn": "linear-regression-channel",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 100,
          "min": 2,
          "max": 5000,
          "description": "Bars the regression line is fitted to, counting back from the last bar."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the line is fitted to."
        },
        {
          "key": "upperDeviation",
          "type": "number",
          "label": "Upper deviation",
          "default": 2,
          "min": 0,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the upper channel line above the regression line, in standard deviations of price around the line. 0 hides the upper line."
        },
        {
          "key": "lowerDeviation",
          "type": "number",
          "label": "Lower deviation",
          "default": 2,
          "min": 0,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the lower channel line below the regression line, in standard deviations of price around the line. 0 hides the lower line."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "regression",
            "label": "Regression line",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "upper",
            "label": "Upper channel",
            "color": "#8AA9C3",
            "lineWidth": 1
          },
          {
            "key": "lower",
            "label": "Lower channel",
            "color": "#8AA9C3",
            "lineWidth": 1
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "channel",
            "label": "Channel fill",
            "color": "#8AA9C3",
            "opacity": 0.07
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "lrc-50",
          "name": "Linear Regression Channel (50)",
          "shortName": "LRC 50",
          "inputs": {
            "length": 50
          }
        },
        {
          "id": "lrc-200",
          "name": "Linear Regression Channel (200)",
          "shortName": "LRC 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Linear Regression Channel fits the straight line that best follows price over the last Length bars (least squares on the source), and draws channel lines a number of standard deviations above and below it. The standard deviation is measured from price to the line, so the channel shows how tightly price has followed the trend.\n\nThe channel covers only the last Length bars: it describes the current window, not the history.",
        "howToRead": "The slope of the line is the trend of the window: rising, falling or flat. Price near the upper channel line is stretched above the trend, near the lower line below it; with two standard deviations, most of the window's closes lie inside the channel, so touches of the outer lines often stall or reverse while the trend holds.\n\nA close well outside the channel, or a channel that suddenly turns, means the trend the line describes has changed. A narrow channel means price has followed the line closely; a wide one, a loose and noisy trend.",
        "settings": "Length sets the window: 100 bars by default, shorter for the most recent swing, longer for the larger trend. Upper deviation and Lower deviation set each channel line separately; 2 is standard, and 0 hides that line.\n\nThe whole channel is refitted when each bar completes, so its past position changes: it is a description of the current window, not a signal history. While a bar forms, its own point follows every price change (fitted over the window that ends with it), and the rest of the channel is redrawn when the bar completes. It is drawn once the chart has at least Length bars.",
        "notes": "Matches TradingView's Linear Regression Channel: the same least-squares line, and the standard deviation of price around the line divided by Length minus one. TradingView can also extend the lines into the future and print the Pearson correlation; Spectral draws the channel over the window only."
      },
      "sourcePath": "/indicators/linear-regression-channel.js",
      "sha256": "707fbe7fb64929b3ce8f823928651be6032b8ff373b72d14541114f58b87172f",
      "bytes": 5627,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/linear-regression-channel/",
      "sourceUrl": "https://spectral.trade/indicators/linear-regression-channel.js"
    },
    {
      "id": "macd",
      "name": "Moving Average Convergence Divergence",
      "shortName": "MACD",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "MACD line, signal line and a four-color histogram that shows whether momentum is rising or falling.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "macd",
        "moving average",
        "histogram",
        "momentum",
        "crossover"
      ],
      "builtIn": "macd",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "fastLength",
          "type": "integer",
          "label": "Fast length",
          "default": 12,
          "min": 1,
          "max": 500,
          "description": "Length of the fast moving average."
        },
        {
          "key": "slowLength",
          "type": "integer",
          "label": "Slow length",
          "default": 26,
          "min": 1,
          "max": 500,
          "description": "Length of the slow moving average."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Length of the signal-line smoothing."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the averages are calculated from."
        },
        {
          "key": "oscillatorMaType",
          "type": "select",
          "label": "Oscillator average",
          "default": "EMA",
          "options": [
            "EMA",
            "SMA"
          ],
          "description": "Average type of the fast and slow lines."
        },
        {
          "key": "signalMaType",
          "type": "select",
          "label": "Signal average",
          "default": "EMA",
          "options": [
            "EMA",
            "SMA"
          ],
          "description": "Average type of the signal line."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "macd",
            "label": "MACD",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [
          {
            "key": "posRising",
            "label": "Histogram above zero, rising",
            "color": "#6FAF8A"
          },
          {
            "key": "posFalling",
            "label": "Histogram above zero, falling",
            "color": "#A4C9B1"
          },
          {
            "key": "negRising",
            "label": "Histogram below zero, rising",
            "color": "#D8B1B1"
          },
          {
            "key": "negFalling",
            "label": "Histogram below zero, falling",
            "color": "#C98282"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "MACD compares a fast and a slow moving average of the selected price. The MACD line is their difference, the signal line smooths that difference, and the histogram shows the distance between MACD and signal.",
        "howToRead": "A MACD line above its signal line means the fast average is pulling away upward; below means the opposite. Histogram bars above zero are positive and below zero negative.\n\nThe four histogram colors show direction: dark green and light green above zero for rising and falling bars, light red and dark red below zero for rising and falling bars. Expanding bars show momentum increasing relative to the prior bar; contracting bars show it easing.",
        "settings": "Defaults are 12 fast, 26 slow and 9 signal bars with exponential averages. Shorter lengths react sooner but are noisier; longer lengths smooth more but lag. Exponential averages start at the first bar, so the earliest values settle after a few multiples of the slow length.",
        "notes": "Computes the same values and colors as the built-in MACD in Spectral. Crosses and zero-line moves are context, not standalone trade instructions."
      },
      "sourcePath": "/indicators/macd.js",
      "sha256": "6676ea488087d1781910d9bb7bf9c262473ae831bfe1816b055618e8bf7a1a7a",
      "bytes": 4522,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/macd/",
      "sourceUrl": "https://spectral.trade/indicators/macd.js"
    },
    {
      "id": "market-structure-bos",
      "name": "Market Structure BOS/CHoCH",
      "shortName": "Structure",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Swing highs and lows from fractal pivots, and a line with a BOS or CHoCH label wherever a close breaks the last swing: with the trend a break of structure, against it a change of character.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "market structure",
        "bos",
        "choch",
        "smart money",
        "swings",
        "breakout"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "periods",
          "type": "integer",
          "label": "Swing periods",
          "default": 3,
          "min": 1,
          "max": 20,
          "description": "Bars on each side a swing high (low) must be higher (lower) than; 2 is the five-bar fractal, 3 (the default) keeps fewer, clearer swings."
        },
        {
          "key": "showSwings",
          "type": "boolean",
          "label": "Swing markers",
          "default": true,
          "description": "Mark every swing high and low with a diamond."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "swingHighs",
            "label": "Swing highs",
            "color": "#8B949E",
            "shape": "diamond",
            "size": "tiny",
            "placement": "aboveBar",
            "hideBelowBarWidth": 2
          },
          {
            "key": "swingLows",
            "label": "Swing lows",
            "color": "#8B949E",
            "shape": "diamond",
            "size": "tiny",
            "placement": "belowBar",
            "hideBelowBarWidth": 2
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "breakLabels",
            "label": "BOS / CHoCH",
            "color": "#3FB950",
            "palette": "structure",
            "style": "none",
            "placement": "above",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 20
          }
        ],
        "barColors": [],
        "bgColors": [],
        "segments": [
          {
            "key": "breaks",
            "label": "Broken swings",
            "color": "#3FB950",
            "palette": "structure",
            "lineWidth": 1,
            "lineStyle": "dashed"
          }
        ],
        "boxes": []
      },
      "palettes": [
        {
          "key": "structure",
          "label": "Structure",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Market structure reads trend as a sequence of swing highs and swing lows. This indicator finds the swings with fractal pivots (a bar whose high is higher than the highs of the Swing periods bars on each side, or whose low is lower) and watches the latest swing high and swing low. When a bar closes above the latest swing high or below the latest swing low, a dashed line runs from the swing to the breaking bar and is labelled: BOS (break of structure) when the break goes with the current direction, CHoCH (change of character) when it goes against it.",
        "howToRead": "Green lines break swing highs (bullish), red lines break swing lows (bearish). A string of BOS labels in one colour is a trend that keeps making new highs (or lows). A CHoCH is the first break against that trend, an early warning of a reversal that many traders want confirmed by a BOS in the new direction. Grey diamonds mark the swings the breaks refer to.",
        "settings": "Swing periods sets how pronounced a swing must be (3 bars on each side by default; 2 is the five-bar fractal, larger values keep only bigger swings). The chart labels the 20 most recent breaks on screen. Swing markers switches the diamonds. The colours are appearance settings.",
        "notes": "Rules: swings are strict fractal pivots (Bill Williams, Trading Chaos), confirmed Swing periods bars later. A break needs a close beyond the swing price (the stricter, body-close reading of smart-money concepts; wick breaks are not counted), each swing breaks at most once, and a newer swing of the same side replaces an unbroken older one. The direction starts neutral: the first break is a BOS, later a break against the direction of the last break is a CHoCH. Sources: market structure as taught in ICT / smart-money concepts (no single formal standard exists; these are the common definitions). Completed bars only (live: none)."
      },
      "sourcePath": "/indicators/market-structure-bos.js",
      "sha256": "88229668b580bc8d7bdc8ecec2ad6f5cf2c2e1381e0773e1b404c51eaaf8c609",
      "bytes": 5794,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/market-structure-bos/",
      "sourceUrl": "https://spectral.trade/indicators/market-structure-bos.js"
    },
    {
      "id": "mcginley-dynamic",
      "name": "McGinley Dynamic",
      "shortName": "MD",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "John McGinley's self-adjusting moving average that speeds up when price falls away from it and avoids whipsaws, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "mcginley",
        "dynamic",
        "adaptive",
        "moving average",
        "trend"
      ],
      "builtIn": "mcginley-dynamic",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 1,
          "max": 1000,
          "description": "Base smoothing length in bars. McGinley suggested about 60% of the moving average length you would otherwise use."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "md",
            "label": "MD",
            "color": "#D4B86A",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "mcginley-21",
          "name": "McGinley Dynamic 21",
          "shortName": "MD 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "mcginley-50",
          "name": "McGinley Dynamic 50",
          "shortName": "MD 50",
          "inputs": {
            "length": 50
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The McGinley Dynamic, introduced by market technician John R. McGinley in the 1990s, is a moving average that adjusts its own speed. Each bar it moves from its previous value toward price by the gap divided by Length times the fourth power of price over its previous value.\n\nWhen price is close to the line, it behaves like an exponential average of about Length bars. When price falls well below it, the fourth power shrinks the divisor and the line catches up quickly; when price runs well above it, the line follows more cautiously.",
        "howToRead": "McGinley designed it as a smoother, more reliable tracking line than an ordinary average: it hugs price in calm phases and avoids being left far behind after fast moves, so price separating from it is rarer and more telling. Its slope gives the trend direction, and price holding above or below it describes which side is in control.\n\nIt reacts faster to drops than to rallies of the same size, a deliberate asymmetry that reflects how quickly markets tend to fall.",
        "settings": "Length defaults to 14 bars, as on TradingView; the presets add 21 and 50. McGinley suggested a length of about 60% of the moving average you would otherwise use, so 12 instead of a 20-bar average.\n\nThe line starts at the first bar with that bar's price and settles within a few multiples of Length.",
        "notes": "Uses the form most platforms use: previous value + (price - previous value) / (Length x (price / previous value) to the fourth power), starting from the first price. TradingView starts it from an exponential average instead, so the earliest values can differ until the line has settled. McGinley's original article also scaled the length by a constant of about 0.6; enter a shorter Length to get the same effect."
      },
      "sourcePath": "/indicators/mcginley-dynamic.js",
      "sha256": "50fb0ca97c725302a4bf5e5c563abf6f8db4ca7037ff6f83e56c704be6faaba0",
      "bytes": 3593,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/mcginley-dynamic/",
      "sourceUrl": "https://spectral.trade/indicators/mcginley-dynamic.js"
    },
    {
      "id": "mfi",
      "name": "Money Flow Index",
      "shortName": "MFI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Volume-weighted momentum oscillator from 0 to 100 that compares money flowing into rising and falling bars.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "money flow index",
        "mfi",
        "volume rsi",
        "overbought",
        "oversold",
        "divergence"
      ],
      "builtIn": "mfi",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 2,
          "max": 500,
          "description": "Number of bars over which positive and negative money flow are added up."
        },
        {
          "key": "overbought",
          "type": "number",
          "label": "Overbought level",
          "default": 80,
          "min": 50,
          "max": 100,
          "step": 1,
          "description": "Line drawn as the overbought threshold."
        },
        {
          "key": "oversold",
          "type": "number",
          "label": "Oversold level",
          "default": 20,
          "min": 0,
          "max": 50,
          "step": 1,
          "description": "Line drawn as the oversold threshold."
        },
        {
          "key": "showMiddle",
          "type": "boolean",
          "label": "Middle line (50)",
          "default": true,
          "description": "Draw the neutral line at 50."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "mfi",
            "label": "MFI",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "overbought",
            "label": "Overbought",
            "color": "#8A94A3",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "oversold",
            "label": "Oversold",
            "color": "#8A94A3",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "middle",
            "label": "Middle",
            "color": "#8A94A3",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "length-7",
          "name": "MFI (7)",
          "shortName": "MFI 7",
          "inputs": {
            "length": 7
          }
        },
        {
          "id": "length-21",
          "name": "MFI (21)",
          "shortName": "MFI 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "levels-90-10",
          "name": "MFI (14, 90/10)",
          "shortName": "MFI 90/10",
          "inputs": {
            "length": 14,
            "overbought": 90,
            "oversold": 10
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Money Flow Index is a volume-weighted cousin of the RSI. For every bar it takes the typical price (the average of high, low and close) and multiplies it by the bar's volume to get the raw money flow. If the typical price is higher than on the previous bar the flow counts as positive, if it is lower the flow counts as negative, and if it is unchanged the bar is left out.\n\nOver the chosen length the positive and negative flows are added up, and MFI = 100 - 100 / (1 + positive sum / negative sum). The result moves between 0 and 100.",
        "howToRead": "Readings above the overbought line (80 by default) mean that nearly all recent money flow went into rising bars; readings below the oversold line (20) mean it went into falling bars. Both are conditions of stretched buying or selling, not signals on their own: in a strong trend MFI can stay at an extreme for a long time.\n\nThe more useful signals are divergences: price making a new high while MFI makes a lower high warns that the move is running on less volume, and the same at lows. A cross of the middle line at 50 shows which side of the money flow has the upper hand. Because volume is part of the formula, MFI is most reliable on instruments whose volume is meaningful.",
        "settings": "Length is the number of bars added up; 14 is the standard. A shorter length makes MFI quicker and noisier, a longer one smoother. The first value appears after Length bars, because each bar is compared with the one before it.\n\nOverbought level and Oversold level move the two threshold lines (80 and 20 by default; 90 and 10 flag only extreme readings). The middle line at 50 can be switched off. The presets offer a fast length of 7, a slow length of 21 and the 90 and 10 thresholds.",
        "notes": "This is the standard Money Flow Index as published by Gene Quong and Avrum Soudack, and the same calculation TradingView uses (its typical price is hlc3, bars with an unchanged typical price are excluded). When the negative flow in the window is zero, MFI is 100; when both flows are zero (no volume, or no change in typical price, in the whole window) it shows no value, as on TradingView."
      },
      "sourcePath": "/indicators/mfi.js",
      "sha256": "5659be72e682d98fd36748712b4255c8ac72fc1efe17d613ad4bf1320fc5f147",
      "bytes": 5636,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/mfi/",
      "sourceUrl": "https://spectral.trade/indicators/mfi.js"
    },
    {
      "id": "momentum",
      "name": "Momentum",
      "shortName": "Mom",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Price change over the last Length bars in price units, around a zero line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "momentum",
        "price change",
        "oscillator",
        "zero line"
      ],
      "builtIn": "momentum",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 10,
          "min": 1,
          "max": 1000,
          "description": "Bars back the current price is compared with."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the change is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "momentum",
            "label": "Momentum",
            "color": "#7FB5A0",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "mom-20",
          "name": "Momentum (20)",
          "shortName": "Mom 20",
          "inputs": {
            "length": 20
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Momentum is the difference between the current price and the price Length bars ago, in price units. Positive values mean price is higher than it was, negative values lower.",
        "howToRead": "Above zero price has risen over the lookback, below zero it has fallen. A rising line shows the move gaining speed; a line that turns while price still makes new highs or lows shows it losing speed, often before price turns.\n\nZero-line crosses mark the moment price returns to where it was Length bars ago. Values are in price units, so they are not comparable across instruments or very different price levels; use Rate of Change for that.",
        "settings": "Length defaults to 10 bars, as on TradingView. Shorter lengths react faster and cross zero more often. The first value appears on bar Length + 1 (bar 11 with the default).",
        "notes": "Matches Momentum on TradingView and most platforms: price minus the price Length bars ago."
      },
      "sourcePath": "/indicators/momentum.js",
      "sha256": "8e6f474d9e81bcdc9d21c481fab83d53c10485d8fde8c63760364ca521dbc806",
      "bytes": 2226,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/momentum/",
      "sourceUrl": "https://spectral.trade/indicators/momentum.js"
    },
    {
      "id": "moving-average",
      "name": "Moving Average",
      "shortName": "MA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "One moving average of the type you choose (simple, exponential, weighted, Hull, Wilder or volume-weighted) and any length, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "2*length",
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "moving average",
        "sma",
        "ema",
        "wma",
        "hma",
        "rma",
        "vwma",
        "trend"
      ],
      "builtIn": "moving-average",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "maType",
          "type": "select",
          "label": "Type",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA",
            "WMA",
            "HMA",
            "RMA",
            "VWMA"
          ],
          "description": "SMA simple, EMA exponential, WMA linearly weighted, HMA Hull, RMA Wilder smoothing (as in RSI and ATR), VWMA weighted by each bar's volume."
        },
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 1000,
          "description": "Number of bars in the average. Longer averages are smoother and react later."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "ma",
            "label": "MA",
            "color": "#B7A1C8",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "wma-20",
          "name": "WMA 20",
          "shortName": "WMA 20",
          "inputs": {
            "maType": "WMA",
            "length": 20
          }
        },
        {
          "id": "vwma-20",
          "name": "VWMA 20",
          "shortName": "VWMA 20",
          "inputs": {
            "maType": "VWMA",
            "length": 20
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "One indicator for the six common moving averages, so any type and length is a settings change away.\n\nSMA is the plain average of the last Length prices. EMA weights each new price by 2 / (Length + 1) and carries the rest of its previous value. WMA weights the newest price Length times, the one before it Length - 1 times, and so on. HMA (Hull) combines two weighted averages to cut most of the lag. RMA is Wilder's smoothing, an exponential average with weight 1 / Length, the one inside RSI and ATR. VWMA weights each price by its bar's volume, so heavy-volume bars pull the line harder.",
        "howToRead": "A rising average describes positive recent price pressure; a falling one, negative pressure. Traders watch how price behaves around the line (holds, reclaims, rejections), its slope, and how several averages are stacked, rather than treating a single cross as a signal.\n\nAt the same length, HMA reacts fastest, then WMA, then EMA and SMA (the EMA turns a little sooner), and RMA slowest. A VWMA above the SMA of the same length means the heavier-volume bars in the window traded at higher prices; below it, at lower prices.",
        "settings": "Type picks the average; Length defaults to 20 bars; Source is the price used. The presets add WMA 20 and VWMA 20; SMA, EMA and Hull lengths traders use most already have their own entries (SMA 50 and 200, EMA 21 and 200, Hull MA 55).\n\nSMA, WMA, VWMA and RMA show their first value after Length bars, HMA a few bars later. EMA starts at the first bar, so its earliest values lean on the first prices and settle after a few multiples of Length. VWMA needs volume; on a symbol without volume data it draws nothing.",
        "notes": "Each type follows its usual definition. The EMA starts from the first price; some platforms, TradingView among them, start it from the simple average of the first Length prices and draw nothing before, so the earliest values differ and agree once warmed up. RMA starts from the simple average of its first Length prices. HMA rounds the half length and the square-root length down. The SMA and EMA types compute the same values as Spectral's own SMA and EMA indicators."
      },
      "sourcePath": "/indicators/moving-average.js",
      "sha256": "ea24886cb2cb61315e511635f4eafc576d89ec87d40817c12c6c4a3a28fde15a",
      "bytes": 5323,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/moving-average/",
      "sourceUrl": "https://spectral.trade/indicators/moving-average.js"
    },
    {
      "id": "mtf-trend-dashboard",
      "name": "Multi-Timeframe Trend Dashboard",
      "shortName": "MTF Trend",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A table with the EMA 20/50 trend and the RSI 14 of the chart's bars and of hourly, daily and weekly bars, each cell coloured by its state.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "multi-timeframe",
        "mtf",
        "dashboard",
        "table",
        "ema",
        "rsi"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "fast",
          "type": "integer",
          "label": "Fast EMA",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "Bars in the fast EMA of the close, on every timeframe."
        },
        {
          "key": "slow",
          "type": "integer",
          "label": "Slow EMA",
          "default": 50,
          "min": 3,
          "max": 400,
          "description": "Bars in the slow EMA of the close, on every timeframe."
        },
        {
          "key": "rsiLength",
          "type": "integer",
          "label": "RSI length",
          "default": 14,
          "min": 2,
          "max": 100,
          "description": "Bars in Wilder's RSI, on every timeframe."
        },
        {
          "key": "overbought",
          "type": "number",
          "label": "Overbought",
          "default": 70,
          "min": 50,
          "max": 100,
          "step": 1,
          "description": "RSI at or above this level reads overbought."
        },
        {
          "key": "oversold",
          "type": "number",
          "label": "Oversold",
          "default": 30,
          "min": 0,
          "max": 50,
          "step": 1,
          "description": "RSI at or below this level reads oversold."
        },
        {
          "key": "showHourly",
          "type": "boolean",
          "label": "1 hour row",
          "default": true,
          "description": "Show the hourly row (loads hourly bars)."
        },
        {
          "key": "showDaily",
          "type": "boolean",
          "label": "1 day row",
          "default": true,
          "description": "Show the daily row (loads daily bars)."
        },
        {
          "key": "showWeekly",
          "type": "boolean",
          "label": "1 week row",
          "default": true,
          "description": "Show the weekly row (loads weekly bars)."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [
          {
            "key": "trend",
            "label": "Trend dashboard",
            "position": "top-right",
            "columns": [
              {
                "align": "left"
              },
              {
                "align": "center",
                "width": 6
              },
              {
                "align": "right",
                "width": 5
              },
              {
                "align": "center",
                "width": 10
              }
            ],
            "border": true
          }
        ],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "state",
          "label": "State",
          "colors": [
            "#2EA043",
            "#DA3633",
            "#6E7681"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [
        {
          "alias": "hourly",
          "barSize": "1 hour",
          "duration": "1 M"
        },
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "2 Y"
        },
        {
          "alias": "weekly",
          "barSize": "1 week",
          "duration": "5 Y"
        }
      ],
      "docs": {
        "overview": "One table for the trend on four timeframes: the chart's own bars and hourly, daily and weekly bars of the same symbol. For each it shows whether the EMA 20 of the close is above or below the EMA 50, the 14-bar RSI (J. Welles Wilder, 1978) and whether that RSI is overbought or oversold.",
        "howToRead": "Up (green): the fast EMA is above the slow one; Down (red): below. The RSI cell is green above 50 and red below. Overbought means the RSI is at or above 70, oversold at or below 30 (Wilder's levels). Timeframes that agree describe a strong trend; a lower timeframe against a higher one is often a pullback. Hover a cell for the EMA values and the RSI to two decimals.",
        "settings": "Fast EMA, Slow EMA and RSI length apply to every row; Overbought and Oversold set the RSI zones. The 1 hour, 1 day and 1 week rows can be switched off (their bars then do not load). The table position and the three colours are appearance settings.",
        "notes": "Formulas: EMA with alpha 2 / (length + 1), started at the first close of each series; RSI (StockCharts ChartSchool, Relative Strength Index; Wilder): average gain and loss start as the simple average of the first length changes, then (previous x (length - 1) + current) / length, RSI = 100 - 100 / (1 + gain / loss). The higher timeframes use regular-hours bars (1 month hourly, 2 years daily, 5 years weekly) and only their completed bars: a bar counts once the chart's last bar ends at or after its end. An hourly bar ends at the next clock hour (the first regular-hours bar, 09:30, is a half hour and ends at 10:00), a daily bar at the regular close (16:00, or 13:00 on NYSE early-close days), a weekly bar when its week is over (so the weekly row turns over on Monday). The chart's last bar ends at its time plus its length on intraday charts (on the clock grid, so an hourly chart's 09:30 bar ends at 10:00) and with its day, week or month on daily, weekly and monthly charts. The period still forming is left out, so those rows change when it ends. The table updates at every close of a chart bar (live: none), the chart row from completed chart bars: a table that updated on every tick would have to hold its bar-close values anyway while the kept-up-to-date hourly, daily and weekly bars form (W-LIVE-HELD), so it reads completed bars everywhere. Values depend a little on where each series starts, because the EMAs start at the first close."
      },
      "sourcePath": "/indicators/mtf-trend-dashboard.js",
      "sha256": "86bd07669778b45cf98accbf462ce5b741414ca414856aff1dc297ca5c320667",
      "bytes": 8717,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/mtf-trend-dashboard/",
      "sourceUrl": "https://spectral.trade/indicators/mtf-trend-dashboard.js"
    },
    {
      "id": "obv",
      "name": "On Balance Volume",
      "shortName": "OBV",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Running total of volume that adds the volume of up closes and subtracts the volume of down closes, with an optional signal line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "on balance volume",
        "obv",
        "accumulation",
        "divergence",
        "volume trend"
      ],
      "builtIn": "obv",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showSignal",
          "type": "boolean",
          "label": "Signal line",
          "default": false,
          "description": "Draw a simple moving average of OBV as a signal line."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 20,
          "min": 2,
          "max": 500,
          "description": "Number of bars in the signal line average. Only used when the signal line is on."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "obv",
            "label": "OBV",
            "color": "#7FB5A0",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "signal-20",
          "name": "OBV with signal (20)",
          "shortName": "OBV S20",
          "inputs": {
            "showSignal": true,
            "signalLength": 20
          }
        },
        {
          "id": "signal-50",
          "name": "OBV with signal (50)",
          "shortName": "OBV S50",
          "inputs": {
            "showSignal": true,
            "signalLength": 50
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "On Balance Volume keeps a running total of volume. When a bar closes higher than the previous close, its whole volume is added; when it closes lower, its whole volume is subtracted; when the close is unchanged, the total stays as it is. The line starts at zero on the first loaded bar.\n\nThe idea is that volume leads price: steady buying shows up as a rising total before, or while, price rises, and steady selling as a falling total. An optional signal line (a simple moving average of OBV) smooths the total.",
        "howToRead": "Read the direction and the shape of the line, not its absolute value. A rising OBV confirms an uptrend; an OBV that makes new highs before price does often hints at a coming breakout, and an OBV that fails to follow price to a new high or low is a divergence that warns of weakening momentum.\n\nWith the signal line on, OBV above its signal means volume pressure is currently positive, and a cross of the two marks a change in that pressure. OBV counts the whole volume of a bar by the direction of its close, so one large bar can move the line a lot; it says nothing about how that volume was split between buyers and sellers inside the bar.",
        "settings": "Signal line switches the moving average on or off. Signal length sets its window (20 is a common choice; longer is smoother and later). The signal line starts after Signal length bars.\n\nOBV is cumulative, so its level depends on how much history is loaded: scrolling back loads older bars and shifts the whole line up or down without changing its shape. Compare slopes and divergences, never the number itself. It works on every bar size.",
        "notes": "This is the standard On Balance Volume of Joseph Granville: close above the previous close adds volume, close below subtracts it, an unchanged close adds nothing. TradingView uses the same rule; its line differs from this one only by a constant offset when the chart loads a different amount of history. A bar without volume adds nothing. The signal line is a simple moving average, as in common platform presets."
      },
      "sourcePath": "/indicators/obv.js",
      "sha256": "09b276b44295a5fa6d67de8e3bf6539bb87dc78418dcdcf99462b9b6318e5232",
      "bytes": 4181,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/obv/",
      "sourceUrl": "https://spectral.trade/indicators/obv.js"
    },
    {
      "id": "opening-range-box",
      "name": "Opening Range Box",
      "shortName": "OR Box",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Boxes the high and low of the first minutes of every New York regular session, shades those bars, and labels the first close above or below the range.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Levels & sessions",
      "tags": [
        "opening range",
        "orb",
        "breakout",
        "intraday",
        "box",
        "session"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "minutes",
          "type": "integer",
          "label": "Range minutes",
          "default": 15,
          "min": 1,
          "max": 120,
          "description": "Length of the opening range from the 09:30 open, in minutes (5, 15, 30 and 60 are common)."
        },
        {
          "key": "showBreakouts",
          "type": "boolean",
          "label": "Breakout labels",
          "default": true,
          "description": "Label the first close above the range high and the first close below the range low of each session."
        },
        {
          "key": "shadeRange",
          "type": "boolean",
          "label": "Shade range bars",
          "default": true,
          "description": "Shade the bars that make up the opening range."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "breakUp",
            "label": "Breakout up",
            "color": "#3FB950",
            "style": "box",
            "placement": "above",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 20
          },
          {
            "key": "breakDown",
            "label": "Breakout down",
            "color": "#F85149",
            "style": "box",
            "placement": "below",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 20
          }
        ],
        "barColors": [],
        "bgColors": [
          {
            "key": "rangeBars",
            "label": "Range bars",
            "palette": "range",
            "opacity": 0.05
          }
        ],
        "segments": [],
        "boxes": [
          {
            "key": "ranges",
            "label": "Opening range",
            "color": "#58A6FF",
            "opacity": 0.12,
            "textSize": "small",
            "hideBelowBarWidth": 2
          }
        ]
      },
      "palettes": [
        {
          "key": "range",
          "label": "Range",
          "colors": [
            "#58A6FF"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The opening range is the high and the low of the first minutes of the regular session, from the 09:30 New York open (Toby Crabel, Day Trading with Short Term Price Patterns and Opening Range Breakout, 1990). This indicator boxes that range on every session, from its first bar to the session's last regular-hours bar (to the right edge on the latest session), shades the bars that form it and labels the first bar that closes above the range high (ORB up) or below the range low (ORB down).",
        "howToRead": "The box is the area the first minutes agreed on. A close above it is the classic long breakout, a close below it the short one; the box edges then often act as support or resistance, and a breakout that falls back into the box is a failed breakout. A narrow range on a quiet open tends to break more cleanly than a wide one.",
        "settings": "Range minutes sets the length of the range (15 by default; 5, 30 and 60 are common). Breakout labels and Shade range bars switch those parts; the colours and the box opacity are appearance settings. The range needs bars no longer than Range minutes: on longer intraday bars and on daily and longer charts nothing is drawn.",
        "notes": "Rules (LuxAlgo library, Opening Range and ORB: the range is the highest high and lowest low of the bars inside the first minutes from the regular open, frozen when the window ends; a close beyond is the stricter breakout trigger): the range holds the regular-session bars that start before 09:30 plus Range minutes, so a bar size that does not divide it extends the range to that bar's end. A breakout needs the range to be complete and a regular-session close beyond it, at most one each way per session. The box text is the range height (two decimals, four for prices below 1). A session without a regular-hours bar inside the window (history that starts later in the day, or a gap in the data) gets no box; one missing some of those bars builds the range from the bars it has. Completed bars only (live: none): a box spans bars from the morning, outside the window a live tick recalculates, so the box, the shading and the labels update at each bar close."
      },
      "sourcePath": "/indicators/opening-range-box.js",
      "sha256": "776e548604883985094f6c493b1f2545d1cdd3b8a89ca9c1c6f0e08595179107",
      "bytes": 6572,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/opening-range-box/",
      "sourceUrl": "https://spectral.trade/indicators/opening-range-box.js"
    },
    {
      "id": "orb",
      "name": "Opening Range Breakout",
      "shortName": "ORB",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Opening-range highs and lows for 1, 2, 5, 10, 15, 30 and 60 minutes after the 09:30 New York open.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "opening range",
        "breakout",
        "orb",
        "session",
        "intraday"
      ],
      "builtIn": "orb",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "show1m",
          "type": "boolean",
          "label": "1 minute range",
          "default": false,
          "description": "Draw the high and low of the first minute."
        },
        {
          "key": "show2m",
          "type": "boolean",
          "label": "2 minute range",
          "default": false,
          "description": "Draw the high and low of the first 2 minutes."
        },
        {
          "key": "show5m",
          "type": "boolean",
          "label": "5 minute range",
          "default": true,
          "description": "Draw the high and low of the first 5 minutes."
        },
        {
          "key": "show10m",
          "type": "boolean",
          "label": "10 minute range",
          "default": false,
          "description": "Draw the high and low of the first 10 minutes."
        },
        {
          "key": "show15m",
          "type": "boolean",
          "label": "15 minute range",
          "default": false,
          "description": "Draw the high and low of the first 15 minutes."
        },
        {
          "key": "show30m",
          "type": "boolean",
          "label": "30 minute range",
          "default": false,
          "description": "Draw the high and low of the first 30 minutes."
        },
        {
          "key": "show60m",
          "type": "boolean",
          "label": "60 minute range",
          "default": false,
          "description": "Draw the high and low of the first 60 minutes."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "orb1High",
            "label": "ORB 1m High",
            "color": "#8AA9C3",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb1Low",
            "label": "ORB 1m Low",
            "color": "#8AA9C3",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb2High",
            "label": "ORB 2m High",
            "color": "#B7A1C8",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb2Low",
            "label": "ORB 2m Low",
            "color": "#B7A1C8",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb5High",
            "label": "ORB 5m High",
            "color": "#9AA5B1",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb5Low",
            "label": "ORB 5m Low",
            "color": "#9AA5B1",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb10High",
            "label": "ORB 10m High",
            "color": "#6FAF8A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb10Low",
            "label": "ORB 10m Low",
            "color": "#6FAF8A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb15High",
            "label": "ORB 15m High",
            "color": "#C4A46A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb15Low",
            "label": "ORB 15m Low",
            "color": "#C4A46A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb30High",
            "label": "ORB 30m High",
            "color": "#C98282",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb30Low",
            "label": "ORB 30m Low",
            "color": "#C98282",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb60High",
            "label": "ORB 60m High",
            "color": "#B8C1CC",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "orb60Low",
            "label": "ORB 60m Low",
            "color": "#B8C1CC",
            "lineStyle": "dashed",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Opening Range Breakout tracks one or more opening ranges of the latest New York regular session, starting at 09:30. Each enabled duration has its own high and low level, drawn once that range has completed.",
        "howToRead": "Watch how price behaves at a boundary: a rejection, a sustained acceptance or a failed breakout gives more information than a single print through a line. Several ranges together show short and longer opening context at once.",
        "settings": "Turn on any combination of the 1, 2, 5 (default), 10, 15, 30 and 60 minute ranges; every level has its own color setting. Use a bar size that divides the durations you enable, for example 1 minute for all of them or 5 minutes for 5 and longer.",
        "notes": "Computes the same levels as the built-in ORB in Spectral on a 1-minute chart. The built-in reads 1-minute bars on every bar size, which a custom indicator cannot do in schema v1. ORB is a reference framework, not an automatic breakout strategy."
      },
      "sourcePath": "/indicators/orb.js",
      "sha256": "c72bff8cc5f86f5794ffa757514380095fe005a85b86b25e29943199768fe45f",
      "bytes": 6311,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/orb/",
      "sourceUrl": "https://spectral.trade/indicators/orb.js"
    },
    {
      "id": "parabolic-sar",
      "name": "Parabolic SAR",
      "shortName": "SAR",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Wilder's stop and reverse: one dot per bar that trails price and speeds up as the trend makes new extremes.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 2,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "parabolic sar",
        "psar",
        "stop and reverse",
        "trailing stop",
        "wilder",
        "trend following"
      ],
      "builtIn": "parabolic-sar",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "start",
          "type": "number",
          "label": "Start",
          "default": 0.02,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Acceleration factor at the start of every trend: the share of the distance to the trend's extreme the dot moves on each bar."
        },
        {
          "key": "increment",
          "type": "number",
          "label": "Increment",
          "default": 0.02,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Added to the acceleration factor each time the trend makes a new high (up) or low (down)."
        },
        {
          "key": "maximum",
          "type": "number",
          "label": "Maximum",
          "default": 0.2,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Largest acceleration factor; the dots never close in faster than this."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "rising",
            "label": "SAR below price",
            "color": "#3FB950",
            "radius": 2
          },
          {
            "key": "falling",
            "label": "SAR above price",
            "color": "#E5534B",
            "radius": 2
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Parabolic SAR (stop and reverse) by J. Welles Wilder places one dot per bar. In an uptrend the dot sits below price and moves up every bar by a share of the distance to the trend's highest high; in a downtrend it sits above price and moves down toward the lowest low. The share starts small and grows with every new extreme, so the dots close in faster the longer a trend runs.\n\nWhen price crosses the dot, the trend reverses: the dot jumps to the other side, to the extreme of the finished trend, and the share starts again.",
        "howToRead": "Green dots below price mark an uptrend and red dots above price a downtrend; each dot is a trailing stop for the current side. A switch of side is the classic stop-and-reverse signal.\n\nIn a strong trend the dots trail closely and keep a position until the trend ends. In a sideways market price crosses the dots often and the indicator flips back and forth, so many traders take its signals only in the direction of a trend filter such as a moving average or the ADX.",
        "settings": "Start, Increment and Maximum are Wilder's acceleration factor settings, 0.02, 0.02 and 0.2 by default. A smaller Start and Increment trail further from price and flip less; a smaller Maximum keeps the dots from closing in too fast in long trends. The first dot appears on the second bar; on histories longer than 20,000 bars the dots cover the most recent 20,000, computed from the first bar.",
        "notes": "Follows TradingView's built-in Parabolic SAR: the first trend is taken from the direction of the first two closes, a reversal happens when the bar's range crosses the dot, and the dot never sits inside the range of the two previous bars. On the forming bar a cross can flip the dots until the bar closes."
      },
      "sourcePath": "/indicators/parabolic-sar.js",
      "sha256": "16adffe6b1c634091a3fff58b83708fce4e7e75e11f9e2ef43e3b567452bbece",
      "bytes": 5703,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/parabolic-sar/",
      "sourceUrl": "https://spectral.trade/indicators/parabolic-sar.js"
    },
    {
      "id": "parabolic-sar-dots",
      "name": "Parabolic SAR Dots",
      "shortName": "SAR Dots",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Wilder's Parabolic SAR drawn as circles coloured by the side of the trend, with a larger dot on every stop-and-reverse bar.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 2,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "parabolic sar",
        "sar",
        "wilder",
        "trailing stop",
        "stop and reverse",
        "trend"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "start",
          "type": "number",
          "label": "Start",
          "default": 0.02,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Acceleration factor at the start of every trend."
        },
        {
          "key": "increment",
          "type": "number",
          "label": "Increment",
          "default": 0.02,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Added to the acceleration factor each time the trend makes a new extreme."
        },
        {
          "key": "maximum",
          "type": "number",
          "label": "Maximum",
          "default": 0.2,
          "min": 0.001,
          "max": 1,
          "step": 0.001,
          "description": "Largest acceleration factor."
        },
        {
          "key": "showReversals",
          "type": "boolean",
          "label": "Reversal dots",
          "default": true,
          "description": "Draw a larger dot on each bar where the SAR flips to the other side of price."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "sar",
            "label": "SAR",
            "color": "#3FB950",
            "lineWidth": 2,
            "primary": true,
            "style": "circles",
            "palette": "side"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "reversals",
            "label": "Stop and reverse",
            "color": "#3FB950",
            "shape": "circle",
            "size": "small",
            "palette": "side",
            "hideBelowBarWidth": 2
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "side",
          "label": "Side",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Parabolic SAR (stop and reverse) by J. Welles Wilder places one dot per bar. In an uptrend the dot sits below price and moves up every bar by a share (the acceleration factor) of the distance to the trend's highest high; in a downtrend it sits above price and moves down toward the lowest low. The factor starts small and grows with every new extreme, so the dots close in faster the longer a trend runs. When price crosses the dot, the trend reverses and the dot moves to the other side.\n\nThe dots are green below price and red above it; a larger dot marks every reversal.",
        "howToRead": "Green dots under price: uptrend, each dot a trailing stop for longs. Red dots over price: downtrend, each dot a trailing stop for shorts. A large dot is a stop-and-reverse bar, the classic signal. In sideways markets price crosses the dots often and the SAR flips back and forth, so many traders take its signals only with a trend filter such as a moving average or the ADX.",
        "settings": "Start, Increment and Maximum are Wilder's acceleration settings (0.02, 0.02, 0.2). Smaller values trail further from price and flip less. Reversal dots switches the larger dots; the two side colours are appearance settings. The first dot appears on the second bar.",
        "notes": "Formulas (StockCharts ChartSchool, Parabolic SAR; Wilder, New Concepts in Technical Trading Systems, 1978): rising SAR = prior SAR + prior AF x (prior EP - prior SAR), falling SAR = prior SAR - prior AF x (prior SAR - prior EP); EP is the trend's highest high (lowest low), AF starts at Start and grows by Increment with every new EP up to Maximum; the SAR never enters the range of the two previous bars. Start and reversal details follow TradingView's built-in (and Spectral's Parabolic SAR): the first trend is up when the second close is above the first; a trend reverses when the bar's range crosses the SAR, and the new SAR is the extreme of the finished trend (at least the bar's high, at most its low). On the forming bar a cross can flip the dots until the bar closes; the live window holds the two previous bars the SAR is kept outside of. On a long chart the larger reversal dots are drawn for the newest 4,000 reversals only (Spectral keeps at most 4,000 shape markers per key); the SAR dots cover every bar."
      },
      "sourcePath": "/indicators/parabolic-sar-dots.js",
      "sha256": "ed582d3e939f060de97da86b3f1c66ac4225e14e5f6b58dae1ea3dad52a7910a",
      "bytes": 6590,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/parabolic-sar-dots/",
      "sourceUrl": "https://spectral.trade/indicators/parabolic-sar-dots.js"
    },
    {
      "id": "pdx",
      "name": "Previous Day High/Low",
      "shortName": "PDx",
      "version": "1.1.0",
      "author": "Spectral",
      "description": "High and low of the previous regular trading session as horizontal levels on intraday and daily charts, with optional history.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": {
          "input": "showHistory",
          "label": "Show history",
          "values": null
        }
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "previous day",
        "daily high",
        "daily low",
        "support",
        "resistance"
      ],
      "builtIn": "pdx",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showHistory",
          "type": "boolean",
          "label": "Show history",
          "default": false,
          "description": "Also draw the previous-day high and low for every earlier day as step lines; the indicator then updates at bar close."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "highHistory",
            "label": "PDH history",
            "color": "#C4A46A",
            "lineStyle": "dotted",
            "primary": true
          },
          {
            "key": "lowHistory",
            "label": "PDL history",
            "color": "#C4A46A",
            "lineStyle": "dotted"
          }
        ],
        "levels": [
          {
            "key": "high",
            "label": "PDH",
            "color": "#C4A46A",
            "showValue": true
          },
          {
            "key": "low",
            "label": "PDL",
            "color": "#C4A46A",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [
        {
          "alias": "rth30",
          "barSize": "30 mins",
          "duration": "1 W"
        }
      ],
      "docs": {
        "overview": "Previous Day High/Low marks the highest high and the lowest low of the prior New York regular session (09:30-16:00, to 13:00 on early-close days) as two horizontal levels. The previous day is the last regular session before the date of the chart's latest bar.",
        "howToRead": "The two levels mark where the last completed session found its extremes. Traders often use them as reference areas for reaction, acceptance or rejection rather than as automatic entry signals. A break that holds tells you more than a single print through the level.",
        "settings": "The levels come from 30-minute regular-session bars that Spectral loads beside the chart (the last week of them), so they are exact on every intraday and daily bar size, also where a chart bar holds pre-market or after-hours trading together with the session (20-minute, hourly and daily bars). Weekly and monthly charts have no previous day and show nothing.\n\nShow history adds step lines that show, for every bar, the high and low of the session before that bar's date, and then updates at bar close. On bar sizes up to 30 minutes (other than 20 minutes) the chart's own bars line up with the 09:30 open and the close, so the history covers the whole chart; on larger bar sizes it covers only the sessions in the loaded week of 30-minute bars.",
        "notes": "Computes the same levels as the built-in PDx in Spectral, which draws them as rays from the previous session. Pre-market and after-hours trading is never counted, and a session that is not complete in the loaded bars is not drawn. On a regular-hours chart before the open, the latest bar is still the last session's, so the levels show the session before it until the first 09:30 bar arrives; an extended-hours chart moves on with the first pre-market bar."
      },
      "sourcePath": "/indicators/pdx.js",
      "sha256": "e7679408eb2732b4029c6af8e5b4f0495539c61f0e567002c3835caa1b19637b",
      "bytes": 7103,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pdx/",
      "sourceUrl": "https://spectral.trade/indicators/pdx.js"
    },
    {
      "id": "pivot-points",
      "name": "Pivot Points",
      "shortName": "Pivots",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Traditional, Fibonacci, Camarilla or Woodie pivot point, resistance and support levels from the previous day, week, month or year.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "pivot points",
        "floor pivots",
        "fibonacci pivots",
        "camarilla",
        "woodie",
        "support resistance",
        "higher timeframe"
      ],
      "builtIn": "pivot-points",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "type",
          "type": "select",
          "label": "Type",
          "default": "Traditional",
          "options": [
            "Traditional",
            "Fibonacci",
            "Camarilla",
            "Woodie"
          ],
          "description": "The pivot formula. Camarilla adds a fourth resistance and support level."
        },
        {
          "key": "period",
          "type": "select",
          "label": "Period",
          "default": "Auto",
          "options": [
            "Auto",
            "Daily",
            "Weekly",
            "Monthly",
            "Yearly"
          ],
          "description": "The period whose high, low and close the levels come from. Auto: daily up to 15-minute bars, weekly above that, monthly on daily bars, yearly on weekly and monthly bars."
        },
        {
          "key": "showPivot",
          "type": "boolean",
          "label": "Pivot",
          "default": true,
          "description": "Draw the central pivot point (P)."
        },
        {
          "key": "showResistance",
          "type": "boolean",
          "label": "Resistance",
          "default": true,
          "description": "Draw the resistance levels above the pivot (R1 to R3, R4 for Camarilla)."
        },
        {
          "key": "showSupport",
          "type": "boolean",
          "label": "Support",
          "default": true,
          "description": "Draw the support levels below the pivot (S1 to S3, S4 for Camarilla)."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "pivot",
            "label": "P",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "r1",
            "label": "R1",
            "color": "#D0837A",
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "r2",
            "label": "R2",
            "color": "#D0837A",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "r3",
            "label": "R3",
            "color": "#D0837A",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "r4",
            "label": "R4",
            "color": "#D0837A",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "s1",
            "label": "S1",
            "color": "#7FB5A0",
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "s2",
            "label": "S2",
            "color": "#7FB5A0",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "s3",
            "label": "S3",
            "color": "#7FB5A0",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "s4",
            "label": "S4",
            "color": "#7FB5A0",
            "lineStyle": "dotted",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fibonacci",
          "name": "Pivot Points (Fibonacci)",
          "shortName": "Fib Pivots",
          "inputs": {
            "type": "Fibonacci"
          }
        },
        {
          "id": "camarilla",
          "name": "Pivot Points (Camarilla)",
          "shortName": "Camarilla",
          "inputs": {
            "type": "Camarilla"
          }
        },
        {
          "id": "woodie",
          "name": "Pivot Points (Woodie)",
          "shortName": "Woodie",
          "inputs": {
            "type": "Woodie"
          }
        },
        {
          "id": "weekly",
          "name": "Pivot Points (weekly)",
          "shortName": "W Pivots",
          "inputs": {
            "period": "Weekly"
          }
        },
        {
          "id": "monthly",
          "name": "Pivot Points (monthly)",
          "shortName": "M Pivots",
          "inputs": {
            "period": "Monthly"
          }
        }
      ],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "1 M"
        },
        {
          "alias": "weekly",
          "barSize": "1 week",
          "duration": "3 M"
        },
        {
          "alias": "monthly",
          "barSize": "1 month",
          "duration": "2 Y"
        }
      ],
      "docs": {
        "overview": "Pivot Points turn the previous period's high, low and close into a central pivot (P) with resistance levels above it (R1, R2, R3) and support levels below it (S1, S2, S3), drawn from the start of the current period. Traditional sets P to the average of high, low and close and steps out by the range; Fibonacci places the levels at 38.2, 61.8 and 100 percent of the range around P; Camarilla clusters four levels each side close to the previous close (1.1 times the range divided by 12, 6, 4 and 2); Woodie weights the current period's open twice.\n\nThe high, low and close come from real daily, weekly and monthly regular-trading-hours bars that Spectral loads beside the chart, so the levels are correct on any bar size and history length.",
        "howToRead": "P is the balance point of the previous period: trading above it leans bullish for the current period, below it bearish. R1 and S1 are the first areas where intraday moves often pause or turn; R2 and S2 are reached on stronger days, and R3 and S3 mark an unusually wide range.\n\nCamarilla traders watch R3 and S3 for fades back into the range and R4 and S4 for breakouts. Pivots are reference prices, not signals: look for a reaction, acceptance or rejection at a level before acting on it.",
        "settings": "Type chooses the formula. Period chooses the period the levels come from; Auto uses daily pivots up to 15-minute bars, weekly pivots above 15 minutes, monthly pivots on daily bars and yearly pivots on weekly or monthly bars, like most charting platforms. Pivot, Resistance and Support switch each group of levels.\n\nThe current period is the one the chart's last bar belongs to (New York trading date, Monday-to-Friday week, calendar month or year), and the levels start at its first chart bar. Values use regular trading hours, so the close is the 16:00 close (13:00 on early-close days). Woodie needs the current period's regular-session open and stays hidden before it, for example in the pre-market.",
        "notes": "Formulas as in TradingView's Pivot Points Standard, which uses the current period's open for Woodie and the average of high, low and close as the Camarilla pivot. This indicator draws R1 to R3 and S1 to S3 for Traditional, Fibonacci and Woodie and R1 to R4 and S1 to S4 for Camarilla; TradingView also offers higher levels and pivots of earlier periods. The yearly levels are built from monthly bars of the previous calendar year. A fixed period loads only the bars it needs: daily bars for Daily, weekly bars for Weekly, monthly bars for Monthly and Yearly. Auto loads all three, because the one it uses depends on the chart's bar size, which cannot switch a series on or off; they are short (one month of daily bars, three months of weekly bars, two years of monthly bars)."
      },
      "sourcePath": "/indicators/pivot-points.js",
      "sha256": "a1376b3fe51da55c1e156cb67749eae32afe69c08e21337c89565c47084b525e",
      "bytes": 11652,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pivot-points/",
      "sourceUrl": "https://spectral.trade/indicators/pivot-points.js"
    },
    {
      "id": "pivot-points-fib-camarilla",
      "name": "Pivot Points Fibonacci & Camarilla",
      "shortName": "Fib/Cam",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Daily Fibonacci or Camarilla pivot levels from the previous regular session, named with their prices at the right edge, with the bars that close between S1 and R1 shaded.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Levels & sessions",
      "tags": [
        "pivot points",
        "fibonacci",
        "camarilla",
        "support",
        "resistance",
        "daily",
        "labels"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "type",
          "type": "select",
          "label": "Type",
          "default": "Fibonacci",
          "options": [
            "Fibonacci",
            "Camarilla"
          ],
          "description": "Fibonacci: levels at 38.2, 61.8 and 100 percent of the previous range around the pivot. Camarilla: four levels each side of the previous close at 1.1 times the range divided by 12, 6, 4 and 2."
        },
        {
          "key": "showPrice",
          "type": "boolean",
          "label": "Prices in labels",
          "default": true,
          "description": "Write each level's price next to its name."
        },
        {
          "key": "shadeInside",
          "type": "boolean",
          "label": "Shade inside S1-R1",
          "default": true,
          "description": "Shade the bars that close between S1 and R1 of their own day."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "pivot",
            "label": "P",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "lineStyle": "solid"
          },
          {
            "key": "r1",
            "label": "R1",
            "color": "#D0837A",
            "lineStyle": "solid"
          },
          {
            "key": "r2",
            "label": "R2",
            "color": "#D0837A",
            "lineStyle": "dashed"
          },
          {
            "key": "r3",
            "label": "R3",
            "color": "#D0837A",
            "lineStyle": "dotted"
          },
          {
            "key": "r4",
            "label": "R4",
            "color": "#D0837A",
            "lineStyle": "dotted"
          },
          {
            "key": "s1",
            "label": "S1",
            "color": "#7FB5A0",
            "lineStyle": "solid"
          },
          {
            "key": "s2",
            "label": "S2",
            "color": "#7FB5A0",
            "lineStyle": "dashed"
          },
          {
            "key": "s3",
            "label": "S3",
            "color": "#7FB5A0",
            "lineStyle": "dotted"
          },
          {
            "key": "s4",
            "label": "S4",
            "color": "#7FB5A0",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "names",
            "label": "Level names",
            "color": "#C4A46A",
            "palette": "side",
            "style": "box",
            "placement": "left",
            "textSize": "small"
          }
        ],
        "barColors": [],
        "bgColors": [
          {
            "key": "balance",
            "label": "Inside S1-R1",
            "palette": "inside",
            "opacity": 0.08
          }
        ],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "side",
          "label": "Level colors",
          "colors": [
            "#C4A46A",
            "#D0837A",
            "#7FB5A0"
          ]
        },
        {
          "key": "inside",
          "label": "Inside S1-R1",
          "colors": [
            "#8B949E"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "1 M"
        }
      ],
      "docs": {
        "overview": "Daily pivot levels from the previous regular session's high, low and close, in one of two classic sets. Fibonacci places R1 to R3 and S1 to S3 at 38.2, 61.8 and 100 percent of the previous range around the standard pivot. Camarilla (Nick Stott) clusters R1 to R4 and S1 to S4 around the previous close, at 1.1 times the range divided by 12, 6, 4 and 2. The levels start at the current New York trading day and are named with their prices at the right edge; bars that close between S1 and R1 of their own day are shaded.",
        "howToRead": "Fibonacci: P is the balance point of the previous session; R1 and S1 are the first reaction areas, R2 and S2 (61.8 percent) the stronger ones, R3 and S3 a full previous range away. Camarilla: price that opens between S3 and R3 tends to stay in range, so traders fade moves to R3 and S3; a close beyond R4 or S4 suggests a breakout day. The shading shows how much of the session stays balanced between S1 and R1. Levels are reference prices, not signals.",
        "settings": "Type chooses the set. R4 and S4 only draw for Camarilla: in Fibonacci mode their colour and line settings stay in the settings but have nothing to draw. Prices in labels adds each level's price to its name. Shade inside S1-R1 turns the shading off; its colour and opacity are appearance settings.\n\nThe previous session's high, low and close come from daily regular-trading-hours bars that Spectral loads beside the chart (the last month), so the levels are the same on every intraday bar size, and the shading reaches back as far as that month. Weekly and monthly charts show nothing.",
        "notes": "Formulas (StockCharts ChartSchool Fibonacci pivots; TradingView Pivot Points Standard, Camarilla): P = (H + L + C) / 3; Fibonacci R1/S1 = P ± 0.382(H - L), R2/S2 = P ± 0.618(H - L), R3/S3 = P ± (H - L); Camarilla R1/S1 = C ± 1.1(H - L)/12, R2/S2 = C ± 1.1(H - L)/6, R3/S3 = C ± 1.1(H - L)/4, R4/S4 = C ± 1.1(H - L)/2, with H, L and C the previous regular session's high, low and close. Camarilla's P is the standard pivot, as on TradingView. A bar's shading uses its own day's S1 and R1. For Standard and Woodie pivots or other periods use Pivot Points Standard (Labeled) or the built-in Pivot Points."
      },
      "sourcePath": "/indicators/pivot-points-fib-camarilla.js",
      "sha256": "2926a138e769bcedbd38e6d964d0d60037a84de4cae11886c0c21e7e49b86c4f",
      "bytes": 7611,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pivot-points-fib-camarilla/",
      "sourceUrl": "https://spectral.trade/indicators/pivot-points-fib-camarilla.js"
    },
    {
      "id": "pivot-points-standard-labels",
      "name": "Pivot Points Standard (Labeled)",
      "shortName": "Pivots",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Standard (floor trader) daily pivot point with three resistance and three support levels from the previous regular session, each named with its price at the right edge.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Levels & sessions",
      "tags": [
        "pivot points",
        "floor trader",
        "support",
        "resistance",
        "daily",
        "labels"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "showPrice",
          "type": "boolean",
          "label": "Prices in labels",
          "default": true,
          "description": "Write each level's price next to its name."
        },
        {
          "key": "showOuter",
          "type": "boolean",
          "label": "R3 and S3",
          "default": true,
          "description": "Draw the outer levels R3 and S3."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "pivot",
            "label": "P",
            "color": "#C4A46A",
            "lineWidth": 1.5,
            "lineStyle": "solid"
          },
          {
            "key": "r1",
            "label": "R1",
            "color": "#D0837A",
            "lineStyle": "solid"
          },
          {
            "key": "r2",
            "label": "R2",
            "color": "#D0837A",
            "lineStyle": "dashed"
          },
          {
            "key": "r3",
            "label": "R3",
            "color": "#D0837A",
            "lineStyle": "dotted"
          },
          {
            "key": "s1",
            "label": "S1",
            "color": "#7FB5A0",
            "lineStyle": "solid"
          },
          {
            "key": "s2",
            "label": "S2",
            "color": "#7FB5A0",
            "lineStyle": "dashed"
          },
          {
            "key": "s3",
            "label": "S3",
            "color": "#7FB5A0",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "names",
            "label": "Level names",
            "color": "#C4A46A",
            "palette": "side",
            "style": "box",
            "placement": "left",
            "textSize": "small"
          }
        ],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "side",
          "label": "Level colors",
          "colors": [
            "#C4A46A",
            "#D0837A",
            "#7FB5A0"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [
        {
          "alias": "daily",
          "barSize": "1 day",
          "duration": "1 M"
        }
      ],
      "docs": {
        "overview": "The standard (floor trader) pivot points of the day: the pivot P is the average of the previous regular session's high, low and close, R1 to R3 lie above it and S1 to S3 below it. Each level is drawn from the start of the current New York trading day and named with its price at the right edge of the chart.",
        "howToRead": "P is the balance point of the previous session: trading above it leans bullish for the day, below it bearish. R1 and S1 are the first areas where moves often pause or turn, R2 and S2 are reached on stronger days and R3 and S3 mark an unusually wide range. The levels are reference prices, not signals: look for a reaction, acceptance or rejection before acting.",
        "settings": "Prices in labels adds each level's price to its name. R3 and S3 turns the outer levels off. The colours of the pivot, resistance and support labels and every line are appearance settings.\n\nThe previous session's high, low and close come from daily regular-trading-hours bars that Spectral loads beside the chart (the last month), so the levels are the same on every intraday bar size; the close is the 16:00 close (13:00 on early-close days). Weekly and monthly charts have no previous day and show nothing.",
        "notes": "Formulas (StockCharts ChartSchool, TradingView Pivot Points Standard, Traditional): P = (H + L + C) / 3, R1 = 2P - L, S1 = 2P - H, R2 = P + (H - L), S2 = P - (H - L), R3 = H + 2(P - L), S3 = L - 2(H - P), with H, L and C the previous regular session's high, low and close. The previous session is the last daily bar before the New York date of the chart's latest bar, so before the open an extended-hours chart already shows the levels for the coming session. For Fibonacci, Camarilla, Woodie and weekly or monthly pivots use the built-in Pivot Points."
      },
      "sourcePath": "/indicators/pivot-points-standard-labels.js",
      "sha256": "1c2e1f313d55cfd9b8c1d58183e61516274761b922c7bb7fc38f9ae44b7713d6",
      "bytes": 5356,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pivot-points-standard-labels/",
      "sourceUrl": "https://spectral.trade/indicators/pivot-points-standard-labels.js"
    },
    {
      "id": "pivot-trendlines",
      "name": "Pivot Trendlines",
      "shortName": "Trendlines",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Connects consecutive confirmed swing highs and swing lows, extends the latest high and low line to the right, and boxes the range between the latest swing high and low.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "pivot",
        "swings",
        "trendline",
        "lines",
        "box",
        "support",
        "resistance"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "strength",
          "type": "integer",
          "label": "Pivot strength",
          "default": 5,
          "min": 1,
          "max": 30,
          "description": "Bars on each side a swing high must stand above (a swing low below) to count."
        },
        {
          "key": "history",
          "type": "integer",
          "label": "Lines shown",
          "default": 40,
          "min": 0,
          "max": 500,
          "description": "Most recent swing-to-swing lines drawn per side."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [
          {
            "key": "swings",
            "label": "Swing lines",
            "color": "#8B949E",
            "palette": "slope",
            "lineWidth": 1,
            "lineStyle": "dotted"
          },
          {
            "key": "latest",
            "label": "Latest trendlines",
            "color": "#D29922",
            "lineWidth": 1.5,
            "extend": "right"
          }
        ],
        "boxes": [
          {
            "key": "range",
            "label": "Swing range",
            "color": "#A371F7",
            "opacity": 0.08,
            "extend": "right",
            "textSize": "small",
            "hideBelowBarWidth": 2
          }
        ]
      },
      "palettes": [
        {
          "key": "slope",
          "label": "Slope",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "A swing high is a high above the highs of the bars on each side (a swing low the mirror), confirmed once those bars closed. Each swing is joined to the previous swing on its side.",
        "howToRead": "Rising lines (green) show higher highs or higher lows, falling lines (red) lower ones. The two latest lines (amber) continue to the right edge: a close beyond the latest high line breaks a falling resistance. The violet box spans the latest swing high and low; a close outside it leaves the range.",
        "settings": "Pivot strength sets how many bars each side confirm a swing; Lines shown limits the older swing lines.",
        "notes": "A swing is only known once the bars to its right closed (live: none), so lines appear that many bars late."
      },
      "sourcePath": "/indicators/pivot-trendlines.js",
      "sha256": "b03deb3bdb7eca0ffb6ad48193e2a7c69e3991c23f243447cf95edc4e2d44540",
      "bytes": 3802,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pivot-trendlines/",
      "sourceUrl": "https://spectral.trade/indicators/pivot-trendlines.js"
    },
    {
      "id": "pmx",
      "name": "Premarket High/Low",
      "shortName": "PMx",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Premarket high and low from 04:10 to 09:30 New York time, plus the opening-volatility extremes before 04:10.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "premarket",
        "pre-market high",
        "pre-market low",
        "gap",
        "opening"
      ],
      "builtIn": "pmx",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "high",
            "label": "PMH",
            "color": "#B7A1C8",
            "showValue": true
          },
          {
            "key": "low",
            "label": "PML",
            "color": "#B7A1C8",
            "showValue": true
          },
          {
            "key": "highVex",
            "label": "PMHvex",
            "color": "#B7A1C8",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "lowVex",
            "label": "PMLvex",
            "color": "#B7A1C8",
            "lineStyle": "dotted",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "PMx marks PMH and PML, the highest and lowest prices of the latest date's pre-market from 04:10 to 09:30 New York time. The first ten pre-market minutes are kept apart because that opening period can be unusually volatile.",
        "howToRead": "PMH and PML frame where the market traded before the open; the regular session often reacts at them. PMHvex is the highest wick from 04:00 to 04:09, shown only when it is above PMH; PMLvex is the lowest wick of that window, shown only when it is below PML. They are context levels, not replacements for PMH and PML.",
        "settings": "There is nothing to set. The chart must show pre-market bars, and the bar size must be 10 minutes or less so the 04:00-04:10 window can be told apart; 1 minute matches the built-in exactly.",
        "notes": "Computes the same levels as the built-in PMx in Spectral on a 1-minute chart. The built-in reads 1-minute pre-market bars on every bar size, which a custom indicator cannot do in schema v1."
      },
      "sourcePath": "/indicators/pmx.js",
      "sha256": "0bcabeed082914b6405f3040015eaf35dc64a43131d0e39b7fa8a27c41f9ec85",
      "bytes": 3629,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pmx/",
      "sourceUrl": "https://spectral.trade/indicators/pmx.js"
    },
    {
      "id": "pocket-pivots",
      "name": "Simple Volume + Pocket Pivots",
      "shortName": "PPV Volume",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Volume histogram colored by class: pocket pivots, above-average up bars, above-average down bars and neutral bars.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "averageLength + lookback",
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "pocket pivot",
        "volume",
        "accumulation",
        "breakout",
        "histogram"
      ],
      "builtIn": "simple-volume-pocket-pivots",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "averageLength",
          "type": "integer",
          "label": "Average length",
          "default": 50,
          "min": 1,
          "max": 500,
          "description": "Bars in the rolling volume average that separates above-average bars."
        },
        {
          "key": "lookback",
          "type": "integer",
          "label": "Pocket-pivot lookback",
          "default": 10,
          "min": 1,
          "max": 300,
          "description": "Prior bars inspected for the highest down-close volume."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [
          {
            "key": "pocketPivot",
            "label": "Pocket pivot",
            "color": "#8AA9C3"
          },
          {
            "key": "highUp",
            "label": "Above-average up bar",
            "color": "#6FAF8A"
          },
          {
            "key": "highDown",
            "label": "Above-average down bar",
            "color": "#C98282"
          },
          {
            "key": "neutral",
            "label": "Other bar",
            "color": "#788493"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Every bar is drawn as a volume bar, and its color says what kind of bar it is. Blue is a pocket pivot: the close is above the previous close and the volume is greater than the highest volume of any down-close bar in the preceding lookback. Green is an above-average up-close bar, red an above-average down-close bar, gray every other bar.",
        "howToRead": "A pocket pivot highlights unusually strong upside participation compared with recent downside volume. It is most useful with constructive price structure, a reclaim or trend alignment.\n\nGreen and red bars show activity above the average, not buying or selling at the tape level.",
        "settings": "The rolling average defaults to 50 bars, so green and red bars start only after 50 bars with valid volume. Pocket pivots default to a 10-bar lookback and need at least 10 prior bars and at least one down-close bar inside it. The current bar is never part of its own threshold.",
        "notes": "Computes the same classes as the built-in Simple Volume + Pocket Pivots in Spectral. A pocket pivot is a screening observation, not a buy signal; it does not infer intrabar order flow or provide stops or targets."
      },
      "sourcePath": "/indicators/pocket-pivots.js",
      "sha256": "5f5c27508ca8b3ad6518e7bd48474f050ba1eb6484e4050df6dc0fa331989c45",
      "bytes": 5295,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pocket-pivots/",
      "sourceUrl": "https://spectral.trade/indicators/pocket-pivots.js"
    },
    {
      "id": "ppo",
      "name": "Percentage Price Oscillator",
      "shortName": "PPO",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "MACD in percent of the slow average: PPO line, signal line and a four-color histogram.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "ppo",
        "percentage price oscillator",
        "macd",
        "histogram",
        "signal line",
        "momentum"
      ],
      "builtIn": "ppo",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "fastLength",
          "type": "integer",
          "label": "Fast length",
          "default": 12,
          "min": 1,
          "max": 500,
          "description": "Length of the fast moving average."
        },
        {
          "key": "slowLength",
          "type": "integer",
          "label": "Slow length",
          "default": 26,
          "min": 1,
          "max": 500,
          "description": "Length of the slow moving average."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Length of the exponential average of PPO that forms the signal line."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the averages are calculated from."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Average type",
          "default": "EMA",
          "options": [
            "EMA",
            "SMA"
          ],
          "description": "Exponential or simple averages for the fast and slow lines."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "ppo",
            "label": "PPO",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [
          {
            "key": "posRising",
            "label": "Histogram above zero, rising",
            "color": "#6FAF8A"
          },
          {
            "key": "posFalling",
            "label": "Histogram above zero, falling",
            "color": "#A4C9B1"
          },
          {
            "key": "negRising",
            "label": "Histogram below zero, rising",
            "color": "#D8B1B1"
          },
          {
            "key": "negFalling",
            "label": "Histogram below zero, falling",
            "color": "#C98282"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Percentage Price Oscillator is MACD expressed in percent: the difference between a fast and a slow average of price, divided by the slow average and multiplied by 100. The signal line is an exponential average of PPO, and the histogram is PPO minus its signal.",
        "howToRead": "Above zero the fast average is above the slow one; the value says by what percentage. PPO crossing its signal line, and the histogram crossing zero with it, shows momentum turning. The histogram colors show direction: dark and light green above zero for rising and falling bars, light and dark red below zero for rising and falling bars.\n\nBecause it is a percentage, PPO compares across instruments and across long histories where the price level changed a lot, which MACD in price units cannot.",
        "settings": "Defaults are 12, 26 and 9 with exponential averages, the common definition (StockCharts and most platforms). The averages start at the first bar, so the earliest values settle after a few times Slow length bars.",
        "notes": "Same lines and histogram colors as Spectral's MACD, in percent of the slow average instead of price units. The signal line is always exponential. TradingView's built-in Price Oscillator draws only the PPO line, with simple 10- and 21-bar averages by default; choose SMA and those lengths to match it."
      },
      "sourcePath": "/indicators/ppo.js",
      "sha256": "338179d03017e97607dfab9244ba8822246618104fba2130e9bdf7e99e46eb7e",
      "bytes": 4441,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ppo/",
      "sourceUrl": "https://spectral.trade/indicators/ppo.js"
    },
    {
      "id": "pwx",
      "name": "Previous Week High/Low",
      "shortName": "PWx",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "High and low of the previous trading week as horizontal levels, with optional history.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Levels & sessions",
      "tags": [
        "previous week",
        "weekly high",
        "weekly low",
        "support",
        "resistance"
      ],
      "builtIn": "pwx",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "showHistory",
          "type": "boolean",
          "label": "Show history",
          "default": false,
          "description": "Also draw the previous-week high and low for every earlier week as step lines."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "highHistory",
            "label": "PWH history",
            "color": "#8AA9C3",
            "lineStyle": "dotted",
            "primary": true
          },
          {
            "key": "lowHistory",
            "label": "PWL history",
            "color": "#8AA9C3",
            "lineStyle": "dotted"
          }
        ],
        "levels": [
          {
            "key": "high",
            "label": "PWH",
            "color": "#8AA9C3",
            "showValue": true
          },
          {
            "key": "low",
            "label": "PWL",
            "color": "#8AA9C3",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Previous Week High/Low marks the highest high and the lowest low of the prior calendar trading week (New York time) as two horizontal levels. Every bar of that week counts, including pre-market and after-hours bars when the chart shows them.",
        "howToRead": "The levels mark where the last completed week found its extremes. Traders use them as larger-scale reference areas: a reclaim, rejection or acceptance at a weekly extreme often matters more than one at a daily level.",
        "settings": "Show history adds step lines that show, for every bar, the high and low of the week before that bar's week. The levels need bars from at least two weeks on the chart, so scroll back or use a bar size that loads enough history.",
        "notes": "Computes the same levels as the built-in PWx in Spectral, which draws them as rays from the previous week."
      },
      "sourcePath": "/indicators/pwx.js",
      "sha256": "07c6e321453c972fdddf7448511d3c057cc1d6807038ddfc553464d426e80157",
      "bytes": 3193,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/pwx/",
      "sourceUrl": "https://spectral.trade/indicators/pwx.js"
    },
    {
      "id": "rate-of-change",
      "name": "Rate of Change",
      "shortName": "ROC",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Percent change of price over the last Length bars, around a zero line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "roc",
        "rate of change",
        "percent change",
        "momentum",
        "oscillator"
      ],
      "builtIn": "rate-of-change",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 9,
          "min": 1,
          "max": 1000,
          "description": "Bars back the current price is compared with."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the change is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "roc",
            "label": "ROC",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "roc-12",
          "name": "Rate of Change (12)",
          "shortName": "ROC 12",
          "inputs": {
            "length": 12
          }
        },
        {
          "id": "roc-25",
          "name": "Rate of Change (25)",
          "shortName": "ROC 25",
          "inputs": {
            "length": 25
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Rate of Change is the percent difference between the current price and the price Length bars ago: 100 x (price - earlier price) / earlier price. Positive values mean price is higher than it was, negative values lower.",
        "howToRead": "Above zero price has risen over the lookback, below zero it has fallen; the distance from zero shows how fast. A line that keeps rising shows an accelerating move, one that rolls over while price still climbs shows the advance slowing.\n\nBecause it is a percentage, readings compare across instruments and price levels. Extremes are relative to the instrument's own history; there are no fixed overbought or oversold levels.",
        "settings": "Length defaults to 9 bars, as on TradingView; 12 and 25 are also common. The first value appears on bar Length + 1 (bar 10 with the default). Each value depends on a single earlier bar, so a large move dropping out of the lookback can turn the line even when price is quiet.",
        "notes": "Matches Rate of Change on TradingView and most platforms. Momentum shows the same comparison in price units instead of percent."
      },
      "sourcePath": "/indicators/rate-of-change.js",
      "sha256": "a768fe1ed31f31d5fd854953de728471ffbd1b333bbc261613d5bd25755483d3",
      "bytes": 2735,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/rate-of-change/",
      "sourceUrl": "https://spectral.trade/indicators/rate-of-change.js"
    },
    {
      "id": "regime-shading",
      "name": "Regime Shading",
      "shortName": "Regime",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Shades the price pane by EMA trend regime, colours the fast EMA by regime and recolours the candles that close beyond the recent closing range.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "breakout",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "regime",
        "ema",
        "trend",
        "background",
        "bar color",
        "shading"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "fast",
          "type": "integer",
          "label": "Fast EMA",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "Bars in the fast EMA."
        },
        {
          "key": "slow",
          "type": "integer",
          "label": "Slow EMA",
          "default": 50,
          "min": 3,
          "max": 400,
          "description": "Bars in the slow EMA."
        },
        {
          "key": "flat",
          "type": "number",
          "label": "Flat band %",
          "default": 0.05,
          "min": 0,
          "max": 2,
          "description": "A fast EMA within this percentage of the slow one counts as no trend."
        },
        {
          "key": "breakout",
          "type": "integer",
          "label": "Breakout bars",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "A close above the highest close (below the lowest close) of this many prior bars is a breakout."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "fast",
            "label": "Fast EMA",
            "color": "#C4A46A",
            "lineWidth": 2,
            "palette": "regime",
            "primary": true
          },
          {
            "key": "slow",
            "label": "Slow EMA",
            "color": "#8B949E",
            "lineWidth": 1,
            "style": "step"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [
          {
            "key": "breakout",
            "label": "Breakout candles",
            "palette": "breakout"
          }
        ],
        "bgColors": [
          {
            "key": "regime",
            "label": "Regime shading",
            "palette": "regime",
            "opacity": 0.08
          }
        ],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "regime",
          "label": "Regime",
          "colors": [
            "#2EA043",
            "#DA3633",
            "#6E7681"
          ]
        },
        {
          "key": "breakout",
          "label": "Breakout",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Classifies every bar by the position of a fast EMA against a slow one: up (fast above), down (fast below) or flat (within the flat band). The pane background and the fast EMA take the regime colour; candles that close beyond the recent range are recoloured.",
        "howToRead": "Green shading and a green fast EMA mark an up regime, red a down regime, grey no trend. A bright green candle closed above every close of the prior Breakout bars, a bright red one below all of them; a breakout in the direction of the regime is the stronger signal.",
        "settings": "Fast and Slow EMA set the regime; a wider Flat band calls more bars flat. Breakout bars sets how far back the range reaches. Every colour, the shading opacity and the candle colours are appearance settings.",
        "notes": null
      },
      "sourcePath": "/indicators/regime-shading.js",
      "sha256": "a99da5d18cee46b7c8e42d6bab618a6286d9069b908feae10f5a1fcdd309108f",
      "bytes": 3789,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/regime-shading/",
      "sourceUrl": "https://spectral.trade/indicators/regime-shading.js"
    },
    {
      "id": "regime-table",
      "name": "Regime Table",
      "shortName": "Regime",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "A table on the price pane that classifies the latest bar as trending up, trending down or ranging from ADX, the directional indicators and the slope of an EMA.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": "slope",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "table",
        "dashboard",
        "regime",
        "adx",
        "dmi",
        "ema",
        "trend strength"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "ADX length",
          "default": 14,
          "min": 2,
          "max": 100,
          "description": "Bars in the Wilder averages of the directional movement and the true range."
        },
        {
          "key": "emaLength",
          "type": "integer",
          "label": "EMA length",
          "default": 50,
          "min": 2,
          "max": 400,
          "description": "Bars in the EMA whose slope sets the direction."
        },
        {
          "key": "slope",
          "type": "integer",
          "label": "Slope bars",
          "default": 5,
          "min": 1,
          "max": 50,
          "description": "How many bars back the EMA slope is measured."
        },
        {
          "key": "threshold",
          "type": "number",
          "label": "Trend ADX",
          "default": 25,
          "min": 10,
          "max": 50,
          "description": "ADX at or above this value counts as a trend."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [
          {
            "key": "regime",
            "label": "Regime",
            "position": "top-right",
            "columns": [
              {
                "align": "left"
              },
              {
                "align": "right",
                "width": 12
              }
            ],
            "border": true
          }
        ],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "regime",
          "label": "Regime",
          "colors": [
            "#2EA043",
            "#DA3633",
            "#6E7681"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Reads the trend state of the latest bar: the Average Directional Index (Wilder) for trend strength, +DI against -DI for its direction, and the slope of an EMA as a second opinion.",
        "howToRead": "Trend up: ADX at or above the Trend ADX setting, +DI above -DI and a rising EMA. Trend down: the mirror image. Anything else is a range. The table updates with every tick of the forming bar; hover the regime cell for the ADX and slope behind it.",
        "settings": "ADX length sets how smooth the directional averages are. EMA length and Slope bars set the direction filter; a longer EMA or more slope bars react later but flip less often.",
        "notes": null
      },
      "sourcePath": "/indicators/regime-table.js",
      "sha256": "e8b295f60fc2da10be4d7bc1e65ae02e54e2f77b6ae4d6376d8a9086d1664a56",
      "bytes": 5164,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/regime-table/",
      "sourceUrl": "https://spectral.trade/indicators/regime-table.js"
    },
    {
      "id": "relative-volume",
      "name": "Relative Volume",
      "shortName": "RVOL",
      "version": "1.0.3",
      "author": "Spectral",
      "description": "Volume as a multiple of normal: against the average of the prior bars, or against the same time of day on earlier sessions.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": {
          "input": "mode",
          "label": "Compare with",
          "values": [
            "Time of day",
            "Time of day (cumulative)"
          ]
        }
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "relative volume",
        "rvol",
        "rvol at time",
        "volume spike",
        "time of day",
        "participation"
      ],
      "builtIn": "relative-volume",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "mode",
          "type": "select",
          "label": "Compare with",
          "default": "Prior bars",
          "options": [
            "Prior bars",
            "Time of day",
            "Time of day (cumulative)"
          ],
          "description": "Prior bars: each bar against the average of the bars before it. Time of day: each bar against the bars at the same time on earlier sessions. Cumulative: the session's volume so far against the same time on earlier sessions."
        },
        {
          "key": "length",
          "type": "integer",
          "label": "Bars",
          "default": 20,
          "min": 1,
          "max": 500,
          "step": 1,
          "description": "Prior bars: how many bars before the current one form the average."
        },
        {
          "key": "sessions",
          "type": "integer",
          "label": "Sessions",
          "default": 10,
          "min": 1,
          "max": 50,
          "step": 1,
          "description": "Time of day: how many earlier sessions form the average at each time."
        },
        {
          "key": "threshold",
          "type": "number",
          "label": "High RVOL",
          "default": 2,
          "min": 0.1,
          "max": 50,
          "step": 0.1,
          "description": "Bars at or above this multiple are highlighted and the level is drawn there."
        },
        {
          "key": "loadHistory",
          "type": "boolean",
          "label": "Load extra history",
          "default": false,
          "description": "Time of day: load two weeks of bars of the chart's bar size, for the earlier sessions the chart has not loaded."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "average",
            "label": "Average",
            "color": "#8B949E",
            "lineStyle": "dashed"
          },
          {
            "key": "threshold",
            "label": "High RVOL",
            "color": "#E0B04A",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [
          {
            "key": "rvol",
            "label": "RVOL",
            "color": "#6E8FB3"
          },
          {
            "key": "high",
            "label": "High RVOL",
            "color": "#E0B04A"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "time-of-day",
          "name": "Relative Volume at Time",
          "shortName": "RVOL@T",
          "inputs": {
            "mode": "Time of day",
            "loadHistory": true
          }
        },
        {
          "id": "cumulative",
          "name": "Relative Volume at Time (Cumulative)",
          "shortName": "RVOL@T Cum",
          "inputs": {
            "mode": "Time of day (cumulative)",
            "loadHistory": true
          }
        }
      ],
      "auxiliary": [
        {
          "alias": "history",
          "barSize": "chart",
          "duration": "2 W"
        }
      ],
      "docs": {
        "overview": "Relative Volume (RVOL) shows how unusual the current volume is: 1 means normal, 2 means twice the usual volume, 0.5 half of it. The bars turn gold at or above the High RVOL multiple.\n\nCompared with prior bars, each bar is measured against the average of the bars right before it. Compared with the time of day, each bar is measured against the same time on earlier sessions, which removes the normal intraday pattern of busy opens and closes and quiet middays; the cumulative variant compares the session's volume so far.",
        "howToRead": "High relative volume shows participation: a breakout, a gap or a move to a key level on RVOL well above 1 has more conviction than the same move on thin volume, and a climax of very high RVOL after a long move often marks exhaustion. Low RVOL shows a quiet market, where moves are easier to reverse.\n\nUse the time-of-day modes for intraday charts: the first minutes after the open are always busy, so a prior-bars RVOL there looks high every day, while the time-of-day RVOL only rises when the open is busier than usual. The cumulative variant answers \"is today busier than usual so far?\" and is the steadier of the two.",
        "settings": "Compare with picks the reference. Bars sets the prior-bars average (20 by default, excluding the current bar). Sessions sets how many earlier sessions are averaged at each time of day (10 by default); with fewer loaded, the available ones are used, and a bar with no earlier session shows nothing.\n\nThe time-of-day modes use regular-session bars (09:30 to 16:00 New York time, to 13:00 on early-close days); other bars show nothing in those modes, and the cumulative volume starts at 09:30. Load extra history (on in the Relative Volume at Time presets) loads two weeks of bars of the chart's own bar size, so the earlier sessions are there even when the chart has loaded only a few days; it is not available on seconds charts, and for a symbol with less history Spectral reports the history as unavailable, so switch it off there. On an extended-hours chart of 20-minute or 1 to 8 hour bars the extra history (bars from 09:30) does not line up with the chart's bars and is ignored. High RVOL sets the highlight multiple and its level.",
        "notes": "The prior-bars mode is the common RVOL (volume divided by its simple moving average of the previous bars, as on most platforms, which usually include or exclude the current bar; Spectral excludes it so a spike does not dampen itself). The time-of-day modes follow TradingView's Relative Volume at Time (regular and cumulative), averaging the same bar time over the chosen number of earlier sessions. Compared with prior bars, the value updates live with the forming bar; the time-of-day modes update when each bar completes, since their average reads earlier sessions from all loaded bars.\n\nOn daily and longer charts the time-of-day modes show nothing (those bars have no time of day). On seconds charts each bar is compared with the bar at the same second on earlier sessions. On an extended-hours chart whose bars start before 09:30 (for example an hourly 09:00 bar), the bar holding the open is not part of the regular session, so the cumulative total starts with the first bar at or after 09:30. A session loaded from mid-day is left out of the cumulative average, and shows no cumulative value itself."
      },
      "sourcePath": "/indicators/relative-volume.js",
      "sha256": "c6d773bb56d284524847633796473f493bbfa1cad93161cde1454a2ea8e86d7f",
      "bytes": 10991,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/relative-volume/",
      "sourceUrl": "https://spectral.trade/indicators/relative-volume.js"
    },
    {
      "id": "rsi",
      "name": "Relative Strength Index",
      "shortName": "RSI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Wilder RSI on a 0-100 scale with a smoothing average and 30/50/70 reference bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "rsi",
        "oscillator",
        "overbought",
        "oversold",
        "momentum"
      ],
      "builtIn": "rsi",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "RSI length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the RSI lookback. Shorter reacts faster but is noisier."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the RSI is calculated from."
        },
        {
          "key": "maLength",
          "type": "integer",
          "label": "Smoothing length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the average drawn over the RSI line."
        },
        {
          "key": "maType",
          "type": "select",
          "label": "Smoothing type",
          "default": "SMA",
          "options": [
            "SMA",
            "EMA"
          ],
          "description": "Simple or exponential average for the smoothing line."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 70,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the upper reference band."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": 50,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": 30,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the lower reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "rsi",
            "label": "RSI",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "ma",
            "label": "Smoothing",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#B7A1C8",
            "opacity": 0.12
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "RSI measures the balance of average gains and losses over the lookback and shows it on a 0-100 scale. Gains and losses are smoothed with Wilder's method. A second line averages the RSI itself, and three reference bands mark 30, 50 and 70.",
        "howToRead": "Above 50 generally means recent gains outweigh losses; below 50 means the reverse. The 70 and 30 bands identify strong or weak momentum regimes, but an instrument can stay above 70 or below 30 during a sustained trend.\n\nCompare reversals and divergences with price structure rather than treating a band touch as a reversal by itself. The smoothing line helps to see the RSI's own direction.",
        "settings": "RSI length defaults to 14 bars with a 14-bar SMA smoothing line. Changing the RSI length changes responsiveness; changing the smoothing affects only the companion line. The first RSI value appears after RSI length bars.",
        "notes": "Computes the same values as the built-in RSI in Spectral. RSI does not measure volume and says nothing about future probability on its own."
      },
      "sourcePath": "/indicators/rsi.js",
      "sha256": "a198c5c12c8654e7b6722579439959dbdb3e439c52c644e6101d28aa5e1c9d1e",
      "bytes": 3881,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/rsi/",
      "sourceUrl": "https://spectral.trade/indicators/rsi.js"
    },
    {
      "id": "rsi-bands",
      "name": "RSI with Bollinger Bands",
      "shortName": "RSI BB",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "RSI with a Bollinger envelope around its moving average, 30/70 guides and crossover dots.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "bbLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "rsi",
        "bollinger bands",
        "oscillator",
        "overbought",
        "oversold",
        "crossover",
        "histogram"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "RSI length",
          "default": 14,
          "min": 2,
          "max": 200,
          "step": 1,
          "description": "Number of bars in the RSI lookback. Shorter reacts faster but is noisier."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the RSI is calculated from."
        },
        {
          "key": "bbLength",
          "type": "integer",
          "label": "Band length",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "Number of RSI values in the band average and its standard deviation."
        },
        {
          "key": "bbMult",
          "type": "number",
          "label": "Band width",
          "default": 2,
          "min": 0.5,
          "max": 5,
          "step": 0.1,
          "description": "Distance of each band from the average, in standard deviations."
        },
        {
          "key": "showBand",
          "type": "boolean",
          "label": "Fill band",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "rsi",
            "label": "RSI",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "basis",
            "label": "Basis",
            "color": "#C4A46A",
            "lineWidth": 1
          },
          {
            "key": "upper",
            "label": "Upper",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "lower",
            "label": "Lower",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "levels": [
          {
            "key": "overbought",
            "label": "70",
            "color": "#788493",
            "lineStyle": "dotted",
            "showValue": true
          },
          {
            "key": "oversold",
            "label": "30",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [
          {
            "key": "band",
            "label": "Band",
            "color": "#8AA9C3",
            "opacity": 0.1
          }
        ],
        "markers": [
          {
            "key": "cross",
            "label": "RSI crosses basis",
            "color": "#3FB950",
            "radius": 3
          }
        ],
        "columns": [
          {
            "key": "spread",
            "label": "RSI minus basis",
            "color": "#58A6FF"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fast",
          "name": "RSI BB (fast)",
          "shortName": "RSI BB 7",
          "inputs": {
            "length": 7,
            "bbLength": 10
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Relative Strength Index with a Bollinger envelope drawn around its own moving average.",
        "howToRead": "RSI above the upper band marks unusually strong momentum; below the lower band, unusually weak. The 30/70 guides are the classic oversold/overbought levels.\n\nGreen dots mark RSI crossing above its own average; the histogram shows how far RSI is from that average.",
        "settings": "RSI length (14) sets how quickly RSI reacts. Band length (20) and Band width (2) set how far RSI must move to leave the band. The first values appear after RSI length + Band length bars.",
        "notes": "The band uses a population standard deviation, like the built-in Bollinger Bands."
      },
      "sourcePath": "/indicators/rsi-bands.js",
      "sha256": "405c38a1fa8892c74870c064fbc35ff6fda614212e99b0b184a597a644a4d65b",
      "bytes": 4022,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/rsi-bands/",
      "sourceUrl": "https://spectral.trade/indicators/rsi-bands.js"
    },
    {
      "id": "session-high-low-boxes",
      "name": "Session High/Low Boxes",
      "shortName": "Sessions",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A box over the high and low of every New York pre-market, regular and after-hours session, the session's bars shaded in its colour and its name above the box.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Levels & sessions",
      "tags": [
        "sessions",
        "pre-market",
        "after-hours",
        "high",
        "low",
        "box"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "showPre",
          "type": "boolean",
          "label": "Pre-market",
          "default": true,
          "description": "Box the pre-market session, 04:00 to 09:30."
        },
        {
          "key": "showRegular",
          "type": "boolean",
          "label": "Regular",
          "default": true,
          "description": "Box the regular session, 09:30 to 16:00 (13:00 on early-close days)."
        },
        {
          "key": "showPost",
          "type": "boolean",
          "label": "After-hours",
          "default": true,
          "description": "Box the after-hours session, from the close to 20:00."
        },
        {
          "key": "showNames",
          "type": "boolean",
          "label": "Session names",
          "default": true,
          "description": "Write the session name above each box."
        },
        {
          "key": "shade",
          "type": "boolean",
          "label": "Shade sessions",
          "default": true,
          "description": "Shade each session's bars in its colour."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "names",
            "label": "Session names",
            "color": "#58A6FF",
            "palette": "session",
            "style": "none",
            "placement": "above",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 30
          }
        ],
        "barColors": [],
        "bgColors": [
          {
            "key": "shading",
            "label": "Session shading",
            "palette": "session",
            "opacity": 0.05
          }
        ],
        "segments": [],
        "boxes": [
          {
            "key": "sessions",
            "label": "Session range",
            "color": "#58A6FF",
            "palette": "session",
            "opacity": 0.08,
            "hideBelowBarWidth": 1
          }
        ]
      },
      "palettes": [
        {
          "key": "session",
          "label": "Session",
          "colors": [
            "#D29922",
            "#58A6FF",
            "#A371F7"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "US stocks trade in three sessions each New York day: pre-market from 04:00 to 09:30, the regular session from 09:30 to 16:00, and after-hours from the close to 20:00. This indicator boxes the high and low of each session from its first to its last bar, shades its bars in the session's colour and writes the session name above the box. Turn on extended hours on the chart to see the pre-market and after-hours boxes.",
        "howToRead": "The pre-market box shows where overnight news moved price before the open; a regular session that opens outside it has gapped beyond it. The regular box is the day's range on regular hours; after-hours reactions (earnings, news) show beside it. Session highs and lows are common reference levels for the next session.",
        "settings": "Pre-market, Regular and After-hours switch each session; Session names and Shade sessions switch the names and the shading. The three session colours and the opacities are appearance settings. Works on intraday charts; daily and longer charts show nothing.",
        "notes": "Sessions by the bar's New York time: pre-market 04:00-09:30, regular as Spectral's regular-session rule (09:30-16:00, 09:30-13:00 on NYSE early-close days), after-hours from the regular close to 20:00 (bars outside 04:00-20:00 belong to no session). A box runs from the session's first to its last bar and spans its highest high and lowest low; the tooltip lists both. Completed bars only (live: none): a box spans bars outside the window a live tick recalculates, so the current session's box grows at each bar close."
      },
      "sourcePath": "/indicators/session-high-low-boxes.js",
      "sha256": "ba06070225f7daea51347c06735d6b44773df3a0dbe84b16bbee1df92d89997a",
      "bytes": 5347,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/session-high-low-boxes/",
      "sourceUrl": "https://spectral.trade/indicators/session-high-low-boxes.js"
    },
    {
      "id": "sma",
      "name": "Simple Moving Average",
      "shortName": "SMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Simple moving average of the chosen price over a fixed number of bars, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "sma",
        "moving average",
        "trend",
        "average"
      ],
      "builtIn": "sma",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 1,
          "max": 1000,
          "description": "Number of bars in the average. Longer averages are smoother and react later."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "sma",
            "label": "SMA",
            "color": "#C4A46A",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "sma-9",
          "name": "SMA 9",
          "shortName": "SMA 9",
          "inputs": {
            "length": 9
          }
        },
        {
          "id": "sma-50",
          "name": "SMA 50",
          "shortName": "SMA 50",
          "inputs": {
            "length": 50
          }
        },
        {
          "id": "sma-100",
          "name": "SMA 100",
          "shortName": "SMA 100",
          "inputs": {
            "length": 100
          }
        },
        {
          "id": "sma-200",
          "name": "SMA 200",
          "shortName": "SMA 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The simple moving average is the plain average of the selected price over the last Length bars. Every bar in the window counts equally, so the line follows price with a delay of about half the window.",
        "howToRead": "A rising average describes positive recent price pressure; a falling average describes negative pressure. Price interactions, slope and agreement with the surrounding market structure tell you more than a single cross of price and average.\n\nShort averages (9, 20) follow intraday swings; long ones (100, 200) describe the larger trend and are watched by many traders as reference levels.",
        "settings": "Length defaults to 20 bars; the presets add the common 9, 50, 100 and 200. The first value appears after Length bars. A gap in the data restarts the window.",
        "notes": "Computes the same values as the built-in SMA in Spectral. The built-in lists one toolbox entry per length; this file covers them with one indicator and its presets."
      },
      "sourcePath": "/indicators/sma.js",
      "sha256": "d0eb03573757ccaf14771be2e70a107065929e880c0e56870ff5c5bfb3ac1a72",
      "bytes": 2421,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/sma/",
      "sourceUrl": "https://spectral.trade/indicators/sma.js"
    },
    {
      "id": "stochastic",
      "name": "Stochastic Oscillator",
      "shortName": "Stoch",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Where the close sits inside the recent high-low range, on a 0-100 scale, with %K, a %D signal line and 80/20 bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "kLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "stochastic",
        "oscillator",
        "overbought",
        "oversold",
        "momentum",
        "%k %d",
        "slow stochastic"
      ],
      "builtIn": "stochastic",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "kLength",
          "type": "integer",
          "label": "%K length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the high-low range the close is compared with."
        },
        {
          "key": "kSmoothing",
          "type": "integer",
          "label": "%K smoothing",
          "default": 1,
          "min": 1,
          "max": 100,
          "description": "Bars in the simple average applied to %K. 1 draws the raw (fast) %K; 3 gives the common slow stochastic."
        },
        {
          "key": "dSmoothing",
          "type": "integer",
          "label": "%D smoothing",
          "default": 3,
          "min": 1,
          "max": 100,
          "description": "Bars in the simple average of %K that forms the %D signal line."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 80,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the overbought reference band."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": 50,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": 20,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the oversold reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "k",
            "label": "%K",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "d",
            "label": "%D",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#8AA9C3",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "slow",
          "name": "Slow Stochastic (14, 3, 3)",
          "shortName": "Stoch 14 3 3",
          "inputs": {
            "kSmoothing": 3
          }
        },
        {
          "id": "short",
          "name": "Stochastic (5, 3, 3)",
          "shortName": "Stoch 5 3 3",
          "inputs": {
            "kLength": 5,
            "kSmoothing": 3
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Stochastic Oscillator shows where the close sits inside the high-low range of the last %K length bars: 100 is a close at the highest high, 0 a close at the lowest low. %K is that position, optionally smoothed; %D is a simple average of %K that acts as a signal line. Bands at 80 and 20 mark the upper and lower part of the range.",
        "howToRead": "Above 80 the market is closing near the top of its recent range, below 20 near the bottom. In a strong trend the oscillator can stay above 80 or below 20 for a long time, so a band touch is not a reversal by itself.\n\n%K crossing above %D shows closes moving up within the range, crossing below shows them moving down; such crosses mean more near the bands. A higher low in the oscillator while price makes a lower low (or the reverse at the top) is a divergence worth comparing with price structure.",
        "settings": "Defaults are 14 bars for %K, no %K smoothing and 3 bars for %D, as on TradingView. Setting %K smoothing to 3 gives the widely used slow stochastic (14, 3, 3); shorter %K lengths such as 5 react faster but give more crosses.\n\n%K first appears on bar %K length + %K smoothing - 1 (bar 14 with the defaults), %D another %D smoothing - 1 bars later. A range with no width (every bar at the same price) has no value.",
        "notes": "Matches the Stochastic on TradingView and most platforms: raw %K = 100 x (close - lowest low) / (highest high - lowest low), %K = simple average of raw %K, %D = simple average of %K."
      },
      "sourcePath": "/indicators/stochastic.js",
      "sha256": "8618330c1422754824aa59cb08b0315290e8abd32df475283d1fed9ffde0a500",
      "bytes": 4783,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/stochastic/",
      "sourceUrl": "https://spectral.trade/indicators/stochastic.js"
    },
    {
      "id": "stochastic-rsi",
      "name": "Stochastic RSI",
      "shortName": "Stoch RSI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The Stochastic formula applied to RSI: where RSI sits inside its own recent range, with %K, %D and 80/20 bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "stochLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "stochastic rsi",
        "stoch rsi",
        "rsi",
        "oscillator",
        "overbought",
        "oversold",
        "momentum"
      ],
      "builtIn": "stochastic-rsi",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "rsiLength",
          "type": "integer",
          "label": "RSI length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the Wilder RSI the oscillator is built from."
        },
        {
          "key": "stochLength",
          "type": "integer",
          "label": "Stochastic length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the RSI range the current RSI is compared with."
        },
        {
          "key": "kSmoothing",
          "type": "integer",
          "label": "%K smoothing",
          "default": 3,
          "min": 1,
          "max": 100,
          "description": "Bars in the simple average that forms %K. 1 draws the raw, unsmoothed value."
        },
        {
          "key": "dSmoothing",
          "type": "integer",
          "label": "%D smoothing",
          "default": 3,
          "min": 1,
          "max": 100,
          "description": "Bars in the simple average of %K that forms the %D signal line."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the RSI is calculated from."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 80,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the upper reference band."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": 50,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": 20,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the lower reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "k",
            "label": "%K",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "d",
            "label": "%D",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#8AA9C3",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fast",
          "name": "Stochastic RSI (unsmoothed)",
          "shortName": "Stoch RSI fast",
          "inputs": {
            "kSmoothing": 1
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Stochastic RSI applies the Stochastic formula to the RSI instead of to price: 100 means the RSI is at its highest value of the last Stochastic length bars, 0 at its lowest. %K is that position smoothed by a short simple average, and %D averages %K again as a signal line. Bands mark 80 and 20.",
        "howToRead": "It is far more sensitive than RSI: it moves through its whole range even when RSI stays between 40 and 60. Above 80 the RSI is near the top of its recent range, below 20 near the bottom. In a trend it can stay pinned at 100 or 0 for many bars.\n\n%K crossing %D, especially near the bands, shows the short-term turn in momentum. Use it to time entries within a trend you have identified elsewhere rather than as a trend signal of its own.",
        "settings": "Defaults are a 14-bar RSI, a 14-bar stochastic window, and 3-bar smoothing for %K and %D, as on TradingView. Set %K smoothing to 1 for the raw value. %K first appears on bar RSI length + Stochastic length + %K smoothing - 1 (bar 30 with the defaults). When the RSI did not move at all inside the window, there is no value.",
        "notes": "Matches the Stochastic RSI on TradingView and most platforms (Chande and Kroll). The RSI is Wilder's RSI, the same as Spectral's RSI."
      },
      "sourcePath": "/indicators/stochastic-rsi.js",
      "sha256": "8917b450cf0016d9778e5da8d8e6094edacca7bde248a86977e8a7f97da02a39",
      "bytes": 4731,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/stochastic-rsi/",
      "sourceUrl": "https://spectral.trade/indicators/stochastic-rsi.js"
    },
    {
      "id": "supertrend",
      "name": "Supertrend",
      "shortName": "ST",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A trailing stop line that follows price at a multiple of the ATR: green below price in an uptrend, red above it in a downtrend.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "supertrend",
        "trailing stop",
        "atr",
        "trend direction",
        "trend following",
        "stop and reverse"
      ],
      "builtIn": "supertrend",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "atrLength",
          "type": "integer",
          "label": "ATR length",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the Average True Range (Wilder smoothing) that sets the distance of the line from price."
        },
        {
          "key": "factor",
          "type": "number",
          "label": "Factor",
          "default": 3,
          "min": 0.1,
          "max": 20,
          "step": 0.1,
          "description": "Multiple of the ATR between the middle of the bar and the line. A larger factor flips less often and trails further away."
        },
        {
          "key": "showFlips",
          "type": "boolean",
          "label": "Trend change dots",
          "default": true,
          "description": "Mark each bar where the trend flips with a dot on the new line: green below price when it turns up, red above price when it turns down."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "upTrend",
            "label": "Up trend",
            "color": "#3FB950",
            "lineWidth": 1.5,
            "primary": true,
            "gaps": "break"
          },
          {
            "key": "downTrend",
            "label": "Down trend",
            "color": "#E5534B",
            "lineWidth": 1.5,
            "gaps": "break"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "flipUp",
            "label": "Turns up",
            "color": "#3FB950",
            "radius": 4
          },
          {
            "key": "flipDown",
            "label": "Turns down",
            "color": "#E5534B",
            "radius": 4
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fast",
          "name": "Supertrend (7, 3)",
          "shortName": "ST 7",
          "inputs": {
            "atrLength": 7,
            "factor": 3
          }
        },
        {
          "id": "tight",
          "name": "Supertrend (10, 2)",
          "shortName": "ST 10/2",
          "inputs": {
            "atrLength": 10,
            "factor": 2
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Supertrend trails price with a line placed a multiple of the Average True Range away from the middle of each bar (the average of its high and low). In an uptrend the line sits below price and only rises; in a downtrend it sits above price and only falls. When a close crosses the line, the trend flips and the line jumps to the other side.\n\nThe up-trend line is green and the down-trend line red; optional dots mark the bars where the trend changes.",
        "howToRead": "Green line under price: the trend is up and the line is a trailing stop for longs. Red line above price: the trend is down and the line is a trailing stop for shorts. A flip happens on the close, so on the forming bar the line can change sides and change back until the bar closes.\n\nSupertrend works well in trending markets and gives late, costly flips in sideways markets; a wider factor or a longer ATR filters some of them. It describes the trend; it does not predict how far a move will go.",
        "settings": "ATR length (10) and Factor (3) are the common defaults; 7 and 3 reacts faster, 10 and 2 trails tighter. The line appears after ATR length bars and starts in a down trend until the first close above it; like TradingView, the first bar never shows a line. It suits any bar size.",
        "notes": "Matches TradingView's built-in Supertrend: Wilder ATR, the middle of the bar as the base, bands that only tighten while the trend lasts, and a flip on the close. The two lines break at a flip instead of joining, like TradingView."
      },
      "sourcePath": "/indicators/supertrend.js",
      "sha256": "53a7f02578f89415458d07b4869614f7fc02a0bce77a13dd07743ef5f53a4cb5",
      "bytes": 6042,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/supertrend/",
      "sourceUrl": "https://spectral.trade/indicators/supertrend.js"
    },
    {
      "id": "supertrend-colored",
      "name": "Supertrend Colored",
      "shortName": "ST Colored",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Supertrend as one line coloured by the trend, the candles coloured to match, and a triangle on every bar where the trend flips.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "supertrend",
        "atr",
        "trailing stop",
        "trend",
        "bar color",
        "flip"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "atrLength",
          "type": "integer",
          "label": "ATR length",
          "default": 10,
          "min": 1,
          "max": 500,
          "description": "Bars in the Average True Range (Wilder smoothing) that sets the distance of the line from price."
        },
        {
          "key": "factor",
          "type": "number",
          "label": "Factor",
          "default": 3,
          "min": 0.1,
          "max": 20,
          "step": 0.1,
          "description": "Multiple of the ATR between the middle of the bar and the line. A larger factor flips less often and trails further away."
        },
        {
          "key": "colorBars",
          "type": "boolean",
          "label": "Colour candles",
          "default": true,
          "description": "Colour the chart's candles by the trend."
        },
        {
          "key": "showFlips",
          "type": "boolean",
          "label": "Flip triangles",
          "default": true,
          "description": "Mark each bar where the trend flips: a triangle under the bar when it turns up, over the bar when it turns down."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "supertrend",
            "label": "Supertrend",
            "color": "#3FB950",
            "lineWidth": 1.5,
            "primary": true,
            "gaps": "break",
            "palette": "trend"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "flipUp",
            "label": "Turns up",
            "color": "#3FB950",
            "shape": "triangleUp",
            "size": "small",
            "placement": "belowBar"
          },
          {
            "key": "flipDown",
            "label": "Turns down",
            "color": "#F85149",
            "shape": "triangleDown",
            "size": "small",
            "placement": "aboveBar"
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [
          {
            "key": "candles",
            "label": "Trend candles",
            "palette": "trend"
          }
        ],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "trend",
          "label": "Trend",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Supertrend trails price with a line placed a multiple of the Average True Range (ATR) away from the middle of each bar, the average of its high and low. In an uptrend the line sits below price and only rises; in a downtrend it sits above price and only falls. When a close crosses the line, the trend flips and the line moves to the other side of price.\n\nThis version draws one line that is green in an uptrend and red in a downtrend, colours the candles the same way and marks every flip with a triangle.",
        "howToRead": "Green line under price and green candles: the trend is up and the line is a trailing stop for longs. Red line above price and red candles: the trend is down and the line is a trailing stop for shorts. A triangle under a bar marks a flip up, one over a bar a flip down. A flip happens on the close, so on the forming bar the colours can change and change back until the bar closes.\n\nSupertrend works well in trending markets and gives late, costly flips in sideways markets; a wider factor or a longer ATR filters some of them.",
        "settings": "ATR length (10) and Factor (3) are the common defaults; a smaller factor trails tighter and flips more often. Colour candles and Flip triangles switch those parts; the two trend colours are appearance settings. The line appears after ATR length bars; it starts in a down trend until the first close above it.",
        "notes": "Formula (TradingView Supertrend reference; Olivier Seban): basic bands = (H + L) / 2 +- Factor x ATR, ATR with Wilder smoothing. The final upper band takes the basic upper band when that is lower than the previous final upper band or the previous close was above it, else it keeps the previous one; the final lower band is the mirror. After an up trend the trend turns down when the close is below the final lower band; after a down trend it turns up when the close is above the final upper band. Before the ATR has a value the trend is down. The line is the lower band in an up trend and the upper band in a down trend. On a flip bar the line breaks (no value) so it does not join the two sides with a vertical stroke; the flip triangle marks that bar. Same trend as the built-in Supertrend."
      },
      "sourcePath": "/indicators/supertrend-colored.js",
      "sha256": "2ee84f6dbf21b922a5b4d2e6a124a5550c2765a1451419a2fc7ec9709d7680a7",
      "bytes": 6327,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/supertrend-colored/",
      "sourceUrl": "https://spectral.trade/indicators/supertrend-colored.js"
    },
    {
      "id": "swing-labels",
      "name": "Swing Labels",
      "shortName": "Swings",
      "version": "1.0.0",
      "author": "Spectral examples",
      "description": "Labels each confirmed swing high and low with its price and whether it is higher or lower than the last one, and draws the latest swing high and low as levels with inline labels.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "swings",
        "swing high",
        "swing low",
        "labels",
        "higher high",
        "lower low"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "strength",
          "type": "integer",
          "label": "Pivot strength",
          "default": 3,
          "min": 1,
          "max": 20,
          "description": "Bars on each side a swing high must stand above (a swing low below) to count."
        },
        {
          "key": "showLevels",
          "type": "boolean",
          "label": "Latest swing levels",
          "default": true,
          "description": "Draw the latest swing high and low as levels from the bar they formed on."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "lastHigh",
            "label": "Swing high",
            "color": "#D29922",
            "lineStyle": "dotted",
            "labelStyle": "inline"
          },
          {
            "key": "lastLow",
            "label": "Swing low",
            "color": "#A371F7",
            "lineStyle": "dotted",
            "labelStyle": "inline"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "highs",
            "label": "Swing highs",
            "color": "#D29922",
            "palette": "swing",
            "style": "pin",
            "placement": "above",
            "hideBelowBarWidth": 2
          },
          {
            "key": "lows",
            "label": "Swing lows",
            "color": "#A371F7",
            "palette": "swing",
            "style": "pin",
            "placement": "below",
            "hideBelowBarWidth": 2
          }
        ],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "swing",
          "label": "Swing",
          "colors": [
            "#D29922",
            "#A371F7"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Finds swing highs and lows the way fractal pivots do: a bar whose high is above the highs of the bars on each side (a low below their lows), confirmed once those bars have closed. Each swing gets a label with its price; HH, LH, HL and LL compare it with the swing before it.",
        "howToRead": "HH (higher high) and HL (higher low) in amber describe an up-trending structure, LH and LL in violet a down-trending one. A swing is labelled only after Pivot strength bars have closed on its right, so the newest swing appears a few bars late. The dotted levels mark the latest swing high and low, the usual breakout and stop references.",
        "settings": "Pivot strength sets how many bars on each side must stay below a swing high (above a swing low): a higher value finds fewer, more significant swings. Latest swing levels turns the two levels off.",
        "notes": null
      },
      "sourcePath": "/indicators/swing-labels.js",
      "sha256": "49c65ed014b4a09c79aff55fcbe8e2b426244dc0dcc30e700ea24ebb1b0b8a57",
      "bytes": 3870,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/swing-labels/",
      "sourceUrl": "https://spectral.trade/indicators/swing-labels.js"
    },
    {
      "id": "tema",
      "name": "Triple Exponential Moving Average",
      "shortName": "TEMA",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Patrick Mulloy's triple exponential moving average: an EMA with its lag corrected twice, drawn on the candles.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "tema",
        "triple ema",
        "moving average",
        "low lag",
        "trend"
      ],
      "builtIn": "tema",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 9,
          "min": 1,
          "max": 1000,
          "description": "Length of the three exponential averages inside the TEMA. Longer lengths are smoother and react later."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the average is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "tema",
            "label": "TEMA",
            "color": "#C98FA8",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "tema-21",
          "name": "TEMA 21",
          "shortName": "TEMA 21",
          "inputs": {
            "length": 21
          }
        },
        {
          "id": "tema-50",
          "name": "TEMA 50",
          "shortName": "TEMA 50",
          "inputs": {
            "length": 50
          }
        },
        {
          "id": "tema-200",
          "name": "TEMA 200",
          "shortName": "TEMA 200",
          "inputs": {
            "length": 200
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Triple Exponential Moving Average, published by Patrick Mulloy in 1994, removes the lag of an exponential average more thoroughly than the DEMA. It stacks three EMAs (an EMA of price, an EMA of that, and an EMA of the second) and plots three times the first, minus three times the second, plus the third.\n\nThe combination cancels most of the delay an EMA carries, so the line hugs price closely while still filtering some of the bar-to-bar noise.",
        "howToRead": "TEMA is the fastest of the classic exponential averages: its slope shows the short-term direction almost as soon as price turns, and it suits traders who want a trend line that stays close to price. Crosses with a slower average come early.\n\nThe price of that speed is noise: it overshoots after sharp moves and changes direction often in sideways markets, so it is better read together with a slower average or with price structure than on its own.",
        "settings": "Length defaults to 9 bars, as on TradingView; the presets add 21, 50 and 200. All three inner averages use the same length.\n\nThe line starts at the first bar with no warm-up, so its earliest values lean on the first prices and settle after a few multiples of Length.",
        "notes": "Computes 3 x EMA1 - 3 x EMA2 + EMA3, Mulloy's formula. Each EMA starts from its first value, like Spectral's EMA; platforms that start an EMA from a simple average, TradingView among them, draw nothing for the first 3 x Length - 3 bars, and the values agree once warmed up. It is not TRIX, the oscillator built from the rate of change of a triple-smoothed EMA."
      },
      "sourcePath": "/indicators/tema.js",
      "sha256": "cd86adc4ab300732d27329cb98aecbd8b66c320f12b1099d57e3c315c6c46607",
      "bytes": 3312,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/tema/",
      "sourceUrl": "https://spectral.trade/indicators/tema.js"
    },
    {
      "id": "trend-regime-table",
      "name": "Trend Regime Table",
      "shortName": "Regime",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A table on the price pane with ADX, +DI and -DI (Wilder) and the EMA 20/50 state of the latest bar, and the pane shaded by the trend regime of every bar.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Trend",
      "tags": [
        "adx",
        "dmi",
        "trend",
        "regime",
        "table",
        "ema",
        "background"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "DI length",
          "default": 14,
          "min": 2,
          "max": 100,
          "description": "Bars in the Wilder smoothing of the true range, the directional movement and the ADX."
        },
        {
          "key": "threshold",
          "type": "number",
          "label": "Trend ADX",
          "default": 25,
          "min": 10,
          "max": 50,
          "step": 0.5,
          "description": "ADX at or above this value counts as a trend (25 is the common reading, e.g. StockCharts)."
        },
        {
          "key": "fast",
          "type": "integer",
          "label": "Fast EMA",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "Bars in the fast EMA of the close."
        },
        {
          "key": "slow",
          "type": "integer",
          "label": "Slow EMA",
          "default": 50,
          "min": 3,
          "max": 400,
          "description": "Bars in the slow EMA of the close."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [
          {
            "key": "regime",
            "label": "Trend regime",
            "position": "top-right",
            "columns": [
              {
                "align": "left"
              },
              {
                "align": "right",
                "width": 11
              }
            ],
            "border": true
          }
        ],
        "labels": [],
        "barColors": [],
        "bgColors": [
          {
            "key": "shading",
            "label": "Regime shading",
            "palette": "regime",
            "opacity": 0.1
          }
        ],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "regime",
          "label": "Regime",
          "colors": [
            "#2EA043",
            "#DA3633",
            "#6E7681"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Classifies every bar as trending up, trending down or ranging. Trend strength comes from the Average Directional Index and its direction from the directional indicators +DI and -DI (J. Welles Wilder, New Concepts in Technical Trading Systems, 1978); an EMA 20 against an EMA 50 of the close confirms the direction. A table at the top right shows the readings of the latest bar, and the pane background takes the regime colour of every bar.",
        "howToRead": "Trend up (green): ADX at or above Trend ADX, +DI above -DI and the fast EMA above the slow one. Trend down (red): ADX at or above Trend ADX, -DI above +DI and the fast EMA below the slow one. Everything else is a range (grey), including a strong ADX whose DI and EMA directions disagree.\n\nA common reading (StockCharts ChartSchool) takes an ADX above 25 as a trending market and below 20 as a weak or absent trend. A rising ADX means the trend is getting stronger in either direction; ADX does not say which way, the DI lines and the EMAs do.",
        "settings": "DI length sets the Wilder smoothing (14 is Wilder's). Trend ADX is the strength a trend needs. Fast and Slow EMA set the direction filter; a longer pair flips less often and later. The shading opacity, the regime colours and the table position are appearance settings.",
        "notes": "Formulas: +DM is the rise of the high over the prior high when it is larger than the fall of the low and positive, else 0; -DM the mirror image. The true range, +DM and -DM start on the second bar (the first bar has no true range here, unlike ctx.ta.atr, which counts its high minus low) and are smoothed with Wilder's average (the first value is the simple average of the first DI length values, then (previous x (n - 1) + value) / n); +DI and -DI are 100 times the smoothed moves over the smoothed true range, DX is 100 x |+DI - -DI| / (+DI + -DI), and the ADX is DX smoothed the same way, so it appears after about twice DI length bars. Matches the built-in ADX & DMI in Spectral and TradingView's DMI. The EMAs start at the first close. Each bar is read on its own, so the table updates with every tick of the forming bar."
      },
      "sourcePath": "/indicators/trend-regime-table.js",
      "sha256": "c3d18f229c310ba162a16e7fc027cec242645822eaf694d774499f29378465f0",
      "bytes": 6920,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/trend-regime-table/",
      "sourceUrl": "https://spectral.trade/indicators/trend-regime-table.js"
    },
    {
      "id": "trix",
      "name": "TRIX",
      "shortName": "TRIX",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "One-bar change of a triple-smoothed exponential average of log price, scaled as on TradingView, with a signal line and a zero line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "trix",
        "triple exponential",
        "moving average",
        "signal line",
        "momentum",
        "oscillator"
      ],
      "builtIn": "trix",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 18,
          "min": 1,
          "max": 500,
          "description": "Bars in each of the three exponential averages."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 9,
          "min": 1,
          "max": 500,
          "description": "Bars in the exponential average of TRIX that forms the signal line."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price TRIX is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "trix",
            "label": "TRIX",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "TRIX (Jack Hutson) smooths the logarithm of price three times with an exponential average of Length bars and shows the one-bar change of the result, multiplied by 10,000: roughly the triple-smoothed price's change per bar in hundredths of a percent. The triple smoothing removes most short swings, so TRIX tracks the underlying trend's speed. The signal line is an exponential average of TRIX.",
        "howToRead": "Above zero the triple-smoothed price is rising, below zero falling; the zero cross marks a turn in that trend. TRIX crossing its signal line is the earlier, more frequent signal of momentum changing.\n\nDivergences, where price makes a new high or low and TRIX does not, show the trend losing speed. Because it is heavily smoothed, TRIX turns late but rarely whipsaws.",
        "settings": "Length defaults to 18 bars, as on TradingView, with a 9-bar signal; 15 is the other common length. The averages start at the first bar, so the earliest values are unreliable; they settle after about three times Length bars.",
        "notes": "Matches TRIX on TradingView: 10,000 x the one-bar change of the triple exponential average of the logarithm of price. The classic percent form (StockCharts and some other platforms) is 1/100 of it with the same shape. TradingView draws no signal line; here it is an exponential average of TRIX."
      },
      "sourcePath": "/indicators/trix.js",
      "sha256": "ed9b5c5b15c9696a99b2fe8ef6ac5913f3fb7e974646ae117d5c52e8eba13183",
      "bytes": 3183,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/trix/",
      "sourceUrl": "https://spectral.trade/indicators/trix.js"
    },
    {
      "id": "tsi",
      "name": "True Strength Index",
      "shortName": "TSI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Double-smoothed price change divided by double-smoothed absolute price change, from -100 to 100, with a signal line.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": 1,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "tsi",
        "true strength index",
        "double smoothed",
        "signal line",
        "momentum",
        "oscillator"
      ],
      "builtIn": "tsi",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "longLength",
          "type": "integer",
          "label": "Long length",
          "default": 25,
          "min": 1,
          "max": 500,
          "description": "Bars in the first exponential smoothing of the price change."
        },
        {
          "key": "shortLength",
          "type": "integer",
          "label": "Short length",
          "default": 13,
          "min": 1,
          "max": 500,
          "description": "Bars in the second exponential smoothing."
        },
        {
          "key": "signalLength",
          "type": "integer",
          "label": "Signal length",
          "default": 13,
          "min": 1,
          "max": 500,
          "description": "Bars in the exponential average of TSI that forms the signal line."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price the change is calculated from."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "tsi",
            "label": "TSI",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "signal",
            "label": "Signal",
            "color": "#C4A46A",
            "lineWidth": 1
          }
        ],
        "levels": [
          {
            "key": "zero",
            "label": "Zero line",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "short-term",
          "name": "True Strength Index (13, 7, 7)",
          "shortName": "TSI 13 7",
          "inputs": {
            "longLength": 13,
            "shortLength": 7,
            "signalLength": 7
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The True Strength Index (William Blau) smooths the one-bar price change twice with exponential averages (first Long length, then Short length) and divides it by the same double smoothing of the absolute change. The result, times 100, runs from -100 (every bar down) to 100 (every bar up). The signal line is an exponential average of TSI.",
        "howToRead": "Above zero up moves have outweighed down moves, below zero the reverse; the distance from zero shows how one-sided the market has been. TSI crossing its signal line shows a shift in momentum, and the zero cross a shift in the trend's direction.\n\nReadings beyond about +25 or -25 are strong for most instruments, but the useful extremes depend on the instrument and bar size, so compare with its own history. Divergences against price are worth noting.",
        "settings": "Defaults are 25, 13 and a 13-bar signal, as on TradingView. A shorter pair such as 13 and 7 reacts faster. The averages start at the second bar, so the earliest values settle after a few times Long length bars. A price that has not moved since the history began has no value.",
        "notes": "Matches the True Strength Index on TradingView and most platforms."
      },
      "sourcePath": "/indicators/tsi.js",
      "sha256": "ef66021f6aabc2cf3f65508aee61154dc394c93acc2bfa8d41f905c0fc509e00",
      "bytes": 3405,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/tsi/",
      "sourceUrl": "https://spectral.trade/indicators/tsi.js"
    },
    {
      "id": "ttm-squeeze",
      "name": "TTM Squeeze",
      "shortName": "Squeeze",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "John Carter's TTM Squeeze: a momentum histogram in four colours and a dot on the zero line that is red while the Bollinger Bands sit inside the Keltner Channel.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "2*length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Volatility",
      "tags": [
        "ttm squeeze",
        "squeeze",
        "bollinger",
        "keltner",
        "momentum",
        "histogram"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 20,
          "min": 2,
          "max": 200,
          "description": "Bars of the Bollinger Bands, the Keltner Channel and the momentum regression."
        },
        {
          "key": "bbMult",
          "type": "number",
          "label": "Bollinger width",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Standard deviations of the Bollinger Bands."
        },
        {
          "key": "kcMult",
          "type": "number",
          "label": "Keltner width",
          "default": 1.5,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "ATR multiple of the Keltner Channel."
        },
        {
          "key": "showDots",
          "type": "boolean",
          "label": "Squeeze dots",
          "default": true,
          "description": "Draw the squeeze state as a cross on the zero line of every bar."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "momentum",
            "label": "Momentum",
            "color": "#00BCD4",
            "lineWidth": 2,
            "primary": true,
            "style": "histogram",
            "palette": "momentum"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "squeeze",
            "label": "Squeeze",
            "color": "#F85149",
            "shape": "cross",
            "size": "tiny",
            "palette": "squeeze",
            "hideBelowBarWidth": 2
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [
        {
          "key": "momentum",
          "label": "Momentum",
          "colors": [
            "#00BCD4",
            "#2962A8",
            "#F85149",
            "#8E2A2A"
          ]
        },
        {
          "key": "squeeze",
          "label": "Squeeze",
          "colors": [
            "#F85149",
            "#3FB950"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The TTM Squeeze by John Carter (Mastering the Trade) looks for quiet markets that are about to move. The squeeze is on while the Bollinger Bands (20 bars, 2 standard deviations) lie inside the Keltner Channel (20 bars, 1.5 ATR): volatility has contracted. The histogram measures momentum: the close against the average of the 20-bar Donchian midline and the 20-bar simple average, smoothed with a 20-bar linear regression.",
        "howToRead": "Red crosses on the zero line: the squeeze is on. Green crosses: it is off. Carter's signal is the first green cross after a run of red ones, the squeeze firing, taken in the direction of the histogram. Light blue bars: momentum above zero and rising; dark blue: above zero and falling; bright red: below zero and falling; dark red: below zero and rising. A colour change toward the dark shade often comes before the move ends.",
        "settings": "Length (20), Bollinger width (2) and Keltner width (1.5) are Carter's settings; a wider Keltner Channel reports more squeezes. Squeeze dots switches the crosses. The six colours are appearance settings.",
        "notes": "Formulas (StockCharts ChartSchool, TTM Squeeze; John Carter, Mastering the Trade): squeeze on when the upper Bollinger Band is below the upper Keltner Channel and the lower band above the lower channel; Bollinger = SMA(close) +- width x population standard deviation; Keltner = SMA(close) +- width x ATR (Wilder smoothing, Carter's channel; StockCharts' article describes the same 20 bars and 1.5 ATR). Momentum = linear regression value at the latest bar (least squares over Length bars) of close - ((highest high + lowest low) / 2 + SMA(close)) / 2. A bar equal to the previous one keeps the rising shade. Momentum appears after about twice Length bars. Other charting tools build the Keltner Channel differently: the common TradingView port (LazyBear's Squeeze Momentum Indicator) averages the true range with a simple average instead of Wilder's, and StockCharts' Keltner Channels use an EMA basis, so the squeeze dots there can turn on or off a few bars earlier or later; the momentum histogram uses the same formula as LazyBear's. On a long chart the squeeze crosses are drawn on the newest 4,000 bars only (Spectral keeps at most 4,000 shape markers per key); the histogram covers every bar."
      },
      "sourcePath": "/indicators/ttm-squeeze.js",
      "sha256": "5e3b2cba5ea500bbab080a57e88ed88dfa56b1390c28a8cb0ea5ac902711cc38",
      "bytes": 6501,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ttm-squeeze/",
      "sourceUrl": "https://spectral.trade/indicators/ttm-squeeze.js"
    },
    {
      "id": "ultimate-oscillator",
      "name": "Ultimate Oscillator",
      "shortName": "UO",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Buying pressure relative to true range over three lookbacks, weighted 4:2:1, on a 0-100 scale with 70/30 bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "fastLength + middleLength + slowLength",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "ultimate oscillator",
        "uo",
        "larry williams",
        "buying pressure",
        "overbought",
        "oversold",
        "momentum"
      ],
      "builtIn": "ultimate-oscillator",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "fastLength",
          "type": "integer",
          "label": "Fast length",
          "default": 7,
          "min": 1,
          "max": 500,
          "description": "Bars in the shortest lookback, weighted 4."
        },
        {
          "key": "middleLength",
          "type": "integer",
          "label": "Middle length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the middle lookback, weighted 2."
        },
        {
          "key": "slowLength",
          "type": "integer",
          "label": "Slow length",
          "default": 28,
          "min": 1,
          "max": 500,
          "description": "Bars in the longest lookback, weighted 1."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": 70,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the upper reference band."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": 50,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": 30,
          "min": 0,
          "max": 100,
          "step": 1,
          "description": "Level of the lower reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "uo",
            "label": "UO",
            "color": "#7FB5A0",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#7FB5A0",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Ultimate Oscillator (Larry Williams) measures buying pressure, the close minus the lower of the low and the previous close, as a share of the true range. It sums both over three lookbacks (7, 14 and 28 bars), divides them, and averages the three ratios with weights 4, 2 and 1, so the short lookback counts most without letting it dominate. The result runs from 0 to 100.",
        "howToRead": "Above 50 closes have been in the upper part of their true ranges, below 50 in the lower part. Williams used 70 and 30 as the overbought and oversold zones.\n\nHis original signal is a divergence: price makes a new low while the oscillator makes a higher low that held above 30, then the oscillator rises above the high between the two lows. Readings on their own describe pressure; compare them with price structure.",
        "settings": "Defaults are 7, 14 and 28 bars, as on TradingView. Keeping the 1:2:4 ratio between the lengths keeps the character of the indicator. The first value appears on bar Slow length + 1 (bar 29 with the defaults), because the first bar has no previous close. When nothing traded in range over a lookback, there is no value.",
        "notes": "Matches the Ultimate Oscillator on TradingView and most platforms: 100 x (4 x A7 + 2 x A14 + A28) / 7, where each A is the sum of buying pressure divided by the sum of true range over that lookback."
      },
      "sourcePath": "/indicators/ultimate-oscillator.js",
      "sha256": "cdd40f8c3b844d816f65eb3906e459023237613af5a7b5bc27f187bc46bbfc34",
      "bytes": 4850,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/ultimate-oscillator/",
      "sourceUrl": "https://spectral.trade/indicators/ultimate-oscillator.js"
    },
    {
      "id": "volume",
      "name": "Volume",
      "shortName": "Volume",
      "version": "1.1.0",
      "author": "Spectral",
      "description": "Volume bars in their own pane with a rolling average line and a shaded cloud up to the average.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "averageLength",
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "volume",
        "histogram",
        "average",
        "participation"
      ],
      "builtIn": "volume",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "averageLength",
          "type": "integer",
          "label": "Average length",
          "default": 20,
          "min": 1,
          "max": 500,
          "description": "Bars in the rolling volume average."
        },
        {
          "key": "showCloud",
          "type": "boolean",
          "label": "Show cloud",
          "default": true,
          "description": "Shade the area from zero up to the average."
        },
        {
          "key": "showAverage",
          "type": "boolean",
          "label": "Show average line",
          "default": true,
          "description": "Draw the average as a line on top of the cloud."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "average",
            "label": "Average",
            "color": "#8AA9C3",
            "lineWidth": 1,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "cloud",
            "label": "Average cloud",
            "color": "#8AA9C3",
            "opacity": 0.18
          }
        ],
        "markers": [],
        "columns": [
          {
            "key": "volume",
            "label": "Up bar",
            "color": "#089981"
          },
          {
            "key": "down",
            "label": "Down bar",
            "color": "#F23645"
          }
        ],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Volume plots the reported volume of every chart bar as a histogram, green when the bar closed at or above its open and red when it closed below it, with a rolling average of the last Average length bars and a shaded cloud from zero up to that average.",
        "howToRead": "Bars that rise well above the cloud show stronger participation than the recent baseline; moves on bars inside the cloud have less broad support. Compare each bar with the average and with nearby price structure.",
        "settings": "The average defaults to 20 bars and appears once 20 bars are loaded. Missing volume counts as zero in the average. Volume is bar-level reported volume, so its meaning depends on the instrument, the bar size, the session and the data feed.",
        "notes": "Computes the same bars, colors and average as the built-in Volume in Spectral (its colors follow your candle colors there; here the Up bar and Down bar colors are settings). Custom indicators cannot use the dedicated volume pane yet, so this one opens its own pane below the chart. Version 1.0.0 drew every bar in one color: a bar color saved there carries over to the Up bar color only, so set Down bar as well to keep one color."
      },
      "sourcePath": "/indicators/volume.js",
      "sha256": "26c01b1c28a4b6cb58073d0465652ab14cc9d87d519a1ce1acc3321d4f38ec77",
      "bytes": 3954,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/volume/",
      "sourceUrl": "https://spectral.trade/indicators/volume.js"
    },
    {
      "id": "volume-profile",
      "name": "Volume Profile",
      "shortName": "VP",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Volume traded at each price as horizontal rows, per session, over a fixed range or for the bars on screen, with point of control and value area.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "volume profile",
        "volume at price",
        "point of control",
        "value area",
        "session profile",
        "fixed range",
        "visible range"
      ],
      "builtIn": "volume-profile",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "mode",
          "type": "select",
          "label": "Profile",
          "default": "Session",
          "options": [
            "Session",
            "Fixed range",
            "Visible range"
          ],
          "description": "Session: one profile per trading day. Fixed range: one profile between From and To. Visible range: one profile of the bars on screen, drawn at the right edge."
        },
        {
          "key": "rows",
          "type": "integer",
          "label": "Rows",
          "default": 24,
          "min": 4,
          "max": 200,
          "step": 1,
          "description": "Number of price rows each profile is divided into."
        },
        {
          "key": "valueArea",
          "type": "number",
          "label": "Value area %",
          "default": 70,
          "min": 10,
          "max": 100,
          "step": 1,
          "description": "Share of the volume, around the point of control, that forms the value area."
        },
        {
          "key": "sessions",
          "type": "integer",
          "label": "Sessions",
          "default": 20,
          "min": 1,
          "max": 200,
          "step": 1,
          "description": "Session profile only: how many of the most recent trading days get a profile."
        },
        {
          "key": "fromTime",
          "type": "time",
          "label": "From",
          "default": 0,
          "description": "Fixed range only: the first bar of the profile. Not set: the first loaded bar."
        },
        {
          "key": "toTime",
          "type": "time",
          "label": "To",
          "default": 0,
          "description": "Fixed range only: the last bar of the profile. Not set: the last bar."
        },
        {
          "key": "upDown",
          "type": "boolean",
          "label": "Up and down volume",
          "default": true,
          "description": "Split each row into the volume of up bars and down bars."
        },
        {
          "key": "showLevels",
          "type": "boolean",
          "label": "POC and value area lines",
          "default": true,
          "description": "Draw the point of control and the value area high and low of the latest session or the fixed range as levels."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [
          {
            "key": "poc",
            "label": "POC",
            "color": "#E0B04A",
            "lineWidth": 1.5,
            "lineStyle": "solid",
            "showValue": true
          },
          {
            "key": "vah",
            "label": "VAH",
            "color": "#9FB3C8",
            "lineStyle": "dashed",
            "showValue": true
          },
          {
            "key": "val",
            "label": "VAL",
            "color": "#9FB3C8",
            "lineStyle": "dashed",
            "showValue": true
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [
          {
            "key": "profile",
            "label": "Profile",
            "color": "#5B7FA6",
            "upColor": "#4E9A7A",
            "opacity": 0.35,
            "placement": "range"
          },
          {
            "key": "visibleProfile",
            "label": "Visible range profile",
            "color": "#5B7FA6",
            "upColor": "#4E9A7A",
            "opacity": 0.35,
            "placement": "visible"
          }
        ],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "fixed-range",
          "name": "Volume Profile (Fixed Range)",
          "shortName": "VPFR",
          "inputs": {
            "mode": "Fixed range"
          }
        },
        {
          "id": "visible-range",
          "name": "Volume Profile (Visible Range)",
          "shortName": "VPVR",
          "inputs": {
            "mode": "Visible range"
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Volume Profile shows how much volume traded at each price, as horizontal rows next to the candles. Long rows are prices where the market did a lot of business; short rows are prices it passed through quickly.\n\nThree profiles are available: one per trading day (Session), one between two moments you choose (Fixed range), and one of the bars currently on screen (Visible range), which follows you as you scroll and zoom. Each marks the point of control (POC, the price with the most volume) and the value area (where the chosen share of the volume traded, usually 70%).",
        "howToRead": "The point of control and the value area are where buyers and sellers agreed on price. Prices near the POC tend to attract and hold price; thin rows (low-volume areas) are often crossed fast, and price that leaves them tends to travel to the next high-volume area.\n\nInside the value area the market is balanced; acceptance outside it (price holding beyond the value area high or low) suggests the market is looking for a new value, while a quick return inside suggests the move was rejected. The green share of each row traded on up bars, the blue share on down bars.",
        "settings": "Profile picks Session, Fixed range or Visible range. Rows sets how finely each profile is divided; Value area % sets the share of volume in the value area (70% is the common choice). Sessions limits how many recent trading days get a session profile (fewer when many rows are chosen, so that all rows stay within the drawing budget).\n\nFrom and To set the fixed range as New York date and time, from the bar that contains From to the bar that contains To; From not set (or earlier than the loaded bars) starts at the first loaded bar, To not set ends at the last bar. Up and down volume splits each row by bar direction. POC and value area lines draws the POC, VAH and VAL of the latest session or of the fixed range as levels; the visible-range profile marks its value area with brighter rows instead, because it changes with every scroll.",
        "notes": "Spectral only has the chart's bars, not the trades inside them, so each bar's volume is spread evenly across its high-low range; platforms that read lower-timeframe or tick data (TradingView with intrabar data) place volume more exactly, and long bars blur the profile more than short ones. A bar counts as up when it closes at or above its open. The value area grows one row at a time from the POC toward the busier neighbouring row until it holds the chosen share; some platforms compare two rows at a time, which can move the edges by a row.\n\nSessions are New York trading dates, so on an extended-hours chart a session profile includes pre- and post-market bars. The visible-range profile divides the whole loaded price range into one fine grid and groups it into Rows rows for the prices on screen; when the chart holds many bars, a very short zoom range shows fewer distinct rows. The rows and the POC, VAH and VAL lines update when each bar completes, so the forming bar counts once it closes. Needs a Spectral version with schemaVersion 2."
      },
      "sourcePath": "/indicators/volume-profile.js",
      "sha256": "41971a0eeac65312decdef83a3ee73d5e6bd75b222218dd9aff3dbec8f9fd967",
      "bytes": 14236,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/volume-profile/",
      "sourceUrl": "https://spectral.trade/indicators/volume-profile.js"
    },
    {
      "id": "vortex",
      "name": "Vortex Indicator",
      "shortName": "VI",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "VI+ and VI-: upward and downward trend movement relative to the true range, for spotting trend starts and reversals.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "vortex",
        "vi+ vi-",
        "trend reversal",
        "trend direction",
        "true range"
      ],
      "builtIn": "vortex",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 2,
          "max": 500,
          "description": "Number of bars summed for the vortex movements and the true range."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "plusVi",
            "label": "VI+",
            "color": "#3FB950",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "minusVi",
            "label": "VI-",
            "color": "#E5534B",
            "lineWidth": 1.5
          }
        ],
        "levels": [
          {
            "key": "one",
            "label": "1.0",
            "color": "#788493",
            "lineStyle": "dotted"
          }
        ],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "long",
          "name": "Vortex Indicator (21)",
          "shortName": "VI 21",
          "inputs": {
            "length": 21
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "The Vortex Indicator by Etienne Botes and Douglas Siepman measures trend movement between bars. Upward movement is the distance from the previous low to the current high, downward movement the distance from the previous high to the current low. Summed over Length bars and divided by the sum of the true range, they give VI+ and VI-.",
        "howToRead": "VI+ above VI- shows that upward movement dominates and an uptrend is in force; VI- above VI+ shows a downtrend. A cross of the two lines is the main signal: VI+ crossing above VI- can start an uptrend, the opposite cross a downtrend. The further apart the lines, the stronger the trend.\n\nIn sideways markets the lines cross often and stay close to 1.0, the dotted guide; confirm a cross with price breaking a recent high or low.",
        "settings": "Length 14 is the common default (the authors also tested 21, available as a preset, and longer windows). Values appear after Length plus one bars. A longer length gives fewer, later crosses.",
        "notes": "Matches TradingView's Vortex Indicator: the true range includes gaps from the previous close, and all three parts are plain sums over Length bars."
      },
      "sourcePath": "/indicators/vortex.js",
      "sha256": "3ba55254b273cf67b41bf89d56fa728aa32c4b5370545b0c6794277fda493569",
      "bytes": 3159,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/vortex/",
      "sourceUrl": "https://spectral.trade/indicators/vortex.js"
    },
    {
      "id": "vwap",
      "name": "VWAP",
      "shortName": "VWAP",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Session volume-weighted average price that starts fresh on every New York trading date.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 1,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "vwap",
        "volume weighted",
        "intraday",
        "session",
        "fair price"
      ],
      "builtIn": "vwap",
      "codeAvailable": true,
      "featured": true,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [],
      "outputs": {
        "plots": [
          {
            "key": "vwap",
            "label": "VWAP",
            "color": "#8AA9C3",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "VWAP is the session average of the typical price (high + low + close) / 3, weighted by each bar's volume. Bars with more volume pull the line harder. It resets at the start of every New York trading date.",
        "howToRead": "Price holding above a rising VWAP can indicate intraday strength; price holding below a falling VWAP can indicate weakness. Retests can be useful context: the slope and whether price accepts or rejects the line matter more than a momentary cross.\n\nMany intraday traders treat VWAP as the fair price of the session, so it often acts as a magnet or a reference for entries.",
        "settings": "There is nothing to set. VWAP needs volume; it stays empty until the first bar of the session with volume. Use it on intraday bar sizes; on daily or larger bars each bar is its own session.",
        "notes": "Computes the same values as the built-in VWAP in Spectral, including pre-market and after-hours bars when the chart shows them."
      },
      "sourcePath": "/indicators/vwap.js",
      "sha256": "846295d713d53d96a7f7cf4d2a451526f7af14eb331769feb9dca76cc5fd9388",
      "bytes": 1681,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/vwap/",
      "sourceUrl": "https://spectral.trade/indicators/vwap.js"
    },
    {
      "id": "vwap-bands",
      "name": "VWAP with Bands",
      "shortName": "VWAP Bands",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Session volume-weighted average price with up to three pairs of volume-weighted standard deviation bands.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": true,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Volume",
      "tags": [
        "vwap",
        "vwap bands",
        "standard deviation",
        "intraday",
        "session",
        "mean reversion"
      ],
      "builtIn": "vwap-bands",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "hlc3",
          "description": "Price weighted by volume. hlc3 is the average of high, low and close."
        },
        {
          "key": "showBand1",
          "type": "boolean",
          "label": "Band 1",
          "default": true,
          "description": "Draw the first pair of bands."
        },
        {
          "key": "mult1",
          "type": "number",
          "label": "Band 1 multiplier",
          "default": 1,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the first bands from VWAP, in standard deviations."
        },
        {
          "key": "showBand2",
          "type": "boolean",
          "label": "Band 2",
          "default": true,
          "description": "Draw the second pair of bands."
        },
        {
          "key": "mult2",
          "type": "number",
          "label": "Band 2 multiplier",
          "default": 2,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the second bands from VWAP, in standard deviations."
        },
        {
          "key": "showBand3",
          "type": "boolean",
          "label": "Band 3",
          "default": true,
          "description": "Draw the third pair of bands."
        },
        {
          "key": "mult3",
          "type": "number",
          "label": "Band 3 multiplier",
          "default": 3,
          "min": 0.1,
          "max": 10,
          "step": 0.1,
          "description": "Distance of the third bands from VWAP, in standard deviations."
        },
        {
          "key": "showZones",
          "type": "boolean",
          "label": "Shaded zones",
          "default": true,
          "description": "Fill the area between each pair of enabled bands with a light color."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "vwap",
            "label": "VWAP",
            "color": "#D4A85F",
            "lineWidth": 1.5,
            "primary": true
          },
          {
            "key": "upper1",
            "label": "Upper band 1",
            "color": "#8AA9C3"
          },
          {
            "key": "lower1",
            "label": "Lower band 1",
            "color": "#8AA9C3"
          },
          {
            "key": "upper2",
            "label": "Upper band 2",
            "color": "#8AA9C3",
            "lineStyle": "dashed"
          },
          {
            "key": "lower2",
            "label": "Lower band 2",
            "color": "#8AA9C3",
            "lineStyle": "dashed"
          },
          {
            "key": "upper3",
            "label": "Upper band 3",
            "color": "#8AA9C3",
            "lineStyle": "dotted"
          },
          {
            "key": "lower3",
            "label": "Lower band 3",
            "color": "#8AA9C3",
            "lineStyle": "dotted"
          }
        ],
        "levels": [],
        "zones": [
          {
            "key": "zone1",
            "label": "Zone 1",
            "color": "#8AA9C3",
            "opacity": 0.07
          },
          {
            "key": "zone2",
            "label": "Zone 2",
            "color": "#8AA9C3",
            "opacity": 0.05
          },
          {
            "key": "zone3",
            "label": "Zone 3",
            "color": "#8AA9C3",
            "opacity": 0.03
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "bands-1-2",
          "name": "VWAP with Bands (1, 2)",
          "shortName": "VWAP 1-2",
          "inputs": {
            "showBand1": true,
            "showBand2": true,
            "showBand3": false
          }
        },
        {
          "id": "band-1",
          "name": "VWAP with Band (1)",
          "shortName": "VWAP 1",
          "inputs": {
            "showBand1": true,
            "showBand2": false,
            "showBand3": false
          }
        },
        {
          "id": "close",
          "name": "VWAP with Bands (close)",
          "shortName": "VWAP close",
          "inputs": {
            "source": "close"
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "VWAP is the volume-weighted average price of the trading session: every price is weighted by the volume traded at it, so it shows the average price actually paid. It restarts at the beginning of each New York trading date. This indicator adds up to three pairs of bands at a chosen number of standard deviations above and below VWAP.\n\nThe deviation is volume-weighted: the square root of (sum of volume times price squared / sum of volume - VWAP squared), evaluated cumulatively from the session start, so the bands start narrow and widen as the day unfolds.",
        "howToRead": "VWAP acts as the fair price of the day. Price above it means buyers have been paying up through the session; price below it, the opposite. Institutions often judge execution against VWAP, which is why price tends to react around it.\n\nThe bands show how far price has stretched from the day's average, in standard deviations. Price at the first band is a normal excursion; at the second or third band it is stretched, and moves often pause or revert toward VWAP, but a strong trend day can walk along the outer bands. Bands are narrow early in the session and unreliable for the first few bars.",
        "settings": "Source is the price that is weighted by volume (hlc3 by default; close is a common alternative). Band 1, 2 and 3 switch each pair on or off, and the multipliers set their distance in standard deviations (1, 2 and 3 by default). Shaded zones fills between each enabled pair and can be switched off; zone colors and opacity are in the style settings.\n\nVWAP appears on the first bar of a session that has volume and restarts at each New York trading date, so on daily and longer bar sizes it is just the bar's own price. It suits intraday bar sizes.",
        "notes": "The calculation is the standard session VWAP with volume-weighted standard deviation bands, the same definition TradingView uses for its VWAP indicator (default bands there are at 1 standard deviation, here 1, 2 and 3 are available). The difference is the session: TradingView restarts VWAP at the exchange session start, while Spectral restarts it at the New York calendar date, so for instruments that trade around the clock, such as futures, the restart is at midnight New York time. Bars with no volume do not move VWAP. Extended-hours bars are included when the chart loads them."
      },
      "sourcePath": "/indicators/vwap-bands.js",
      "sha256": "4dbbccfb3c4f68b17fdc5cd7bbda20973abf87f235b21f0a121f99e5e8348b43",
      "bytes": 7399,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/vwap-bands/",
      "sourceUrl": "https://spectral.trade/indicators/vwap-bands.js"
    },
    {
      "id": "williams-alligator",
      "name": "Williams Alligator",
      "shortName": "Alligator",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Bill Williams' jaw, teeth and lips: three smoothed averages of the median price, shifted forward, that intertwine in ranges and fan out in trends.",
      "pane": "price",
      "live": {
        "updates": "tick",
        "lookback": 0,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Trend",
      "tags": [
        "alligator",
        "bill williams",
        "jaw teeth lips",
        "smoothed moving average",
        "smma",
        "trend"
      ],
      "builtIn": "williams-alligator",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "jawLength",
          "type": "integer",
          "label": "Jaw length",
          "default": 13,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the jaw, the slowest smoothed moving average."
        },
        {
          "key": "teethLength",
          "type": "integer",
          "label": "Teeth length",
          "default": 8,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the teeth, the middle smoothed moving average."
        },
        {
          "key": "lipsLength",
          "type": "integer",
          "label": "Lips length",
          "default": 5,
          "min": 1,
          "max": 500,
          "description": "Number of bars in the lips, the fastest smoothed moving average."
        },
        {
          "key": "jawOffset",
          "type": "integer",
          "label": "Jaw offset",
          "default": 8,
          "min": 0,
          "max": 100,
          "description": "Bars the jaw is drawn ahead of the bar it was computed on."
        },
        {
          "key": "teethOffset",
          "type": "integer",
          "label": "Teeth offset",
          "default": 5,
          "min": 0,
          "max": 100,
          "description": "Bars the teeth are drawn ahead of the bar they were computed on."
        },
        {
          "key": "lipsOffset",
          "type": "integer",
          "label": "Lips offset",
          "default": 3,
          "min": 0,
          "max": 100,
          "description": "Bars the lips are drawn ahead of the bar they were computed on."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "jaw",
            "label": "Jaw",
            "color": "#2962FF",
            "lineWidth": 1.5,
            "primary": true,
            "offset": "jawOffset"
          },
          {
            "key": "teeth",
            "label": "Teeth",
            "color": "#E91E63",
            "lineWidth": 1.5,
            "offset": "teethOffset"
          },
          {
            "key": "lips",
            "label": "Lips",
            "color": "#66BB6A",
            "lineWidth": 1.5,
            "offset": "lipsOffset"
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The Alligator by Bill Williams is three smoothed moving averages (Wilder's smoothing) of the median price, the middle of each bar's high and low. The jaw (blue, 13 bars) is drawn 8 bars ahead, the teeth (red, 8 bars) 5 bars ahead and the lips (green, 5 bars) 3 bars ahead, so the lines reach into the space right of the last bar.",
        "howToRead": "When the three lines intertwine, the alligator sleeps: the market has no trend and trend trades get chopped up. When they separate and line up in order (lips, teeth, jaw from top to bottom in an uptrend, the reverse in a downtrend), the alligator wakes and eats: a trend is under way. Lines converging again show the trend tiring.\n\nPrice crossing the lines and the lines starting to fan out is the usual early signal; Williams combined it with his fractals and the Awesome Oscillator.",
        "settings": "The lengths 13, 8 and 5 and offsets 8, 5 and 3 are Williams' originals, built from Fibonacci numbers. The offsets only move the lines and do not change their values. Each line appears after its length in bars.",
        "notes": "Matches TradingView's Williams Alligator: smoothed moving averages (the same as Wilder's RMA, seeded with a simple average) of the median price, with the same offsets."
      },
      "sourcePath": "/indicators/williams-alligator.js",
      "sha256": "e3c2cc389d1423f446bc8f0dc49ec8426746d69a44924dd44d5db364b9636289",
      "bytes": 3509,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/williams-alligator/",
      "sourceUrl": "https://spectral.trade/indicators/williams-alligator.js"
    },
    {
      "id": "williams-fractals",
      "name": "Williams Fractals",
      "shortName": "Fractals",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Bill Williams' up and down fractals: a high or low that stands above or below the bars on both sides, marked once the bars after it have closed.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Patterns & signals",
      "tags": [
        "fractals",
        "bill williams",
        "swing highs",
        "swing lows",
        "reversal",
        "breakout"
      ],
      "builtIn": "williams-fractals",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "periods",
          "type": "integer",
          "label": "Periods",
          "default": 2,
          "min": 2,
          "max": 20,
          "description": "Bars on each side a fractal must stand out against. Bill Williams used 2: a five-bar pattern."
        },
        {
          "key": "showUp",
          "type": "boolean",
          "label": "Up fractals",
          "default": true,
          "description": "Mark up fractals, the swing highs, at the bar's high."
        },
        {
          "key": "showDown",
          "type": "boolean",
          "label": "Down fractals",
          "default": true,
          "description": "Mark down fractals, the swing lows, at the bar's low."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "up",
            "label": "Up fractal",
            "color": "#3FB950",
            "radius": 4
          },
          {
            "key": "down",
            "label": "Down fractal",
            "color": "#F85149",
            "radius": 4
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Williams Fractals mark the turning points Bill Williams described in Trading Chaos. An up fractal is a bar whose high is higher than the highs of the two bars before it and the two bars after it; a down fractal is a bar whose low is lower than the lows of the two bars on each side. The dot sits at that high or low.\n\nBars with the same high (or low) just before the fractal bar are allowed, so a flat top still counts once the bars around it are lower.",
        "howToRead": "Up fractals are recent swing highs, down fractals recent swing lows. In Williams' method a break above the latest up fractal is a buy signal and a break below the latest down fractal a sell signal, usually taken only in the direction of the trend (for example with the Alligator). Many traders also use the most recent fractals as stop and breakout levels.\n\nA fractal is known only after the bars on its right have closed, so the dot appears two bars (Periods) after the bar it marks. It never appears or disappears while a bar is still forming.",
        "settings": "Periods sets how many bars on each side a fractal must stand out against; 2 is the classic five-bar fractal, and larger values mark fewer, more significant swings with more delay. Up fractals and Down fractals switch each kind of marker.\n\nWorks on every bar size; the most recent Periods bars can never be a fractal yet.",
        "notes": "Same rule as TradingView's Williams Fractals: the bars after the fractal bar must be strictly lower (higher for a down fractal), and up to four bars with an equal high (or low) are allowed just before it. Computed from closed bars only, so it does not repaint."
      },
      "sourcePath": "/indicators/williams-fractals.js",
      "sha256": "ee592a0ff6cc7a35135b04e5c0e6a7daede03d1d3766c4fda93460fab699c37b",
      "bytes": 4128,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/williams-fractals/",
      "sourceUrl": "https://spectral.trade/indicators/williams-fractals.js"
    },
    {
      "id": "williams-fractals-shapes",
      "name": "Williams Fractals Shapes",
      "shortName": "Fractals",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "Bill Williams' fractals as triangles: one above every swing-high bar and one below every swing-low bar, hidden while the bars are too narrow to read them.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "williams",
        "fractals",
        "swing high",
        "swing low",
        "bill williams",
        "reversal"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "periods",
          "type": "integer",
          "label": "Periods",
          "default": 2,
          "min": 1,
          "max": 20,
          "description": "Bars on each side a fractal bar must stand out against; 2 is Williams' five-bar fractal."
        },
        {
          "key": "showUp",
          "type": "boolean",
          "label": "Up fractals",
          "default": true,
          "description": "Mark up fractals (swing highs) with a triangle above the bar."
        },
        {
          "key": "showDown",
          "type": "boolean",
          "label": "Down fractals",
          "default": true,
          "description": "Mark down fractals (swing lows) with a triangle below the bar."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [
          {
            "key": "up",
            "label": "Up fractal",
            "color": "#3FB950",
            "shape": "triangleUp",
            "size": "small",
            "placement": "aboveBar",
            "hideBelowBarWidth": 2
          },
          {
            "key": "down",
            "label": "Down fractal",
            "color": "#F85149",
            "shape": "triangleDown",
            "size": "small",
            "placement": "belowBar",
            "hideBelowBarWidth": 2
          }
        ],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Williams Fractals mark the turning points Bill Williams described in Trading Chaos (1995): an up fractal is a bar whose high is higher than the highs of the two bars before it and the two bars after it, a down fractal a bar whose low is lower than the lows of the two bars on each side. This version draws a triangle above each up fractal and below each down fractal, like TradingView's fractal arrows, and hides them while the bars are narrower than 2 pixels.",
        "howToRead": "Up fractals are recent swing highs, down fractals recent swing lows. In Williams' method a break above the latest up fractal is a buy signal and a break below the latest down fractal a sell signal, usually taken only in the direction of the trend. A fractal is known only after the bars on its right have closed, so a triangle appears Periods bars after the bar it marks and never changes afterwards.",
        "settings": "Periods sets how many bars on each side must be lower (higher for a down fractal); 2 is the classic five-bar pattern, larger values mark fewer, more significant swings with more delay. Up fractals and Down fractals switch each kind; the triangle colours are appearance settings. Zoom in when the triangles are hidden.",
        "notes": "Rule (Bill Williams, Trading Chaos; TradingView, Williams Fractal: five bars, the middle one the highest high or lowest low): strict on both sides here, so a bar whose high equals a neighbour's is no up fractal; the built-in Williams Fractals follows TradingView's script, which also accepts up to four equal highs just before the fractal bar. Computed from completed bars only (live: none). The chart keeps the 20,000 most recent triangles of each kind."
      },
      "sourcePath": "/indicators/williams-fractals-shapes.js",
      "sha256": "e0b89296a15de42719667d194fa2f8fc5017a6c528d71aea69a3760921e6b2e4",
      "bytes": 4017,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/williams-fractals-shapes/",
      "sourceUrl": "https://spectral.trade/indicators/williams-fractals-shapes.js"
    },
    {
      "id": "williams-r",
      "name": "Williams %R",
      "shortName": "%R",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "How far the close sits below the recent high, on a 0 to -100 scale, with -20 and -80 bands.",
      "pane": "oscillator",
      "live": {
        "updates": "tick",
        "lookback": "length",
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Momentum",
      "tags": [
        "williams %r",
        "williams r",
        "oscillator",
        "overbought",
        "oversold",
        "momentum"
      ],
      "builtIn": "williams-r",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "length",
          "type": "integer",
          "label": "Length",
          "default": 14,
          "min": 1,
          "max": 500,
          "description": "Bars in the high-low range the close is compared with."
        },
        {
          "key": "source",
          "type": "source",
          "label": "Source",
          "default": "close",
          "description": "Price compared with the range; the close is standard."
        },
        {
          "key": "upperBand",
          "type": "number",
          "label": "Upper band",
          "default": -20,
          "min": -100,
          "max": 0,
          "step": 1,
          "description": "Level of the overbought reference band."
        },
        {
          "key": "middleBand",
          "type": "number",
          "label": "Middle band",
          "default": -50,
          "min": -100,
          "max": 0,
          "step": 1,
          "description": "Level of the middle reference band."
        },
        {
          "key": "lowerBand",
          "type": "number",
          "label": "Lower band",
          "default": -80,
          "min": -100,
          "max": 0,
          "step": 1,
          "description": "Level of the oversold reference band."
        },
        {
          "key": "showFill",
          "type": "boolean",
          "label": "Fill between bands",
          "default": true,
          "description": "Shade the area between the upper and lower band."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "percentR",
            "label": "%R",
            "color": "#B7A1C8",
            "lineWidth": 1.5,
            "primary": true
          }
        ],
        "levels": [
          {
            "key": "upper",
            "label": "Upper band",
            "color": "#788493",
            "lineStyle": "dashed"
          },
          {
            "key": "middle",
            "label": "Middle band",
            "color": "#788493",
            "lineStyle": "dotted"
          },
          {
            "key": "lower",
            "label": "Lower band",
            "color": "#788493",
            "lineStyle": "dashed"
          }
        ],
        "zones": [
          {
            "key": "fill",
            "label": "Band fill",
            "color": "#B7A1C8",
            "opacity": 0.1
          }
        ],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "Williams %R measures where the close sits inside the high-low range of the last Length bars, counted down from the high: 0 is a close at the highest high, -100 a close at the lowest low. Bands mark -20 and -80.",
        "howToRead": "Between 0 and -20 the market is closing near the top of its recent range; between -80 and -100 near the bottom. Strong trends keep the line in those zones for long stretches, so a reading there describes strength or weakness rather than a turn.\n\nA move back out of a zone (crossing below -20 or above -80) shows the closes leaving the edge of the range, and failures to reach the zone again while price pushes on are divergences worth comparing with price structure.",
        "settings": "Length defaults to 14 bars, as on TradingView. Shorter lengths react faster and spend more time at the extremes. The first value appears on bar Length (bar 14 with the default). A range with no width (every bar at the same price) has no value.",
        "notes": "Matches Williams %R on TradingView and most platforms: -100 x (highest high - close) / (highest high - lowest low). It is the fast Stochastic %K shifted down by 100."
      },
      "sourcePath": "/indicators/williams-r.js",
      "sha256": "e7b9e49ae1824b1817283e42bd68cd6e050e31d10fb397aaaa678e62a84c60a9",
      "bytes": 3837,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/williams-r/",
      "sourceUrl": "https://spectral.trade/indicators/williams-r.js"
    },
    {
      "id": "zig-zag",
      "name": "Zig Zag",
      "shortName": "ZZ",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "A line through the confirmed swing highs and lows that filters out moves smaller than the deviation percent.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 2,
      "minAppVersion": "1.3.0",
      "category": "Patterns & signals",
      "tags": [
        "zig zag",
        "swing highs",
        "swing lows",
        "market structure",
        "trend",
        "waves"
      ],
      "builtIn": "zig-zag",
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-10-25",
      "reason": null,
      "inputs": [
        {
          "key": "deviation",
          "type": "number",
          "label": "Deviation (%)",
          "default": 5,
          "min": 0,
          "max": 100,
          "step": 0.1,
          "description": "The smallest move, in percent of the last swing price, that starts a new swing in the other direction."
        },
        {
          "key": "depth",
          "type": "integer",
          "label": "Depth",
          "default": 10,
          "min": 2,
          "max": 100,
          "description": "Bars a swing high or low must stand out against: half of them, but at least 2, on each side. A larger depth finds fewer, bigger swings."
        }
      ],
      "outputs": {
        "plots": [
          {
            "key": "zigZag",
            "label": "Zig Zag",
            "color": "#E3B341",
            "lineWidth": 2,
            "primary": true
          }
        ],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [],
        "barColors": [],
        "bgColors": [],
        "segments": [],
        "boxes": []
      },
      "palettes": [],
      "presets": [
        {
          "id": "intraday",
          "name": "Zig Zag (intraday, 1%)",
          "shortName": "ZZ 1%",
          "inputs": {
            "deviation": 1
          }
        },
        {
          "id": "major",
          "name": "Zig Zag (major swings, 10%)",
          "shortName": "ZZ 10%",
          "inputs": {
            "deviation": 10,
            "depth": 20
          }
        }
      ],
      "auxiliary": [],
      "docs": {
        "overview": "Zig Zag connects the swing highs and lows of the chart and ignores every move smaller than the deviation. A swing high is a bar whose high stands above the highs of the bars around it (half the depth on each side); a swing low is the mirror image. Swings alternate: a new swing in the other direction counts only once price has moved at least the deviation percent from the last swing, and a higher high (or lower low) in the same direction moves the last swing there.\n\nThe result is the market's skeleton: the legs traders measure for trend structure, retracements and wave counts.",
        "howToRead": "Higher swing highs and higher swing lows describe an uptrend, lower highs and lower lows a downtrend; a break of that sequence is the first sign the structure is changing. The length and duration of the legs show whether moves with the trend are getting stronger or weaker than the pullbacks against it.\n\nZig Zag looks back by construction: a swing is confirmed only half the depth bars after it printed, so the line ends at the last confirmed swing, not at the current price. That last leg can repaint: its end moves while price keeps extending in the same direction, until a swing the other way is confirmed. Use the line for structure, not as a signal.",
        "settings": "Deviation sets how big a move must be to count as a new swing. The default of 5 percent suits daily charts; on intraday charts use 0.5 to 2 percent (the intraday preset uses 1 percent), or the line shows only a few legs. Depth sets how many bars a swing must stand out against; the default of 10 (5 on each side, never fewer than 2) follows TradingView.\n\nThe first swing appears once half the depth bars have printed after it. New swings are confirmed when a bar closes.",
        "notes": "Follows TradingView's Zig Zag: swings are highs and lows that stand out against half the depth bars on each side, a turn needs a move of the deviation percent in its own direction, and the last swing moves to a more extreme price in the same direction. When one bar is both a swing high and a swing low, the turn away from the last swing is tried first, and the bar counts once. TradingView can also extend the line to the current bar; this indicator draws confirmed swings only. MetaTrader's ZigZag uses a backstep instead and can differ on fast, choppy legs."
      },
      "sourcePath": "/indicators/zig-zag.js",
      "sha256": "a34e0f4693065d49790fa9e05332ae784e6694de1113b60ef8fa49fbb7b8bef2",
      "bytes": 6001,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/zig-zag/",
      "sourceUrl": "https://spectral.trade/indicators/zig-zag.js"
    },
    {
      "id": "zigzag-segments",
      "name": "ZigZag Segments",
      "shortName": "ZigZag %",
      "version": "1.0.0",
      "author": "Spectral",
      "description": "The classic percentage ZigZag: straight lines between swing highs and lows that reverse by at least a threshold percentage, each swing labelled with its percentage move.",
      "pane": "price",
      "live": {
        "updates": "bar-close",
        "lookback": null,
        "barCloseWhen": null
      },
      "usesVolume": false,
      "schemaVersion": 3,
      "minAppVersion": "1.5.0",
      "category": "Patterns & signals",
      "tags": [
        "zigzag",
        "swings",
        "swing high",
        "swing low",
        "percent",
        "lines"
      ],
      "builtIn": null,
      "codeAvailable": true,
      "featured": false,
      "addedOn": "2026-11-07",
      "reason": null,
      "inputs": [
        {
          "key": "threshold",
          "type": "number",
          "label": "Reversal %",
          "default": 1,
          "min": 0.1,
          "max": 50,
          "step": 0.1,
          "description": "Smallest move against the last swing, in percent, that confirms it and starts a new swing."
        },
        {
          "key": "showLabels",
          "type": "boolean",
          "label": "Swing labels",
          "default": true,
          "description": "Label every confirmed swing with its percentage move from the swing before it."
        },
        {
          "key": "showLastLeg",
          "type": "boolean",
          "label": "Last leg",
          "default": true,
          "description": "Draw the unconfirmed leg from the last confirmed swing to the latest extreme, dashed."
        }
      ],
      "outputs": {
        "plots": [],
        "levels": [],
        "zones": [],
        "markers": [],
        "columns": [],
        "profiles": [],
        "tables": [],
        "labels": [
          {
            "key": "highs",
            "label": "Swing highs",
            "color": "#3FB950",
            "palette": "swing",
            "style": "none",
            "placement": "above",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 40
          },
          {
            "key": "lows",
            "label": "Swing lows",
            "color": "#F85149",
            "palette": "swing",
            "style": "none",
            "placement": "below",
            "textSize": "small",
            "hideBelowBarWidth": 1,
            "maxVisible": 40
          }
        ],
        "barColors": [],
        "bgColors": [],
        "segments": [
          {
            "key": "legs",
            "label": "Confirmed legs",
            "color": "#58A6FF",
            "lineWidth": 2
          },
          {
            "key": "lastLeg",
            "label": "Last leg",
            "color": "#58A6FF",
            "lineWidth": 1.5,
            "lineStyle": "dashed"
          }
        ],
        "boxes": []
      },
      "palettes": [
        {
          "key": "swing",
          "label": "Swing",
          "colors": [
            "#3FB950",
            "#F85149"
          ]
        }
      ],
      "presets": [],
      "auxiliary": [],
      "docs": {
        "overview": "The ZigZag filters out moves smaller than a percentage threshold and joins the remaining swing highs and swing lows with straight lines. A swing is confirmed once price moves the threshold against it; the leg after the last confirmed swing is still open and drawn dashed. Each confirmed swing is labelled with the percentage move from the swing before it.",
        "howToRead": "The solid lines show the swings that mattered at your threshold: higher highs and higher lows describe an uptrend, lower highs and lower lows a downtrend, and the labels measure each move. The dashed last leg follows price to its latest extreme and can change, or disappear, until a reversal of the threshold confirms it; the confirmed lines never move. The ZigZag looks back: it describes swings, it does not predict them.",
        "settings": "Reversal % is the smallest move that counts (1 percent suits intraday stocks; StockCharts uses 5 percent on daily charts). Swing labels and Last leg switch those parts; the line and label colours are appearance settings.",
        "notes": "Rule (StockCharts ChartSchool, ZigZag, high/low version): after a swing high, a higher high replaces it and a low at least Reversal % below it confirms it and starts a swing low; after a swing low, a lower low replaces it and a high at least Reversal % above it confirms it. When one bar does both, the bar extends the current swing (the trend is favoured). The first swing is the first bar's high or low that price then moves Reversal % away from (the earlier one when both happen on the same bar). Labels read the change from the previous swing price (none on the first swing). Completed bars only (live: none). The built-in Zig Zag follows TradingView's depth-and-deviation version instead."
      },
      "sourcePath": "/indicators/zigzag-segments.js",
      "sha256": "9fa4e06bbc214d0538cef2a64501ddabbc29e01b2a041142ebd48ed9d6d49abe",
      "bytes": 6405,
      "license": "MIT-0",
      "preview": {
        "width": 1568,
        "height": 894
      },
      "pageUrl": "https://spectral.trade/indicators/zigzag-segments/",
      "sourceUrl": "https://spectral.trade/indicators/zigzag-segments.js"
    }
  ]
}
