tutorials-kr icon indicating copy to clipboard operation
tutorials-kr copied to clipboard

MA值计算有误

Open WTree opened this issue 7 years ago • 1 comments

对于MA30 计算方法应该是: ` if(datas.size()-i>=30){

            float temp=0;
            for(int index=i;index<i+30;index++){
                temp+=datas.get(index).getClosePrice();
            }
            point.MA30Price=temp/30;

        }else{
            point.MA30Price=0;
        }`

WTree avatar May 25 '18 06:05 WTree