Stock Price Lab: geometric Brownian motion and paper trading

A simulated share follows the standard Black-Scholes price model. Trade it with play money and compare the path with the statistics the model predicts.

Market model

Paper trading (start cash $100,000)

Independent check

Shocks are excluded from the check. Statistics converge only after many steps, so run a while at high speed.
The science

Model: geometric Brownian motion dS = μS dt + σS dW. The exact one-step solution St+dt = St exp((μ − σ2/2) dt + σ√dt · Z), Z~N(0,1), is used (no Euler error). One step is one trading day, dt = 1/252 year.

Predictions: log-returns are normal with mean (μ−σ2/2)dt and standard deviation σ√dt, and E[ST] = S0eμT. The check panel compares the sample mean/std of your path with these, and a 4000-path Monte Carlo of E[ST] over one year with the closed form.

Simplifications: real prices have fat tails, volatility clustering, jumps and gaps, and no model predicts the future. Volatility is constant here; the shock button is a manual jump that is excluded from the statistics. Trades fill at the current price with no spread, fees or market impact. This is an educational toy, not financial advice.