Inspiration
Traders can't stare at charts all day, but they can listen. While exploring the SGX FX EUR/USD data, I found something interesting: the direction of the next move is basically a coin flip (my tests only hit 46–51%), but volatility clusters strongly — how wild the last 10 minutes were correlates 0.78–0.90 with how wild the next 10 minutes will be. So instead of pretending to predict prices, I built a tool that lets you hear risk coming, even when your eyes are somewhere else.
What it does
Market Symphony turns the EUR/USD price into live music: -Rising → a heavenly choir and climbing bells. The steeper the rise, the higher the key and the faster the tempo. -Falling → a horror-film drone, eerie high notes and a heartbeat that races as the fall gets steeper. -Flat → a calm, gentle melody. -Sudden spikes get their own whoosh and boom, and a storm alarm sounds when volatility reaches 2× or 3.5× normal.
It has four modes: -Replay – listen to the biggest real storms in the SGX FX data and hear how the market moved. -Guess by Ear – a blind test: the chart is hidden, so you decide from the music alone whether the market is rising, flat or falling. It also makes the data accessible to people with visual impairments. -Survive the Storm – a trading game that feels like watching a live sports match, with a crowd, a whistle and commentary. You start with $10,000, buy or sell by following the music, and raise a stop-loss shield when a storm warning appears. After the final whistle, you get a match report, with a personalised coaching analysis from Gemini. -Live Monitor – a simulated live feed that only uses past data, just like real life. A "My position" panel turns the market into your own money: current profit and loss, how much your position could swing in the next 10 minutes, and the worst one-minute hit so far today.
How we built it
- JavaScript, HTML and CSS in a single-page web app, with no backend.
- Tone.js for the real-time music engine: moods, tempo, key changes and sound effects.
- Chart.js for the colour-coded price chart (gold for rising, red for falling, grey for calm).
- 53 days of SGX FX EUR/USD 1-minute data.
- My own detection logic: direction consistency over a short window for the mood, a past-only volatility ratio for storm warnings, and spike detection at 5× the normal step size.
- ElevenLabs for the narrator's voice, using a custom voice made with Voice Design: excited commentary in the game, calm professional alerts in Live Monitor.
- Google Gemini for the personalised post-match coaching report.
- Built solo, with AI coding assistants helping me write and debug the code.
Challenges we ran into
- Making the music match the chart exactly. Early versions switched mood a few seconds late, so I rebuilt the logic so the music always follows the colour of the newest line segment.
- Live mode can't see the future. Every judgement had to use past data only, exactly like a real market feed.
- Browser audio is fragile. Tempo changes could freeze the whole page during storms, so I redesigned the engine and separated the data from the audio clock.
- Keeping the narrator natural. I made sure only one voice speaks at a time, with a short pause between lines.
Accomplishments that we're proud of
- I built the whole project solo in 24 hours.
- You can genuinely tell a rising market from a falling one with your eyes closed.
- It takes an honest approach to finance: it doesn't sell a crystal ball, it warns you about risk.
What we learned
- Volatility is predictable; direction isn't.
- How stop-losses, position size and pips really affect your money.
- Good sound design means each sound has exactly one meaning, so listeners never get confused.
What's next for Market Symphony
- Connect a real live FX feed.
- Support several currency pairs at once, each played by a different instrument.
- Compare quotes from several banks, so the music can also flag an unusually good or bad price.
- A headphones-only mobile alert mode for traders on the move.
This is a learning and risk-awareness tool, not trading advice. Real trading has costs, news and risks the music can't hear.
Built With
- chart.js
- css3
- elevenlabs
- gemini
- html5
- javascript
- sgx-fx-data
- tone.js
- web-audio-api