DocsGuidesBuild a basket index

Build a basket index

Upload a file of holdings and weights, backtest it in the browser, download the results.

A basket index is the simplest index there is: you decide what it holds and how much of each, and the platform does everything else — pricing every holding at every session close, adjusting for splits and dividends, and turning that into a value series you can chart, compare against a benchmark, and download.

This is the browser version of that job. You will not write any code and you will not call the API: you upload a spreadsheet, press a button, and download a CSV. Budget about twenty minutes the first time.

If you do not have a list — if the index is supposed to work out what it holds — then it is a rules-based index, and Build a rules-based index is the page you want. If you would rather describe the whole thing in a sentence, Build an index by chat does that. And if you would rather drive this from a program, Bring your own data is the API version of this page.

What you will end up with

  • A backtest — your basket, valued at every trading session between your start date and today.
  • A chart of that value series, with drawdowns, volatility and the usual return statistics.
  • The holdings at each rebalance, priced and share-counted rather than just weighted.
  • Three CSV downloads: the value series, the current holdings, and every historical holdings snapshot.

Before you start

  • An Index One account. Registration is self-serve — see step 1.
  • A list of the securities you want to hold. Tickers are fine.
  • Optionally, a weight for each one, and optionally a date for each rebalance.
  • A spreadsheet program that can save a .csv file — Excel, Numbers and Google Sheets all do.

Step 1 — Create an account

  1. 1

    Register

    Go to indexone.io/register and sign up. Use your university or work email address if you were asked to — it is how your account gets attached to the right team.

  2. 2

    Confirm your email

    A confirmation code arrives by email. Enter it to activate the account.

  3. 3

    Log in

    Sign in at indexone.io/login. You land on the dashboard, with the navigation rail down the left-hand side.

Step 2 — Open the Index Builder

In the left-hand rail, click Index Studio. The page is titled Index Builder and has two halves.

The canvas on top is where the index is defined. Each box is one step — read the file, look up the securities, apply the weights, record the holdings — wired left to right. You will change two of those boxes and leave the rest alone.

The results below fill in once you run a backtest: chart, statistics, holdings and downloads.

No Index Studio in the rail?

The Studio is enabled per team. If Index Studio and Datasets are missing from the navigation, your team has not been switched on for it yet — email contact@indexone.io with your account address and ask, mentioning your course or group if you are on a student programme.

Everything on the canvas can explain itself

The Describe workflow button in the canvas toolbar puts a one-line caption on each box saying what that step does. Turn it on the first time you load a template — it is the fastest way to understand what you are looking at.

Step 3 — Choose a template

Open the round + button in the canvas toolbar, choose Load Example, then the Custom Dataset Index card. It offers six starting points; the first four are the basket formats, and they differ only in what your file contains.

TemplateYour file hasWhat the index does
Symbol OnlysymbolHolds that list, rebalancing once a year, weighted by market capitalisation.
Symbol + Weightsymbol, weightHolds that list at your weights, rebalancing once a year.
Date + Symboldate, symbolRebalances on every date in your file, weighted by market capitalisation on that date.
Date + Symbol + Weightdate, symbol, weightRebalances on every date in your file, at the weights you gave for that date.

Date + Symbol + Weight is the full basket calculation — your constituents and your weights, at each point in time — and it is the one this guide follows. The other three are the same thing with a column left out.

Each card has a Sample CSV button in its bottom-right corner that downloads a file in exactly the right shape. Download it before you click the card: opening it in Excel next to your own data is the quickest way to get the format right.

Clicking the card loads the template onto the canvas.

Step 4 — Prepare your file

One row per holding per rebalance date. Three columns, named exactly date, symbol and weight.

my_basket.csv
date,symbol,weight
2020-01-02,AAPL.US,0.25
2020-01-02,MSFT.US,0.25
2020-01-02,AMZN.US,0.25
2020-01-02,GOOGL.US,0.25
2021-01-04,AAPL.US,0.40
2021-01-04,MSFT.US,0.30
2021-01-04,NVDA.US,0.30

That file says: from 2 January 2020 hold four names at a quarter each; from 4 January 2021 hold three names at 40/30/30. Between those dates the index simply runs — the weights drift with the prices, which is what an index is supposed to do. You need a row only for the days you rebalance, not for every trading day.

RuleWhy
Save as .csvIn Excel: File → Save As → CSV UTF-8. An .xlsx will not upload.
Keep the header rowThe first row must be the column names. This is the opposite of the old platform, which wanted no headers — the new one reads your columns by name.
Dates as YYYY-MM-DDWith leading zeros: 2020-01-01, not 2020-1-1 and not 01/01/2020. Watch for Excel silently reformatting a date column.
Weights as decimals2% is 0.02 — not 2, and not 2%.
Weights add up to 1 per dateThey are used exactly as written. See the warning below.
One row per holdingNot one column per holding. A wide matrix will not upload; stack it into rows.
Symbols venue-suffixedAAPL.US, VOD.LN, 7203.JP — see Symbols & identifiers.

Your weights are used exactly as you write them

The platform does not rescale a custom basket. If your weights for a date add up to 0.9, the index is 90% invested and 10% in nothing, and it will underperform for reasons that have nothing to do with your idea. Check the total for every date before you upload — a SUMIF per date in Excel takes a second and saves an afternoon.

Tickers: add the exchange suffix

A platform symbol is the ticker, a dot, and the exchange code: AAPL.US, VOD.LN for London, 7203.JP for Tokyo. US listings take .US — a bare AAPL still resolves, but the suffixed form is the one to write. A share class uses a hyphen (BRK-B.US). The full list of suffixes is in Symbols & identifiers — keep it open while you build the file.

Step 5 — Upload your file

