买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
STICKLINE(买线 =卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线 =卖线,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(买线 =卖线 AND C O,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线 卖线,LOW,HIGH,0.0,1),COLOR228822;
STICKLINE(买线 卖线,CLOSE,OPEN,3,1),COLOR228822;
STICKLINE(买线 卖线 AND C O,CLOSE,OPEN,3,0),COLOR228822;
J:=(L+HIGH+C)/3;
A:=EMA(J,10);
REF(A,1);
STICKLINE(A B ,A,B,-1 ,0),COLOR00AAFF;
STICKLINE(A B,B ,A,-1,0),COLORBLUE;
DRAWTEXT(A B AND C REF(C,1) AND NOT(REF(A B,1)),B*0.98, 起点 ),COLOR00AAFF;
DRAWTEXT(A B AND NOT(REF(A B,1)),B*1.2, 下车点 ),COLORGREEN;
MA5Q:=MA(CLOSE,5);
DIR2:=ABS(CLOSE-REF(CLOSE,30));
VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);
ER2:=DIR2/VIR2;
CS2:=ER2*(0.8-2/24)+2/24;
CQ2:=CS2*CS2;
AA1:=ABS((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20);
AA2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),AA1);
STICKLINE(C/REF(C,1) 1.095,C,O,2,0),COLORYELLOW;