# How to use custom code to build an index

## Step 1 - Click on "Index Builder"

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FNCARgHeFXKyW7rdD963K%2FScreen%20Shot%202023-04-04%20at%2020.55.53.png?alt=media&#x26;token=e00bd5bb-92eb-4ab9-b0a8-e2f79587f733" alt=""><figcaption></figcaption></figure>

Navigate to ["Index Builder"](https://indexone.io/indexbuilder) to access the indexing platform.

## Step 2 - Click on "Use Custom Universe"

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FIbV6K6wbtdQ2xmzXG0Yq%2FScreen%20Shot%202023-04-12%20at%2019.25.48.png?alt=media&#x26;token=f73316f5-fadc-46a3-ba1e-abf66f73796d" alt=""><figcaption></figcaption></figure>

Click on "Use Custom Universe" to view all options on how you can upload your custom universe.

## Step 3 - Click on "Custom Code"

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FXWMPXuI7AU5HmQU4TzGm%2FScreen%20Shot%202023-04-12%20at%2019.29.34.png?alt=media&#x26;token=a7d99a2d-6bc5-4ac5-ad61-2a4a5c57e9aa" alt=""><figcaption></figcaption></figure>

Click on "Custom Code" and test your code.

**If you have a file you would like to upload instead...**\
\
Click on "Upload Universe" and select the file type that you would like to upload.

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FPxIp1d3RCK4wLrVNHmP0%2FScreen%20Shot%202023-04-26%20at%2014.05.18.png?alt=media&#x26;token=ced48d20-c328-46ba-b380-2c152e8fe518" alt=""><figcaption></figcaption></figure>

## Step 4 - Test your code

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FsV5jfkD4nfSX1k2nLpks%2FScreen%20Shot%202023-04-12%20at%2019.32.43.png?alt=media&#x26;token=75f78c84-7050-4c32-a527-7013dc1c9ae8" alt=""><figcaption></figcaption></figure>

Test and save your code. Once you're happy with it, create the bactest of your custom index.

## Step 5 - Click "Create Backtest"

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FKAlfiVIoCvNi5wPP0jdO%2FScreen%20Shot%202023-04-12%20at%2019.34.32.png?alt=media&#x26;token=599c8f85-aec4-4563-97d9-8c90aaf03cbb" alt=""><figcaption></figcaption></figure>

Click "create backtest" to load a backtest of your index. A backtest usually takes between 1-3 minutes, depending on the number of data points being processed by the platform.

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FYYzDHKluLfR7ydH3YLsK%2FScreen%20Shot%202023-04-05%20at%2016.42.27.png?alt=media&#x26;token=eefe2e8c-91ff-410e-9af1-5be3b96aa75d" alt=""><figcaption></figcaption></figure>

Once the backtest has loaded, you can view its index performance benchmarked against SPY (SPDR S\&P 500 ETF Trust) and VT (Vanguard Total World Stock Index Fund ETF), as well as other metrics such as rolling volatility, drawdown, total turnover and rebalance statistics.

## Step 6 - Launch your new index

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FE8ygo2m59Rjpf1vPHqRv%2FScreen%20Shot%202023-04-12%20at%2019.35.50.png?alt=media&#x26;token=3d3a1cb3-72da-4032-a3db-ae4d56f939de" alt=""><figcaption></figcaption></figure>

Navigate to the "Go Live" arrows on the top left corner to name your new index, insert a description of the index, set calculation frequency, timezones, start/end time and visibility of the index (Public, Team Visible or Private).&#x20;

Once you've filled out the details of your index, click "Launch."

<figure><img src="https://262590057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbMMgayZaG49vP7JGYOuY%2Fuploads%2FeZk1pjzIbz9ECeHlnwRc%2FScreen%20Shot%202023-04-12%20at%2019.37.13.png?alt=media&#x26;token=8847f41c-74ea-4715-b556-d50a4b0b76b7" alt=""><figcaption></figcaption></figure>

It's as easy as that. Find out how you can build your own index on Index One's [index builder](https://indexone.io/indexbuilder).
