MA6:EMA(C,6);
MA18:EMA(C,18);
牧:STICKLINE(MA6 MA18 AND MA6 =REF(MA6,1) AND MA18 REF(MA18,1),MA6,MA18,0.3,0),COLORRED;
马:STICKLINE(MA6 MA18 AND MA6 REF(MA6,1) AND MA18 =REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;
人:STICKLINE(MA6 MA18 AND MA6 =REF(MA6,1) AND MA18 REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;
中:STICKLINE(MA6 MA18 AND MA6 REF(MA6,1) AND MA18 =REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;
长:STICKLINE(MA6 MA18 AND MA6 REF(MA6,1) AND MA18 =REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;
线:STICKLINE(MA6 MA18 AND MA6 REF(MA6,1) AND MA18 =REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;
买进:=CROSS(MA6,MA18) AND MA18 =REF(MA18,1);
DRAWICON(买进,L*0.95,9);
卖出:=CROSS(MA18,MA6) AND MA18 REF(MA18,1);
DRAWICON(卖出,H*1.05,15);