买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE1(买线>=卖线,LOW,MIN(O,C),0.1,1),COLORRED;
STICKLINE1(买线>=卖线,MAX(O,C),HIGH,0.1,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),COLORRED;
STICKLINE(买线<卖线,CLOSE,OPEN,8,0),RGB(128,128,255);
STICKLINE1(买线<卖线,LOW,HIGH,0.1,1),COLORBLUE;
STICKLINE(CROSS(买线,卖线) OR CROSS(卖线,买线),OPEN,CLOSE,6,0),COLORMAGENTA;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),COLORBLACK,LINETHICK4;
界: MA(CLOSE,27),LINETHICK3,COLORBLACK;
DRAWCOLORLINE(指导线>界,界,COLORRED,RGB(64,0,64)),LINETHICK5;
DRAWLINE3(指导线>界&&指导线>REF(指导线,1),指导线,0,1,REF(指导线,1),1,0),COLORRED,LINETHICK4;
DRAWLINE3(指导线>界&&指导线<REF(指导线,1),指导线,0,1,REF(指导线,1),1,0),COLORBLACK,LINETHICK4;
DRAWLINE3(指导线<界&&指导线>REF(指导线,1),指导线,0,1,REF(指导线,1),1,0),COLORMAGENTA,LINETHICK4;
DRAWLINE3(指导线<界&&指导线<REF(指导线,1),指导线,0,1,REF(指导线,1),1,0),COLORBLACK,LINETHICK4;
DRAWTEXT(CROSS(指导线,界),界,'▲'),ALIGN1,VALIGN0,COLORRED,FONTSIZE40;
DRAWTEXT(CROSS(界,指导线),界,'▼'),ALIGN1,COLORBLACK,FONTSIZE40;
DRAWCOLORKLINE(CROSS(指导线,界),COLORBLACK,0);
DRAWCOLORKLINE(CROSSDOWN(C,指导线),COLORBLACK,0);
DRAWSHIFTNUMBER(ISLASTBAR,界,界,0,COLORBLACK,1,5),FONTSIZE25;
DRAWSHIFTNUMBER(ISLASTBAR,指导线,指导线,0,COLORBLACK,1,5),FONTSIZE25;