Package chinastock.datatype

Examples of chinastock.datatype.Candle


        int vol=ByteBuffer.wrap(intBuffer).order(ByteOrder.LITTLE_ENDIAN).getInt();
  
        raf.read(intBuffer);
        int reserve=ByteBuffer.wrap(intBuffer).order(ByteOrder.LITTLE_ENDIAN).getInt();
       
        Candle c=new Candle(new MyDate(year,month,day),sopen,
            sclose,shigh,slow,vol    );
    //    c.setCode(code);
        list.add(0,c);
       
      }
     
      for(int i=0;i<list.size()-1;i++)
      {
        Candle c=list.get(i),next=list.get(i+1);
        double rise=(c.close.doubleValue()-next.close.doubleValue())/next.close.doubleValue();
        rise=rise*100;
        String s=Double.toString(rise);
        int index=s.indexOf(".");
        if(index!=-1)
View Full Code Here

TOP

Related Classes of chinastock.datatype.Candle

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.