UpOrDown is a minimalist random trading simulator built to test one simple thesis:
can you be profitable purely by chance with good risk management?
Every trade is a coin flip — results are random, the chart updates instantly, and your survival depends only on position sizing and payout structure.
🛠️ Built Using kodeWeave
Lightweight, fast, and designed for accessibility across devices. No build step required.
🌍 Try it live: UpOrDown Simulator
No installation required. Fully browser-based!
- Each trade resolves instantly as Win or Loss (default 50/50).
- Chart updates after each click to visually reflect the result.
- No data feed, no indicators — chance only.
- Wager type: Fixed Dollar or % of Balance.
- Adjustable payout % — e.g., 80% = +$80 profit on $100 wager.
- Start balance configurable with one click.
- Win rate, streaks, best/worst trade.
- Net P&L, average win/loss, total trades.
- Export/Import backups in
.json
format.
- B → Up (Buy)
- S → Down (Sell)
- O → Open Settings
Coming soon to UpOrDown:
- 📈 Equity Curve – Track bankroll growth over time
- 🎯 Presets – House edge, casino-style odds, “teaser edge” modes
- 🔑 Seeded Randomness – Reproducible simulation runs
- 🏆 Leaderboard – Compare expectancy across different payout structures and wagers
# Clone the repository
git clone https://github.com/michaelsboost/UpOrDown.git
cd UpOrDown
# Open index.html in a browser
- Tailwind + lightweight CSS
- Vanilla JS – no frameworks, just pure JavaScript
- kodeWeave – Used for prototyping/building
UpOrDown is open for contribution!
- Fork the repository
- Create a new branch: (
feature/add-equity-curve
) - Submit a Pull Request
Contributors welcome!
Licensed under the MIT License — free to use, remix, and distribute.
Developed by: Michael Schwartz
Maintained by: The open-source community
If UpOrDown was helpful for you, consider showing your appreciation in the following ways:
- 🎨 Check out my Graphic Design Course: https://michaelsboost.com/graphicdesign
- 🛒 Register as a customer on my store: https://michaelsboost.com/store
- ☕ Buy me a coffee: http://ko-fi.com/michaelsboost
- 👕 Purchase a T-Shirt: https://michaelsboost.com/gear
- 🖼️ Buy my art prints: https://deviantart.com/michaelsboost/prints
- 💰 Donate via PayPal: https://michaelsboost.com/donate
- 💵 Donate via Cash App: https://cash.me/$michaelsboost
Your support is greatly appreciated and helps fund this & future projects! 🚀