A sleek, open-source Forex lot size + Crypto position sizing + Monte Carlo equity simulator built with Flask — by Nexus Ledger.

-
Forex Mode (Lots)
- Account size + Risk % + SL (pips) + pip value → standard lot size
- Auto-calculates mini and micro lot equivalents
- Optional Take Profit (pips) for R:R
-
Crypto Mode (USD)
- Account size + Risk % + Entry + Stop → quantity and position value
- Optional Take Profit (price) for R:R
-
🧠 Risk Brain Panel
- Shows real edge metrics:
- Break-even winrate
- Expectancy per trade (R & $)
- Turns your R:R + winrate into actionable trading edge insights
- Shows real edge metrics:
-
📈 Equity Curve Simulator (Monte Carlo)
- Fully configurable:
- Start equity
- Win probability (winrate)
- Risk/Reward (R:R)
- Risk per trade %
- Number of trades
- Number of simulation paths (“lines”)
- Drawdown ruin threshold (e.g., 50%)
- Compounding ON/OFF
- Output stats:
- Median final equity
- 10% worst / 10% best outcomes
- Median & worst max drawdown
- Probability of ruin (hitting threshold)
- Fully configurable:
-
🖥️ Modern UX
- Clean, responsive UI with Nexus Ledger branding
- Form remembers previous inputs (no re-typing)
- Results grouped into:
- Position Sizing
- Risk Brain
- Equity Curve · Monte Carlo
Website: https://www.nexusledger.org
LinkedIn: https://linkedin.com/company/nexusledger1
Twitter/X: https://x.com/nexusledger1
YouTube: https://www.youtube.com/@nexusledger1
Clone the repo and start the Flask app:
# 1. Create a virtual environment
python -m venv .venv
# 2. Activate it
# macOS / Linux:
source .venv/bin/activate
# Windows (PowerShell):
# .venv\Scripts\activate
# 3. Install dependencies
pip install flask
# 4. Run the app
python app.py
# The app will be live at:
# http://127.0.0.1:5000