Returns the currently trading session number.
Read-only property
Visual Basic |
---|
Public Property SessionNumber As Long |
Session number represented as Long
This is a dynamic property of an instrument.
If there is no session today, then the value is "-1".
If the current moment is between sessions, then the value is "-2".
To access the Instrument properties, see the example section of the InstrumentSubscribed event.