Your file becomes a dataset: a named table on your account that the index reads from. You upload it straight from the canvas.

  1. 1

    Open the first box on the canvas

    It is the Dataset Trigger — the step that reads your file and decides when the index rebalances.

  2. 2

    Click + next to the dataset dropdown

    The dropdown lists datasets your team already has; the + creates a new one. You can also do this ahead of time from Datasets in the left-hand rail.

  3. 3

    Drop the CSV in

    The Create Dataset dialog takes the file by drag-and-drop or file picker, and names the dataset after the file unless you type something else.

  4. 4

    Say what the columns mean

    The dialog then asks “What do these columns mean?” and pre-fills its best guess — date as a date, symbol as a ticker, weight as a number. Correct anything wrong and save. Skip for now is allowed and the upload still works; declaring the columns just lets the platform check your next upload for you.

  5. 5

    Check the time column

    Back on the canvas, the Dataset Trigger should show date as its time column. That is what turns each date in your file into a rebalance.

Fixing a file later

Datasets are editable — upload a corrected file over the top from the Datasets page and run the backtest again. You never need to rebuild the index to change your basket.

Step 6 — Set the index parameters

Open the + button in the toolbar again and choose Index Params. These are properties of the index itself rather than of any one step.

FieldWhat to put
Index NameSomething you will recognise in a list later. NTU Group 4 — Momentum Basket beats Test 3.
Start TimeWhen the index begins. Set it on or just before the first date in your file — if it starts after, the earlier rebalances in your file are never used.
Start ValueThe number the index starts at. 1000 is the convention and makes the chart easy to read: 1250 means up 25%.
CurrencyWhat the index is valued in. Holdings in other currencies are converted for you.
Exchange CalendarWhose trading days the index runs on: XNYS (New York) for a US basket, XLON for London, XSES for Singapore.
Timezone, EOD TimeWhen the daily close is taken. The template already matches the calendar — leave them unless you know you need something else.
Dividend PolicyLeave it as it is and you get both a price-return and a total-return series, which is what you usually want to report.

The most common mistake on this screen

A start date later than the first date in your file. The index cannot rebalance into a basket dated before it existed, so those rows are quietly ignored and the backtest begins further along than you expected. If the chart starts on the wrong date, come back here first.

Step 7 — Run the backtest

Open the + button and choose Run Backtest. Progress streams into the top-right of the canvas as the run works through your history, and the results section below fills in when it finishes. A few years of a small basket takes well under a minute; a long history of hundreds of names takes longer.

If it fails, the message names the step that failed and what was wrong with it. The table near the end of this page covers the ones you are most likely to hit.

Step 8 — Read the results

Scroll down. You get the value series charted from your start date to today, the standard return and risk statistics, and the holdings behind it — including what the index held at each past rebalance, not just today.

You can add a benchmark to the chart: search for an index or an ETF and it is drawn on the same axes and included in the statistics. That comparison is usually the point of the exercise, so do it before you start writing anything up.

Check the holdings before you trust the chart

Open the holdings for the first rebalance and count them. If you uploaded 20 names and see 18, two tickers matched nothing and their weight went nowhere. Fix those tickers and run again — a basket that is quietly 92% invested produces a chart that looks fine and is wrong.

Step 9 — Download the data

Click Download Data in the results section. Everything comes out as CSV, one row per record, oldest first — ready to open in Excel or read into Python or R.

DownloadColumnsUse it for
Valuesdate, id, valueThe index level per day — the series you chart and compute returns from. Any benchmarks you added are included.
Current Holdingsdate, symbol, weightWhat the index holds now, weighted at today’s prices.
Holdings Historydate, symbol, weightEvery stored book — each rebalance and corporate action — stacked into one table: turnover, weight drift, what changed and when.

Files are named after the index, so NTU Group 4 — Momentum Basket - Values.csv arrives ready to hand in without renaming.

Optional — make it live

A backtest is a one-off simulation. If you want the index to keep calculating — updating every session close, from here on — open the + button and choose Create Live Index instead. It gets an id, appears under Indices, and can be read through the API, charted on a page, or published in the public directory. For coursework, a backtest is normally all you need.

What the template actually does

Four steps, and you only ever touched the first one. Worth understanding if you are writing up the methodology.

dataset_trigger
map_ids
weights
holdings
The Date + Symbol + Weight template, exactly as it loads onto the canvas.
Drag to pan, and select a node to see its configuration.
  1. The dataset trigger reads your file and fires once for each distinct date in it, at that date’s market close. Your file is the rebalance schedule — there is no separate calendar to set.
  2. Ticker matching turns each symbol into the platform’s own security id, which is what everything downstream works in. A ticker that matches nothing drops out here.
  3. The weighting step applies the weight column as written.
  4. The holdings step turns those weights into actual share counts at that date’s prices. Those share counts are what gets valued every session until the next rebalance — through splits, dividends and everything else.

When something looks wrong

What you seeWhat it usually is
Fewer holdings than rows in your fileSymbols that matched nothing — often a delisted name, a typo, or a listing without its venue suffix. Their weight is simply not held. Check them against Symbols & identifiers.
The chart starts later than your first dateThe index Start Time is after the first date in your file.
The index barely moves, or moves far too muchWeights written as percentages rather than decimals (5 instead of 0.05), or weights that do not add up to 1 for each date.
The upload is rejectedThe file is not really a CSV — a renamed .xlsx does not count — or the header row is missing.
Only some of your dates rebalancedDates not in YYYY-MM-DD form, or dates falling on a weekend or market holiday: those snap to the nearest trading session, which can merge two of your dates into one.
The backtest fails on a stepThe message names the step and the problem. If it mentions empty data, the step above produced no rows — usually the ticker matching.

Still stuck: Support in the left-hand rail, or contact@indexone.io.

Where to go next