OHLC

Open-High-Low-Close bars. What the ohlc is for, the data it needs and every option it has.

3 min read

On this page

Open-High-Low-Close bars. It sits in the Financial group of the widget library.

Example ohlc on a BankSync dashboard
An example ohlc drawn with sample data. Hover for values and switch between examples.

When to use it#

An OHLC chart draws each period as a vertical bar from low to high, with a tick on the left for the open and on the right for the close. It answers "how did this holding trade each day?" with lighter marks than a candlestick.

When to pick something else#

  • Want filled bodies, or a volume pane? Use a Candlestick.
  • Only the closing price matters? Use a Line chart.
  • Want the busiest price levels? Use a Volume profile.

The data it needs#

Pick these in the Data tab of the inspector. BankSync suggests a column for each when your source has an obvious match.

FieldNeededPickNotes
DateYesa dateOpen/High/Low/Close are read from columns named o/h/l/c — shape them in the query.

Each row is drawn as it is, so shape the rows first if you need totals. See Shaping data.

OHLC options#

Set these on the Style tab of the inspector. "Automatic" means BankSync picks a value from the chart's size and data.

OptionWhat it doesValuesNew charts start with
Rising colourColour for periods that closed higher than they opened.Colour#16a34a
Falling colourColour for periods that closed lower than they opened.Colour#dc2626
Tick lengthLength of the open and close ticks on each side of the bar, in pixels.Number, 0 or moreAutomatic
Line widthThickness of the high-to-low bar and its ticks, in pixels.Number, 0 or moreAutomatic

Needs history#

Show a note instead of the chart until the rows cover enough periods, so a first week never reads as a trend.

OptionWhat it doesValuesNew charts start with
Date fieldThe date column whose distinct periods are counted.TextAutomatic
PeriodWhat counts as one period: a day, week, month, quarter or year.Day, Week, Month, Quarter, YearAutomatic
Periods neededHow many distinct periods the rows must cover before the chart draws (2 to 60).Whole number, 2 to 60Automatic
Waiting messageShown until there is enough history. Leave empty for a message naming the periods.Text, up to 120 charactersAutomatic

Shared chart styling#

Every chart also has the shared styling options. These apply to this one:

Messy data#

  • It needs a date and open, high, low and close columns, one row per period. Transaction data doesn't have these.
  • A row missing any of the four prices is dropped. With none left you see "No complete price rows to show".
  • If the high sits below the open or close, or the low sits above them, the bar is stretched to cover both.
  • Rows are sorted by date, and gaps such as weekends take no space.
  • The price axis fits your price range instead of starting at zero.

On a phone#

The ticks need horizontal room. With too many periods for the width, the chart switches to a close-price line with a crosshair. On a phone, show a few weeks of daily bars or switch to weekly periods.

Use this page with your AI assistant

Every BankSync doc is available as plain Markdown for agents and LLMs.