以下是通达信分时主图源码附图(无源码的请下载附件导入)
MD:=EMA(C,1)-EMA(C,5);
STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR7F00FF;
STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*2,0,1),COLOR7FFF00;
分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1.5;
MM:=0.805;
MM1:=0.105;
买出价:=STRCAT(STRCAT('当前买出价: ',CON2STR(DYNAINFO(20),2)),'元'),COLOR0000FF;
买入价:=STRCAT(STRCAT('当前买入价: ',CON2STR(DYNAINFO(21),2)),'元'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.75,0,买出价),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.5,0.7,0,买入价),COLORRED;
DRAWNUMBER(ISLASTBAR=1,CLOSE,CLOSE),COLORFFFFFF;
DRAWNUMBER(ISLASTBAR=1,CLOSE*0.996,DYNAINFO(14)*100),COLOR00FFFF;
DRAWNUMBER(ISLASTBAR=1,CLOSE*0.998,DYNAINFO(12)),COLORFFFF00;
61777095.png
|