Catatan rilis ditulis dalam bahasa Inggris.

Changelog

Unreleased

Fixed

  • A paper account fills a market order at the quote (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a buy at the ask and a sell at the bid, as the chart's buttons and the order ticket show it, where it filled at the last trade; a position closed or reversed by hand at the side that takes it out. PaperExecutionAdapter.setQuote({ bid, ask }, symbol?) gives it the quote, and a chart tells the account connected to it the quote it shows (ExecutionAdapter.setQuote, optional), taking it back when another symbol is shown, when its stream is disconnected and during a replay. Without a quote, a market order fills at the last price, as before.
  • An indicator’s labels, boxes and fills drawn once (@tradecanvas/core): an indicator that paints the bars (a barColor plot) drew its own drawings twice a frame, once under the other indicators’ lines, so a translucent fill came out darker.
  • The newest bars stay in view when the plot changes width (@tradecanvas/core, @tradecanvas/chart): with the newest bar on view, as after setVisibleRange up to it, a panel opened beside the chart, a window made smaller or larger, or a price scale grown wider keeps the plot’s right edge; before, it kept the left edge and pushed the newest bars off. A view of older bars keeps its left edge, as before.
  • Ichimoku’s cloud ahead in output.ahead (@tradecanvas/core): the cloud past the latest bar is in the output’s ahead, from the bar after the last, as any indicator’s, so code that reads ahead gets it. meta.ahead and meta.aheadFrom still hold it in 3.x.
  • An indicator’s labels clear of the price legend (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a label the legend would cover, in a small chart or above a high at the top-left, goes to its point’s other side, else beside it, else (the legend over the point itself) under the legend, as an indicator’s tables keep clear of the legend. Labels moved under the legend, of any indicator, sit one under another. A plugin that draws its own render is told those boxes as context.keepOut, and the labels moved under them as context.labelsUnder.

3.6.0 (2026-12-02)

Added

  • ChartWidget.preload() (@tradecanvas/chart): loads now the code of the dialogs and panels that otherwise load the first time they open, for a page that opens one from code as it starts.
  • chart.whenIndicatorsReady() and Chart.preloadIndicators(ids?) (@tradecanvas/chart): resolve at once in 3.x, where a chart has every built-in indicator's code. From 4.0 a chart will load each built-in's code the first time one is added: awaiting whenIndicatorsReady() before reading values keeps the read right. In @tradecanvas/core, for an engine of your own: registerBuiltInIndicatorsOnDemand, preloadBuiltInIndicators and IndicatorEngine.whenPluginsLoaded().

Changed

  • @tradecanvas/core a file per module (@tradecanvas/core): published as its modules, so that a bundler leaves out more of what a page never uses; served without one, a page asks for each file.
  • A lighter first load (@tradecanvas/chart): the widget's stylesheet comes written short, and the dock's alerts, objects, symbol info, tape and depth ladder, the order ticket and the account panel load their code the first time they open, as the larger dialogs do, or once the page is idle. new ChartWidget() brings in 458 kB gzipped where it was 504.

3.5.0 (2026-12-01)

Added

  • Tables drawn by an indicator (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): an output's drawings may hold tables ({ kind: 'table', position: 'top-right', columns, rows, cells }) in a place of the pane, over every indicator's lines, clear of the legend and of one another, and made smaller (to half at the least) where the pane has no room.
  • Lines through many points, and the space between two lines (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): kind: 'polyline' (curved, closed, filled) and kind: 'lineFill'.
  • Words of an indicator's shapes (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): several lines (\n), a label to the left or right of its point, and a box's text of a size and in a place asked (textSize, align, verticalAlign). A box is carried on to the pane's edge with extend.
  • The same in a script (@tradecanvas/script): table(), polyline() and fill() of drawings().

3.4.0 (2026-12-01)

Added

  • Alerts asked for by name (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): chart.createAlert({ on, condition, value, with, trigger, expiresAt, message }) sets one on the price, an indicator's line or a moment it says, against a value, another line or a drawing; chart.updateAlert(id, patch) changes it, and says why when a request does not fit together. trigger is how often it fires: once, once per bar, once per bar close, or every time (AlertOptions.trigger, also on addAlert and addDrawingAlert). An indicator's line can cross a drawing, in the price pane or in its own. alertTriggered also says the value it fired at, the bar's time, the symbol and the interval.
  • Alerts opened on an indicator or a drawing (@tradecanvas/chart): Add alert in an indicator's menu, a drawing's menu and its toolbar opens the alerts panel on its form, filled for it (widget.openAlertForm(request) from code). The form has how often an alert fires, and the drawings to compare with.
  • Values past the last bar (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): an indicator's output may hold its values at the bars after the last one (IndicatorOutput.ahead), drawn in the empty slots there and counted on the scale.
  • Words by an indicator's marks (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a markers plot's text and textColor, and four shapes: 'cross', 'xCross', and 'labelUp' and 'labelDown', bubbles that hold the words. The shapes are in the indicator settings too.
  • The chart's symbol, told to indicators (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): config.symbol, its ticker, smallest step, currency and what else is known, from setSymbolInfo, the stream and setMarket. An indicator whose descriptor says readsSymbol: true is computed again when it changes.
  • Scripts drawn some bars on or back (@tradecanvas/script): offset and last on plot, shape and bgcolor. Marks take text, textColor and a colour a bar (mark.set(true, color)). A script reads chart.symbol, chart.dayStart and bar.lastIndex.
  • A higher interval read as it closes (@tradecanvas/script): request.security(interval, setup, { atClose: true }) gives its value on the chart's bar that closes it, and the value may be more than a number.

3.3.0 (2026-12-01)

Added

  • chart.replaceIndicator(plugin) (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a new version of an indicator in the place of the old, in every instance, as one edited and run again. The instance keeps its id, pane, size, order, style, levels, visibility and the inputs the new version takes; alerts on its lines and indicators that read them follow each line by its title; one drawn elsewhere now moves there. An output that comes later (IndicatorOutput.pending) takes the place once it is in, and the old one is computed and drawn till then. indicatorChange says 'plugin', with the lines gone in lostLines.
  • Scripts made of a source in a worker (@tradecanvas/script): serveScripts([], { resolve }) makes scripts of sources, scriptFromWorker({ id, source, spawn }) has one described there and gives its indicator, and scriptFromWorkerNow gives it at once with the descriptor kept from before. Nothing of such a script runs on the page. errorAtLine says which line of the source an error stopped on (ScriptError.line, ScriptSourceError.line).

Changed

  • serveScripts(scripts, options) (@tradecanvas/script): its second argument is options; a scope given there goes in options.scope.

Fixed

  • A script in a worker read from a price other than the close, or from another indicator's line (@tradecanvas/script) loaded its bars again after each answer, without end.
  • A script in a worker on Renko and the like, on a busy feed (@tradecanvas/script): each tick sent its bars again before the worker could answer, so nothing was drawn. A load on its way is answered first.
  • A plugin registered over, while an indicator is still drawn by it, stays connected (@tradecanvas/core): its late outputs (connect) were no longer drawn. It is let go once nothing draws it.
  • Indicators on Renko, Kagi and the like stay on the bricks (@tradecanvas/core, @tradecanvas/chart): a change of the exchange's zone or its trading day computed those that may count days on the bars under the bricks, and they stayed there; so did a streamed bar and a correction (updateBar) until the next frame, which an alert on a line or getIndicatorOutput could read in between.
  • Values read right after a change of zone or interval (@tradecanvas/core, @tradecanvas/chart): with the indicator worker on and enough bars, getIndicatorOutput gave the values from before the change until the worker answered; it waits for none now, as after any other change.

3.2.0 (2026-11-30)

Added

  • Indicators written bar by bar (@tradecanvas/script, its first releases, 0.1.x): defineScript with ta sums and state kept from bar to bar, the live bar run again on each tick, drawn as an ordinary indicator through scriptIndicator, in the page or in a worker. It is versioned apart from the chart.
  • The chart's interval, told to indicators (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): config.interval, beside the exchange's zone. An indicator whose descriptor says readsInterval: true is computed again when it changes. A script reads both from chart in setup (@tradecanvas/script).

Fixed

  • A script's live bar runs as a closed bar when it closes (@tradecanvas/script): a script that reads bar.live ends the same on a live feed as on loading the bars. The closing bar costs one more run.

3.1.0 (2026-11-30)

Added

  • Indicators whose outputs come later (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): an IndicatorPlugin computed somewhere else (a worker, a server) gets connect(host), called once for each chart it is registered with. calculate returns what it has; when the answer is in, host.recompute(config) has the chart calculate that instance again, recompute the indicators reading it, and draw. A config the chart does not hold is passed over, and the function connect returns is called when the chart is destroyed or another plugin takes the id. release(config) is called when an instance is removed or its chart destroyed, for a plugin that keeps something an instance.
  • levelLooks on an indicator's descriptor: a colour, a dash and a name for some of its levels, by price ({ price: 70, color: '#ef4444', lineStyle: 'solid' }). Such a level is drawn whole in its colour; the others stay faint and dashed in the axis colour, and a level the viewer moved off its price goes back to plain.
  • periodKeyer (@tradecanvas/core): the keyer that cuts bars into the periods of a higher interval (days and longer on the exchange's clock, from its trading day's start), as the MTF moving average does, for indicators of your own.
  • Area plots and bars painted by an indicator (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): kind: 'area' draws a line with the space down to zero shaded under it (its opacity, 0.2 unless set); kind: 'barColor' paints the price bars it has a value at in its colour, one a bar with colorBy or paletteBy, over the candles or OHLC bars the chart draws, in the same device pixels, right after them and under every indicator's lines (a pass of its own, IndicatorLayer 'bars'). On another chart type (hollow candles among them), from the left scale or a pane, and zoomed out below a pixel a bar, the bars stay as they are. An area's shade reaches zero, or the pane's edge nearer it, and breaks where its line breaks. The render context of an indicator on the prices carries barShape, and barShapeOf(chartType) gives it (#425).
  • A button to the latest bar (@tradecanvas/chart): the widget's navigation over the chart has "Go to the latest bar" after the scroll buttons, back to the newest bars in one press with the zoom kept (#515). It goes with the scroll buttons' switch, navigation.scroll.
  • Alerts on the moments an indicator says (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a descriptor's alertConditions names output fields that are 1 on the bars a condition holds and 0 on the others, each with a title and a message. The widget's alert form lists each as "<name>: <title>", with nothing to compare or type, and an alert on it fires as the condition turns true, with the condition's message unless the viewer writes one. Such an alert carries whenTrue (an AlertOptions field, kept in a saved layout), so it reads as the condition's name even once its indicator is gone. defineIndicator takes alertConditions and true on those bars.
  • Labels, lines and boxes an indicator draws by itself (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): an output's drawings (IndicatorDrawing: kind: 'label' | 'line' | 'box', at { bar, value } points) are drawn over its plots, on its scale. A label is a bubble pointing at its point (or text alone); a line can be carried on to the pane's edge; a box can be filled and hold text. They are the indicator's, not the viewer's: no layout saves them and nothing picks them. A label near the pane's top or bottom turns to the other side of its point, and one at a side stays inside the pane, its pointer on its point; they fade with the indicator's opacity; a shape that lacks a point is passed over. With the WebGL renderer, an indicator whose shapes write text is drawn with Canvas 2D, as other text is.
  • An indicator's plots and fills coloured bar by bar (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a plot's or a fill's colorBy names an output field that holds, at each bar, the index into the style's colours to draw in there; paletteBy names one that indexes the output's own palette, for colours known only as it runs. A line's stretch between two bars takes the colour of the bar it ends on; the legend and the axis tag show the colour of their bar.
  • Background plots (kind: 'background'): the pane's whole height behind each bar with a value, drawn behind the candles on the price pane and behind the levels in a pane of its own. Its colour is shaded at the plot's opacity, 0.1 by default (a colour see-through of its own keeps its alpha, times that). A plugin with background plots that draws its own render passes the render context's layer on to super.render.
  • Marks at the top or the bottom of a pane (position: 'top', 'bottom'), in any pane; defineIndicator takes true for them in a pane of its own too.
  • fadeBy(color, strength): a colour see-through of its own keeps its alpha, times the strength.

Changed

  • A fill in a colour see-through of its own (#rrggbbaa) keeps that alpha, times the fill's opacity; it was set to the opacity alone.

Fixed

  • BybitAdapter streams the category it is given (@tradecanvas/core): with category: 'linear' or 'inverse' it opened the spot stream, so a perpetual's bars never came; it now opens wss://stream.bybit.com/v5/public/&lt;category&gt; unless wsBase says otherwise (#514).
  • The toolbar's menus open over the order ticket in the dock (@tradecanvas/chart): the ticket kept a dialog's place in the stack there, so the Trade menu, opened with the ticket shown, went under it (#510).

3.0.0 (2026-11-25)

Breaking

  • The widget's order ticket opens in the dock, beside the chart (@tradecanvas/chart): it was a dialog over the

chart. ticketPlace: 'dialog' keeps the dialog; a phone, and a widget with the dock off, have it as before.

'orderTicket' is one more WidgetPanel, which a page of your own cannot take as its id.

  • A confirmed bracket goes to the execution adapter (@tradecanvas/chart): with an adapter connected, brackets is now 'place' when left out, where it was 'event' with a warning in the console. An app that places the bracketPlace event's bracket itself connects with { brackets: 'event' }. The docs' *Moving to 3.0* page has each case.
  • The paper account fills a stop-limit within its limit (@tradecanvas/core): PaperExecutionAdapter made a stopLimit order a position at its stop. It now becomes a limit order at its price once the stop is reached, and fills only within it.
  • A price set by hand is on the market's grid (@tradecanvas/core, @tradecanvas/chart): orderModify, positionModify, bracketPlace, the orderPlace of a draft order or of the right-click menu, priceAxisAdd, chartContextMenu and an alert dragged carried the price under the pointer as a pixel gives it (62549.71592675613). They carry it on the market's price step, else to the decimals the price axis shows (chart.roundPrice). Code that rounded them itself can stop. On a market with a ceiling and a floor for the day, an order's own price is also kept inside them: dragged past one, it is reported at it.
  • An order from the ticket waits for the adapter's answer (@tradecanvas/chart): with an execution adapter connected, the order ticket stays open until the adapter's placeOrder resolves or rejects, where it shut as it placed. An adapter whose placeOrder never settles leaves it waiting: resolve with the order, or reject with the reason. With it: every orderPlace payload carries a clientOrderId; a market order from the ticket carries the ask or the bid as its price where the feed gives both; an order from the right-click menu or the depth ladder is for the market's lot, not for 1.
  • Orders, positions and fills are drawn on their own symbol (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): one that names its symbol is drawn only while the chart shows that symbol, and the chart names the symbol it shows on every orderPlace payload, which PaperExecutionAdapter keeps on the order, on its position and on their fills: a position opened on one symbol is no longer drawn on the next. Every fill told has a symbol once the chart shows one, ChartWidget no longer forgets the fills when its symbol changes, and setMarkPrice takes the symbol as a third argument, which the chart gives in a replay. What names no symbol is drawn on every symbol, as before. The docs' *Moving to 3.0* page has each case.
  • A press held on the chart shows the price popup (@tradecanvas/chart): in ChartWidget a mouse press held still on the plot for half a second shows the floating OHLCV tooltip until the button is let go, so a press held that long is no longer a click or the start of a pan (click and barClick are not sent for it). The widget's crosshairTooltip feature is 'hold' where it was false; chartOptions: { features: { crosshairTooltip: false } } has no popup, as before. Chart is not changed.
  • One-press orders wait for a live price (@tradecanvas/chart): with a feed of its own, ChartWidget no longer sends an order asked for in one press (the right-click menu, the depth ladder), nor a bracket or a draft order confirmed, while that feed is not connected; and the ticket sends no market order while it is not connected or has told nothing for a minute (feedQuietAfter).
  • One-press trades are confirmed, and a bid on the ladder is bought at (@tradecanvas/chart): ChartWidget asks before a position is closed or reversed and before an order from the right-click menu or the depth ladder is placed, where they went out in one press; confirmOrders: false keeps one press. On the depth ladder a press on a bid places a buy limit at that price and a press on an ask a sell limit, where a bid was sold into and an ask bought: orderPlace carries the other side from the same cell.
  • The widget's default look is Graphite. A ChartWidget with no ui is drawn in neutral grounds with 3 px

corners and a 40 px toolbar, and what is picked shows on a lighter ground, not on amber; the chart's colours

change with it unless theme is an object. ui: 'modern' keeps the look before it. The order ticket's button

names the order ("Buy 100 HPG") and a position's Reverse and Close buttons come right after its P&L: a test that

read the button's text or a column by its place needs the new one.

  • Vietnamese shares are worth their price in dong. MARKET_HOSE, MARKET_HOSE_ETF, MARKET_HNX and

MARKET_UPCOM have a contractMultiplier of 1,000, their prices being in thousands: an order's value, a

position's profit and the amounts on the chart's tags read a thousand times what they did (100 shares at 26.40

are 2,640,000). scaleMarketPrices divides the multiplier by its factor. Stop multiplying by 1,000 yourself.

  • Money is counted by the market's multiplier wherever the chart counts it, as the account panel and the

ticket did: the amounts on the chart's tags (a VN30F position's tag reads in money, not in points), the

quantity a Long or Short Position drawing's risk buys, a bracket sized by risk, and a PaperExecutionAdapter

given no multiplier of its own, which takes the market's from the chart (ExecutionAdapter.setMultiplier,

optional). positionLevels(drawing, multiplier) takes the market's as its second argument. A position

keeps the multiplier it opened with (TradingPosition.multiplier): a chart shown another market or another

symbol revalues nothing that is open. An adapter is handed the multiplier of the chart an order comes from beside

the order (placeOrder(intent, context), OrderContext); the order itself has nothing added.

  • TimeInForce has three more members (@tradecanvas/commons): 'gtd', 'ioc' and 'fok'. Code that handles every member needs them.
  • FillReason and ExecutionEventType have one more member each (@tradecanvas/commons): 'liquidation' and 'marginCall'. Code that handles every member needs them.

Chart

  • The day lines start where the trading day does (@tradecanvas/core, @tradecanvas/chart): on a symbol whose session runs past midnight, the chart's dashed day lines fell at midnight while Session VWAP, the session volume profile and the prior-day lines started again at the session's open (17:00 for CME's). While the chart shows the exchange's time (setTimeZone('exchange'), or the exchange's zone by name) they now fall at the open too, a week's line on Sunday evening's; on another clock they stay at its midnight. SessionBreaks.setDayStart sets it.
  • A switch is no number in an indicator's name (@tradecanvas/chart): the legend, the chips, the Objects panel and the CSV columns named an indicator by its short name and its numbers, an on/off input among them as a bare 0 or 1 ("OB 5 0 5", "FVG 0 0", "Vol Δ 1"). An input that is a whole number from 0 to 1 is now left out at its default and named away from it, on ("OB 5 5 Broken", "Vol Δ Cumulative") or off ("Patterns 10 Reversal off"), so two instances still read apart. The widget writes these words in its 30 languages (indicatorSwitch.* messages). indicatorChipLabel takes the indicator's inputs as a fifth argument for it, and the words as a sixth (English unless given); without the inputs it reads as before. Volume Delta's mode is labelled Cumulative.
  • One value area everywhere (@tradecanvas/core, @tradecanvas/chart): the chart's market profile (setMarketProfileVisible, its TPO counts) and the range volume profile drawing (volumeProfileRange) grew their value area a row at a time toward the heavier neighbour; they now grow it two rows at a time toward the heavier pair, as Market Profile counts it and as the session volume profile (svp) does. On some ranges the value area's edges move, and it can hold a little more than its share.
  • A trading day that starts in the evening (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a symbol whose session runs past midnight (SymbolInfo.sessions with { start: '17:00', end: '16:00' }, CME's in Chicago) starts its trading day at the session's open. The indicators that start again each day, week or month (Session VWAP, VWAP's and Volume Delta's anchor, the session volume profile, the MTF moving average's days), the prior-day lines and the market profile's days ran from midnight and cut such a session in two; they now run from 17:00 to 17:00, each day named by the date it ends on. Sessions inside a day keep midnight, as before. Indicators read it as config.sessionStart (minutes after the exchange's midnight), set by the chart; tradingDayStart(sessions) gives it, and sessionVolumeProfiles takes it as sessionStart. Daily bars, and the days built from trades, keep the zone's midnight.
  • Order blocks (@tradecanvas/core, @tradecanvas/chart): addIndicator('orderblocks') draws a box over the bar the market last turned from before a close broke a swing: the lowest bar between a swing high and the close over it (bullish), or the highest between a swing low and the close under it (bearish), from its high to its low. A swing is a bar higher (lower) than the length bars before it and no lower (no higher) than the length after (5), so it is known length bars late, and it makes one block. A box runs to the right edge while its block stands; a close through it breaks it and takes it off, unless showBroken: 1 keeps it, fainter, to the bar that broke it. Only the latest count standing blocks of each side are drawn (5; 0 for all). The boxes look like fair value gaps', and the two share their drawing. detectOrderBlocks(bars, { length }) gives them all with no chart. A live bar finds again only what it can change. The 138th built-in.
  • A volume profile a day (@tradecanvas/core, @tradecanvas/chart): addIndicator('svp') draws each trading day's volume by price, as rows growing right from the day's first bar, with the day's point of control and value area as lines across it. A day's range is split into rows (24); each bar's volume is shared by the rows its range covers; the value area holds valueArea percent of the day's volume (70), grown from the busiest row two rows at a time toward the heavier pair, as Market Profile counts it. A day starts at midnight on the exchange's clock, as Session VWAP's does. Each bar's poc, vah and val are its whole day's, the bars after it included, so they are for reading a day and not for signals or a backtest at that bar; on the day still trading they move as it trades. A live bar works out again only the day it is in. sessionVolumeProfiles(bars, options) gives the days' rows with no chart. The 137th built-in.
  • Divergences (@tradecanvas/core, @tradecanvas/chart): addIndicator('rsidiv') is the RSI with its divergences from the price: a line between the RSI's two turns where the price made a lower low and the RSI a higher one (bullish), or the price a higher high and the RSI a lower one (bearish), and a mark at the second turn; hidden: 1 adds the hidden ones, dashed. A turn stands out from left bars before it and right after, so a divergence is known right bars late and does not change once the bar that confirms it has closed (while that bar is forming it can come and go); minBars and maxBars say how far apart the two turns may be. detectDivergences(bars, line, options) reads any line with one value a bar (a MACD histogram, an indicator of your own) with no chart. A live bar looks again only at the turns it can still decide. It reads the close, and has no source input as rsi has: its turns are read against the bars' own lows and highs. The 136th built-in.
  • The tape writes its sizes to the decimals the rows listed need (@tradecanvas/chart): it took them from every trade it kept, so one fine print older than the rows on screen, or under the least size, wrote every whole size as "16.00". The decimals are now those of the rows listed, of both sides.
  • Fair value gaps (@tradecanvas/core, @tradecanvas/chart): addIndicator('fvg') draws a box over the prices three bars left traded by the middle one alone (the third bar's low over the first bar's high, or its high under the first bar's low), from the middle bar to the right edge while the gap is open, teal going up and pink going down (the candlestick patterns' colours, apart from the candles' own). A gap is filled by the first later bar that trades through all of it and is then taken off the chart; showFilled: 1 keeps it, fainter, to the bar that filled it, and minPercent leaves out the small ones. detectFairValueGaps(bars, { minPercent }) gives them all with no chart: index, formed, direction, top, bottom and filledAt. A live bar costs what it changes: the gaps it forms and fills, not the series again. It is in the indicators dialog under the patterns, the 135th built-in.
  • A chart of values too near each other to scale no longer takes the page with it (@tradecanvas/core, @tradecanvas/chart): an EquityCurveChart whose curve and benchmark were flat at nearly the same value (a run with no trade beside a market that never moved, the benchmark rescaled to the curve's start, so 100,000 beside 100,000.00000000001) threw "RangeError: Invalid array length" while it drew, after holding the page's thread. The step of its value axis was smaller than such values can be told apart by, and the loop that makes the ticks never ended. A range that narrow is now drawn as one value, with room above and below, in every finance chart that scales its values (niceScale).
  • **In Graphite the accent fills no button and marks nothing picked, and the last price is the one block on the price

axis.** The button that sends in a dialog or a panel (OK, Go to, Add alert, Save), a tick box, a radio, a slider's

thumb and a replay's play button are the text's colour with the ground's for their ink, where they were the

accent's fill; what is on (a menu's row, a tool, a tab of the account panel, a layout, a command) is the text's

colour on the picked ground, with no line of the accent under a tab; the keyboard's ring is the text's colour

(off its fill by the ground's width on a filled button and a slider's thumb), and a field in focus has its

line in the muted text's. A look set to underline what is on (ui.active: 'underline') keeps its line, and an

alert that fired keeps the accent's tint on its row. The accent is left to what is the

user's own on the chart and to a link. On the price axis an order's and a position's tags are outlined where a

theme outlines the values on its axis (valueTagsOutlined, the Graphite themes), as an indicator's value and a

quote are; filled, in every look, they are a shade deeper where no ink would read on their colour. The other looks'

chrome is as it was.

  • Graphite's picked ground lets a muted figure read on it, and two more picked things lose the accent. The dark

theme's picked ground is #2a2c32, where it was #2b2d33: the watchlist's picked row had its muted and

falling figures at 4.48:1, and has them at 4.54:1. The day picked in the calendar is a block in the text's colour,

where it was a block of the accent, and today is told by its line and its weight, not by the accent; the alerts panel's

button for a new alert, its form open, is on the picked ground too.

  • Graphite's smallest type is its small size: nothing to read is 10 px anywhere in the widget. The look's

smallest type token (--tcw-font-size-xs) is 12 px, where it was 10: the status bar, the watchlist's columns and

changes, the tape's and the ladder's heads, the account table's heads, the hotkey sheet, the command palette's

headings, hints and notes. A look that sets its small size writes nothing to read under it, and so does a ui.font.smallSize of

your own in any look (the smallest type is then that size too, where it was two steps under the body); the

other presets are as they were. A character inside a set shape (the letter in a symbol's badge) has a token of its own, --tcw-font-size-glyph, two steps under the body in every

look. In the watchlist the symbol on the chart is a picked row: the picked ground and its name in the strong

weight, the other names plain, with no bar of the accent down its left.

  • Graphite's chart dialogs are drawn by the design file. Every dialog's title is 15 px, where it was 21, and its

Cancel a neutral button with no border. In Indicators, Symbol search, Chart Settings and an indicator's or a

drawing's settings: nothing is 10 px (a group's name, an

indicator's short name and kind, a symbol's type and exchange, a day's change, a hint, a field's error, a colour's code are 12); a heading of a

group or a column is not strong; how many of an indicator are on the chart, in the dialog and beside the

toolbar's Indicators button, is a plain number, where it was a badge in the accent; the symbol on the chart is

marked by a tick in the text's colour, its name no longer in the accent; Template and the button that gives a

colour back to its part have no outline; on a phone the dialogs' tabs are not outlined; a colour's code is in the

figures' face. The other looks are as they were.

  • A limit's price is written once where the last price sits on it in its colour. With lastPrice.limitColors on

and the last price at a limit, the limit's own tag on the price axis gives way to the last price's: they were two

blocks of one colour with one figure, three with the countdown. The limit's line and its name stay, and so does

its tag where the price has gone through the limit far enough for the two to stand apart.

  • A day's limit tags are tags as the axis's others are, and the last price can take a limit's colour. A limit's

tag on the price axis is 16 px tall with its figure in the theme's small size, where it was 14 px with a figure a

size under, and is filled a shade deeper where no ink would read on a colour a host gave (the rule the last

price's, a quote's and an indicator's value's tags have); the theme's own ink is kept wherever it reads. A new

style key, lastPrice.limitColors, off unless you set it, with a switch in Chart Settings: the last price's line

and tag are the ceiling's colour at or over the ceiling, the floor's at or under the floor and the reference's at

the reference price, for a market whose boards colour prices so. The chart writes nothing under 10 px (a limit's

name, a signal's word and a trade zone's label were 9 px where the theme's small size is 11), the market

profile's rows grow with their type, and the time zone at the time axis's corner is the theme's quieter text at

full strength, where it was faded to under 4:1.

  • **The last price, a quote and an indicator's value read on their tags, the quotes are outlined in Graphite, and the

chart's small type follows the theme.** A tag's fill is deepened, its hue kept, where the ink it takes would not read on it at 4.5:1: a

light chart's last price was white on its candle's green at 4.06:1 (the candle keeps its colour, the tag and the

countdown under it are a shade deeper), and the same goes for the bid's and ask's tags and an indicator's filled

value. A look's own lastPrice.labelBackground is left as it is. Where a theme outlines the values on its axis

(valueTagsOutlined, the Graphite themes; axis.price.valueTagsOutlined), the bid's, the ask's, the high's and

the low's tags are outlined too, so the last price is the one block of colour among them. The type the chart had

at 11, 10 and 9 px in every theme (the day's limit tags and their names, a pane's title, alert, signal and

trade-zone labels, period levels, pivots, the market profile's figures, the measure tool) is the theme's small

size and one and two steps under it: unchanged in a theme whose small size is 11, a size up in Graphite, and

grown with a widget on a wide screen as far as its box holds it (a tag 14 px tall keeps 11 px type). A rise's and a fall's figures on the card beside the crosshair and on a

pinned bar's card are taken toward the chart's text until they read at 4.5:1 on its ground; the pinned card's

move is at full strength, and the card takes a new look's colours when the look changes while it is pinned.

Fixed: the crosshair's percentage (crosshair.labelChange) was still written with the last price switched off

by lastPrice.visible.

  • The crosshair says how far its price is from the last, and the chart's cards are set as the chart is. Under

the price the crosshair names on the price axis, Graphite writes that price's distance from the last one in

percent (+1.25%, in the chart's locale): the crosshair.labelChange style key, with its switch in Chart

Settings, on in the Graphite themes (a theme's own crosshairChange) and off in the others. None is written

with no last price, with the last price hidden, or on a percent or indexed scale; the tag stays on the plot by

its top and bottom, and the price axis is given room for a change of two figures (a wider one is cut at the tag). The card

beside the crosshair and a pinned bar's card are in the theme's small size and face throughout: the first had

five sizes from 10 to 11.5 px in every theme, the second a system face of its own at 11 and 9 px, its

"pinned" in small capitals and its rule in the move's colour (now "Pinned", and the chart's own line). In Graphite

both are a menu's: the raised ground, the one corner and shadow, nothing seen through, the change a plain

figure in its colour. A widget's look sets these through --tcw-chart-card-*; a chart with no widget keeps

the theme's.

  • A price reads on its own tag, and the last price is the one block of colour on Graphite's axis. The

ink on a filled tag (the last price, the countdown, an indicator's value, a mark) is now the dark or the light

one by which has the more contrast on the fill, in every theme: white on a candle's green was 2.3:1 and on its

red 3.1:1, and is now dark ink at 8.2:1 and 6:1; a deep fill keeps white. In Graphite an indicator's value

tags on the price axis are outlined, not filled (a theme's own valueTagsOutlined, which the

axis.price.valueTagsOutlined style key and its switch in Chart Settings are over; a theme object of yours

that sets none keeps them filled), so the last price is not

one of five blocks; a value's figure is its line's colour, deepened toward the chart's text where it would

not read at 4.5:1 on the ground (it was written in the scale's grey, or left pale). Graphite's chart is set in the chrome's small size: its axes, tags and the prices in the

legend are 12 px, where they were 11 beside 12 px rows of indicators (GRAPHITE_DARK_THEME and

GRAPHITE_LIGHT_THEME have font.sizeSmall: 12; the legend takes the look's font.smallSize). The other

themes keep their sizes and their filled tags.

  • Graphite by a design file. DESIGN.md at the repository's root says how the default look is drawn and

why, in the DESIGN.md format: its tokens, its components and

what not to do. Brought to it in this change: a field in focus says so on its own line, with no ring or glow

around it (number and text fields, selects, the stepper); the account panel's totals are a muted name and its

figure with no colon between, the open profit first and strong; a tab's count is a plain number; New order is

a neutral button with no border; the ticket's line over the order's value is solid; the day's limits stand by

the price they set; and a time in force or an order type with one choice reads as text. In every look a

total is now three parts for CSS of your own (tcw-account-total-name, -sep, -figure), reading as before,

and the open profit carries tcw-account-open. The other looks are drawn as they were.

  • A position is counted at the adapter's own price for it. Where an adapter gives a position its

markPrice, the account panel's row (its Price and its P&L) and the chart's tag on the position count at it,

for a position of the chart's own symbol too: a row was counted at the chart's last price under a total the

broker had counted at its mark, and the two disagreed (+120.00 in the row, +300.00 as Open P&L). An adapter

that gave a position of the chart's symbol a markPrice and did not keep it current now shows that price:

say the positions again as the mark moves, or leave it out. With none, as before, the chart's latest price.

The band from a position's entry still reaches the chart's price, in the colour of the profit as the tag

counts it, and a positionLabel of your own is given the mark as its price. A markPrice of 0 is taken for

none; one under zero is a price. positionMark(position) (@tradecanvas/commons) is the price read that way.

  • Graphite's chrome in two type sizes and fewer rules. Figures in the account panel's table, a field's

name, a segment, the quote buttons and the bars under the chart are 12 px, where they were 11 and 10; a look's

small size is its own now (ui.font.smallSize, 10 to 20; left out, the step under size as before, so the other

looks are unchanged). The strong weight is kept for what is read first and what is picked: a column's

heading, a side in a row, the quote buttons' names, the range buttons and the ticket's side that is not

picked are in the plain weight. The order ticket has no rules between its rows, its day's limits are

figures to press with no box around each, and its button that sends is as wide as the ticket leaves it. The

toolbar draws a rule only between its groups (three, where there were six), the drawing tools stand at one

pitch with no divider between their sections, and a tool group's corner mark shows under the pointer, on focus

and while its menu is open (always where there is a touch screen). A theme of yours that sets font.size

over Graphite keeps the small size on the scale under it, as before. The other looks are as they were; their dividers inside

a group carry tcw-toolbar-sep--minor and tcw-sidebar-divider--section for CSS of your own.

  • Graphite's ticket and account panel, on its sizes and with fills of their own. The ticket's title is the

size of the order's value, its sides and fields are 36 px, its segments 28 and its buttons 40; it opens with

the quantity focused. Buy and Sell are deeper fills with white type (4.5:1 or more) and no border, as are the

quotes on the chart under the pointer. A position's row reads Entry, Price, SL, TP, then P&L with its buttons

after it; rows are 28 px and the panel is as tall as its rows, up to its height before.

  • The Graphite look (ui: 'graphite', the default): a trading desk's chrome with no hue of its own, dark and

light, on few tokens: controls 20, 24, 28, 36 or 40 px tall, one corner of 3 px, one shadow for what floats.

Chart themes to match are exported (GRAPHITE_DARK_THEME, GRAPHITE_LIGHT_THEME). In it switches are boxes

that are ticked and the account table's columns are as wide as their figures. In every look the order ticket

writes the order's value last and largest, over a button that names the order.

  • The broker's order rules (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): the widget's order ticket offered Market, Limit, Stop and Stop-limit, good till cancelled, on every market; an exchange takes kinds of its own (HOSE: LO, ATO, ATC, MP, for the day), and what a broker takes changes with the board and the session. orderRules, and widget.setOrderRules as the symbol or the session changes, give the kinds of order by the exchange's names, each with the kind the chart knows it as, the times in force taken (a kind may have its own) and the lot, which stand over the market's preset; an open ticket takes them at once and stays on its kind where it is still taken. The exchange's name goes with the order as exchangeType on the orderPlace payload, which PaperExecutionAdapter keeps on the order; it trades it as its type, and simulates no auction. An order from the right-click menu or the depth ladder goes out as the broker's kind of its type, or not at all where it has none; a bracket, a draft order and a close or a reverse are not named by the rules.
  • Colours of their own for the market profile and the liquidity heatmap, and the profile's figures clear of the legend (@tradecanvas/core, @tradecanvas/chart): both layers drew in the theme's rising and falling candles, so a chart that hid its candles to draw bars of its own lost the heatmap and the profile's value area with them. setDepthHeatmapConfig({ bidColor, askColor }) and setMarketProfileConfig({ valueAreaColor, color }) give them colours of their own; null, or none given, is the theme's as before, and getDepthHeatmapConfig and getMarketProfileConfig say what is set. The profile's POC, VAH and VAL were written in the plot's top corner, over the legend's lines: they are now written under the legend, and under the rows the widget stacks beneath it.
  • The day's limits as the broker gives them, and in the ticket (@tradecanvas/commons, @tradecanvas/chart): the ceiling and the floor were always the market's percentage of a reference price, which a special band or a stock's first session on another exchange is not. chart.setPriceLimits({ ceiling, floor, reference }) takes the three as they are for the symbol; a number is still the reference alone, with the percentages. The lines, the prices an order's line stops at and the ticket's checks follow what is given. The widget's order ticket, which knew the limits and showed neither until a price was refused for being past them, now shows the ceiling, the reference and the floor over its price: a press on one sets the price, and priceLimitOrder puts them in the order of a broker's board.
  • A trade is confirmed before it is made in one press (@tradecanvas/chart): Close and Reverse in the account panel, the same buttons on a position's line, a right-click "Buy limit" and a cell of the depth ladder each traded at once, with nothing asked. ChartWidget now asks first, in a dialog that says the trade in full (the side, the quantity, the price, the symbol): Enter does it, Escape and a press outside leave it undone, and an order is not sent if the feed went down while it asked. confirmOrders: false is one-click trading. chart.setPositionGuard is what holds a press on a position's button until it is confirmed, for a guard of your own on a headless chart. On the depth ladder a press on a bid now places a buy limit at that price, joining the bids there, and a press on an ask a sell limit (a bid was sold into, which only the cell's hidden label said); each cell says what a press places, with the quantity, before it is pressed.
  • A price that is no longer live (@tradecanvas/chart): the status bar said "Live" over a stream that had stalled two minutes before, and with the feed failed an order still went out at the price left standing. The widget now knows the price is live only while its feed is connected and telling: chart.getFeedTime() is when the stream last told anything, and a feed quiet for longer than feedQuietAfter (seconds, 60; 0 never) or not connected leaves it not live. The status bar then says "No price updates" in place of "Live", with a still dot; and the ticket sends no market order and warns on a limit or a stop, whose price is the trader's own. While the feed is not connected, an order asked for in one press, from the right-click menu or the depth ladder, and a bracket or a draft order confirmed on the chart are held back too, with a note that says why (chart.setOrderGate asks before those two are sent). Closing a position and cancelling an order are not held back. A market that is shut is not judged, nor are a replay or bars set by hand.
  • An account of more than one symbol (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a long opened on BTCUSDT stayed on the chart when the symbol became ETHUSDT, its profit counted from ETH's price, and the paper account filled, stopped and valued it at that price. TradingOrder, TradingPosition, FillEvent and OrderPlaceIntent now have a symbol. The chart draws the orders, positions and fills of the symbol it shows (chart.getSymbol(); chart.setSymbol(symbol) says it for bars set by hand) and keeps the others, which getOrders(), getPositions() and getFills() still give and which are drawn again when their symbol is shown; what names no symbol is drawn on every symbol, the chart never guessing whose it is. A symbol is the same in any case of letters, and by its ticker where one name alone has a venue (BTCUSDT is BINANCE:BTCUSDT; sameSymbol in @tradecanvas/commons). An order the chart asks for names the symbol shown, a confirmed bracket's too, and a position is reversed on its own. PaperExecutionAdapter.setMarkPrice(price, time, symbol) works only that symbol's orders and stops and values each position at its own symbol's price, closing, reversing and stopping it out there; a net account keeps one position a symbol. The widget's account panel names each row's symbol once one is of another, and gives a position of another symbol the adapter's own price (markPrice on the position) or none; the depth ladder marks the orders of its own symbol; and the fill history and the realised profit stay when the symbol changes.
  • The price popup on a press held (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): features.crosshairTooltip takes 'hold' beside true and false. The floating OHLCV tooltip then shows only while a mouse press is held still on the plot: after half a second, the wait of a finger's long press, it shows for the bar under the pointer, follows the pointer from bar to bar, and goes when the button is let go. The chart does not pan meanwhile, the press is no click, and a pointer that only hovers shows no popup. A press that moves before the wait is over pans as before, and one that an order's line, a drawing, an axis or the "+" took is theirs. ChartWidget starts on 'hold' (it had no popup under the mouse, only the Alt-click pin); Chart keeps true, the popup under a pointer that hovers.
  • An order is valued at the price it trades at, sent once, and answered for (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): the order ticket valued, checked and sent a market Buy at the last price while its button showed the ask. Where the feed gives a bid and an ask it now trades a Buy at the ask and a Sell at the bid, in its sums, its checks (a limit against a stop, a stop-loss against the entry) and the price it sends; else at the last price, as before. Every order asked for goes out with a clientOrderId (its own, else one the chart gives it: from the ticket, a draft, the menus, a confirmed bracket, a reverse), placeOrderIntent returns the order as sent, the new orderPlaced event says an execution adapter took it, and an executionError of an orderPlace names it by clientOrderId; the paper account takes one order for an id, however often it is sent. With an adapter connected the ticket waits for the answer: it stays open with "Sending…" and nothing to change, so a second press sends nothing; it shuts once the order is taken, and when it is refused it keeps what was typed and says why (it shut as it placed, and the refusal was a note gone in three seconds). After ten seconds with no answer it says so, and waits on; what became of the order is told even when the adapter is taken away before it answers. A quote with its bid over its ask is taken for none. "Order sent" is said once the broker took the order. A press outside the ticket no longer shuts it. An order asked for in one press, from the right-click menu or the depth ladder, is for the market's lot where it has one (it was for 1 on a market that trades in hundreds, and the ladder's had no quantity). A note of something that went wrong stays 8 s, not 3.5. The paper account still fills a market order at its mark, the last price: it knows no spread. See *Moving to 3.0*.
  • The toolbar of a selected drawing keeps to one line, under what opens (@tradecanvas/chart): the toolbar over a selected drawing was a layer above the top bar's, so a menu opened from the bar (intervals, chart type) lay under it and the rows it covered took no press; on a phone it covered the drawing tools' button and the open tools, and with buttons of a finger's size it was wider than the chart. It is now under everything that opens (menus, a tool's menu, the panels, a phone's tools; the pinned tools' bar with it), and its own choices still open over all. On a chart too narrow for its buttons it stays on one line and gives up buttons, first to last: those the drawing's menu holds too (the alert, the lock, the words, the settings, each only while the host leaves its entry in the menu), then the figure beside the line width, then the text's and the fill's colours, which the settings hold. The line's colour, width and style, an order, the menu and delete stay. On a phone it waits at the foot of the plot beside the drawing tools' button, level with it. The audit's scene menuOverSelection holds it.
  • Controls take a finger's press, and a pointer's (@tradecanvas/chart): on a device whose main pointer is coarse (a phone, a tablet at any width) no control of the widget is smaller than 32 px each way, in every look and density. The sizes controls are made at (a control, a small one, a menu's row) are raised to it for everything inside the widget, so buttons, fields, tabs, menu rows, a panel's head and the bar over a selected drawing follow; each row of the indicator legend is 32 px tall, its name's press as tall and 32 px wide at least, and a row a finger opened shows its buttons at 32 px (they were 32 by 28); a pane's buttons take 32 by 32 px of a press (30 by 32) and a pane's legend name 32 px down from its row, their drawing as it was; a row a finger opened takes the room its four buttons need until it is shut, where a long name ("Ichimoku 9 26 52 26", "MACD 12 26 9") left Remove cut off on a phone: over the plot the plot's width, in a pane the pane's, over the pane's buttons; the Sell and Buy buttons, the replay's position, a switch, a colour, the calendar's buttons and a stepper follow by name; the drawing tools and the dock's rail are 32 px at least, in a column wide enough for them, and on a short screen the tools give way no further than that before their column scrolls; and on a narrow widget the bar over a selected drawing, wider than the chart at that size, keeps to one line by giving up buttons (the entry above). Under a mouse nothing is drawn larger, and a control takes 20 px of a press at least: the legend row's buttons (drawn 18 px tall), the button that folds the rows (14), a pane's buttons (18 by 16, now 2 px apart) and a pane's legend names (16; the rows of several indicators in one pane now stand 20 px apart, 17 before, and in a pane too short for them they stand evenly closer where the last ones lay on one line). One control stays smaller, the corner of a drawing tool that opens its menu: larger, it takes the press of the tool itself. pnpm audit:scenes now measures what a press takes of every control it shows, point by point, on a phone, on a tablet under a finger and under a pointer, and fails on one under the least. See *Moving to 3.0*.
  • Orders set by hand keep inside the day's limits (@tradecanvas/core, @tradecanvas/chart): on a market with a ceiling and a floor for the day (setMarket with priceLimits, and setPriceLimits), the order ticket refused a price past them, and the chart let a line be dragged there. An order's line, and a stop-limit's stop, now stops at the ceiling or the floor when dragged past it (a stop-limit dragged with its stop stops where the nearer of the two reaches the limit, the room between them kept); a bracket's entry and a draft order start and stay inside them, and one in hand when the limits come is put inside as it is confirmed; the engine's right-click menu opens for no order past them (the click is still the chart's: an app's own menu may take it, and the browser's does not stand in), and the widget's offers none there (an alert and a line still, and the ticket, which says why); a quick order from the widget's menu or its depth ladder past them is not placed, and the widget says what today's prices are. Limits that are no prices of the market's grid (a per cent of a reference, on a market that gave no price step) hold an order on the grid inside them. A position's stop, target and levels are not held: they are no orders of today's. The widget's menu also tells a limit from a stop against the market on the grid, as the price at the click is. TradingManager.setOrderPriceBounds is how a chart of your own parts tells its tools.
  • Prices set by hand keep to the market's grid (@tradecanvas/core, @tradecanvas/chart): an order, a stop, a target, a take-profit level or a stop-limit's stop dragged on the chart stands on the market's price step as it goes, and is reported there; a bracket and a draft order start on it and are dragged on it; a stop added from its button starts on it; an alert dragged lands on it; the right-click menu places at a price of it, and priceAxisAdd and chartContextMenu give one. The step is the market's (setMarket: HOSE's three bands, a futures contract's tick) or the symbol's minTick; with neither, the decimals the price axis shows. Until now each of these was the pointer's price to a pixel's sum, which the axis wrote rounded and a broker with a tick would refuse. The crosshair writes the price under the pointer on the same grid (its line stays under the pointer), so what it reads is what the “+” beside it places at. What the grid could have broken, it does not: a bracket's stop and target keep a step off its entry, where they start and wherever they are dragged (a bracket with no risk has no size); a stop added from its button stays beyond the entry and the price now; a draft order or a bracket started at the market is still a limit there, though the grid rounds it a step over the price to the digit; and a line let go on the step it was on asks the broker for nothing. TradingManager.setPriceRounding is how a chart of your own parts tells its tools.
  • A stop-limit order, seen, moved and placed (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a stopLimit order showed one line, its limit, and nothing told where it begins to work. Its stop now has a line of its own in the order's colour, in dashes and dots, tagged STOP, with its price on the axis. Dragging the order's line moves both, the room between them kept; dragging the stop's line, or its tag, moves the stop alone. orderModify carries the stop's new price for either (newStopPrice, new and optional on the event and on OrderModifyIntent): an adapter of your own could not know the stop was to move; PaperExecutionAdapter puts it where it is told, and still takes it with the order when not told. The widget's order ticket takes a stop-limit, with a stop price and a limit price (its stop on the side of the market a stop waits on, both on the market's step and inside the day's limits; its stop-loss beyond its stop and its take-profit beyond its limit, since it may fill anywhere between the two), the account panel names it and writes both prices, the stop first, where it called it a stop, and the activity log says it was moved when its stop alone went elsewhere. Four new strings, in the 30 languages.
  • An order that is gone while its line is dragged (@tradecanvas/core): filled or cancelled by the broker during the drag, it was still asked to move when the line was let go (orderModify for an order no longer there). The drag is now called off, as a stop's is when its position goes.
  • An order good till a date, from the ticket (@tradecanvas/chart): the widget's order ticket offers GTD for a limit and a stop order. It asks when the order ends, a date and a time on the chart's own clock, a day from now to start with, and sends it as expireTime. It places no order that would end in the past or at no time, and says why. "Now" is the moment the account trades at: on a replay a paper account trades on, the replay's, which the new chart.getTradingTime() gives. A limit that fills at once or not at all (IOC, FOK) may be priced through the market, which the ticket refused as it does for a limit that waits; its value, its risk, its stop's side and its targets are counted from the market it fills at. One new string, in the 30 languages.
  • What became of an order (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a fill that drops the rest of its order says how much in a new dropped (an immediate-or-cancel order filled in part; PaperExecutionAdapter sets it), the activity log writes that rest as cancelled, and the widget says how much filled. The widget also says when the adapter refused an order, in the adapter's words: until now it said the order was sent and nothing more. A toast now takes the place of the one showing, where two lay one over the other, and a long one goes on a second line where it was cut short (an error lost its reason on a phone). Two new strings, in the 30 languages.
  • No second price beside a line being dragged (@tradecanvas/core, @tradecanvas/chart): while an order's line, a stop, a target, a bracket's line or a draft order is dragged to a price, the crosshair draws no horizontal line and no price on the axis. The line keeps its distance from the pointer, so the two stood a few pixels apart, each with a price. The vertical line and the time stay.
  • What a footprint's bar adds up to (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): under each bar of a footprint chart, what its rows add up to: bought less sold in the colour of its sign, and both together under that. They are written where a bar is wide enough for a number, also under bars too narrow for their rows' numbers, and the price scale leaves them room under the lowest bar. chartTypeOptions.footprint.totals: false writes none; in the widget it is a switch in Chart Settings. A chart drawn with no page (renderPriceChart) has them too. One new string, in the 30 languages.
  • A tape that sorts (@tradecanvas/chart): the tape's header has a menu. It lists one side's trades alone (bought, or sold; the bar over the list still says how the two sides shared them), and makes one row of the trades made together: those of one moment, one price and one side, their sizes added, so a market order that took several resting orders reads as the one trade it was, measured against the least size, and for being large, by what it adds up to. tape: { side: 'buy', group: true } starts it so. What a reader chooses in the panel is kept in the browser (tcw:tape): the side and the grouping, and the least size for the symbol it was typed on, so another symbol starts with its own. Only what was chosen is kept, and it is used over the option it started from; what the reader never chose is still the host's to set. A least size is kept with its symbol's name, for up to a hundred symbols: tape: { persist: false } keeps nothing. Four new strings, in the 30 languages.
  • A logo in a heatmap's cell (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a HeatmapCell may carry a logo, drawn over its name on a white plate where the cell has room; as cells get small the logo goes before the name and the value do. It takes the addresses a symbol's logo does (an https: address, a path on your site, a blob: or a data:image/… URL), is loaded once, and a cell whose logo fails is drawn as one with none (it is asked for again a minute later, when next drawn). A logo from another site is asked for as a picture the page may read (CORS), so the chart can still be saved as a picture; one whose site does not allow it is left out, as is any picture that would leave the canvas unreadable. When the data changes, the logos no cell has are let go. showLogos: false draws none. A heatmap drawn with no page (renderFinanceChart) has no logos. In core: ImageStore, imageAddress(), and renderHeatmap takes the cells' pictures as its last argument.
  • The charts' picture from the grid's bar (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): ChartWidgetGrid has a camera button on its bar. Its menu saves the charts together as an image, copies it, prints it or saves it as a PDF, each named after the symbols shown (charts for more than three). grid.copyScreenshot() is new, beside screenshot(), print() and toPdf(). picture: false leaves the button out; it is hidden as well while a chart's screenshot switch is off (the picture shows every chart), and has no copy entry while copyImage is. A narrow grid, which shows one chart at a time, pictures that chart and names the file after it. Five new strings, in the 30 languages; three new icons (download, printer, file). Fixed with it: in a language written right to left (or with widget.dir: 'rtl'), a grid's bar and its menus are written right to left as its charts are; the bar stayed left to right. A file named after a symbol keeps the symbol's own letters, in a grid's files and in a chart's PDF (삼성전자-5m.pdf, where it was _-5m.pdf): fileNamePart() in core. A menu under a button gives the keyboard back to that button when it shuts, in Safari too, which focuses no pressed button.
  • A tape, and the trades themselves (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): chart.followTrades() follows the trades of the chart's symbol until the function it returns is called: the feed's recent trades, then its live ones, as trades events ({ trades, recent }). The feed is asked once for any number of followers, a footprint chart follows them by itself, and trades given with chart.addTrades() are told the same way. None of the feed's recent trades is told again: not on another timeframe of the symbol, nor after a reconnect, when the ones missed are told though later ones came first; chart.getTrades() gives the trades told lately (up to 2,000) to a listener that comes after them. In the widget, tape: true adds the tape (time and sales) to the dock: the trades newest on top, each with its time, its price and its size, the price in the colour of who took it; a bar over the list says how the rows split between buyers and sellers, a trade ten times the usual size stands out, and trades under a least size can be left out (tape: { minSize }, or typed in the panel). The widget follows the feed's trades only while the tape is open. It opens from its rail button, the command palette or widget.openPanel('tape'); its switches are tape and dock.tape; five new strings, in the 30 languages. MockAdapter tells its bars' trades in whole sizes, and still tells them once it streams: asked for after the stream had started (a tape opened, a footprint chosen later) it gave trades of a price of their own.
  • A footprint chart (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): chartType: 'footprint' draws, by each bar, what traded at every price inside it: what the sellers took at the bid on the left, what the buyers took at the ask on the right (chartTypeOptions.footprint.cells: 'bidAsk', or 'delta' for bought less sold, or 'volume' for both together). A row where one side outdid the other, a row apart, is marked (imbalance: 3 times by default, 0 for none), the row most traded at is outlined, and a slim candle stands by each bar. A chart connected to a feed with trades (fetchTrades and subscribeTrades) asks for them itself while it shows a footprint: its recent trades, then its live ones. A host gives its own with chart.addTrades(trades), or whole rows with chart.setFootprint(bars) (footprintOf(trades, timeframe, rowSize) makes them from trades), reads them with chart.getFootprint(time?) and forgets them with chart.clearFootprint(); footprintStats(levels) adds a bar's rows up and footprintImbalances says where one side outdid the other. Rows are rowSize tall in price ('auto': about a ten-thousandth of the price) and are drawn several to one where they would be too thin to read. Choosing the footprint zooms in to where its numbers read, and its bars may get much wider than candles do; zoomed out, the numbers give way to a bar for each side, then to candles. A trade that does not say its side is told by the trade before it. In the widget it is Footprint in the chart type menu, with its settings in Chart Settings, in the 30 languages. renderPriceChart draws it from footprint. Four style keys colour it: series.footprint.upColor, downColor, wickUpColor and wickDownColor. MockAdapter's trades are now its bars' own (inside each bar, adding up to its volume and its buyVolume), and its live bar counts buyVolume from its ticks.
  • Who took the trades: a true volume delta (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a bar may carry buyVolume, the part of its volume the buyers took, and a trade its side ('buy' when the buyer crossed the spread). barDelta(bar) is bought less sold, or null where the bar does not say. The Volume Delta indicator (voldelta) draws that true delta, and its running sum in mode: 1, from bars that say, and its old estimate from the close for those that do not; a new anchor input ('session', 'week', 'month'; 'all' by default) starts the running sum again with each period. BinanceAdapter fills both in, from the taker buy volume of its bars and from its aggregate trades, and MockAdapter makes them up. The chart carries buyVolume wherever it carries the volume: resampled bars and built timeframes add it up, tick bars and bars aggregated from ticks count it from trades that say their side, a replayed bar has it in step with its volume, and the CSV and JSON exports write it in a column of its own (Buy Volume), which the import reads back. A bar with a part that does not say has none. chart.updateLastBarFromTick takes the trade's side, and a bar whose buyVolume cannot be (more than its volume, or no number) is kept without it.
  • Orders that fill in parts (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): new PaperExecutionAdapter({ fillSize }) fills no more than that of a limit order at one price: a larger one fills a part at each price that reaches its limit and works on for the rest. TradingOrder.filledQuantity says how far an order has got and FillEvent.remaining what a part left working; the parts of one order build one position at the average of their prices, which has the order's stops and levels from its first part (a later part brings them no second time, so a stop moved since stays). Of an 'ioc' order what fills at once fills and the rest is dropped, a 'fok' order larger than the size is refused, and a market order and a stop fill whole. The chart writes what has filled on the order's tag (2/5) and the widget's account panel in its row; an adapter of your own reports parts the same way. quantityText and orderQuantityText (@tradecanvas/commons, and from @tradecanvas/chart) write a quantity as the tags do. On a net account, a fill that adds to the position and brings no levels now keeps of the position's levels only those still a profit from its new average entry.
  • A take-profit level dragged on the chart, and a paper account that calls margin and stops out (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a position's take-profit level is dragged by its line or its tag, as its stop is: the line follows the pointer with where it was left faint behind it, and letting go raises positionModify with all the position's takeProfits, the nearest first. One let go at the entry or past it the losing way goes back. PaperExecutionAdapter takes marginCallLevel and stopOutLevel, as the equity's part of the margin held: under the first it warns once (the adapter's marginCall event, the chart's marginCall, a warning in the widget); under the second it closes positions at the price, the one losing most first, until it is back over the level (fills with reason: 'liquidation'). AccountSummary has marginLevel while positions hold margin, which the widget's account panel writes in its totals.
  • A position's value before expiry, clicks on a box plot and a radar, and 3D charts turned from the keyboard (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): PayoffChart takes a model ({ daysToExpiry, volatility, rate?, dividendYield? }) and draws a second, dashed line: what the legs make or lose with that many days to go, each option priced as a European one by Black-Scholes; a leg's own volatility and daysToExpiry stand in for the model's, the two lines are named over the plot, each beside a stretch of its own line (expiryLabel, model.label), and the pointer reads both. positionValue(legs, price, model, multiplier) and optionPrice(type, spot, strike, terms) are the sums. BoxPlotChart has onBoxClick(group, stats) and RadarChart onAxisClick({ axis, index, values }). SurfaceChart and Bar3DChart are reached with Tab: the arrows turn and tilt them (further with Shift) and Home goes back to their view; a chart that turns is role="application" to a screen reader, which is told the keys and, after each, where the chart is seen from (describeView for your words). One with rotate: false is the picture it was.
  • A picture at a size of its own, and of a whole grid (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): width and height on chart.toCanvas, screenshot, screenshotDataURL, screenshotBlob, copyScreenshot, print and toPdf lay the price chart out again at that size, the bars it has on view on view there (as wide as the size makes them, within what a bar can be), and put the page's layout back: nothing on the page is resized or told. A picture at a size of its own has nothing that follows the pointer on it, nor a canvas a host laid over the chart. (They were a finance chart's only; the price chart kept the size it had.) ChartWidgetGrid has toCanvas, screenshot, screenshotDataURL, screenshotBlob, print and toPdf: the grid's charts as one picture, each in its cell. Viewport.snapshot() and restore() put a viewport back as it was, and ChartLegend.keepSize() a legend's size. A picture held to the most pixels a canvas has could pass it by a few through rounding: it no longer does.
  • The price chart drawn with no page (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core, @tradecanvas/mcp): renderPriceChart(ctx, options, size) draws the price chart on a 2D context of your own, where there is no page: a canvas made in Node (@napi-rs/canvas, skia-canvas) for a picture in an email, a report or a message from a bot, or an OffscreenCanvas in a worker. It is one frame, put together as Chart puts its own together: at the same size it is the picture a chart on a page gives of the same bars after fitContent() (or setVisibleRange(), with visibleRange), with the chart type, volume, both axes, the legend, the last price, a watermark, indicators on the price pane, in panes of their own, in one another's and on the left scale, drawings (on a pane too), and buy and sell marks. options are Chart's where they say how the chart looks (chartType, theme, font, overrides, density, logScale, numberLocale, priceFormat, watermark, features), with data, symbol, timeframe, indicators (as chart.getIndicatorSetup() gives them), drawings (as getDrawings() gives them or addDrawing() takes one), markers, visibleRange, pricePrecision, timeZone, symbolSeries (other symbols' bars, for 'compareSymbol' and the like) and plugins. Node has no Path2D: give your canvas library's as path2D. An option that is wrong throws before anything is drawn, by its name. It has no crosshair, orders, positions, alerts or compare lines. ChartLegend.measure() works out the legend's size without drawing it. The MCP server's list_options and validate_options take renderPriceChart as a target.
  • A chart beside a left price scale keeps its fit when its container reports its size (@tradecanvas/chart): with bars fitted closer than a slot usually gets (fitContent() on a narrow chart, a long series), a size report from the page widened the slots as if the left scale were not there, and the oldest bars went off view for good. The viewport is now given the plot the layout leaves.
  • Pictures at any size, print, PDF, and finance charts with no page (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): chart.screenshot, screenshotDataURL, screenshotBlob and copyScreenshot take options: type ('png', 'jpeg', 'webp') with quality, and pixelRatio or theme, for which the frame is drawn again for the picture and the chart on the page is left as it is; chart.toCanvas gives the canvas. chart.print() opens the print dialog for the chart alone, and chart.toPdf() gives a PDF of one page with the picture kept without loss, both in the light theme and at twice the pixels unless told otherwise. Every finance chart has the same methods, and takes a width and a height for a picture of another size. chartsToPdf makes one PDF of several charts, a page each. renderFinanceChart(ctx, kind, options, size) draws a finance chart on a context of your own with no page: a canvas made in Node, an OffscreenCanvas in a worker. The widget's command palette has Print chart and Save chart as PDF (widget.printChart(), widget.saveChartPdf()).
  • Charts in three dimensions (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core, @tradecanvas/mcp), twenty-two finance charts in all: SurfaceChart draws values over two axes as a sheet in a box (implied volatility by strike and expiry, a profit by price and day), as a shaded surface, a wireframe, or with style: 'slices' a filled line for each y; Bar3DChart stands a column on each value in rows a series deep. A drag turns them (a mouse turns and tilts, a finger turns only, so a page still scrolls), a double click goes back to the view given, and getView, setView, onViewChange and rotate are there for it. depthSurface turns a run of order books into a surface: depth over time. Values are coloured by colorRamp, one hue from near the chart's ground to its strongest by default. Both read out under the pointer, take a click, and are in the MCP server's list_finance_charts.
  • Six more finance charts (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core, @tradecanvas/mcp), twenty in all, for options and portfolios: PayoffChart (what an options position makes or loses at expiry, with its breakevens and the price now; payoffStats and optionPayoff give the numbers), CurveChart (values against a strike or a tenor: a volatility smile, a term structure, a yield curve), BoxPlotChart (quartiles, whiskers and outliers for each group; boxPlotStats), RadarChart (several measures on spokes, a shape a series), SunburstChart (parts inside parts, a ring a level, with a click) and StackedAreaChart (series one on another, or as shares with normalized). Each reads out under the pointer, takes theme, font, locale and ariaLabel, and is in the MCP server's list_finance_charts.
  • Six more chart types (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core), 24 in all: columns (a column up to each close), hlcBars (high, low and close, with no open), stepArea (the step line, filled), spline (a smooth curve through the closes that never goes past a high or low close), dots (a dot at each close) and smoothedHeikinAshi (Heikin-Ashi of prices averaged over chartTypeOptions.smoothedHeikinAshi.period bars first, 10). The widget lists them and sets the length in its settings, in 30 languages.

Trading

  • The order ticket says what the account has free, and in what currency (@tradecanvas/chart): over the order's value the ticket's receipt has a line, Available, with the account's free margin (AccountSummary.freeMargin), read again each time the order or the account changes, and followed by the account's currency where the execution adapter names one (the order's value is in the market's money, and has none). An account that counts no free margin, and a chart with no account, show neither. In the 30 languages. In the dock, the day's ceiling, reference and floor share their row in three equal parts, a name over its price: side by side they wrapped at the dock's width, the floor alone on a second line.
  • The order ticket beside the chart. The widget's ticket is a page of the dock (ticketPlace: 'dock', the

default; openPanel('orderTicket'), its button on the rail): it hides no price, traps no key, is not lost to a

press on the chart, and stays for the next order once one is sent, on the same side, kind, quantity and

price (a market order's is the market's again), without the last one's stop-loss and take-profit. Shut by its

own Cancel, cross or Escape, its page shuts; another panel in its place, it goes with its page and what was

typed in it. An order on its way, and an order half typed when the widget is made too narrow for a dock, go on

as the dialog. Under 641 px, or with no dock, it is the dialog it was.

  • Profit taken in parts (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): takeProfits on an order's intent, an order and a position is a list of levels, each a price and the quantity that closes there; modifyPositionIntent({ positionId, takeProfits }) sets them and null takes them off. The paper account closes a level's part when the price reaches it (a fill each) and takeProfit closes what they leave. The chart draws a line and a tag for each level, the account panel writes the nearest and how many more, and the widget's order ticket reaches a take-profit in one, two or three targets.
  • A log of what happened to the orders (@tradecanvas/chart): chart.getActivityLog() gives each order placed, moved, cancelled or filled, and what was refused with its reason, the latest 200, read from the orders, fills and errors the chart is told. The widget's account panel shows it in a Log tab, in 30 languages. chart.clearActivityLog() empties it.
  • Sell and Buy on the chart (@tradecanvas/chart, @tradecanvas/commons): while an execution adapter is connected, the widget shows Sell and Buy under the chart's legend, each with its price (the bid and the ask with their spread, else the last price); a press opens the order ticket on that side. The tradeButtons switch turns them off. Two new events: executionChange says when an adapter is connected or taken away, and bidAskChange when the bid and the ask marked on the chart change.
  • A paper account with money (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): new PaperExecutionAdapter({ balance, leverage, multiplier, commission }) keeps a balance, holds margin for open positions, charges each fill (commission on the fill), and refuses an order its free margin cannot carry; a waiting order whose money has gone when its price comes is cancelled. chart.getAccount() and the accountChange event give its AccountSummary, and the widget's account panel heads its totals with the balance, the equity and the free margin. An adapter of your own gives its account with getAccount() and an account event.
  • Orders of which one cancels the others (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): an order's ocoGroup names the group it is one of. The paper account cancels the rest of a group when one of it fills, and the orders' tags read OCO.
  • How long an order works (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): timeInForce takes 'gtd' with an expireTime, 'ioc' and 'fok'. The paper account takes a 'gtd' order off at its date (by the time given with setMarkPrice, by the clock with none), and fills an 'ioc' or 'fok' limit at once, at the price there is, or refuses it. The widget's account panel names them.
  • The widget's ticket and account panel know the new orders (@tradecanvas/chart): the order ticket offers IOC and FOK for a limit order, and the account panel writes OCO beside an order of a group and a good-till-date order's date.
  • A stop order's stop moves with its line on the paper account (@tradecanvas/core): modifyOrder moved only a stop order's price, so it still waited at the old stopPrice. A stop-limit's stop and limit move by as much.
  • One net position on the paper account (@tradecanvas/core): new PaperExecutionAdapter({ positions: 'net' }) keeps one position, as a futures account does: fills the same way average in, fills the other way take from it and realise that part, and a larger one turns it round.
  • A bracket has a size (@tradecanvas/chart, @tradecanvas/core): chart.startBracket(side, entry, size) takes { quantity }, or { risk, quantityStep, multiplier } for the quantity that loses risk at the stop, which follows the lines as they are dragged. The quantity is written on the entry's tag and sent with bracketPlace, so the bracket reaches a connected adapter as an order; one with no quantity is not confirmed then, and stays to be given one (executionError, reason: 'noQuantity'). chart.setBracketSize(size) sizes it anew while it is placed, chart.getBracket() reads it, and bracketQuantity(bracket, size) is the sum on its own.
  • The widget's bracket bar has a quantity field (@tradecanvas/chart): it starts at the quantity last typed, else at the market's lot, steps by the lot, and Place is off while it holds no quantity. widget.startBracket(side, size) takes a size; a bracket sized by its risk has no field.

2.17.1 (2026-11-23)

Chart

  • A grid's bar in a language written right to left (@tradecanvas/chart): with a right-to-left language (or widget.dir: 'rtl'), each chart of a ChartWidgetGrid was written right to left and the grid's own bar was not: its arrangement, sync and layouts stayed left to right. The bar and its menus are written the way the charts are. The charts keep the places their arrangement names ("one large on the left").
  • A menu under a toolbar button gives the keyboard back to that button (@tradecanvas/chart): shut with Escape in Safari, which focuses no pressed button, a menu left the keyboard nowhere.

2.17.0 (2026-11-22)

Chart

  • Style keys for the price axis's tags, and a grid ruled at the starts of periods (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): lastPrice.labelBackground fills the last price's tag in one colour whatever the day's direction and lastPrice.labelTextColor colours its text (unset, the tag is the up or the down colour as before; the line keeps upColor and downColor; the countdown under the tag takes both). axis.price.valueTagsOutlined draws an indicator's value tags on the price axis outlined: the chart's background (a pane's own where it has one) inside an edge of the line's colour, its text in that colour, instead of filled with it. grid.vertical.periodsOnly rules the vertical grid where a period begins, not at the axis's labels: each day's first bar on an intraday chart, each month's on a chart of days, each year's on a chart of weeks or months, and the next coarser period where those would be closer than 40 px. Each has a row in Chart Settings (two new strings in 30 languages), and there are 107 style keys.
  • An indicator of your own from one function (@tradecanvas/chart, @tradecanvas/core): defineIndicator({ id, name, inputs, plots, calculate }) makes an indicator with no class: calculate({ bars, inputs, ta }) reads the bars as columns and returns its lines by key, and the chart draws them, lists them and gives each input a field in the settings dialog. ta has the sums indicators are made of (sma, ema, wma, rma, stdev, highest, lowest, change, rsi, macd, atr, bollinger, crossover, crossunder), with the built-in indicators' values, and is exported on its own. ta.indicator(id, input, params) runs any built-in indicator on the bars, or on a value a bar, and returns its lines by key, typed by the id; ta.rsi, ta.macd, ta.atr and ta.bollinger run the built-ins themselves, so each sum is written once.
  • The legend's up and down colours as style keys (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): legend.upColor and legend.downColor colour the legend's close and change, the crosshair and pinned tooltips and the measure tool, and follow the main series' colours unless set. A chart that hides its candles under an overlay by making them transparent lost those readouts with them; it now sets these two and keeps them. The chart settings' Status line tab has a row for each.
  • Williams Fractals you can see (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): its marks were 3 px dots on the tips of the wicks and were lost in them. They are now triangles above a fractal high and below a fractal low, clear of the bar, as wide as the bars allow. As marks, they no longer show a value in the legend or a tag on the axis, and are no longer offered as a line another indicator reads (indicatorSource still reads them).
  • A mark's shape and size (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): a markers plot's style takes a shape (now also arrowUp, arrowDown, square and diamond) and a size in pixels, or 'auto', through updateIndicatorStyle and saved layouts. The indicator settings' Style tab has a shape and a size for each mark.
  • A group of your own in the Indicators dialog (@tradecanvas/chart, @tradecanvas/commons, @tradecanvas/core): an indicator's category takes { id, label } besides the built-in kinds. The indicators with that id are listed together under the label, in a tab of their own before the kinds and first in All, and a search for the label finds them. indicatorGroup(descriptor) reads it; code that read category as a kind reads indicatorCategory(descriptor). A category that is neither, from code without types, now lists the indicator under Other instead of nowhere.

Packages

  • The npm descriptions and keywords (@tradecanvas/chart, @tradecanvas/react, @tradecanvas/vue, @tradecanvas/svelte, @tradecanvas/mcp): each names TradeCanvas the open-source chart library for trading apps, and their keywords say what a search for a trading, candlestick, stock or crypto chart library looks for. The READMEs open with the same words and a link to tradecanvas.dev.

2.16.0 (2026-11-19)

Chart

  • The price axis as wide as the indicator panes need (@tradecanvas/chart, @tradecanvas/core): the panes share the price pane's axis, which was sized to the prices alone, so a pane of millions (a CVD at -1,766,028.9) had its last value's tag cut and the tick under it hidden. The axis now fits the panes' scale labels and, when they are shown, their tags, and refits when the tags are turned on or off.

Finance charts

  • An equity curve's level tags and names kept clear (@tradecanvas/chart): the tags of levels too close for both at the axis move apart instead of one covering the other (the lowest levels' are left out when there is no room for them all), a level's labelAt: 'start' writes its name at the line's left end, away from the curve's latest point, and names in the plot keep clear of each other.

Widget

  • The phone's drawing button clear of the indicator panes (@tradecanvas/chart): it sits at the bottom of the price pane, where it sat over the lowest indicator pane's first bars and legend, and moves as panes come, go or are resized.
  • Prices in the symbol search (@tradecanvas/chart, @tradecanvas/commons): a symbol's last price and day's changePercent, given with the symbols or in a search's results, show in two columns at the end of its row when any row listed has one, the change in the up or down colour; the widget fetches none. On a phone the exchange goes under the ticker, where a long one (SIMULATED, ALL VENUES) was cut short in a column of its own.
  • A new default look, Modern (@tradecanvas/chart, @tradecanvas/commons): the widget opens as a code editor's window, in its Dark Modern and Light Modern colours: the chart on the editor's ground (#1f1f1f / #ffffff) with the bars around it a shade off it, 16 px icons in 28 px buttons on a 38 px toolbar, corners of 4, 6 and 8 px, the logo's amber for buttons, links, focus and a chosen tool, and candles in teal (#089981) and red (#f23645). Without a theme object the chart takes MODERN_DARK_THEME / MODERN_LIGHT_THEME, which a chart of your own can use too. To keep the widget as it was, pass ui: 'print', or preset: 'print' in a ui object (one without a preset now starts from Modern): the look, the colours and the candles come back, and the other looks keep those colours as well. A chart without the widget is unchanged.
  • The widget's Vietnamese strings, reworded (@tradecanvas/chart): the vi table is translated again from the English as plain technical Vietnamese, keeping the trading and chart terms Vietnamese traders use in English (position, order, bracket, crosshair, pane and the like). Every key and placeholder is the same; a label your page overrides with messages is not changed.

2.15.0 (2026-11-19)

Finance charts

  • Levels and bands on an equity curve (@tradecanvas/chart): EquityCurveChart takes levels, lines across the plot at fixed values with each value in a tag at the axis, and bands, tinted stretches of values under the curve, each with an optional label and colour. The value scale widens to show them unless fitLevels: false; setOptions changes them in place.

Trading

  • A stop-loss or a take-profit added on the chart (@tradecanvas/chart): a position without one has an SL or a TP button on its entry's tag. Press it and drag the new line where you want it, or click to set it where it starts: a stop 1% of the entry away and a target at twice the stop's distance, both at least 1% beyond the price now. Letting go sends positionModify, as dragging a stop does, so a connected execution adapter applies it. Before, a position opened without them, or whose stop was removed with its ×, could get one back only from code. lineButtons: { addStops: false } leaves the buttons out.
  • A confirmed bracket can go to the execution adapter (@tradecanvas/chart): connectExecution(adapter, { brackets: 'place' }) sends it with placeOrder as one order: the entry (a limit or a stop against the price), its quantity, and its stop-loss and take-profit. The chart then sends bracketOrder once the adapter took it, or executionError with the new command: 'bracketPlace'. A bracket with no quantity (the toolbar's and startBracket's, for now) or with no price yet to tell a limit entry from a stop is not sent; the error's new reason says which; placesBrackets() says whether it does. Without brackets a bracket stays the bracketPlace event, and the chart warns once in the console when one is confirmed with an adapter connected. 'place' becomes the default in the next major version: an app that places the event's bracket itself passes brackets: 'event'. The widget says a bracket is placed only once the adapter took it, confirmed when it only went out as the event, and why when it was not placed.

Widget

  • A favorites toolbar (@tradecanvas/chart): the star button on the drawing sidebar shows the pinned drawing tools as a bar floating over the chart. Drag its grip to put it anywhere on the chart, press a tool to pick it, right-click one to unpin it. Whether it shows and where it was left are kept in this browser; the sidebar's strip of pins steps aside while it shows. features: { favoritesBar: false } leaves it out.
  • Menus on the drawing sidebar's magnet, lock and hide buttons (@tradecanvas/chart): opened from their corner, a right click or an arrow key. Hide: the drawings, the indicators, the positions and orders, or all. Lock: the drawings, the positions and orders, or all. Magnet: weak or strong; its button now turns the magnet on at the strength last chosen and off, where it cycled through off, weak and strong. What a menu picks is what its button does from then on. New on Chart: setTradingVisible / isTradingVisible (positions, orders and fills hidden: not drawn, not pressable, still following the adapter), setTradingLocked / isTradingLocked (their lines and tags not dragged; their buttons still act) and setIndicatorsVisible(ids, visible) (one undo step).
  • A page of your own in the dock (@tradecanvas/chart): widget.addDockPage({ id, label, icon, element, onShow, onHide }) puts its button on the rail after the built-in panels and your element under the dock's header (its label and a close button); openPanel(id) opens it, getOpenPanel() reports it, and remove() takes it away. The onPanelChange option is told the open panel, or null, however it changed. openPanel and getOpenPanel take and give DockPanelId (a built-in panel or a page's id).

Drawings

  • The Long/Short Position plays its trade out (@tradecanvas/chart): over the bars in its span, the trade is entered on the first bar at or after the entry and closed where the price first reaches the stop or the target (the stop when one bar reaches both, since which came first is not in the bar; a bar's open when it gaps past a level), at the right edge, or still open at the last bar. The part it went through is tinted in the colour of what it made, with a dashed line from the entry to the close and a tag there (Target hit, Stop hit, Closed, Open) with the profit or loss. It is on for positions already drawn; showOutcome: false turns it off. Played on the series' own prices, and left out for a box drawn back from its entry and on Renko and the like.
  • A fourth handle on the Long/Short Position (@tradecanvas/chart): its right edge, on the entry line, sets how long the trade runs; before, the width followed the stop's handle. The entry, the stop and the target now sit on the entry's edge, and the stop's handle changes only its price. Saved drawings keep their place.
  • A Long/Short Position read as a trade (@tradecanvas/chart): positionLevels(drawing) gives the side ('buy' for a long), entry, stop-loss, take-profit and the quantity the risk buys (unrounded, with the decimals the drawing writes it in), the money at risk and to gain, and the R:R: the numbers its tags show. null for any other drawing, a position whose stop is still on its entry, one with no risk set, or prices that are not finite. An app that places an order from the drawing no longer works them out from its anchors and options again.

Trading

  • An order placed from a Long/Short Position (@tradecanvas/chart): with trading on, selecting the drawing shows Create order in its toolbar. It opens the order ticket filled from the drawing: its side, entry as the price, stop-loss, take-profit and the quantity its risk buys, taken down to the decimals the drawing writes. The order type follows the entry against the market (a buy limit below it, a stop above, the market at it), and nothing is sent until Place; the drawing's levels are the ones positionLevels gives.

Fixes

  • The day's move on the watchlist's own row (@tradecanvas/chart): with no quote for the chart's symbol, its row read the move against the first bar loaded, so a daily chart showed the move over its whole history (+37% where the day was +0.09%). It is the day's move now, against the close before the last day in the bars, in the exchange's zone, as the symbol info panel reads it; no move when the bars hold no day before the last. A refPrice given with setWatchlistEntry still wins.
  • The year on the time axis in history (@tradecanvas/chart): panned back to an earlier year, the axis read "Mar … Apr", or days and times, with no year until a January came on view. A tag at its left end, in the style of the timezone tag at the right, now writes what the labels on view leave out, as of the first bar on view: the year among months, the month and year among days (Mar 2023), the whole date among the times of one day, in the chart's locale. It is left out where a new year is labelled, and when the labels come from your own timeFormatter. Over a label at the left end it stands in for it and says what it said: over "Mar" it reads "Mar 2023".

2.14.0 (2026-11-17)

Indicators

  • A custom indicator's colours follow the theme (@tradecanvas/chart): an indicator's descriptor takes defaultStyle, a style or a function of the theme that gives one ((theme) =&gt; ({ colors: … })). An instance on it changes with chart.setTheme(), and a colour someone picks for it stays. It sits under the viewer's saved default, so an app no longer has to call chart.setIndicatorDefaults() on each change of theme and overwrite what the viewer saved there. A saved layout leaves out what the theme gives, and the widget's *Save as default* does not keep those colours either.
  • An indicator's render is given the theme (@tradecanvas/chart): a fifth argument, { theme }, the theme the chart draws with, as overlays get it. A plugin draws what its style doesn't give (a mark where a line turns, a label) in the chart's colours and font, without the app handing them over on each change.
  • Labels for a choice's values (@tradecanvas/chart): a choice input's options take { value, label } as well as plain values, and the indicator settings dialog shows the label while the indicator is given the value. The legend names a choice off its default by the same label. An indicator of your own can name its choices in your app's language; before, the dialog showed the raw values (ema, sma). describeInputs() gives the labels as optionLabels.
  • Marks on some bars (@tradecanvas/chart): a plot of kind: 'markers' marks the bars where its field has a value, with a shape ('dot', 'triangleUp', 'triangleDown') at the value, or above the bar's high or below its low on the price pane (position). It is not a value: it gets none in the legend, no tag on the price axis, no column in the CSV export, no place in the data window, and is not offered as a line another indicator can read. Before, the nearest kind was 'dots', which is a line and got all of those, a copy of the line's value among them.

Coding agents

  • How to write an indicator of your own (@tradecanvas/mcp): the MCP server's new custom_indicator tool gives the guide to it: the descriptor, calculate, the incremental update and when revisesBefore is needed, drawing beyond the plots with the theme, colours by theme, registering it before a saved layout is read, and what the legend, the axis, the export and the settings take from the descriptor. Its code is the skill's recipe, which CI type-checks against the packages. get_indicator points to it for an id that is not built in. The plugins page of the docs walks through a whole indicator the same way, and IndicatorBase.render takes the render context, so an override can pass it on.

Widget

  • Larger targets for a finger (@tradecanvas/chart): on a touch screen, a pane's fold and maximise buttons take about 30 by 32 px (they were 18 by 16), set further apart, their drawing the same size; the range presets, Go to date and "more" under the chart take at least 32 by 32 px (about 24 by 22 before), and the clock that opens the time zones is 32 px tall. The status bar grows by a few pixels to hold them, so a phone shows a preset or two fewer before "more".
  • A legend row's buttons wider on a desk (@tradecanvas/chart): Hide, Settings, More and Remove are 24 px wide each, from 20, as tall as before.
  • Plugins given to the widget (@tradecanvas/chart): ChartWidget takes plugins, typed, and chartOptions.plugins is typed too. They are registered with the widget's chart before it restores a saved layout, a template or a shared view, so a layout that names an indicator of your own gets it back. Before, an app had to register them on widget.getChart() after construction, too late for persistLayouts, and then load the layout itself.

Imports

  • The Powered by badge without the chart (@tradecanvas/chart, @tradecanvas/svelte): @tradecanvas/chart/brand exports the badge, createPoweredBy, poweredByHtml, poweredByLayout, the mark and the wordmark, and reaches none of the chart. The Svelte &lt;PoweredBy&gt; imported them from the main entry, and a bundler could not leave the chart behind, so a page that showed the badge in its footer and drew no chart loaded the chart's engine with it: an app that only mounted the badge took 30 kB gzipped at the start and 82 kB in all. &lt;PoweredBy&gt; now imports from the new entry, and the same app takes 20 kB, Svelte's included. The main entry still exports the same names.

2.13.1 (2026-11-17)

Fixes

  • The legend takes less of a phone's chart (@tradecanvas/core, @tradecanvas/chart): on a touch screen each indicator's row in ChartWidget's legend showed its four buttons (show, settings, more, remove) at all times, so two rows covered a block of candles at the top left and a pane's row a third of a small pane. A row now shows only its name and values; a tap opens it to show the buttons, as a hover does with a mouse, a tap of its name then opens the settings, and a tap of the row again, of another row or outside the legend closes it. The buttons are bigger and further apart for a thumb. A mouse and the keyboard work as before. A pane's first row now stops short of the pane's buttons at its top right, which covered the end of its values on a narrow chart. On a chart too narrow for the legend's prices on one line, the volume now ends their last line when it fits there instead of taking a line of its own, so a phone's legend is a line shorter.

2.13.0 (2026-11-16)

Imports

  • The candle patterns on their own (@tradecanvas/core): @tradecanvas/core/patterns exports detectCandlePatterns and CANDLE_PATTERNS, the same two the main entry exports, and reaches none of the engine. A page that finds patterns and draws no chart, such as a scanner or a screener, loads about 4 kB gzipped in a chunk of its own instead of the chart's, even when other pages of the app draw charts. The app lists @tradecanvas/core in its dependencies to import it. @tradecanvas/core is now built from two entries; what it exports is unchanged.

Fixes

  • The replay bar sits under the chart (@tradecanvas/chart): ChartWidget's replay bar floated over the foot of the main pane and covered the volume there. It is now a row of the widget under the chart, across its width and above the account panel and the status bar, and the chart is made shorter for it while it is open. Its tiers follow the widget's width; on a phone it still takes two rows. A host's CSS that placed it through --tcw-replay-foot or --tcw-replay-plot-start and --tcw-replay-plot-end no longer needs them: the widget no longer sets them. CSS that gave the bar's part (replay) a position or an offset of its own should drop it.
  • The order book stays out of a replay (@tradecanvas/core, @tradecanvas/chart): a live book recorded during a replay (pushDepthSnapshot, or widget.setDepth, with no time) was stamped at the bar the replay was on, so as the replay moved, the liquidity heatmap filled the replayed bars with today's book. It is now stamped at the live series' last bar. The heatmap draws only the books of the bars the replay has shown, and all of them again when it ends. The depth overlay at the plot's right edge, the live market's book, is not drawn beside the replay's price either, and comes back when the replay ends. DepthHeatmapRenderer.setShownUntil(time) draws only the books stamped before time.
  • The screen-reader summary follows the live price (@tradecanvas/chart): the chart's aria-label ("… Last price 50,100.00.") was set again only when the series grew, so a forming bar's new closes, from a feed's bar updates, updateLastBar or updateLastBarFromTick, left it on the price it had when the bar began, and a replay left it on the live price. It now follows the last bar shown, the replay's included, at most once a second while a feed streams or a replay plays.

2.12.1 (2026-11-16)

Fixes

  • HNX and UPCoM open at 9:00 (@tradecanvas/commons, @tradecanvas/chart): HNX_SESSIONS and UPCOM_SESSIONS, and so MARKET_HNX and MARKET_UPCOM, started continuous matching at 9:15, but neither exchange has an opening auction: both match from 9:00. UPCoM now matches until 15:00, not 14:30, as it has no closing auction. HNX's afternoon, closing auction and post-close session are unchanged.

2.12.0 (2026-11-15)

Finance charts

  • A matrix of a few columns can use the width (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): MatrixChart's cellWidth is 'square' (the default, square cells centred in a wider chart), 'fill' (the columns share the width beside the row names) or a number of pixels a column, no wider than the room. Rows keep their height. A statement's lines by period, three columns in a wide panel, now fill it instead of sitting small in the middle. The layout's cells carry width and height beside size, and the layout pitchX and pitchY beside pitch.

2.11.2 (2026-11-15)

Fixes

  • A narrow matrix's colour bar keeps its labels apart (@tradecanvas/core, @tradecanvas/chart): under MatrixChart and CalendarChart the bar is as wide as the chart, or as its labels need where the chart is narrower (a matrix of one or two columns), up to the chart's edge. The labels are measured: the middle one (zero) is left out when it would touch an end, and the ends too when even they cannot stand apart, instead of printing over each other.

2.11.1 (2026-11-15)

Fixes

  • A widget fed its own bars names its symbol on the legend (@tradecanvas/chart): with no adapter or feed, the legend's title line started with the interval and left the symbol out; it now names the symbol option when one is given, and the one setSymbol sets. A display name of your own given with chart.setSymbolName stands until the symbol changes, as it does with a stream: set it again after setSymbol.
  • A grid's link switches read as switches (@tradecanvas/chart): Symbol, Interval, Crosshair and Time show on as blue text, as the scale's %, log and auto do, instead of the chosen-button fill, under which the blue text washed out in the dark Print look.

2.11.0 (2026-11-15)

Order book

  • Where the depth overlay's rows start (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): depthOverlay.rowOrigin (in price), with rowSize, makes row k run from rowOrigin + k × rowSize to the next row's start, a level on a row's start in that row, and draws each bar over exactly that span. A footprint whose cells start at multiples of its row size, each tick centred on its price, lines up with rowOrigin: -tick / 2, so the book no longer straddles two of its cells. A bid and an ask that share the row by the market both show: the longer bar is drawn first, and markBest lines the bid on the row's lower edge and the ask on its upper. Without it the rows stay centred on multiples of rowSize. depthBars takes the origin as a fourth argument.

2.10.0 (2026-11-15)

Moving from another charting library

  • A datafeed written for the callback-style JS API works as it is (@tradecanvas/core, @tradecanvas/chart): feedFromJsApi(datafeed) makes it a DataFeed, for chart.connect({ feed }) or a widget's feed option. It resolves each symbol once and hands its symbol info back to getBars and subscribeBars; turns timeframes into resolutions ('1h' → '60') and the chart's countBack and before into from, to and countBack in seconds; asks once more from nextTime when a range had no bars; unsubscribes with the guid it subscribed with; loads the series again when the datafeed calls onResetCacheNeeded; and reads a symbol's pricescale and minmov as its price step, its session as its trading hours and the timeframes it serves from supported_resolutions. Search and quotes come through when the datafeed has them. await feed.ready() before the chart connects: the chart reads the timeframes a feed serves then, and builds the others from them. sessionsFromJsApi and symbolInfoFromJsApi do the reading on their own.
  • A UDF server needs no code (@tradecanvas/core, @tradecanvas/chart): udfFeed({ url }) reads /config, /symbols, /search, /history and /quotes, and asks again every updateFrequency ms (10 s by default) for live bars and quotes. headers go with every request.
  • Resolutions and timeframes (@tradecanvas/commons, @tradecanvas/chart): resolutionToTimeframe('240') is '4h', timeframeToResolution('1w') is '1W'.
  • Three MCP tools for the move (@tradecanvas/mcp): migration_plan gives the steps and what to search an app's code for; migration_lookup says what one of the old library's names becomes (a widget option, featureset, override key, study, drawing, method, datafeed or broker member, or a resolution), and what to do where there is nothing like it; convert_widget_options turns the old widget's whole options object into ChartWidget options, or a lighter library's chart options into Chart options, with the calls to make afterwards and what has no place. Every TradeCanvas name in their tables is checked against the code on each build.

2.9.0 (2026-11-15)

Order book

  • Rows of a set price size in the depth overlay (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): depthOverlay.rowSize (in price) adds the book's levels up into rows that far apart, each centred on a multiple of it and drawn from half a row below to half a row above. A dense book under a coarse price scale no longer draws as one sliver, and an empty level by the market no longer makes every bar two levels tall. A level halfway between two rows goes to the one away from the market, so a bid's row never reaches past an ask's. markBest then lines the middle of the best bid's and ask's rows. depthBars takes the row size as a third argument.

2.8.1 (2026-11-15)

Fixes

  • DepthOverlayConfig is exported from @tradecanvas/chart, the type setDepthOverlay, getDepthOverlay and the depthOverlay option take, as DepthData and DepthLevel are.

2.8.0 (2026-11-15)

Order book

  • The order book on a price-only chart (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): features: { depth: true } draws the book from the right edge of the plot with no orders and no trading UI, so it works with trading: false. chart.setDepthOverlay and the depthOverlay option take mode ('cumulative', the default, or 'level', each price's own size, so a wall is one long bar), markBest (a line at the best bid and the best ask, bestBidColor, bestAskColor), maxWidth and the colours. A book is read in any order, and levels that are not numbers or rest no size are ignored. setTradingConfig({ depthOverlay }) still turns the overlay on as before.

2.7.0 (2026-11-14)

Drawings

  • Three more drawing tools (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart), 76 in all, each of three points and with a fill:

- disjointChannel: two lines over the same bars that lean opposite ways, the second through the third point's price halfway along. A wedge that narrows or widens; it extends either way and its two prices can carry alerts.

- flatTopBottom: a sloping line and a level one at the third point's price, over the same bars. It extends either way and gives both prices to alerts.

- rotatedRectangle: a rectangle at any angle, one side through its first two points and as deep as the third point is far from it; picked on its edges, and inside when filled.

  • They are in the widget's drawing tools (Channels, Shapes), named in its 30 languages, with an icon each.

2.6.0 (2026-11-14)

Drawings

  • A line's and a rectangle's words are typed in place (@tradecanvas/chart). The ten tools that write a text along a line or in a box (trend line, ray, extended, info and angle lines, arrow, horizontal line and ray, vertical line, rectangle) open the box a text tool has, over their words: from a Text button on the toolbar over the selected drawing, from Text in the drawing's menu, or by a double-click on the words (a double-click on the line itself still opens its settings). Enter or a click away keeps the words, Shift+Enter starts a line, Escape puts them back, and one undo takes them off. A line left with no words is a line again. The button is there for a text, a note and a callout too, where a double tap is hard on a phone.
  • drawingDoubleClick says where it was (@tradecanvas/commons, @tradecanvas/core): its payload is { id, x, y }, in the chart's pixels.
  • chart.getDrawingTextSize(id) (@tradecanvas/chart): the size a line's or a rectangle's words are written at, to go with getDrawingTextRect for an editor of your own.

2.5.0 (2026-11-14)

Marks on the chart

  • A chart marks what happened at a time (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart): a headline, an earnings date, a dividend, a split, as a small badge at the foot of the price pane on the bar that holds its time. chart.setMarks, addMark, removeMark, getMarks and clearMarks take ChartMarks (time, title, and optionally kind, label, text, url, color). The pointer over a badge reads its title and text; badges that would overlap gather into one with a count. A replay shows each as it reaches it; Renko, Kagi, line break, point & figure and range bars, whose bars are not times, draw none. Marks are read as untrusted input (only http(s) links are kept, at most 2,000) and are not part of saveState.
  • Events markHover, markClick and marksChange, and the feature switch marks (default on) on the chart and the widget. A click on a badge is a markClick, not a click. ChartMark, ChartMarkKind, readChartMarks and MAX_CHART_MARKS are exported from @tradecanvas/chart.
  • ChartWidget puts the symbol's headlines on the chart from its news source (news, or the adapter's fetchNews), one request shared with the symbol info panel; newsMarks: false keeps them to the panel. A click on a mark opens its link in a new tab; on a badge of several, a list of them, newest first. A host's own setMarks and clearMarks leave the widget's headlines on the chart. The navigation buttons stand above the badges, and step aside while the pointer reads one.
  • The symbol info panel asks its news source for 50 headlines (it asked for 10) and shows the newest 10; the chart marks them all.

2.4.0 (2026-11-13)

Trading

  • An order can open a position that already trails (@tradecanvas/commons, @tradecanvas/core). OrderPlaceIntent.trailingStop and TradingOrder.trailingStop are the distance the position's stop-loss is to trail by once the order fills. The paper account keeps it on a waiting order and hands it to the position; a waiting order's stop reads TSL.
  • The order ticket has a Trailing stop switch (@tradecanvas/chart), under the stop-loss when one is set: on, the order asks for a stop that trails at its distance from the entry. In the 30 languages. Switching the stop-loss off takes it away.
  • The orderPlace event's payload is typed with what it carries (@tradecanvas/commons): stopLoss, takeProfit, trailingStop and timeInForce were sent but not in OrderPlacePayload, so a handler written in TypeScript could not read them.
  • The trail button shows that it is on (@tradecanvas/core): filled in the stop's colour while its stop is trailing, where it looked the same on and off.

2.3.0 (2026-11-13)

Trading

  • A trailing stop (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). A position's trailingStop is the distance, in price, its stop-loss keeps behind the best price: up for a long, down for a short, never back. On the chart the stop's tag reads TSL, and a button on it starts a trail at the stop's distance from the price now, or ends one (lineButtons.trailStop: false hides it). From code, chart.modifyPositionIntent({ positionId, trailingStop: 150 }) starts one and trailingStop: null ends it, the stop staying where it is; PositionModifyIntent and the positionModify event carry the field to an adapter's modifyPosition.
  • The paper account trails (@tradecanvas/core). PaperExecutionAdapter moves a trailing stop on each price it is given, tightening only: a stop already nearer than the distance stays until the price has run far enough, one moved by hand is followed from where it was put, and removing the stop ends the trail. A price that falls through a stop fills it where it was before any stop follows.

2.2.2 (2026-11-13)

Engine

  • Every tag on the price axis is one shape (@tradecanvas/core). An order's and an alert's were the axis's width with their price six pixels in; the last price's was as wide as its text, bold, with an arrow reaching into the plot; the crosshair's and a selected drawing's started five pixels further right behind a notch; an indicator's value was as wide as its text. Side by side they read as four parts. Each is now the axis's width from a pixel past its line, with no arrow or notch, and its price starts where the scale's own labels start, so every price down the axis is in one column. The last price keeps its bold figures and the bar's countdown under it; the time axis's tags keep their notch.

2.2.1 (2026-11-13)

Widget

  • The alerts panel shows the alerts first (@tradecanvas/chart). Its form, five fields and a button, stood over the list at all times and pushed the alerts down the panel. With alerts set, the panel now opens on the list; the form comes from a + in the panel's header, at the price now, and folds away again when an alert is added. With no alert yet the form is open, as before: it is the next thing to do.
  • A price that has not moved is neither up nor down in the watchlist (@tradecanvas/chart): 0.00% in the text's colour, where it read +0.00% in green.

2.2.0 (2026-11-13)

Drawings

  • A Fibonacci retracement reads the way traders read one (@tradecanvas/core). Level 0 was at its first point, so a retracement drawn from a low to a high wrote 61.8% where the price had given back 38.2%. It is now at the second point, where the move ends. The option is reversed (off: 0 at the end); reverse, which meant the opposite, is still read from a saved drawing and from addDrawing.
  • Fibonacci levels stay between their points (@tradecanvas/core). A retracement and an extension ran across the whole chart by default and tinted it from edge to edge. They stop at their points unless extendLeft or extendRight is set, and each label sits beside its line's end, clear of the candles between, where the plot has room.
  • A parallel channel has its middle line (@tradecanvas/core), dashed; middleLine: false takes it away.
  • A horizontal line's price and a vertical line's time are on the axes (@tradecanvas/core, @tradecanvas/chart): tagged in the line's colour whether it is selected or not, where it was only the selected one. A horizontal line with showPrice: false stays off the axis until it is selected, and drawingAxisSpans: false hides them all with the rest.
  • Drawings saved before keep their look (@tradecanvas/commons, @tradecanvas/core). A drawing loaded with setDrawings or a saved layout, with no value of its own for one of these options, takes the default it was drawn with: a retracement saved last week still has 0 at its first point and runs across the chart. A new drawing writes these options out, which is how the two are told apart. A tool says so in its option's savedDefault, and names an earlier key that meant the opposite in invertedAlias (DrawingOptionDef).

2.1.2 (2026-11-13)

Engine

  • The price scale has as many labels as fit (@tradecanvas/core, @tradecanvas/chart). Its step was a round number of a range already rounded up, which on a laptop left six labels 100 px apart where sixteen fit, and the grid's lines with them. The step is now the largest round one whose labels sit no farther apart than 56 px, never closer than 30: 200 where it was 500 on a Bitcoin chart 640 px tall. Indicator panes and the compare scale follow. chart.getPriceStep() returns the finer step.
  • The last price's line is dotted (@tradecanvas/commons). Solid, it read as a horizontal line somebody drew. lastPrice.style: 'solid' brings the old one back.
  • The crosshair's tags are quieter than the last price's (@tradecanvas/commons, @tradecanvas/core). They were the text colour, the brightest thing on the axis; they are now that colour faded into the background, with the text colour for their words. crosshair.labelBackground and crosshair.labelTextColor still set them.
  • A date on a tag names its month (@tradecanvas/core). The crosshair's time tag, a drawing's and the pinned tooltip wrote 11/12 23:05, the 12th of November to one reader and the 11th of December to another. They now write the date as the chart's language does, the month by name: Nov 12 23:05, 12 thg 11 23:05, and Nov 12, 2026 on daily bars. A timeFormatter still writes its own.
  • The crosshair's time tag stays on the plot (@tradecanvas/core). By the left or right edge it ran off the plot and was cut; it now stops at the edge.
  • A new day stands out on the time axis (@tradecanvas/core): days and months are in the heavier weight the year had, so where one session ends is read at a glance.
  • The dark theme's grid is a step lighter (@tradecanvas/commons): #232429 where it was #1d1e21, enough to follow a line across to the scale.

2.1.1 (2026-11-12)

Engine

  • A price under 1 shows at least four figures of itself (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons). With no decimals set by the symbol or the market, the legend, the crosshair, the last-price tag and the order tags took the price scale's decimals, its step's and one more. On a sub-cent coin over a wide range that is two or three figures of the price: 0.00000284 for 0.00000284393, and a candle's open, high, low and close read the same. They now show as many decimals as four significant figures of the largest price on view take, where the step's are fewer: 0.000004349 where it read 0.00000435, 0.7370 where it read 0.737. The scale's own tick labels keep the decimals their step needs, prices from 1 up are unchanged, and a symbol's or a market's decimals still come first. chart.roundPrice and chart.getPriceStep follow, so an order placed by hand on such a coin lands on the finer step. The price axis is a few pixels wider where its tags are longer.

2.1.0 (2026-11-12)

Widget

  • A delayed feed says so (@tradecanvas/chart). The widget's status bar read "Live", with the live dot, for any connected feed, one that polls prices fifteen minutes old among them. A symbol can now carry delayMinutes (from the feed's resolveSymbol, in a symbolInfo event, or with chart.setSymbolInfo): the status bar then reads "Delayed 15 min", in the 30 languages, with a ring in place of the live dot. A feed that failed or is connecting keeps its own words, and a symbol with no delay reads "Live" as before.

2.0.5 (2026-11-12)

Widget

  • A coin priced in billionths keeps its figures away from the axis (@tradecanvas/chart, @tradecanvas/core). The price scale, the legend and the tags already fit their decimals to a price however small; a few places stopped at a fixed count. The watchlist wrote ten decimals at most, so a price under a ten-millionth lost figures; the market profile's stats wrote six, so one read 0.000000; the data window and the alerts list wrote a value under a millionth as 7.855e-8; and what a position makes or loses, and the amounts on its stop and target, were at two decimals, so each read 0.00. All of them now show four significant figures of a price under 1 (an amount that two decimals would write as nothing shows two figures of itself; nothing made is still 0.00, and a large amount keeps two decimals), on a pending order's stop and target too, and a drawing's, a pivot's and the measure's labels go to sixteen decimals where they stopped at ten. A market's or a symbol's own decimals still come first.
  • The watchlist writes a symbol in its own decimals (@tradecanvas/chart). It wrote every price by its size, two decimals from 1,000 and four from 1, whatever the symbol's pricePrecision: a stock in dong read 49,550.00 beside a chart that read 49,550, an index 256.6200. A symbol whose entry in symbols gives a pricePrecision is written at it, its move too; one without keeps the rule by size.

2.0.4 (2026-11-12)

Packages

  • The packages' npm pages say what TradeCanvas is. Each package's description names it as an open-source trading chart library, its keywords gain the ones people search by (charting-library, trading-chart, candlestick-chart, stock-chart, webgl, javascript…), and its homepage is tradecanvas.dev. The README on npm opens with the same words and states the licence in one line: MIT for everyone, no logo to show, nothing to apply for. No code changed.

2.0.3 (2026-11-12)

Widget

  • A drawing tool's menu opens every time the pointer comes to its button (@tradecanvas/chart). Moving from one tool button to another by way of the gap between them, or the chart, sometimes left the pointer on a button with no menu: the first menu's time to close ran out just before the second's turn to open, and took that turn with it. The second now opens as the first closes.

2.0.2 (2026-11-12)

Widget

  • Notes, callouts, signposts and balloons read over the bars (@tradecanvas/chart, @tradecanvas/core). Their text sat in a box with a 1 px border and a faint tint, so candles showed through the words and the four looked alike. Each now writes in a bubble filled with its colour, in the ink that reads on it, with rounder corners. A fill or a text colour set by hand is kept, and with the background turned off the text is drawn in its colour as before.
  • A callout points with its bubble's tail (@tradecanvas/chart, @tradecanvas/core). The hairline from the box to its point is now a tail in the bubble's own outline, 16 px wide where it leaves the side facing the point; it moves to another side as the bubble or the point is dragged, and is picked by a press anywhere on it. With neither background nor border a line is drawn, as before.
  • Typing a text in place no longer rewraps it (@tradecanvas/chart). The box opened over a text was a little narrower than the text on the chart, so a line that fit there broke in two while it was typed and jumped back afterwards. It is as wide as the text now, follows it as it grows, and an empty one shows the tool's name greyed.

2.0.1 (2026-11-12)

Widget

  • A selected drawing's toolbar waits in one place (@tradecanvas/chart). It was put over the drawing itself, so on a text, a note or a price label it covered what had just been drawn and had to be dragged off each time. It now waits near the top of the price pane, centred, whatever is selected and whichever pane it is on (at the foot of a chart too narrow to hold it beside the legend, as on a phone), and it no longer moves as the drawing or the price scale does. Dragging it by its grip still keeps it where you drop it; a double-click on the grip sends it back to its place.
  • Vietnamese keeps the market's own words (@tradecanvas/chart). The widget's Vietnamese strings translated terms that Vietnamese traders use in English: 31 of them now read as traders say them (Bar replay, Liquidity heatmap, Crosshair, Watchlist, Trend line, Fibonacci retracement, DOM ladder, Spread, Box size, "lệnh stop"). Words settled in Vietnamese stay (nến, khối lượng, chỉ báo, sổ lệnh, cắt lỗ, chốt lời). The Vietnamese docs pages and README follow the same list.

2.0.0 (2026-11-12)

TradeCanvas 2.0. The seven betas below are this release, in the order they were made; nothing else changed between 2.0.0-beta.7 and it. npm install @tradecanvas/chart now gives 2.0; 1.x stays as @tradecanvas/chart@1. The migration page says what a page on 1.x has to change, and for most that is nothing, or one option.

What 2.0 is

  • A new default look. The chart and the widget open with more room around what they draw, on an even ladder of pixels, and sharp at 125% and 150% display scaling. ui: { density: 'classic' } on the widget and density: 'compact' on a chart keep the look of 1.x.
  • One face for figures. A chart of your own, the widget's default look and the finance charts set their figures in the same sans faces, whose digits are one width. font: { family: MONO_FONT_FAMILY } keeps the monospaced figures of 1.x.
  • One spelling. The names deprecated through 1.x are removed (setTimezone and its kin, EXCHANGE_TIMEZONE, SymbolInfo.timezone, DEFAULT_FONT_FAMILY); TypeScript points at each use, and the migration page lists what to write instead.
  • The finance charts caught up. The fourteen charts beside the trading chart share one frame, one tooltip and one number format; read out a tap on a touch screen; take font, locale and labels; describe themselves to screen readers; and have a browser audit of their own (pnpm audit:finance).
  • Panes that share the room. A stack of indicator panes no longer squeezes the price pane under 38% of the height.
  • Live data that says what it does. One connectionChange an attempt to reconnect; leaving while a feed's first bars load aborts the request.
  • Coding agents. The MCP server knows the finance charts (list_finance_charts, and list_options / validate_options by class name).

2.0.0-beta.7 (2026-11-12)

The look

  • A chart's figures are in a sans face by default (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). The built-in themes named a monospaced face, so a Chart of your own drew its axes, tags, crosshair pills and legend in Cascadia Mono or SF Mono while the widget and, since beta.5, the finance charts drew theirs in the system's sans face. The dark and the light theme now name FIGURES_FONT_FAMILY, a new constant: Segoe UI, Roboto, Helvetica Neue and Arial, sans faces every system has whose digits are one width as they come, so prices down an axis still line up. It is the face the widget's default look has set its figures in; San Francisco is left out of it, since its digits are not one width and a canvas cannot ask for tabular figures. The finance charts take it too, where beta.5 gave them SANS_FONT_FAMILY: on Apple systems their figures move from San Francisco to Helvetica Neue. A bare Chart looks different from 1.x, and its price axis may be a few pixels narrower. font: { family: MONO_FONT_FAMILY }, or chart.setFont with the same, keeps the monospaced figures. The widget is not changed: it has set its chart's face from its look all along. Nor is a theme with a face of its own, DARK_TERMINAL among them.
  • DEFAULT_FONT_FAMILY is renamed MONO_FONT_FAMILY (@tradecanvas/commons, @tradecanvas/chart). It names the monospaced face, which is no longer the default one, and a constant called default that was not would mislead. The old name is removed, so TypeScript points at each use; the migration page lists it.

2.0.0-beta.6 (2026-11-12)

Coding agents

  • The MCP server knows the finance charts (@tradecanvas/mcp). A new tool, list_finance_charts, names the fourteen classes that are not the trading chart (bars, donut, scatter, histogram, calendar, matrix, heatmap, counter-clock, depth, equity curve, waterfall, gauge, sparkline, and the backtest dashboard) with what each is for. list_options and validate_options take one of those names as target: the options are read from the same declarations the package ships, and a check says which option was meant, which value a choice takes, when a locale is no language tag, and which options the chart cannot be made without (those its declaration marks as required). It does not look inside the data. For ChartWidget, Chart and ChartWidgetGrid nothing changes.
  • width and height are gone from the finance charts' options (@tradecanvas/commons). They were declared and never read: a finance chart has always filled its element. TypeScript now says so where one is passed; size the element instead.

2.0.0-beta.5 (2026-11-12)

Finance charts

  • The finance charts' text is in a sans face (@tradecanvas/core, @tradecanvas/chart). The fourteen charts drew their labels in the theme's monospaced face while the widget's figures moved to the look's sans face; beside the widget they looked like another product. They are in the system's sans face now (SANS_FONT_FAMILY). A new font option on every finance chart (and setOptions({ font })) sets the face and sizes, as Chart's does: { family: DEFAULT_FONT_FAMILY } brings the monospaced one back. A theme of your own with a face of its own keeps it. PerformanceDashboard takes font too, for its own text and its charts'.
  • locale on every finance chart (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). A BCP 47 tag sets how numbers and dates are written: the grouping and decimal marks, the short forms past ten thousand, percentages, the names of months and days. Only the calendar took one before, and only for names. The browser's language is still the default, and a format function of yours is used as it is. A tag the browser cannot read falls back to its own language.
  • Words you can change (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). A depth chart's spreadLabel takes a word in place of "Spread" (it still takes false for none). PerformanceDashboard takes labels for its three panels' titles and its eight stats' names, and writes its months in locale; selectKeyStats(metrics, labels) and computeMonthlyReturns(curve, locale) take the same. DEFAULT_DASHBOARD_LABELS lists them.
  • Every finance chart describes itself to screen readers (@tradecanvas/chart). The depth, equity curve, waterfall, sparkline and gauge charts had no label unless ariaLabel gave one; they say what they hold ("Depth chart of 12 bids and 12 asks", "Gauge at 62") and follow their data, as the newer charts do. ariaLabel still says it in your words.
  • For those drawing with the renderers (@tradecanvas/core). numberFormat(locale) and percentFormat(locale) are the formats the charts use; axisFormat(scale, locale) takes a locale; financeTheme(theme, font) is the theme a finance chart draws with.

2.0.0-beta.4 (2026-11-12)

Finance charts

  • The depth, equity and waterfall charts are laid out as the newer charts are (@tradecanvas/core, @tradecanvas/chart). Their margins were fixed numbers (70 px for an equity curve's values, 60 px of nothing right of a depth chart); they are sized to the labels now, 12 px from the chart's edge. Value axes step by round numbers, a time axis by round times (whole hours, whole days), read by the step between them: a clock for hours, the day for days. Numbers read as on the other charts (1,234.5, and 12.3K past ten thousand) unless a format is given; a depth chart writes its prices with as many decimals as the book's own, so 0.00001234 is no longer 0.00. The charts look different from 1.x: check the room you gave them.
  • One tooltip (@tradecanvas/core, @tradecanvas/chart). The depth, equity, waterfall and heatmap charts show the rounded tooltip of the newer charts, with a swatch by each value, in place of a square box of Value: and Price: lines. A depth chart reads out the price of the level its volume is counted to. A waterfall step shows what it added and the total it leaves.
  • A tap reads out (@tradecanvas/core, @tradecanvas/chart). On a touch screen no finance chart showed a tooltip. A tap shows it, on every chart that has one, and it stays until a tap elsewhere; a drag still scrolls the page, and puts the tooltip away.
  • Sharp at 125% and 150% (@tradecanvas/core, @tradecanvas/chart). The finance charts' canvases are sized by the container's own count of device pixels, as the trading chart's are, and follow a change of the pixel ratio (a window moved to another screen, a page zoomed). Grid lines, axes and crosshairs fall on whole device pixels at any ratio. A resize no longer shows one cleared frame.
  • A waterfall's labels have room (@tradecanvas/core, @tradecanvas/chart). Labels too long for their slots are turned, in as much room under the plot as they need (up to 38% of the height), and cut with an ellipsis past that, where they ran off the canvas. A value that would run into the one before it is left out.
  • An equity curve names its benchmark over the plot (@tradecanvas/core, @tradecanvas/chart). The name sat by the line's end, cut off by the chart's edge; it is a legend entry now. The curve's points may come in any order of time.
  • A heatmap follows the theme (@tradecanvas/core, @tradecanvas/chart). Its default colours were fixed (a dark grey for zero, also on a light theme); they are the theme's down and up colours and a faint surface of it, as on the calendar and the matrix. colorScale overrides them as before, and the range stays five either side of zero unless min and max say otherwise. The pointed cell's outline is in the theme's text colour.
  • For those drawing with the renderers (@tradecanvas/core). computeWaterfallLayout, hitWaterfallBar, computeEquityLayout and computeDepthLayout give where each chart puts things, as the newer charts' layout functions do.

2.0.0-beta.3 (2026-11-12)

Finance charts

  • A waterfall keeps its total through a step of zero (@tradecanvas/core, @tradecanvas/chart). A bar with a value of 0 and no type was read as a subtotal, so the running total started again from zero and every bar after it was wrong. It is a step that changes nothing now. A value that is no number counts as zero instead of turning the rest into NaN.
  • A waterfall's turned labels are where they belong on a dense screen (@tradecanvas/core, @tradecanvas/chart). Labels too long for their slot are turned 45 degrees; on a screen with a pixel ratio other than 1 they were drawn at the wrong place and size.
  • setOptions is heard by the older charts (@tradecanvas/chart). On DepthChart, EquityCurveChart, WaterfallChart, SparklineChart, GaugeChart and HeatmapChart, setOptions({ theme }) did nothing; nor did crosshair on the four that have a readout, or onCellClick on a heatmap made without one. ariaLabel now labels the first five as it labels the rest, at the start or later.
  • Colours in any form fade as they should (@tradecanvas/core, @tradecanvas/chart). The area under a sparkline or an equity curve, the shading of a drawdown and the sides of a depth chart were faded by adding two hex digits to the colour: a #rgb colour, one with its own alpha or an rgb() gave a colour the canvas refused, and under a sparkline or an equity curve that stopped the drawing.
  • An equity curve reads its benchmark at the pointed time (@tradecanvas/core, @tradecanvas/chart). The readout took the benchmark's point at the curve's index, so a benchmark with times of its own showed the wrong value, or none. The dot on the curve is in lineColor, as the curve is. A benchmark that runs before or past the curve is cut at the plot's edge, and its name stays by the line's end as drawn.
  • Flat and thin data still draw (@tradecanvas/core, @tradecanvas/chart). An equity curve whose values are all the same had no value labels and lay on the plot's floor; a depth chart with one level on one side drew nothing, and now shows that level's volume out to the plot's edge; a book with one side marks no middle price and no spread. With nothing to show, an equity curve, a depth chart and a waterfall draw their background instead of leaving the canvas clear.
  • A heatmap cell with no number (@tradecanvas/core, @tradecanvas/chart). A value of NaN took the colour of the cell drawn before it; it takes the scale's zero colour and shows its label alone, not NaN%. In a weighted heatmap, a weight of NaN left every cell without a place; that cell takes no room and the rest are laid out.

2.0.0-beta.2 (2026-11-12)

Live data

  • A retry is told once (@tradecanvas/core, @tradecanvas/chart). Each attempt to reconnect sent connectionChange with state: 'reconnecting' twice, the first time with the attempt before's number. It is one event an attempt now, with that attempt's number.
  • Leaving while a feed's first bars load aborts the request (@tradecanvas/core, @tradecanvas/chart). A disconnect(), or a switch to another symbol or timeframe, before the history had come left the feed's getBars running with its signal never aborted; only the requests of a series already streaming were. A switch that a newer switch overtook is aborted too.

2.0.0-beta.1 (2026-11-12)

The first beta of 2.0, under the npm tag beta: npm install @tradecanvas/chart@beta. latest stays 1.84.1 until 2.0 is final. 2.0.0-beta.0, published the same day, holds the same code.

Breaking: the default look

  • The chart and the widget open with more room (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons). A Chart now has a density: 'comfortable' (the default) or 'compact', the chart as it was.

- Comfortable: golden bars (the body 62% of its slot, which only the widget opened with before), 8 slots past the newest bar (from 5), φ⁻⁴·⁵ or 11.5% of the height free above and below the prices (from φ⁻⁵, 9%), a gap of φ⁻⁶ or 5.6% between the candles and the volume band (from φ⁻⁷, 3.4%), and the legend 12 px in from the plot's corner and 8 px down (from 8 and 6).

- new Chart(host, { density: 'compact' }) keeps the chart of 1.x. chart.setDensity() and getDensity() change and read it, and CHART_SPACING holds each density's numbers. barLayout and rightMargin still win when set.

- The React, Vue and Svelte components no longer set rightMargin: 5 themselves, so they take the chart's room too (@tradecanvas/react, @tradecanvas/vue, @tradecanvas/svelte).

  • The widget is laid out on even pixels (@tradecanvas/chart). A 33 px button around a 20 px icon left 6.5 px a side, and the icon's lines were soft. Every size and gap is now an even number, so what is centred lands on whole pixels.

- Sizes: Print's button and menu row are 34 px (from 33). The drawing tools' column is 40 px in Terminal, 48 in Capsule and 38 in Desk (from 39, 47, 37). Spacious sizes are even too, and on a wide screen each grown size goes to the even number nearest.

- Spacing (--tcw-space-1 to -7): 2, 4, 6, 8, 12, 20, 32, from 2, 3, 5, 8, 13, 21, 34. They are Fibonacci numbers on a 4 px grid, with 2 and 6 under them.

- Padding: 12 px beside a toolbar button's label, a menu row's text and the toolbar's first button, from 8 (--tcw-control-pad, --tcw-bar-pad, --tcw-menu-row-pad).

- A line of body text is 18 px at 13 px (--tcw-line-height), and an indicator's row on the chart 20 px (--tcw-legend-line).

- The toolbar's and the bottom bar's text buttons are a whole number of pixels wide where the browser can round a box sized by its content (Chrome and Edge 129 and later), so the icons after them are sharp too (--tcw-text-w).

  • ui: { density: 'classic' } is the widget as it was before 2.0 (@tradecanvas/chart). The sizes, spacing, padding and chart of 1.x: at 100% the same pixels on the chart, but for the price axis's tick marks, which are sharper; in a button wider than its label, the arrow keeps to the far edge. ui: { density: 'compact' }, the smaller controls with classic bars, is unchanged. chartOptions.density wins over the look's.
  • Lines are sharp at a screen scale of 125% and 150% (@tradecanvas/core, @tradecanvas/chart).

- The canvases take the browser's own count of device pixels where it gives one, so they are no longer stretched or shifted by a fraction of a pixel. Rounding the CSS size was off by one pixel as often as not, which softened everything drawn.

- The grid, the axes' lines and ticks, the last price's line, order, alert, limit and level lines, a pane's divider and the edges of price tags land on whole device pixels.

- A 1 px line is one device pixel wide at 125% and at 150%, as the browser draws a 1 px border. The crosshair was two pixels wide at 150%. A line of a width between whole pixels takes the whole pixels below it: 1.5 px is one device pixel at 100%, where it was two.

  • For a look of your own, evenPx(n) rounds a size to the even number nearest (@tradecanvas/commons). PRICE_SCALE_MARGIN is now φ⁻⁴·⁵, the default density's margin, and DEFAULT_CHART_OPTIONS.rightMargin and a Viewport made without one are 8 (@tradecanvas/core, @tradecanvas/commons).
  • A price label the top or the bottom of its pane would cut is left out (@tradecanvas/core). A round price right at a pane's edge was written with half its digits outside; its grid line stays.

Breaking: the names deprecated in 1.x are removed

  • One spelling for the time zone (@tradecanvas/chart, @tradecanvas/commons). Removed: chart.setTimezone, getTimezone, getEffectiveTimezone, getExchangeTimezone and setTimezoneOffset (use setTimeZone, getTimeZone, getEffectiveTimeZone, getExchangeTimeZone; setTimeZone takes minutes east of UTC too), EXCHANGE_TIMEZONE (use EXCHANGE_TIME_ZONE) and SymbolInfo.timezone (use timeZone).

- SymbolInfo.timezone is no longer read: a symbol that gives only that has no zone of its own: setTimeZone('exchange') and the dates of daily bars fall back to the market's zone or UTC, its own sessions are not shaded, and its status reads as a market that trades around the clock. A timezone still passed is carried along in getSymbolInfo() and nothing reads it.

- The widget's setting is still timezone (setSettings({ timezone: 'exchange' })), and the string keys settings.timezone and menu.chart.timezone keep their names.

  • 'date' is gone from TimeFormatContext.kind (@tradecanvas/commons). The axis has given 'year', 'month' or 'day' since 1.x.
  • SessionBreaks.setLocale() and renderLabels() are removed (@tradecanvas/core). Both did nothing.
  • The widget string replay.barsPerSecond is removed (@tradecanvas/chart). It was unused; the replay's speed reads replay.rate.
  • The docs have a page for the move from 1.x, Moving to 2.0, in six languages: what changed in the look and how to keep the look of 1.x, each removed name and what to use, and what changed without a name changing.

Chart

  • However many indicator panes are open, the price pane keeps its part of the chart (@tradecanvas/chart). Each pane kept the height it was given whatever the room, so six of them on a laptop left the price pane no height and the chart blank. Now the price pane keeps at least 38.2% of the height and the open panes share the rest, each by the same part of its own; a folded pane keeps its header. On a taller chart each pane is the height it was given again.

Widget

  • The panel beside the chart grows with the type on a wide screen (@tradecanvas/chart). The look draws larger from 1920 px, but the panel stayed 262 px wide, so an alert's options wrapped to three lines and the object tree cut its names short. Its width and its limits (233 to 377) now grow by the same scale; a width you dragged is kept as it is at a scale of 1.
  • Go to keeps its buttons in view in a short window (@tradecanvas/chart). Under about 630 px of height (a phone on its side) the month pushed Cancel and Go to off the dialog; the form now scrolls under them.
  • A select in a settings dialog is as tall as the number field beside it (32 px; the classic densities keep 30), and a dialog's close box is 34 px where the browser can round it (it was 33.98).

1.84.1 (2026-11-12)

Chart

  • The "+" by the price axis takes the click over a drawing's body (@tradecanvas/chart, @tradecanvas/core). A position's zone, or any filled drawing, that reached the price axis swallowed a click on the "+", though the "+" was drawn over it: no alert or order could be added at a price inside the zone. The "+" now comes first there, and the drawing under it no longer glows; only the selected drawing's handle still takes the press. Away from the "+" the drawing takes the click as before.

1.84.0 (2026-11-12)

Performance

  • Full indicator recomputes in a Web Worker (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons). With indicatorWorker: 'auto', a full recompute moves off the main thread when the series has 50,000 bars or more. A full recompute happens on new data, when an indicator is added, or when its inputs change. Ticks stay on the main thread.

- On 1M bars with EMA, RSI, MACD and Bollinger, the main thread is held 43 ms instead of 269 ms, and no frame waits more than 33 ms instead of 250 ms. The lines appear later (about a second), so the default stays 'off' in 1.x.

- Every built-in that reads only the bars and its inputs runs there; symbol indicators, chains on another indicator's line and registerIndicator's run where they did.

- The worker ships inside the package and loads on first use: nothing for the page to serve. Without workers (tests, a page whose CSP blocks blob:) it computes on the main thread.

- A read of an indicator's output (getIndicatorOutput, alerts, export) finishes a pending recompute first, so reads stay synchronous. getIndicatorOutput(id, { drawn: true }) gives what is drawn without waiting; the legend and the data window use it.

- While a recompute is out, the chart keeps drawing the previous output: after a symbol switch the previous lines stay until the new ones land, and a new indicator shows nothing yet. An alert on an indicator's line waits for the result instead of forcing the work onto the main thread.

  • The core package no longer ships the indicator worker's 732 kB sourcemap.

1.83.1 (2026-11-11)

Widget

  • A watchlist logo stays beside its ticker on any page (@tradecanvas/chart). A page whose reset makes images blocks (img { display: block }) put each row's logo on a line of its own, over the ticker, doubling the row's height. The logo is now inline whatever the page says.
  • The symbol search's filters stand off the search field (@tradecanvas/chart). The row of kinds and the exchange filter sat right on the rule under the search field, "All exchanges" border to border with it. The row under the field (in the compare dialog, the way to compare) now keeps the same space from it as from the list.

1.83.0 (2026-11-11)

Widget

  • A watchlist kept between visits takes the lists added later (@tradecanvas/chart). With watchlist.persist, the lists the user kept used to replace watchlist.lists for good, so a list a site added later never reached someone who had visited before. Now:

- the user's lists stay as they left them;

- a list added to lists later is added after theirs;

- one they removed stays removed.

- Lists kept before this version did not note what they were offered: a host list removed before then comes back once.

  • The watchlist opens from the toolbar where there is no rail (@tradecanvas/chart). A grid's charts have no rail of panels, so once the watchlist was shut, nothing opened it again. The toolbar now has a Watchlist button wherever the rail has none, as it has for the alerts and the objects.
  • A watchlist row shows the symbol's logo (@tradecanvas/chart), before its ticker, when the symbol has one (symbols given as SymbolInfo with a logo, as the symbol search shows them). A symbol without one shows no initial: the ticker beside it says the same.

1.82.0 (2026-11-11)

Drawings

  • Cursor kinds (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons). What the pointer looks like over the chart is now a choice:

- 'cross' (the default) draws the crosshair's lines with a crosshair cursor;

- 'dot' draws the same lines with a small dot for a cursor, in the crosshair's colour;

- 'arrow' draws no lines and keeps the arrow cursor, while the price and the time still follow the pointer on the axes.

Set it with crosshair.cursor in the options or chart.setCrosshairCursor(kind), which emits crosshairCursorChange. In ChartWidget, the cursor button at the top of the drawing tools opens a menu of the three, and the Chart Settings have the row; widget.setCrosshairCursor(kind) sets it. It is the viewer's own setting: persistSettings keeps it, and a layout or a shared link never carries it.

  • A drawing's span on the axes (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons). While a drawing is selected, moved or being drawn:

- the price axis is tinted from its lowest to its highest price, and the time axis from its first to its last time;

- each end is labelled in the drawing's colour;

- a horizontal line marks only its price and a vertical line only its time, and a drawing kept to the screen marks neither (a tool says which with DrawingDescriptor.axisSpan).

Turn it off with features.drawingAxisSpans: false or chart.setDrawingAxisSpansVisible(false).

  • The eraser shows what it takes. With the eraser on, the drawing a click would remove glows under the pointer, a selected one too.
  • The drawing tools' menus keep up with the pointer and the keys. A pointer heading down into an open menu may cross the buttons under its own; another button's menu now waits a moment before taking its place, so the item aimed at is the one picked. A menu opened from the keyboard gives the focus back to its button when it closes, and Escape on a button closes the menu the pointer opened.
  • An indicator pane's price at the pointer is as big as the chart's own, so it covers a drawing's label at the same price.
  • A hidden crosshair is hidden in the indicator panes too. With the crosshair hidden, the panes no longer draw its lines or its price on their axis.

1.81.0 (2026-11-11)

Data

  • A quote for a long symbol reaches the watchlist (@tradecanvas/commons, @tradecanvas/chart). 1.80.0 let a symbol be up to 160 characters, but a quote for one longer than 64 was still dropped, so a DEX pool whose symbol names its network, address and pair could sit in the watchlist with no price. Quotes now take the same 160. MAX_SYMBOL_LENGTH is exported from @tradecanvas/commons.

Widget

  • A quieter loading screen (@tradecanvas/chart). The candles that say a chart is loading stand alone: the yellow progress line under them and the panel behind them are gone. A slow switch of symbol or interval no longer blanks the chart under it to 55%. It dims it to 45% and blurs it slightly, so the chart stays in view while the next one loads.

1.80.0 (2026-11-11)

Widget

  • The ticker everywhere a symbol is named (@tradecanvas/chart, @tradecanvas/core). An indicator on another symbol ("Compare NVDA", "Ratio ETHUSDT"), also named so among the alert sources, shows the ticker without the venue before it, as the toolbar and the legend have since 1.79.0. So do a compare line's label, the compare toasts, the object tree's compares, the layouts dialog, the grid's tabs and the order ticket. tickerOf(symbol), from @tradecanvas/chart or @tradecanvas/commons, gives the same. A data export's column for such an indicator is headed the same way ("Compare ETHUSDT"). A watchlist row keeps a pair already written with its slash (a DEX pool's "WBTC/WETH") as it is, where it read "WBTC/W/ETH". A symbol may be up to 160 characters, where it was 64: a DEX pool's, which names its network, its address and its pair, was dropped from the watchlist and the search unseen.

1.79.2 (2026-11-11)

Widget

  • The symbol search's exchange filter keeps the kind tabs' row (@tradecanvas/chart). It shows beside an "All" tab even when no kind is known. With plain symbols such as BINANCE:BTCUSDT and KRAKEN:ETHUSD, which name their venues since 1.79.0, "All exchanges" stood alone at the end of an empty row.

1.79.1 (2026-11-11)

Widget

  • A watchlist's names keep their room (@tradecanvas/chart). A panel under 300 px drops the move, where it dropped it under 250 px. The dock opens at 262, so a watchlist starts as Symbol, Last and Chg%, and the move comes back as it is widened. At 262, a list with a price as small as PEPE's (0.00000528, a move of -0.00000003) ran its figures so wide that the names were cut to "ETH/US…" and "DOGE/…".

1.79.0 (2026-11-11)

Widget

  • A symbol shows as its ticker (@tradecanvas/chart, @tradecanvas/core). The venue before a colon no longer shows: HYPERLIQUID:xyz:NVDA reads NVDA and BINANCE:BTCUSDT reads BTCUSDT. This holds on the toolbar, in the legend (NVDA · 1h · Hyperliquid xyz), in the watermark, in the symbol search and in the info panel.

- The exchange names where a symbol trades. A search row whose feed names no exchange shows the venue in the exchange column, and the exchange filter offers it.

- The whole symbol is in each tooltip, and the toolbar button's label keeps it for a screen reader.

- A long ticker on a phone is cut short only when nothing else is left to give way.

  • A shorter watchlist (@tradecanvas/chart). A row is 24 px and its head 20, so a panel shows more symbols. A panel narrower than 250 px drops the move, so the price and the % still read.
  • The dock opens narrower (@tradecanvas/chart). A panel beside the chart starts 262 px wide, where it was 296, leaving the chart more room. It still widens from its edge up to 377 px.
  • Big drawing tools in a narrow column (@tradecanvas/chart). The tools are six buttons where there were thirteen: Lines, Fibonacci, Patterns, Forecasting, Shapes and Annotation.

- Each button's menu lists its tools under the kinds it gathers; Lines, for example, has lines, horizontal and vertical, and channels.

- With fewer buttons the column has room for them all: an icon is drawn at its full 26 px, where a short screen squeezed it to 23.

- The column is its buttons and little more: 42 px in Print, where it was 53. Each look's column narrows the same way, a tool keeping 3 px either side.

- A tool group of your own can head its tools the same way, with heading on the tool that starts each kind.

1.78.0 (2026-11-11)

Widget

  • The watchlist reads a line a symbol (@tradecanvas/chart). A row is the ticker, the last price, the move and the % change, in columns under their names, which stay at the top as the list scrolls. A row is about half as tall as before, so a panel shows twice the symbols.

- The sparkline beside each price is off; watchlist: { sparkline: true } brings it back, in the move's column, so a narrow panel still holds a name and three figures.

- A ticker shows without its venue: HYPERLIQUID:xyz:NVDA reads NVDA, with the whole symbol on hover. A long name no longer pushes the figures out of a narrow panel. The same ticker on two venues reads the same in one list: keep each venue's symbols in a list of its own.

1.77.0 (2026-11-10)

Features

  • A "Powered by TradeCanvas" badge (@tradecanvas/chart, @tradecanvas/svelte). For an app built on TradeCanvas that wants to say so: the words, the TC mark and the wordmark in one link to tradecanvas.dev, named "Powered by TradeCanvas" for screen readers. It takes the text colour around it, so it follows a light or dark theme with nothing to set; only the mark's candle keeps the brand's amber. It reads from 12 px up (14–16 in a status strip, 24 in a footer); the words are set in the page's own face and never fall under 10 px. In Svelte, &lt;PoweredBy size={14} /&gt;; anywhere else, createPoweredBy({ height: 14 }) gives the element and poweredByHtml() its markup, and TRADECANVAS_MARK_SVG and TRADECANVAS_WORDMARK_SVG are the outlined art alone.

1.76.0 (2026-11-10)

Drawings

  • Ellipses and freehand strokes, selected, read as the other shapes do (@tradecanvas/core). An ellipse's handles sit on its curve, at its top, foot and sides, each moving that side; they sat on the corners of its box, off the shape. A selected brush or highlighter stroke is framed as a text is, solid and rounded, in place of a dashed box, and the frame's room counts toward what the drawing covers, so the floating toolbar placed as it is picked keeps clear of it.
  • Text, notes, marks, patterns, Elliott waves and pitchforks read cleaner (@tradecanvas/core).

- A text, an icon or an arrow mark shows no handle: its ring sat on the text's first letter, hid the arrow's head and turned the star hollow. Selected, it is framed in its colour, and a press anywhere on it moves it, as dragging its point did.

- A callout keeps its box on the plot, its leader running to where the box lands; it ran under the price axis and was cut off.

- A price label is written in the prose face at the label size, on a box that grows with the type, in black or white, whichever reads on its colour; it was small figures in the numbers face.

- A balloon's bubble and tail are one outline, with no seam across the tail's base.

- Pattern and Elliott wave points are named outside them, over a peak and under a trough, clear of the handles; a name could sit under its handle or against the line. Ratios sit on their guides, moved along one, or just off it, to stay clear of names, handles and each other; one sat under point B. Primary-degree Elliott labels are figures in a ring of their own, which read at any size.

- A head and shoulders names its peaks in the prose face, shortened to LS, H and RS where the full names would meet; "Head" and "Right Shoulder" printed over each other.

- A pitchfork joins its tines with the B–C line and is tinted between them, its lines stopping at the plot's edge; a press on the B–C line picks it, and one past the plot's edge no longer does. The Schiff forks' guide to their shifted start is a light dashed line.

1.75.0 (2026-11-09)

Drawings

  • Measuring tools, positions and profiles read cleaner (@tradecanvas/core).

- A price range is tinted and edged in the rise or fall colour (or the colour picked for it), with an arrow up or down its middle and the change on a tag past the end it went to; its box was blue-edged with the change as bare text in its middle. A date range has sharp edges, an arrow across, and its bars and time on a tag ("60 bars · 2d 12h"; it gave the bars only, at the plot's top under the legend), its handles halfway up the plot. A date and price range draws the arrow heads it was meant to, and a faint edge. A measure too short for its arrow head draws its arrow without one, not a head out past its box.

- A measure writes its figures without "Price:" and "Bars:", and stats read with " · " between them.

- Rises and falls take the theme's profit and loss colours (the trading.profitColor and trading.lossColor style keys), green and red without them: a price range, a date and price range's fall, a Long/Short position's zones and tags, and a forecast, which had a green and a red of its own. A position's zones are edged at the target and the stop and its entry line is sharp, with its tag past the entry's handle rather than under it; a forecast's line stops at its target's ring, which marks the target in place of an arrow head over it.

- A bars pattern marks the bars it copies with a light band over them, its first two handles on its corners, not a dashed line from one point's price to the other's, which read as a trend line; the copy's bars are sharp and stronger, and outlined while it is selected.

- A volume profile draws its histogram inside the range it measures, from its left edge and at most a third of its width, with the range outlined, the value area (70% of the volume) shaded stronger and the point of control across the range; it drew 100 px past the range's end over the bars after it. Its handles sit on the range's corners, and an anchored VWAP's on the VWAP where it starts, not at prices that mean nothing to them.

- Chart.getDrawingRect takes in a drawing's tags and handles where they sit off its points, so ChartWidget's floating toolbar over a selected drawing no longer covers them.

  • Lines, channels, Fibonacci and Gann tools read cleaner (@tradecanvas/core).

- Each Fibonacci ratio drawn with others has a colour of its own: 0.618 and 0.75, and 0.786 and 1.618, were alike, and 0.786 matched the default line. Every level colour keeps 3:1 as a line on the light theme, and level labels are deepened to read as text.

- Bands between levels are shaded alike, not more strongly the higher they go. Percentages are written whole when they are (50%, 100%, not 50.0%), and the 0 and 100% labels are drawn first. A label goes above its line, under it, or under the legend, whichever is clear of the legend and of the labels drawn before it; a level with none clear is left unlabelled, never 0 and 100%. A Fibonacci channel's labels follow the same rule.

- Fibonacci time zones start from their 0 line, shown by default (saved zones that kept the default levels show it too), and their handles and a cyclic lines' sit on their lines halfway up the plot, not at prices that mean nothing to them, clear of the legend, the buttons over the time axis and a pane divider's touch reach, so a finger on one drags it. Their lines are sharp, and their numbers full strength, under the legend where it covers them, one left out where it would cover another's.

- A Gann box draws its grid as sharp 1 px lines and labels its divisions in price down its side and in time under it, at the label size, leaving out one that would cover another; they were 8 px at 60%, on the price side only. A Gann fan labels every angle where it leaves the plot (2x1 to 8x1 had none), under the legend by the plot's top, and draws the angles other than the 1x1 as 1 px guides. A Gann square's grid is sharp and lighter, its arcs in the levels' colours and its line.

- A speed resistance fan draws its rays in their levels' colours, its time rays dashed and labelled too. Fib circles, arcs, wedges and pitchfans keep their labels off their guides and label the 1 level first; a circle's label sits up and to its right, so nested circles' labels step apart. A spiral winds in to a few px from its centre, not to a dot.

- Guides (a Fibonacci tool's trend line, a trend angle's reference and arc, a channel's middle line) are 1 px dashes, lighter than the tool's own lines. A horizontal ray's price starts past the handle at its start.

  • A parallel channel is its base line moved straight up or down to its third point (@tradecanvas/core). It was moved square to the line, so a steep channel slid sideways in time, and it didn't match the line its alerts follow; saved channels draw where their alerts already were. Its fill is drawn under its lines, and its third handle sits on the parallel, halfway along, not where the third point was clicked (often off every line).
  • A regression channel is a regression (@tradecanvas/core). It is the least-squares line through the closes between its two points, with bands two standard deviations either side; it was a band of fixed width round the line between the points. Its points set the bars it covers, and its handles sit on the line at its ends, at the last bar for a point past it. A fit is worked out once for the same bars, not on every frame. Shift no longer keeps its points at 45°, since their prices mean nothing to it.
  • Every drawing tool is drawn one way, and reads better (@tradecanvas/chart, @tradecanvas/core, @tradecanvas/commons).

- Handles are rings in the drawing's colour, filled with the chart's background (drawings.handleColor still sets the fill), a size over the line: 9 px across on a 1 px line, up to 16 px on a thick one. They were 8 px white squares at any width. The handle under the pointer grows and the one being dragged fills with the colour. The others of a selection and a locked drawing show small dots, since a drag doesn't reshape them, and the nearest handle in reach is the one taken, not the first.

- A drawing under the pointer glows a little on its lines, so it is plain which one a click takes; the glow goes when the pointer leaves the chart. It is drawn on the pointer's layer, so crossing many drawings never draws them all again. A drawing being made shows its placed points as handles, the first one too, before the pointer moves on (a tap on a phone).

- Text people write (a Text, a note, a callout, a signpost, the words on a line or a box) is set at 14 px in the system's sans face, and figures (level prices, ratios, stats, Gann and volume profile marks) at 12 px, or 11 px for dense marks, from 8 to 12 px before. Both grow with the chart's type, so the widget's wide-screen sizes reach them. New font.textFamily on the chart (and setFont) gives the words a face of their own; the widget gives them its look's. A saved size of 12, the old default for every drawing, reads as none, so the widget's size list no longer offers 12; DEFAULT_DRAWING_STYLE no longer sets fontSize.

- A drawing's fill follows its colour unless one was set on its own: a rectangle, a note, a polyline or a date range turned red fills red, where it stayed blue (a date and price range's fall stays red). The old default fill reads as "follow the line" (LINE_TINT_FILL, and ownFillColor for a fill set by hand, in @tradecanvas/commons), and DEFAULT_DRAWING_STYLE.fillOpacity is 0.12, as strong as that tint. The volume profile's point of control, which took that fill and could not be seen, is amber.

- Dashes and dots are in proportion to the line, dots are round, and a solid line's ends are round. Arrowheads grow with the line, and a path's arrowhead is solid and pointed whatever the line's dash.

- Stats and measure boxes are the chart's own surface and text colour with rounded corners, not a dark box in both themes. Text on a coloured tag (Long/Short labels, a vertical line's time) is black or white, whichever reads. Words in a drawing's colour are deepened where they would not read on a light background, and text without a box has a halo. Text boxes have rounded corners on whole pixels. Stats boxes and the anchored VWAP's and the volume profile's labels stay on the plot instead of running under the price axis.

Chart

  • A chart paints its element in the theme's background from the start (@tradecanvas/chart). It did so only on setTheme, so a new Chart(el, { theme: 'dark' }) on a light page drew its dark theme on white. An element the host gave a background keeps it.

1.74.0 (2026-11-09)

Widget

  • The Print look is lighter to look at (@tradecanvas/chart).

- Its icons are a size larger, 20 px in the toolbar and 26 px in the drawing tools, from 16 and 20, and drawn in 1 px lines at every size, finer than the 16 px icons' 1.2 px; their filled dots (a drawing tool's anchors) are smaller to match. Buttons are 33 px, from 26; the toolbar stays 42 px. Compact and spacious move a half step of φ with them.

- Labels such as section titles are written as they are, not in spaced capitals, a size up (11 px) so they still read, and emphasis is a medium weight (500), not semibold. In every look, labels as written are a size up from labels in capitals.

- The chart type's icon in the toolbar is the size of the other toolbar icons.

- A drawing tool group with more tools is marked by a small triangle in the very corner of its button, not a dot, which read as one of the tool's own anchors. Right to left it sits in the other corner.

- On Windows 11 the face is Segoe UI Variable, lighter than Segoe UI with a true medium weight; older Windows keeps Segoe UI. Figures on the chart stay in Segoe UI, whose digits are one width.

- Menus and dialogs sit on a fainter line with a wider shadow.

- New ui.iconStroke: the icons' line width in CSS px, the same at every icon size, from 0.5 to 3. 0 draws them as the icon set does, as the Studio, Terminal, Capsule and Desk looks still do.

- Where the drawing tools' column is too short for them all (a 1366 × 768 laptop), they shrink down to the icon size and 2 px a side (24 px in Print) before it scrolls, not the button size, so the column fits a 768 px tall window.

  • iconSvg marks its SVG with the class tc-icon (@tradecanvas/commons), which the widget's line width reads.

1.73.2 (2026-11-08)

Widget

  • A toolbar a fraction of a pixel wide keeps its buttons (@tradecanvas/chart). A widget in half of a 1535 px grid has a toolbar 767.5 px wide. Collapsed, its "more" sits right at the end of the room, which the fit counted as a pixel past it, so every button folded and the bar switched to icons: buttons from addToolbarButton or addToolbarDropdown with side: 'left' folded too, with half the bar empty. Now only the buttons that do not fit fold.

1.73.1 (2026-11-07)

Widget

  • An exchange shows whole in the symbol search (@tradecanvas/chart). Its column takes the exchange's width up to 144 px, from 89, and the description gives way first, so "XYZ · HYPERLIQUID" no longer ends in an ellipsis in a desktop-sized dialog. A phone keeps its 55 px column.

1.73.0 (2026-11-07)

Widget

  • The widget opens with more bars on screen (@tradecanvas/chart).

- Its chart opens with golden bars: a candle's body is φ⁻¹ (62%) of its slot at every zoom, and the slot opens at φ⁴ ≈ 6.85 px. A 1920 px screen shows about 250 bars, from about 170; a 1280 px one about 160, from 107.

- ui: { density: 'compact' } keeps the classic bars, a 2 px gap in a 10 px slot. chartOptions.barLayout still wins over the look.

- Golden bars were on only with density: 'airy', which now adds the spacious controls and the sans figures. A Chart of your own keeps 'classic' as its default.

  • The drawing tools are a size bigger (@tradecanvas/chart).

- Their buttons and icons are a half step of φ over the widget's other buttons. In the Print look the button is 33 px with a 20 px icon, in a 53 px column; it was 26 px with a 16 px icon, in a 42 px column. At 1920 px that is 36 and 22. The dock's rail matches the column.

- Where the column is too short for every tool (a 1366 × 768 laptop), the buttons shrink back, down to the other buttons' size, before it scrolls. The icons keep their size.

- density: 'compact' keeps them at the other buttons' size. A narrower sizes.sidebar shrinks them to fit, 6 px in from each side.

- A tool group's menu opens at the column's edge, and the group answers the pointer across the column's whole width, so a slow move from a button to its menu no longer closes it.

- The cursor's icon is no longer drawn smaller than the other tools' icons (the browser's button padding squeezed it).

  • Quieter search fields and a close you can see in the dialogs (@tradecanvas/chart).

- The search in the symbol search, the indicators dialog, the command palette, the keyboard shortcuts and the layouts is a band across the dialog with a rule under it, set in as the title. It has no box and no accent ring when focused, and its text is a size larger (15 px by default).

- A dialog's close is sized from its title: about 13 px across at a 21 px title, a 34 px target, its edge at the text's edge. It was 8 px of thin lines. The header keeps its height.

- A search field's clear button is the widget's close icon in the muted text, instead of the browser's (bold, and blue in Chrome's light scheme).

  • The symbol search grows with a wide screen (@tradecanvas/chart).

- It is 610 px wide up to a 1597 px screen, then 38.2% of the screen, up to 987 px: about 733 px at 1920, 978 px at 2560.

- Its symbol column takes up to a quarter of the list, from 144 px to 233 px, so ids with a venue before the ticker (HYPERLIQUID:xyz:SP500) show whole on a wide screen.

- A symbol keeps a gap twice the columns' from its description (BINANCE:BTCUSDT ran into its name). On a phone the column keeps that room for the ticker, as before.

1.72.2 (2026-11-07)

Widget

  • The open Chart Settings follow every change (@tradecanvas/chart).

- A setting read back from the chart (widget.getSettings() after a change made on getChart()) shows in the open dialog; it used to keep the old value.

- The dialog is built again only when something it shows changed, so widget.setSettings() with the values it already shows no longer redraws it under the user's pointer.

1.72.1 (2026-11-06)

React, Vue and Svelte components: 1.4.4.

Widget

  • The indicators dialog, the command palette and the symbol search load when they are needed (@tradecanvas/chart).

- Their code loads the first time one opens, or once the page is idle after the widget is up, like the settings dialogs since 1.72.0.

- new ChartWidget() brings in 385.8 kB of JavaScript gzipped instead of 394.6 kB (1,457 kB instead of 1,491 kB before compression).

- Letters typed on the chart while the symbol search's code loads are all kept: it opens with every one of them.

1.72.0 (2026-11-06)

Widget

  • The dialogs load when they are needed (@tradecanvas/chart).

- The chart settings, an indicator's and a drawing's settings, Go to and the shortcut sheet load their code the first time one opens, or once the page is idle after the widget is up, whichever comes first.

- new ChartWidget() brings in 394.6 kB of JavaScript gzipped instead of 405.3 kB (1,491 kB instead of 1,549 kB before compression).

- A bundler puts the dialogs in files of their own. If you serve the package's files yourself, copy the whole dist folder, not only the entry files.

- If a dialog's code can't be loaded (a dropped connection), the widget says so, and tries again the next time it is opened.

- widget.setTheme() gives the watermark the ink of the new mode, as the theme button does; before, it kept the old one.

1.71.0 (2026-11-05)

Indicators

  • Every built-in indicator says what each input takes (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart, @tradecanvas/mcp).

- An input's new kind ('int', 'number', 'boolean', 'choice', 'source', 'color', 'text'), with its min, max and step, decides its field in ChartWidget's indicator settings. Unset, it is read from the default, as before.

- The settings no longer take a period below the lowest value the indicator uses, step Parabolic SAR's step and maximum by 0.01, and round a whole number as it is typed, so the field shows the value the indicator computes with.

- describeInputs(descriptor) lists an indicator's inputs as the settings dialog reads them. The generated docs, the notes on BuiltInIndicators and the MCP catalog read the same list, and the catalog adds each indicator's group.

- Supertrend no longer throws with a period of 1.

  • An indicator's look is declared in its descriptor (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart).

- fills shade between two plots, under the lines, where both have a value: { between: ['upper', 'lower'], color: 0, opacity: 0.1 }.

- A plot's width keeps it at that width whatever the indicator's, lineStyle dashes it until its style says otherwise, opacity sets it back, and breakOn breaks its line where a field such as session changes.

- A band or channel of your own needs no render method. The built-in moving averages, channels, bands, VWAPs, pivot points, Chandelier Exit, Supertrend and Parabolic SAR are drawn this way; only those drawn other than one value a bar (Ichimoku, Zig Zag, the volume profiles, candle patterns, Chop Zone, Elder Ray) draw themselves.

- In ChartWidget's indicator settings, a line its indicator dashes shows as dashed, and Cancel and Reset put it back dashed instead of solid.

- Supertrend is drawn at the width the settings show, half a pixel thinner than before. The dashed lines of Chandelier Exit, the pivot levels and Session VWAP's bands take the same dash as the other indicators.

- The pivot levels other than P stay 1 px whatever the width set, like Session VWAP's bands and Donchian's middle line; before, they were drawn 1 px thinner than it.

- Zoomed far out, Parabolic SAR draws one dot per pixel column, like the other dot plots. Session VWAP's bands are drawn over its line instead of under it.

1.70.0 (2026-11-04)

Indicators

  • An undo, a redo and a loaded layout put the indicators back as they were (@tradecanvas/chart, @tradecanvas/core).

- An indicator taken down and put back keeps its place in the list, so the legend, the order overlays are drawn in and a pane's stack no longer shift. A layout saved with an indicator listed before its pane's host loads in that order.

- An input the indicator didn't have (period on MACD, say) is taken back by an undo instead of staying.

- A drawing on a pane that another indicator took over goes back to its pane on undo when that pane held other indicators too, instead of landing on a pane that is gone.

- IndicatorEngine.orderIndicators(ids) puts the engine's indicators in a given order.

1.69.0 (2026-11-03)

Data

  • A data source of your own in two methods: DataFeed (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart, React, Vue and Svelte components).

- getBars({ symbol, timeframe, countBack, before, signal }) answers with bars; subscribeBars(request, subscriber) sends live ones and returns its unsubscribe. The chart pages back, reconnects, builds the timeframes the feed lacks and subscribes again on a switch.

- The signal is aborted when the answer is no longer needed, and what a subscription sends after its unsubscribe is dropped, so a late socket can't put one symbol's bars on another.

- It goes where an adapter goes: chart.connect({ feed, … }), the widget's feed option, ChartGrid.connectAll(feed, …) and the components' feed prop. One feed serves any number of charts, a whole ChartWidgetGrid included.

- ManualFeed keeps the bars you give it and sends the ones you push to the charts on that series, so pushed bars have one writer.

- A feed with only the newest bars sets pagesBack: false. A quiet feed (a daily chart, a closed market) is not taken for a dead one: a feed reports a dropped connection itself.

- feedFromAdapter and adapterFromFeed convert between the two; adapters work as before. StreamConfig.adapter is now optional (give it or feed).

1.68.1 (2026-11-03)

React, Vue and Svelte components: 1.3.61.

Performance

  • A long history keeps its frame rate under a busy feed (@tradecanvas/core, @tradecanvas/chart).

- The time axis no longer looks at every bar's time on each frame; the day and month lines look only at the bars that arrive; the depth heatmap measures how far apart a snapshot's levels are once, when it comes in.

- On a million one-second bars, with 30,000 trades a second, four indicators, orders and the heatmap, the widget went from about 29 to about 57 frames a second, and the main-thread tasks over 50 ms, about one a second, are gone. Over ten minutes its memory, its DOM nodes and its event listeners stayed level.

- pnpm soak runs this on your machine.

1.68.0 (2026-11-02)

React, Vue and Svelte components: 1.3.60.

Drawings

  • A click on a line's words picks it (@tradecanvas/core, @tradecanvas/chart).

- These drawings are picked by a click on their words as well as on the line: a trend line, ray, extended, info or angle line, arrow, and horizontal or vertical line.

- A rectangle with no fill is picked by a click on its words inside it.

- A tap on a phone works the same way.

- The toolbar over a selected line keeps clear of the words, so a press on them grabs the line.

  • Escape calls a drag off (@tradecanvas/core).

- While a drawing is moved or reshaped, Escape puts it back where it was.

- A copy being dragged out with Ctrl or ⌘ goes.

- Nothing is left to undo, and moving on before letting go moves nothing.

  • The object tree lists the top drawing first (@tradecanvas/chart).

- The widget's object tree lists the drawings as they stack, the one on top first.

- The arrow keys on a grip move a drawing one row up or down the list and the stack together.

1.67.0 (2026-11-02)

React, Vue and Svelte components: 1.3.59.

Widget

  • The widget fits wide screens (@tradecanvas/chart). A 4K screen is no longer all small print.

- The bars, buttons, icons and type grow with the widget's width, and the chart's axis type grows with them.

- Up to full HD they stay as set up. From there they grow by a fraction of φ: a sixth bigger from 1800 px wide, a third from 2560 (4K at 150%) and a half from 3400 (4K at 100%).

- ui.scale takes 'auto' (the default) or a number from 0.75 to 2, which sets the scale at every width. 1 keeps the sizes.

- widgetScaleFor(width) and scaledWidgetUI(ui, factor) give a host the same sizes.

- Sizes set in chartOptions.font stay as given, and so do sizes a host sets on the chart later.

- With no ui given, only the sizes that grow are set inline, so a host's own CSS tokens stay.

- The scale changes only once the width is 24 px past a step, so a scrollbar cannot make it flicker.

Drawings

  • Text typed in place (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart).

- These tools open a box over their words, in their own font and colour, as soon as they are drawn and on a double-click: a text, a note, a callout, a signpost, a balloon, and an anchored text or note.

- Enter or a click away keeps the words. Shift+Enter starts a new line. Escape puts them back.

- A text just drawn goes on Escape, or when it is left with no words.

- The box follows the text as the chart scrolls or zooms, and the keys typed in it stay out of the chart.

- The box stays inside the window and wraps a long line. Once its text has been off the window for a moment, the box closes and keeps the words.

- A press anywhere else keeps the words before the chart takes it. On a phone this is a tap.

- The second press of a double-click that drew the text does not close the box.

- Enter and Escape that pick an IME word stay with the IME, and Enter or Escape give the keyboard back to the chart.

- The toolbar over a selected text keeps clear of its words.

- One undo takes a text just drawn and its words away together.

- The settings dialog stays a click away. A locked text, or one whose words are hidden, still opens its settings.

- DrawingPlugin.textBox(state, viewport) tells where a tool drew its text box, and Chart.getDrawingTextRect(id) reads it, to lay an editor of your own over the words.

- Chart.amendNewDrawing(id, patch) and DrawingManager.amendNew change a drawing just made within the step that made it.

1.66.0 (2026-11-02)

React, Vue and Svelte components: 1.3.58.

Drawings

  • Signpost, balloon, and a text and a note kept to the screen (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). There are now 73 drawing tools.

- signpost writes its text on a board atop a post that stands on a bar.

- balloon writes its text in a bubble whose tail points at a bar.

- anchoredText and anchoredNote stay where they are put on the plot as the chart scrolls, zooms or changes symbol. A per-symbol layout (layoutKeyPrefix) that loads its own drawings replaces them, as it does any drawing.

- A signpost's board hangs under its point near the plot's top, and a signpost or a balloon slides along to stay on the plot sideways.

- DrawingDescriptor.anchoring: 'screen' keeps a tool's points as shares of its pane's plot: time across from the left edge, price down from the top, each from 0 to 1. A plugin can use it too. Points given or loaded outside 0 to 1 are kept to the plot's edges, and a screen point is drawn far enough in from the edges for its text to show. Creating, dragging, the arrow keys, pasting, duplicating, the selection box, loading a layout and getDrawingRect all read such points that way.

- DrawingManager.anchorPoint(type, anchor, viewport) says where any drawing's point shows on the plot.

- The MCP server's list_drawing_tools marks these tools anchoring: 'screen' and says how their anchors read (@tradecanvas/mcp).

- The widget lists the four in its annotation group and asks for their words as soon as they are drawn. A drawing kept to the screen has no Coordinates tab in its settings.

1.65.0 (2026-11-02)

React, Vue and Svelte components: 1.3.57.

Drawings

  • Names for drawings, and an object tree that works on them (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart).

- DrawingState.name names a drawing, in at most 80 characters, and saved layouts keep it. updateDrawing(id, { name }) sets it, and null or a blank name clears it.

- The widget's object tree lists a drawing by its name, or by its tool's name when it has none.

- In the tree, a click on a drawing's name selects it on the chart, and a double-click renames it.

- A button on the row clones the drawing.

- A grip drags the drawing onto another row's place in the order. With the grip focused, the arrow keys move the drawing one row up or down. A drawing in a group has no grip: it moves with its group.

- addDrawing and setDrawings take a name, and a pasted drawing keeps its original's.

- moveDrawing(id, index) puts a drawing at a place in the order: 0 is the bottom, as getDrawings() lists them. It still takes 'front', 'back', 'forward' and 'backward'.

1.64.0 (2026-11-02)

React, Vue and Svelte components: 1.3.56.

Drawings

  • Text on lines and boxes (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart).

- These tools now take a text in the text style the text tools use: a trend line, a ray, an extended, info or angle line, an arrow, a horizontal or a vertical line, and a rectangle.

- textAlign puts the text at the line's left end, its middle (the default) or its right end. The new style key textVAlign puts it above the line (the default), on it or under it.

- In a rectangle, the two keys place the text inside the box, at its top, middle or bottom.

- The text follows the line's slope. It reads left to right, and bottom to top along a vertical line.

- It is placed on the part of the line that is on the chart, so a ray's or an extended line's text sits at the chart's edge and stays in sight as the points scroll off.

- A horizontal line's price label moves out of the text's way.

- The widget's Text tab has an Align row and a Vertical align row for these tools.

  • A level's price, a vertical line's time (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart).

- A horizontal line and a horizontal ray hide their price with the new option showPrice: false.

- A vertical line shows its bar's time with the new option showTime: true, on a tag at its foot, written as the crosshair writes it. ViewportState.formatTime carries the chart's time format to the drawings.

  • Eight handles on a rectangle (@tradecanvas/core). A rectangle has a handle at each corner and one in the middle of each side. A side's handle moves that side alone.
  • Fibonacci trend line and one colour (@tradecanvas/core, @tradecanvas/chart).

- A Fibonacci retracement and extension draw a dashed line through their points, saved ones included. The new option trendLine turns it off.

- With the new option oneColor, all the levels are drawn in the drawing's colour.

1.63.0 (2026-11-02)

React, Vue and Svelte components: 1.3.55.

Drawings

  • Editing drawings with the pointer and the keys (@tradecanvas/core, @tradecanvas/chart).

- The magnet works on a dragged handle and on a moved drawing too. The point nearest where it was grabbed lands on a price, and the rest keep their place to it. The weak magnet reaches 50 px, up from 30.

- Hold Ctrl or ⌘ while drawing or dragging to turn the magnet over for that moment: on when it is off, off when it is on.

- Hold Shift while drawing or dragging a handle to keep the line flat, upright or at 45° on screen. This holds for lines and paths; a box, a channel's width or a pitchfork's point stays free. Shift + drag measures only on empty chart now, not on a drawing or while a tool places points.

- The arrow keys move the selected drawings a bar across or a pixel up or down; with Shift, ten. A run of presses is one undo step, and locked drawings stay. With nothing selected, the arrows scroll the chart as before.

- Ctrl/⌘ + drag on a drawing drags out a copy, of the whole selection when the drawing is in it, as one undo step. The copy is unlocked and out of the original's group, only tools the chart allows are copied, and a copy dragged back onto its original is not made. On a handle of the selected drawing, Ctrl/⌘ + drag reshapes it with the magnet turned over instead. Ctrl/⌘ + click still adds a drawing to the selection or takes it out, and Ctrl/⌘ + drag on empty chart still draws a selection box.

- The widget's shortcut sheet lists the four. DrawingManager gains setModifiers, nudge and beginCopyDrag.

1.62.0 (2026-11-02)

React, Vue and Svelte components: 1.3.54.

Drawings

  • Text on the chart has a style of its own (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). DrawingStyle takes bold, italic, textColor, textAlign, textBackground (drawn in fillColor), textBorder (in borderColor) and textWrap (px; 0 wraps only where the text breaks). How the text tools use them:

- The Text tool writes several lines, wraps at a width when given one, and can have a background and a border. It is picked anywhere on its text as drawn; before, only on a guessed 80 px.

- A Note and a Callout keep their box and their 240 px width unless their style says otherwise.

- A Price Label and an Arrow Mark write in bold, italics and their text colour.

  • The widget asks for a text's words and starts without the magnet (@tradecanvas/chart).

- The Text tab sets bold, italics and the text colour. For a Text, a Note or a Callout it also sets the alignment, background, border and wrap width.

- A Text, a Note or a Callout opens its settings on that tab as soon as it is drawn, with the text selected. Cancel there takes the drawing back. A double-click on one opens the same tab.

- The toolbar over a selection sets the fill and the text colour of the tools that have them. For a Text, picking a fill turns its background on.

- chart.takeBackDrawing(id) takes back a drawing just made. It goes with its undo step when that is the history's last, so nothing is left to undo or redo. The drawingCreate event says drawn: true for a drawing the pointer just made; a drawing added from code, pasted, or brought back by undo has no such flag.

- The widget now starts with the drawing magnet off, so a drawing, text included, goes where it is placed until the magnet button turns it on. The crosshair still follows the bars.

1.61.0 (2026-11-02)

React, Vue and Svelte components: 1.3.53.

Drawings

  • Drawings on indicator panes (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). A trend line, a level, a box or any other tool begun on an indicator pane (RSI, MACD…) is made on that pane. Its anchors' prices are the pane's values, the magnet snaps to the pane's lines instead of the bars, and the drawing moves and scales with the pane and is clipped to it. Selecting, dragging, the eraser, the right-click menu and the toolbar over a selection all work there. DrawingState.paneId holds the pane's id, as getIndicatorPanes() lists them. It is unset for the price pane, so saved layouts load as before. addDrawing({ …, paneId }) puts a drawing on a pane from code. When the pane's indicator is removed and another in the pane takes it over, the drawings follow it, through undo and redo too. When a pane goes, its drawings are hidden, and undo brings them back with it. Loading a layout puts drawings back on their panes, and drops those whose pane is not in it. Side panes and folded ones take no drawings. The tools that read the bars' prices (Anchored VWAP, Volume Profile, Long/Short Position; priceOnly in a tool's descriptor) stay on the price pane. A pane's drawing takes no price alert. IndicatorEngine.getPaneValuesAt(pane, bar) lists the values a pane draws at a bar. The browser audit gains a scene of drawings on panes.

Drawings and indicators

  • The trash button asks what to remove (@tradecanvas/core, @tradecanvas/chart). In the widget's drawing bar it opens a menu: remove the drawings, the indicators, or both, each with how many there are. Whatever is picked goes in one undo step, so one Ctrl+Z brings it all back. It used to remove every drawing, locked ones too, with no undo. Locked drawings now stay, as they do when a selection is removed, and are not counted. The command palette offers the three as well. From code, chart.removeAll(what) takes 'drawings', 'indicators' or 'all' (the default) and returns how many of each went. UndoRedoManager.group(fn) keeps every step that fn records, drawings and indicators alike, as one.
  • A drawing tool of your own has a type (@tradecanvas/commons, @tradecanvas/chart). The name a plugin registers (descriptor.type) used to be rejected by TypeScript wherever the chart takes a tool's name, though it worked at run time. DrawingToolType now takes any name and still completes the built-in ones. The built-in names are in the new BuiltInDrawingToolType. A misspelt built-in name ('trendLIne') now compiles too, so type a value as BuiltInDrawingToolType where that should be caught. The MCP server still lists the built-in names, and validate_options notes a name that looks like a mistyped one instead of rejecting a plugin's (@tradecanvas/mcp).

1.60.0 (2026-11-02)

React, Vue and Svelte components: 1.3.52.

Docs and agents

  • The docs' samples match the library (@tradecanvas/commons, @tradecanvas/chart, @tradecanvas/mcp). Every code sample in the docs was compiled against the built packages. ReconnectManager and ReplayController are now exported from @tradecanvas/chart, as the realtime page imports them, with the replay's types. Ten chart events had no payload type, so e.payload was unknown in TypeScript: executionFill, ordersChange, positionsChange, positionReverse, chartContextMenu, priceAxisAdd, drawingUpdate, drawingDoubleClick, drawingContextMenu and toolModeChange now carry theirs (a cast of one to a shape it does not have no longer compiles; drop it). Samples that were wrong are fixed in all six languages: a trade zone's direction (not side), widget.getChart() (not widget.chart), a time formatter given an offset, and the feed events barClose and snapshot. The styling page's fonts follow the looks as they are now (Print's figures in Segoe UI, Roboto, Helvetica Neue or Arial; Desk in Tahoma), and the READMEs, the styling page and llms.txt count five looks with Desk.
  • The MCP server finds nested options and checks number locales (@tradecanvas/mcp). list_options looks one level in when given words to find, and names what it finds by its path (chartOptions.numberLocale, features.priceAxisAddButton); validate_options reports a numberLocale that no number can be written in (korean, en_US, with en-US suggested). numberLocale's doc says ko-KR writes volumes in 만, 억 and 조 and lists the formats the widget's settings offer; chartOptions and locale have docs that say what they hold now. The skill says how to add the server.

1.59.3 (2026-11-01)

React, Vue and Svelte components: 1.3.51.

Markets

  • The Date and Price Range box writes volumes as the chart's numbers read (@tradecanvas/core, @tradecanvas/chart). With numberLocale: 'ko-KR' the box's volume reads in 만, 억 and 조 (Vol 275.29만), as the legend, the crosshair tooltip and the data window already did; in other locales K, M and B take the locale's decimal mark (Vol 2,75M under de-DE). The API page in all six languages and the skill describe it.

1.59.2 (2026-11-01)

React, Vue and Svelte components: 1.3.50.

Fixes

  • The legend no longer covers a trading tag near the top of the plot (@tradecanvas/core, @tradecanvas/chart). On a narrow chart, a take-profit, stop or order whose tag sat under the OHLCV legend had its text and buttons drawn over by the legend's rows. The legend is now drawn around the tags, so a tag under it stays whole and its buttons can be seen and pressed; the part of the legend under the tag is left out. TradingManager.tagRects() tells where the tags were drawn.
  • Volumes in the number locale's decimal mark (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). The OHLCV legend and ChartWidget's data window wrote K, M and B with a point in every locale (66.10K under de-DE); they now write them as the number locale does (66,10K), as the crosshair tooltip already did. formatVolumeLoc writes a locale it has no table for as Intl writes it.

1.59.1 (2026-11-01)

React, Vue and Svelte components: 1.3.49.

Fixes

  • The "+" by the price axis no longer covers the trading tags' buttons (@tradecanvas/core, @tradecanvas/chart). With features.priceAxisAddButton on (ChartWidget turns it on with trading or alerts), the "+" that follows the crosshair sat over the right end of the order and position tags, on their close button, and took a press meant for it. While the "+" shows, the tags now end left of its strip. PRICE_AXIS_ADD_STRIP in @tradecanvas/core is that strip's width; TradingManager.setTagInset(px) keeps the tags that far from the plot's right edge. setFeatures({ priceAxisAddButton }), which ChartWidget's settings use, now turns the "+" off and on as setPriceAxisAddButton does; before, the "+" switched off that way still took presses. The trading page in all six languages describes it.

1.59.0 (2026-11-01)

React, Vue and Svelte components: 1.3.48. 1.58.0 was versioned but not published; its changes are here.

Widget

  • The chart's figures in the look's face, and a Desk look (@tradecanvas/chart). ChartWidget's chart now draws its figures (axes, price tags, the crosshair's pills, the legend) in the look's figures face. In the default Print look that is a sans face whose digits are one width (Segoe UI on Windows, Helvetica Neue on Apple systems, Roboto on Android) rather than a monospaced one, so prices still line up in columns. The other looks' axes move from the theme's Cascadia Mono to the face their legend already used: JetBrains Mono's list in Studio and Capsule, IBM Plex Mono's in Terminal. A new look, 'desk' (ui: 'desk' or setUI('desk')), is a desktop trading platform's window: Tahoma at 12 px for the labels and the figures alike, square corners and price tags, bars a step tighter, rules between groups and a tinted chosen button. chartOptions.font.family still wins over the look's face (chartOptions: { font: { family: DEFAULT_FONT_FAMILY } } brings the monospaced figures back); the plain Chart keeps its monospaced default. The styling page in all six languages and the skill describe it.

Markets

  • Volumes in Korean units on the chart (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). With numberLocale: 'ko-KR', the OHLCV legend, the crosshair tooltip and ChartWidget's data window write volumes in 만, 억 and 조 (3.45억 rather than 345.00M), as formatVolumeLoc(value, 'ko') does; other locales keep K, M and B. usesKoreanUnits(locale) tells which locales write them so. The API page in all six languages and the skill describe it.

1.57.0 (2026-11-01)

React, Vue and Svelte components: 1.3.46.

Markets

  • Korea's markets (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). MARKET_KRX for KOSPI and KOSDAQ shares in won: steps of 1 to 1,000 won by price band, limits of ±30% with the move rounded down to the reference's step first, as KRX rounds it (the new priceLimits.roundMove), the opening and closing calls, the regular session and the After-Market until 20:00 (KRX_SESSIONS, as of September 2026). MARKET_NXT for Nextrade, with KRX's steps and limits and its own sessions (NXT_SESSIONS). MARKET_UPBIT_KRW for Upbit's KRW market, steps from 1,000 won down to a hundred-millionth of a won. They draw rising prices red and falling ones blue (KR_COLORS); createMarketTheme(theme, colors) gives any theme a market's candles, and createVNTheme is now made with it. formatVolumeLoc(value, 'ko') shortens volumes in 만, 억 and 조. The API page in all six languages and the skill describe them.
  • UpbitAdapter (@tradecanvas/core, @tradecanvas/chart): Upbit's markets (KRW-BTC) with no API key. Candles stream up to four hours and the day comes from the ticker; history is 200 candles a call, before a time when scrolling back. Upbit lets a browser make one REST call in ten seconds, so a web page sets restBase to a proxy of its own. The realtime page in all six languages and the skill describe it.

Fixes

  • Ichimoku's cloud runs ahead of the price (@tradecanvas/core, @tradecanvas/chart). Lead A and Lead B were drawn on the bar they were worked out on, so the cloud sat under the price instead of the displacement (26 bars by default) ahead of it. Each bar's lead lines are now the ones worked out that many bars before, and the cloud of the last bars is drawn past the latest bar, into the space to its right; meta.ahead in the indicator's output holds those values, from bar meta.aheadFrom, and the price scale makes room for them. Lead A and Lead B at a bar, in the legend, the data window and an export, are now the values drawn there. Where Lead B starts later than Lead A, the cloud is filled only where both are. The label names all four inputs (Ichimoku 9 26 52 26), the displacement among them, so two instances read apart.

1.56.0 (2026-11-01)

React, Vue and Svelte components: 1.3.44.

Legend

  • The legend's rows sit on a see-through ground (@tradecanvas/core, @tradecanvas/chart). Lines drawn across the top of the plot (moving averages, a VWAP) ran through the OHLCV legend's text and ChartWidget's indicator rows. Each row now sits on the chart's background at 72%, so the lines run behind the text and the bars still show. setLegend({ ground: false }) leaves it out of the legend; the widget's rows take the CSS variable --tcw-legend-ground (transparent for none). The styling page in all six languages and the skill describe it.

1.55.0 (2026-11-01)

React, Vue and Svelte components: 1.3.43.

Price axis

  • Tags on the price axis no longer cover one another (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). With the price near an order or a position, its tag covered theirs, and so did the bid, ask, high and low tags and the day's limits. They are now placed together: the last price's tag stays on its line, and the others move up or down only as far as they must. It is on by default (features.alignAxisLabels); setAxisLabelsAligned(false) keeps each tag on its line, as before, and isAxisLabelsAligned() reads it back. ChartWidget lists it as "No overlapping labels" in the price scale menu and in Settings (the new string settings.alignAxisLabels, in all 30 languages). alignAxisTags in @tradecanvas/core places the tags. The chart types page in all six languages and the skill describe it.

1.54.4 (2026-10-30)

React, Vue and Svelte components: 1.3.42.

Fixes

  • The bid, ask, high and low lines run under order and position labels (@tradecanvas/core, @tradecanvas/chart). The last price line went under them in 1.54.3, but the quote's bid and ask lines, and the high and low of the bars on screen, were still drawn after them and crossed a label near them. They are drawn under the orders and positions now; their tags on the price axis stay over the axis.

1.54.3 (2026-10-29)

React, Vue and Svelte components: 1.3.41.

Fixes

  • The last price line runs under order and position labels (@tradecanvas/core, @tradecanvas/chart). It was drawn after them, so with the price near an order or a position it crossed their labels ("Long", the P&L, the buttons). It is now drawn under the chart's orders and positions, and its tag on the price axis still over the axis. CurrentPriceLine gains renderLine and renderTag; render draws both, as before.

1.54.2 (2026-10-29)

React, Vue and Svelte components: 1.3.40.

MCP server

  • Ready for the MCP Registry (@tradecanvas/mcp). The package names its server io.github.bonguynvan/tradecanvas (mcpName), which the official MCP Registry checks before it lists a server; pnpm --filter @tradecanvas/mcp registry writes the server.json to publish from its version.

1.54.1 (2026-10-29)

React, Vue and Svelte components: 1.3.39.

Fixes

  • A grid's other charts show the bar the crosshair is on (@tradecanvas/commons, @tradecanvas/chart). In a ChartWidgetGrid or ChartGrid with the crosshair linked, the other charts drew the line at the right time but their OHLC legend, indicator rows and data window stayed on the latest bar. They now read the bar the line is on, and go back to the latest when the pointer leaves. The new crosshairSync event ({ barIndex, bar, time, prevClose }, barIndex: null when it goes) says which bar setCrosshairTime put the line on, for a legend of your own; it never fires as crosshairMove, so linked charts still don't echo each other. The API docs in all six languages and the skill list it.

1.54.0 (2026-10-28)

React, Vue and Svelte components: 1.3.38.

Fixes and indicators

  • Stochastic RSI is named after all four of its lengths (@tradecanvas/chart). Its label dropped the %D smoothing ("Stoch RSI 14 14 3"), so two instances that differed only there read the same in the legend, the chips and the Objects panel. It is now "Stoch RSI 14 14 3 3" there and in the export, where the columns are renamed to match: Stoch RSI 14 14 3 3 %K and Stoch RSI 14 14 3 3 %D.
  • Ichimoku Cloud draws its lagging span (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). The close, plotted the displacement back (26 bars by default), is the line chikou (Lagging Span) in the fifth colour, with a legend value, an export column and a style of its own; the last 26 bars have none yet. The chikou field in the output was the bar's own close and the displacement input did nothing; now it sets how far back the close goes. The cloud's two lead lines are still drawn on the bar they are worked out for.
  • A compare in a pane of its own gets one (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). Compare's "Price, in a pane of its own" drew the symbol's price on the main pane: the line was an overlay, which can't open a pane. It is now the new compareSymbolPane indicator, the symbol's close in a pane of its own on that pane's scale; taking it off takes the pane away. compareSymbol stays on the price pane. A layout saved before this opens such a compare on the price pane, as it was drawn: add it again in its own pane. The API docs in all six languages and the skill's recipe say so.
  • Price limits show as soon as the reference is given (@tradecanvas/chart). The ceiling, floor and reference lines setPriceLimits sets stayed off the chart until something else redrew it (a pan, a zoom, a new bar), and a new reference moved them only then. They are drawn at once now.
  • The price limits read on the light theme (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). The Vietnamese presets' REF and FL names were yellow and cyan on cream, under 2.5:1. A limit's colour now gets shaded toward the theme's text until it reads at 4.5:1 on the background (line, name and axis tag), and the tag's price takes the background's colour or the text's, whichever reads; the dark theme's look is kept. Themes gain an optional priceLimits for when the market gives no colours (DARK_PRICE_LIMITS, LIGHT_PRICE_LIMITS), the light ones taken for a light theme of your own that sets none, and contrastRatio, readableOn and inkOn are new. The API docs in all six languages say so.
  • Labels at the plot's left edge stay whole (@tradecanvas/core, @tradecanvas/chart). A measure drawn by the edge, often where it starts on a phone, had its label cut there; it now moves onto the plot and keeps inside its other edges too. The time axis's label of a bar by the left edge lost its first characters; it now starts at the edge, and a bar off the plot gets no label.
  • The indicator rows follow the legend's height (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). In ChartWidget, a switch that wrapped the OHLCV legend onto another line (a timeframe or a status text on a phone) left the indicator rows over its last line until something else redrew them, and with auto-scale off nothing did. The new legendResize event ({ bottom }) comes after a draw that changed the legend's height, and when it is hidden or shown, and the widget places the rows again. The API docs in all six languages and the skill list it.
  • The phone's drawing button stays over the plot (@tradecanvas/chart). In a right-to-left ChartWidget it sat over the price axis, which stays on the chart's right, and with the left price scale shown it sat over that scale. It now sits in from the plot's left edge in either direction and follows the layout.
  • A horizontal line's price label keeps clear of the legend (@tradecanvas/core, @tradecanvas/chart). A horizontal line or ray near the top had its label under the OHLCV rows and, in ChartWidget, under the indicator rows and their collapse button. The label now goes to the line's right end when the legend covers its start, below the line when both ends are covered, and under the legend when it spans the plot, as on a phone. The new setLegendStack({ width, height }) makes drawing labels keep clear of rows you lay under the legend yourself; ChartWidget gives its indicator rows. The API docs in all six languages and the skill say so.
  • A position's tags keep clear of the legend (@tradecanvas/core, @tradecanvas/chart). On a phone the OHLCV rows span the plot and a target near the top had its tag under them. A tag the legend or ChartWidget's indicator rows would cover now goes under them, one under another when several do.
  • The legend shows the bar under a pointer at rest (@tradecanvas/chart). It was drawn in the frame that found the bar, before it knew it, so after a single move (the pointer coming onto the chart as ChartWidget's data window opened) it stayed on the latest bar while the data window and the indicator rows showed the hovered one. It is drawn again once the bar is known, and when the pointer leaves.
  • The data window writes its values as the legend does (@tradecanvas/chart). ChartWidget's data window rounded indicator values on its own, without grouping or the number locale (96848.73, 54.3220), and its change took decimals from its own size (-206.949 beside prices of two). A line on the price pane now reads as the chart writes prices, one in a pane of its own in the decimals its size calls for, both in the number locale, and the change in the decimals of the bar's prices.
  • The data window says to touch the chart on a touch screen (@tradecanvas/chart). With no bar under the pointer, ChartWidget's data window said "Hover the chart" on a phone too. Where the pointer is a finger it now says "Touch the chart" (the new string dataWindow.touch, in all 30 languages).
  • A watchlist row's remove button keeps clear of its numbers (@tradecanvas/chart). In ChartWidget's watchlist, the button a row shows when the keyboard is on it (or on hover) sat over its price and change. It now has a column of its own after them.
  • Compares by indicator stay off Renko and the like (@tradecanvas/core, @tradecanvas/chart). A symbol on its own scale or in its own pane, a spread, a ratio and a correlation were still drawn on Renko, Kagi, line break, point & figure and range bars, read at times that only count the bricks. They are left out there now, as percent compares are, and out of the scales; getActiveIndicators() marks them shown: false and offChartType: true, and ChartWidget dims their rows with "Not drawn on this chart type". The API docs in all six languages and the skill's recipe say so.
  • Renko and the like are dated on the time axis (@tradecanvas/core, @tradecanvas/chart). Renko, Kagi, line break, point & figure and range bars repeated one label across the time axis (00:00:00, or minutes of 1970), from times that only count the bricks. The axis and the crosshair's time label now date each brick, line or column by the bar it was finished on, so they read the years, months and days the chart spans; the bricks' own time values are unchanged. The new axisTimes(series) gives those dates for a series from toRenko and the like. The chart types page in all six languages says so.
  • A point & figure chart fills the view (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). Its automatic box, 1% of the average close, made one column of a few X's on a stock that moved 7%. The box is now a fiftieth of the price range, rounded to 1, 2 or 5, and a chart with fewer columns than the view holds is fitted to it on a new type, box or series. Boxes a few pixels high or less, from a box set small, are drawn as solid columns rather than X's and O's too small to see. The chart types page in all six languages says so.
  • Indicators on Renko and the like are worked out on the bricks (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). On Renko, Kagi, line break, point & figure and range bars they were worked out on the bars under the bricks and drawn at the bricks' places: an EMA stayed near 92,000 while the bricks climbed to 98,900, an RSI line had nothing to do with its legend's value. Now a line sits on the bricks and reads their closes; getIndicatorOutput(id).series holds a point per brick, the legend and the data window read it at the brick under the pointer, an alert on an indicator line reads its last brick, and an export writes the bricks, dated as the axis dates them. VWAP, Session VWAP and the multi-timeframe moving average, which count days, are left off these types (offChartType: true); getActiveIndicators() gives scale: 'left' for an overlay on a scale of its own. The chart types page in all six languages and the skill's recipe say so.
  • The crosshair's tooltip dates a brick as the axis does (@tradecanvas/commons, @tradecanvas/chart). On Renko and the like it showed a brick's own time, which only counts bricks, so a brick of 2026 read 4 Jan 2016 with seconds above an axis that read 2026. The crosshairMove payload gains time, that date, and prevClose, the close of the bar drawn before. The API docs in all six languages and the skill list them.
  • The data window writes a compare in its own decimals and shows the brick on Renko (@tradecanvas/chart). In ChartWidget, a compare on its own scale, a spread or a ratio was written in the chart's price decimals (0.00 for a coin near 0.00005 on a BTC chart), in the data window and the legend; such lines, and any line on a scale of its own, now read in the decimals their size calls for. On Renko and the like the data window showed the data bar with the brick's index; it now shows the brick and its change from the brick before. The API docs in all six languages say so.
  • Labels moved off the legend keep their place and clear of one another (@tradecanvas/core, @tradecanvas/chart). A long position's Target tag moved under the legend landed under the entry's, in the stop's zone; tags now slide right of the legend on their own rows where there is room, and under it keep the order of their prices. Two positions' tags, and two horizontal lines' labels, moved to one spot no longer print over each other. A line's label with room only far under the legend is drawn on its line by the price axis where that is clear, one near the plot's top stays inside it, and the measure's label goes under the legend's rows. The API docs in all six languages say so.
  • The panes of the compares left off Renko go too (@tradecanvas/chart). A compare in its own pane or a correlation kept its pane on Renko and the like, empty, with a made-up 0, 50, 100 scale. A pane with nothing else in it is now laid out as if it weren't there and comes back, with its size and place, on candles; ChartWidget's row for it stays, dimmed. The API docs in all six languages say so.
  • Renko and the like fill the view, and their axis reads evenly (@tradecanvas/core, @tradecanvas/chart). Renko, Kagi, line break and range bars with fewer bricks than the view holds are fitted to it, as point & figure is; on daily data they left about 300 px empty on the left. A point & figure column's volume is that of the bars it was made of (it was the reversing bar's, and 0 for the forming column, so the legend read Vol 0). Their time axis keeps the two coarsest kinds of label on view, with no lone day among the months. The chart types page in all six languages says so.
  • The Indicators button counts no compares (@tradecanvas/chart). In ChartWidget its badge counted a compare on its own scale, in a pane or as a ratio ("Indicators 1" with no indicator), which the menu and the dialog leave out; it now leaves them out too.

1.53.1 (2026-10-27)

React, Vue and Svelte components: 1.3.37.

Replay

  • A bar picked while the bars load starts the replay once they come (@tradecanvas/chart). In ChartWidget, a bar clicked to start a replay while another symbol's or timeframe's bars loaded was dropped, and the replay bar still asked for a bar once they were in. Now the time of the bar clicked is kept: the bar says Loading chart until the bars are in, then the replay starts at the bar that holds that time. Nothing starts if they fail to load or the pick is left, and the bar asks again if the new bars don't reach that time (another symbol's shorter history).

1.53.0 (2026-10-27)

React, Vue and Svelte components: 1.3.36.

Replay

  • A replay goes on when the bars under it change. Picked while another timeframe's history loaded, it replayed the old bars and kept the new ones out of sight until it stopped, so Play stepped a day at a time on an hourly chart; a symbol or timeframe switch during a replay did the same, setData ended it, older bars were dropped and the extended hours waited for the end. The replay is now a time over the live series: a new symbol or timeframe (connect, switchStream), setData, older bars, the extended hours and a corrected bar (updateBar, a feed's closed bar again) carry it over to the time it had reached, showing only bars that closed by then, and its indices are worked out again from it. While a new series loads it waits, playing or paused as it was, with no replayState for it; a time older than the new series pages older bars in first (at most 10 pages, then the first bar there is); a duration keeps the time it had left; finer steps stay only while they are the symbol's and fit its bars. A replay a paper account trades ends when the symbol changes, since its orders are of the old one. prependBars returns the count during a replay (it gave 0), loadMoreHistory() while a page is on its way resolves to that page's count (it gave 0), history pages in during one without hideHistory, a reconnect's snapshot merges into the live series instead of replacing the older bars paged in, and a page of history dropped by a new series is reported as loaded with no bars, where historyLoad stayed at loading. replaySeekToTime goes to the last bar that closed by the time, so a grid's synced replay no longer shows a daily bar whole at 15:00, and a grid doesn't relay a step that only carried one chart's replay over. replayStep gains cause ('play', 'seek', 'series'), getReplayProgress() gains time and until, and ReplayManager.remainingMs() is new. Indices (barIndex, total, replaySeekToBar, getReplayBarIndex) are of the bars replayed now; keep a position by time (getReplayProgress().until, replaySeekToTime). To end a replay on a new series as before, call replayStop() first. In ChartWidget the replay bar no longer closes on a symbol or timeframe switch (this reverses an earlier note): while the bars load it says Loading chart, picking a bar, Random, stepping, scrubbing and the Step menu wait, and Play is kept for when they are in; then it follows their total and offers the new interval's steps. Picks are kept by time, Play never shows Pause without a replay, the position stays on one line and the scrubber reads it as 'where of how many'. The docs in all six languages, the skill and its paper-trading recipe say so.
  • Bars form as a replay plays, in the finest step by default. A replay showed each bar whole the moment it landed, and Step 1m in the widget fetched the newest 5,000 minutes, not those of the bars replayed, so an hourly replay from bar 100 played 316 hours whole before the minutes started, then slowed 60 times. With animate: true each bar now grows over its time as a live one does: from its open to the extreme its direction says came first (a rising bar dips first, as paper fills already decided), the other one, then its close, drawn about 30 times a second, which keeps a Canvas 2D chart smooth at a high DPR. step: 'auto' or an interval shapes each bar with finer bars the chart fetches through the connected feed's fetchHistoryBefore for the bars it is about to play: a page aligned to the chart's bars, about 8 s of playback ahead, one request at a time and at most two a second, only while it plays and when bars last three frames or more. A bar takes them only when its page reached back to its start, the bar already forming keeps its path, and the path is reconciled to the bar, so the last frame is the bar as the series has it (venues' minutes can miss block trades or an auction close). 'auto' is the finest the feed serves with at most 60 to a bar: 1m on 1h, 5m on 4h, 30m on 1d. Indices, speed and duration keep counting the chart's bars, and no index or total moves when a page lands; getReplayBarIndex() is the bar forming. A pause holds a half-drawn bar and Play goes on from there; a seek or a step shows whole bars. A paper account fills as the drawn price reaches an order, at the time of the finer bar it is in, each price once. Bars shorter than three frames come whole, and under reduced motion a bar steps from one of its prices to the next. The new replayStepsLoad event says loading, loaded, end or error; a bar without finer bars forms from its own prices. steps you pass shape the bars the same way with animate, and without it stay steps of their own as before, now keeping only the hours shown (after-hours steps no longer push the last regular bar's high), with a bar's last step showing it as the series has it. ReplayManager gains the phase event, getFraction() and getStepMs(). In ChartWidget the Step menu starts on Auto (the new string replay.step.auto in all 30 languages); replayStep ('auto', 'bar' or an interval) and replayAnimate (default true) set it, step forward completes a half-drawn bar first and step back shows the bar before it whole, and a failed fetch says so; with replayAnimate: false, Auto replays whole bars as before. On a feed without fetchHistoryBefore (Coinbase, Kraken, or a polling or WebSocket feed without the option) the widget fetches the finer bars in one request, as in 1.52.0, and the bars form along them. The realtime docs in all six languages, the skill and its paper-trading recipe say so.
  • The replay bar says where the replay is, and plays at multipliers. It showed only a count (421 / 500, steps rather than bars in finer steps), labelled its speed bars a second while finer steps played steps a second, sat over the bottom indicator pane and the price axis, jumped sideways as it opened, wrapped into two ragged rows on a phone over the drawing button, and let toasts land on it; Shift+→ stepped the first widget on the page whatever had focus, also behind an open dialog and before a host's addHotkey on the same keys, and picking another start meant leaving the replay. ChartWidget's bar is now a compact transport on the main pane's foot, centred on its plot, in the look's own sizes and tokens: step back, Play/Pause and step forward, the date and time of the step on screen (from the new replayStep field stepTime, in the display timezone, the year only when it isn't this one, seconds under a minute) beside a track with the played part filled, Speed from 0.1× to 50× (1× is one bar of the chart a second whatever the step; the default is 1×, it was 5 bars a second; with replayAnimate: false and finer steps a speed now counts chart bars, not steps), Step, Select bar (the new replayPick icon), which pauses and picks another start among the bars shown without showing the bars to come or ending the replay for grid followers, with Cancel or Esc back to the same place, and Back to realtime. Its captions go where there is no room, and on a phone or a narrow chart it takes two rows, the date and track on top beside a close button. Toasts and the phone's drawing button move above it, and a bracket being placed moves to the top. Space on the chart or the track plays or pauses during a replay (outside one it still fits the chart, which the shortcut sheet now says instead of F), Shift+←/→ go to the widget used last with focus in it, never through a dialog, and a host shortcut on the same keys comes first. The bar is a named group with a plain tab order, Play names its key, play, pause, the end and each step taken by hand are said once the keys rest, the toolbar's Bar replay button shows as pressed and gets focus back when the bar closes (also when a symbol switch ends the replay), and the shortcut sheet has a Bar replay group. In a right-to-left widget the bar runs with time, left to right, its words read right to left, and a select laid out left to right inside it keeps its chevron on the right. Nine new strings in all 30 languages; replay.barsPerSecond is no longer used and .tcw-replay-progress is gone. The realtime and API docs in all six languages and the skill say so.
  • The resize event comes when the chart's element changes size. It came only from chart.resize(), so a window resize, a phone rotation or a dock panel opening left whatever listened for it as it was: ChartWidget's replay bar kept its width and tier, spilling Step and Back to realtime out of it and drawing its date, track and Speed over each other at a phone width, and its place on the plot and the toasts' lift went stale. The chart now emits resize with its new size once a frame after its element is resized, and the replay bar fits and places itself again.

1.52.0 (2026-10-27)

React, Vue and Svelte components: 1.3.35.

What a full audit of the widget found

  • A horizontal line's and a horizontal ray's price label is whole again. It took its alignment from the text drawn before it, so after a redraw without a pane indicator, or beside a Gann box or a measure, only its last character showed at the plot's left edge. Each drawing now renders in a canvas state of its own, starting left-aligned on the alphabetic baseline, so a drawing plugin a host registers cannot shift the next drawing's text either.
  • The Volume Profile indicator's rows are see-through. They were solid blocks at the left of the price pane, which hid the candles under them and took the contrast from the legend over them (the OHLC and volume row, the other indicators' values). They stay where they were, at the strength of the chart's own volume profile (0.32), so the legend over them and the candles under them stay readable; the busiest rows are marked by colour alone, empty price bands draw nothing, and the indicator follows its style's opacity, taken between 0 and 1.
  • Exported CSV and JSON carry no float dust. A volume summed from trades or smaller bars, a price or an indicator value was written as the computer's sum (40.370000000000005, 0.30000000000000004). The export now writes a number with a fraction to 15 significant digits, which keeps every digit of a number up to 15 significant digits, and whole numbers and numbers from 1e15 up as they are; NaN is an empty cell, not the text NaN.
  • Copy chart image works under a Content-Security-Policy without data: in connect-src. The image reached the clipboard through a fetch of its own data: URL, which such a policy refuses, so chart.copyScreenshot() gave false and the widget blamed the clipboard. The canvas now encodes the PNG itself, for chart.screenshotBlob() and Screenshot.toBlob() too, and the clipboard is written while the click that asked for it is still being handled, as Safari asks. The docs' Tauri example now lists what the widget needs, style-src 'unsafe-inline' and img-src data:; the old one left it unstyled. The headless chart now needs neither: the pinned tooltip's percentage, written as markup with a style attribute, lost its fade under a style-src without 'unsafe-inline', and is now built as elements, which also shows a priceFormat's text as written, fractions of a point (101'16) among them, where an apostrophe or an &amp; read &amp;#39; or &amp;#38;.
  • Range bars draw on intraday data. The automatic range was 0.5% of the average close, more than a one-second or one-minute chart moves in hours, so no bar closed and the chart was blank. 'auto' now follows the bars' true range (the mean of the last 100 closed bars, rounded to a 1, 2 or 5 and to the price step, the largest those bars traded at on a market whose step depends on the price), so a tick leaves the bars before the one forming as they are; a daily chart gets fewer, larger bars than before. The bar still forming is drawn, so the chart ends at the last price. Bars have wicks and close at their low plus the range or their high minus it, a price they reached, where they closed at their open plus the range, and prices written as whole ticks times the tick size (100209.40000000001) make the bars their decimals do, and a range under half the 15th significant digit of the prices closes none, however they are written; a jump or a gap of several ranges makes a bar for each, and the bars filling a gap stand at prices the gap skipped. A range is raised to 2, 5, 10… times itself when the closed bars would make more than 100,000 range bars, or the bar still forming that many on its own, and every bar is built again on it. toRangeBars takes includeForming, and setChartTypeOptions tells a screen reader the new summary.
  • Prices away from the axis read as the axis writes them. With a symbol's or a market's decimals set, a chart at one decimal read '100,018.7' on the axis but 'Crossing 100,018.70' in the alerts list, '23.6% (99125.18)' on a Fibonacci level and 'REF 98937.00' on the day's limits, also under de-DE. Drawing labels, pivot labels, the measure, the market profile's stats, the price limits and the pinned tooltip now take those decimals, and the widget's data window, alerts list, order ticket, account panel, depth ladder, symbol info and toasts write prices as chart.formatPrice does, again when the symbol's details arrive late. All of them are written in the chart's number locale, thousands grouped, and so are the figures beside them (a Fibonacci level's percentage, the pinned tooltip's move, the data window's and the symbol info's change, the long and short position's R:R); without set decimals each keeps the decimals it had, except the day's price limits, which follow the axis's. The long and short position's amounts and a trade zone's P&L stay at two decimals, grouped. A limit's tag on the axis hides the scale's label under it. The percent scale's labels follow the number locale too, grouped ('+8,46%' in de-DE), and a change that reads as nothing has no sign. ViewportState.pricePrecision carries the decimals to plugins, and priceTagText reads it.
  • A compare whose bars don't load adds nothing, and leaves no empty indicator behind. widget.addCompareSymbol added a compare on its own scale or pane, a spread, a ratio or a correlation before the other symbol's bars came, so a fetch that failed, or found no bars at the chart's interval, left an empty 'Compare Symbol' on the chart and in its saves, back after every reload. Every way now fetches the bars first, as the percent way did, toasts the error and adds nothing when they don't come (or that the feed has none at the interval, 'ETHUSDT: no bars at 1H', the new toast.compareNoBars in all 30 languages), and gives the chart the bars before the indicator, so they are fetched once; an interval picked while they load has them fetched again at that one, in the percent way too, and an empty answer adds no empty percent line either. A compare a saved state brings back stays when its bars fail to load, and fills on an interval that has them. The Objects panel names indicators as their chips do ('Compare ETHUSDT', 'BB 20 2'), with the full name in the row's tooltip, and its Compare section lists every compare with its way, the indicators among them, each with a working remove button.
  • A symbol compared in percent reads as a percent, not as a price. Its line sat on the price axis, so a 0.10 coin compared with a 3,000 coin seemed to trade at about 3,000. The widget now puts the price scale in percent while a symbol is compared in percent and back to yours after the last one (a log, percent or indexed scale is left alone, a scale picked meanwhile is kept, and neither layouts nor shared links save the percent), and its legend lists each one above the indicators, marked in its line's colour, with its own price and its change at the bar under the cursor in the legend's text colour, an eye and a remove button, which work on a compare line the host put on the chart itself too. Every percent line starts at the chart's close on the first bar on screen, where the scale reads 0%, so a symbol whose bars begin later reads its own change; the widget fetches its bars as deep as the chart's, and only the stretch older bars add once they load (a feed without fetchHistoryBefore is asked again only while it has older bars to give; at the line's own interval, so a page that loads while a new interval's bars are on their way waits for them), and labels each line at its end, in the text colour after a stroke of its colour, with a halo of the chart's ground around its letters, clear of an alert's label and of the other lines' labels. Overlay indicator tags on the axis read in percent on a percent scale. Renko, Kagi, line break, point & figure and range bars draw no compare lines, since their bars have no time to line another symbol up by (its line read it at the wrong bars): there the lines leave the auto scale, the widget keeps your scale and dims each compare's legend row, saying why in its tooltip (legend.offChartType, in all 30 languages), and getCompareValues() gives the latest close with no change. chart.getCompareValues(barIndex?) (each line's close and change, its last close with stale past its last bar) and chart.setCompareVisible(id, visible) are new, and so is the compareChange event, which lists a line you add with getChart().addCompareSymbol in the widget's legend at once.
  • The Chart Settings can be read, set and kept. The settings dialog's switches and choices (the volume and market profiles, swing markers, session shading, prior-period levels, grid, legend, crosshair, scales, time zone, number format) lived only in the widget's memory, so a reload, a named layout or a shared link brought them back to the defaults and the browser's time zone. widget.getSettings(), widget.setSettings(patch) and widget.onSettingsChange(listener) read them, change them (checked, no undo step) and say when they change (once per OK, never for Cancel); ChartSettingsState is exported. getSettings() reads back what was set on getChart() through new getters on Chart (isVolumeVisible(), isLegendVisible(), getMarketProfileConfig() and six more), so layouts and links save it as it is. setSettings leaves auto-scale on until the chart has bars, so settings a listener got after a drag on the price axis, given back right after the constructor, open with the bars fitted and following the price. A chart with auto-scale off (autoScale: false, setAutoScale(false), the components' autoScale prop, the settings) fits each new series once, its first bars, setData's and a symbol or interval switch's (a chart in a hidden tab once it is shown; bars that come one by one into an empty chart until they fill it), and holds that range from there, where it kept an empty 0 to 1 or the last symbol's prices. persistSettings: true keeps what the user changed from your values in this browser, over chartOptions, with Reset going back to yours. Named layouts now keep them and open with them, and share links carry the ones changed from the defaults (a flipped scale and a chart type's own settings among them, for the types the sender set and the type shown, leaving the viewer's settings of the other types as they are), both without the viewer's time zone and number format; a link's settings show for that visit only, neither kept nor told to onSettingsChange, until the viewer changes, picks again or resets one. Everything read back is checked, a fixed time zone offset included, and nothing kept, shared, set or applied from a chart template turns on a legend, volume, bar countdown or log scale your features turned off; the settings dialog no longer offers the legend's or the volume's switch and colours there, which did nothing. A link, a layout or a size typed in the dialog can no longer stall the chart: Renko's box, Kagi's reversal and a Point & Figure box far too small for the prices are raised as range bars' range is, to the first of 2, 5, 10… times themselves that makes no more than 100,000 bricks, lines or columns before the last bar (and as many again on it), and the dialog takes none under 0.00000001, marking one it turns away as invalid, in red and to a screen reader, with a line under the field saying what it takes (settings.numberAtLeast and settings.numberWhole, two new strings in all 30 languages); pointAndFigureColumns gives the columns with the box they were built on. A raised size stays from tick to tick, so a tick builds the bars once (a ReshapeMemo does the same for toRenko and the other transforms: one for each series, cleared when the series is replaced).
  • Bars the library builds start at the exchange's midnight, not UTC's. This moves some bars. With the symbol's zone known (SymbolInfo.timeZone from resolveSymbol; for bars given to the widget, the market's from setMarket too), the days, weeks, months and 2h–12h bars built from shorter ones start at its midnight: a Ho Chi Minh City 1D bar opens at 00:00 there, not 07:00, and 4H bars split the day at 08:00 and 12:00, not 11:00. Where a session crosses UTC midnight (Sydney, New York's evenings in winter) the days' values change too. 1h and shorter bars keep their floor on the epoch, daily bars stamped at 00:00 UTC keep their dates, and nothing changes without a zone or with UTC (Binance, Bybit, Coinbase and Kraken build what they did). A feed's zone is asked once per symbol, in the chart's own resolveSymbol request and while the history is fetched, waited for at most 5 s and kept; a feed that fails to answer, or whose timeframes can't line up with the zone's midnight, builds UTC days as before and keeps them for the symbol (after a failed or late answer, until the chart loads the symbol afresh), and setMarket's zone doesn't move a feed's built bars. Bars built from ticks land on the history's, so a feed's own 4h bars keep their times, and on a timeframe built from a shorter one they start where its bars start (ResamplingAdapter.bucketFor): UTC days built from hours included, while weeks and months built from the feed's dated days date a trade in the chart's zone when the feed names none, as its own days do. The widget builds its days, weeks, months and 2h–12h bars again when the zone arrives after them, through the new marketChange event for setMarket, keeping a view scrolled back on its times and zoom and one at the newest bars there; the 1h and shorter bars it built stay as they are. Daily bars show the date they stand for in any zone shown, on the axis, the crosshair and its card, the pinned tooltip and to a screen reader. timeframeBucketStart(time, timeframe, { timeZone }) and BucketOptions are exported to build your own bars the same way; TickAggregator starts weeks on Monday and months on the 1st, and takes setTimeZone, as StreamManager does (a zone the browser doesn't know throws a RangeError there).
  • The built-in VWAP starts again each trading day. This changes the line. It ran over every bar loaded and never reset, so its value depended on how much history was on the chart and moved when older bars were paged in. Its new anchor input is 'session' by default, from midnight in the exchange's zone (the symbol's timeZone, else the market's, else UTC); 'week' starts on Monday, 'month' on the 1st, and 'all' keeps the old line. Daily charts change most: a session's VWAP there is each bar's typical price, so pick 'week' or 'month'. VWAPs saved by 1.51 or earlier in layouts, templates and saved defaults come back with the session anchor (updateIndicator(id, { anchor: 'all' }) keeps the old line), alerts on a VWAP line see it jump at each reset, and a typed addIndicator('vwap', …) takes only anchor. Its CSV column is still VWAP; in ChartWidget one at another anchor is named by it ('VWAP Week'), and the anchor input reads in the widget's language. A tick is added to the sums kept for the bar before it, about 2 µs on 100,000 bars. Indicators get the exchange's zone as config.exchangeTimeZone (IndicatorEngine.setExchangeTimeZone), never the zone shown and none for UTC, and a new zone computes again only those that read it (IndicatorDescriptor.readsExchangeTimeZone) and those that read their lines; while a connected chart asks about the symbol it switches to (with switchStream, or disconnectStream() and connect() at once, as the widget does) they keep the last one's zone, for at most 5 s from each switch, so a switch on one exchange computes them once, and the bars built from trades keep it too, building the day the history ends on. Session VWAP, mtfma, the prior-day lines and the market profile's sessions count their days in it too and read bar times in seconds, which changes them on the ASX, the NZX and US post-market bars in winter, a session's first bar shows a short level stroke where the line drew nothing, and svwap now draws its line on daily bars, without the bands a one-bar session holds on it, in its legend too. mtfma's 2h–12h frames start at the exchange's midnight too, while a feed's own 4h bars stay on UTC's grid: in a zone whose midnight falls between UTC's 4-hour marks (Ho Chi Minh City, Tokyo, New York in winter) a 4h MTF line steps at other hours than such a feed's 4h candles. Anchored VWAP finds its anchor on bars timed in seconds.
  • A bar already on the chart can be corrected. There was no way to fix a loaded bar older than the last: setData scrolled to the newest bar, ended a replay and computed everything again, and a feed's closed bar for an older time was dropped. chart.updateBar(bar) replaces the loaded bar with the same time, wherever it is, computes the indicators again from it and keeps the view; it returns false when no loaded bar has that time or the chart can't take the bar, and sends dataUpdate { kind: 'correction', time, index } (an exhaustive switch over DataUpdatePayload needs the case). It is no live price: no alert fires and orders don't follow, while a corrected last bar moves the price line as setData would. Corrections before the next frame are computed once, a bar sent again unchanged computes nothing (also without volume), during a replay the live series is corrected, the WebGL renderer draws the new candle, and the legend, the tooltips, the widget's data window and crosshairMove listeners show it under the pointer. A connected feed corrects a bar by sending it again as closed, also on timeframes built from a finer one (the last two built bars); an older forming frame is still left out, and neither it nor a late final moves the price line, the orders or the alerts: the built-in adapters no longer make a tick from a frame of a bar older than the newest, the last bar of the history they served included, nor from that last bar sent again closed as it was served, and a polled feed sends that last bar closed when the next one started before its first poll. With aggregateTicks the first trade after connecting builds on the history's forming bar instead of replacing it, a reconnect whose history ends on the bar before keeps the forming bar's trades, and a late trade no longer closes the forming bar early, while a trade from after the newest bar starts goes in it even when the buckets start it earlier (daily bars stamped at another hour than midnight, or a zone that came after the first trade), so the price follows every trade. A reconnect whose history ends before the forming bar keeps that bar on the chart and no longer sets the price line, the orders or the alerts back to the history's last close. The price tag no longer shows a fall as a rise after such a reconnect, or when a feed sends a frame at an unchanged price (a bar added with appendBar is measured from the close before it, as a stream's is), and StreamManager sends priceChange at an unchanged price when the close it is measured from moved. The Anchored VWAP drawing follows a corrected bar, and a drawing tool of your own gets a revision beside the bars (setDataGetter) that moves with a correction. TickAggregator (seed, resume, the correction event) and StreamManager (barCorrection) change with it. The React, Vue and Svelte components take a change to one of the last three bars before the forming one as a correction, in Vue and Svelte in place too. ChartWidget's own copy of bars given with setData isn't corrected by getChart().updateBar past a timeframe switch; a widget method follows.

1.51.0 (2026-10-26)

React, Vue and Svelte components: 1.3.34.

What a downstream app found

  • maxDrawdownPct is the deepest fall from a running peak (@tradecanvas/analytics, @tradecanvas/chart). It was the percent of the largest fall in money, which on a growing account can be a later, shallower fall: 100, 50, 100, 400, 1000, 800, 1200 gave 20% instead of 50%. It only ever gets larger, and calmar, which divides by it, moves toward zero with it: smaller for a strategy that gains, less negative for one that loses. maxDrawdown is still the largest fall in money, so the two can come from different falls; the RiskMetrics fields now say their units (the percentages are fractions, sharpe and sortino annualised ratios, expectancy, averageWin and averageLoss money). PerformanceDashboard shows a Backtester result's total return and max drawdown in percent, where they read 100 times too small, and the Max Drawdown card reads as a fall (-50.00%) whichever sign it is given with, as the Drawdown panel plots it. Metrics you build by hand for it take fractions too (0.12 for 12%), as RiskMetricsLike now says: given in percent, as its output used to invite, they now read 100 times too large.
  • Session breaks are lines only (@tradecanvas/core, @tradecanvas/chart). Their dates no longer print along the top of the plot, where they repeated the time axis and ran under the legend: zoomed out on intraday bars (the All range on daily bars, then 4h) they made a row of Mondays and months, and at the usual zoom a Monday near the left edge still sat under the OHLC line. The time axis names the days, months and years at every zoom. SessionBreaks.renderLabels and SessionBreaks.setLocale are deprecated and do nothing; they go in 2.0.
  • Your toolbar buttons on the left fold under “more” (@tradecanvas/chart). Those added with side: 'left' never folded, so on a phone they pushed “more”, and everything under it, off the screen. They now fold like the widget's own, after everything on the right, and come back first; a narrow widget (under 641 px) puts them all under “more”, listed first, where they used to stay on the bar. A menu of yours picked from “more” opens under it and ends where it ends, as its own menu does, instead of at the widget's top-left corner, and pressing “more” again closes it, as it closes the Trade and Layouts menus, so two menus are never open at once. The toolbar refits when a button of yours changes width, so a count that grows (handle.setText) doesn't push “more” out, and a count as wide as the last costs no layout; null clears it, as before. “More” names a button with its count (“News: 3”) and lists a switch as one, on or off, with its icon while off (your menu entries with checked: false show their icon too). When a refit folds the button the keyboard is on, it moves to “more”, and from “more”, when it goes, to the last button that came back; menus left hanging from them close. An onClick picked from “more” gets its button folded, with no size: place a popover from “more” then, as the note on onClick says.
  • The widget draws its faces as they are (@tradecanvas/core, @tradecanvas/chart). It turned on Inter's OpenType features ('cv11', 'ss01', 'ss03') for every face, and in IBM Plex, the Terminal look's face, they gave a one-storey a and slashed zeros. --tcw-font-features, set on .tcw-root from your CSS, turns on your face's own, in the widget's buttons and fields too; the chart's canvases and its tooltips take none from the page. The price axis is measured on the chart's own canvas, as it is drawn (its labels' widths kept while you pan, and measured again when a web font loads), so in the airy look it no longer cuts off the end of the crosshair's price, and a chartOptions.font with sizes only keeps the airy look's face. The docs no longer say chartOptions.font sizes the legend: in the widget the legend's face and size come from ui.font.
  • The status bar fits its width and keeps the clock whole (@tradecanvas/chart). On a phone or in a narrow cell the clock was cut off at the edge, the presets past the room hid in a scroller with no scrollbar, and your status bar items on the left and the right ran into each other. The right group now keeps its width; the range presets fold under “more”, the longest first, then go to date, and “more” opens a menu of what is folded. Only with all of that folded, or switched off (rangeBar: false), does the market's status shorten to a word (“Closed”), its full words left to the tooltip and screen readers. The keyboard on a preset that folds moves to “more”, from “more” to go to date when it goes, else to another control of the bar, never to the page; the bar is named “Status bar” for screen readers. The menu closes when what is folded changes, shows Alt+G for go to date only while that key works, and right to left ends where “more” ends. Scaled or zoomed, the bar folds only what has no room. Your items on the left keep a gap before the right group; right to left, the range bar no longer overlaps it, and the clock and your items read in their own direction (“42 ms”, not “ms 42”); the presets close up by the widget's width (under 641 px), not the window's.
  • The symbol search opens with names, and lines them up (@tradecanvas/commons, @tradecanvas/chart). symbols and setSymbols take SymbolInfo as well as tickers, so the list before typing shows each symbol's name, kind and exchange, where it showed bare tickers until a search named them; SymbolInfo.logo puts a logo at the start of the row, and a symbol without one gets its ticker's first letter in its kind's colour (--tcw-kind-1 … --tcw-kind-5, clear of the accent and the up and down colours), the same for the usual Vietnamese, Japanese, Chinese and Korean words as for the English; a warrant takes the futures' colour, a fund or an ETF the index's, a bond the forex's. A logo loads as an image only, with no referrer, from https:, http:, a path on your site, blob: or data:image/…. The rows are one grid under heads that stay put: symbol, name, kind and exchange line up in every row, in the compare dialog too. The kind tabs show for one kind and stay while you type; rows from two or more exchanges can be kept to one; both narrow the results on hand (an adapter's search is asked for 50) without searching again, and keep the symbols you gave that say nothing of their kind or exchange. Without a search, names match too, with or without Vietnamese marks. The toolbar's symbol and the symbol info panel take a name from your symbols when the chart knows none, and no longer show the previous symbol's; the chart's info told since the symbol changed counts in any spelling (BTC-USD for BTCUSD), and a blank name or a numeric exchange in it no longer hides yours. In the search it gives only a name or a logo your list lacks: its own words for a kind or an exchange add no tab and no exchange to pick. A feed's words win on the list the search opens with too, and a null or a number where a word goes neither shows nor erases yours. Tabs that wrap keep the exchange list on their first line. On a phone the tabs fade where more are past the edge, and the ticker is the row's key: its column is as wide as the widest ticker (up to 144 px, or 38.2% of the row), so BTC-USDT-SWAP shows whole and the name gives way first; a venue before a colon (BINANCE:) is dimmed and shows in the room its ticker leaves, a small gap keeping its ellipsis off the ticker, and the exchange column takes 55 px at most, a longer exchange cut in its own row. The list shows the best 200 rows and says how many more typing would narrow, so a few thousand symbols no longer lag on each keystroke; a logo that failed to load is not asked for again; the exchange list keeps the keyboard as its arrows change it; Turkish capitals (“HİSSE”) are one kind with their lower case; right to left, a feed's kinds and exchanges read in their own direction on the tabs and the list; and comparing, a kind only the chart's own symbol is of gets no tab. Objects in symbols from plain JavaScript, words that aren't text there or in a feed's results, and a "__proto__" key in them no longer break the watchlist or the search.
  • The layout delete confirmation reads in the dark theme (@tradecanvas/chart). Its word was white on the dark theme's red, at 3.1:1; it takes the accent buttons' ink now, dark there (5.9:1), white in the light theme as before. The dark theme's muted text is a shade lighter (#918f8a), to read at 4.5:1 on a dialog's selected row, where the symbol search's venue and kind were 4.3:1; the light theme's a little darker (#6a6e75), where they were 4.49:1 as drawn and are 4.62:1 now.
  • What a check of every dialog in a browser found (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart). A new name on the layouts button refits the toolbar, where a longer one pushed “more” past the edge and pressing it slid the widget aside, and the toolbar fits to the pixel, its end padding clear (“more” ran a pixel past the edge in the Studio look). With everything folded and still no room, a long symbol gives way so “more” stays on the bar (HYPERLIQUID:xyz:GOLD pushed it off a 390 px phone): its venue is cut to a letter and an ellipsis first, then dropped with the ticker whole, and the ticker is cut last. The widget's box clips what is past its edges (overflow: clip), so focus never scrolls it. The watchlist scrolls in the dock, its rows coming in below the header and its rule as the arrow keys move. The shortcut sheet's groups all scroll into view, where those past its height went into columns to the side. A menu taller than the window (the clock's time zones) fits inside it with its padding and border. A menu opened under a still pointer no longer opens the submenu it lands on (a phone's right-click on the time axis opened the time zones too): a submenu opens for a pointer that moves onto its entry and rests. Right to left, “more”, the Trade and Layouts menus and yours from addToolbarDropdown line up under their buttons as the toolbar's own menus do; left to right, Trade and Layouts without room after their start end where their button ends. The right-click and “more” menus are frosted with ui.blur. The timeframe menu and, at 768 px high in the Print look, the drawing tools no longer scroll by a few px, and an indicator's values cut by a narrow chart stay whole up to the cut, which ends in an ellipsis; with no room for a digit and an ellipsis they hide, leaving the name, where they showed a sliver. lerpColor reads rgb() and rgba() as well as hex, mixing an alpha as color-mix does: PerformanceDashboard's months between -5% and +5% took an earlier month's colour (falls painted green), and are red or green now; a HeatmapChart labels each cell in white or dark ink, whichever reads better, so a label reads at 4.5:1 where either can (white stayed down to 3:1: a light theme's month at -3.4% read at 3.1:1).

1.50.0 (2026-10-25)

React, Vue and Svelte components: 1.3.33.

An airy look

The look 2.0 will open with, to choose now: more bars on screen, with air between them, and lighter figures.

  • barLayout: 'golden' (or chart.setBarLayout('golden')): a candle's body is the slot × φ⁻¹ (62%) at every zoom, the rest a gap, and the chart opens at φ⁴ ≈ 6.85 px a slot. A full-HD chart opens on about 240 bars where it showed 170. 'classic', a 2 px gap and 10 px a slot to open, stays the default until 2.0. Over bars on screen, a new layout keeps the zoom and splits each slot again.
  • The chart's own text over any theme: the font option and chart.setFont({ family, sizeSmall, … }) set the face and sizes of the axes, the legend and the tags, and stay through theme changes; chart.setFont(null) goes back to the theme's. SANS_FONT_FAMILY is a sans face every system has.
  • The widget's ui: { density: 'airy' } turns it all on: spacious controls, the figures in the look's sans face, golden bars. chartOptions.barLayout and chartOptions.font win over it. The Feature Lab's look picker has it.

1.49.1 (2026-10-25)

React, Vue and Svelte components: 1.3.32.

One way in for the bars

Every way bars reach the chart (setData, appendBar, appendBars, updateLastBar, updateLastBarFromTick, prependBars, a stream, a replay, the extended hours hidden or shown) now goes through one place, the series store. A seeded test runs each of them, mixed, against a chart given the same bars with setData, its bars and indicators alike. It found three faults:

  • A trade keeps the forming bar at its own time. updateLastBarFromTick moved the bar's time to the trade's: getData() showed the bar off its interval, a stream's next update for that bar was taken as an older bar and left out, and with the extended hours hidden the trade was lost when they were shown again. mergeBar keeps the bar's time the same way.
  • A stream's bars during a replay are placed by their time, as they are outside one. A new forming bar replaced the last bar, and a bar's close added it a second time, so replayStop() brought back a series the feed never sent.
  • A stream in milliseconds on a series in seconds, with the extended hours hidden, left its bars in milliseconds among the hidden ones: shown again, the series mixed the two units.

The docs say what agents still read the compiled code for: getIndicatorOutput (series[i] is the value at bar i, keyed by the indicator's lines) and replayStart (startIndex is the first bar it reveals; one bar every interval / speed ms).

1.49.0 (2026-10-25)

React, Vue and Svelte components: 1.3.31.

What the types say

What coding agents still read the compiled code for, in the evals after the last fixes.

  • The built-in indicators are in the types. BuiltInIndicators lists the 134 by id: each one's inputs, with their defaults and ranges in their notes, and the keys of the lines it draws (as getIndicatorOutput and indicatorSource name them). addIndicator('rsi', { period: 14 }) offers the ids and the inputs as you type, and a misspelt input fails the type check ({ stddev: 2 } for the bands' stdDev). Any id still takes any inputs, for the indicators a plugin registers (IndicatorId, IndicatorParamsFor&lt;Id&gt;). The components' indicators prop takes the same ids. The file is generated from the registry with the other docs.

- For TypeScript code: an object literal with an input the built-in doesn't have no longer compiles (it was ignored), and neither does true or false for a number. Values are otherwise as loose as they were: text for a number (a form field's value), any text for a kind. A function generic over the id types its inputs IndicatorParamsFor&lt;Id&gt;.

  • Notes the published types dropped are in them. Fields and union members explained by a comment at the end of their line lost it in the .d.ts files. They are doc comments now, and a test keeps new ones so: a replay's interval and speed (one bar every interval / speed ms, 500 and 1 by default), the stream's reconnecting (StreamConfig.reconnect, and the DataAdapterConfig fields it doesn't pass to an adapter), a market's lot, price step, limits and session times, a Renko brick, what each trading adapter event carries.
  • Which keys colour the wicks. applyOverrides, the overrides option and CHART_STYLE_KEYS say that series.candlestick.upColor / downColor colour the wicks with the bodies, and that wickUpColor / wickDownColor give the wicks colours of their own. The skill has every key with its kind (references/style-keys.md, generated).
  • A widget switch never adds a part, and its features and depthLadder options now say so: the depth ladder and the watchlist come from their options, and features: { depthLadder: true } alone makes no ladder. The comment over the on/off options said each one stands for its switch, which read the other way.

1.48.0 (2026-10-25)

React, Vue and Svelte components: 1.3.30.

Live bars through the components' data

  • React's data takes bars that go on from the last as live ticks. A new array with its last bar changed, or bars added after it (setBars((bars) =&gt; [...bars, next]), several at once in a batched render), goes in through updateLastBar / appendBar / appendBars, as a stream's bars do: the view isn't reset, only the end is computed again, and alerts and orders follow the price. Each new array was a new series, the view back to the newest bar and every indicator computed again, and 1.46.0's docs said to feed a live chart through the ref instead; the ref still works.
  • Vue and Svelte take a new array the same way. A push onto the same array, or its last bar changed in place, went in as ticks already, one bar at a time; several pushed between two renders now go in together, and the bar before a new one is no longer sent again when it is as it was.
  • Any other bars are a new series, in all three: an older bar changed (as a new bar object), bars taken away, a bar the chart can't take, a window that drops its oldest bars. So are the next bars after a stream, or code through the chart itself, gave the chart bars of its own, and after data was taken away. The chart gets plain copies of the bars' six fields, so frozen state is left as it is.
  • Ticks go on as a stream's do: a replay running goes on, a price range the user dragged stays, and bars added together go in as appendBars takes them (the alerts check their last close).
  • feedBars(chart, bars, prev), the rule the three share, is exported from @tradecanvas/chart beside syncIndicators.
  • appendBars keeps a view that setAutoScroll(false) stopped from following new bars, as appendBar does; it scrolled to them.

1.47.0 (2026-10-25)

React, Vue and Svelte components: 1.3.29.

One spelling for the time zone

What coding agents ran into in the evals: the option is timeZone, the methods were setTimezone, and an option written from the methods' name failed the type check.

  • timeZone in the chart's methods and types, as Intl.DateTimeFormat spells it: setTimeZone, getTimeZone, getEffectiveTimeZone, getExchangeTimeZone, EXCHANGE_TIME_ZONE, and SymbolInfo.timeZone for the zone a symbol keeps its hours in (MarketConfig and the session shading spelled it so already).
  • The older names still work, marked deprecated: setTimezone, getTimezone, getEffectiveTimezone, getExchangeTimezone, setTimezoneOffset (an offset is setTimeZone(minutes)), EXCHANGE_TIMEZONE and SymbolInfo.timezone. A symbol's zone reads back both ways from getSymbolInfo(), and timeZone comes first when both are given ({ ...chart.getSymbolInfo(), timezone } still changes it). marketStatus, a feed's update and the new symbolTimeZone(info) read either; Binance's symbols carry both. The widget's own names, such as the switch menu.chart.timezone, stay as they are.
  • The docs' time zone section showed only fixed offsets, through setTimezoneOffset. It now shows the option, IANA zones, 'exchange' and what each getter answers.

1.46.0 (2026-10-25)

React, Vue and Svelte components: 1.3.28.

The widget, as agents found it

What coding agents ran into in the evals, on the widget.

  • onReady runs once the widget is built, in a microtask after new ChartWidget() returns, and gets the widget as well as its chart. onReady: () =&gt; widget.openPanel('watchlist') threw, the widget's name not yet set, though it type-checked. It no longer runs for a widget destroyed first, nor for one whose making failed.

- For code written to the old order: the statements right after the constructor now run before it (a setData there comes first, and a variable onReady sets is not set yet: use widget.getChart()). A view shared in the URL (shareUrl) is still put back after it. An error it throws is reported as uncaught, no longer by the constructor.

  • A shared link cut short (#tcw= that isn't a URI component) is left alone; it made the widget's constructor throw.
  • The docs say what agents read the compiled code for:

- the watchlist option is a panel of the dock, shut to start with like every panel: widget.openPanel('watchlist') opens it;

- a widget without adapter connects nowhere and shows the bars you give setData (a coarser interval is made from them, a symbol or a finer interval comes to onSymbolChange / onTimeframeChange);

- isFeatureOn answers for one switch as set: with replay: false the replay button is gone, and isFeatureOn('toolbar.replay') is still true (a part shows while its capability, its place and its bar are all on);

- saveState, setAutoSave and loadStateFromStorage say what a layout holds (not the bars) and when it is written;

- the React component says which props follow their changes and which are read at mount, that a new data array is a new series (for a live feed, update the chart through the ref), and that unmounting closes the stream and destroys the chart.

1.45.0 (2026-10-25)

React, Vue and Svelte components: 1.3.27.

Live prices from your own feed

What coding agents ran into in the evals, on the chart.

  • A price fed by hand is the live price. updateLastBar, updateLastBarFromTick, appendBar and appendBars move the price line, the alerts and the orders' P&L, as a connected stream and setCurrentPrice do. Alerts on a chart fed by your own code never went off, and nothing said why. The same price sent both ways fires an alert once. A bar the chart can't take (a price that isn't a number or is below zero, a high under its low) is left out, price and all: it no longer sets off an alert the chart never shows.
  • The first live price after the bars counts. An alert crosses from the series' last close, so a first tick past the level fires it; that tick only set the starting point. A stream's bar close is a live price too, as its forming prices were.
  • dataUpdate says what changed, by kind: 'bars' ({ length }) for setData, a reconnect's bars and each new bar, by hand or by the stream (most feeds send a new bar forming first, which sent nothing); 'alert', 'bracket', 'connection' and 'error' for the rest. A tick on the forming bar sends none (indicatorUpdate follows those). New bars go out before the alerts they set off. Its payload is typed as it is, DataUpdatePayload, exported: it was typed as a series it never carried, so code that read e.payload.length checks e.payload.kind === 'bars' first.
  • getChartType() reads the chart type back; it was only in saveState().
  • setTimezone('exchange') shows the market's zone when the symbol names none: setMarket(MARKET_HOSE) then 'exchange' is Vietnam's time. A market set later moves it too; a zone chosen otherwise stays. getExchangeTimezone() says which zone 'exchange' stands for, and the widget offers it in its zone lists for a market as well as for a feed that names the symbol's.
  • The market presets (MARKET_HOSE, MARKET_HNX, MARKET_UPCOM, MARKET_VN30F, MARKET_CRYPTO, MARKET_NYSE) say what they hold, and setMarket what it applies and what it leaves (the axis's zone, the number locale).

1.44.0 (2026-10-24)

React, Vue and Svelte components: 1.3.26.

The account panel and the depth ladder

The last part of the trading round, in the Print look.

  • The account panel keeps the open P&L and the P&L realised in its head on every tab (it showed the realised only under the history). Each tab's count is a figure in a soft pill.
  • Its figures (quantities, prices, P&L, stops) are set right in the chart's mono type. Money is written to the price step's decimals in the number locale, with the percent beside it (+119.36 · +0.08%), and signed figures read left to right in a right-to-left widget.
  • Its headings are in the label case. In a narrow widget (a phone, a narrow column) each row is a card of named figures (columns were cut off), the headings kept for a screen reader, and the totals go under the tabs. Each tab is named with its count ("Positions (1)"). The realised P&L shows once there are fills or a figure. Reverse uses the arrowUpDown icon, as on the chart.
  • The depth ladder is a page of the dock beside the chart, not a floating box over it and the watchlist: open it from the Trade menu, its rail button or widget.openPanel('depthLadder'). A new switch, dock.depthLadder, takes its rail button away.
  • The ladder's rows are 21 tall in the mono figures (26 in a narrow widget, for a finger): asks over bids with the spread between them on a dashed rule, each size on a bar grown from the price, its columns lined up row to row. The rows where your working orders wait carry their quantity, stamped in the side's colour and named by their side (a buy before the price, a sell after it); an order marks a row within half the market's price step of it.
  • Its cells say their size and what a press does to a screen reader ("2, Sell @ 76,336.03"), and sizes are written short (1.5k, 0.5). It draws only while open, keeps its buttons while only the sizes change (a press or the focus is never lost to a feed's update), and brings the spread to the middle of its own page without scrolling the page around the widget.
  • Two new strings in all 30 languages (the open P&L, the spread).

Fixed

  • The order ticket and the account panel lost a figure's sign in a locale that writes other digits (Persian, Arabic): a loss read as a gain. A figure goes unsigned only when it reads as zero does, and is coloured by the sign it shows (a loss too small to show is "0.00", not a red one).

1.43.0 (2026-10-24)

React, Vue and Svelte components: 1.3.25.

The order ticket

The order ticket and the Trade menu in the Print look, the second part of the trading round.

  • The ticket is a dialog 480 wide that names the symbol beside its title. Buy and Sell are two large buttons, the chosen one filled with its colour. The type (market, limit, stop) and the time in force are choices in a row, moved through with the arrow keys, not selects.
  • − and + beside the quantity and the prices (and the arrow keys in them) move them on a grid: a price by the market's step (the chart's getPriceStep; going down from a band's edge, by the band below), a quantity by a lot, or else by its own last digit (0.5 by 0.1). A value between steps lands on the next one; − stops at one step. A price from the chart starts rounded to that step and is written to its decimals: a click on the chart filled the price with a raw float (75997.2844890925). What is typed stays as typed, and is what Place sends.
  • A stop-loss or take-profit, switched on, starts 1% or 2% from the entry as it is then, rounded as the chart rounds, and says under its name how far it is in percent and what it would make or lose for the quantity.
  • A receipt under them sums the order up: its value, its risk, its reward and reward to risk, in the chart's mono type, money to the decimals of the price step (two at most) in the number locale, a futures contract's points times its multiplier (contractMultiplier). A stop or a target on the wrong side of the entry sums to nothing.
  • Switching between buy and sell keeps a waiting order where it was put: a buy stop over the market becomes a sell limit (it showed an error). Place takes the side's colour; a market order's price row shows the market's price now. On a phone the ticket is a sheet above the keyboard.
  • The Trade menu sets the panels (depth ladder, account) apart from the orders and brackets with a rule.
  • On a phone the layouts dialog takes the sheet's whole width (it kept 480 px between 481 and 640 px).
  • Six new strings in all 30 languages (the receipt's four, the −/+ buttons' names); ticket.riskReward is gone.

1.42.0 (2026-10-24)

React, Vue and Svelte components: 1.3.24.

Orders and positions on the chart

The trading lines in the Print look, the first part of the trading round.

  • Tags at the right end of each line, by the price axis: they no longer sit over the legend at the plot's left edge. Each is a small paper tag bordered in its line's colour, its first cell stamped in that colour:

- an order: its quantity, its side and kind (0.25 Sell limit), and × to cancel it;

- a position: what is still open of it, its side and its open profit or loss, then ⇅ and ×;

- a stop or a target: SL or TP and what the position would make or lose there, and × to remove it.

  • Tags that would cover each other stand side by side, what is being placed nearest the axis, then positions, then orders; one that can't fit has no buttons, as it may lie under another.
  • A press on an order's, a stop's or a target's tag drags that line, whatever line is nearer, and keeps it on the plot. A stop or a target being dragged shows where it is going: its line, what it would make, its price on the axis, a faint line where it was.
  • A press between two buttons in a column (a finger's reach) takes the one it is on, not the neighbour drawn after it.
  • Prices on the axis for stops and targets as well as entries and orders; the trading badges move apart when they would overlap (an order beside a stop hid its price), and the scale keeps clear of where they end up.
  • An order to open with a stop and a target (stopLoss, takeProfit) shows them as dotted lines with what they would make.
  • Bracket placement has the same tags: its side and reward to risk on the entry, the distance in percent on the stop and the target, their prices on the axis, and no knobs at the edge. Its bar sits at the foot of the chart (at the top while the replay bar shows), centred: its entrance animation undid its centring, so it started at the middle and ran off a phone's screen. It reads in the widget's direction, and its name gives way before Place does.
  • positionLabel fills the position's tag after its quantity. Lines' buttons are icons of the set (new: arrowUpDown). A profit that rounds to nothing is "0.00", not "+-0.00".
  • The trading page's examples call the real API (setPositions, setOrders, modifyPositionIntent({ positionId }), setTradingConfig({ positionLabel, pnlThresholds }) with pnl stops), in six languages.

Also

  • The watchlist opens when asked: ChartWidget no longer opens it by itself on a widget 987 px wide or more. Every panel starts shut, on the rail; widget.openPanel('watchlist') opens one from code.
  • MockAdapter ends its history on the timeframe's grid, so its ticks build the newest bar from the start: for up to a bar's length they were dropped, the price line moving while the bars stood still (and a host reading getData() saw a stale close). The forming bar keeps its open and grows its range.

1.41.0 (2026-10-24)

React, Vue and Svelte components: 1.3.23.

The shortcut sheet, the command palette and layouts

The last of the widget's dialogs in the Print look.

  • The shortcut sheet (?) is a dialog 610 wide with a search: find a shortcut by what it does or by its keys ("alt+g"). Each row says what it does, then its keys; a gesture (drag, double-click, pinch) is written as words, not drawn as a key. Groups keep together in two columns (one on a phone). The "Got it" button is gone: its foot says how to open it again. It gives the keyboard back to what opened it, and keeps its keys from the chart.
  • The command palette (Ctrl/⌘+K) is a dialog like the symbol search: the widget's own commands first, then the drawing tools, chart types, intervals and indicators, each with its keys at the end of its row (Alt+T, Alt+G). The commands used last come first until something is typed, kept in this browser. Searching ranks the matches, the group with the best one first. New commands: symbol search, compare, go to, reset the view, invert the price scale, save the layout, the watchlist, alerts and objects panels, and the shortcut sheet; each is left out with its switch (or without a feed, layouts or a watchlist). A row shows only keys that work: none while its key switch is off, none once a shortcut you added with addHotkey takes them. Ctrl/⌘+K closes it again, and a search finds keys typed with a space or a plus ("alt g"). The keys stay in its search; an input method's Enter and Escape are its own.
  • Layouts: the dialog is 480 wide with the dialogs' search row; the layout open is marked with a check and its name in ink (no "Open" tag), rename and delete show on the row in hand. The menu says Save's keys (Ctrl/⌘+S) while hotkeys.save is on.
  • On a phone the palette and the layouts dialog are sheets that stop above the on-screen keyboard. In the palette and the symbol search, a row the arrows reach scrolls in below its group's heading, and "no results" is said to a screen reader.
  • Three new strings in all 30 languages; hotkeys.gotIt, common.navigate and common.select (not used) are gone. The old palette's styles (.tcw-cmd-*) are gone.

1.40.0 (2026-10-24)

React, Vue and Svelte components: 1.3.22.

The dock: the panels beside the chart

The watchlist, alerts, the object tree, the data window and the symbol info are panels of one dock beside the chart, in the Print look, no longer cards floating over it (the watchlist no longer a bar of its own).

  • A rail at the outer edge has a button for each panel: it opens its panel in place of the one open, or shuts it when it is the one open. Each panel's close button shuts it too. The arrow keys, Home and End move along the rail, which always keeps a Tab stop on a button that shows. In a right-to-left widget the dock sits on the left.
  • The watchlist opens by itself on a widget 987 px wide or more (610 for the chart, 377 for the panel), until a panel is opened or shut by hand.
  • The panel is 296 px wide to start, from 233 to 377: drag its edge, or use the arrow keys, Home and End on it. The width is kept in this browser. It never takes more than 38.2% of its row: the chart keeps the rest.
  • Every panel has one header: its title, its own buttons and a close button. The watchlist's title is its list's name and menu; its + is an icon now.
  • On a phone, or a widget narrower than 641 px, there is no rail: a panel rises from the bottom over the chart, 61.8% of its height, above the on-screen keyboard and under the toasts; it starts shut and shuts on Escape, and a panel open as the widget turns narrow (a tablet turned) shuts. Alerts and the object tree open from the toolbar there; while the rail shows, the toolbar hides its buttons for them, its "more" menu too. When a panel shuts, the keyboard goes back to its rail button, or to its toolbar button, or to "more".
  • The watchlist's sparklines are drawn again as its panel shows.
  • The charts of a ChartWidgetGrid have no rail each, unless widget.features turns dock on.
  • widget.openPanel(panel), widget.closePanel() and widget.getOpenPanel(), with the type WidgetPanel ('watchlist' | 'alerts' | 'objectTree' | 'dataWindow' | 'symbolInfo'). toggleSymbolInfo opens and shuts it in the dock.
  • New switches: dock (the rail) and dock.watchlist, dock.alerts, dock.objectTree, dock.dataWindow, dock.symbolInfo (its buttons); 132 in all. A panel whose switch goes off shuts.
  • The icon set has list and table. The small buttons in the object tree's and the alerts' rows show their icons at their size (the browser's padding had squeezed them to 8 px).
  • Two new strings in all 30 languages.

1.39.0 (2026-10-24)

React, Vue and Svelte components: 1.3.21.

Symbol search, Compare and Go to

The three dialogs that find a place on the chart are rebuilt in the Print look, as the indicators dialog is.

  • Symbol search is a dialog with a title, the search, and the results in columns: the symbol (left to right in any widget), its name, then its kind and exchange; the chart's own symbol is marked, for a screen reader too. It lists your symbols until something is typed, then asks the feed's search once typing pauses, as before; the rows stay on screen while the next search runs, and rows of the feed without a symbol are skipped. Results of more than one kind (stocks and crypto, say) can be narrowed to one with the chips over the list. The names a search told of are kept for the list the dialog opens with next time. The keys stay in the search field: up and down move through the list, Enter picks; while an input method composes, Enter, Escape and the arrows are its own. "Searching…" and "No symbols match" are said to a screen reader.
  • A letter typed on the chart opens the symbol search with that letter in it, as a digit opens the interval field; on another script's keyboard, the Latin letter of the key's place. The dialog says so at its foot (not on a touch screen). features: { symbolTyping: false } leaves letters alone; a shortcut of yours on a plain letter (addHotkey) still comes first, and a key an input method is composing, or one typed with Alt Gr, is left alone.
  • A press elsewhere on the page now leaves the keyboard to the page: the widget's keys (letters, digits, Alt+T and the rest) go to it again once it is pressed or holds focus. A press in one of its dialogs or menus counts as a press in the widget.
  • Compare opens the same dialog, titled Compare symbol, with Add as under the search: percent change on this scale, the price on its own scale or in a pane of its own, the spread, the ratio, or the correlation of prices or of returns. A pick adds the symbol that way and the dialog stays open for the next (a held Enter adds once; a symbol picked again while its bars load is added once). What is compared already (overlays and the indicators that read another symbol) is listed first, under its own heading, each with its colour, its way and a button to take it off. The dialog opens next time on the way used last, and closes when compare is switched off. The menu of ways that followed a pick is gone.
  • Go to is a dialog in the middle of the widget, no longer a popover over the status bar. Date centres the bar of a day and a time; Custom range shows the bars between two of them edge to edge (chart.setVisibleRange), starting from those on screen (on a Renko chart, its bricks). The month under the fields fills the date field in hand; after a range's start it moves on to its end. Daily bars and longer have no time to give, and days after today can't be picked; today is today in the chart's time zone. A date missing, or after today, is marked and the keyboard put on it.
  • chart.getVisibleTimeRange(): the times of the first and last bars on screen (of the series drawn), or null without data.
  • On a phone a dialog's sheet keeps its top on the screen when the keyboard opens: the symbol search, the indicators dialog, the chart settings and the rest.
  • The month in a date field's calendar and the one in Go to are one piece, MonthView; a date field marked data-tcw-calendar="inline" keeps the widget's calendar popup shut.
  • A dialog's tabs keep the case their words have (“Custom range”, not “Custom Range”).
  • Twenty-one new strings in all 30 languages; the hotkey sheet lists A–Z. compare.spread, compare.ratio, compare.correlation and compare.correlationLog are gone (the menu that used them is).

1.38.0 (2026-10-24)

React, Vue and Svelte components: 1.3.20.

A drawing's settings

A drawing's settings dialog is laid out as the indicator settings are, in the Print look: 480 wide, its tabs along the top, Template, Cancel and OK at the foot.

  • Style has the line in one row (colour, width, dash), its ends, the fill and its opacity, then the tool's own switches as ticked rows and its choices, and the levels last, in two columns on a desktop. The Properties tab is gone: what it held is here.
  • Text, for the tools that write: the text, across the dialog, and its size.
  • Coordinates: a row per point, its price, date and time; on a phone the price above the date and time.
  • Visibility: the intervals the drawing shows on, as an indicator's. A drawing kept to some intervals is not drawn, hit or selected on the others (nor along with its group), and a selected one leaves the selection when the interval changes to one it is not on. It is copied and pasted with its intervals. The object tree steps it back while it is off the chart's interval, and says why.
  • The Template menu lists the templates saved for the tool and the plain ones (each with its delete button), saves the drawing's look as a template under a name it asks for, keeps the options as the tool's default, and resets them. The template list and the name field under the style are gone, and so is the dialog's Add alert link (the drawing's toolbar and its right-click menu have it).
  • Trend lines, rays and extended lines have a middle point and stats when asked: the price's change and its percentage, the bars and the time between the two points, the angle. They show while the line is selected, or all the time, by its right end, its middle or its left end. A trend line's ends can be arrows.
  • DrawingState.intervals (the same rules as IndicatorIntervals), kept in saved layouts; chart.updateDrawing(id, { intervals }) sets them (null: every interval), chart.addDrawing({ …, intervals }) starts with them, and chart.isDrawingShown(id) says whether a drawing is on the chart now. DrawingManager.setTimeframe() and isShown() in @tradecanvas/core.
  • New options on trendLine: leftEnd, rightEnd ('normal' or 'arrow'); on trendLine, ray and extendedLine: showMiddlePoint, showPriceRange, showBarsRange, showDateRange, showAngle, alwaysShowStats, statsPosition ('left', 'center', 'right'). All off by default: lines look as before.
  • The line's colour carries to the levels and the fill that have none of their own as it is picked. Adding or removing a level keeps the keyboard there. In a right-to-left widget the arrow keys move the other way along the tabs of a drawing's and an indicator's settings.
  • Nineteen new strings in all 30 languages; drawingSettings.tab.options is gone.

1.37.0 (2026-10-23)

React, Vue and Svelte components: 1.3.19.

The chart's right-click menus

The menus on the plot, the price axis and the time axis are rebuilt in the Print look, grouped as a trader looks for them, with submenus and the widget's shortcuts.

  • The plot's menu adds Paste, for the drawings copied here or on another chart of the page, and Remove indicators (a comparison with another symbol stays: it has its own dialog). Its entries come in groups: what to do at the price, the view, the drawings and indicators, then export and the settings.
  • The price axis's menu: reset the price scale, auto scale, invert, the scale on the left; the four modes (regular, logarithmic, percentage, indexed to 100) as one choice, where log and percentage were switches back to regular; Labels (indicator values, the bar countdown) and Lines (high and low, the last price line) in submenus; an alert at the price; and the settings, open on their Scales tab.
  • The time axis's menu adds the time zone, a submenu that opens at the zone in use.
  • Shortcuts in the menus. An entry names the widget's key for it while that key is on: Alt+R reset view, Alt+I invert, Alt+G go to date. Alt+R is new: every bar in sight and the price scale fitted to them; the shortcuts sheet lists it.
  • Context menus take radio entries, a shortcut written at the row's end, and submenus: a click, Enter, the right arrow or a pointer resting on the entry opens one beside it (on the other side when there is no room), the left arrow or Escape closes it, Tab closes every menu. In a right-to-left widget they open to the left, and the arrows swap. On a phone, where menus open from the bottom, a submenu's first row leads back. The wheel scrolls a long menu instead of closing it.
  • New switches: menu.chart.indicators, menu.chart.timezone, hotkeys.resetView (125 in all).
  • chart.canPasteDrawings() says whether pasteDrawings() would paste; DrawingManager.canPaste() in @tradecanvas/core.
  • chart.removeIndicators(ids) removes several indicators as one undo step.

1.36.0 (2026-10-23)

React, Vue and Svelte components: 1.3.18.

The chart settings, rewritten

The widget's settings dialog is laid out as the indicators dialog is, in the Print look: 776 by 610, half a step of φ wider than the indicators dialog, its tabs 233 wide down the side.

  • Tabs down the side, each with its icon: Symbol (the chart type's own settings and colours, the main series, extended hours, the last price, the volume, the high and low), Status line (the legend and its colours), Scales (the scale mode, auto, invert, the left scale, value labels, the countdown, the time zone, the number format, the axes' colours), Appearance (background, panes, grid, crosshair, session breaks, handles), Layers (volume and market profiles, the depth heatmap, swings, session shading, prior levels) and Trading (orders, positions, signal markers, trade zones).
  • Cancel and OK. Every change still shows at once. Cancel, Esc, the close button or a click outside put them all back; OK keeps them as one undo step, where each change was a step before. Only what the session changed goes back: a scale dragged by hand meanwhile stays.
  • The Template menu saves the chart's look under a name (its switches and the colours that are set; not the time zone, the number format or auto-scale), applies or deletes a saved one, and resets to the defaults. Templates are kept in this browser.
  • A context menu's entries can now be removable: a remove button on the row, and the Delete key. A context menu taller than the room scrolls.
  • Fixed: a drag that began in a dialog and ended outside it (a slider, a text selection) closed the indicator settings, which now cancels; it doesn't any more. A toast raised over an open dialog shows above it.

1.35.0 (2026-10-23)

React, Vue and Svelte components: 1.3.17. 1.33.0 and 1.34.0 were not published on their own: their changes, "A new default look" and "A calmer chart" below, came out in 1.35.0.

The Indicators dialog and the indicator settings

The toolbar's Indicators opens a dialog in place of the dropdown, and an indicator's settings are rewritten, in the Print look.

  • The Indicators dialog searches every indicator by its name or short name as you type (Enter adds the best match), or lists a group picked down the side: Favourites, Templates, All, then each kind (moving averages, trend, oscillators, volatility, volume, bands and channels, price and patterns). A row adds its indicator and the dialog stays open for the next, with a count of how many are on the chart; the star beside it keeps it in the favourites (in this browser). The templates moved here from the old menu. On a phone the groups are a row of chips. The old menu's "Popular" list is gone.
  • Indicator categories (@tradecanvas/core): indicatorCategory(descriptor) and INDICATOR_CATEGORIES; the 134 built-ins each have one, and a custom indicator can declare its own category (IndicatorCategory in @tradecanvas/commons).
  • An indicator's settings have three tabs. Inputs as before. Style: a row per line, ticked where it is drawn, with its colours (up and down for two-tone ones) and its dash; the line width; an overlay's price scale; and the levels, which had a tab of their own. Visibility: the intervals it shows on.
  • Cancel, OK and Defaults. Every edit still shows at once; Cancel (or Esc, the close button, a click outside) puts back everything changed since the dialog opened, and OK keeps it. The whole edit is one undo step, and a Cancel leaves none (chart.beginIndicatorEdit(id) and endIndicatorEdit() do this for your own dialogs). Defaults resets the inputs, the lines, the levels and the intervals, or saves the default for new indicators of the kind, in this browser: the inputs changed from the indicator's own (not a line of another indicator) and what was picked of the look; colours the chart gave stay its to give, so a second one still gets a colour of its own.
  • On some intervals only. chart.setIndicatorIntervals(id, { minutes: false, hours: [1, 4] }) keeps an indicator to some intervals of the connected stream (null: all); getIndicatorIntervals reads them back. For bars given with setData, chart.setDataTimeframe('1h') gives the chart their interval (the legend's title line names it too); ChartWidget does this itself. A range up to its unit's top (59 minutes, 24 hours…) runs on past it, so minutes: [5, 59] shows on 90m too. They are saved with the layout and undone like other edits, and indicatorChange reports them as 'intervals'. getActiveIndicators() now says whether each is shown; the widget's legend greys out a row while its indicator isn't drawn on the interval.
  • Fixed: on a phone, a dialog's tabs cut off the text of the tab picked; they are taller now instead of padded.
  • Fixed: Tab left a dialog from a control Tab skips over (a row's star); it wraps to the dialog's first control now.
  • chart.isIndicatorAllowed(id) says whether addIndicator(id) may add one (features.indicators, features.indicatorIds); the Indicators dialog lists only those, and the command palette now lists the chart's indicators, your own included.
  • Compare's own indicators (compareSymbol, spread, the correlations), which need a second symbol, stay out of the Indicators dialog; SYMBOL_INDICATOR_IDS (@tradecanvas/core) names them.

The widget's bars, rearranged

The toolbar, the drawing tools, the status bar and the toolbar over a selected drawing are laid out as a trader expects to find them, in the Print look.

  • The interval menu lists each unit under its heading (ticks, seconds, minutes, hours, days, weeks, months); the pinned intervals stay as buttons, and the star on each row still pins.
  • The chart type shows as its icon, its name in the tooltip.
  • Compare sits beside Indicators where the widget has a data adapter to ask for the other symbol: it asks for a symbol, then how to compare it.
  • Undo and redo move from the drawing tools to the toolbar, each off while there is nothing for it. sidebar.undo and sidebar.redo still switch them off. They now show where the drawing tools are off too; toolbar.undo and toolbar.redo take them away there.
  • One Trade menu gathers a new order, the long and short brackets, the depth ladder and the account panel, the open panels ticked; each entry keeps its own switches, and the menu goes when nothing is left in it. The ladder now says when its own × closes it.
  • The drawing tools' menus name each tool's shortcut (Alt+T) and have a star on each row to pin it, in place of the right-click hint (right-click and the menu key still pin). Lock all and hide all join clear all, each showing whether every drawing is and undoing it next.
  • The status bar has a clock in the display time zone that opens the zones to pick from (the one in use ticked), and %, log and auto switches for the price scale, which go through the settings and follow a drag on the axis. It no longer repeats the symbol and interval: the legend's title line names them.
  • The toolbar over a selected drawing has a grip: dragged, it stays where it is dropped for the next drawing; a double-click on the grip puts it back.
  • New switches: toolbar.compare, toolbar.undo, toolbar.redo, toolbar.trade, sidebar.lockAll, sidebar.hideAll, statusBar.clock, statusBar.scale (122 in all). statusBar.symbol has nothing left to switch.

A calmer chart: room for volume, tidy figures, fewer tags

The chart keeps out of its own way: the candles stay clear of the volume, the axis writes no more digits than it needs, and the tags that used to pile up on the price axis are off or out of the way.

  • The volume band. Volume keeps to a band along the bottom of the plot, φ^-4.5 (about 11.5%) of its height, and the fitted price scale keeps the candles above it, with a gap of φ^-7; above the highest high it leaves φ^-5 (9%). With no volume on view, turned off (features.volume: false too) or none in the bars, the candles take the band back; on an upside-down scale the band stays at the screen's bottom. The scale fits the bars, the overlay indicators and the compare lines in one pass. fitPriceRange in commons; Viewport.setScaleMargins and fitToPrices in core.
  • Tick labels in the decimals their step needs: ticks on a 500 step read 73,500 rather than 73,500.00, and one column of ticks shares one count of decimals. The last price, the crosshair and the tags beside the axis keep every decimal.
  • Order, position and alert prices are written as the axis writes them: grouped in the chart's number locale (72,202.13 where they read 72202.13), at the market's or symbol's precision, else the axis's own, so a sub-cent coin's tags read 0.00000435, not 0.00 (priceTagText in commons; DEFAULT_TRADING_CONFIG no longer sets pricePrecision: 2). Trade zones' entry prices too. An order's axis tag carries the price alone, so it no longer runs off the axis; its line label names the kind and quantity (LIMIT 3). P&L in the position label is grouped too.
  • Indicator value tags are off by default (features.indicatorValueLabels: true or the widget's settings turn them on): the legend shows the values.
  • The bar countdown hangs under the last-price tag, in its colour, where it used to sit at the bottom of the plot; the scale's labels and the value tags keep clear of it, and the crosshair's pill draws over it. It shows with the tag (BarCountdown.render takes the tag as a last argument). Tag text takes a dark or light ink to suit the tag's colour.
  • The crosshair's price and time pills clear the axis labels they would half cover, so a pill reads alone instead of over a cut-off number.
  • A title line in the legend: the symbol, interval and exchange (from the stream and the symbol's details; setSymbolName still names it yourself) open the line that carries O, H, L, C and the change. On a narrow plot, as on a phone, the line wraps instead of running off the chart, and without a title it leaves no blank line.
  • The zoom and scroll buttons show only near the plot's bottom edge (or while one has the keyboard's focus), out of the way of the data; a held scroll keeps going if the pointer drifts.
  • The symbol info panel's view and its news loading moved out of ChartWidget.ts into a module of their own; every news load is now the latest one.

A new default look: Print, kept to the golden ratio

The chart and the widget start in a new look, Print: paper and ink, a quiet ground with colour only where it means something, and proportions taken from the golden ratio.

  • The chart's themes. Dark is warm ink on an off-black (#131416), light is ink on an off-white paper (#fbfaf6); neither is pure black or white, so text doesn't glare. Candles are a deeper green and red, and the line and area charts are drawn in ink.
  • Volume in one neutral ink, lighter under falling bars, since the candles above already show the direction. It stays neutral when you, the widget's settings or a market's colours change the candles: setMarket({ colorScheme }) and createVNTheme now recolour only the candles. resolveVolumeColors follows the candles only for a preset that colours its volume (Terminal). volumeColor(candle) still gives candle-coloured bars.
  • Figures in a monospaced face (Cascadia Mono, SF Mono, Menlo or Consolas, nothing to load): the axes, the price legend, the tags and the indicator rows line up in columns, and drawing labels take it too. The chart's type is 11, 13 and 15 px.
  • The crosshair is an opaque grey, 3:1 on the ground, so the bar tint and the Market Profile's POC line drawn in it keep their strength; the POC figure is in the text colour. Axis pills and the finance charts' tooltips sit a step off the ground (axisLabelBackground).
  • Solid hairlines: the crosshair and the last-price line are solid by default (they were dashed); crosshair.*.style and lastPrice.style still take dashed.
  • The widget's print preset, now the default (ui: 'studio' brings back the earlier look): hairlines, 3 px controls, 5 px menus, 8 px dialogs, capital labels, rules between the toolbar's groups, flat bars, a chosen button in solid ink and a chosen tool in ink blue. The accent is ink blue in both themes; fields are white boxes on the paper.
  • The golden ratio. Print's sizes climb in half steps of φ from the icon (16, 20, 26, 33, 42 px). Spacing and corners are Fibonacci numbers (--tcw-space-1 to --tcw-space-7: 2 to 34 px), and a menu's rows have the menu's corner less its padding (--tcw-menu-pad, --tcw-menu-item-radius), so the curves run parallel. Type climbs a third of φ at a time, so a dialog's title is φ times its text (10, 11, 13, 15, 18, 21 px; never under 10). PHI, FIBONACCI and phiStep come from @tradecanvas/commons.
  • Type sizes in every look follow that scale: --tcw-font-size-sm and -xs are a third and two thirds of φ under the body (11 and 10 px at 13), where they were 1 and 2 px under; --tcw-font-size-xl and --tcw-font-size-display are new. Menus, buttons and tabs are set at the body size, tooltips at the small one.
  • density: 'compact' and 'spacious' move Print's sizes half a step of φ down and up; Studio, Terminal and Capsule keep their earlier compact and spacious sizes.
  • The base parts change in every look: flat toolbar and drawing tools (no gradient or shadow), menus with 3 px of padding and rows whose corners nest inside the menu's, Fibonacci spacing in menus, dialogs and tooltips, and menus, buttons and tabs at the body size. Pass ui: 'studio' for the earlier look's corners, sizes and type.
  • The price legend and the indicator rows take the look's figures face, at one size.
  • A dialog's backdrop is blurred only in a look that blurs (ui.blur).
  • TC_PALETTE up, blue, ochre and violet are a little deeper, to keep 3:1 on the paper.

1.32.0 (2026-10-23)

An MCP server for coding agents

  • @tradecanvas/mcp, a new package: an MCP server that a coding agent (Claude Code, Cursor, Claude Desktop and others) starts with npx -y @tradecanvas/mcp, so it looks TradeCanvas names up instead of guessing them. Seven read-only tools answer from a catalog generated from the library's own code: the indicators with their params and line keys, the drawing tools with the points each takes, the options of ChartWidget, Chart and ChartWidgetGrid, the feature switches and the style keys.
  • validate_options checks an options object before it is used: unknown names with the one likely meant (and where an option of another entry point goes), values outside the allowed ones, numbers given as strings, intervals, feature switches, style overrides and languages, nested options included. Intervals and style overrides are read by the library's own readers.
  • The Getting started docs have a section on working with a coding agent: the skill, the MCP server and the llms files.
  • The docs counted 112 feature switches; the widget has 114.

1.31.0 (2026-10-23)

Form controls, one quiet look

The widget's fields, lists and pickers were the browser's own: heavy boxes, a thick ring on focus, a plain grey list under every select and the system calendar under every date. They now share one look, drawn from tokens.

  • Fields (alerts, settings, the order ticket, go to date, an indicator's inputs) have a faint fill and a hairline, a firmer line on hover, and on focus the line takes the accent, with no ring around it. A wrong value stays red under the pointer and in focus. Number steppers show only on a field in use.
  • Selects open the widget's own list, in its overlay layer above any dialog: a check on the chosen row, groups as headings, disabled rows greyed, the arrow keys, Home, End, Enter, Escape and typing a few letters (spaces too). The select stays the browser's &lt;select&gt;, so values, events and forms work as before.
  • Date fields open the widget's own calendar: a month with arrows, weeks from the day the language starts them, today underlined, days outside a field's min and max greyed and out of the keys' reach, and a Today button. Typing the date stays. Firefox keeps its own calendar.
  • Checkboxes, radios, sliders and switches are drawn to match, and scrollbars are thin and rounded, a thumb on no track, in both themes.
  • On a touch screen the phone's own wheel and calendar open, which suit a thumb better.
  • The look comes from --tcw-field-*, --tcw-check-line and --tcw-scroll-* variables, set for the dark and the light theme (Styling docs).
  • A list that opens above its button (one near the bottom of the window) no longer lands off screen.
  • A new price alert starts at the price as the chart shows it, not every digit of the last close.

1.30.0 (2026-10-21)

React, Vue and Svelte components: 1.3.12.

The widget on a phone

On a phone the widget's toolbar ran off the screen: past the intervals, the chart type, indicators, alerts, settings, replay and the order buttons could not be reached, and their menus opened off the side. Now the widget lays itself out for its own width.

  • A narrow widget (below 641 px wide: a phone, or a narrow column of a wide page) keeps the symbol, the interval, the chart type and the indicators in its toolbar, as icons, the interval as one button naming it. Everything else goes under a "more" button, in order, with what is switched off left out.
  • A toolbar that doesn't fit at any width (a tablet, a window pulled narrower) folds its right-hand buttons under "more" one at a time, from the right, only as many as it must; when even that isn't enough, the menus show their icons and the interval buttons give way to the interval menu. It fits itself again as the width changes, and "more" lists just what is folded. A host's own buttons on the right fold with them.
  • The toolbar's menus open over the page. The interval, chart type and indicator menus used to open inside the widget, so a short widget cut them at its bottom edge and its own panels (replay, alerts, the ladder) could cover them. They now open in the widget's overlay layer, below their button or above it when there is more room, and close when the page scrolls.
  • The drawing tools wait behind a round button over the chart, which shows the tool picked. It opens the sidebar over the chart; a tap on a group opens its tools, and picking one (or the eraser, the zoom tool, the style panel) closes the sidebar for the chart.
  • Menus open as sheets from the bottom on a phone screen (a window under 641 px wide): the toolbar's menus, the "more" menu, a drawing's or the chart's menu (a long press), in reach of a thumb, never off screen, above the on-screen keyboard, with 44 px rows.
  • A grid shows one chart at a time when narrow, with a tab for each naming its symbol and interval.
  • Menus now close on a tap on the chart, which makes no mouse events.
  • A chart with no size (a grid's tab not shown, a collapsed panel) no longer pages back through the whole history of its feed.
  • Docs: in a phone app. The viewport, the app's lifecycle (React Native, Capacitor), pageScroll, Tauri's content security policy and the chart's memory.

1.29.0 (2026-10-21)

React, Vue and Svelte components: 1.3.11. 1.28.0 was not published on its own: its changes, "Lighter on phones" below, came out in 1.29.0.

Everything by finger

A finger now does on the chart what the mouse does, and a chart on a scrolling page can leave the scroll to the page.

  • Drawings by touch. With a tool picked, tap its points, or press, drag and lift to draw a two-point line in one go. A drawing is selected, moved and reshaped by its handles with a finger, and a long press on one opens its menu, as a right-click does. The eraser takes drawings by touch too.
  • Taps and double taps. A tap is a click (click, barClick, signal markers); a double tap is a double-click: it resets an axis, or opens a drawing's settings.
  • Lines by touch: price alerts, order and position lines, a bracket's or an order draft's handles, and pane dividers drag with a finger.
  • A finger reaches further than a mouse: about 16 px to a line and 22 px to a handle, against 8 (TOUCH_REACH).
  • pageScroll (option and setPageScroll): a one-finger vertical swipe and the plain mouse wheel scroll the page; the chart pans with a sideways swipe and zooms with two fingers or Ctrl + wheel (a trackpad pinch). Presses on drawings, lines and axes stay the chart's.
  • A chart that neither pans nor zooms leaves page scrolling and zooming alone, and the wheel too.
  • A touch the browser takes back (touchcancel), or a second finger landing for a pinch, calls the press off: no click, no coast, a dragged order or bracket line goes back where it was without an orderModify, and a drawing's point the press just placed is taken back. The browser's own long-press menu stays shut over the chart.

Lighter on phones

Measured with the new phone run of the render benchmark (node scripts/bench-render.mjs --mobile: 390 × 844 at 3x, the CPU slowed 4x, an integrated GPU), one chart with four indicators: drawing the scene 34 → 25 ms, a live feed at two ticks a frame 18.5 → 11–13 ms, canvas memory 17.1 → 7.6 MB.

  • A pixel ratio of 2 at most (maxPixelRatio, setMaxPixelRatio, getMaxPixelRatio; Infinity for the screen's own): a 3x phone screen has 56% fewer pixels to draw, for lines barely softer. A change of ratio with the size the same (a window moved to another screen, the page zoomed) now resizes the canvases too. The finance charts take the same cap.
  • No frames no one sees. The chart stops drawing while it is off screen or the page is hidden, and its live ticks stop refitting the scales; it draws once what changed when it comes back, and a screenshot taken meanwhile draws first. Data, indicators and alerts keep up (pauseWhenHidden, on by default). An app embedding it in a WebView pauses it with suspend() and resume(); isSuspended() says whether it draws.
  • Indicators once a frame on a busy feed. A live tick recalculates the indicators before the next read of a value (the frame, an alert, the legend) rather than at once, so two ticks a frame cost one recalculation (IndicatorEngine.deferRecalculateFrom, flush).
  • Back from sleep. When the page comes back into view or the network comes back, a stream silent for more than 20 seconds reconnects at once instead of waiting up to a minute and a half for its heartbeat; a retry waiting out its backoff goes now, and one that gave up gets a fresh round (StreamManager.wake). A connection that drops schedules one retry, where the adapter's own disconnect and the heartbeat could each start one.
  • A destroyed chart gives its canvas memory back at once, which keeps charts mounted and unmounted in an app from adding up on iOS.
  • Momentum after a flick keeps time, so it coasts as far and as long on a 120 Hz screen as on a 60 Hz one, and stops where the finger left for someone who asked for less motion.
  • The widget on a phone: its watchlist and market timers skip a hidden page; bottom sheets sit above the on-screen keyboard (and stay at the bottom of a pinch-zoomed page); inputs are 16 px on touch screens, so iOS doesn't zoom the page; heights use dynamic viewport units; taps lose the grey flash; phone sheets fit the screen's width, borders included (they ran 2 px over); the connected dot pulses three times, not for ever.
  • React, Vue and Svelte: React swaps its crosshair listener instead of adding one on every render; Vue and Svelte feed a bar pushed onto the same array, or a change to its last bar, as a live tick (appendBar, updateLastBar) rather than reloading the series, so the view stays where the user left it and only the end is recalculated; a new array is still a new series. Vue no longer walks every bar on each change, Svelte now sees bars pushed onto $state data, and both pass plain bars rather than their proxies.

1.27.0 (2026-10-21)

React, Vue and Svelte components: 1.3.9.

One icon set, no emoji

  • Icons, not emoji. The alert line's label and the alert notice drew a bell emoji, the pinned tooltip a pushpin, trade zones ▲ and ▼, a favourite drawing tool ★, the palettes ⌕, ✓ and ⏎, close buttons ×, and the replay bar its own filled glyphs (now outlined, as the rest of the set). Emoji and symbol characters look different on every system and font; all of these now come from the TradeCanvas icon set, drawn the same everywhere at 1.75 px strokes on its 24 px grid.
  • The icon set moves to commons (UI_ICONS, DRAWING_TOOL_ICONS, CHART_TYPE_ICONS, iconSvg), so the chart's own canvas draws it too: drawIcon(ctx, icon, x, y, size, color) in core. New icons: pin, search, enter, step back and step forward.
  • widget.toast(message, kind, icon) takes an icon's name, shown before the text.
  • A test keeps emoji and symbol characters out of the sources.

Long ranges

  • The range bar shows all of a long range. A bar slot is never narrower than 0.25 px, so 5Y of daily bars, or All on decades of them, showed only the newest part. In the widget, a range the bars can't fit at 2 px each now switches to the timeframe they can: 5Y of days to weeks, All to months, a year of hourly bars to days. A short range goes back to the timeframe the user picked, and never finer. It only switches to timeframes the feed serves, or the bars on hand resample to; features: { 'statusBar.rangeTimeframe': false } keeps the timeframe.
  • minBarUnit (a chart option, or setMinBarUnit / getMinBarUnit) lets bar slots go from 0.25 px down to 0.02 px, so on a bare chart fitContent, zooming out and the 'All' range fit a long series, drawn a pixel column at a time. MIN_BAR_UNIT_LIMIT is exported.
  • The Vietnamese price limits are checked against integer arithmetic for every reference price from 1,000 to 300,000 dong on HOSE, HNX and UPCOM, and the VN30 futures, so a limit that falls exactly on a price step can't be rounded a step off.

1.26.0 (2026-10-21)

React, Vue and Svelte components: 1.3.8.

Axes that read at every zoom

  • Time axis labels by the calendar. The axis labels the bars that start the largest calendar steps: a new year (in bold), a quarter or month, a day, a round hour or minute, at least 80 px apart, as 2024, Mar, 15, 13:00. At 5Y it reads 2022 · Jul · 2023 · Jul; on hourly bars over years it still shows the years, which it never did. The labels belong to bars, not to the screen: they move with their bars when panning and stay where they were when history is loaded in front, where they used to jump. Month names follow setNumberLocale; bars within a minute show their seconds (13:05:30), and labels wider than the spacing (a long month name, a formatter's own text) give way instead of running together. A time formatter now hears kind: 'year' | 'month' | 'day' | 'time'; 'date' is no longer given by the axis (deprecated): a daily bar's label is 'day', 'month' or 'year' by the step it starts.
  • The grid follows the labels. Its vertical lines are at the time axis's labels and its horizontal lines at the price scale's, on the 2D grid and the GPU's alike; they could fall between them before.
  • Price labels fit the height. The price scale and the indicator panes fit as many labels as their height does, at least 30 px apart: a short pane no longer stacks eleven labels, a tall chart no longer shows eight.
  • Log scale. Its labels step with the price, so the lower part of the scale is labelled as well as the top (from 100 to 120,000 only the top quarter was, with labels overlapping). Autoscale pads a log scale by ratio (padPriceRange), so a series that rose more than about 13 times no longer drops to a linear scale when the padding went below zero.
  • Percent and indexed scales label round percents (-5.00%, 0.00%, +5.00%) and round index points from the baseline, not prices turned into odd percents.
  • Session breaks zoomed out. Their lines keep 6 px apart, the less significant giving way, and their labels (years, then months, then weeks) no longer pile up into a smear.

1.25.0 (2026-10-21)

React, Vue and Svelte components: 1.3.7.

Dates on the time axis

  • Right dates far back in history. A series' time unit, milliseconds or seconds, is now decided once from its newest bar (barTimeUnit(data)) instead of guessed for each time. Millisecond bars before September 2001 are below 1e12 and were read as seconds, so after a 5Y view a scroll back dated them around the year 32,000: on the time axis, the crosshair, the tooltips, the measure tool, session breaks, data export and CSV import. barTimeUnit and MS_TIME_THRESHOLD are exported, and normalizeBarTime(time, unit) takes the series' unit.
  • The time axis leaves the space before the oldest bar unlabelled (the bars there are not loaded yet), and shows the date wherever the date changes: a label a month later on the same day of the month showed only a time.
  • Times before the oldest bar (the crosshair, drawings placed there) follow the average spacing of the first bars, weekends and nights included, so 50 daily bars back is about ten weeks, not 50 days.
  • Renko, Kagi, Point & Figure and Line Break: setVisibleRange, the zoom area and fitContent work on the bricks shown, not on the bars under them, and the crosshair reads the brick under it: on these types crosshairMove now gives the brick and its index in the series drawn (it gave the data bar at that index, which was another bar). Heikin-Ashi and the other one-bar-per-bar types still give the data bar.
  • The legend's change on hover is from the bar before the hovered one; it was from the series' last bars.
  • Drawings saved in seconds before 2001 no longer pass for old bar-index anchors.
  • A bar or tick in the other unit than its series (a stream in milliseconds on bars in seconds) is stored in the series' unit, so it can't make the series read as that unit.

1.24.0 (2026-10-21)

React, Vue and Svelte components: 1.3.6.

Drawings and the legend

  • A toolbar over the selected drawing. Clicking a drawing in the widget shows a small toolbar right over it: colour, line width and line style, then settings, an alert on its line, lock, the full drawing menu and delete. Nothing hides behind a right-click any more. With several drawings selected it sits over all of them and changes each. It follows the drawing while it is moved, panned, zoomed or rescaled, steps aside while a drawing tool, the eraser or the zoom area is on, goes when nothing is selected, and works with the keyboard (one tab stop, arrow keys along it and through the pickers, Escape back to it). Colours, widths and line styles from saved layouts are checked before they are shown. features: { selectionToolbar: false } turns it off.
  • chart.getDrawingRect(id) gives the box a drawing covers on screen, cut to the plot (lines across the whole plot span it), or null when it is hidden or off screen: for hosts that put their own controls or notes over a drawing.
  • The OHLCV legend takes a fontFamily (chart.setLegend({ fontFamily }), the theme's font by default). Its volume and indicator rows are drawn at the OHLC size, and each value keeps its place while its digits change width, so the row no longer jitters on live ticks. In the widget the legend follows the look's font, at the size of the indicator rows listed under it.

1.23.0 (2026-10-21)

React, Vue and Svelte components: 1.3.5.

Candlestick patterns

  • detectCandlePatterns(bars, options) finds 64 patterns of one to five bars, each on the bar it ends on: dojis, hammers, shooting stars, marubozu and belt holds; engulfing, harami, piercing line and dark cloud cover, tweezers, kicking, counterattack, necks and separating lines; morning and evening stars, abandoned babies, three white soldiers and black crows, three inside and outside, two crows, tri-stars, tasuki gaps, stick sandwich, advance block; three-line strikes, rising and falling three methods, mat hold, breakaways, concealing baby swallow, ladder bottom. Reversals count only after the trend they reverse; bodies are long or short against the average body before. CANDLE_PATTERNS lists them with names, short labels, direction and kind.
  • The candlepatterns indicator (134 indicators in all) draws an arrow under each bullish pattern and over each bearish one, with its short name once the bars are wide enough; a live bar recomputes only the last bars. Reversals, continuations and indecision can be turned on and off.
  • Docs: the Indicators page in six languages; a Feature Lab scene on Vietnamese stocks with the patterns, the Psychological Line and Volume Ratio.

1.22.0 (2026-10-21)

React, Vue and Svelte components: 1.3.4.

Indicators from Asian price boards

22 more indicators, 133 in all, in the widget's indicator list too:

  • Sentiment and volume: Psychological Line (psy, with 25 and 75 marked) and New Psychological Line (newpsy), Volume Ratio (vr), AB Ratio (abratio, A and B lines), Intraday Intensity in percent (iii), Volume vs Average (volpct), Volume Change (volchange, each bar coloured against the one before), Trade Value (tradevalue, close × volume as an estimate of the value traded), Negative and Positive Volume Index (nvi, pvi, with an EMA signal).
  • Trend and momentum: Sonar with its signal (sonar), Sigma, the close in standard deviations from its average (sigma), Binary Wave, four trend votes from −4 to 4 (binarywave), Smoothed Rate of Change (sroc), Vertical Horizontal Filter (vhf), R-Squared (rsquared), Random Walk Index (rwi), True Range (tr).
  • On the price pane: Time Series Forecast (tsf), Weighted Close (wclose), the DeMark projected high and low for each bar (demark), and a moving-average Rainbow of up to 20 lines from a first period by a step (rainbow).

Counter-clock chart

  • CounterClockChart: average price against average volume, bar by bar, joined in time order and fading with age, with no time axis. getPhase() and counterClockPhase(points) name the last move's direction in eight phases, counter-clockwise from volume rising; counterClockPoints(bars, period) gives the points. Tooltip, onPointClick, a screen-reader label, dark and light themes.
  • Docs: the Finance charts page and the Indicators page in six languages; the site's finance section shows the chart.

1.21.0 (2026-10-21)

React, Vue and Svelte components: 1.3.3.

Charts for dashboards

  • BarChart: values by category, series side by side (mode: 'grouped') or stacked with positives up and negatives down from zero, upright or sideways (orientation: 'horizontal'), coloured by sign for net flows (colorBySign), values on the bars (showValues). Hovering a category shows each series' value; onBarClick gets the category, series, value and index. Labels that don't fit along the bottom show every few categories.
  • DonutChart: parts of a whole clockwise from twelve o'clock, a pie with innerRadius: 0, a caption and figure in the hole, each slice's share where it has room, a legend beside or under the ring; onSliceClick.
  • ScatterChart: points on two value axes, bubbles whose area follows size, axis titles, labels, lines at zero; the axes leave room for the largest bubble; onPointClick.
  • HistogramChart: values counted into bins (bins, binWidth on a grid from 0, or Sturges' rule), coloured by sign, with labelled marker lines (a mean, a VaR) that move a row down when they would overlap. histogramBins(values, options) is exported, and niceScale(min, max) for axes of your own.
  • All four follow the pointer with a tooltip, describe themselves to screen readers (an image role and a label, ariaLabel in your words) and draw in the dark or light theme; setOptions, update, setTheme, destroy. The other finance charts' canvases get the image role and setLabel too.
  • CalendarChart: a value a day, YYYY-MM-DD, in week columns and weekday rows, a calendar year to a band and ten years at most (the oldest give way on a short chart); Monday to Friday with weekdays: 5, weeks from Sunday with weekStart: 0, month and day names in locale, a colour bar under it; onDayClick.
  • MatrixChart: a coloured value for each row and column, square cells with the value printed where it fits, column names turned when they don't fit, half of a square matrix with triangle: 'lower' | 'upper'; onCellClick. correlationMatrix(series) gives Pearson correlations, pairing the positions both series have.
  • Market map by sector: HeatmapChart's grouped: true gathers cells by group, each group in a tile sized by its weights under its name and weighted change. The heatmap now describes itself to screen readers too (ariaLabel in your words).
  • ColorScale is a type of its own, shared by the heatmap, calendar and matrix; a colour left out keeps the chart's default (the theme's up and down colours on the newer charts).
  • Docs: the Finance charts page rewritten in six languages with the classes as they are (it showed renderer classes that don't exist), with the calendar, the matrix and the sector map; the site's finance section shows all seven new charts.

1.20.0 (2026-10-21)

React, Vue and Svelte components: 1.3.2.

Vietnamese markets

Checked against the exchanges' rules of May 2025: the HOSE trading rules of 26 April 2025 and the HNX, UPCoM and VN30 futures rules.

  • Price steps by price band: MarketConfig.priceSteps: [{ from, step }]. HOSE shares step 10 dong below 10,000, 50 dong to 49,950 and 100 dong from 50,000; priceStepAt(price, market) and roundToPriceStep(price, market, 'nearest' | 'down' | 'up') read them.
  • Ceiling and floor as the exchanges set them: computePriceLimits rounds the ceiling down and the floor up to a valid price; a limit that would land on the reference moves one step off it, and a reference of one step keeps the floor there. chart.getPriceLimits() gives the day's prices.
  • Presets: MARKET_HOSE (±7%, lots of 100, sessions from the 9:00 opening auction to the 14:30 closing one), MARKET_HOSE_ETF (ETFs and covered warrants, 10 dong at every price), MARKET_HNX (±10%, a closing auction and a post-close session to 15:00), MARKET_UPCOM (±15%, continuous trading 9:15–11:30 and 13:00–14:30) and MARKET_VN30F (VN30 index futures: 0.1 a point, ±7%, 100,000 dong a point, from the 8:45 opening auction). Each names timeZone: 'Asia/Ho_Chi_Minh'. Prices are in thousands of dong, as price boards show them; scaleMarketPrices(MARKET_HOSE, 1000) reads them in dong.
  • VN30 futures: vn30fLastTradingDay(year, month, isHoliday?) (the third Thursday, earlier when that is a holiday) and vn30fContracts(now) (this month's, the next, and the last months of the two quarters after: VN30F2611…).
  • Sessions on the exchange's clock: getCurrentSession(sessions, now, timeZone), by the time of day (weekends and holidays are the caller's); without a zone it reads this computer's clock, as before, and a zone it doesn't know gives null. Sessions can be postClose, and markets futures. The chart's session shading still comes from setSymbolInfo.
  • The chart follows the band: with a market set, chart.roundPrice and chart.getPriceStep(price?) use the step of the price's band (at the last close without a price), so prices from the chart's menus and the "+" by the price axis are valid ones. A symbol's minTick still comes first.
  • Order ticket: with a market set, the widget's ticket keeps the price, stop-loss and take-profit on the market's step and the order's price between the day's floor and ceiling, starts at one lot, and above one lot takes whole lots (fewer shares are an odd-lot order of their own). The three messages are in the widget's 30 languages.
  • Docs: the API page's Markets section and the Trading page, six languages; a Feature Lab scene with HPG, FPT and a VN30F contract.

Looks different after the update

  • VN_COLORS and createVNTheme use the price board's colours: green up, red down, purple ceiling, cyan floor, yellow reference. They were red up and blue down.
  • MARKET_HOSE trades in lots of 100 (it said 10), HNX and UPCoM start continuous trading at 9:15, and UPCoM has no closing auction.
  • MARKET_NYSE's after-hours session is postClose (it was preClose), and the preset names timeZone: 'America/New_York'.

Fixes

  • chart.setPriceLimits changed the market object it was given, so every chart sharing a preset got the same reference price. It now keeps its own copy.

Project

  • npm provenance: releases are published with provenance, so npm shows the workflow run that built each version.
  • SECURITY.md names the supported releases as the latest 1.x of each package, instead of version numbers that went stale.

1.19.1 (2026-10-20)

React, Vue and Svelte components: 1.3.1.

  • Preview builds: every pull request and every commit on main is published to pkg.pr.new (npm install https://pkg.pr.new/@tradecanvas/chart@&lt;pull request or commit&gt;), so a change can be tried before it is released.
  • Shorter READMEs, in all six languages: what the library does, install, a quick start, frameworks, and links into the docs, which keep the API in detail. The npm page follows.

1.19.0 (2026-10-20)

React, Vue and Svelte components: 1.3.0.

A frame on request, and overlays switched off

  • chart.requestRender() draws a frame soon, though nothing the chart knows of changed: after a plugin's own setting changed (an overlay's display mode, say), in a quiet market with no ticks to redraw it. The frame refits the scales to the data as a tick's would; requests before it make one frame, and a destroyed chart ignores them.
  • enabled: false on an overlay plugin leaves it registered but undrawn; it is read every frame, so switching it and calling requestRender() shows the change at once.
  • options on the React, Vue and Svelte components: chart options the props don't cover (maxBarSpacing, rightMargin, renderer…), merged over the component's defaults at mount; chartType, theme and autoScale still come from their props. A footprint chart's wide bars need a larger maxBarSpacing than the default 30.
  • Docs: the Plugins and Frameworks pages, six languages; the agent skill's overlay recipe.

1.18.1 (2026-10-20)

React, Vue and Svelte components: 1.2.6.

Fixes

  • No made-up times beside tick bars: on a tick timeframe ('100T') with a few bars, the empty space left of the first bar was labelled with times extrapolated from the bars' spacing ("01:44, 03:02…" before a market that opens at 9:00), and the crosshair showed one there too. Tick bars are not evenly spaced in time, so the time axis and the crosshair now give times to the bars only. The same holds on Renko, Kagi, point & figure, line break and range-bar charts. Time timeframes still label the empty future right of the newest bar. The Realtime page says so, in six languages.

1.18.0 (2026-10-20)

React, Vue and Svelte components: 1.2.5.

Prices on the market's grid, and a scale for plugins

  • The drawing settings' Coordinates tab shows prices on the market's grid: a point dragged to 534.86074226 reads 534.75 with a step of 0.25, or 22,000 on a stock that moves in 10 dong, and an edited price lands on the grid. A point you don't edit keeps its exact place. The field's arrows move by the price step.
  • chart.getPriceStep(): the smallest step prices move in, the one roundPrice rounds to: the symbol's minTick, a fraction's unit (priceFormat: { denominator: 32 }), else one unit of the decimals prices show.
  • overlayScale(context) for overlay plugins: in render(ctx, context), it places things where the chart draws them: timeToX / xToTime by bar time (between bars and past the newest in proportion), indexToX / xToIndex, priceToY / yToPrice on a log or inverted scale too, barWidth, and visible, the bars on screen (type FrameScale). Its bars are those of context.data, the series on screen: a Renko or Kagi chart's bricks, not the feed's bars. The plugin contracts don't change.
  • The scale functions are exported from @tradecanvas/chart for renderers that get the viewport alone (an indicator's own render, a chart type's renderer): priceToY, priceToYMapper, yToPrice, barIndexToX, xToBarIndex, timeToX, xToTime, timestampToBarIndex.
  • Docs: the Plugins page shows an overlay drawn with overlayScale, and the API page getPriceStep, six languages; a recipe in the agent skill.

1.17.0 (2026-10-07)

React, Vue and Svelte components: 1.2.4.

The price scale in the symbol's decimals, and symbol details learned later

  • The price scale follows the symbol's precision: its labels took the decimals of the visible range ("22,000.00") while the legend, price tags and crosshair took the symbol's pricePrecision or the market's ("22,000"). They all agree now, and the axis width is measured in those decimals. With a minTick, the scale's ticks stay on whole price steps: a stock that moves in 10 dong never shows 21,705.
  • Symbol details the feed learns later: a chart asks resolveSymbol once when it connects. An adapter that learns the symbol's details afterwards (on its first message, say) sends a symbolInfo event with the SymbolInfo, and the chart applies it: decimals, price step, hours. No need to remount a framework component to pass them. PollingAdapter subclasses can send it with emitEvent, as WebSocketAdapter ones already could.
  • Docs: the event on the Realtime page, six languages; the agent skill's recipe.

1.16.1 (2026-10-06)

React, Vue and Svelte components: 1.2.3.

Fixes

  • The Settings' tabs keep their height (broken in 1.16.0): with the Style tab's longer list, the tab bar was squashed to half its height. A dialog's tab bar now keeps its height and wraps on a narrow screen rather than scroll; the indicator and drawing settings, which share it, too.
  • Dialogs span a phone screen: the indicator settings, drawing settings, order ticket, layouts and name dialogs were held to 360px wide on a phone, short of the screen; they are sheets across it like the other dialogs.
  • Checked by opening every dialog, panel and menu of the widget at 1366×768, 1280×600 and 390×844, in the Studio, Terminal and Capsule looks. The demo's embed page takes ?ui=terminal or ?ui=capsule for such checks.

1.16.0 (2026-10-06)

React, Vue and Svelte components: 1.2.2. 1.15.0 was versioned but never published on its own; its changes (the second section below) ship in 1.16.0.

Every key of the look in the widget's Settings

  • The Style tab sets every key, on the user's layer: the chart type on view gets a section of its own with its colours and widths (Heikin-Ashi's bodies and wicks, Kagi's up and down, a line's colour and width, an area's fills, Baseline's above and below), next to its settings (Renko's box, Kagi's reversal…). Then the background, panes and legend, the watermark, the grid and crosshair each way with their widths, the crosshair's labels, the scales, the last price's colours and width, the volume, the session breaks and the high and low lines.
  • A Trading tab for the colours of orders and positions (buy, sell, profit, loss, entry), signal markers and trade zones, and a selected drawing's handles on the Style tab. They keep their own colours until one is picked: the row shows Auto, its picker starts from the colour drawn, and Auto takes it back. The orders' colours are left out on a chart without trading.
  • Undo, Reset and the theme switch cover every key, every chart type's included: Reset takes them all back to the theme's, and widths and dashes go with the user to the other theme as the rest of the look that isn't a colour. An undo puts back only the keys its change touched, so overrides set since on the user's layer stay. Rows a change moves (a wick with its body) show it at once, the Style tab follows the chart type, the tabs scroll on a narrow screen and read as tabs, and a colour in hsl(), oklch(), a name or with transparency shows in its swatch.
  • Docs: the Settings' tabs on the Styling page, six languages; 21 new widget strings in 30 languages. The agent skill now covers WebGL, the 30 languages, signals, trade zones and replay, the Settings' tabs, and the styleChange and rendererChange events.

More of the look by key, the Settings to change it, and your own shortcuts

  • Orders, positions, signal markers, trade zones and drawing handles by key: 12 more style keys, 101 in all. trading.buyColor, .sellColor, .profitColor, .lossColor and .entryColor colour the orders and positions on the chart and their tags on the price axis, over the trading config's colours. markers.longColor, .shortColor and .neutralColor colour the signal markers, and tradeZones.profitColor, .lossColor and .activeColor the trade zones, over their own styles. drawings.handleColor fills a selected drawing's handles, white without it. The order ticket's and the bracket tool's previews take the trading colours too. Like the rest, they come on the host's layer or the user's, and read back with getStyleValue.
  • The widget's Settings change more of the look, on the user's layer and kept with the theme: the grid each way (shown or not, colour, solid, dashed or dotted), the crosshair's colour and dash, the scales' text and lines, the last price's line (shown or not, its dash), the panes' separator and the legend's text. Undo and Reset take them back as they do the colours. What isn't a colour (a grid hidden, a dash) goes with the user to the other theme; the colours stay with the theme they were picked on. The controls carry their names for screen readers, and the switches read as switches.
  • Shortcuts of your own: widget.addHotkey({ keys: 'Alt+N', label: 'New note', onPress }). A shortcut runs while the widget was used last, not while typing in a field, composing text (an IME) or in a dialog; one without Ctrl or Alt only while focus is on the widget or nowhere. A letter is the one the keyboard layout types (Ctrl+Y is the Y key on a German keyboard too), by its place with Alt. It replaces a widget shortcut on the same keys; the chart's own keys (arrows, Delete, Ctrl+Z) still run, and addHotkey warns of those. It goes with the hotkeys switch and is listed in the shortcut sheet (?), which now leaves out the keys that do nothing (switched off, or a dialog the widget hasn't got) and the ones you replaced.
  • Your own CSS, on stable hooks: --tcw-* variables, [data-tcw-part] (a part's switch names), [data-tcw-off] on the root, and [data-host-button] / [data-host-item] stay as they are through 1.x.
  • Docs: the new keys on the Styling page; shortcuts and CSS on the Customization page; six languages. The Feature Lab's parts scene adds a shortcut (Alt+X).

1.14.0 (2026-10-06)

React, Vue and Svelte components: 1.2.0.

Replay for apps, and components that wait for your bars

  • Marks as the replay reaches them: during chart.replayStart(), signal markers show once their bar is shown and trade zones once entered, each drawn open (no exit, no result) until its exit is reached. They all come back with replayStop(). revealMarks: false shows them all through the replay. The widget's replay does the same.
  • Where a replay starts: startTime starts at the first bar at or after a time; hideHistory leaves the bars before the start out while the replay runs, so the chart shows only what it replays, and puts them back on replayStop().
  • As quick as you like: duration plays from where the replay is to the end in about that long, however many bars (30 days of 5-minute bars take as long as a day of them). A replay quicker than a bar a frame now runs on animation frames, several bars a frame, instead of a timer the browser holds to a few milliseconds a tick; a frame that comes late slows it rather than skip ahead.
  • Events: replayComplete ({ barIndex, time }) when the replay reaches its last bar, and replayStep now says how many bars the replay goes through (total).
  • React, Vue and Svelte components:

- indicators takes { id, params, position } as well as ids; one whose inputs change is put back with them (syncIndicators, exported for your own components);

- with data at mount a component opens no stream; stream={false} never opens one (and closes one it had), so a chart mounted before its bars arrive doesn't start the default Binance feed;

- features follows its changes after mount.

  • The widget's replay shows the marks as it reaches them too: markers and trade zones you put on the chart wait for the replay. replayRevealMarks: false shows them all, as before.
  • With hideHistory, the replay's indices (replayStep, getReplayBarIndex, a restart's startIndex) count from its start, a restart keeps the window, and indicators begin at the window's first bar.
  • Docs: a replay for your own app, and the components' props, in six languages; the Feature Lab's replay shows buys, sells and a trade appearing as it goes.

1.13.0 (2026-10-06)

The widget, part by part: switches and your own parts

  • 112 feature switches, every one on until turned off and changeable while the widget runs: new ChartWidget(el, { features: { 'toolbar.replay': false, hotkeys: false } }), then widget.setFeatures({ sidebar: false }), getFeatures(), isFeatureOn(name). The names are listed in WIDGET_FEATURES and checked by TypeScript:

- a name without a dot is a whole capability, off wherever it shows: its button, its menu entries, its command in the command palette, its keys (alerts, settings, replay, symbolSearch, hotkeys, toasts…);

- a dotted name is one place: a toolbar button (toolbar.screenshot), a section of drawing tools (sidebar.fibonacci), a status bar item (statusBar.market), a button on an indicator's row or a pane (indicatorLegend.remove, pane.maximize), a menu entry (menu.chart.order, menu.drawing.lock), a key (hotkeys.tools).

  • The older options are the same switches: toolbar: false, drawingTools: false, statusBar: false, rangeBar: false, alerts: false and the rest work as before. The parts they leave out are now built and hidden, so they can be switched on later, and addToolbarButton puts a button on a toolbar switched off, to show with it (it used to return null with toolbar: false). drawingTools: false also switches the drawing settings off, and accountPanel: false the order ticket, as before. trading, watchlist, depthLadder and layouts stay options, as they bring data or storage; switches hide their buttons.
  • Your own parts in the widget's bars: addToolbarDropdown (a menu button, its entries asked for each time it opens), addSidebarButton, addStatusBarItem (text, or a button), and getSlot(name) for anything else: beside the toolbar's chart controls or its panel buttons, under the drawing sidebar's switches, on either end of the status bar, or over the chart. They follow the widget's theme and look.
  • Your entries in more menus: drawingMenuItems and indicatorMenuItems add entries at the end of a drawing's right-click menu and of an indicator's "more" menu, beside chartMenuItems.
  • Every chart of a grid: ChartWidgetGrid.setFeatures(patch), for the charts it adds later too.
  • A switch turned off while its part is in use closes it: a replay ends, a panel, dialog or menu closes; the public toggles open nothing switched off. Separators left with nothing to separate hide with the buttons around them, and the chart takes the room of a bar switched off at once. With toasts off the widget's errors still show.
  • Docs: a Customization page gathers every way to customise (colours, looks, style overrides, switches, your parts, words, plugins), in six languages; a Feature Lab scene switches parts on a live widget.

Style overrides: the chart's look by key

  • Any part of the look, apart from the theme: chart.applyOverrides({ 'grid.vertical.visible': false, 'series.candlestick.upColor': '#26a69a' }). 89 keys, listed in CHART_STYLE_KEYS and checked by TypeScript:

- the grid's lines each way and the crosshair's: shown or not, colour, solid / dashed / dotted, width;

- the crosshair's labels, each axis's line and labels, the panes' background, separator and name;

- the legend, the last price (shown, colours, dash, width), the volume, the session breaks, the high and low lines, the watermark;

- the main series as each of the 18 chart types draws it: up and down colours, wicks, line colour and width, area fills. Up and down colours fall back to the candles', lines to the line chart's, fills to the area's, then to the theme.

  • Two layers: your app's (layer: 'host') stay through theme switches and are never saved; the user's (layer: 'user') win over them, are kept with the theme they were made on, and are saved with saveState() (snapshot version 3; version 2 saves still load). setOverrides puts a whole layer in place, resetOverrides takes keys away, getStyleValue(key) tells what a key resolves to, getStyle() gives the resolved looks, and styleChange says when they changed. getTheme() returns the theme as set, so setTheme(getTheme()) never bakes the overrides in.
  • Everywhere a chart is: the overrides option, ChartWidgetGrid.applyOverrides (every chart, and the charts it adds later), and an overrides prop on the React, Vue and Svelte components. The grid and crosshair options (grid.hLineColor, crosshair.vLine.style…), which were typed but did nothing, are now shorthand for their keys.
  • Indicator plots and panes: each plot's dash and visibility by its key (updateIndicatorStyle(id, { plots: { signal: { lineStyle: 'dashed' } } })); a hidden plot shows no value tag and no legend value, and stretches no scale. setIndicatorDefaults(id, style) sets what every indicator of a kind starts with. setPaneStyle(instanceId, { background, separator }) gives a pane its own look, saved with its indicator and undone with it.
  • On the GPU too: the WebGL renderer draws the grid each way as it is styled, and hands it to Canvas 2D when it is dashed, wider than a pixel or two colours.
  • The widget's Settings write the user's layer: the colours picked stay with their theme. Reset puts back the current theme's colours; it used to put the dark theme's on any theme.
  • Fixes:

- the widget's theme toggle brings back the host's own theme when toggled back to its mode; it used to swap it for a built-in one for good;

- a baseline chart's fills work with rgb() and named colours (they appended a hex alpha to the colour);

- loading a save that names a theme of its own leaves the chart's theme as it is; it used to break it;

- a pane's crosshair value pill takes the crosshair label colours, as the price axis's does.

  • Feature Lab: a style overrides scene; the Styling docs explain every key, in six languages.
  • The README and llms.txt say the charts draw with Canvas 2D or WebGL.

1.12.0 (2026-10-05)

Indicators and languages: 111 indicators, 30 languages

  • 16 more indicators, 111 in all: Average Price, Median Price and Typical Price; Moving Average Channel, Hamming, Double and Triple; Volatility Index (Wilder's stop and reverse on the average true range); Accumulative Swing Index, Advance/Decline, Majority Rule, Chop Zone, SMI Ergodic and Price Oscillator; Volatility O-H-L-C and Zero Trend Close-to-Close.
  • Correlation with another symbol: Correlation Coefficient and Correlation Log (of returns), beside Compare and Spread/Ratio among the indicators that read a second symbol; the widget offers them when you compare with one.
  • Pivot Points in six kinds: traditional (as before), Fibonacci, Woodie, classic, Camarilla and DeMark (type). Its name loses "(Classic)": its levels were the traditional ones all along.
  • MA Cross takes a simple average against an exponential one (type: 'sma-ema').
  • ChartWidget in 30 languages: Italian, Dutch, Polish, Czech, Slovak, Hungarian, Romanian, Greek, Swedish, Danish, Norwegian Bokmål (also for no and nn), Estonian, Malay and Persian join the 16, Persian right to left.

WebGL: back after a lost context, many charts, every browser

  • Back after a lost context: when the browser hands a lost WebGL context back (after a GPU reset, say), the chart draws with WebGL again and says so: rendererChange with { renderer: 'webgl', reason: 'contextRestored' }. Before, it stayed on Canvas 2D for good.
  • Many charts on a page: Chrome and Safari keep about 16 WebGL contexts a page and drop the oldest past that, a live chart's or a map's, never to hand it back. At most 8 charts now draw with WebGL at once; one past that draws with Canvas 2D (rendererChange with reason: 'limit') and takes WebGL as soon as another chart lets go of its context, as a chart whose context was lost does. setMaxWebGLCharts(n), from the package, sets the limit (Infinity for none).
  • Every browser: checked in Chrome, Firefox and WebKit (the engine of Safari): WebGL draws, loses and gets back its context, and keeps to the limit in all three, with the same pixels against Canvas 2D. Firefox no longer warns about the deprecated WEBGL_debug_renderer_info: the GPU's name comes from RENDERER where that gives one.
  • Baseline, Kagi and point & figure on the GPU too. Their lines are drawn whole and round where they bend (baseline, Kagi) where they were drawn in pieces that left notches at each bend, and the two strokes of an X are drawn apart. Zoomed out on 200,000 bars at a pixel ratio of 2, a baseline chart takes 23.2 ms a frame instead of 27.6.
  • Point & figure boxes: the chart drew every column in boxes of 1, whatever the box its columns were built with (1% of the average close unless set), so at a price of 30,000 a column was thousands of overlapping specks instead of a stack of Xs or Os. It draws them the size of the box now.

1.11.0 (2026-10-05)

WebGL: the heatmap and profiles on the GPU

  • Under the bars, on the GPU: with renderer: 'webgl', the depth heatmap, the volume profile and the market profile draw with WebGL too, under the bars, with volume under a profile as in Canvas 2D. A market profile showing its stats readout or TPO letters stays with Canvas 2D: text can't go between the GPU's background and its bars. The 2D canvas under the GPU's is now only there for that, a watermark, or what the GPU can't take.
  • Faster: panning on integrated graphics at a pixel ratio of 2, a depth heatmap of 240 snapshots by 80 levels takes 16.8 ms a frame instead of 25.5 (60 fps), and zoomed out on 1,000,000 bars with four indicators 16.7 instead of 34.5. Rectangles filled one by one, as heatmap cells are, are recorded straight to the GPU and drawn together.
  • Same pixels: candles and volume land on the same device pixels with Canvas 2D and WebGL at any scaling. Bars exactly on half a device pixel (a round bar step such as 5.1 px at 200%) could land one pixel apart; rounding now turns up from a hair under the half on both.
  • Sharp volume candles: wicks and bodies on whole device pixels, as candles are, the wick in the middle of a body as wide as the bar's volume.
  • Order books for older bars: chart.pushDepthSnapshot(book, time) stamps a heatmap snapshot at time, to fill in books recorded earlier, oldest first; without time it takes the latest bar's, as before.
  • Feature Lab: a liquidity heatmap scene, 240 order books of 80 levels each, with the Canvas 2D / WebGL switch.
  • pnpm bench:render has two more scenes: zoomed out on 1,000,000 bars with four indicators, and a depth heatmap.

1.10.0 (2026-10-05)

Everything since 1.7.0 in one release (1.8.0 and 1.9.0 weren't published on their own).

WebGL renderer (preview)

  • renderer: 'webgl' draws the plot and indicator panes with WebGL 2, on a canvas under the 2D scene: the grid, session shading and break lines, candles and volume directly, and indicators, indicator panes, compare lines and most other chart types (line, area, bars, Heikin-Ashi, hollow candles, Renko, line break, range bars, HLC area, step line, line with markers, equivolume, high-low) through their Canvas 2D drawing, recorded as GPU strokes, fills and rectangles, antialiased at their edges as Canvas 2D is. Text, drawings, orders, axes and the crosshair stay on Canvas 2D. 'auto' takes WebGL only on a hardware GPU; Canvas 2D stays the default.
  • Same look: the GPU follows the 2D rules for whole device pixels and antialiased edges, so candles match Canvas 2D to within 2/255 at 100%, 125%, 150% and 200% scaling, and lines and fills differ only on a few edge pixels. Anything the GPU wouldn't draw the same (images, patterns, rotated or non-rectangular clips, sharp mitered corners, overlapping pieces of one path, shapes other than bands and areas) is left to Canvas 2D, in order, so the stacking doesn't change. Baseline, Kagi and point & figure charts stay on Canvas 2D for now.
  • Faster where it counts: panning on integrated graphics at a pixel ratio of 2, 2,000 candles on a 1600×900 chart take 17.6 ms a frame instead of 23.3 (60 fps), 500 candles with four indicators 19.6 instead of 27.4, zoomed out on 200,000 bars with four indicators 20.2 instead of 34.5, six charts side by side 17.2 instead of 23.5, and a 2560×1400 chart with four indicators 29.1 instead of 114.5. At 150% scaling that chart pans at 60 fps (70.8 → 17.6 ms).
  • Safe to try: chart.setRenderer(mode) switches at runtime and resolves to what draws, chart.getRenderer() says which, and rendererChange reports each change and why ('unsupported', 'contextLost'). Where WebGL 2 is missing, or its context is lost, the chart carries on with Canvas 2D; a failure to load or compile is logged as a warning. The WebGL code is a chunk of its own (about 17 KB gzipped), loaded on first use, and a destroyed chart hands its GPU context back at once. Screenshots include what the GPU drew.
  • Custom indicators come along: a plugin's render draws on the recording context like on any other, and falls back to Canvas 2D by itself where it needs to. Its render may then run twice in a frame, so it should draw without side effects. Text it draws goes on the 2D canvas, over the lines of the indicators drawn with it.
  • Session break labels now draw over the bars and indicators instead of under them, inside the plot, with Canvas 2D or WebGL. SessionBreaks.render() still draws lines and labels; renderLines() draws the lines alone.
  • Feature Lab: the 200,000-bar scene has a Canvas 2D / WebGL switch, and times a short pan on each switch.
  • pnpm bench:render --renderer=webgl (or --renderer=auto) measures the WebGL path.

Faster when zoomed out

  • Faster when zoomed out: once each bar takes less than a pixel, indicator lines, bands (Bollinger and the like) and histograms draw one span per pixel column instead of a stroke through thousands of points. Much the same look for a fraction of the raster work: zoomed out on 200,000 bars with Bollinger Bands, EMA, RSI and MACD, a frame went from about 54 ms to about 21 ms on integrated graphics (85 → 38 ms at 2x). Supertrend draws one line per colour instead of one stroke per bar.
  • pnpm bench:render measures frames in headless Chrome on your own GPU, scene by scene.

Sharper, calmer charts

  • Sharp at any screen scale: candles, bars, volume and the drawings' horizontal and vertical lines land on whole device pixels. A one-pixel wick is one sharp pixel at 100%, 125% or 200% scaling; it used to spread over two at half strength.
  • Volume as a backdrop: the bars keep to the bottom 15% of the chart (20% before) in the theme's own volumeUp / volumeDown, which were ignored. A theme that only changes the candle colours (or the widget's settings) gets volume in those colours. volumeColor(candleColor) gives the matching shade.
  • A calmer dark palette: softer up and down colours and quieter axis labels.
  • Drawings:

- Fibonacci levels each come in their own colour with soft bands between them, and their labels sit above the lines. The drawing's colour goes to its trend line; each level's is set in its levels.

- Drawing text uses the theme's font, on a halo of the background so it reads over bars.

- Lines turn corners round.

- Long/Short labels are tags just outside their zones that never overlap.

  • Price axis: indicator value tags step around the last-price, high/low and order tags, and scale labels under any tag are hidden instead of showing half-covered.
  • Dates: on an intraday chart a bar at midnight is labelled with its day on the time axis and the crosshair, not with its year as if it were a daily bar.
  • Lines on the pixel: the crosshair, vertical lines and wicks share one device-pixel column, so a line drawn on a bar runs through its wick.
  • Widget: the drawing tools sit in sections with a divider between them: lines; Fibonacci, Gann and cycles; patterns and Elliott waves; forecasting and measuring; shapes, brushes and notes. The tools below are grouped too: modes, undo and redo, clear all.
  • Looks different after the update: the dark theme's colours, the volume's height, new Fibonacci drawings' colours and the order of the drawing tool groups change without any change of yours. Set candleUp / candleDown on the theme to keep the old candle colours.

Fixes

  • A position's stop-loss or take-profit priced outside the visible range no longer draws over the time axis or the panes below the chart, and can't be grabbed there by accident (nor can an order line off the plot); an entry scrolled out of view no longer leaves its price tag on the axis.
  • The npm page shows the full README again (it had fallen behind the repository's), with screenshots; the demo's link previews now carry an image on every network.
  • Panning by dragging no longer stops halfway with a "no drop" cursor: quick presses could leave text on the chart selected, and the next press then started the browser's own drag of it. The chart's text can't be selected now, and such drags are cancelled.

1.7.0 (2026-10-03)

Everything since 1.4.0 in one release (1.5.0 and 1.6.0 were never published): the drawing toolkit, trading and workspace, panes and undo, alerts and replay, scales and comparisons, the widget's look, and watchlists, symbol info, tick charts and access. Wrappers (@tradecanvas/react / vue / svelte) 1.0.10 pick up the new core.

The widget looks different after the update: Studio is the new default look (see *The widget's look* below); ui: 'terminal' is the closest to a square, ruled look.

Workspace, markets and access

  • Watchlists: several lists of symbols to switch between, create, rename and delete; add symbols from the search, remove them, drag them into order. Rows fill with live quotes from the feed (Binance sends them), from a quote source of yours, or from what you push.
  • Symbol info: a panel with the symbol's price and move, whether its market is open and when that changes, the day's open, range and volume, its trading hours and news. The status bar shows when the market is closed.
  • Tick charts: type 100T for a bar per 100 trades, built from the feed's trades (Binance streams them).
  • Undo for settings: Ctrl/Cmd+Z takes back settings and chart type changes too, with drawings and indicators; recordUndo adds changes of your own.
  • Zoom and scroll buttons over the chart, shown while the mouse is on it.
  • For screen readers: the chart says what it shows, what is on screen after the keys move it, and reads the bars one at a time (comma and period).
  • Arabic and Hebrew, right to left: the widget in 16 languages.
  • Ten more indicators (95 in all): Stochastic Momentum Index, Relative Volatility Index, Trend Strength Index, Linear Regression Slope, Standard Error and its bands, Guppy Multiple Moving Average, Moving Average Ribbon, Average Day Range and Net Volume.
  • New events: the chart type, symbol or timeframe changed, the undo history changed, drawings were selected.
  • A live bar that closes keeps its final values (it used to keep the ones before its last update).

The widget's look

  • Three looks, and yours: the widget's corners, sizes, type, borders, shadows and bars are a look apart from its colours. Studio is the new default (rounded controls, spaced groups, the interval buttons in a segmented track), Terminal is dense and square with capital labels, Capsule is all pills with the toolbar and drawing tools floating as islands. Start from one and change what you like with the ui option or setUI, on one chart or a whole grid.
  • The chart's price tags take the same corners: square, rounded or pills, along with the axis and crosshair pills and the order badges (chart.setShapes).
  • Every part of the widget follows the look's CSS variables; without ui they stay yours to set in CSS (the widget's stylesheet now goes first in the page, so your rules win a tie). Menus grow to fit their labels instead of wrapping them.
  • Looks different after the update: Studio is the new default, so an existing widget changes look without any change of yours — slightly rounder corners, a taller toolbar, wider drawing tools, the interval buttons in a track, no rules between toolbar groups, labels as written rather than in capitals, rounded price tags. Use ui: 'terminal' for a square, ruled look, or set any token yourself.

Scales, formats and comparisons

  • Price formats: prices in your own format, or in fractions of a point (a bond in 32nds: 110'165), on every label of the price scale — axis, crosshair, legend, tooltips, orders, alerts, drawings (priceFormat). Times your way too (timeFormatter).
  • Compare, spread and ratio: another symbol on a price scale or pane of its own, or the spread or ratio to it, lined up with the chart by time; compare lines count in the auto scale and line up by time as well.
  • Percent panes: a pane can read in percent of its first value on screen.
  • High-Low bars, settings for Renko, Line Break, Kagi, Point & Figure and range bars, a hidden main series, lines at the visible high and low, and bid/ask lines.
  • Extended hours on or off: bars outside a symbol's regular hours are kept aside while hidden.
  • Data export with every indicator line in a column of its own (CSV or JSON); bars timed in seconds no longer export as 1970.
  • Replay across a grid: replaying one chart takes the others along to the same time.

Alerts, replay and panes

  • More kinds of alert: a line crossing another line (the price and a moving average, MACD and its signal), a move of some percent within some bars, only on closed bars (no firing on a wick that comes back), and an expiry. All in the alerts panel and in addAlert's options.
  • Replay in finer steps: pick 5m under an hourly chart and watch each bar form, step by step (replayStart({ steps })).
  • Paper trading in a replay: a paper account fills on the replayed prices (each step's high and low too), and its fills land on the replayed bars.
  • Alerts on a connected feed: price alerts now check on every price a connect()ed feed sends, not only on setCurrentPrice.
  • Signal markers say what they are when the pointer is on them, and report clicks (signalMarkerHover, signalMarkerClick).
  • Each pane can have its own logarithmic or inverted scale (right-click the pane, or setPaneScale).

Panes, templates and undo

  • Move an indicator to another pane — into the pane above or below, a pane of its own, or back to the price pane — from the ⋯ button on its legend row, or chart.moveIndicatorToPane. The pane's other indicators stay, and those reading its lines follow it.
  • Fold, maximise and reorder panes with buttons at each pane's top right (setPaneCollapsed, setMaximizedPane, movePane). Saved layouts keep each pane's size, order, fold and maximise.
  • Undo for indicators: Ctrl/Cmd+Z takes back adding, removing, editing and moving indicators, in the same history as drawings. An indicator comes back under its own id, so alerts on its lines still match.
  • Indicator templates: save the chart's indicators (inputs, style, levels, panes) under a name from the indicators menu and apply them in one go.
  • Type a number to change the interval (5, 15m, 1h, 1D, Enter), and Alt+T / H / J / V / C / F for the trend line, horizontal line and ray, vertical line, cross line and Fibonacci retracement.
  • Prices offered by the chart's menus and the order ticket sit on the market's price grid (chart.roundPrice).

Trading and workspace

  • Act on orders and positions from the chart: × on an order line cancels it, × on a position closes it, ⇅ reverses it, × on a stop-loss or take-profit removes it. They raise the usual intents (a new positionReverse among them), so a connected adapter acts on them; an adapter without reversePosition gets a close and a market order the other way. Orders take a stop-loss, a take-profit and a time in force that carry over to the position. Adapter authors: PositionModifyIntent.stopLoss / takeProfit can now be null, meaning remove it (a missing field still means keep it).
  • Fills on the chart: a mark on the bar of each fill, solid where it opened a position and hollow where it closed one. executionFill says why (order, close, reverse, stop-loss, take-profit) and the P&L realised.
  • Right-click menus that know where you clicked: the plot, a pane, the price axis or the time axis, with the price and time there. A "+" by the price axis follows the crosshair. ChartWidget offers an alert, a buy and a sell at the price (a limit where it would wait, else a stop), an order ticket and a horizontal line on the plot, the scale switches on the price axis, and go to date on the time axis.
  • Order ticket and account panel in ChartWidget: open positions with their P&L, working orders and the fills so far, each with close, reverse or cancel; an order ticket that checks the order as you fill it in and shows the reward:risk.
  • Named layouts: save the chart under a name (symbol, interval, scale, chart type, indicators, drawings, alerts), open, rename, delete, auto-save the open one, Ctrl/Cmd+S. Kept in the browser, or on your server through a four-call LayoutStorage.
  • ChartWidgetGrid: up to six charts side by side, linked by symbol, interval, crosshair, time or drawings as you choose, saved together as one layout.
  • Your own toolbar buttons and menu entries: widget.addToolbarButton() and chartMenuItems.
  • Fixed: ChartGrid.connectAll with one adapter object sent every chart the last symbol's bars (an adapter keeps one stream). It now takes a function that makes one per chart, as does ChartWidgetGrid's adapter option.
  • New events ordersChange, positionsChange and stateChange. With several widgets on a page, Ctrl/Cmd+K and +P now go to the one used last instead of all of them.

Drawing toolkit

  • Each tool has its own settings: Fibonacci levels (edit, hide, add, colour), prices and percentages, labels left or right, extending lines either way, backgrounds, a wave degree, an icon. Double-clicking a drawing in ChartWidget opens its settings (style, the tool's settings, its points in the chart's time zone); changes show as you make them and Cancel takes them back. "Save as default" keeps a tool's settings for the next drawing, and templates keep settings as well as style. API: getDrawingOptions / setDrawingOptions, updateDrawing, beginDrawingEdit / endDrawingEdit, setDrawingToolDefaults.
  • Long/Short Position works out the size from the account and the risk (a percent or an amount): quantity, reward:risk, and each line's price, distance and profit or loss. The target's handle sets the ratio.
  • Alerts on drawings: addDrawingAlert(id, …) fires when the price crosses a trend line, ray, horizontal line or a channel's lines where they are by then, as drawn on the chart (log scale included). The alert goes with its drawing and comes back with it on undo.
  • Order, groups and a right-click menu: bring forward or send back (Ctrl+] / [), group drawings to select, hide and lock them together (Ctrl+G), and a menu on each drawing with settings, an alert, order, group, lock, hide, duplicate and delete. The object tree lists groups with their drawings.
  • 29 new tools (69 in all): note, callout, flag, arrow mark and icons; brush, highlighter, path and polyline (a point per click, a double-click or Enter ends them), curve and arc; Fibonacci circles, spiral, speed resistance arcs and wedge, pitchfan, Gann square; Elliott impulse, correction, triangle and combination waves; three drives and cypher patterns; time cycles and sine line; forecast, projection and bars pattern.
  • An eraser, a zoom tool and a strong magnet, in the API and the widget's sidebar. On a short screen the sidebar scrolls, and its menus open beside it and work from the keyboard.
  • Fixed on the way: Anchored VWAP and Fixed Range Volume Profile drew nothing (they were never handed the bars); Ctrl+Shift+Z undid instead of redoing; dragging a drawing on a log scale bent it; drawing shortcuts fired inside dialogs.

Data and time

  • Zoom out until every loaded bar fits. Below the old 2 px bar + 2 px gap floor, the bar and its gap keep shrinking (down to a quarter pixel) as long as the loaded bars don't fit yet; a short series still stops at the old floor. Below a pixel per bar, candles, OHLC bars and volume merge per pixel column, so thousands of bars stay readable and cheap to draw. "All" and the 1Y / 5Y presets are no longer capped at about 200 bars.
  • Older bars load as you scroll back. Adapters can implement fetchHistoryBefore(symbol, timeframe, before, limit); Binance, Bybit and Mock do, and WebSocketAdapter / PollingAdapter take it as an option. A connected chart loads a page when less than a screen of bars is left of the view, one request at a time, keeping the same bars on screen; it backs off after failures, and a reconnect keeps the paged-in history. New chart.prependBars(), setHistoryLoader(), loadMoreHistory(), hasMoreHistory(), isLoadingHistory(), the historyLoad event and StreamConfig.historyPageSize. ChartWidget shows a small pill while older bars load.
  • Any interval. TimeFrame takes any whole count of a unit ('7m', '90m', '2d'); parseTimeframe / isTimeFrame check one. Adapters list the timeframes their feed serves (supportedTimeframes), and the chart builds the others from the coarsest one that divides them: history, live bars and older pages alike (ResamplingAdapter, withResampling, resampleBars, pickBaseTimeframe). This also fixes Binance's 45m, 2d, 3M and other intervals it lacks, which used to fall back to 15m bars; a timeframe the feed cannot build is refused instead. TimeFrame now accepts any ${number}${unit}: exhaustive switches over it should use KnownTimeFrame. ChartWidget's timeframe menu takes a typed interval (7, 90, 2h, 3D), keeps it with a star and an × to remove it, and lists it in the command palette.
  • Time zones with daylight saving time: chart.setTimezone('America/New_York') (or a fixed offset, or null for the browser's) and ChartOptions.timeZone set the zone for the time axis, crosshair, tooltip, day breaks, range presets and go-to-date. Day breaks used to follow the browser's zone whatever the chart showed. Session hours take a timeZone too. ChartWidget's settings list 28 zones by city with the offset in force. YTD now starts on the 1 January bar.
  • A left price scale: an overlay can go on a scale of its own on the left (addIndicator(…, { scale: 'left' }), setIndicatorScale), fit to its values, so a volume-like line no longer squashes the candles; setLeftPriceScaleVisible(true) mirrors the price scale on both sides. ChartWidget has a switch in its settings and a choice in each overlay's Style tab.
  • Symbol search and symbol info:

- Adapters can implement searchSymbols and resolveSymbol. They return a symbol's name, exchange, price precision and step, exchange time zone and trading hours. Binance does.

- A connected chart resolves its symbol by itself: prices take its precision, setTimezone('exchange') follows its exchange, and its hours feed the session shading.

- ChartWidget's symbol search asks the feed as you type, with names and exchanges.

  • ChartWidget in 14 languages: English, Vietnamese, Simplified and Traditional Chinese, Japanese, Korean, Spanish, Portuguese, French, German, Russian, Turkish, Indonesian and Thai. Every string the widget shows now goes through its translations; settings, drawing tools, alerts, dialogs and toasts used to stay English. Translations live in @tradecanvas/chart/widget/locales so a page loads only what it imports. Number formats for each language are in the settings.
  • The replay bar sits above the time axis, so its dates stay readable.
  • Pinch-zoom on touch screens follows the fingers: spreading them twice as far apart doubles the bar width. A pinch used to move the zoom by about a twentieth of that, so it seemed not to work. The chart also sets touch-action: none on its surface, so the page doesn't zoom instead.
  • Dragging inside an indicator pane pans the chart. It used to zoom time as if the time axis had been dragged, and the whole pane showed the time-axis cursor.

Indicators in depth

  • One scale per pane: a pane's lines, levels, axis labels and crosshair share one value scale (RSI's 30 line used to read as 38). The price scale no longer stretches to fields that are not drawn.
  • Declared plots: descriptors declare what they draw (plots), their pane scale, default levels and how inputs are edited; a custom indicator needs no rendering code.
  • Sources and indicators on indicators: 38 indicators take a price source or another indicator's line (indicatorSource(instanceId, key)), e.g. an SMA of RSI in RSI's pane.
  • Shared panes, editable levels and value tags on the axis, all kept in saved layouts.
  • 15 new indicators (85 in all): DEMA, SMMA, ALMA, KAMA, LSMA, McGinley Dynamic, MA Cross, Williams Fractals, Chande Kroll Stop, Bollinger %B, Bollinger BandWidth, Momentum, Historical Volatility, Volume Oscillator, Ulcer Index.
  • ChartWidget: an indicator settings dialog with Inputs, Style and Levels tabs; the legend colours each value as its line.

Site and docs

  • The site speaks 14 languages: the home page, menus and the Feature Lab, whose live charts switch to the same language. The docs and the README are in English, Vietnamese, Simplified Chinese, Japanese, Korean and Spanish; the other languages show the English docs with a note.
  • Each language has its own address (/ja/docs/api/), with hreflang links and a sitemap covering every language.

For AI coding tools

  • skills/tradecanvas: an agent skill with entry points, rules, recipes and a generated indicator reference.
  • llms.txt and llms-full.txt on the site; the indicator catalog on the docs site is generated from the registry, and CI checks that the generated files are current and that the skill's examples type-check.

1.4.0 (2026-10-02)

Layouts that come back whole, ranges and dates, scale options, indicators listed on the chart, an icon set and reworked bar replay. Wrappers (@tradecanvas/react / vue / svelte) 1.0.7 pick up the new core.

Layouts, ranges and scales

  • Saved layouts restore indicators and alerts: inputs, panes, colours, visibility; alerts keep their channel, repeat and label. Indicator changes trigger the auto-save.
  • Ranges and dates: setVisibleRangePreset('1D' … 'All') and goToTime(); ChartWidget shows the presets under the chart with a go-to-date button (Alt+G).
  • Inverted price scale (setInvertScale, Alt+I), and the log scale now applies to candles, axis and grid as well as drawings and indicators.
  • Timeframe favourites in ChartWidget, and feature flags that used to do nothing now apply (drawingMagnet, barCountdown, compareSymbols, dataExport, logScale, timeframes).
  • Drawing: stay-in-drawing mode, and Ctrl/⌘+C / Ctrl/⌘+V copy drawings, also between charts. ChartGrid links the crosshair by time.

Indicators on the chart

  • ChartWidget lists each indicator on the chart, under the OHLCV legend or at the top of its pane, with its value at the hovered bar and show/hide, settings and remove actions. Several instances of one indicator each get their own colour.

Icons and tooltips

  • Every drawing tool and chart type has its own icon; the interface icons share one grid. createIcon, createToolIcon, createChartTypeIcon and the icon maps are exported.
  • Tooltips on the widget's controls replace the browser's.

Replay

  • Live data stays out of the replay and comes back with replayStop(); the replay ends paused on its last bar. ChartWidget asks for a start bar, offers a random bar, speeds in bars per second and "Back to realtime".

1.3.0 (2026-10-02)

Dragging that never sticks, a lighter two-canvas renderer, the TradeCanvas look by default, a redesigned gauge, crosshair tooltip and loader, and replay that follows its newest bar. Wrappers (@tradecanvas/react / vue / svelte) 1.0.6 pick up the new core.

Dragging and panning

  • The press that selects a drawing also grabs it: no second drag needed; locked drawings let the press pan the chart. Clicks that only select no longer move the drawing or add an undo step.
  • Drags are followed outside the chart until the button is released (also axis scaling, pane resizing, drawings and trading lines); price drags are pinned to the plot's edge; a release outside the window is detected.
  • A sloppy horizontal drag keeps auto-scale on: vertical panning needs a deliberate move (> 24 px and at least half the horizontal travel).
  • Momentum is measured over the last 100 ms, ignored after a rest, capped and stopped by any new gesture.
  • Free panning past the newest bar into empty future space, or past the oldest bar, down to panLimits.minVisibleBars; the time axis, grid, crosshair and drawings (magnet included) extend into the future. freePan: false keeps the old clamp. setVisibleRange() / fitContent() show exactly the requested range.
  • Context cursors: crosshair, grabbing hand, hand over drawings, move over handles, resize arrows over axes, pane dividers and draggable lines.
  • Ctrl/⌘-drag selects drawings in a box, Ctrl/⌘-click toggles one; the group moves, restyles and deletes together as one undo step.
  • The right-click order menu is off by default (features.tradingContextMenu: true to opt in).

Rendering

  • Two canvases instead of four: a scene canvas and a thin top canvas for pointer-tied visuals. A hover repaints only the top canvas and the browser composites two surfaces instead of four. New LayerType.Hover.
  • After the page or a scrolling container scrolls, the crosshair follows the pointer exactly (it used to stay offset until the next click).
  • The price-axis tick label under the last-price tag is hidden instead of half-covered; Anchored VWAP caches its series.

TradeCanvas look

  • Default palette: DARK_THEME / LIGHT_THEME, indicators, orders, signal markers, drawing tools and the ChartWidget chrome share one palette — ink ground, mint/coral candles, amber accent. New TC_PALETTE and TC_SERIES_COLORS. Tests keep theme-neutral colours at 3:1 on both backgrounds and widget text at 4.5:1.
  • Armed price alerts are blue, triggered ones amber; comparison lines no longer start with an orange that blends into the main line.
  • Gauge redesign: a thin ring with rounded ends and zone gaps, bright up to the value and dimmed beyond it; a knob marks the value so the number is never crossed by a needle; the current zone's label shows above it; text fits small dials. pointer: 'needle' keeps the classic needle. New defaults: 240° sweep, thickness 0.14.
  • Crosshair tooltip redesign: bar time and a change pill (vs the previous close), an aligned O/H/L/C grid with only the close coloured, and volume; the chart's precision (sub-cent prices no longer show 0.00), locale, timezone and bar spacing; stays inside the plot. New setLocale, setPricePrecision, setTimezoneOffset, CrosshairTooltipContext and formatTooltipTime.
  • Loader redesign (ChartWidget): a run of candles lit one after another over a sweeping accent line; the "Loading chart…" text is for screen readers only (shown under reduced motion and on failure).

Replay

  • Replay follows the newest bar again: the first step and every seek show the replay position; each new bar keeps the view at the latest bar while it rests there, and panning back into history pauses the follow.

1.2.0 (2026-10-01)

More indicators and drawing tools, and a performance pass measured in a live browser profiler. Wrappers (@tradecanvas/react / vue / svelte) 1.0.5 pick up the new core.

Drawing tools — 26 → 40

  • New: Info Line, Trend Angle, Cross Line, Fib Channel, Fib Speed Resistance Fan, Schiff and Modified Schiff Pitchforks, XABCD and ABCD patterns, Head and Shoulders, Circle, Date and Price Range (with volume traded), Cyclic Lines, Price Label. Earlier in this release: Horizontal Ray and Long/Short Position.
  • Widget toolbar regrouped by tool family (Lines, Horizontal/Vertical, Channels, Fibonacci, Shapes, Gann & Pitchforks, Patterns, Measure, Annotation, Forecasting) — also surfaces Fib Time Zones, Anchored VWAP and Fixed Range Volume Profile, which were registered but missing from the toolbar.
  • Measuring labels use a precision that fits the price level instead of a fixed 2 decimals.

Indicators — 70

  • New: VWMA, Envelope, TEMA, Weighted MA.
  • Incremental updates on live ticks — new optional IndicatorPlugin.update(); built-ins recompute only the forming bar (a tick with 4 indicators at 100k bars: ~96 ms → ~0.001 ms).
  • IndicatorValueMap — array-backed drop-in Map for indicator values; full recalculation on a symbol/timeframe switch is ~2.5–3.5× faster.

Performance

  • Viewport.getState() snapshots are cached instead of deep-cloned 8–10× per frame; indicator auto-scale scans only the visible range; Intl number/date formatters are cached (hover frames ~0.64 → ~0.23 ms).
  • The price scale no longer jumps while live data streams in; new bars don't yank you out of history.

Sub-cent prices

  • Legend, crosshair pill and last-price tag follow the market's pricePrecision (or the axis's precision) in the configured numberLocale — PEPE-class prices no longer show "0.00".
  • The price axis auto-widens to fit long labels instead of clipping them; ordinary prices keep the 70px default.

Symbol / timeframe switching

  • Smooth loading — fast switches swap in place with no flash; slow ones veil the previous chart with a loading card after 200 ms; failures say so and recover on retry.
  • Race-free — superseded history responses are dropped (StreamManager, ChartWidget, Chart.connect); adapters detach every socket handler on disconnect.
  • setData resets auto-scale so each switch fits the new data.

Widget

  • locale / messages i18n with built-in Vietnamese; numberLocale fixes; watchlist refPrice precedence.
  • widget.toggleReplay() opens bar replay from code.
  • The cursor-following OHLCV popup is off by default (the legend shows the same data); chartOptions.features no longer wipes the other feature defaults.

1.0.1 (2026-08-28)

Patch release for the core packages, plus the first public release of the framework wrappers.

Fixes

  • visibleRangeChange now fires — along with the sibling priceRangeChange and zoomChange events. All three were typed and documented but never emitted anywhere in Chart; they now fire on every pan, zoom, resize, and data update, but only when that slice of viewport state actually changed. visibleRangeChange payload is { from, to } bar indices, priceRangeChange is { min, max }, zoomChange is { barWidth } CSS pixels per bar.
  • Sparse-series panning — a chart whose loaded bars don't fill the pane (e.g. a Year view with a handful of candles) could not be panned at all; the offset was welded to a single value. The view still rests at the same right-aligned position by default, it's just no longer locked there. Dense series are unaffected.

Framework wrappers

  • @tradecanvas/react, @tradecanvas/vue, and @tradecanvas/svelte are now public (1.0.0) — thin reactive &lt;TradeCanvas&gt; components around @tradecanvas/chart with props for symbol / timeframe / theme / chart type / indicators / data / adapter / signal markers / trade zones, lifecycle cleanup, and access to the underlying Chart via onReady / ref / bind:chart. Pinned to @tradecanvas/chart@^1.

1.0.0 (2026-07-01)

First stable release — everything an open-source trading chart needs, batteries-included and zero-dependency. The public API is now semver-stable for the 1.x line. Cumulative since 0.9.0 (0.10–0.14 added 30+ indicators and several chart types); the headline additions:

Data

  • Coinbase, Bybit, and Kraken adapters (free, no API key) join the built-in Binance adapter.
  • Generic adapter bases — WebSocketAdapter (live + REST history) and PollingAdapter (REST-only feeds) let any source plug in with ~20 lines: a URL and a parse function. The base handles the connection lifecycle, reconnect, decoding, and event emission.

Trading

  • Live execution — chart.connectExecution(adapter) turns the display-only trading overlay into a real trading surface. The chart routes its order/position intents into an ExecutionAdapter and renders the authoritative orders/positions it reports back (the adapter is the single source of truth). Ships a PaperExecutionAdapter sandbox; failures surface on a single executionError event.
  • Drag-to-create orders — chart.startOrderDraft(side) drops a draggable order line; drag it to a level and confirmOrderDraft() places it (limit vs stop inferred from the level relative to the current price).

Extensibility

  • Plugin SDK — register custom indicators, drawing tools, chart types, and overlays: globally via registerPlugin, per-chart via new Chart(el, { plugins }), or imperatively via chart.plugins.register. Custom chart types and overlays render through the engine.

Layout

  • Resizable panes — drag the divider between the main chart and an indicator pane (or between panes) to resize it, with mouse or touch; each pane keeps an independent price scale.

Performance

  • LTTB downsampling — line and area charts downsample the visible range to ~2 points per pixel (Largest-Triangle-Three-Buckets) when the bar count far exceeds the pixel width, keeping 100k+ bar charts smooth. Visually identical, and a no-op at normal zoom.
  • Benchmark harness — a new pnpm bench (vitest bench). Downsampling 100k points to 1,600 runs in ~0.32 ms.

Frozen contracts

The DataAdapter, ExecutionAdapter, and Plugin SDK interfaces (IndicatorPlugin / DrawingPlugin / ChartTypePlugin / OverlayPlugin), plus the chart event names and payloads, are now semver-stable for the 1.x line.

Breaking changes

  • chart.replay() is renamed to chart.replayStart(), for consistency with replayPause / replayResume / replayStop / replaySeek.

Notes

  • The React / Vue / Svelte wrapper packages remain private and are deferred to 1.1.

0.9.0 (2026-06-02)

Major UX upgrade — pro-grade interaction across the board, with new

analytics depth and workflow features.

Chart interaction

  • Axis-drag scaling: drag the price axis vertically to compress / expand the price scale; drag the time axis to zoom. Double-click either axis to reset (auto-scale / fit-content).
  • Shift+drag measure ruler: transient overlay showing bars × time × price Δ × % between two points. Tracks data through pan/zoom.
  • Alt+click pinned tooltip: anchor an OHLC tooltip at a bar; the live crosshair tooltip then shows the price / % / bar-count delta to the pinned bar. Esc unpins.
  • Hover axis pills: Price (right) + time (bottom) pill badges follow the crosshair with a triangular notch pointing at the line. Inverted theme colors so they always pop.
  • Bar hover highlight: subtle translucent column behind the crosshair marks which bar the cursor is on — disambiguates dense candle charts.
  • Cursor hints: ns-resize over the price axis strip, ew-resize over the time axis strip.

Widget

  • Symbol search modal: clicking the toolbar symbol (or pressing Ctrl/⌘+P) opens a fuzzy-search picker over the configured symbols[]. Replaces the previous click-to-cycle behaviour.
  • Hotkey sheet (?): categorized keyboard-shortcut reference.
  • Replay scrubber UI: toolbar play button toggles a floating bottom scrubber bar — play/pause, step-back/step-forward, draggable progress, speed select (0.5×–100× bars/sec). Drives the existing chart.replay*() API.
  • Watchlist sidebar (watchlist: true): right-side panel listing the widget's symbols with last price, % change, and a mini sparkline. Click a row to switch chart.
  • Saved layouts (persistLayouts: true): per-symbol indicator stack, drawings, alerts, and chart type persist to localStorage. Switch symbol → state is auto-saved; switch back → state is restored. widget.clearSavedLayout(symbol?) resets.
  • Drag-and-drop CSV / JSON (dragDropImport: true, default): drop an OHLCV file onto the chart and it loads instantly. Toast feedback for success / failure. New parseOHLCV exported for programmatic use.
  • Toast helper: widget.toast(msg, kind?) for transient feedback.
  • Premium CSS refresh: new design tokens (motion, elevation, shape), Inter + JetBrains Mono stacks, smoother cubic-bezier transitions, refined hover/active/focus states, gradient toolbar/sidebar surfaces, larger radii on modals/palette, animated connected status pulse, refined scrollbars, reduced-motion support.

Chart visuals

  • Volume Profile: optional horizontal histogram of traded volume bucketed by price over the visible range, with point-of-control highlighting. chart.setVolumeProfileVisible(true).
  • Day-separator dividers: faint vertical lines at day boundaries on intraday data, heavier at week/month/year with inline date labels (Mar 4, Apr '26, 2027). Auto-suppressed on daily-or-coarser timeframes.
  • In-canvas axis polish: price + time axes now render with subtle dividers, thin tick notches, and refined typography weight (dropped the heavy per-label background rectangles for a cleaner feel).

Analytics

  • Strategy library: four reference strategies under @tradecanvas/analytics — smaCrossStrategy, rsiReversionStrategy, donchianBreakoutStrategy, bollingerReversionStrategy. All return a StrategyFn ready to feed Backtester.run().
  • Monte Carlo simulation: runMonteCarlo(initialCash, trades, opts) shuffles realised trade order N times to expose path-dependence. Returns per-step P5/P25/P50/P75/P95 equity bands, final-equity percentiles, probability-of-profit, and worst-case max drawdown. Deterministic with a seed.

Internals & exports

  • New Viewport.scalePriceRange(factor) and AxisDragHandler for custom axis interactions.
  • New MeasureOverlay and PinnedTooltip exports from @tradecanvas/core.
  • New VolumeProfileRenderer export from @tradecanvas/core.
  • New parseOHLCV, DragDropImporter exports from @tradecanvas/chart.
  • ReplayManager.seekTo now emits a synchronous bar event so seeking while paused immediately repaints the chart slice.

Behavioural notes

  • Toolbar symbol-click now opens the search modal (was: cycle through symbols). Hold the same prop name in your code; behaviour upgrades.
  • dragDropImport is enabled by default in the widget — pass false if a parent surface already handles drops.
  • SessionBreaks auto-suppresses its lines on daily-or-coarser timeframes so weekly charts don't paint a wall of separators.

0.8.1 (2026-05-26)

Bug fixes

  • features.tradingContextMenu flag is now wired through to the right-click handler. Previously the flag existed in FeaturesConfig but InteractionManager always called preventDefault() and routed to the trading manager regardless of whether the custom menu would render. The result: projects setting tradingContextMenu: false (or any config that kept trading on but the menu off) suppressed the native browser context menu without showing a replacement, leaving users with no right-click affordance at all
  • Chart.ts now passes features.tradingContextMenu into the TradingManager config (contextMenu.enabled)
  • InteractionManager.onContextMenu only calls preventDefault() when the trading context menu actually opens

Usage

Projects that don't use trading can now opt out cleanly:

new Chart(host, { features: { trading: false } })            // no trading at all
new Chart(host, { features: { tradingContextMenu: false } }) // keep orders/positions, drop the menu

In both cases, native browser right-click works on the chart as expected.

0.8.0 (2026-05-26)

Features

  • Strategy backtester — new @tradecanvas/analytics package with a bar-by-bar Backtester. Strategy fn runs at close of each bar; orders placed on bar N fill on bar N+1 (market → next-bar open, limit/stop → when the next bar trades through the trigger). Returns fills, closed trades, equity curve, and summary metrics
  • Portfolio tracking — Portfolio class tracks cash, one net position, realized P&L, and the equity curve. Supports partial closes and position flips with correct realized-PnL accounting
  • Risk metrics — computeRiskMetrics() returns Sharpe, Sortino, Calmar, CAGR, max drawdown, win rate, profit factor, expectancy, average win/loss. Periods per year auto-detected from equity-curve timestamps; configurable risk-free rate
  • Commission & slippage models — FixedCommission, PercentCommission, PerShareCommission, NO_SLIPPAGE, PercentSlippage, RangeBasedSlippage. Pluggable via Backtester constructor
  • Replay mode — new ReplayController in @tradecanvas/core. Decoupled from Chart so it can drive both UI playback and headless backtests. Supports start / pause / resume / step(n) / seek(index) / setSpeed(barsPerSecond) with typed bar / finished / stateChange events
  • Equivolume chart type — full-range boxes with width proportional to volume share; color tracks close vs prior close (Richard Arms style). Switch via chart.setChartType('equivolume')
  • Fibonacci Time Zones drawing — fibTimeZones tool draws vertical Fibonacci-interval lines (1, 2, 3, 5, 8, 13, 21, 34, 55) projected from a two-anchor time span. Useful for forecasting future swing points based on prior cycle duration
  • Multi-page SvelteKit docs site — replaced single-page demo with 18 prerendered routes (/, /docs/*, /examples, /playground, /changelog, /embed) using @sveltejs/adapter-static. SEO-friendly per-page metadata, sitemap, robots.txt
  • Live backtest demo — /docs/analytics includes a runnable backtest panel (SMA(10/30) cross on 365 days of deterministic synthetic data) with equity-curve canvas, drawdown shading, play/pause/scrub controls, and 8 live metric tiles

API additions

  • New package @tradecanvas/analytics exporting Backtester, Portfolio, computeRiskMetrics, FixedCommission, PercentCommission, PerShareCommission, ZERO_COMMISSION, NO_SLIPPAGE, PercentSlippage, RangeBasedSlippage, plus StrategyContext, StrategyFn, BacktestResult, RiskMetrics, Fill, ClosedTrade, PortfolioPosition, EquityPoint, Side, OrderType, OrderStatus, TimeInForce
  • ReplayController exported from @tradecanvas/core and @tradecanvas/chart along with ReplayBarEvent, ReplayEventMap, ReplayOptions, ReplayStateChangeEvent, ReplayStatus
  • EquivolumeRenderer exported from @tradecanvas/core
  • FibTimeZonesTool exported and auto-registered by registerBuiltInDrawingTools
  • 'equivolume' added to ChartType; 'fibTimeZones' added to DrawingToolType
  • Widget catalog (CHART_TYPES) lists Equivolume

Test coverage

  • New @tradecanvas/analytics package ships with 22 unit tests across Backtester, Portfolio, and RiskMetrics
  • New ReplayController test suite (8 tests) covering step, seek, start/pause/resume, fake-timer playback, and startIndex
  • Total project tests: 273 passing across 41 test files

0.7.1 (2026-05-20)

Bug fixes

  • Drawings persist correctly across timeframe / symbol switch — drawing manager state was being cleared when the live stream reconnected. Drawings now survive timeframe and symbol changes when persistDrawings is enabled

0.7.0 (2026-05-14)

Features

  • Multi-Chart Grid — new ChartGrid class for 2/4/6 synchronized charts with linked crosshairs and shared time axis. Layouts: '1x2', '2x2', '2x3' and more. connectAll() for bulk data source binding
  • 4 new chart types — Volume Candles (width proportional to volume), HLC Area (high-low-close band), Step Line (staircase pattern), Line with Markers (dots at data points). Total: 16 chart types
  • Command Palette — Ctrl+K / Cmd+K quick search inside ChartWidget for indicators, chart types, drawing tools, timeframes, and actions (screenshot, theme toggle, settings). Keyboard navigation with arrow keys and Enter
  • Visual Price Alerts — AlertManager.render() now wired into the overlay layer. Alert lines show bell icon, price label, and triggered/pending color states on the live chart
  • Signal Markers API — chart.addSignalMarker() renders directional arrows on the overlay with confidence-based sizing, per-source color coding, and labels. Designed for bot/signal trading integrations
  • Trade Zones — chart.addTradeZone() visualizes entry→exit rectangles with P&L coloring, direction badges, and exit labels. Supports active (open) and closed trades with updateTradeZone()

API additions

  • chart.getData() — public access to raw OHLC data series
  • chart.setCrosshairPosition(point) — programmatic crosshair placement for cross-chart sync
  • ChartGrid.connectAll(adapter, symbols, timeframe) — bulk connect all grid cells to live data
  • ChartGrid.setLayout(layout) — dynamically switch grid layout, adding/removing charts as needed
  • chart.addSignalMarker(marker) / setSignalMarkers() / clearSignalMarkers() / setSignalMarkerStyle()
  • chart.addTradeZone(zone) / updateTradeZone() / setTradeZones() / clearTradeZones() / setTradeZoneStyle()
  • New event types: signalMarkerAdd, signalMarkerRemove, tradeZoneAdd, tradeZoneRemove
  • New types: SignalMarker, SignalDirection, SignalMarkerStyle, TradeZone, TradeZoneDirection, TradeZoneStyle

0.6.0 (2026-04-28)

Features

  • 7 new indicators

- Hull MA (overlay) — low-lag WMA-of-WMA-diff smoothing

- Pivot Points (Classic) (overlay) — S3/S2/S1/PP/R1/R2/R3 with configurable lookback window

- Anchored VWAP (overlay) — VWAP that resets at a chosen anchorTime

- ZigZag (overlay) — swing-pivot connector with percentage-deviation threshold

- Linear Regression Channel (overlay) — least-squares fit + std-dev bands

- Awesome Oscillator (panel) — fast/slow median histogram with up/down coloring

- Chaikin Oscillator (panel) — EMA(ADL, fast) − EMA(ADL, slow), exposes cumulative ADL

  • Range Bars chart type ('rangeBars') — fixed price-range bars (each bar's high − low equals a configured range), with toRangeBars transform
  • Trading overlay customization (additive, no breaking changes)

- TradingPosition.closedQuantity — partial-close visualization as a left-edge dim band proportional to closed fraction

- TradingConfig.pnlThresholds: PnLThreshold[] — multi-stop color gradient driven by live P&L

- TradingConfig.positionLabel: string | (ctx) =&gt; string — token templating ({side}, {qty}, {openQty}, {closedQty}, {entry}, {price}, {pnl}, {pnlPct}, {pnlSign})

  • Web Worker indicator pipeline — new IndicatorWorkerHost and bundled indicator.worker.js register all 33 built-in indicators. Promise-based host.calculate(...) offloads heavy compute off the render loop. Pass null for the worker to use the synchronous fallback (SSR, tests, safety net). Per-request timeout, ping() health check, terminate() cleans up pending work

Type safety

  • New getNumberParam / getIntParam helpers exported from @tradecanvas/core
  • All 25 existing indicators migrated to the helpers — invalid params (NaN, Infinity, missing keys, non-numeric strings) now fall back to documented defaults instead of silently propagating to calculations
  • BinanceAdapter REST and WS payloads now flow through typed parseRestKline / parseWsKline validators; any[] and any casts are gone
  • TextAnnotationTool text resolution moved to a pure resolveAnnotationText helper (no more as string cast)
  • ChartStateManager.deserialize validates the parsed shape — malformed drawings/orders/positions/indicators are filtered, missing or wrong-typed viewport fields fall back to defaults

Internal refactor

  • WidgetStyles.ts (764 LOC of CSS-in-string) extracted into a sibling WidgetStyles.css file, imported via Vite's ?raw query and inlined at build time. The TS shim is now 31 LOC; CSS is editable as CSS (syntax highlighting, linting). Public API (injectWidgetStyles / removeWidgetStyles) unchanged.
  • Chart-type dispatch (createChartRenderer and getDisplayData) extracted from Chart.ts into a new ChartTypeStrategy module with createRendererFor, transformDisplayData, and isTransformedChartType helpers
  • Auto-save debounce extracted into AutoSaveScheduler (testable state machine, owner injects the save callback)
  • Indicator panel scaling math extracted into computeIndicatorPriceRange (now correctly skips NaN/Infinity values)
  • Removed duplicate timeframeToMs private method from Chart.ts; uses the shared helper from @tradecanvas/commons
  • Chart.ts: 1632 → 1536 LOC

Test coverage

  • 267 tests across 40 files (Vitest scaffolded in @tradecanvas/core and @tradecanvas/chart)
  • 25/33 indicators with direct test coverage
  • New tests for: indicator math (Hull MA, Pivot Points, Anchored VWAP, ZigZag, LRC, Awesome / Chaikin Oscillator, BB, ATR, Stochastic, OBV, VWAP, Ichimoku, Supertrend, Keltner, Donchian, ADX, CCI, MFI, Williams %R, Parabolic SAR), range-bar transform, trading position formatting, drawing-tool hit-test geometry, DrawingManager CRUD, Binance kline parsers, ReconnectManager backoff/cap/give-up, TickAggregator (tick + pre-formed-bar paths, ring buffer eviction), ChartState JSON + localStorage round-trip + validator, IndicatorWorkerHost (worker + fallback), ChartTypeStrategy, AutoSaveScheduler, IndicatorPriceRange
  • GitHub Actions CI workflow added under .github/workflows/test.yml (Node 20.19, pnpm 9.15, builds commons, runs pnpm test)
  • Root pnpm test runs both packages

Demo

  • Chart-types dropdown extended with Renko, Kagi, Line Break, Point & Figure, Range Bars
  • Indicator picker extended with Hull MA, Anchored VWAP, Pivot Points, ZigZag, Linear Regression Channel, Awesome Oscillator, Chaikin Oscillator (all 33 indicators selectable)

0.5.0 (2026-04-16)

Features

  • ChartWidget — built-in trading UI — new @tradecanvas/chart/widget subpath export. One-line embed with complete toolbar, drawing sidebar, settings modal, and status bar. Zero framework dependencies, CSS scoped with tcw- prefix
  • Typed event payloads — chart.on('orderModify', e =&gt; e.payload.orderId) infers payload type via ChartEventMap. Includes OrderModifyPayload, PositionModifyPayload, OrderPlacePayload, and 10 more typed payloads
  • Timestamp normalization — normalizeBar({ t, o, h, l, c, v }) converts wire format to OHLCBar. normalizeBarTime() auto-detects seconds vs milliseconds
  • chart.setTimeframe(tf) — switch timeframes on active stream without destroy/rebuild
  • chart.appendBars(bars) — bulk append for reconnect catch-up (single indicator recalculate)
  • chart.setStatusText(text) — display status in chart legend area (e.g. "LIVE · 8ms")
  • chart.setCurrentPrice(price, pulseColor?) — optional pulse color
  • DARK_TERMINAL theme — fintech terminal palette (#0E0E0E bg, #00FF87/#FF3B4D candles, monospace font)
  • DataAdapterEventType exported — adapters can implements DataAdapter with full type safety

Documentation

  • JSDoc on DataAdapter interface clarifying observer pattern (reconnect to switch)
  • OHLCBar.time documented as milliseconds
  • All event payload types exported from main index

0.4.0 (2026-04-16)

Features

  • Locale-aware number formatting — new numberLocale option on Chart (BCP 47 format like 'en-US', 'de-DE', 'vi-VN')

- 'en-US' → 65,234.00

- 'de-DE' → 65.234,00

- 'vi-VN' → 65.234,00

- Runtime change: chart.setNumberLocale('de-DE')

- Affects price axis, crosshair tooltip, indicator legend, trading overlay

Bug Fixes

  • Keyboard shortcuts were broken — KeyboardHandler was constructed then discarded with void new. Arrow keys, +/-, Home/End, and Space did nothing. Now properly wired to window with focus-aware handling (ignores keystrokes in inputs/textareas)
  • Streaming indicators froze until bar close — updateLastBar() and updateLastBarFromTick() now recalculate indicators on every tick. Moving averages, Bollinger Bands, RSI, etc. now update in real-time
  • StreamManager listener leak — adapter listeners accumulated on reconnect because unsubscribers weren't tracked. Now properly cleaned up across connect/disconnect cycles
  • Price formatting without thousand separators — formatPrice() now uses toLocaleString for readability (65,234.00 vs 65234.00)

Performance

  • getBoundingClientRect cached in InteractionManager — was called on every mousemove. Now invalidated only on pointerdown, resize, and scroll. Major reduction in layout flushes during pan/crosshair
  • structuredClone replaced in drag/resize hot paths with hand-rolled shallow clone (5-10x faster for DrawingState shape)

0.3.0 (2026-04-16)

Features

  • WaterfallChart — Running cumulative visualization with positive/negative/total bar types. Perfect for P&L attribution, revenue bridges, cash flow analysis

- Auto-detects bar type from value sign (explicit type always wins)

- Dashed/solid/none connector lines between bars

- Value labels, category labels, crosshair tooltip with cumulative total

  • GaugeChart — Speedometer-style gauge for KPIs, risk scores, sentiment

- Colored zones for value ranges

- Smooth setValue() animation with easeOutCubic

- Configurable arc angles and thickness

- Center value label + optional subtitle

Performance

  • Batched path operations grouped by color (single fill per color group)
  • Integer pixel rounding for crisp 1px lines
  • Cached trig calculations in gauge rendering
  • rAF-coalesced animation (safe on rapid setValue calls)
  • No per-element beginPath+stroke loops

0.2.0 (2026-04-16)

Features

  • Finance Chart Components — 4 new standalone chart types:

- SparklineChart — tiny inline line/area chart for dashboards and KPI cards

- DepthChart — bid/ask order book visualization with cumulative volume areas

- EquityCurveChart — portfolio equity with drawdown shading and benchmark comparison

- HeatmapChart — colored cell grid with treemap layout (weighted by market cap)

  • Client-side order matching engine — auto-fills limit/stop orders with configurable spread and commission
  • Trade history — tracks fills, SL/TP triggers, manual closes with win rate and PnL stats
  • Toast notifications — animated alerts for order fills and SL/TP triggers
  • StackBlitz sandboxes — "Open in StackBlitz" for Vanilla JS, React, Svelte, Vue
  • Finance charts demo section — live sparklines, equity curve, depth chart, heatmap on demo page

Bug Fixes

  • Sparkline container bindings in Svelte 5 — use plain array for bind:this in {#each}
  • BaseFinanceChart re-measures dimensions if 0 on first render (initial mount race)
  • Rename version and release scripts (npm reserved lifecycle names)

0.1.3 (2026-04-15)

Bug Fixes

  • Panel indicators not rendering until chart interaction — addIndicator() now calls updateViewportAndRender() for panel indicators so they appear immediately
  • Stop orders showing LIMIT label — context menu orders now preserve the correct type (LIMIT, STOP, STOP LIMIT)
  • **npm publish with workspace:\* deps** — previous versions were published via npm publish which doesn't convert workspace:*. Now using pnpm publish for proper version resolution

Features

  • Auto-scale includes overlay indicator values — main chart Y-axis expands to fit Bollinger Bands, Ichimoku, Keltner, etc. instead of clipping them
  • TC prefix on all generated IDs — indicator instances (tc_sma_1), drawings (tc_drawing_1), alerts (tc_alert_1) to prevent collisions
  • Trade-on-chart via built-in context menu — right-click to place Buy Limit, Sell Limit, Buy Stop, Sell Stop at clicked price
  • Viewport.setPriceRange() — new public method for direct price range control
  • IndicatorEngine.getOverlayPriceRange() — compute min/max of visible overlay indicator values

0.1.2 (2026-04-15)

Features

  • Demo site — Svelte 5 demo with a full trading UI (live chart, drawing sidebar, dropdowns, settings modal)
  • Developer documentation — 11 guide sections: Getting Started, Data, Adapter, Themes, Indicators, Drawings, Trading, Features, Events, State, API Reference
  • StackBlitz sandboxes — interactive "Open in StackBlitz" for Vanilla JS, React, Svelte, Vue
  • Paper trading panel — fake buy/sell with balance, PnL, localStorage persistence
  • Replay button — play/pause/stop in toolbar header
  • Package manager switcher — npm/pnpm/yarn tabs on install command

Examples

  • Updated examples/basic and examples/vanilla-static with modern UI
  • Added examples/svelte (Svelte 5 + Vite)
  • Added examples/vue (Vue 3 + Composition API)
  • Updated examples/react with toggle buttons and chart type dropdown

Documentation

  • README with Svelte and Vue framework integration examples
  • Per-package READMEs for npm pages (@tradecanvas/commons, @tradecanvas/core, @tradecanvas/chart)

0.1.1 (2026-04-15)

Bug Fixes

  • Fix repository URLs pointing to wrong GitHub repo
  • Fix all TypeScript declaration errors (unused imports, missing index signatures, missing TimeFrame entries)
  • Fix volume type mismatch in DataManager sanitizeBar
  • Add publishConfig.access: "public" for scoped packages
  • Add prepublishOnly build scripts

0.1.0 (2026-04-09)

  • Initial release of @tradecanvas/chart, @tradecanvas/core, and @tradecanvas/commons.