ChartTemplateAlgoInstanceParameter.Value
property · ChartTemplateAlgoInstanceParameter · cAlgo.API Since 5.6
DesktopCLICloud
Gets the value of a parameter.
Environment behaviour
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (ChartTemplateAlgoInstanceParameters, ChartTemplateAlgoInstanceParameters.Item).
Definition
object Value {get; set;}
chartTemplateAlgoInstanceParameter.Value: object
Returns object
Examples
var template = ChartTemplates.Get("My Template");
var indicator = template?.Indicators.FirstOrDefault();
var periods = indicator?.Parameters["Periods"];
if (periods != null)
{
periods.Value = 50;
Print("Periods: {0}", periods.Value);
}
template = api.ChartTemplates.Get("My Template")
if template is not None:
for indicator in template.Indicators:
periods = indicator.Parameters["Periods"]
if periods is not None:
periods.Value = 50
api.Print(f"Periods: {periods.Value}")