BacktestingSettings.PreciseConversion
property · BacktestingSettings · cAlgo.API Since 5.10
DesktopCLICloud
Gets or sets a value indicating whether historical data for additional symbols is downloaded to convert profit and margin into the account deposit currency precisely. When true, real historical exchange rates of the additional symbols are used; when false, the default, approximated rates are used. Enabling it can increase the run time and the amount of downloaded data.
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 bool PreciseConversion {get; set;}
backtestingSettings.PreciseConversion: bool
Returns bool
Examples
var settings = new BacktestingSettings { PreciseConversion = true };
Print("Precise conversion enabled: {0}", settings.PreciseConversion);
settings = BacktestingSettings()
settings.PreciseConversion = True
api.Print(f"Precise conversion enabled: {settings.PreciseConversion}")