tradingview-gex-flashalpha 0.0.0-stage → 1.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,323 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0 — 2026-11-27
4
+
5
+ - Sign up and Upgrade links to the page's own site (`upgradeUrl` / `signupUrl` on the page's host, `www.` or not) no
6
+ longer carry `utm_source=chart` tags, which replaced the reader's own traffic source there. Links to another site keep
7
+ them.
8
+ - New event **`flashalpha:upgrade`** on the container (it bubbles) when the reader follows a Sign up or Upgrade link or
9
+ prompt, including the prompts that open the pricing page without a link (an indicator whose every layer is locked, a
10
+ locked option); `event.detail` is `{ campaign, content, href, symbol }`. Plugins: `ctx.openUpgrade(what)` opens the
11
+ upgrade page and sends it.
12
+ - **How fresh the levels are:** the GEX Levels legend ends with `As of 11:59 ET`, the time the newest levels were
13
+ computed (the row's `as_of`). While a session trades, levels more than 10 minutes behind the newest regular-hours
14
+ candle, or from the previous session, turn amber and go first on the line (`As of 11:40 ET (delayed 15 min)`); levels
15
+ that stopped before the newest candle get a line of their own (`⚠ GEX levels delayed 25 min: last update 11:30 ET`).
16
+ A past session is not checked.
17
+ - New event **`flashalpha:change`** on the container (it bubbles) after the symbol, interval, range, session or layers
18
+ changed, by the reader or by a method; `event.detail` is `{ symbol, resolution, range, session, layers }`. In a layout
19
+ each chart sends its own.
20
+ - Without a key, the box over the chart (`upsell: true`) says **Sign up free** and links to `signupUrl`, like the legend's
21
+ "Not in your plan" line (it said Upgrade).
22
+ - Level events are measured against the levels the chart draws: on settled open interest each session's levels from
23
+ the open, so a wall no longer "moves" every few minutes; on live open interest a level moves once the new strike has
24
+ held for 5 minutes (chart API).
25
+
26
+ ## 1.1.0 — 2026-11-25
27
+
28
+ - **Level events** (FlashAlpha layer `events`, Growth) is released: markers on the candles where the price was rejected
29
+ at a GEX level (▼ / ▲), broke it (■) or crossed the gamma flip (●), regime flips that held 5 minutes (+γ / −γ), and day
30
+ markers (OPEX, earnings, expiry roll, the largest open interest change). The legend counts per level how many touches
31
+ held (`PW held 10/13`); hovering a bar lists its events. Page: docs/indicators/level-events.md.
32
+ - **0DTE hedging flow** (FlashAlpha layer `hedgeflow`, Growth) is released: the stock dealers had to buy or sell since
33
+ the open to hedge today's 0DTE trades, in a pane under the price (blue above zero, orange below), with the flow per bar,
34
+ the call and put legs, divergence markers, and `$Δ` or `% move` units (`options.hedgeUnits`, `setHedgeUnits`).
35
+ Page: docs/indicators/0dte-hedging-flow.md.
36
+ - **Expiry heatmap** (FlashAlpha layer `expiries`, Growth) is released: net GEX (or delta, vanna, charm) by strike and by
37
+ expiration in a panel beside the chart, with totals per strike and per expiration, the levels' strikes tagged, and the
38
+ lens, the strikes shown (`options.expiryRows`) and values in cells in its header. Page: docs/indicators/expiry-heatmap.md.
39
+ - The **Strike heatmap** and the **GEX profile** are two indicators (they were the layers of "GEX by strike"), each with
40
+ its own value per strike: `options.lens` takes one lens for all, or `{ heatmap, profile, expiries }`;
41
+ `setLens(lens, layer)` sets one. Their page keeps its address: docs/indicators/gex-by-strike.md.
42
+ - Fix: on a **Percent** or **Indexed to 100** price scale the level lines and their labels were off (`Call wall 0.00%`):
43
+ Lightweight Charts measures each series from its own first value. While one of those scales is on, the candles draw
44
+ the levels' price lines and labels (from the candles' base) and their lines (`src/percent-levels.js`).
45
+ - Fix: Lightweight Charts joins a line across a point without a value, so a line "cut between sessions" was drawn with a
46
+ slope from one session to the next (Net GEX, the 0DTE hedging flow, the metrics pane, the level lines). The point before
47
+ a gap is now transparent. Plugins: `ctx.util.cutGaps(points, type)` does it for their own series.
48
+ - Fix: the legend of a pane under the price (Net GEX, the 0DTE hedging flow) sat up to 25 px too high, over the pane
49
+ above it, after an indicator was turned on, until the pointer moved: it is placed where Lightweight Charts lays the pane
50
+ out, and again whenever that pane changes size.
51
+ - Fix: a legend line longer than the plot area ran under the price scale (and under a docked panel). The legend ends at
52
+ the plot area, a line that does not fit drops its last values for "…" (their text on hover; the title and the ⓘ stay),
53
+ and each line sits on a faint backdrop so a level line or a marker under it no longer runs through its text.
54
+ - Fix: the axis label and price line of Net GEX and of the 0DTE hedging flow take the colour of the latest value's side
55
+ of zero (a negative Net GEX had a green label).
56
+ - Expected move in **light green / light red** (`#80cbc4` / `#ef9a9a`), so its lines and labels no longer read as the call
57
+ wall's green and the put wall's red next to them.
58
+ - Level labels on the price scale keep a **short title** where the full one does not fit (phones, the GEX profile at the
59
+ pane's right edge): `CW`, `PW`, `Flip`, `MP`, `0DTE`, `+1σ`, `−1σ` (they had no title there). Plugins:
60
+ `ctx.level(color, title, plotId, short)`.
61
+ - Level events: the **0DTE magnet's events are off by default** (it is touched many times a day; on in the Style tab),
62
+ and zoomed out (bars under 8 px wide) the markers show their shapes without their tags.
63
+ - Expiry heatmap on a phone: docked under the chart at 60 % of its height (was 40 %: one row of strikes showed), its
64
+ header on one line ("Values", the snapshot's time left out).
65
+ - A plan without an indicator's data (the chart API answers its layer `"gated"`): the legend names those indicators on
66
+ one line, **Not in your plan: GEX Levels, Net GEX, …**, with an **Upgrade** link (**Sign up** without a key). The
67
+ strike heatmap and the GEX profile no longer say "no strike data in this window" then. Plugins: `ctx.gated(apiLayer)`,
68
+ and `{ gated: name }` from `legend()`.
69
+ - Without a key the account button says **Sign up**, also when the chart API names a plan for the keyless answer (it
70
+ said "Free").
71
+ - GEX Levels: the magnet's layer is **0DTE magnet** in the Indicators menu, the Style tab, the legend and on the price
72
+ scale (`0DTE` where the full title does not fit), so it no longer reads as the 0DTE hedging flow.
73
+ - Touch screens: the legends have no hide / options / remove buttons (they sat over the values); the Indicators menu does
74
+ the same. A plugin's panel keeps its own.
75
+ - **Expected move** (FlashAlpha layer `em`, Growth) is released: each session's options-implied 1σ from its 9:30 ET
76
+ open, **+1σ** dotted green and **−1σ** dotted red with the band between them filled faintly (Band fill in the Style
77
+ tab). On 1w the band is the week's (the first session's 1σ × √5 from the week's
78
+ open). The legend shows the band, the 1σ and how many finished sessions in view stayed inside it
79
+ (`Inside 14/20 (70%)`); the session's IV30, RV20, VRP and VIX state moved into its ⓘ. Hovering a bar draws nodes on
80
+ its close and on the band and a box above them (the close in σ from the open, the distance to ±1σ in percent). One name everywhere:
81
+ EM +1σ, EM −1σ. Page: docs/indicators/expected-move.md.
82
+ - Legend: every ⓘ sits right after its indicator's name, before the values (it used to come after them).
83
+ - Legend: no more "Max pain (daily, close …)" note under the legend before the first intraday max pain; the daily
84
+ value stays on the GEX Levels line as "Max pain (daily)". No more "Daily levels (close …)" note either (1d / 1w):
85
+ the daily levels are still drawn, their values are no longer written under the legend.
86
+ - More of Lightweight Charts, laid out like TradingView. A **chart type** menu next to Indicators (its icon shows the
87
+ type): candles, hollow candles, bars, line, area, baseline (from the first close) or Heikin Ashi; the legend keeps the
88
+ real OHLC. **%**, **log** and **auto** buttons at the right of the time bar (auto follows the chart: dragging the price
89
+ scale turns it off, a double click on it back on). **Settings** in sections: Appearance (theme, grid lines, a
90
+ **watermark** with the symbol and the interval), Scales (regular, logarithmic, percent or indexed to 100 from the
91
+ candles' first bar; placement right or left; auto scale; invert; price label; last price line), Crosshair (free, magnet
92
+ on the close, magnet on OHLC, hidden) and Status line (legend, volume).
93
+ The candles stay the price series (levels, markers and plugins keep using them): another type draws over them.
94
+ - Indicators menu like TradingView: an indicator with one layer is one row (its switch, its name, its options); one with
95
+ several layers keeps its name, its switch and a row per layer. That switch turns all its layers on (those the plan
96
+ includes) or all off, and is half-ticked while only some are on. The plugin option `defaults` is no longer used.
97
+ - Legend like TradingView: a fold button under the price pane's indicator lines hides them (the symbol and its bar stay;
98
+ folded, the button shows how many indicators are folded) and shows them again.
99
+ - The legend no longer moves under the pointer: each indicator's line is one line (its parts never wrap), and the notes
100
+ show wherever the pointer is.
101
+ - Plugins: `legendLevels(row, parts, prev, indicator, at)` is called at every bar, with the row `{ time }` (and `prev`
102
+ null) where there is no exposure row, so a layer with data of its own fills its line there too; `at` is `{ time, y }`,
103
+ the crosshair's y in the price pane (null off the chart), for a part that follows the pointer. Values that used to be
104
+ extra `legend()` lines under the pointer belong on the indicator's line.
105
+
106
+ ## 1.0.0 — 2026-11-24
107
+
108
+ - First release on npm and GitHub as **tradingview-gex-flashalpha**. It ships the changes listed under 0.9.0
109
+ below, which reached the chart host as 0.9.0 to 0.9.3 but were never published to npm.
110
+ - The package is **tradingview-gex-flashalpha** (`npm install tradingview-gex-flashalpha`), from the GitHub repository
111
+ FlashAlpha-lab/tradingview-gex-flashalpha. The style sheet is `tradingview-gex-flashalpha/style.css`, the builds are
112
+ `dist/tradingview-gex-flashalpha.mjs`, `.cjs`, `.js`, `.min.js` and `.css`. The layers a reader turns on are remembered
113
+ under the new key `tradingview-gex-flashalpha:layers` (`storageKey`): picks saved under the previous key are not read,
114
+ so each reader opens once with the default layers.
115
+
116
+ ## 0.9.0 — chart host only (0.9.0 to 0.9.3, not published to npm)
117
+
118
+ - Legend parts take `{ info }`: an ⓘ whose text shows on hover, and stays open after a click until a click elsewhere.
119
+ The title's hide / options / remove buttons touch the title (no gap to cross) and hide a moment after the pointer
120
+ leaves, so they are easy to reach.
121
+ - Legend parts take `{ ramp: [colours], from, to, title }`: a colour scale (its ends' values either side of a gradient).
122
+ A `toggle` plot without `color` is a switch only in the Style tab.
123
+ - Plugins: `ctx.redraw()` draws again from the last answer (no request): every plugin's draw, then the legend.
124
+ - Legend like TradingView: every indicator that is on has a line starting with its title; on hover the title shows
125
+ hide / show (👁: its drawings go at once, its line stays, dimmed, and so does its pane; the layers stay on and loaded,
126
+ so showing is at once too), options (⚙) and remove (🗑: its layers off, drawings and line gone at once). With no values
127
+ in the status line the title stays. Plugins: `ctx.on(layer)` is false for a hidden layer while drawing (true when
128
+ asked for the API layers), `ctx.hidden(layer)` tells it is hidden (e.g. keep its pane, empty). An indicator drawn in a pane of its own has
129
+ its line at the top left of that pane: plugin hooks `paneOf(indicator)` and `paneLegends(time)` (a pane that is no
130
+ indicator of its own).
131
+ - Fix: a plugin's `apiLayers(ctx)` gets the same context its `attach(ctx)` got (it got the chart's shared one). State a
132
+ plugin keeps by context (a WeakMap) is now seen there: the Pro layers' metric pane asked for no `metrics` layer, so a
133
+ metric picked from "All metrics" (e.g. gamma flip) drew nothing.
134
+ - The gamma regime tint has no text on the chart any more ("Positive gamma · moves tend to dampen" / "Negative gamma ·
135
+ moves tend to amplify" removed); the legend still gives the regime.
136
+ - Indicators menu: only a layer above the key's plan shows a plan, on the right after its 🔒; the layers the key's plan
137
+ opens carry no plan label (`.fac-badge` removed).
138
+ - Legend: the call wall, put wall and gamma flip (and their daily levels) show only while Walls & gamma flip is on.
139
+ With only Max pain on they were still listed.
140
+ - Levels: call wall, put wall, gamma flip and max pain are drawn flat, one segment per value, with no vertical line
141
+ between sessions or where a level moves. Max pain is 2 px like the walls and the flip.
142
+ - The horizontal line across the chart (price line), the price-scale label and the edge label of the call wall, the put
143
+ wall and the gamma flip show only while the latest session is in view: scrolled back, they would mark another day's
144
+ level.
145
+ - The legend no longer ends with "Session levels (set at the open)".
146
+ - "Values in status line (legend)" in a layer's Style tab now hides or shows that layer's values only (e.g. Max pain),
147
+ not the whole indicator line; the line goes when no layer that is on shows values. Legend parts take `layer`
148
+ (default: their plot's layer).
149
+ - Broken walls are off by default: Walls & gamma flip has two new options in its Style tab, "Call wall broken" and
150
+ "Put wall broken" (a switch and the marker colour). On, a wall the price closes through is faded from that bar, gets a
151
+ marker and reads "(broken)" in the legend, as before. Plots take `toggle: true` (a switch and a colour, no line).
152
+ - The core indicator is renamed "GEX Levels" (was "FlashAlpha GEX Levels"): a plugin that joins it names it so.
153
+ - The demo pages no longer have the VWAP plugin example.
154
+ - Intraday with Walls & gamma flip or Max pain on, the session under the crosshair stands out: the other sessions (their
155
+ candles and levels) are veiled in the chart's background colour until the crosshair leaves the chart.
156
+
157
+ - `live: true` (off by default): with the FlashAlpha chart API, 1m to 1h charts draw the forming candle, its volume and
158
+ the levels from a WebSocket (`/v1/live`): 1m bars folded into the chart's interval, a late print of the previous
159
+ bucket included; levels without a reload. It reconnects by itself, closes on a tab hidden for a minute, and while it
160
+ is down the chart refreshes as before. `debug: 'latency'` shows the lag in the status line.
161
+
162
+ - `background` goes with the theme of its kind: a dark colour with the dark theme, a light colour with the light
163
+ theme. Switching a chart that has a dark `background` to Light (Settings) gave dark text on the dark background;
164
+ now the light theme keeps its own white. A colour that is not hex or `rgb()` is used with both themes, as before.
165
+ - On a narrow chart (a phone) a menu panel with no room on either side of its button (the Indicators menu at 390 px)
166
+ is moved left to end at the chart's right edge, and is no wider than the chart: its plan labels and option buttons
167
+ were cut off.
168
+ - The chart's checkboxes, radios, select lists and symbol search keep the browser's own look on pages
169
+ with site-wide form styles (e.g. `@tailwindcss/forms`, Tailwind preflight): no white 16 px boxes, select lists keep
170
+ their arrow, no blue focus ring. The browser's controls follow the chart's theme (`color-scheme` dark or light, new
171
+ theme value `--fac-scheme`).
172
+ - Options per layer: an indicator (e.g. FlashAlpha GEX Levels) has no Settings button any more; each layer open to the
173
+ key's plan has its own options button (gear) in the Indicators menu. Style: that layer's plots only (Walls & gamma
174
+ flip: call wall, put wall, gamma flip; Max pain: max pain), with their price lines and axis labels, and the
175
+ indicator's values in the status line. Inputs: the layer's switch (only that layer turns on or off) and the
176
+ indicator's options (e.g. Expiries / Open interest), shared by all its layers ("Apply to every layer of ...").
177
+ A layer with plots opens on Style. Defaults resets that layer's plots only. The legend's button opens the options of
178
+ the indicator's first layer that is on.
179
+ - Levels styled like the GEX-by-strike chart (@flashalpha-lab/gex-charts): call wall `#059669`, put wall `#f84040`
180
+ (solid), gamma flip `#fbbf24` and max pain `#a78bfa` (dashed, 2 px), an unverified flip in the flip colour at 45 %
181
+ (was grey); in the FlashAlpha layer bundle the 0DTE magnet `#f472b6` (dashed), the expected move `#94a3b8`.
182
+ - The level lines are cut between sessions: no step from one session's level to the next (the first bar of a session
183
+ is a gap).
184
+ - The gamma regime is tinted behind the candles, either side of the flip (green above: "Positive gamma · moves tend to
185
+ dampen"; red below: "Negative gamma · moves tend to amplify"), session by session, labelled by the latest flip in view.
186
+ - A level outside the visible price range gets a label pinned to the top or bottom edge: "▲ Call wall 8,000.00 (+11.5%)"
187
+ (distance from the last close).
188
+ - The legend gives each wall and the flip its distance from spot: "Call wall 750.00 (+4.6%)", "Put wall 730.00 (−1.9%,
189
+ broken)".
190
+ - Daily levels (previous close) only on 1d/1w: intraday the walls and the flip come from the intraday rows only; max pain
191
+ keeps its daily value until the first intraday row that has one.
192
+ - Broken walls: when a candle closes above the call wall or below the put wall, that wall's line is faded from that
193
+ bar to the end of the session, a marker "Call wall broken 13:40" / "Put wall broken 10:30" sits on the bar (on the
194
+ candles, `createSeriesMarkers`; none while the wall's plot is hidden), and the legend reads "Put wall 730.00
195
+ (broken)" from that bar on. A new session or a new wall value starts unbroken.
196
+ - With the FlashAlpha chart API on settled OI the legend's levels line ends with "Session levels (set at the open)";
197
+ hovering it explains that the levels are set once per session. Not shown for a source of your own.
198
+ - Legend parts from `legendLevels`: `note` (in brackets after the value) and `{ text, title }` (a note with a tooltip).
199
+ - The chart opens with no layer: price and volume only (`layers` default `[]`, was `['levels']` plus plugin defaults;
200
+ plugin `defaults` now only say what an indicator's switch turns on).
201
+ - The layers the reader turns on or off are remembered in localStorage and the chart opens with them next time, over
202
+ `layers` (`storage: false` turns it off, `storageKey` keeps charts apart; unknown ids are dropped; a blocked or broken
203
+ storage falls back to the default).
204
+ - The Indicators menu lists every indicator and layer whatever the key's plan; a locked layer links to the pricing page,
205
+ and the switch of an indicator whose every layer is locked opens it too (and stays off).
206
+ - Without a key the chart locks every paid layer like the free plan: from the start with the FlashAlpha chart API and no
207
+ key, and after an answer `api_key_required`, `invalid_api_key` or `invalid_embed_key` from any source. A source of
208
+ your own that sends no plan still locks nothing.
209
+ - Layouts: the **Layout** button next to Settings shows one to four charts (19 layouts, like TradingView's). One
210
+ toolbar and time bar act on the chart in focus (click a chart); each chart keeps its interval, range, session,
211
+ indicators and Settings; a new symbol (and the theme) goes to every chart; a new chart opens with an interval no other
212
+ has. The layout and each chart's settings are remembered (`storageKey:group`, layers under `storageKey:2`...). Below
213
+ 640 px only the chart in focus shows. New options `layouts` (default `true`; `false` = one chart as before) and
214
+ `layout`; new members `setLayout`, `layout`, `charts`, `focus`, `active`, and `symbol`, `resolution`, `range`,
215
+ `session` on each chart.
216
+ - A signed-out reader (answer `api_key_required`) sees a sign-up box over a blurred picture of the chart instead of
217
+ "Add your FlashAlpha key to show this chart.": a lock, "Sign up free to see the SPX chart", what a free account and the
218
+ Basic plan show, and a **Sign up free** link (`signupUrl`, `utm_content=gate`). Other errors keep their line of text.
219
+ - `signupUrl` defaults to the FlashAlpha pricing page (the site signs up there; `/signup` was a 404).
220
+ - The Upgrade box over the chart is hidden for now; `upsell: true` shows it.
221
+ - One version number: the package, `FlashAlphaChart.version` and `embed.js` `VERSION` (which jumps from 0.8.x). There is no
222
+ 0.4.0 to 0.8.0 release of the package.
223
+ - Daily levels: `levels` and `maxpain` also draw the previous session's closing levels (`levels_daily`) as dashed steps, on
224
+ `1d`/`1w` and before the first intraday level; "Daily levels" in the legend; not under a 0DTE scope or live flow.
225
+ - Quote-mid bars (`source: 'quotes'`) have no volume and are labelled "quote mid (no trades)"; they are muted on `1m`,
226
+ outside regular hours and when every bar in the window is one, otherwise drawn in the normal colours; not for a symbol
227
+ with `asset_class: 'index'`. A `1w` bar with `source: 'mixed'` has no volume, labelled "some days quote mid (no volume)".
228
+ - Level lines (walls, flip, max pain, daily levels, 0DTE magnet) do not drive the price scale: it fits the candles.
229
+ - The daily max pain hands over at the first intraday row that has a max pain ("Max pain (daily)" in the legend before
230
+ it); walls and flip still hand over at the first intraday row. The daily levels are drawn only with `levels` or
231
+ `maxpain` on.
232
+ - Legend parts from layer plugins: `value` may be a string, and `format` writes a number and its change (e.g. `1.08B`).
233
+ - The core indicator is **FlashAlpha GEX Levels** (was "FlashAlpha GEX Max Pain").
234
+ - One plugin can fill several indicators: plugin field `indicators: { layerId: name }`, `ctx.addControl(el, 'panel', name)`,
235
+ and `legendLevels(row, parts, prev, indicator)` called once per indicator of the plugin that is on.
236
+ - An indicator groups layers that can need different plans: its name carries no plan, and each paid layer in it shows
237
+ its own plan's label (a 🔒 upgrade link above the key's plan).
238
+ - The changes listed under 0.4.0 below ship in this release (0.4.0 was never published).
239
+
240
+ ## 0.4.0 — 2026-11-17 (not published)
241
+
242
+ - npm package: ES module, CommonJS and script-tag builds in `dist/` (`tradingview-gex-flashalpha.mjs`, `.cjs`, `.js`, `.min.js`),
243
+ the style sheet as `tradingview-gex-flashalpha/style.css`, and TypeScript declarations (`types/index.d.ts`).
244
+ Lightweight Charts 5 stays a peer dependency and is never bundled.
245
+ - `injectCss: false` skips the `<style>` the chart adds, for pages that load the style sheet themselves.
246
+ - `ctx.exposure` for layer plugins: the exposure rows of the last load on bar times.
247
+ - The source is split into modules under `src/` (chart, data source, theme, components, plugins). The core layers
248
+ `levels` and `maxpain` are a layer plugin (`src/plugins/levels.js`). The chart draws and behaves as in 0.3.3.
249
+ - `FlashAlphaChart.version` is the package version (0.3.3 reported `0.3.0`).
250
+ - Layout like a TradingView chart: the toolbar above the chart keeps the symbols, resolutions and Layers; a time bar
251
+ under the chart has the ranges (1D 5D 1M 6M 1Y), RTH / ETH and a live US Eastern clock (hidden below 560 px). The
252
+ session no longer moves into the Layers panel on phones. `controls: false` hides both bars.
253
+ - Toolbar like TradingView's: the symbols are a dropdown with a search box (symbol or name, arrow keys and Enter), the
254
+ resolutions an interval dropdown. On the right: **Settings** (theme, volume, grid lines, legend), **Fullscreen**
255
+ (hidden where the browser or the iframe has none), **Take a screenshot** (PNG of the chart under a symbol / interval /
256
+ ET time line) and **Sign up** when the chart has no plan, or the plan's name once the API returns one. New options
257
+ `account` (`false` hides that button) and `signupUrl`. Plugin controls added with `addControl(el, 'toolbar')` sit after
258
+ the Layers menu.
259
+ - The key levels text under the chart is gone, with the `keyLevels` option, the `data-key-levels` attribute and the
260
+ plugin hook `keyLevels(last, prev, items)`: the legend shows the same levels. Its levels line reads `Spot 7,413.75
261
+ (−147.03) Call wall 8,000.00 Put wall 7,000.00 Gamma flip 7,588.40 (−42.98)`, the change against the previous session.
262
+ `legendLevels(row, parts, prev)` takes `{ label, value, prev, plot }` parts besides text.
263
+ - More history as you drag, like TradingView: at the left edge the chart loads the window before the first bar (as long as
264
+ the range, up to `MAX_DAYS`; until `first_bar`), at the right edge the bars after the newest one when it is old. The
265
+ refresh loads only that tail. Windows are merged: plugins' `draw(response)` gets rows with a `ts` merged by time.
266
+ - **Indicators** instead of Layers, like TradingView: the menu ("ƒx Indicators") lists indicators, named groups of layers
267
+ (plugin field `indicator`; the core one is `FlashAlpha GEX Max Pain`: Walls & gamma flip, Max pain), each with a switch,
268
+ its layers with the plan each needs after its name (🔒 and an upgrade link above the key's plan) and a **Settings**
269
+ dialog (also from its legend line): Inputs (layers, plugin options from `addControl`) and Style (per plot: visible,
270
+ colour, width, line style; price lines, labels on the price scale, values in the status line), Defaults / Cancel / Ok.
271
+ The legend has a line per indicator. New: plugin `plots`, `ctx.bindPlot`, `ctx.styleOf`, `ctx.level(color, title,
272
+ plotId)`, mount option `styles`, `chart.styles` and `chart.setStyle(id, style)`. Plan limits are unchanged.
273
+ - A new symbol, resolution, range, session or layer set fits its data on both axes: the price scales auto-scale again
274
+ (dragging a price scale turned lightweight-charts' autoScale off, so SPX after SPY was drawn outside the view).
275
+ Refreshes and lazy loads keep the reader's zoom.
276
+ - The level labels on the price scale read like the rest of the chart: `Call wall`, `Put wall`, `Gamma flip`, `Max pain`
277
+ (were `call wall`, `put wall`, `flip`, `max pain`).
278
+ - Embed keys (`fa_pk_…`) are no longer special: no console warning for other keys, no messages for embed-key errors
279
+ (`invalid_embed_key`, `embed_key_expired`, `embed_key_revoked`, `origin_not_allowed` show the general message).
280
+ - Lightweight Charts pinned to **5.3.0** and served from the chart host instead of unpkg: `dist/vendor/` gets the exact
281
+ devDependency version with its LICENSE and NOTICE; `embed.js`, the demo and the examples load it. `embed.js` uses a
282
+ copy the page already has only when it is the same version; otherwise the charts get the pinned copy and the page keeps
283
+ its own `window.LightweightCharts`. `test/lightweight-charts.test.js` checks every pin and mounts the chart on the
284
+ real library.
285
+ - Docs: [layer plugins](docs/plugins.md). Tests with `node:test` and jsdom; `npm run check` before publishing.
286
+
287
+ ## 0.3.3 — 2026-11-16
288
+
289
+ - The brand logo sits at the bottom left of the price pane, where the TradingView logo was.
290
+ - Plugin settings (`ctx.addControl(el)`) go into the Layers panel as captioned fields; `addControl(el, 'toolbar')` keeps one in the toolbar.
291
+ - Select lists use the theme colours.
292
+
293
+ ## 0.3.2 — 2026-11-16
294
+
295
+ - More than 8 symbols show as one select instead of a strip of buttons.
296
+ - The data window is rounded to the minute, so readers of one page ask the same query (cache-friendly).
297
+
298
+ ## 0.3.1 — 2026-11-16
299
+
300
+ - `note`: a line under the chart saying the levels are model estimates (default on; `''` hides it).
301
+ - The Upgrade box says what the plan adds.
302
+
303
+ ## 0.3.0 — 2026-11-13
304
+
305
+ - Embed keys: `FlashAlphaChart.setLicenseKey('fa_pk_…')` or `data-key` on the embed `<script>` tag; a console warning when
306
+ a page uses a secret API key.
307
+ - Plans: the API's `plan` locks layers above it in the Layers menu with an upgrade link (`upgradeUrl`), and an Upgrade box
308
+ names picked layers the plan doesn't include. Layer plugins declare `plans: { id: 'growth' }`.
309
+ - Themes: `theme: 'dark' | 'light' | 'auto'`, `setTheme()`.
310
+ - Levels drawn as step lines through the day.
311
+ - Mobile: session and plugin controls move into the Layers menu below 560 px; larger buttons; key levels in two columns;
312
+ level labels without titles below 480 px.
313
+ - API errors shown in words; load status only with `debug: true`.
314
+ - The brand logo sits under the chart next to the "Charts by TradingView" link.
315
+ - Requests time out after 20 s; a chart whose element leaves the page stops refreshing.
316
+ - `embed.js`: default `5m` over 5 days, `data-range` accepts `1D 5D 1M 6M 1Y`, `data-theme`, `data-upgrade-url`,
317
+ Lightweight Charts pinned by an SRI hash.
318
+ - Docs: [chart API reference](docs/api.md); gallery images also as WebP (about 4x smaller).
319
+
320
+ ## 0.1.0 — 2026-11-11
321
+
322
+ First public release: candlestick chart with call wall, put wall, gamma flip and max pain, key levels text, layer plugins,
323
+ custom data sources, one-line embed.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 FlashAlpha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.