Table of Contents

Class Bar

Namespace
ViiSync.AccountApi
Assembly
ViiSync.AccountApi.dll

An OHLC bar (MT5 Bar). ViiSync stores M1 bars; other timeframes are aggregated client-side exactly as the MT5 terminal aggregates them.

public sealed class Bar
Inheritance
Bar
Inherited Members

Properties

ClosePrice

Close price.

HighPrice

High price.

LowPrice

Low price.

OpenPrice

Open price.

Spread

Spread of the bar in points. ViiSync bars carry no spread, so this is always 0.

TickVolume

Number of ticks in the bar (MT5 tick volume). An engine that predates the tick column sends only Volume, which then fills both.

Time

Bar open time (UTC).

Volume

Real (exchange) volume; 0 for OTC instruments.

Methods

ToString()

Compact OHLCV text, invariant culture.