Package com.quantcomponents.marketdata

Examples of com.quantcomponents.marketdata.IMutableOHLCTimeSeries


    StockDbCacheInfo cacheItem = cacheById.get(hdr.id);
    if (cacheItem != null)  {
      stockDatabase = cacheItem.stockDatabase;
    } else {
      stockDatabase = new StockDatabase(hdr.contract, hdr.dataType, hdr.barSize, hdr.includeAfterHours, hdr.timeZone);
      IMutableOHLCTimeSeries ohlcTimeSeries = stockDatabase.getOHLCTimeSeries();
      for (IOHLCPoint ohlc : ohlcPointDao.find(hdr.id)) {
        ohlcTimeSeries.addLast(ohlc);
      }
      IMutableTickTimeSeries tickTimeSeries = stockDatabase.getTickTimeSeries();
      for (ITickPoint tick : tickPointDao.find(hdr.id)) {
        tickTimeSeries.addLast(tick);
      }
View Full Code Here

TOP

Related Classes of com.quantcomponents.marketdata.IMutableOHLCTimeSeries

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.