以下是通达信分时主图买卖点公式源码

H1:=MAX(DYNAINFO(3),DYNAINFO(5));

L1:=MIN(DYNAINFO(3),DYNAINFO(6));

P1:=H1-L1;

T1:(L1+P1*8.5/9),COLORFFFFFF;

阻力:(L1+P1*7/9),COLOR00DD00;

Z:(L1+P1*4.5/9),COLORWHITE,LINETHICK1,POINTDOT;

B:(L1+P1*2.0/9),COLORYELLOW;{支撑线}

支撑:(L1+P1*0.5/9),COLORFFFFFF;

现价:=CLOSE,COLORYELLOW;

STICKLINE(CROSS(支撑,现价),Z,支撑,1,0),COLORMAGENTA;

DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,’☆买’),COLORMAGENTA;{吸}

DRAWTEXT(LONGCROSS(现价,阻力,2),现价,’★卖’),COLORGREEN;{抛};

DRAWICON(CROSS(现价,T1),现价*0.999,8);

STICKLINE(FILTER(C,60)>0,T1,支撑,0.5,0),COLORRED;

DRAWTEXT(CURRBARSCOUNT=8,T1+0.003,’顶’),COLORGREEN,LINETHICK1;

DRAWTEXT(CURRBARSCOUNT=8,支撑-0.003,’底’),COLORLIRED,LINETHICK1;

DRAWTEXT(CURRBARSCOUNT=8,Z,’中’),COLORWHITE,LINETHICK1;

最新:CLOSE,LINETHICK2,COLORWHITE;

AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));

BB:=BETWEEN(C/AA,C+H,C-H);

DRAWTEXT( ISLASTBAR  AND 最新>REF(最新,1),最新,STRCAT(‘ 涨’,CON2STR(最新,2))),COLORMAGENTA;

DRAWTEXT( ISLASTBAR  AND 最新<REF(最新,1),最新,STRCAT(‘ 跌’,CON2STR(最新,2))),COLOR00FF00;

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