QuantConnect Lean Algorithmic Trading Engine
QuantConnect.Algorithm Namespace > QCAlgorithm Class > CalculateOrderQuantity Method : CalculateOrderQuantity(Symbol,Double) Method
Security object we're asking for
Target percentag holdings
CalculateOrderQuantity(Symbol,Double) Method
Calculate the order quantity to achieve target-percent holdings.
Syntax
public decimal CalculateOrderQuantity( 
   Symbol symbol,
   double target
)

Parameters

symbol
Security object we're asking for
target
Target percentag holdings

Return Value

Order quantity to achieve this percentage
Requirements

Target Platforms: Microsoft .NET 4.5 or Mono 3.10 or above.

See Also