Bar Class
[DataContract()]
public class Bar : DataObject
This language is not supported or no code example is available.
[DataContract()]
public ref class Bar : public DataObject^
This language is not supported or no code example is available.
| Name | Description | |
|---|---|---|
|
Bar() | Initializes a new instance of the Bar class. |
|
Bar(Bar) | Initializes a new instance of the Bar class. |
|
Bar(DateTime, DateTime, int, BarType, long, double, double, double, double, long, long) | |
|
Bar(DateTime, DateTime, int, int, BarType, long, double, double, double, double, long, long) |
| Name | Description | |
|---|---|---|
|
Average | Gets average price of the bar, (Open + High + Low + Close) / 4 |
|
Close | Gets or sets the close. |
|
CloseDateTime | Gets the close date time. |
|
DateTime | Gets or sets the date time. (inherited from Event). |
|
Duration | Gets the duration. |
|
Fields | |
|
High | Gets or sets the high. |
|
InstrumentId | Gets or sets the instrument identifier. |
|
Item(int) | |
|
Item(string) | Gets or sets the Double with the specified name. |
|
Low | Gets or sets the low. |
|
Median | Gets median bar price, (High + Low) / 2. |
|
Open | Gets or sets the open. |
|
OpenDateTime | Gets the open date time. |
|
OpenInt | Gets or sets the open int. |
|
ProviderId | |
|
Range | Gets the range. |
|
Size | Gets or sets the size. |
|
Status | |
|
Type | Gets or sets the type. |
|
TypeId | Gets the type identifier. |
|
Typical | Gets typical bar price, (High + Low + Close) / 3. |
|
Volume | Gets or sets the volume. |
|
Weighted | Gets weighted bar price, (High + Low + 2 * Close) / 4. |
| Name | Description | |
|---|---|---|
|
AddField(string, byte) | Adds the field. |
|
Clone() | |
|
ToJSON() | Returns a JSON formatted String that represents this instance. (inherited from Event). |
|
ToString() | Returns a String that represents this instance. |
Bar holds
- Date (DateTime at the end of bar interval)
- High price
- Low price
- Open price
- Close price
- Bar traded volume
- Open interest
- Date (DateTime at the end of bar interval)
- High price
- Low price
- Open price
- Close price
- Bar traded volume
- Open interest