以下是通达信分时阻力支撑高抛低吸主图指标源码

昨开:=’REF(O,1)#DAY’,NODRAW;
昨高:=’REF(H,1)#DAY’,NODRAW;
昨低:=’REF(L,1)#DAY’,NODRAW;
昨收:=DYNAINFO(3),NODRAW;
 A1:=CROSS(C,昨高);
B:=CROSS(昨高,C);
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.01,0,STRCAT(‘昨高: ‘,CON2STR(昨高,2))),COLORYELLOW;
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.06,0,STRCAT(‘昨低: ‘,CON2STR(昨低,2))),COLORMAGENTA;
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.11,0,STRCAT(‘昨收: ‘,CON2STR(昨收,2))),COLORGREEN;
 DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.16,0,STRCAT(‘昨开: ‘,CON2STR(昨开,2))),COLORWHITE;

 {———————————————————–};

 HH:=MAX(DYNAINFO(3),DYNAINFO(5));
 LL:=MIN(DYNAINFO(3),DYNAINFO(6));
 PP:=HH-LL;
阻力:LL+PP*7/8,COLOR00DD00;
支撑:LL+PP*0.5/8,COLORMAGENTA;
现价:CLOSE;
 STICKLINE(CROSS(支撑,现价),支撑,(支撑+阻力)/2,2,0),COLORRED;
 STICKLINE(CROSS(现价,阻力),阻力,(支撑+阻力)/2,2,0),COLORGREEN;
 DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,’★吸’),LINETHICK2,,COLORYELLOW;
 DRAWTEXT(LONGCROSS(现价,阻力,2),现价,’★抛’),LINETHICK2,COLORRED;

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