Package de.gsi.financial.samples.dos
Class PriceVolumeContainer
- java.lang.Object
-
- de.gsi.financial.samples.dos.PriceVolumeContainer
-
public class PriceVolumeContainer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PriceVolumeContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPriceVolume(double price, double volumeDown, double volumeUp)Add volume up and down to specific pricevoidclear()Reset PriceVolume instancejava.util.Collection<PriceVolume>getCompletedPriceVolume()java.util.TreeMap<java.lang.Double,PriceVolume>getCompletedPriceVolumeTreeMap()doublegetPocPrice()doublegetPocVolume()PriceVolumegetPriceVolumeBy(double price)
-
-
-
Method Detail
-
addPriceVolume
public void addPriceVolume(double price, double volumeDown, double volumeUp)Add volume up and down to specific price- Parameters:
price- valuevolumeDown- tick down volumevolumeUp- tick up volume
-
getPriceVolumeBy
public PriceVolume getPriceVolumeBy(double price)
- Parameters:
price- return DO price volume by required price level- Returns:
- provides volume information for specific price
-
getCompletedPriceVolumeTreeMap
public java.util.TreeMap<java.lang.Double,PriceVolume> getCompletedPriceVolumeTreeMap()
- Returns:
- provides price volume tree map
-
getCompletedPriceVolume
public java.util.Collection<PriceVolume> getCompletedPriceVolume()
- Returns:
- provides price volume collection for actual bar
-
clear
public void clear()
Reset PriceVolume instance
-
getPocPrice
public double getPocPrice()
- Returns:
- provides calculated POC price
-
getPocVolume
public double getPocVolume()
- Returns:
- provides total volume of POS price
-
-