主趋势线:Ema(ema(C,10),10),COLORWHITE,LINETHICK3;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)COLORYELLOW,LINETHICK3;
AA:=EMA(C,5) > EMA(C,20);
BB:=EMA(C,5) < EMA(C,20);
CC:= EMA(C,5) > EMA(C,10);
CC1:=EMA(C,5) < EMA(C,10);
DD:=CLOSE<OPEN;
STICKLINE(AA,H,L,0,0),COLORWHITE;
STICKLINE(AA,O,C,3,1),COLORWHITE;
STICKLINE(AA AND DD,O,C,3,0),COLORWHITE;
STICKLINE(BB,H,L,0,0),COLORCYAN;
STICKLINE(BB,O,C,3,1),COLORCYAN;
STICKLINE(BB AND DD,O,C,3,0),COLORCYAN;
STICKLINE(BB AND CC,H,L,0,1),COLORRED;
STICKLINE(BB AND CC,O,C,3,1),COLORRED;
STICKLINE(BB AND CC AND DD,O,C,3,0),COLORRED;
STICKLINE(AA AND CC1,H,L,0,0),COLORRED;
STICKLINE(AA AND CC1,O,C,3,1),COLORRED;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORRED;
AAA:=CONST(HHV(C,90));
DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色线做多,蓝色线做空。 '),COLORBLUE;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;