Skip to content

MonteCarloSettings.StartingEquity

property · MonteCarloSettings · cAlgo.API Since 5.10

DesktopCLICloud

Gets the starting equity used as the additive base for the simulated equity curves. When it is 0, the default, the initial balance of the backtest is used.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

public double StartingEquity {get; set;}
monteCarloSettings.StartingEquity: float

Returns double

Examples

var monteCarlo = new MonteCarloSettings(MonteCarloMethod.Bootstrap, @"C:\Temp\montecarlo-result.json") { StartingEquity = 50000 };
Print("Monte Carlo starting equity: {0}", monteCarlo.StartingEquity);
monteCarlo = MonteCarloSettings(MonteCarloMethod.Bootstrap, r"C:\Temp\montecarlo-result.json")
monteCarlo.StartingEquity = 50000
api.Print(f"Monte Carlo starting equity: {monteCarlo.StartingEquity}")