SmartQuant Algo Trading Framework

Bar Members

The Bar type exposes the following members.


  Name Description
Public method Bar(DateTime, DateTime, Int32, BarType, Int64, Double, Double, Double, Double, Int64, Int64)
Initializes a new instance of the Bar class.
Public method Bar()()()()
Initializes a new instance of the Bar class.
Public method Bar(Bar)
Initializes a new instance of the Bar class.


  Name Description
Public method Static member AddField
Adds the field.
Public method Clone
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToJSON
Returns a JSON formatted String that represents this instance.
(Inherited from Event.)
Public method ToString
Returns a String that represents this instance.


  Name Description
Public property Average
Gets average price of the bar, (Open + High + Low + Close) / 4
Public property Close
Gets or sets the close.
Public property CloseDateTime
Gets the close date time.
Public property DateTime
Gets or sets the date time.
(Inherited from Event.)
Public property Duration
Gets the duration.
Public property Fields
Public property High
Gets or sets the high.
Public property InstrumentId
Gets or sets the instrument identifier.
Public property Item[([( Int32])])
Public property Item[([( String])])
Gets or sets the Double with the specified name.
Public property Low
Gets or sets the low.
Public property Median
Gets median bar price, (High + Low) / 2.
Public property Open
Gets or sets the open.
Public property OpenDateTime
Gets the open date time.
Public property OpenInt
Gets or sets the open int.
Public property ProviderId
Public property Range
Gets the range.
Public property Size
Gets or sets the size.
Public property Status
Public property Type
Gets or sets the type.
Public property TypeId
Gets the type identifier.
Public property Typical
Gets typical bar price, (High + Low + Close) / 3.
Public property Volume
Gets or sets the volume.
Public property Weighted
Gets weighted bar price, (High + Low + 2 * Close) / 4.