VARB:=((VARA-EMA(CLOSE,5))< 0);
VARC:=((VARA-EMA(CLOSE,5))>0);
VARD:=BARSLAST(VARB);
VARE:=BARSLAST(VARC);
VARF:=IF((VARE>0),(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0);
VAR0:=SUM(VARF,0);
VAR1:=IF((VARD>0),(0- 2),0);
VAR2:=IF((VARE>0),SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)* 100,VARE),0);
VAR3:=VAR2/VARE;
VAR5:=EMA(EMA(EMA(CLOSE,3),3),3);
多头:((VAR5-REF(VAR5,1))+VAR5),COLOR0000FF,LINETHICK2;
空头:MA(多头,15),COLORFF49FF;
IF(多头>REF(多头,1),多头,DRAWNULL),COLORFFFFCC,LINETHICK4,POINTDOT;
IF(空头>REF(空头,1),空头,DRAWNULL),COLOR00FFFF,LINETHICK4,POINTDOT;
STICKLINE((多头>空头),空头,多头,0,0),COLOR00FFFF;
STICKLINE((空头>多头),多头,空头,0,0),COLORFF0000;
DRAWTEXT(CROSS(空头,多头),多头*1.01,'↓卖'),COLOR00FF00;
DRAWTEXT_FIX(1,0.60,0.75,0,'抓牛 '),COLORYELLOW;
DRAWTEXT(CROSS(多头,空头),空头*0.99,'↑买'),COLOR0000FF;
DRAWICON(((REF(VAR1,1)=(0- 2)) AND (VAR1=0)),LOW,1);
DRAWICON(((REF(VARE,1)>0) AND (VARE=0)),HIGH,2);