Charts
Read and move around a run's charts: percent or the quote asset, the resolution picker, zooming and the setting that governs it, order marks and indicators.
You have a run open and you want to look closely at part of it: when the account rose and fell, where the orders landed on the price, what the algorithm's indicators were doing at the time. The charts on a run's page are built for that. This page explains their controls.
To reach them, open a simulation, select a run and select Open full results. The charts are in the detail section of the run's page. See Run results.
Charts of a run
| Chart | Place | Content |
|---|---|---|
| Overview | The run's summary on the simulation's page | Net worth over the whole run, in percent. A picture only: it does not zoom |
| Comparison | The comparison card of a comparison or sweep run | Every algorithm's net worth on one chart. A picture only |
| Net worth | The detail section of the run's page | One algorithm's net worth over time |
| Candles | Under the net worth chart | The price and volume of one instrument, with the algorithm's orders marked |
| Whole-run strip | Under the candle chart | The whole run in miniature, with the part the charts show marked on it |
The net worth chart and the candle chart are one instrument. They share the same time axis: zoom or pan one, and the other follows.
Percent and asset figures
The buttons marked % and with your quote asset's symbol (for example USDT) choose what the net worth chart measures.
- % shows the change in net worth since the run started. Zero means break-even, so the line is green above zero and red below. Use it to judge performance and to compare runs or algorithms that started with different balances.
- The quote asset shows net worth itself, for example 10,430 USDT. The dashed line marks the starting value, and the colour splits there. Use it when you care about amounts of money.
One measure is shown at a time, because a chart has one vertical scale and "+8%" and "10,430" do not belong on the same one.
Both are measured in the simulation's primary quote asset and in nothing else. There is no picker for the currency: it was fixed when the simulation was created, so every run of it can be compared. The caption under the chart names it. See Primary quote asset.
On a margin account, two more buttons appear: Owed, what the account had borrowed, and Level, its margin level. See Margin and leverage.
The line under the chart repeats the latest value as text, so you never need to hover to read it.
Resolution picker
The resolution is the candle size the charts are drawn at. The picker lists the resolutions available for the selected algorithm, finest first. The first one is marked "recorded": it is the interval of the algorithm's data, and it is what the charts open at.
Choose a coarser resolution, for example 1d on a run recorded at 1h, to see
more of the run on one screen. Each candle then summarises several recorded
ones, and each net worth point is the value at the end of its period.
Missing finer resolutions
The picker never offers a resolution finer than the interval the run was
recorded at. A run on 1h candles has nothing to show at 1m: the engine saw
one candle an hour and recorded one account value an hour, so there is no finer
detail to draw. To look at a run more finely, run the simulation on a finer
interval.
The limit is set per algorithm. In a run where one algorithm read 1m data and
another read 1h data, the picker offers 1m for the first and starts at 1h
for the second.
Movement and zoom
At a fine resolution, the charts open on one screenful at the start of a long run, not the whole of it. You move from there.
- Drag across a chart to pan.
- Use the slider under a chart to zoom in and out or to slide the window.
- Scroll over a chart to zoom around the pointer, if the zoom gesture allows it (see below).
- Keep going past an edge. When you reach the end of what is loaded, the charts load the next stretch. The caption reads "Loading more..." while they do.
A hint in the corner of each chart states the gestures that work, for example "Scroll to zoom · drag to pan".
Whole-run strip
The strip under the candle chart shows the whole run, with a band over the part the charts show. Select anywhere on it to move the charts there. It is the quickest way across a long run.
Selecting a row in the journal does the same: the charts move to that order. See Run results.
Zoom gesture setting
What the mouse wheel does over a chart is your choice.
-
Open the account menu at the end of the app bar and select Settings, or press
Ctrl+,. -
Select Charts.
-
Under Zoom gesture, choose one:
Option Behaviour Off Scrolling over a chart scrolls the page. Zoom with the slider, or drag to pan Scroll Scrolling over a chart zooms it around the pointer. The page does not scroll while the pointer is over a chart Ctrl + scroll Hold Ctrland scroll to zoom. Scrolling on its own moves the page. Pinching a trackpad zooms too
The setting opens on Scroll. If you find charts catching the wheel while you scroll down a page, choose Ctrl + scroll or Off. Dragging and the slider work under every option. Reset charts returns the setting to its default.
The setting applies to every chart in the app and is stored on this computer. See Settings.
Candle chart
The candle chart shows the price of one instrument: a candle per period, with volume bars beneath. A dashed line marks the last close. If the algorithm reads several instruments, choose which to show with the market picker in the row above the charts.
Order marks
Every order the algorithm placed on the instrument is marked on the candle where it was submitted.
| Mark | Meaning |
|---|---|
| Triangle pointing up | A buy |
| Triangle pointing down | A sell |
| Solid | At least part of the order traded |
| Hollow | Nothing traded: the order was rejected, cancelled or expired |
| Larger, with a ring | The order selected in the journal |
A mark sits at the price the order was filled at, or the price it asked for if it did not fill. Hover over a candle to see its prices and the orders placed on it. Select a mark to highlight that order in the journal.
On a margin account, margin calls and liquidations are marked under the candles.
Indicators
An algorithm can declare the indicators it reads, such as moving averages or an RSI. The engine computes them while the run steps, records the values the algorithm saw, and the candle chart draws them on the same time axis as the prices.
- An indicator measured in price, such as a moving average or a Bollinger band, is drawn as a line over the candles.
- Each line is named as the algorithm named it. SMA Crossover with its default parameters draws "SMA 9" and "SMA 21".
- When several algorithms share an account, each line's name starts with the label of the algorithm it belongs to.
Indicator values are exactly what the algorithm read at each step. An indicator has no value until it has seen enough candles to fill its window, so its line starts a little way into the run. A 21-candle average has nothing to show for the first 20 candles.
The charts draw what the algorithm declared, and nothing else. There is no menu for adding an indicator of your own to a finished run, because the chart is a record of what the algorithm saw, not a charting tool. To see a different indicator, change the algorithm's parameters and run again. If you write your own algorithm, declare the indicators you want to see: see Plugin authoring.
Chart errors
- "This run recorded no net worth history" or "no candles": the run ended before it recorded anything for this algorithm or instrument.
- "Showing what was already loaded": a request for more of the run failed. What is on screen is still correct. Move again to retry.
- "This algorithm reads no market data": the algorithm was not linked to a data source, so there are no prices to draw. See Algorithm setup.
Related
Run results
Open a run, read its summary figures, the comparison table, one algorithm in detail and the journal, label and tag it, restore its setup, or delete it.
Market data downloads
The Repository page: the market data on this computer, the data available to download, starting and following a download, and your plan's data quota.