以下是通达信分时主图源码附图

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;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。