H1:EMA(EMA(CLOSE,2),5),coloryellow,linethick2;
H2:EMA(H1,15),coloryellow,linethick2;
H3:IF(H1 REF(H1,1),H1,DRAWNULL),colormagenta,linethick2;
H4:IF(H1 REF(H1,1),H1,DRAWNULL),colorgreen,LINETHICK2;
H5:IF(H2 REF(H2,1),H2,DRAWNULL),colorred,LINETHICK2;
H6:IF(H2 REF(H2,1),H2,DRAWNULL),colorgreen,LINETHICK2;
DRAWICON(CROSS(H1,H2),H1*0.97,1);
DRAWICON(CROSS(H2,H1),H2*1.03,2);
STICKLINE(H1 H2,H1,H2,1,1),colorred;
STICKLINE(H1 H2,H1,H2,1,1),colorblue;
买线:=EMA(CLOSE,2);
卖线:=EMA(买线,4);
STICKLINE(买线 =卖线 AND C O,C,O,9,0),colorred;
STICKLINE(买线 =卖线 AND C O,C,O,9,1),colorred;
STICKLINE(买线 =卖线,H,MAX(C,O),0,0),colorred;
STICKLINE(买线 =卖线,L,MIN(C,O),0,0),colorred;
STICKLINE(买线 卖线 AND C O,C,O,9,0),colorgreen;
STICKLINE(买线 卖线 AND C O,C,O,9,1),colorgreen;
STICKLINE(买线 卖线,H,MAX(C,O),0,0),colorgreen;
STICKLINE(买线 卖线,L,MIN(C,O),0,0),colorgreen;