Skip to content

MonteCarloSettings.OutputFilePath

property · MonteCarloSettings · cAlgo.API Since 5.10

DesktopCLICloud

Gets the destination file path for the Monte Carlo result JSON. The file uses the same snapshot format the desktop Monte Carlo tab saves, so it can be loaded back by the desktop application.

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 string OutputFilePath {get;}
monteCarloSettings.OutputFilePath: str

Returns string

Examples

var monteCarlo = new MonteCarloSettings(MonteCarloMethod.Reshuffle, @"C:\Temp\montecarlo-result.json");
Print("Monte Carlo result will be saved to {0}", monteCarlo.OutputFilePath);
monteCarlo = MonteCarloSettings(MonteCarloMethod.Reshuffle, r"C:\Temp\montecarlo-result.json")
api.Print(f"Monte Carlo result will be saved to {monteCarlo.OutputFilePath}")