//萧杨多空K线
操盘线:EMA(EMA(C,5),5),colorred,LINETHICK1;
Y:=操盘线>REF(操盘线,1);
IF(Y-1,操盘线,DRAWNULL),colorgreen,LINETHICK1;
主趋势线:EMA(EMA(C,10),10),colorgreen,LINETHICK1;
B:=主趋势线>REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL),colorblue,LINETHICK1;
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),colorred;
STICKLINE(AA,O,C,10,1),colorred;
STICKLINE(AA AND DD,O,C,10,0),colorred;
STICKLINE(BB,H,L,0,0),colorFFDE00;
STICKLINE(BB,O,C,10,1),colorFFDE00;
STICKLINE(BB AND DD,O,C,10,0),colorFFDE00;
STICKLINE(BB AND CC,H,L,0,1),coloryellow;
STICKLINE(BB AND CC,O,C,10,1),coloryellow;
STICKLINE(BB AND CC AND DD,O,C,10,0),coloryellow;
STICKLINE(AA AND CC1,H,L,0,0),coloryellow;
STICKLINE(AA AND CC1,O,C,10,1),coloryellow;
STICKLINE(AA AND CC1 AND DD,O,C,10,0),coloryellow;
AAA:=CONST(HHV(C,90));
爆发距离:操盘线-主趋势线,colorliblue,nodraw;
DRAWICON(CROSS(操盘线,主趋势线),主趋势线,1),colormagenta;
DRAWICON(CROSS(主趋势线,操盘线),主趋势线,2),colorblue;
高:=MA(H,20);
开:=MA(O,20);
低:=MA(L,20);
收:=MA(C,20);
DRAWKLINE(高,开,低,收);