Skip to main content

Bar

Package: velox.api.layer1.simplified

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ Bar

Descriptionโ€‹

Single OHLC bar

Constructorsโ€‹

Barโ€‹

public Bar()

Barโ€‹

public Bar(double openPrice)

Barโ€‹

public Bar(Bar other)

Methodsโ€‹

addTradeโ€‹

public void addTrade(boolean isBuy, long volume, double price)

Update bar based on the new trade

startNextโ€‹

public void startNext()

Set open/close prices to previous close price, clear other fields

getOpenโ€‹

public double getOpen()

setOpenโ€‹

public void setOpen(double open)

getCloseโ€‹

public double getClose()

setCloseโ€‹

public void setClose(double close)

getHighโ€‹

public double getHigh()

setHighโ€‹

public void setHigh(double high)

getLowโ€‹

public double getLow()

setLowโ€‹

public void setLow(double low)

getVolumeBuyโ€‹

public long getVolumeBuy()

setVolumeBuyโ€‹

public void setVolumeBuy(long volumeBuy)

getVolumeSellโ€‹

public long getVolumeSell()

setVolumeSellโ€‹

public void setVolumeSell(long volumeSell)

getVolumeTotalโ€‹

public long getVolumeTotal()

getVwapBuyโ€‹

public double getVwapBuy()

getVwapSellโ€‹

public double getVwapSell()

getVwapโ€‹

public double getVwap()