@orangecharts/wrun-chart-host 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -6
- package/dist/constants/common.constants.d.ts +15 -0
- package/dist/constants/common.constants.js +23 -0
- package/dist/constants/data-source.constants.d.ts +1 -0
- package/dist/constants/data-source.constants.js +1 -0
- package/dist/constants/economic.constants.d.ts +39 -0
- package/dist/constants/economic.constants.js +77 -0
- package/dist/constants/etf-covered-coins.constants.d.ts +1 -0
- package/dist/constants/etf-covered-coins.constants.js +9 -0
- package/dist/constants/feature-flags.constants.d.ts +60 -0
- package/dist/constants/feature-flags.constants.js +308 -0
- package/dist/constants/feature-limits.constants.d.ts +134 -0
- package/dist/constants/feature-limits.constants.js +155 -0
- package/dist/constants/marketCapabilities.constants.d.ts +87 -0
- package/dist/constants/marketCapabilities.constants.js +213 -0
- package/dist/constants/option-venues.constants.d.ts +100 -0
- package/dist/constants/option-venues.constants.js +167 -0
- package/dist/constants/overlay-data.constants.d.ts +53 -0
- package/dist/constants/overlay-data.constants.js +80 -0
- package/dist/constants/pane-grid.constants.d.ts +15 -0
- package/dist/constants/pane-grid.constants.js +17 -0
- package/dist/constants/venue-presets.constants.d.ts +10 -0
- package/dist/constants/venue-presets.constants.js +22 -0
- package/dist/enums/chart.enum.d.ts +68 -0
- package/dist/enums/chart.enum.js +70 -0
- package/dist/helpers/data.helpers.d.ts +2 -0
- package/dist/helpers/data.helpers.js +14 -0
- package/dist/host-env.d.ts +161 -5
- package/dist/host-ports.types.d.ts +446 -0
- package/dist/host-ports.types.js +1 -0
- package/dist/index.d.ts +128 -0
- package/dist/index.js +128 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.d.ts +86 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.js +179 -0
- package/dist/interfaces/asset-venue.interface.d.ts +91 -0
- package/dist/interfaces/asset-venue.interface.js +1 -0
- package/dist/interfaces/cancel-reason.interface.d.ts +24 -0
- package/dist/interfaces/cancel-reason.interface.js +2 -0
- package/dist/interfaces/catalog-display.interface.d.ts +3 -0
- package/dist/interfaces/catalog-display.interface.js +1 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +251 -0
- package/dist/interfaces/cme-realtime.interface.js +46 -0
- package/dist/interfaces/feed.interface.d.ts +80 -0
- package/dist/interfaces/feed.interface.js +7 -0
- package/dist/interfaces/market-kind.interface.d.ts +8 -0
- package/dist/interfaces/market-kind.interface.js +1 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +224 -0
- package/dist/interfaces/opra-realtime.interface.js +105 -0
- package/dist/interfaces/option-instrument.interface.d.ts +32 -0
- package/dist/interfaces/option-instrument.interface.js +1 -0
- package/dist/interfaces/options-chain-scope.interface.d.ts +29 -0
- package/dist/interfaces/options-chain-scope.interface.js +7 -0
- package/dist/interfaces/prediction-market.interface.d.ts +88 -0
- package/dist/interfaces/prediction-market.interface.js +8 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +5 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +185 -0
- package/dist/kscript-data/controls/live-trades-merge.util.js +357 -0
- package/dist/settings-templates/frvp-fields.d.ts +27 -0
- package/dist/settings-templates/frvp-fields.js +108 -0
- package/dist/settings-templates/index.d.ts +119 -0
- package/dist/settings-templates/index.js +442 -0
- package/dist/settings-templates/indicator-fields.d.ts +56 -0
- package/dist/settings-templates/indicator-fields.js +793 -0
- package/dist/settings-templates/tool-rules.d.ts +59 -0
- package/dist/settings-templates/tool-rules.js +49 -0
- package/dist/settings-templates/tool-tables.generated.d.ts +2 -0
- package/dist/settings-templates/tool-tables.generated.js +1668 -0
- package/dist/utility/blk-market.util.d.ts +5 -0
- package/dist/utility/blk-market.util.js +12 -0
- package/dist/utility/chart/chart-load-phase.util.d.ts +32 -0
- package/dist/utility/chart/chart-load-phase.util.js +78 -0
- package/dist/utility/chart/cme-cache-context.util.d.ts +108 -0
- package/dist/utility/chart/cme-cache-context.util.js +166 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +82 -0
- package/dist/utility/chart/cme-session-bucket.util.js +343 -0
- package/dist/utility/chart/cme-trade-calendar.util.d.ts +26 -0
- package/dist/utility/chart/cme-trade-calendar.util.js +147 -0
- package/dist/utility/chart/continuous-contracts.util.d.ts +138 -0
- package/dist/utility/chart/continuous-contracts.util.js +374 -0
- package/dist/utility/chart/feed-interval.util.d.ts +119 -0
- package/dist/utility/chart/feed-interval.util.js +321 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +110 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.js +407 -0
- package/dist/utility/chart/footprint-band.util.d.ts +76 -0
- package/dist/utility/chart/footprint-band.util.js +205 -0
- package/dist/utility/chart/footprint-cell-identity.util.d.ts +82 -0
- package/dist/utility/chart/footprint-cell-identity.util.js +346 -0
- package/dist/utility/chart/formula-calendar.util.d.ts +27 -0
- package/dist/utility/chart/formula-calendar.util.js +59 -0
- package/dist/utility/chart/history-wall.util.d.ts +67 -0
- package/dist/utility/chart/history-wall.util.js +87 -0
- package/dist/utility/chart/index-mode.util.d.ts +66 -0
- package/dist/utility/chart/index-mode.util.js +360 -0
- package/dist/utility/chart/indicator-coverage-planner.util.d.ts +217 -0
- package/dist/utility/chart/indicator-coverage-planner.util.js +443 -0
- package/dist/utility/chart/indicator-coverage-state.util.d.ts +33 -0
- package/dist/utility/chart/indicator-coverage-state.util.js +110 -0
- package/dist/utility/chart/indicator-gap-detector.util.d.ts +127 -0
- package/dist/utility/chart/indicator-gap-detector.util.js +260 -0
- package/dist/utility/chart/indicator-gap-repair.util.d.ts +88 -0
- package/dist/utility/chart/indicator-gap-repair.util.js +177 -0
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +26 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +254 -0
- package/dist/utility/chart/interval-registry.util.d.ts +23 -0
- package/dist/utility/chart/interval-registry.util.js +83 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.d.ts +21 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.js +332 -0
- package/dist/utility/chart/legacy-exchange.leaf.d.ts +11 -0
- package/dist/utility/chart/legacy-exchange.leaf.js +43 -0
- package/dist/utility/chart/live-bucket.util.d.ts +66 -0
- package/dist/utility/chart/live-bucket.util.js +165 -0
- package/dist/utility/chart/market-session-schedule.util.d.ts +91 -0
- package/dist/utility/chart/market-session-schedule.util.js +337 -0
- package/dist/utility/chart/marketKind.util.d.ts +181 -0
- package/dist/utility/chart/marketKind.util.js +371 -0
- package/dist/utility/chart/opra-read-access.leaf.d.ts +26 -0
- package/dist/utility/chart/opra-read-access.leaf.js +25 -0
- package/dist/utility/chart/prediction-identity.util.d.ts +159 -0
- package/dist/utility/chart/prediction-identity.util.js +236 -0
- package/dist/utility/chart/rth-session.util.d.ts +352 -0
- package/dist/utility/chart/rth-session.util.js +926 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +43 -0
- package/dist/utility/chart/titan-constants.pin.js +50 -0
- package/dist/utility/chart/us-equities-session.util.d.ts +127 -0
- package/dist/utility/chart/us-equities-session.util.js +251 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +100 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.js +354 -0
- package/dist/utility/chart/wrun-wire-ref.util.d.ts +23 -0
- package/dist/utility/chart/wrun-wire-ref.util.js +16 -0
- package/dist/utility/common/safe-math-eval.d.ts +18 -0
- package/dist/utility/common/safe-math-eval.js +160 -0
- package/dist/utility/common/time.util.d.ts +134 -0
- package/dist/utility/common/time.util.js +428 -0
- package/dist/utility/common/transformations.util.d.ts +126 -0
- package/dist/utility/common/transformations.util.js +711 -0
- package/dist/utility/common/visible-timeout.util.d.ts +17 -0
- package/dist/utility/common/visible-timeout.util.js +75 -0
- package/dist/utility/exchange-normalization.util.d.ts +8 -0
- package/dist/utility/exchange-normalization.util.js +32 -0
- package/dist/utility/intl-locale.util.d.ts +2 -0
- package/dist/utility/intl-locale.util.js +28 -0
- package/dist/utility/number-format.util.d.ts +14 -1
- package/dist/utility/number-format.util.js +50 -19
- package/dist/utility/options/option-symbol.util.d.ts +28 -0
- package/dist/utility/options/option-symbol.util.js +176 -0
- package/dist/utility/options/option-trade-units.util.d.ts +190 -0
- package/dist/utility/options/option-trade-units.util.js +283 -0
- package/dist/utility/options/option-venue.util.d.ts +75 -0
- package/dist/utility/options/option-venue.util.js +85 -0
- package/dist/utility/pool-symbol.leaf.d.ts +34 -0
- package/dist/utility/pool-symbol.leaf.js +95 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +109 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +302 -0
- package/dist/utility/symbol-selection/contract-expiry.util.d.ts +39 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +111 -0
- package/dist/utility/v2/gate-plane.util.d.ts +58 -0
- package/dist/utility/v2/gate-plane.util.js +99 -0
- package/dist/utility/v2/gate-session-latch.util.d.ts +22 -0
- package/dist/utility/v2/gate-session-latch.util.js +34 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.d.ts +76 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.js +221 -0
- package/dist/utility/wrun/sources/host-grid-landing.d.ts +15 -0
- package/dist/utility/wrun/sources/host-grid-landing.js +26 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.js +85 -0
- package/dist/utility/wrun/sources/lanes/economic.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/economic.js +79 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.d.ts +35 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.js +165 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.d.ts +19 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.js +114 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.js +51 -0
- package/dist/utility/wrun/sources/lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/lanes/index.js +32 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.d.ts +17 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.js +47 -0
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/option_daily.js +53 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +23 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +20 -0
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +50 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +155 -0
- package/dist/utility/wrun/sources/lanes/options_oi.d.ts +29 -0
- package/dist/utility/wrun/sources/lanes/options_oi.js +59 -0
- package/dist/utility/wrun/sources/lanes/options_volume.d.ts +38 -0
- package/dist/utility/wrun/sources/lanes/options_volume.js +63 -0
- package/dist/utility/wrun/sources/lanes/series.d.ts +67 -0
- package/dist/utility/wrun/sources/lanes/series.js +321 -0
- package/dist/utility/wrun/sources/lanes/token_supply.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/token_supply.js +145 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.d.ts +25 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.js +47 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.d.ts +21 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.js +11 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +196 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +446 -0
- package/dist/utility/wrun/sources/registry.d.ts +21 -0
- package/dist/utility/wrun/sources/registry.js +207 -0
- package/dist/utility/wrun/sources/row-lane-registry.d.ts +28 -0
- package/dist/utility/wrun/sources/row-lane-registry.js +230 -0
- package/dist/utility/wrun/sources/row-lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +12 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +38 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +6 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +70 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +4 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +191 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +13 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +137 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +38 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +150 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +275 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +224 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +394 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +283 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +205 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +469 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.d.ts +28 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.js +66 -0
- package/dist/utility/wrun/wrun-cloud-record.util.d.ts +65 -0
- package/dist/utility/wrun/wrun-cloud-record.util.js +121 -0
- package/dist/utility/wrun/wrun-daily-lane.util.d.ts +95 -0
- package/dist/utility/wrun/wrun-daily-lane.util.js +297 -0
- package/dist/utility/wrun/wrun-deadline.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-deadline.util.js +82 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.d.ts +94 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.js +224 -0
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +242 -0
- package/dist/utility/wrun/wrun-frames.d.ts +20 -1
- package/dist/utility/wrun/wrun-frames.js +103 -49
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +27 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +22 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +32 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.js +112 -0
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +57 -0
- package/dist/utility/wrun/wrun-leg-close.util.js +187 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.js +212 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.d.ts +73 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.js +86 -0
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +101 -6
- package/dist/utility/wrun/wrun-levels-child.util.js +335 -157
- package/dist/utility/wrun/wrun-memory-clamp.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-memory-clamp.util.js +146 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.js +251 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +65 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.js +94 -0
- package/dist/utility/wrun/wrun-opra-lane.util.d.ts +47 -0
- package/dist/utility/wrun/wrun-opra-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +30 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +96 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.js +1 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +142 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.js +451 -0
- package/dist/utility/wrun/wrun-option-knobs.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-option-knobs.util.js +81 -0
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-option-prints.util.js +356 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.d.ts +102 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.js +143 -0
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +308 -0
- package/dist/utility/wrun/wrun-options-chain.util.js +502 -0
- package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +9 -4
- package/dist/utility/wrun/wrun-overlay-identity.util.js +16 -6
- package/dist/utility/wrun/wrun-param-map.util.d.ts +298 -0
- package/dist/utility/wrun/wrun-param-map.util.js +581 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +149 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +523 -0
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-pin-venues.util.js +320 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.d.ts +20 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.js +47 -0
- package/dist/utility/wrun/wrun-present-bits.util.d.ts +37 -0
- package/dist/utility/wrun/wrun-present-bits.util.js +73 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.js +57 -0
- package/dist/utility/wrun/wrun-refusal.util.d.ts +41 -1
- package/dist/utility/wrun/wrun-refusal.util.js +69 -2
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +1 -14
- package/dist/utility/wrun/wrun-registry-errors.util.js +0 -16
- package/dist/utility/wrun/wrun-row-source.d.ts +158 -0
- package/dist/utility/wrun/wrun-row-source.js +75 -0
- package/dist/utility/wrun/wrun-run-health.util.d.ts +155 -0
- package/dist/utility/wrun/wrun-run-health.util.js +273 -0
- package/dist/utility/wrun/wrun-socket-row-source.d.ts +439 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +1689 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.js +25 -0
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +911 -0
- package/dist/utility/wrun/wrun-source-rows.util.js +2597 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-tape-source.util.js +151 -0
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +137 -0
- package/dist/utility/wrun/wrun-tier-grid.util.js +279 -0
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +66 -0
- package/dist/utility/wrun-display-name.util.d.ts +33 -0
- package/dist/utility/wrun-display-name.util.js +64 -0
- package/dist/workers/constants/kscript-transport-codes.d.ts +15 -0
- package/dist/workers/constants/kscript-transport-codes.js +15 -0
- package/dist/workers/constants/socket-slots.d.ts +574 -0
- package/dist/workers/constants/socket-slots.js +539 -0
- package/dist/workers/utils/number.worker.util.d.ts +5 -0
- package/dist/workers/utils/number.worker.util.js +10 -0
- package/dist/workers/utils/time.worker.util.d.ts +12 -0
- package/dist/workers/utils/time.worker.util.js +24 -0
- package/dist/workers/utils/volume-profile.worker.util.d.ts +200 -0
- package/dist/workers/utils/volume-profile.worker.util.js +631 -0
- package/package.json +10 -4
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The indicator field tables (TEMPLATES-PLAN decision 1): every key an indicator's settings hold that a lane reads,
|
|
3
|
+
* declared once with the lanes that keep it. Workspace persistence (`row`), named templates (`template`) and Save as
|
|
4
|
+
* default with its restore (`default`) all read these rows through fieldSpecs and fieldKeys (./index.ts); no other
|
|
5
|
+
* list of indicator keys is kept by hand, on web or on the phone.
|
|
6
|
+
*
|
|
7
|
+
* Moved here from the web app, content unchanged: the persistence list settingsToSave and its type lists
|
|
8
|
+
* (src/constants/indicator.constants.ts), the instance keys and the template meta allowlists
|
|
9
|
+
* (src/utility/chart/indicator-defaults-apply.util.ts), the volatile keys (src/utility/chart/settings-templates.util.ts).
|
|
10
|
+
* Three changes are decisions of the plan, not drift: `runMode` is row-only instance state (A11); seven meta
|
|
11
|
+
* preferences a settings dialog writes are template-lane (decision 6: the Bitfinex position side, the Put/Call mode,
|
|
12
|
+
* the Turnover sides and period, the Aggregated Volume margin category, the Sector Volume asset type and the Insurance
|
|
13
|
+
* fund group), the ETF pick stays identity; and "all" is a declared value (`visibleIntervalsMs: []` is All intervals,
|
|
14
|
+
* `maxNakedLevels: 0` is all levels, decision 3), which a capture writes where the engine holds none.
|
|
15
|
+
*
|
|
16
|
+
* A row is `[key, field]`: the field's owner (the settings bag when it names none, else `meta`, the bag's `meta`
|
|
17
|
+
* object), its lanes, whether it is instance state (which instance this is: never written by a template or a saved
|
|
18
|
+
* default, kept by a reset) and whether it is bound to the market it was saved on. Imports nothing, so the tool
|
|
19
|
+
* tables' generator can read the FRVP table beside it without the package graph.
|
|
20
|
+
*/
|
|
21
|
+
/** The type every technical script runs as: its declared inputs and viewer rows are fields of the instance. */
|
|
22
|
+
export const SCRIPT_INDICATOR_TYPE = 'TECHNICAL_SCRIPT';
|
|
23
|
+
/** A preference: the workspace row keeps it, a template carries it, Save as default keeps it. */
|
|
24
|
+
const PREFERENCE = { lanes: ['row', 'template', 'default'] };
|
|
25
|
+
/** "Show on": a preference whose All intervals is the empty list (titan reads `[]` as every interval). */
|
|
26
|
+
const SHOW_ON = { lanes: ['row', 'template', 'default'], unset: Object.freeze([]) };
|
|
27
|
+
/** The naked-level cap: a preference whose "all levels" is 0 (titan keeps every unfilled level). */
|
|
28
|
+
const ALL_LEVELS = { lanes: ['row', 'template', 'default'], unset: 0 };
|
|
29
|
+
/**
|
|
30
|
+
* Instance state the row keeps: which instance this is (its market, venue legs, script identity, host pane, run mode).
|
|
31
|
+
* Never carried onto another instance by a template or a saved default, and a reset keeps it.
|
|
32
|
+
*/
|
|
33
|
+
const INSTANCE = { lanes: ['row'], instance: true };
|
|
34
|
+
/** Instance identity the row never keeps (the overlay's id and type, a script's inline source). */
|
|
35
|
+
const IDENTITY = { lanes: [], instance: true };
|
|
36
|
+
/** Row payload that is no preference: a fetch cache the row keeps and a template never carries. */
|
|
37
|
+
const ROW_PAYLOAD = { lanes: ['row'] };
|
|
38
|
+
/** Runtime state: never persisted, never carried. */
|
|
39
|
+
const RUNTIME = { lanes: [] };
|
|
40
|
+
/** A meta preference: the user's choice on any market. */
|
|
41
|
+
const META_PREFERENCE = { owner: 'meta', lanes: ['template', 'default'] };
|
|
42
|
+
/** A meta absolute in the market's own units: carried only onto the market it was saved on. */
|
|
43
|
+
const META_MARKET_BOUND = { owner: 'meta', lanes: ['template', 'default'], marketBound: true };
|
|
44
|
+
/** A meta key the type derives from its own state: never carried. */
|
|
45
|
+
const META_DERIVED = { owner: 'meta', lanes: [] };
|
|
46
|
+
/** Meta identity a settings dialog writes (which market or series the instance reads): never carried. */
|
|
47
|
+
const META_IDENTITY = { owner: 'meta', lanes: [], instance: true };
|
|
48
|
+
/**
|
|
49
|
+
* A multi-venue indicator's venue choice (`meta.venueChoice`, venues by name or a catalog group, portable across
|
|
50
|
+
* coins). A template and a saved default keep it when it is a carried choice, but no generic patch writes it: the
|
|
51
|
+
* control's venue adapter writes the legs for the destination's coin and stores the choice beside them, so the field
|
|
52
|
+
* is instance state for the patch and template-lane for the capture.
|
|
53
|
+
*/
|
|
54
|
+
const META_VENUE_CHOICE = { owner: 'meta', lanes: ['template', 'default'], instance: true };
|
|
55
|
+
/** A technical script's declared input: a preference, filed with the script it belongs to. */
|
|
56
|
+
export const SCRIPT_INPUT_FIELD = PREFERENCE;
|
|
57
|
+
/**
|
|
58
|
+
* A browser-run Indicator's viewer row (a HUD's Look pick and place, a heatmap's Sensitivity, a child the reader hid:
|
|
59
|
+
* `isWrunViewerRowKey`): the row keeps it and a template carries it, by key; Save as default does not.
|
|
60
|
+
*/
|
|
61
|
+
export const VIEWER_ROW_FIELD = { lanes: ['row', 'template'] };
|
|
62
|
+
/**
|
|
63
|
+
* Names a script input may declare that never become a field of the instance: the legend's error payload, rebuilt
|
|
64
|
+
* from live diagnostics every run (web HOST_TRANSIENT_SETTINGS_KEYS), and the doc-row source keys a doc row never
|
|
65
|
+
* carries out of the browser (web DOC_ROW_SOURCE_KEYS: the source, the doc rider, an editor cloud run's draft).
|
|
66
|
+
*/
|
|
67
|
+
export const RESERVED_SCRIPT_INPUT_NAMES = [
|
|
68
|
+
'errorMessage',
|
|
69
|
+
'script',
|
|
70
|
+
'scriptData',
|
|
71
|
+
'backendDraftSource',
|
|
72
|
+
];
|
|
73
|
+
/**
|
|
74
|
+
* Every indicator's fields, in the order of the persistence list they replace (settingsToSave, one row per key),
|
|
75
|
+
* then the instance and runtime keys the row never keeps, then the meta fields.
|
|
76
|
+
*/
|
|
77
|
+
export const INDICATOR_COMMON_FIELDS = [
|
|
78
|
+
// "Show on": the intervals an indicator shows on; All intervals is [] (SHOW_ON).
|
|
79
|
+
['visibleIntervalsMs', SHOW_ON],
|
|
80
|
+
// The Sounds tab of a script that declares signals (wrun-signal-sounds.util WRUN_SIGNAL_SOUNDS_KEY).
|
|
81
|
+
['signalSounds', PREFERENCE],
|
|
82
|
+
['showYAxisPriceLabel', PREFERENCE],
|
|
83
|
+
['showLastValueLine', PREFERENCE],
|
|
84
|
+
['showYAxisNameLabel', PREFERENCE],
|
|
85
|
+
// Swing-anchored VWAP lookback and profile rows layout (competitor parity round, 2026-09-20)
|
|
86
|
+
['anchorLookback', PREFERENCE],
|
|
87
|
+
['rowsLayout', PREFERENCE],
|
|
88
|
+
['rowsCount', PREFERENCE],
|
|
89
|
+
['digits', PREFERENCE],
|
|
90
|
+
['exchange', INSTANCE],
|
|
91
|
+
['displayExchange', INSTANCE],
|
|
92
|
+
['symbol', INSTANCE],
|
|
93
|
+
['symbols', INSTANCE],
|
|
94
|
+
['normalizedSymbol', INSTANCE],
|
|
95
|
+
['rawSymbol', INSTANCE],
|
|
96
|
+
['metaExchange', INSTANCE],
|
|
97
|
+
['metaSymbol', INSTANCE],
|
|
98
|
+
['meta', INSTANCE],
|
|
99
|
+
['rateKind', PREFERENCE],
|
|
100
|
+
['tenor', PREFERENCE],
|
|
101
|
+
['skewKind', PREFERENCE],
|
|
102
|
+
['settingsName', PREFERENCE],
|
|
103
|
+
['mode', PREFERENCE],
|
|
104
|
+
['chartType', PREFERENCE],
|
|
105
|
+
['unlocksLabel', PREFERENCE],
|
|
106
|
+
['cachedRawData', ROW_PAYLOAD],
|
|
107
|
+
['coin', INSTANCE],
|
|
108
|
+
['turnoverRatioPeriod', PREFERENCE],
|
|
109
|
+
['normalizedLength', PREFERENCE],
|
|
110
|
+
['lookbackPeriod', PREFERENCE],
|
|
111
|
+
['side', PREFERENCE],
|
|
112
|
+
['minRange', PREFERENCE],
|
|
113
|
+
['maxRange', PREFERENCE],
|
|
114
|
+
['expiry', PREFERENCE],
|
|
115
|
+
['skipMissingGap', PREFERENCE],
|
|
116
|
+
// Options GEX (per-strike profile + key levels); `basis` is the GEX sign
|
|
117
|
+
// basis ('naive' | 'dealerFlow') shared with the GEX curve
|
|
118
|
+
['expiryFilter', PREFERENCE],
|
|
119
|
+
['basis', PREFERENCE],
|
|
120
|
+
['levelThickness', PREFERENCE],
|
|
121
|
+
['strikeWindowPct', PREFERENCE],
|
|
122
|
+
['refreshSec', PREFERENCE],
|
|
123
|
+
// Options domain panes (IV smile expiry-series count; term-structure skew
|
|
124
|
+
// toggle; implied-move unit)
|
|
125
|
+
['expiryCount', PREFERENCE],
|
|
126
|
+
['showSkew', PREFERENCE],
|
|
127
|
+
['moveUnit', PREFERENCE],
|
|
128
|
+
// Options heatmap cell metric + color palette + color sensitivity +
|
|
129
|
+
// surface opacity + gamma-flip contour toggle
|
|
130
|
+
['metric', PREFERENCE],
|
|
131
|
+
['palette', PREFERENCE],
|
|
132
|
+
['sensitivity', PREFERENCE],
|
|
133
|
+
['surfaceOpacity', PREFERENCE],
|
|
134
|
+
['surfaceStyle', PREFERENCE],
|
|
135
|
+
// Options pane visual styling: the named color theme (all nine
|
|
136
|
+
// foreign-domain panes) and the curve panes' fill style. Persisted user
|
|
137
|
+
// choices; everything DERIVED from them (series colors, fill keys, tones)
|
|
138
|
+
// stays control-stamped presentation.
|
|
139
|
+
['optionsTheme', PREFERENCE],
|
|
140
|
+
['fillStyle', PREFERENCE],
|
|
141
|
+
['showFlipContour', PREFERENCE],
|
|
142
|
+
// Options flow-by-expiry trailing window
|
|
143
|
+
['lookbackHours', PREFERENCE],
|
|
144
|
+
// Foreign-domain pane interactivity toggles (titan hover tooltip, X zoom,
|
|
145
|
+
// %-vs-spot subline). ONLY the user toggles persist: presentation keys
|
|
146
|
+
// (xLabel/xFormat/valueFormat/xValueLabels/spotDeltaLabel/zoomResetLabel)
|
|
147
|
+
// stay control-stamped so they re-localize and re-derive per fetch.
|
|
148
|
+
['tooltipEnabled', PREFERENCE],
|
|
149
|
+
['zoomEnabled', PREFERENCE],
|
|
150
|
+
['tooltipSpotDelta', PREFERENCE],
|
|
151
|
+
['showMaxPain', PREFERENCE],
|
|
152
|
+
['showGammaFlip', PREFERENCE],
|
|
153
|
+
['showCallWall', PREFERENCE],
|
|
154
|
+
['showPutWall', PREFERENCE],
|
|
155
|
+
['maxPainColor', PREFERENCE],
|
|
156
|
+
['gammaFlipColor', PREFERENCE],
|
|
157
|
+
['callWallColor', PREFERENCE],
|
|
158
|
+
['putWallColor', PREFERENCE],
|
|
159
|
+
['colors', PREFERENCE],
|
|
160
|
+
['multiColorSettings', PREFERENCE],
|
|
161
|
+
// Native VWAP direction coloring (the user-facing trio; multiColorSettings
|
|
162
|
+
// above carries the derived renderer contract).
|
|
163
|
+
['colorByDirection', PREFERENCE],
|
|
164
|
+
['risingColor', PREFERENCE],
|
|
165
|
+
['fallingColor', PREFERENCE],
|
|
166
|
+
// Native VWAP main-line style (line | momentumFill), the momentum
|
|
167
|
+
// companion's EMA length, and the derived momentum color layout.
|
|
168
|
+
['style', PREFERENCE],
|
|
169
|
+
['momentumLength', PREFERENCE],
|
|
170
|
+
['momentumFillColors', PREFERENCE],
|
|
171
|
+
['gradientColors', PREFERENCE],
|
|
172
|
+
// Color-ownership state. Without these two, a refresh keeps the custom
|
|
173
|
+
// `colors` but drops WHO owns them: the legacy heuristic (is colors[0] a
|
|
174
|
+
// non-theme color?) misses per-line overrides that leave line 0 on the
|
|
175
|
+
// theme default, so the boot theme pass re-themed the overridden line.
|
|
176
|
+
['colorsCustomized', PREFERENCE],
|
|
177
|
+
['customizedColorIndices', PREFERENCE],
|
|
178
|
+
['width', PREFERENCE],
|
|
179
|
+
// Candle-mode overlays persist a themed border stroke; without this the
|
|
180
|
+
// tc-metadata-derived save paths (saveWorkspaceImmediately, addIndicator
|
|
181
|
+
// tail) silently dropped it every boot.
|
|
182
|
+
['strokeColor', PREFERENCE],
|
|
183
|
+
['lineWidth', PREFERENCE],
|
|
184
|
+
['lineStyle', PREFERENCE],
|
|
185
|
+
['fill', PREFERENCE],
|
|
186
|
+
['glow', PREFERENCE],
|
|
187
|
+
['opacity', PREFERENCE],
|
|
188
|
+
['showPriceDisplay', PREFERENCE],
|
|
189
|
+
['verticalPadding', PREFERENCE],
|
|
190
|
+
['transformations', INSTANCE],
|
|
191
|
+
['displayTransformations', INSTANCE],
|
|
192
|
+
['hideWeekends', PREFERENCE],
|
|
193
|
+
['preventGapInterpolation', PREFERENCE],
|
|
194
|
+
['traderCategory', PREFERENCE],
|
|
195
|
+
['period', PREFERENCE],
|
|
196
|
+
['multiSymbolExchanges', INSTANCE],
|
|
197
|
+
// CVD-by-Size bucket selection: column identity for its whole row contract.
|
|
198
|
+
// Workspace saves re-pick settings through this list (chart.ts), so a key
|
|
199
|
+
// missing here is silently dropped on refresh even though the live overlay
|
|
200
|
+
// keeps working from in-memory settings.
|
|
201
|
+
['orderSizeBuckets', PREFERENCE],
|
|
202
|
+
// Binance margin long/short ratio: the dialog persists the selected ratio
|
|
203
|
+
// series here; absent from the whitelist the re-pick sites stripped it
|
|
204
|
+
// (settings-loss audit, binance-margin-lsr-ratiotypes-strip). 'ratioType'
|
|
205
|
+
// covers pre-migration docs.
|
|
206
|
+
['ratioTypes', PREFERENCE],
|
|
207
|
+
['ratioType', PREFERENCE],
|
|
208
|
+
['smooth', PREFERENCE],
|
|
209
|
+
['region', PREFERENCE],
|
|
210
|
+
['displayMode', PREFERENCE],
|
|
211
|
+
['sectors', PREFERENCE],
|
|
212
|
+
['computeSince', PREFERENCE],
|
|
213
|
+
['subType', INSTANCE],
|
|
214
|
+
// Catalog-source breadcrumb ('official' | community): the CME venue policy
|
|
215
|
+
// classifies restored technical scripts as first-party vs user off this.
|
|
216
|
+
['scriptSource', INSTANCE],
|
|
217
|
+
['name', INSTANCE],
|
|
218
|
+
['scriptInputs', INSTANCE],
|
|
219
|
+
['customScriptId', INSTANCE],
|
|
220
|
+
// Guide door stamps ("How to use" from the chart): the doc's hasGuide and the
|
|
221
|
+
// author handle persist so the settings dialog and legend glyph know without a
|
|
222
|
+
// fetch; the control re-stamps both from the fresh doc on every rebuild.
|
|
223
|
+
['hasGuide', INSTANCE],
|
|
224
|
+
['scriptAuthor', INSTANCE],
|
|
225
|
+
// Native official identity: the catalog row's backend script doc id, stamped
|
|
226
|
+
// at add (chart.add-indicator.ts) next to hasGuide so the "How to use"
|
|
227
|
+
// drawer resolves after a reload. kScript overlays carry customScriptId
|
|
228
|
+
// instead. The legend glyph flag (showGuideBtn) is deliberately NOT here: it
|
|
229
|
+
// is recomputed on every mount.
|
|
230
|
+
['guideScriptId', INSTANCE],
|
|
231
|
+
// Marketplace (WRUN) identity {package, version}: without it a persisted
|
|
232
|
+
// wrun overlay degrades into an unknown-script protected kScript.
|
|
233
|
+
// Deliberately ABSENT: wrunDevLocal/wrunDevPosition (the wrun browser-dev
|
|
234
|
+
// loader's mount keys). Wrun-dev overlays are session-only by decision and
|
|
235
|
+
// every persistence seam skips them via the named skip in
|
|
236
|
+
// utility/wrun/wrun-dev-overlay.util, so their settings never persist at
|
|
237
|
+
// all (docs/features/kscript/wrun/wrun-browser-runtime.md).
|
|
238
|
+
['wrunRef', INSTANCE],
|
|
239
|
+
// Registry (WRUN browser) identity {package, version, position}: without it
|
|
240
|
+
// a persisted registry overlay falls into the doc-fetch lane on reload and
|
|
241
|
+
// fails on its synthetic scriptId instead of mounting inert for rehydrate.
|
|
242
|
+
['wrunRegistryRef', INSTANCE],
|
|
243
|
+
// The shipped built-in a proven twin's overlay stands in for (option A,
|
|
244
|
+
// wrun-builtin-twin.util): persisted with the registry identity so a restore
|
|
245
|
+
// judges the twin against its built-in's pin, and the theme restyles it like
|
|
246
|
+
// the built-in.
|
|
247
|
+
['builtinTwinOf', INSTANCE],
|
|
248
|
+
// A converted built-in's original kScript row (kscript-twin-convert.util):
|
|
249
|
+
// the twin row carries it so a deterministic failure or the kill puts the
|
|
250
|
+
// row back as it was saved.
|
|
251
|
+
// A converted row's original kScript row (kscript-twin-convert.util): that
|
|
252
|
+
// instance's own way back, never a template's or a default's.
|
|
253
|
+
['kscriptOrigin', INSTANCE],
|
|
254
|
+
// The window owner flag (window-cell.util): the wrun Indicator that owns its
|
|
255
|
+
// whole cell. It lives on the overlay, not the pane metadata, because the
|
|
256
|
+
// pane schema is strict server-side and overlay settings are a free object.
|
|
257
|
+
// The window owner flag (window-cell.util): a template or saved default
|
|
258
|
+
// must never turn another instance into a window owner; a reset keeps it.
|
|
259
|
+
['wrunWindow', INSTANCE],
|
|
260
|
+
// The own-cell stamp of a window owner (window-cell.util): the layout the
|
|
261
|
+
// door grew from, written by the two doors that open a NEW cell. Persisted
|
|
262
|
+
// beside the flag, so after a reload the user's delete of the owner still
|
|
263
|
+
// closes the cell (wrun-window-close.util) instead of leaving a chart.
|
|
264
|
+
// The own-cell stamp of a window owner (window-cell.util): the cell one
|
|
265
|
+
// instance was opened into, never another instance's.
|
|
266
|
+
['wrunWindowOwnCell', INSTANCE],
|
|
267
|
+
// The dismissed "Has window panels" pill of a wrun Indicator whose sheet
|
|
268
|
+
// places a panel `side` (wrun-window-open.util): once per overlay, kept
|
|
269
|
+
// with the overlay so a reload never shows the pill again.
|
|
270
|
+
// The dismissed "Has window panels" pill (wrun-window-open.util): per
|
|
271
|
+
// instance, never copied by a template or a default.
|
|
272
|
+
['wrunWindowPillSeen', INSTANCE],
|
|
273
|
+
// The reader's saved split of a window (window-geometry.util): the dragged
|
|
274
|
+
// pane weights, keyed relative to the owner, on the owner row (the child
|
|
275
|
+
// panes have no rows), so a reload brings the window back at their split
|
|
276
|
+
// instead of the plan. Deleted with the flag (Show chart).
|
|
277
|
+
// The reader's saved split of a window (window-geometry.util): one window's
|
|
278
|
+
// drag, never carried onto another instance by a template or a default.
|
|
279
|
+
['wrunWindowSplit', INSTANCE],
|
|
280
|
+
// The row source of a cloud Indicator ('cloud': the socket row source, the
|
|
281
|
+
// author's Protected publish): persisted TOGETHER with the identity keys
|
|
282
|
+
// above so a reload restores the same source (wrun-cloud-record.util).
|
|
283
|
+
['wrunRunTarget', INSTANCE],
|
|
284
|
+
// A record persisted for the protected pipeline before lane parity wave 3
|
|
285
|
+
// carried its sheet's alert outputs (the alert form still reads them for an
|
|
286
|
+
// edit off every chart) and a trimmed metadata sheet beside them; kept
|
|
287
|
+
// with the identity so such a record round-trips unchanged. No mount
|
|
288
|
+
// writes either since lane parity U16: the one record restores its sheet
|
|
289
|
+
// from the registry and the cloud's first batch. Instance-only like the
|
|
290
|
+
// identity (indicator-defaults-apply.util).
|
|
291
|
+
['wrunAlertOutputs', INSTANCE],
|
|
292
|
+
['wrunSheet', INSTANCE],
|
|
293
|
+
// Strategy runs mounted in backtest mode must STAY backtest across the
|
|
294
|
+
// workspace re-pick and reloads: the backend grants backtest-only caps
|
|
295
|
+
// (lookback depth, sub-bar fills, funding prefetch) off this field, so
|
|
296
|
+
// dropping it silently downgrades every mounted strategy to chart-window
|
|
297
|
+
// economics with no funding data. Row-only instance state (TEMPLATES-PLAN
|
|
298
|
+
// A11): a template saved on a Strategy Tester mount never turns a chart run
|
|
299
|
+
// into a backtest, and a backtest keeps its mode through a reset.
|
|
300
|
+
['runMode', INSTANCE],
|
|
301
|
+
['editorRunKey', INSTANCE],
|
|
302
|
+
['gridHeight', PREFERENCE],
|
|
303
|
+
['currency', PREFERENCE],
|
|
304
|
+
['barHeightMultiplier', PREFERENCE],
|
|
305
|
+
['intervalBarHeights', PREFERENCE],
|
|
306
|
+
['barHeight', PREFERENCE],
|
|
307
|
+
// Order Book Profile grouping as the brick-to-base MULTIPLIER: the only
|
|
308
|
+
// symbol-independent form of the choice. The control reads it first and the
|
|
309
|
+
// dialog writes it, but off this list a saved default carried just the
|
|
310
|
+
// absolute brick, so a re-add fell back to the stock x10 grouping.
|
|
311
|
+
['brickMultiplier', PREFERENCE],
|
|
312
|
+
['stickToLeft', PREFERENCE],
|
|
313
|
+
['showPOC', PREFERENCE],
|
|
314
|
+
['pocColor', PREFERENCE],
|
|
315
|
+
['showPOCLabel', PREFERENCE],
|
|
316
|
+
['showPOCNaked', PREFERENCE],
|
|
317
|
+
['showValue', PREFERENCE],
|
|
318
|
+
['showValueArea', PREFERENCE],
|
|
319
|
+
['valueArea', PREFERENCE],
|
|
320
|
+
['showVAH', PREFERENCE],
|
|
321
|
+
['vahColor', PREFERENCE],
|
|
322
|
+
['showVAHLabel', PREFERENCE],
|
|
323
|
+
['showVAHNaked', PREFERENCE],
|
|
324
|
+
['showVAL', PREFERENCE],
|
|
325
|
+
['showLevelsOnScale', PREFERENCE],
|
|
326
|
+
['showBasisStamp', PREFERENCE],
|
|
327
|
+
// Options indicators: the picked option exchanges (crypto-options lane). Unset reads the chart's
|
|
328
|
+
// default venue, so overlays saved before the pick existed are unchanged.
|
|
329
|
+
['optionExchanges', PREFERENCE],
|
|
330
|
+
['valColor', PREFERENCE],
|
|
331
|
+
['showUnfinishedAuction', PREFERENCE],
|
|
332
|
+
['unfinishedAuctionColor', PREFERENCE],
|
|
333
|
+
['footerRows', PREFERENCE],
|
|
334
|
+
['statsRows', PREFERENCE],
|
|
335
|
+
['statsRowsPosition', PREFERENCE],
|
|
336
|
+
['statsRowsLabels', PREFERENCE],
|
|
337
|
+
['liquidationMarkers', PREFERENCE],
|
|
338
|
+
['showVALLabel', PREFERENCE],
|
|
339
|
+
['showVALNaked', PREFERENCE],
|
|
340
|
+
['showBackground', PREFERENCE],
|
|
341
|
+
// Profiles (SVP, Agg SVP, Delta, VRVP, Agg VRVP, DSP, order book): draw the
|
|
342
|
+
// bars under the candles. Draw-only titan key, but the choice must survive
|
|
343
|
+
// the workspace re-pick.
|
|
344
|
+
['behindCandles', PREFERENCE],
|
|
345
|
+
// Delta Profile: draw each bar as an outline in its fill color, no fill.
|
|
346
|
+
// Draw-only titan key like behindCandles. Shared list, not
|
|
347
|
+
// DELTA_PROFILE_SETTINGS_TO_SAVE: no other type stamps the name, and the
|
|
348
|
+
// persistence scanner checks every dialog field against this list.
|
|
349
|
+
['hollowBars', PREFERENCE],
|
|
350
|
+
['sessionType', PREFERENCE],
|
|
351
|
+
['session', PREFERENCE],
|
|
352
|
+
// CME futures RTH/ETH session-hours toggle (VP family fetch identity)
|
|
353
|
+
['sessionHours', PREFERENCE],
|
|
354
|
+
// 24/7 venues: daily session start intent ('chart' tz vs 'utc'). The derived
|
|
355
|
+
// tradingDayAnchor is deliberately NOT in this list; it is restamped from
|
|
356
|
+
// this setting on every mount/apply/timezone change.
|
|
357
|
+
['sessionStart', PREFERENCE],
|
|
358
|
+
['showDelta', PREFERENCE],
|
|
359
|
+
['barWidth', PREFERENCE],
|
|
360
|
+
['minimumBarHeight', PREFERENCE],
|
|
361
|
+
// Footprint anchor tick (footprint-anchor-tick.util.ts): the exchange tick the
|
|
362
|
+
// rows center on, valid for the instrument named by its identity.
|
|
363
|
+
['anchorTick', PREFERENCE],
|
|
364
|
+
['anchorTickIdentity', PREFERENCE],
|
|
365
|
+
// Footprint big-trades-only data filter (fetch parse + live merge)
|
|
366
|
+
['bigTradesOnly', PREFERENCE],
|
|
367
|
+
['bigTradesThreshold', PREFERENCE],
|
|
368
|
+
['bigTradesThresholdUnit', PREFERENCE],
|
|
369
|
+
['fundingInterval', PREFERENCE],
|
|
370
|
+
['showSplineLabels', PREFERENCE],
|
|
371
|
+
['splineLabelMode', PREFERENCE],
|
|
372
|
+
['splineLabelExchangeDisplay', PREFERENCE],
|
|
373
|
+
['compactLabel', PREFERENCE],
|
|
374
|
+
['isFillTransparent', PREFERENCE],
|
|
375
|
+
['isInverse', PREFERENCE],
|
|
376
|
+
['showMagnifier', PREFERENCE],
|
|
377
|
+
['customAnchorCandles', PREFERENCE],
|
|
378
|
+
['source', PREFERENCE],
|
|
379
|
+
['showBand1', PREFERENCE],
|
|
380
|
+
['showBand2', PREFERENCE],
|
|
381
|
+
['showBand3', PREFERENCE],
|
|
382
|
+
['anchor', PREFERENCE],
|
|
383
|
+
['bandCalcMode', PREFERENCE],
|
|
384
|
+
['bandMult1', PREFERENCE],
|
|
385
|
+
['bandMult2', PREFERENCE],
|
|
386
|
+
['bandMult3', PREFERENCE],
|
|
387
|
+
['bands', PREFERENCE],
|
|
388
|
+
['showLetters', PREFERENCE],
|
|
389
|
+
['showVolumeProfile', PREFERENCE],
|
|
390
|
+
['volumeProfilePosition', PREFERENCE],
|
|
391
|
+
['volumeProfileWidth', PREFERENCE],
|
|
392
|
+
['volumeDisplayMode', PREFERENCE],
|
|
393
|
+
['blockDisplay', PREFERENCE],
|
|
394
|
+
['showVolumeValues', PREFERENCE],
|
|
395
|
+
['valueAreaPercentage', PREFERENCE],
|
|
396
|
+
['ibrPeriod', PREFERENCE],
|
|
397
|
+
['ibrMinutes', PREFERENCE],
|
|
398
|
+
['showIBR', PREFERENCE],
|
|
399
|
+
['ibrColor', PREFERENCE],
|
|
400
|
+
['showPoorHighs', PREFERENCE],
|
|
401
|
+
['poorHighsColor', PREFERENCE],
|
|
402
|
+
['showPoorHighsLabel', PREFERENCE],
|
|
403
|
+
['showPoorHighsNaked', PREFERENCE],
|
|
404
|
+
['showPoorLows', PREFERENCE],
|
|
405
|
+
['poorLowsColor', PREFERENCE],
|
|
406
|
+
['showPoorLowsLabel', PREFERENCE],
|
|
407
|
+
['showPoorLowsNaked', PREFERENCE],
|
|
408
|
+
['showSinglePrints', PREFERENCE],
|
|
409
|
+
['singlePrintsColor', PREFERENCE],
|
|
410
|
+
['showSinglePrintsNaked', PREFERENCE],
|
|
411
|
+
['showBuyingSellingTails', PREFERENCE],
|
|
412
|
+
['outsideVAOpacity', PREFERENCE],
|
|
413
|
+
['showOutsideVAColors', PREFERENCE],
|
|
414
|
+
['outsideVAColor', PREFERENCE],
|
|
415
|
+
// Profile-family outside-value-area row colors (VRVP/SVP/FRVP/aggregated).
|
|
416
|
+
// The style dialog applies them live via tc.updateSettings, but workspace
|
|
417
|
+
// saves re-pick settings through this list, so without these two entries the
|
|
418
|
+
// pair is silently dropped on save and every reload reverts to the derived
|
|
419
|
+
// 0.5-alpha defaults.
|
|
420
|
+
['outsideVABuyColor', PREFERENCE],
|
|
421
|
+
['outsideVASellColor', PREFERENCE],
|
|
422
|
+
// Profile delta spikes (outline round): draw-only titan keys, but the
|
|
423
|
+
// toggle + color pair must survive the workspace re-pick like the
|
|
424
|
+
// outside-VA pair above.
|
|
425
|
+
['deltaSpikes', PREFERENCE],
|
|
426
|
+
['deltaSpikeBuyColor', PREFERENCE],
|
|
427
|
+
['deltaSpikeSellColor', PREFERENCE],
|
|
428
|
+
// Profile level-line span (DSP): 'profile' starts VAH/POC/VAL at the session
|
|
429
|
+
// open, lineExtend keeps/stops the right-hand extension. Draw-only titan
|
|
430
|
+
// keys, but the user's choice must survive the workspace re-pick.
|
|
431
|
+
['lineBounds', PREFERENCE],
|
|
432
|
+
['lineExtend', PREFERENCE],
|
|
433
|
+
['showLabel', PREFERENCE],
|
|
434
|
+
['colorScheme', PREFERENCE],
|
|
435
|
+
['volumeColors', PREFERENCE],
|
|
436
|
+
['useCustomColors', PREFERENCE],
|
|
437
|
+
['customTPOColors', PREFERENCE],
|
|
438
|
+
['showVolumePOC', PREFERENCE],
|
|
439
|
+
['volumePOCColor', PREFERENCE],
|
|
440
|
+
['valueMode', PREFERENCE],
|
|
441
|
+
['sharesMode', PREFERENCE],
|
|
442
|
+
['showVolumePOCNaked', PREFERENCE],
|
|
443
|
+
['showVolumeVAH', PREFERENCE],
|
|
444
|
+
['volumeVAHColor', PREFERENCE],
|
|
445
|
+
['showVolumeVAHNaked', PREFERENCE],
|
|
446
|
+
['showVolumeVAL', PREFERENCE],
|
|
447
|
+
['volumeVALColor', PREFERENCE],
|
|
448
|
+
['showVolumeVALNaked', PREFERENCE],
|
|
449
|
+
['tpoBlockSizeMinutes', PREFERENCE],
|
|
450
|
+
['tradingHour', PREFERENCE],
|
|
451
|
+
['customTimeRange', PREFERENCE],
|
|
452
|
+
['customSessionName', PREFERENCE],
|
|
453
|
+
// TPO custom sessions: the editor writes these but they were never on the
|
|
454
|
+
// whitelist, so the boot-time re-pick dropped them and the sessions died on
|
|
455
|
+
// the second reload (settings-loss audit, tpo-custom-sessions-never-persisted).
|
|
456
|
+
['customSessions', PREFERENCE],
|
|
457
|
+
['periodPalettes', PREFERENCE],
|
|
458
|
+
['blockColorMode', PREFERENCE],
|
|
459
|
+
// TPO POC/VAH/VAL line style: the settings tab writes it and TpoScene reads
|
|
460
|
+
// it, but off-whitelist it reverted to 'dashed' on every reload.
|
|
461
|
+
['tpoLineStyle', PREFERENCE],
|
|
462
|
+
['mergedPeriodsMap', PREFERENCE],
|
|
463
|
+
['expandedPeriodsMap', PREFERENCE],
|
|
464
|
+
['expandAll', PREFERENCE],
|
|
465
|
+
// Where the script runs (a protected script executes on the backend).
|
|
466
|
+
['isProtectedScript', INSTANCE],
|
|
467
|
+
['showPOCNakedPrice', PREFERENCE],
|
|
468
|
+
['showVAHNakedPrice', PREFERENCE],
|
|
469
|
+
['showVALNakedPrice', PREFERENCE],
|
|
470
|
+
['showPoorHighsNakedPrice', PREFERENCE],
|
|
471
|
+
['showPoorLowsNakedPrice', PREFERENCE],
|
|
472
|
+
['showVolumePOCNakedPrice', PREFERENCE],
|
|
473
|
+
['showVolumeVAHNakedPrice', PREFERENCE],
|
|
474
|
+
['showVolumeVALNakedPrice', PREFERENCE],
|
|
475
|
+
// A DEX pool a comparison follows (the controls refetch when any of them changes).
|
|
476
|
+
['chain', INSTANCE],
|
|
477
|
+
['poolAddress', INSTANCE],
|
|
478
|
+
['baseTokenAddress', INSTANCE],
|
|
479
|
+
['quoteTokenAddress', INSTANCE],
|
|
480
|
+
['useGradient', PREFERENCE],
|
|
481
|
+
['__dropdownAdded', PREFERENCE],
|
|
482
|
+
// The FRED series a comparison plots.
|
|
483
|
+
['fredMetadata', INSTANCE],
|
|
484
|
+
['isFredChart', INSTANCE],
|
|
485
|
+
['threshold', PREFERENCE],
|
|
486
|
+
['imbalance', PREFERENCE],
|
|
487
|
+
['skipZeroValues', PREFERENCE],
|
|
488
|
+
['imbalanceRatio', PREFERENCE],
|
|
489
|
+
['imbalanceBuyColor', PREFERENCE],
|
|
490
|
+
['imbalanceSellColor', PREFERENCE],
|
|
491
|
+
['showDecimals', PREFERENCE],
|
|
492
|
+
['volumeDecimals', PREFERENCE],
|
|
493
|
+
['showSummary', PREFERENCE],
|
|
494
|
+
['visibleRangeScaling', PREFERENCE],
|
|
495
|
+
['dynamicCandleWidth', PREFERENCE],
|
|
496
|
+
['autoScaleBars', PREFERENCE],
|
|
497
|
+
['showTotalProfile', PREFERENCE],
|
|
498
|
+
['showVolumeSummary', PREFERENCE],
|
|
499
|
+
['showTradingHourLabel', PREFERENCE],
|
|
500
|
+
['legendsCollapsed', PREFERENCE],
|
|
501
|
+
['__localKScriptSourceHash', INSTANCE],
|
|
502
|
+
['fromTimestamp', INSTANCE],
|
|
503
|
+
['toTimestamp', INSTANCE],
|
|
504
|
+
// FRVP "Follow chart": per-instance open-ceiling mode; must survive
|
|
505
|
+
// workspace saves so reload restores follow and catches the box up.
|
|
506
|
+
['followChart', PREFERENCE],
|
|
507
|
+
['pinnedToChart', PREFERENCE],
|
|
508
|
+
// Pane hosting: this off-chart indicator renders inside the pane of the
|
|
509
|
+
// off-chart overlay with this id (engine contract: titan utils/paneHosting).
|
|
510
|
+
// Without this entry the reconcile pick sites silently strip the merge on
|
|
511
|
+
// the next save and panes un-merge on reload.
|
|
512
|
+
['hostPaneId', INSTANCE],
|
|
513
|
+
// Pane hosting axes: the member's requested axis side (left/right/hidden).
|
|
514
|
+
// The axis side lives and dies with the `hostPaneId` association. `hideLegendName` is NOT here:
|
|
515
|
+
// it is a per-indicator preference (the settings dialog's "Show indicator name").
|
|
516
|
+
['mergedScaleSide', INSTANCE],
|
|
517
|
+
// Pane hosting legend: hide the member's legend name text (association-
|
|
518
|
+
// scoped: every unmerge path deletes it alongside hostPaneId).
|
|
519
|
+
['hideLegendName', PREFERENCE],
|
|
520
|
+
// The slot charge of the script this instance runs (indicator-source-charge.util), derived from
|
|
521
|
+
// its own sheet or source: never another script's.
|
|
522
|
+
['weightedSourceCount', INSTANCE],
|
|
523
|
+
['uniqueSourceCount', INSTANCE],
|
|
524
|
+
['hasDynamicSources', PREFERENCE],
|
|
525
|
+
['signalInterval', PREFERENCE],
|
|
526
|
+
// The Polymarket market a PM signal follows.
|
|
527
|
+
['pmSignalMarkets', INSTANCE],
|
|
528
|
+
['pmSignalSlug', INSTANCE],
|
|
529
|
+
['pmSignalEndDate', INSTANCE],
|
|
530
|
+
// TWEET_CALLER_CALLS per-pane settings. Without these in the whitelist,
|
|
531
|
+
// workspace persistence silently drops them on save and reload restores
|
|
532
|
+
// an empty indicator shell: the user's caller selection vanishes after
|
|
533
|
+
// a refresh.
|
|
534
|
+
// The caller a tweet-caller overlay plots, and where its calls are read from.
|
|
535
|
+
['username', INSTANCE],
|
|
536
|
+
['category', PREFERENCE],
|
|
537
|
+
['chunksUrl', INSTANCE],
|
|
538
|
+
['showAllCalls', PREFERENCE],
|
|
539
|
+
['overlayKey', INSTANCE],
|
|
540
|
+
['viewportStart', INSTANCE],
|
|
541
|
+
['viewportEnd', INSTANCE],
|
|
542
|
+
['_instanceOrder', INSTANCE],
|
|
543
|
+
// HYPERLIQUID_ADDRESS indicator settings (per-chart wallet attachment).
|
|
544
|
+
// `familiesStatePositions` rides with the list it describes: it says the list was written where
|
|
545
|
+
// the Positions row could be seen, which is what tells a hidden position line apart from one the
|
|
546
|
+
// layout never named.
|
|
547
|
+
// The wallet a Hyperliquid address overlay attaches to.
|
|
548
|
+
['address', INSTANCE],
|
|
549
|
+
['visibleFamilies', PREFERENCE],
|
|
550
|
+
['familiesStatePositions', PREFERENCE],
|
|
551
|
+
// User-assigned display name (Objects panel rename); preferred over the
|
|
552
|
+
// registry name when resolving the overlay title on add/restore.
|
|
553
|
+
// The name this instance shows (an Objects panel rename, a registry mount's stamp): a template or
|
|
554
|
+
// a saved default never renames another instance, and a reset keeps it.
|
|
555
|
+
['customName', INSTANCE],
|
|
556
|
+
['renderProfile', PREFERENCE],
|
|
557
|
+
['scaleAndGrading', PREFERENCE],
|
|
558
|
+
['clusterCellMetric', PREFERENCE],
|
|
559
|
+
['showHeaders', PREFERENCE],
|
|
560
|
+
['showHoverInspector', PREFERENCE],
|
|
561
|
+
['showImbalanceNaked', PREFERENCE],
|
|
562
|
+
// Naked-level cap (footprint imbalance Naked Extension, Session VP naked
|
|
563
|
+
// POC/VAH/VAL): titan keeps the N most recent unfilled levels, 0 = all.
|
|
564
|
+
// A row persists it only once the user edits the field (absent reads as
|
|
565
|
+
// all); a template states it, 0 where the engine holds none.
|
|
566
|
+
['maxNakedLevels', ALL_LEVELS],
|
|
567
|
+
['showPOCOutline', PREFERENCE],
|
|
568
|
+
['stackedImbalances', PREFERENCE],
|
|
569
|
+
['pocThickness', PREFERENCE],
|
|
570
|
+
['volumeColor', PREFERENCE],
|
|
571
|
+
['colorImbalanceText', PREFERENCE],
|
|
572
|
+
['buyTailEdges', PREFERENCE],
|
|
573
|
+
['sellTailEdges', PREFERENCE],
|
|
574
|
+
['dayTypeColor', PREFERENCE],
|
|
575
|
+
['openTypeColor', PREFERENCE],
|
|
576
|
+
['developingAllPeriods', PREFERENCE],
|
|
577
|
+
['developingPOCColor', PREFERENCE],
|
|
578
|
+
['developingVAColor', PREFERENCE],
|
|
579
|
+
['showDevelopingPOC', PREFERENCE],
|
|
580
|
+
['showDevelopingVA', PREFERENCE],
|
|
581
|
+
['showDayType', PREFERENCE],
|
|
582
|
+
['showOpenType', PREFERENCE],
|
|
583
|
+
['endBlockColor', PREFERENCE],
|
|
584
|
+
['startBlockColor', PREFERENCE],
|
|
585
|
+
['highlightStartEnd', PREFERENCE],
|
|
586
|
+
['fillValueArea', PREFERENCE],
|
|
587
|
+
['valueAreaFillColor', PREFERENCE],
|
|
588
|
+
['valueAreaFillOpacity', PREFERENCE],
|
|
589
|
+
['profileSpacing', PREFERENCE],
|
|
590
|
+
['rangeExtensionColor', PREFERENCE],
|
|
591
|
+
['showRangeExtension', PREFERENCE],
|
|
592
|
+
['showStatistics', PREFERENCE],
|
|
593
|
+
['showTPOCounts', PREFERENCE],
|
|
594
|
+
['showOTF', PREFERENCE],
|
|
595
|
+
['showOTFLabels', PREFERENCE],
|
|
596
|
+
['otfUpColor', PREFERENCE],
|
|
597
|
+
['otfDownColor', PREFERENCE],
|
|
598
|
+
['showPriorSessionLevels', PREFERENCE],
|
|
599
|
+
['priorPocColor', PREFERENCE],
|
|
600
|
+
['priorVahColor', PREFERENCE],
|
|
601
|
+
['priorValColor', PREFERENCE],
|
|
602
|
+
['priorHighColor', PREFERENCE],
|
|
603
|
+
['priorLowColor', PREFERENCE],
|
|
604
|
+
['showPriorPocLabel', PREFERENCE],
|
|
605
|
+
['showPriorVahLabel', PREFERENCE],
|
|
606
|
+
['showPriorValLabel', PREFERENCE],
|
|
607
|
+
['showPriorHighLabel', PREFERENCE],
|
|
608
|
+
['showPriorLowLabel', PREFERENCE],
|
|
609
|
+
['compositeSessions', PREFERENCE],
|
|
610
|
+
['volumeColorGrade', PREFERENCE],
|
|
611
|
+
['volumeThreshold', PREFERENCE],
|
|
612
|
+
['variant', PREFERENCE],
|
|
613
|
+
// Delta Profile accumulation scope ('session' | 'visible-range' | 'recent');
|
|
614
|
+
// drives the persisted titan variant, so dropping it would revert the scope
|
|
615
|
+
// on reload.
|
|
616
|
+
['scope', PREFERENCE],
|
|
617
|
+
// Delta Profile Recent scope: the trailing window length (ms) and the
|
|
618
|
+
// column's inset from the right pane edge (fraction of the pane width).
|
|
619
|
+
// Stamped only on rows that use them (delta-profile/index.ts), so listing
|
|
620
|
+
// them here adds nothing to any other row.
|
|
621
|
+
['profileWindowMs', PREFERENCE],
|
|
622
|
+
['edgeOffset', PREFERENCE],
|
|
623
|
+
// The metric profiles' Current period scope: which period ('day' | 'week' |
|
|
624
|
+
// 'month') the profile covers. Its derived engine keys (the period start, the
|
|
625
|
+
// translated header and POC label) are never persisted.
|
|
626
|
+
['profilePeriod', PREFERENCE],
|
|
627
|
+
// Footprint cell-rule filters + second per-cell metric row.
|
|
628
|
+
['cellRules', PREFERENCE],
|
|
629
|
+
// Footprint display-only zero-digit suppression.
|
|
630
|
+
['hideZeroText', PREFERENCE],
|
|
631
|
+
['secondaryCellMetric', PREFERENCE],
|
|
632
|
+
// Footprint cell digit ink override (titan collectProfileTextCommands).
|
|
633
|
+
['cellTextColor', PREFERENCE],
|
|
634
|
+
// Session VP custom intraday window: the dialog state and the composed
|
|
635
|
+
// titan contract both persist (the control recomposes on restore).
|
|
636
|
+
['customWindow', PREFERENCE],
|
|
637
|
+
['customSessionWindow', PREFERENCE],
|
|
638
|
+
// TPO current-period VAH/POC/VAL key-level tags on naked extension rays.
|
|
639
|
+
['showLevelLabels', PREFERENCE],
|
|
640
|
+
['hideLegendValues', PREFERENCE],
|
|
641
|
+
['invertScale', PREFERENCE],
|
|
642
|
+
['priceScaleSide', PREFERENCE],
|
|
643
|
+
// The overlay's own id and type, and a script's inline source: which instance this is, never on the row's list.
|
|
644
|
+
['id', IDENTITY],
|
|
645
|
+
['ovType', IDENTITY],
|
|
646
|
+
['script', IDENTITY],
|
|
647
|
+
// Runtime state the engine holds (the frame, the fetched data, the legend's error payload, compute output) and the
|
|
648
|
+
// names an object prototype reserves: never persisted, never carried.
|
|
649
|
+
['tf', RUNTIME],
|
|
650
|
+
['data', RUNTIME],
|
|
651
|
+
['errorMessage', RUNTIME],
|
|
652
|
+
['profileData', RUNTIME],
|
|
653
|
+
['rawData', RUNTIME],
|
|
654
|
+
['__proto__', RUNTIME],
|
|
655
|
+
['constructor', RUNTIME],
|
|
656
|
+
['prototype', RUNTIME],
|
|
657
|
+
// `settings.meta` mixes three kinds of state, so it is never carried whole (its row above is instance state):
|
|
658
|
+
// - instance identity (venue legs, coin, tenors, script plots, `predefinedSelectionKind`, which decides the venues
|
|
659
|
+
// CVD and funding read): always the fresh instance's, so it is declared by none of these rows;
|
|
660
|
+
// - portable preferences: the user's choice on any market;
|
|
661
|
+
// - market-bound absolutes: a price-unit value that only means something on the market it was saved on (an order
|
|
662
|
+
// book brick of 10 on BTC is one giant row on a 2 dollar coin).
|
|
663
|
+
// Both kinds are declared key by key on purpose: a missed preference is a mild miss, a carried identity key streams
|
|
664
|
+
// another market's data. Derived state is in neither: a heatmap's `maxDepth` is re-stamped by every init from the
|
|
665
|
+
// interval, resolution and depth tier.
|
|
666
|
+
['plotType', META_PREFERENCE],
|
|
667
|
+
['multipleStyles', META_PREFERENCE],
|
|
668
|
+
['aggregated', META_PREFERENCE],
|
|
669
|
+
// The look of the book, liquidation and TP/SL heatmaps.
|
|
670
|
+
['colors', META_PREFERENCE],
|
|
671
|
+
['showValues', META_PREFERENCE],
|
|
672
|
+
['display', META_PREFERENCE],
|
|
673
|
+
['showMagnifier', META_PREFERENCE],
|
|
674
|
+
['cellShape', META_PREFERENCE],
|
|
675
|
+
['sizeScale', META_PREFERENCE],
|
|
676
|
+
// Order book depth bands (percent of price) and the depth and funding display modes.
|
|
677
|
+
['smallerThanPct', META_PREFERENCE],
|
|
678
|
+
['greaterThanPct', META_PREFERENCE],
|
|
679
|
+
['displayMode', META_PREFERENCE],
|
|
680
|
+
// The long/short ratio series and the margin rate VIP tiers.
|
|
681
|
+
['selectedRatioTypes', META_PREFERENCE],
|
|
682
|
+
['selectedVipLevel', META_PREFERENCE],
|
|
683
|
+
['binanceVipLevel', META_PREFERENCE],
|
|
684
|
+
['bybitVipLevel', META_PREFERENCE],
|
|
685
|
+
['brickSize', META_MARKET_BOUND],
|
|
686
|
+
// A heatmap's brick is derived from its resolution and the fetch trusts a persisted brick verbatim, so the
|
|
687
|
+
// resolution travels only with the brick it was saved with.
|
|
688
|
+
['resolution', META_MARKET_BOUND],
|
|
689
|
+
// The heatmap color range is in the market's size units; its source (calibrated or the user's) decides whether it is
|
|
690
|
+
// recalibrated, so it travels with the range.
|
|
691
|
+
['range', META_MARKET_BOUND],
|
|
692
|
+
['outerRange', META_MARKET_BOUND],
|
|
693
|
+
['rangeSource', META_MARKET_BOUND],
|
|
694
|
+
['coinOfAdjustedRange', META_MARKET_BOUND],
|
|
695
|
+
// The volumetric size window is a volume in those same units.
|
|
696
|
+
['sizeCeil', META_MARKET_BOUND],
|
|
697
|
+
['venueChoice', META_VENUE_CHOICE],
|
|
698
|
+
];
|
|
699
|
+
/**
|
|
700
|
+
* FEED (live series, docs/features/indicators/feeds.md): the rest of the C4 record beside `address`, `scope` and
|
|
701
|
+
* `name`, which the shared rows already carry. Scoped to the type, because the names are generic: declared for every
|
|
702
|
+
* overlay they would start persisting other natives' engine keys (`color`, `plot`). Without them a reload restores a
|
|
703
|
+
* feed with no title, cadence or unit.
|
|
704
|
+
*/
|
|
705
|
+
const FEED_FIELDS = [
|
|
706
|
+
['title', PREFERENCE],
|
|
707
|
+
['cadence_s', PREFERENCE],
|
|
708
|
+
['units', PREFERENCE],
|
|
709
|
+
['version', PREFERENCE],
|
|
710
|
+
['plot', PREFERENCE],
|
|
711
|
+
['color', PREFERENCE],
|
|
712
|
+
['pane', PREFERENCE],
|
|
713
|
+
];
|
|
714
|
+
/**
|
|
715
|
+
* The metric profiles (metric-profile.util): the render keys the save door derives from `scope` and the member's look
|
|
716
|
+
* (stampMetricProfileScopeDerived) beyond the shared ones: the Current period fold (`profileWindow: 'all'`,
|
|
717
|
+
* `periodMarkers`) and the look every scope draws (the Open Interest Profile's `deltaLayout`, every member's
|
|
718
|
+
* `levelBasis`). The door writes them into the row, so the restore pick must keep them or every boot spends a
|
|
719
|
+
* reconcile save. Scoped to the family for the Delta Profile's reason: the Developing Session Profile stamps
|
|
720
|
+
* `profileWindow: 'data'` on every mount. The engine-only keys (`periodStartMs`, `headerTemplate`, `pocLabel`) stay
|
|
721
|
+
* out: two of them are translated text.
|
|
722
|
+
*/
|
|
723
|
+
const METRIC_PROFILE_FIELDS = [
|
|
724
|
+
['profileWindow', PREFERENCE],
|
|
725
|
+
['periodMarkers', PREFERENCE],
|
|
726
|
+
['deltaLayout', PREFERENCE],
|
|
727
|
+
['levelBasis', PREFERENCE],
|
|
728
|
+
];
|
|
729
|
+
/**
|
|
730
|
+
* The fields one indicator type declares beyond INDICATOR_COMMON_FIELDS: a row here adds a key, or replaces the shared
|
|
731
|
+
* row of the same owner and key.
|
|
732
|
+
*/
|
|
733
|
+
export const INDICATOR_TYPE_FIELDS = {
|
|
734
|
+
FEED: FEED_FIELDS,
|
|
735
|
+
/**
|
|
736
|
+
* DELTA_PROFILE: the trailing-window flag (`profileWindow: 'trailing'`, Recent scope; the save door derives it from
|
|
737
|
+
* `scope`). Saves write the whole engine copy, so without it each boot's restore pick would strip the flag from a
|
|
738
|
+
* Recent row and spend a reconcile save. Scoped to the type: the Developing Session Profile stamps
|
|
739
|
+
* `profileWindow: 'data'` on every mount, and a shared row would make the restore pick write that into each of its
|
|
740
|
+
* rows.
|
|
741
|
+
*/
|
|
742
|
+
DELTA_PROFILE: [['profileWindow', PREFERENCE]],
|
|
743
|
+
OPEN_INTEREST_PROFILE: METRIC_PROFILE_FIELDS,
|
|
744
|
+
LIQUIDATION_PROFILE: METRIC_PROFILE_FIELDS,
|
|
745
|
+
/** Margin Rates derives `multipleStyles` (a style row per source) from its own sources: never carried onto another row. */
|
|
746
|
+
MARGIN_RATES: [['multipleStyles', META_DERIVED]],
|
|
747
|
+
// The meta preferences the settings dialogs write (TEMPLATES-PLAN decision 6): template-lane.
|
|
748
|
+
/** The position side (BitfinexPositionSettings.vue `meta.side`). */
|
|
749
|
+
BITFINEX_POSITION: [['side', META_PREFERENCE]],
|
|
750
|
+
/** The ratio mode (BinancePutCallRatioSettings.vue `meta.modeTxt`); the series it names follow the venues. */
|
|
751
|
+
BINANCE_PUT_CALL_RATIO: [['modeTxt', META_PREFERENCE]],
|
|
752
|
+
/** The trade sides and the period (TurnoverRatioSettings.vue); the control re-checks the period on its interval. */
|
|
753
|
+
TURNOVER_RATIO: [
|
|
754
|
+
['sides', META_PREFERENCE],
|
|
755
|
+
['period', META_PREFERENCE],
|
|
756
|
+
],
|
|
757
|
+
/** The margin category (AggregatedVolumeSettings.vue `meta.categoryTypes`). */
|
|
758
|
+
AGGREGATED_VOLUME: [['categoryTypes', META_PREFERENCE]],
|
|
759
|
+
/**
|
|
760
|
+
* The asset type (SectorVolumeSettings.vue `meta.assetType`) is a preference. The exchanges are derived: the asset
|
|
761
|
+
* type handler writes its table's entry, but a fresh instance stamps the chart's own venue (initializeOverlay), so a
|
|
762
|
+
* template or a saved default taken before any asset type pick would carry the source chart's venue. The row keeps
|
|
763
|
+
* them through `meta`; no template or default writes them.
|
|
764
|
+
*/
|
|
765
|
+
SECTOR_VOLUME: [
|
|
766
|
+
['assetType', META_PREFERENCE],
|
|
767
|
+
['exchanges', META_DERIVED],
|
|
768
|
+
],
|
|
769
|
+
/** The insurance fund group (BinanceFuturesInsuranceBalanceSettings.vue `meta.fundGroup`). */
|
|
770
|
+
BINANCE_FUTURES_INSURANCE_BALANCE: [['fundGroup', META_PREFERENCE]],
|
|
771
|
+
/** The ETF pick is identity, like the symbol (decision 6): the asset and the tickers it resolves to. */
|
|
772
|
+
ETF_CUMULATIVE_FLOW: [
|
|
773
|
+
['asset', META_IDENTITY],
|
|
774
|
+
['symbols', META_IDENTITY],
|
|
775
|
+
['exchanges', META_IDENTITY],
|
|
776
|
+
],
|
|
777
|
+
/**
|
|
778
|
+
* The ETF pick is identity here too (EtfHoldingSettings.vue): the asset (a coin, a US market or the chart's own
|
|
779
|
+
* listing) and the funds it resolves to. The unit a stock's ownership reads in (`meta.usUnit`: the share of the
|
|
780
|
+
* company the US ETFs hold, or the positions' value) is the user's preference on any market.
|
|
781
|
+
*/
|
|
782
|
+
ETF_HOLDING: [
|
|
783
|
+
['asset', META_IDENTITY],
|
|
784
|
+
['symbols', META_IDENTITY],
|
|
785
|
+
['exchanges', META_IDENTITY],
|
|
786
|
+
['usUnit', META_PREFERENCE],
|
|
787
|
+
],
|
|
788
|
+
/**
|
|
789
|
+
* Distribution Yield: the yield line follows the chart, so its one setting, whether the payouts show on the price pane
|
|
790
|
+
* (EtfDistributionYieldSettings.vue `meta.showPayouts`), is a preference.
|
|
791
|
+
*/
|
|
792
|
+
ETF_DISTRIBUTION_YIELD: [['showPayouts', META_PREFERENCE]],
|
|
793
|
+
};
|