**This AI Learned from 12 Billion Candles. Can It Trade Gold? — Transcript & Summary | SozAI**
Source: https://sozai.app/transcript/ai-learned-12-billion-candles-trade-gold/

A CodeTrading video testing Kronos, an academic transformer model trained on 12 billion candles, to forecast gold prices across five timeframes over 18 months of out-of-sample data.

## Key Takeaways

- Kronos treats candlestick charts as a language, predicting future candles much as ChatGPT predicts the next words.
- A single forecast proves nothing; statistical validation over many forecasts and timeframes is required to judge any edge.
- The test uses a strict out-of-sample holdout of 18 months to avoid tuning on test data.
- The model is free and accessible on consumer hardware, making it easy for retail traders to experiment.

## What the video covers

- The video introduces Kronos, a ChatGPT-style foundation model trained only on candlestick (OHLCV) data, released by researchers from Singu University.
- Kronos was trained on about 12 billion candles from 45 exchanges and is free, with code on GitHub and models on Hugging Face.
- Available model sizes include Kronos mini, small, and base; Kronos large is not public.
- The smaller free models run on a normal gaming graphics card, and the research paper is available on arXiv.
- Kronos has two parts: a tokenizer that converts each candle into a short discrete code, and a transformer that predicts the next candle codes autoregressively.
- Input is typically the last N candles (here 90) as an OHLCV table; output is a forecast table for the next 10-20 candles.
- The experiment uses six years (2020-2026) of one-minute gold data, aggregated into 5-minute, 30-minute, 1-hour, 4-hour, and daily charts.
- Kronos-mini (about 100 million parameters) is used out of the box without retraining, and the last 18 months are held out as a test set.
- The presenter stresses that single forecasts are meaningless and thousands of forecasts are needed to assess statistical edge.
- The headline claim of almost 40% gold trading returns in 18 months is presented as the motivating hook for the test.

## Chapters

1. 00:00 Introduction: AI trained on candlesticks
2. 00:59 Background on Kronos and its research origin
3. 02:50 Model variants and availability
4. 03:20 How Kronos learns the language of candles
5. 05:04 Architecture: tokenizer and transformer
6. 06:26 Model inputs and outputs
7. 09:00 Why thousands of forecasts are needed
8. 10:39 Gold experiment setup and out-of-sample testing

Answers

## Questions about this video

What is Kronos and who created it?

Kronos is a transformer-based model trained only on candlestick data, released by researchers from Singu University as an academic project. It is free, with code on GitHub and models on Hugging Face.

How does Kronos turn price charts into predictions?

A tokenizer converts each candle into a short discrete code, and a transformer reads the sequence of codes and predicts the next candle. The predicted candle is appended and the process repeats to draw a multi-candle forecast.

Why does the presenter say one forecast is not enough to judge the model?

A single forecast can easily be wrong, as shown when Kronos predicted a fall that did not happen. Thousands of forecasts across timeframes and an out-of-sample period are needed to see whether the model has a statistical edge.

## Full Transcript — Download SRT & Markdown

00:00

Speaker A

This AI made almost 40% trading gold in 18 months. Imagine a chat GPT model built only for candles.

00:15

Speaker A

It reads a price chart and predicts the most likely next candles.

00:29

Speaker A

And that's Kronos.

00:46

Speaker A

It was released by researchers from Singu University.

00:59

Speaker A

So this is an academic research project.

01:14

Speaker A

They trained it on 12 billion candles from 45 exchanges, and it's free.

01:29

Speaker A

The code is available on GitHub, and the models are on Hugging Face.

01:44

Speaker A

And all the details related to the architecture of the model and how they pre-trained it, on which data, etc., is also available on the UH GitHub repository with the available models.

01:58

Speaker A

So we can see that we have the Kronos mini, the Kronos small, and the Kronos base, while the Kronos large is not published for us, for the public users.

02:13

Speaker A

But that's okay.

02:26

Speaker A

The free versions are big enough for our test, and they run on a normal gaming graphics card.

02:40

Speaker A

The authors also published their study on Arxiv.

