stock

		int count = 0;
		int count2 = 0;
		int count3 =0;

		int sum[] = new int[11];
		long sum301 =0,sum302 = 0;
		for(int i=15; i < stocks.size()-31; i++){
			sum301 =0;sum302 = 0;
			for(int j=0; j<30;j++){
				sum301 += stocks.get(i+j).getClosePrice();
				sum302 += stocks.get(i+j+1).getClosePrice();
			}
			for(int j=0; j<sum.length;j++){
				sum[j] =0;
			}
			for(int j=0;j<5;j++){
				for(int k=0; k<sum.length; k++)
					sum[k] += stocks.get(i+j-(5-k)).getClosePrice();
			}
			if(sum301*1.0f > sum302*1.0002f){
				count++;
				if(sum301*0.94f/30 > stocks.get(i).getLowPrice()*1.0f){
					count2++;
					int max = 0;
					for(int buy = 1 ;buy <= 10;  buy++){
						if(max < stocks.get(i-buy).getHightPrice()){
							max=stocks.get(i-buy).getHightPrice();
						}
					}
					if(max*1.0f > (sum301*0.94f/30*1.08f)){
						count3++;
					}else{

						System.out.println(stocks.get(i).getDate() + ",buy = " + sum301*0.9f/30/100 +",sell =" + (sum301*0.9f/30*1.1f/100));
					}
				}
			}
		}
		System.out.println("count = " + count + ",count2 = " + count2 +",count3 = " + count3);
	}


股票术语:

 

外盘,内盘:

委比:(委买手数-委卖手数)/(委买手数+委卖手数)

限量:

振幅:今天的最高/今天的最低 - 1

量比: 现成交总手数/(过去5日平均每分钟成交量*当日累计开市时间(分))

换手率:某一段时间内的成交量/发行总股数*100%(国内:成交)

 

 

 

你可能感兴趣的:(stock)