Returns the actual number of legs for the current fill.
Visual Basic |
---|
Public Property LegCount As Long |
Number of legs represented as Long
This property gives the actual number of fill legs.
It was described in the remarks section of CQGFill that user can get common information by giving 0 as an argument to fill's properties. But that is not a separate leg and it is not included in the LegCount. So if this property returns 4, then user can get information on each leg by giving indexes from 1 to 4. At the same time he/she can get spread info by giving index = 0.
For orders on spread instruments, there will be more than one leg.
For outright orders, there will be only one leg.
See the usage of CQGFill properties in the OrderChanged event's example section.