主力集散
input:p1(5),p2(10),p3(20),p4(60),p5(120);
sh0:=(ORDER(2)-ORDER(1))/(ORDER(1)+ORDER(2));
sh1:=sum(ORDER(2)-ORDER(1),p1)/sum(ORDER(1)+ORDER(2),p1);
sh2:=sum(ORDER(2)-ORDER(1),p2)/sum(ORDER(1)+ORDER(2),p2);
sh3:=sum(ORDER(2)-ORDER(1),p3)/sum(ORDER(1)+ORDER(2),p3);
sh4:=sum(ORDER(2)-ORDER(1),p4)/sum(ORDER(1)+ORDER(2),p4);
sh5:=sum(ORDER(2)-ORDER(1),p5)/sum(ORDER(1)+ORDER(2),p5);
sh1>sh2 and sh2>sh3 and sh3>sh4 and sh4>sh5;