UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2 0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1) REF(DOWN,2) AND UP REF(DOWN,1);
{www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
DRAWTEXT(BT,C*0.98,'短牛'),COLORFFFFFF;
TJ1:=REF(DOWN,1) REF(DOWN,2) AND UP REF(DOWN,1) AND C HHV(H,21)*0.82;
DRAWTEXT(TJ1,C*0.99,'中牛'),COLORMAGENTA;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1) REF(DOWN,2) AND UP REF(DOWN,1) AND C HRY33;
DRAWTEXT(TJ2,L*0.98,'大牛'),COLORYELLOW;
ST:=REF(UP,1) REF(UP,2) AND DOWN REF(UP,1);
DRAWTEXT(ST,H*1.02,'卖'),COLOR00FF00;
DRAWICON(BT AND TJ1 AND TJ2,L * 0.98,17);