{
  "version": 7,
  "states": {
    "chart": {
      "indicatorsErrors": {},
      "layouting": false,
      "showIndicators": true,
      "timeframe": "60",
      "refreshRate": 1000,
      "showAlerts": false,
      "showAlertsLabel": false,
      "showLegend": false,
      "fillGapsWithEmpty": false,
      "showHorizontalGridlines": false,
      "horizontalGridlinesColor": "rgba(255,255,255,.1)",
      "showVerticalGridlines": false,
      "verticalGridlinesColor": "rgba(255,255,255,.1)",
      "showWatermark": false,
      "watermarkColor": "rgba(255,255,255,.033)",
      "showBorder": false,
      "borderColor": null,
      "textColor": "#14171b",
      "showLeftScale": false,
      "showRightScale": true,
      "showTimeScale": false,
      "hiddenMarkets": {},
      "barSpacing": 7,
      "_id": "chart",
      "indicators": {
        "price": {
          "series": [],
          "id": "price",
          "script": "var ohlc = options.useHeikinAshi ? \n    avg_heikinashi(bar) : \n    options.useGaps ? \n    avg_ohlc_with_gaps(bar) : \n    avg_ohlc(bar)\n\nplotcandlestick(ohlc)",
          "name": "Price",
          "enabled": true,
          "options": {
            "priceScaleId": "right",
            "priceFormat": {
              "auto": true,
              "precision": 1
            },
            "priceLineVisible": false,
            "lastValueVisible": false,
            "borderVisible": true,
            "upColor": "#a8d8fa",
            "downColor": "#b85c70",
            "borderUpColor": "#a8d8fa",
            "borderDownColor": "#b85c70",
            "wickUpColor": "#a8d8fa",
            "wickDownColor": "#b85c70",
            "useGaps": false,
            "useHeikinAshi": false,
            "visible": true,
            "lineWidth": 1,
            "scaleMargins": {
              "bottom": 0.67,
              "top": 0.02
            }
          }
        },
        "vwap": {
          "series": [],
          "id": "vwap",
          "script": "var src = ($price.high + $price.low + $price.close)/3\nvar vol = vbuy + vsell\nvar total = cum(vol)\nvar weighted = cum(src * vol)\nvar squared = cum(src * src * vol)\nvar mid = total > 0 ? weighted / total : src\nvar dev = Math.sqrt(Math.max(0, total > 0 ? squared / total - mid * mid : 0))\ncloudarea(mid - dev * options.multiplier, mid + dev * options.multiplier, positiveColor='rgba(0,0,0,0.28)', negativeColor='rgba(0,0,0,0.28)', higherLineColor='rgba(0,0,0,0)', lowerLineColor='rgba(0,0,0,0)')\nline(mid, color='#20201b')",
          "name": "VWAP envelope (approximation)",
          "enabled": true,
          "options": {
            "scaleMargins": {
              "bottom": 0.67,
              "top": 0.02
            },
            "priceScaleId": "right",
            "visible": true,
            "priceLineVisible": false,
            "priceFormat": {
              "type": "price",
              "precision": 1,
              "minMove": 0.1
            },
            "multiplier": 1,
            "lineWidth": 1,
            "lastValueVisible": false
          }
        },
        "cvd-spot": {
          "series": [],
          "id": "cvd-spot",
          "script": "buyVol = source(vbuy, type=spot)\nsellVol = source(vsell, type=spot)\nline(cum(buyVol - sellVol))",
          "name": "Spot CVD · Binance + Coinbase + Bitstamp",
          "enabled": true,
          "options": {
            "priceFormat": {
              "type": "volume"
            },
            "priceScaleId": "cvd-spot",
            "color": "#a8d8fa",
            "title": "Spot CVD · Binance + Coinbase + Bitstamp",
            "visible": true,
            "priceLineVisible": false,
            "lastValueVisible": true,
            "lineWidth": 1,
            "scaleMargins": {
              "bottom": 0.41,
              "top": 0.31
            }
          }
        },
        "cvd-perp": {
          "series": [],
          "id": "cvd-perp",
          "script": "buyVol = source(vbuy, type=perp)\nsellVol = source(vsell, type=perp)\nline(cum(buyVol - sellVol))",
          "name": "Perp CVD · Binance + Bybit + OKX",
          "enabled": true,
          "options": {
            "priceFormat": {
              "type": "volume"
            },
            "priceScaleId": "cvd-perp",
            "color": "#b85c70",
            "title": "Perp CVD · Binance + Bybit + OKX",
            "visible": true,
            "priceLineVisible": false,
            "lastValueVisible": true,
            "lineWidth": 1,
            "scaleMargins": {
              "bottom": 0.41,
              "top": 0.31
            }
          }
        },
        "cvd": {
          "series": [],
          "id": "cvd",
          "script": "line(cum(vbuy - vsell))",
          "name": "CVD",
          "enabled": true,
          "options": {
            "priceScaleId": "cvd",
            "priceFormat": {
              "type": "volume"
            },
            "color": "#555555",
            "scaleMargins": {
              "bottom": 0.41,
              "top": 0.31
            },
            "title": "CVD",
            "visible": true,
            "priceLineVisible": false,
            "lastValueVisible": true,
            "lineWidth": 1
          }
        },
        "delta-spot": {
          "series": [],
          "id": "delta-spot",
          "script": "var buys = source(vbuy, type=spot)\nvar sells = source(vsell, type=spot)\nvar delta = buys - sells\nhistogram({time: time, value: delta, color: delta >= 0 ? '#a8d8fa' : '#b85c70'})",
          "name": "Delta Spot",
          "enabled": true,
          "options": {
            "title": "Delta Spot",
            "priceScaleId": "delta-spot",
            "visible": true,
            "priceLineVisible": false,
            "priceFormat": {
              "type": "volume"
            },
            "lineWidth": 1,
            "scaleMargins": {
              "bottom": 0.25,
              "top": 0.62
            },
            "lastValueVisible": true
          }
        },
        "delta-perp": {
          "series": [],
          "id": "delta-perp",
          "script": "var buys = source(vbuy, type=perp)\nvar sells = source(vsell, type=perp)\nvar delta = buys - sells\nhistogram({time: time, value: delta, color: delta >= 0 ? '#a8d8fa' : '#b85c70'})",
          "name": "Delta Perps",
          "enabled": true,
          "options": {
            "title": "Delta Perps",
            "priceScaleId": "delta-perp",
            "visible": true,
            "priceLineVisible": false,
            "priceFormat": {
              "type": "volume"
            },
            "lineWidth": 1,
            "scaleMargins": {
              "bottom": 0.115,
              "top": 0.755
            },
            "lastValueVisible": true
          }
        },
        "volume": {
          "series": [],
          "id": "volume",
          "script": "if (upColor === 0) {\n  if (options.showDelta) {\n    upColor = options.upBgColor\n    downColor = options.downBgColor\n  } else {\n    upColor = options.upColor\n    downColor = options.downColor\n  }\n}\n\nif (options.showDelta) {\n  histogram({ time: time, value: Math.abs(vbuy-vsell), color: vbuy - vsell > 0 ? options.upColor : options.downColor})\n}\n\nhistogram({ time: time, value: vbuy + vsell, color: vbuy > vsell ? upColor : downColor })",
          "name": "Volume",
          "enabled": true,
          "options": {
            "priceFormat": {
              "type": "volume"
            },
            "upColor": "#a8d8fa",
            "downColor": "#b85c70",
            "priceScaleId": "volume",
            "scaleMargins": {
              "bottom": 0,
              "top": 0.885
            },
            "showDelta": true,
            "upBgColor": "rgba(168,216,250,0.35)",
            "downBgColor": "rgba(184,92,112,0.35)",
            "visible": true,
            "priceLineVisible": false,
            "lastValueVisible": false,
            "lineWidth": 1
          }
        }
      },
      "indicatorOrder": [
        "price",
        "vwap",
        "cvd-spot",
        "cvd-perp",
        "cvd",
        "delta-spot",
        "delta-perp",
        "volume"
      ],
      "priceScales": {
        "delta-perp": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.115,
            "top": 0.755
          }
        },
        "delta-spot": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.25,
            "top": 0.62
          }
        },
        "cvd-spot": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.41,
            "top": 0.31
          }
        },
        "volume": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0,
            "top": 0.885
          }
        },
        "right": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.67,
            "top": 0.02
          }
        },
        "cvd-perp": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.41,
            "top": 0.31
          }
        },
        "cvd": {
          "mode": 0,
          "scaleMargins": {
            "bottom": 0.41,
            "top": 0.31
          }
        }
      }
    },
    "panes": {
      "_id": "panes",
      "layout": [
        {
          "y": 0,
          "moved": false,
          "w": 24,
          "h": 24,
          "type": "chart",
          "x": 0,
          "i": "chart"
        }
      ],
      "marketsListeners": {},
      "panes": {
        "chart": {
          "type": "chart",
          "markets": [
            "BINANCE:btcusdt",
            "COINBASE:BTC-USD",
            "BITSTAMP:btcusd",
            "BINANCE_FUTURES:btcusdt",
            "BYBIT:BTCUSDT",
            "OKEX:BTC-USDT-SWAP"
          ],
          "id": "chart",
          "zoom": 1,
          "name": "Flow & Footprint"
        }
      },
      "locked": false
    },
    "settings": {
      "_id": "settings",
      "preferQuoteCurrencySize": true,
      "aggregationLength": 1,
      "calculateSlippage": false,
      "wsProxyUrl": null,
      "disableAnimations": false,
      "autoHideHeaders": true,
      "autoHideNames": true,
      "theme": "dark",
      "backgroundColor": "#14171b",
      "textColor": "",
      "buyColor": "#a8d8fa",
      "sellColor": "#b85c70",
      "timezoneOffset": 10800000,
      "useAudio": false,
      "audioVolume": 0.12,
      "audioFilters": {
        "PingPongDelay": true,
        "Compressor": false,
        "Delay": false,
        "HighPassFilter": true,
        "LowPassFilter": false
      },
      "sections": [
        "settings-workspaces",
        "settings-trades",
        "timeframe-minutes"
      ],
      "searchTypes": {
        "historical": false,
        "spots": true,
        "perpetuals": true,
        "futures": false,
        "normalize": true,
        "mergeUsdt": false,
        "recent": true
      },
      "searchQuotes": {
        "USD": true,
        "USDT": true,
        "USDC": true
      },
      "previousSearchSelections": [],
      "searchExchanges": {},
      "timeframes": [
        {
          "label": "5s",
          "value": "5"
        },
        {
          "label": "10s",
          "value": "10"
        },
        {
          "label": "15s",
          "value": "15"
        },
        {
          "label": "30s",
          "value": "30"
        },
        {
          "label": "1m",
          "value": "60"
        },
        {
          "label": "3m",
          "value": "180"
        },
        {
          "label": "5m",
          "value": "300"
        },
        {
          "label": "15m",
          "value": "900"
        },
        {
          "label": "30m",
          "value": "1800"
        },
        {
          "label": "1h",
          "value": "3600"
        },
        {
          "label": "4h",
          "value": "14400"
        },
        {
          "label": "1d",
          "value": "86400"
        },
        {
          "label": "100 ticks",
          "value": "100t"
        },
        {
          "label": "500 ticks",
          "value": "500t"
        },
        {
          "label": "1000 ticks",
          "value": "1000t"
        }
      ],
      "favoriteTimeframes": {
        "15": "15s",
        "30": "30s",
        "60": "1m",
        "300": "5m",
        "900": "15m",
        "3600": "1h"
      },
      "normalizeWatermarks": true,
      "alerts": false,
      "alertsColor": "rgb(255,255,255)",
      "alertsLineStyle": 2,
      "alertsLineWidth": 1,
      "alertsClick": false,
      "alertSound": null,
      "showThresholdsAsTable": true,
      "timeframeGroups": [
        "seconds",
        "minutes",
        "hours"
      ],
      "indicatorDialogNavigation": "{\"optionsQuery\":\"\",\"editorOptions\":{},\"columnWidth\":240,\"tab\":\"options\"}"
    }
  },
  "updatedAt": 1792345260229,
  "id": "flow-footprint-btc",
  "name": "Flow & Footprint",
  "createdAt": 1792344116454
}
