JJ:=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);
SD:=EMA(SK,3);
SP:=EMA(SK,10);
DEF1:=EMA(C,7)-EMA(C,21);
DEF2:=EMA((0.668*REF(DEF1,1)+0.333*DEF1),1);
ACB1:=V/SUM(V,13);
ACB2:=DMA(C,ACB1);
ACB3:=(C-ACB2)/ACB2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
紫黄趋势:=CYS13>3;
ABC1:=O>REF(C,1) AND L>REF(H,1);
ABC2:=BETWEEN(C/O,1.045,0.98);
ABC3:=H/MAX(C,O)>MAX(C,O)/MIN(C,O) OR H/MAX(C,O)>1.03;
ABC4:=MIN(C,O)/L<MAX(C,O)/MIN(C,O) AND MIN(C,O)/L<1.02;
ABC5:=BETWEEN(V/REF(V,1),1.1,4);
ABC6:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
ABC7:=C=HHV(C,7);
主升擒牛:=ABC1 AND ABC2 AND ABC3 AND ABC4 AND ABC5 AND ABC6 AND ABC7 AND CYS13>5,LINETHICK2 COLORYELLOW;
STICKLINE(主升擒牛,0,8,0.1,0),COLORMAGENTA;
STICKLINE(主升擒牛,0,6,1,0),COLORMAGENTA;
DRAWICON(主升擒牛,6,9);
DRAWICON(主升擒牛,8.1,1);
DRAWTEXT(主升擒牛,5.0,'★擒牛'),COLORYELLOW;