UPPER:(1+M1/100)*MA(CLOSE,N);
LOWER:(1-M2/100)*MA(CLOSE,N);
ENE:(UPPER+LOWER)/2;
MA25:EMA(CLOSE,25),COLORFF1CAE,LINETHICK1;
买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L*0.99,'买'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(SEL,H*1.01,'卖'),LINETHICK1,COLOR00FF00;
STICKLINE(买线>=卖线,LOW,HIGH,0,1),COLOR0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),colorcyan;
STICKLINE(买线<卖线,LOW,HIGH,0,0),colorcyan;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00AAFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,3,0),COLOR00DD00;