M3:=20;M4:=60;M:=10;
MA3:=MA(CLOSE,M3);
MA4:=MA(CLOSE,M4);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MADKX:=MA(DKX,M);
JJ:=(CLOSE+HIGH+LOW)/3;
A1:=EMA(JJ,10);
B1:=REF(A1,1);
bs:=crOSS(A1,B1);
DRAWICON(BS=1,L,1);
DRAWBAND(A1,RGB(250,250,50),B1,RGB(0,50,150));
{ _最新股票指标公式}
BB:=CROSS(MA3,DKX) AND MA4>MA3;
DRAWICON(BB=1,MADKX,14);
DRAWBAND(DKX,RGB(250,50,50),MADKX,RGB(0,50,150));