simulate_montecarlo
Simulate asset price paths using geometric Brownian motion with contributions and withdrawals. Returns terminal prices, percentiles, expected value, probability of profit, and path statistics.
Instructions
GBM Monte Carlo with contributions/withdrawals. Up to 5000 paths.
Use when running a Monte Carlo simulation for asset price paths. Provide starting price, drift, volatility, time horizon, and number of simulations. Returns: simulated terminal prices, percentile distribution (5th/25th/50th/75th/95th), expected value, probability of profit, and path statistics. NOTE: Via MCP, keep simulations ≤ 1000 and years ≤ 30 for fastest response. For larger simulations (up to 5000 paths, 100 years), call the REST API directly at https://api.quantoracle.dev/v1/simulate/montecarlo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Simulation horizon in years | |
| annual_vol | No | Annual volatility (e.g. 0.20 = 20%) | |
| simulations | No | Number of Monte Carlo paths | |
| annual_return | No | Expected annual return (e.g. 0.10 = 10%) | |
| contributions | No | Periodic contribution amount (per year) | |
| initial_value | No | Starting portfolio value | |
| withdrawal_rate | No | Annual withdrawal rate as fraction of portfolio |