Skip to content

OptimizationPass.TotalTrades

property · OptimizationPass · cAlgo.API Since 5.9

DesktopCLICloud

Gets the total number of trades in the pass.

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

int TotalTrades {get;}
optimizationPass.TotalTrades: int

Returns int

Examples

Optimization.PassCompleted += args => Print("Pass {0} trades: {1}", args.Pass.Id, args.Pass.TotalTrades);
api.Optimization.PassCompleted += lambda args: api.Print(f"Pass {args.Pass.Id} trades: {args.Pass.TotalTrades}")