以下是通达信压力超盘源码主图指标

N:=1.03;
 M5:MA(C,5);
 M10:MA(C,10);
 A:=BARSLAST(CROSS(M5,M10));
 T:=BARSLAST(CURRBARSCOUNT=CONST(A)+1);
 D:=MIN(M5,M10);
 STICKLINE(T>=0,REF(D,T),REF(D,T),6,0),COLORRED,LINETHICK2;
 STICKLINE(T>=0,REF(D*1.08,T),REF(D*1.08,T),6,-1),COLORLIMAGENTA;
 STICKLINE(T>=0,REF(D*0.92,T),REF(D*0.92,T),6,-1),COLORLIMAGENTA;
 STICKLINE(T>=0,REF(D*1.21,T),REF(D*1.21,T),6,-1),COLORGREEN;
 STICKLINE(T>=0,REF(D*0.79,T),REF(D*0.79,T),6,-1),COLORGREEN;
 STICKLINE(T>=0,REF(D*1.34,T),REF(D*1.34,T),6,-1),COLORYELLOW;
 STICKLINE(T>=0,REF(D*0.66,T),REF(D*0.66,T),6,-1),COLORYELLOW;
 DRAWTEXT(T=0,REF(D,T)*N,VARCAT(VARCAT(‘中心价:’,VAR2STR(REF(D,T),2)),’元’)),COLORWHITE;
 DRAWTEXT(T=0,REF(D*1.08,T)*N,VARCAT(VARCAT(‘压力1:’,VAR2STR(REF(D*1.08,T),2)),’元’))COLORYELLOW;
 DRAWTEXT(T=0,REF(D*1.21,T)*N,VARCAT(VARCAT(‘压力2:’,VAR2STR(REF(D*1.21,T),2)),’元’))COLORYELLOW;
 DRAWTEXT(T=0,REF(D*1.34,T)*N,VARCAT(VARCAT(‘压力3:’,VAR2STR(REF(D*1.34,T),2)),’元’))COLORYELLOW;
 DRAWTEXT(T=0,REF(D*0.92,T)*N,VARCAT(VARCAT(‘支撑1:’,VAR2STR(REF(D*0.92,T),2)),’元’)),COLORMAGENTA;
 DRAWTEXT(T=0,REF(D*0.79,T)*N,VARCAT(VARCAT(‘支撑2:’,VAR2STR(REF(D*0.79,T),2)),’元’)),COLORMAGENTA;
 DRAWTEXT(T=0,REF(D*0.66,T)*N,VARCAT(VARCAT(‘支撑3:’,VAR2STR(REF(D*0.66,T),2)),’元’)),COLORMAGENTA;
 STICKLINE(T=0,REF(D*0.66,T),REF(D*1.34,T),0,0),COLORRED;

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