CJL:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,'亿'),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));

DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL),COLOR0099FF;

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);

BU:=CROSS(买线,卖线);

SEL:=CROSS(卖线,买线);

DRAWTEXT(BU,LOW+0.08,'B'),COLORRED,LINETHICK3;

DRAWTEXT(BU,LOW+0.1,' ̄'),COLOR0000FF,LINETHICK3;

{ DRAWTEXT(SEL,HIGH+0.1,' ̄'),,,COLORFFF000,LINETHICK3;}

{ DRAWTEXT(SEL,HIGH+0.1,'S'),,,COLORGREEN,LINETHICK3;}

STICKLINE(买线>=卖线,LOW,HIGH,0.1,1),COLORRED;

STICKLINE(买线>=卖线,CLOSE,OPEN,8,1),COLORRED;

STICKLINE(买线<卖线,CLOSE,OPEN,8,0),COLOR00FF00;

STICKLINE(买线<卖线,LOW,HIGH,0.1,1),COLOR00FF00;

STICKLINE(C/REF(C,1)>=1.03 ,C,O,8,0),COLORYELLOW;

MA5:=MA(C,5);

MA10:=MA(C,10);

MA20:=MA(C,20);

MA60:=MA(C,60);

多头排列:=CROSS(MA5,MA10) AND CROSS(MA10,MA20);

DRAWICON(多头排列,L,23);

N:=21;M:=55;Q:=3;

回归:=EMA(SLOPE(CLOSE,N)*20+CLOSE,M)*1,COLORMAGENTA,LINETHICK3;

平滑:=EMA(CLOSE,Q),COLORYELLOW,LINETHICK2;

简单差:=平滑-回归;

DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),平滑,9);