aa:=DATAPERIOD;n1:=if(aa=7,13,if(aa=6,5,if(aa=2,10,0)));//在不同参数取值:n1=13 ,n1=5 ,5分鈡线n1=10n2:=if(aa=7,30,if(aa=6,10,if(aa=2,60,0)));n3:=if(aa=7,0,if(aa=6,30,if(aa=2,0,0)));n4:=if(aa=7,0,if(aa=6,60,if(aa=2,0,0)));//如不喜欢不同周期均线参数n取不同的值,可将上面删除并自定义参数nm1:ma(c,n1);m2:ma(c,n2);m3:ma(c,n3);m4:ma(c,n4);//上面是均线,下面是增加的显示sj:=datacount-sysparam(1);drawnumber(barpos+4=sysparam(1),l,sj,0),align5,COLORgreen;//交易日aj:=DATEDIFF(date,CURRENTDATE);drawnumber(sysparam(1)=barpos,l,aj,0),shift1,align5,COLORYELLOW;//自然日:(D