Skip to content

OptimizationDateOnlyParameter.Max

property · OptimizationDateOnlyParameter · cAlgo.API Since 5.9

DesktopCLICloud

Gets the inclusive maximum of the range.

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 DateOnly Max {get;}
optimizationDateOnlyParameter.Max: DateOnly

Returns DateOnly

Examples

var parameter = new OptimizationDateOnlyParameter("TradingStartDate", new DateOnly(2025, 1, 1), new DateOnly(2025, 3, 1), TimeSpan.FromDays(7));
Print("Range ends at {0}", parameter.Max);
from System import DateOnly, TimeSpan
parameter = OptimizationDateOnlyParameter("TradingStartDate", DateOnly(2025, 1, 1), DateOnly(2025, 3, 1), TimeSpan.FromDays(7))
api.Print(f"Range ends at {parameter.Max}")