02:48

Speaker A

So if you are interested in the research part, you can download the full paper as a PDF file.

03:03

Speaker A

So today I'm putting Kronos to the test on gold.

03:20

Speaker A

I ran almost 1,000, or 100,000 forecasts, with five time frames and six years of gold data to see what it can really do.

03:36

Speaker A

ChatGPT learned the language of text.

03:44

Speaker A

Kronos learned the language of candles.

04:01

Speaker A

Each candle is like a word, or it's treated like a word.

04:08

Speaker A

A chart is like a sentence.

04:21

Speaker A

And just like ChatGPT tries to write the next words in a sequence of words, or in a sentence, Kronos writes, or estimates, the most probable next candles.

04:32

Speaker A

Kronos has two parts.

04:49

Speaker A

The first one is a translator.

05:01

Speaker A

It turns each candle into a short code, like a word.

05:18

Speaker A

First the rough shape of the candle, then the details.

05:35

Speaker A

Part two is the brain.

05:50

Speaker A

It's a transformer, the same kind of network, or neural network architecture, as ChatGPT.

05:56

Speaker A

It reads the chain of candle codes and guesses the next one.

06:14

Speaker A

Then it adds that candle to the stack of available candles and tries to guess again for the future candle.

06:27

Speaker A

So candle by candle, it draws the future, or it tries to estimate at least the future.

06:39

Speaker A

So what goes in and what comes out?

06:54

Speaker A

What do you give the model?

07:12

Speaker A

We usually give it a table of past candles with open, high, low, close, and the volume columns.

07:28

Speaker A

One row per candle.

07:45

Speaker A

For example, in this experiment today, I gave it the last 90 candles, or the last 90 rows, every time.

08:02

Speaker A

I needed an estimation for the next future 10 candles.

08:20

Speaker A

You also tell it the times of the future candles you want to do the estimation for.

08:38

Speaker A

And what comes out?

08:44

Speaker A

The same kind of table for the future candles.

09:00

Speaker A

You get the open, high, low, close, and the volume for the next UH 10 candles, or 15, or 20 candles, for example, depending on your parameterization.

09:15

Speaker A

Now, here's the UH real one.

09:33

Speaker A

Kronos said, for example, the gold would fall in one of the estimations I tried, and it actually went up.

09:52

Speaker A

One forecast means nothing.

10:12

Speaker A

This is why we will need thousands of forecasts to check if statistically this model provides an edge in our trading systems.

10:27

Speaker A

Now, for gold, I used six years of one-minute gold prices from 2020 to 2026.

10:41

Speaker A

That's around 2.1 million rows.

10:56

Speaker A

From them, I built five charts: 5 minutes, 30 minutes, 1 hour, 4 hours, and the daily.

11:09

Speaker A

So, different time frames.

11:23

Speaker A

I used Kronos-mini, which is about 100 million parameters, with no retraining.

11:39

Speaker A

I used it as is, out of the box.

11:54

Speaker A

And I locked away the last 18 months as a test period.

12:01

Speaker A

So we don't touch this data.

12:05

Speaker A

I didn't tune anything on it.

12:17

Speaker A

This is our out-of-sample data, just to be able to validate the model.

12:33

Speaker A

The trading rule is simple.

12:40

Speaker A

I used the model in a trading system, somehow, to be able to backtest it.

Topics: Kronos gold trading candlestick AI transformer time series forecasting algorithmic trading backtesting Hugging Face financial foundation model XAUUSD

Study this video

- [Flashcards from this video](https://sozai.app/tools/ai-flashcard-generator/?from=transcript&id=87739)
- [Quiz on this video](https://sozai.app/tools/quiz-generator/?from=transcript&id=87739)

Free, made by AI from this transcript. No signup.


---
This is the markdown twin of https://sozai.app/transcript/ai-learned-12-billion-candles-trade-gold/ — the same content, without the markup.
Published by SozAI (https://sozai.app). Reuse and quotation are allowed with attribution and a link back.
Machine-readable index: https://sozai.app/llms.txt · data API: https://sozai.app/api/
