N:=15;M:=32;
cm:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
x1:=MA(WINNER(h)-WINNER(cm),n);
x2:=MA(WINNER(l)-WINNER(cm),m);
run:=(x2-x1);
bv1:if(run>0,run*10,0),colorred,stick;
bv2:(if(run<=0,(run)*3,0)*-1),colorgreen,stick;
bv3:if(ref(run,2)run and run>0,run*10,0),coloryellow;
DRAWTEXT(ref(run,2)run and run>0 and run*10>1,run*10,'火箭');
DRAWTEXT(ref(run,2)run and run>0 and run*10<1 and
run*10>0.55,run*10,'导弹');
bv4:DRAWTEXT(ref(run,2)run and run>0 and
run*10<=0.55,run*10,'炮弹');