LSTM Gold from Scratch
An LSTM written in pure NumPy that forecasts Indonesian gold prices from live data.
- Status
- Finished and delivered. It does what it set out to do and no more work is planned.
- Kind
- Machine Learning
- Started
- Jun 2025
- Updated
- Apr 2026
About it
The problem
Frameworks make LSTMs easy to use and hide how a cell, a layer and backpropagation through time actually work.
The approach
I implemented the LSTM cell, layer and network myself in NumPy, with a data fetcher for the Pegadaian gold API, preprocessing with technical indicators, and a configurable YAML pipeline.
- Single-step and multi-step forecasting.
- Training, prediction and technical-analysis plots.
- Regression, trading and time-series metrics, and saving and loading of the full pipeline.
The result
A learning project in the same spirit as Neural Network from Scratch, applied to gold prices.
What it does4
Pure NumPy LSTM
Live Data
Multiple Forecast Modes
Persistence
More work

Rone Arena API
A public FastAPI for Mobile Legends hero data, analytics and player tools, with a web playground and SDKs.

BeliMadu.com
An online honey shop on Next.js 16 and Cloudflare Workers, with a WhatsApp-checkout cart and a Vitest suite.

ridwaanhall.com
This site: a portfolio and blog on Next.js 16 with an admin, Markdown versions of every page and a CV generated from the About page.
Comments0
Signed-in readers can comment.