通达信超级分时源码副图

[复制链接]
查看209 | 回复0 | 2022-7-24 03:42:51 | 显示全部楼层 |阅读模式

VAR1:=STRCAT(CON2STR(YEAR,0),107);
 VAR2:=STRCAT(CON2STR(MONTH,0),108);
 VAR3:=STRCAT(CON2STR(DAY,0),109);
 VAR4:=STRCAT(STRCAT(VAR1,VAR2),VAR3);
 DRAWTEXT_FIX(CLOSE>0,0.68,0,0,VAR4);
 VAR5:=OPEN>CLOSE AND CLOSE>REF(CLOSE,1) AND OPEN/REF(CLOSE,1)>1.03;
 DRAWTEXT(ABS(VAR5)>0,LOW,110),COLORYELLOW;
 DRAWICON(CLOSE<OPEN AND CLOSE>REF(CLOSE,1),HIGH,6);
均价5:AMOUNT/VOL/100,NODRAW;
 VAR6:=OPEN>CLOSE AND 均价5>REF(CLOSE,1);
 DRAWTEXT(VAR6,LOW-0.2,111),COLORE8E8E8;
 STICKLINE(VAR6,OPEN,CLOSE,1,0),COLORRED;
 DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.55,0.9,0,FGBLOCK),COLORYELLOW;
 DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK),COLORYELLOW;
 VAR7:=TIME=100000;
 VAR8:=BARSLAST(VAR7);
常数:CONST(IF(VAR8=0,CLOSE,REF(CLOSE,VAR8))),DOTLINE,COLOR004848;
 VAR9:=CONST(IF(VAR8,HHV(HIGH,0),REF(HHV(HIGH,0),VAR8)));
 VAR10:=CONST(IF(VAR8,LLV(LOW,0),REF(LLV(LOW,0),VAR8)));
 STICKLINE(VAR7=1,VAR9,VAR10,(-1),0),COLORGRAY;
 VAR11:=MAX(DYNAINFO(3),DYNAINFO(5));
 VAR12:=MIN(DYNAINFO(3),DYNAINFO(6));
 VAR13:=VAR11-VAR12;
阻力:VAR12+VAR13*7/8,DOTLINE,COLORWHITE;
 DRAWTEXT(CURRBARSCOUNT=1,阻力,112),COLORWHITE;
支撑:VAR12+VAR13*0.5/8,DOTLINE,COLORWHITE;
 DRAWTEXT(CURRBARSCOUNT=1,支撑,113),COLORWHITE;
中:(支撑+阻力)/2,DOTLINE,COLORWHITE;
现价:CLOSE,COLORWHITE;
 VAR14:=CLOSE<支撑 AND CROSS(CLOSE,REF(CLOSE,2));
 STICKLINE(CROSS(现价,支撑),CLOSE,中,2,0),COLOR00CCCC;
 STICKLINE(VAR14=1,支撑,中,2,0),COLOR00CCCC;
 DRAWICON(VAR14=1 OR CROSS(现价,支撑),中,34);
 STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORMAGENTA;
 VAR15:=CLOSE>阻力 AND CROSS(REF(CLOSE,2),CLOSE);
 STICKLINE(CROSS(阻力,现价),CLOSE,中,2,0),COLOR8C8C00;
 STICKLINE(VAR15=1,阻力,中,2,0),COLOR8C8C00;
 DRAWICON(VAR15=1 OR CROSS(阻力,现价),中,35);
 STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORGREEN;
 DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,114),COLORWHITE;
最新:CLOSE,COLORWHITE;
 IF(CLOSE>=REF(CLOSE,1),CLOSE,DRAWNULL),COLORWHITE;
 VAR16:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(VOL*100,BARSCOUNT(CLOSE));
 VAR17:=BETWEEN(CLOSE/VAR16,CLOSE+HIGH,CLOSE-HIGH);
 DRAWICON(ISLASTBAR AND CLOSE>REF(CLOSE,1),CLOSE,1);
 DRAWICON(ISLASTBAR AND CLOSE<REF(CLOSE,1),CLOSE,2);
 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则