{技术指标公式:火箭导弹
参数描述: N(1,30,15) M(1,50,32) }
Var1:=DMA(AMOUNT/VOL/100, VOL/CAPITAL);
Var2:=MA(WINNER(HIGH)-WINNER(Var1), N);
Var3:=MA(WINNER(LOW)-WINNER(Var1), M);
Var4:=Var3-Var2;
IF(Var4>0, Var4*10, 0), STICK, COLORRED;
IF(Var4<=0, Var4*3, 0)*(-1), STICK, COLORGREEN;
IF(REF(Var4, 2)Var4 AND Var4>0, Var4*10, 0), COLORYELLOW;
DRAWTEXT(REF(Var4,2)Var4 AND Var4>0 AND
Var4*10>1,Var4*10,'火箭');
DRAWTEXT(REF(Var4,2)Var4 AND Var4>0 AND
Var4*10<1 AND Var4*10>0.55,Var4*10,'导弹');
DRAWTEXT(REF(Var4,2)Var4 AND Var4>0 AND
Var4*10<=0.55,Var4*10,'炮弹');