MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
MA1:=(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,COLORRED;
MA3:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
MA30:MA(CLOSE,30),COLORGREEN , LINETHICK2;
MA60:MA(CLOSE,60),COLORFF00FF,DOTLINE;
{股票指标网}
IF (MA30>REF(MA30,1),MA30,DRAWNULL),COLORRED, LINETHICK2;
IF (MA60<REF(MA60,1),MA60,DRAWNULL),COLORFFFF00, DOTLINE;
MA6:(MA1+MA3)/2,COLOR80FFFF;
MA2:MA(MA6,6),COLORFFFFFF;
AADATE:=DATE<199123099;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORFF00FF;