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

[复制链接]
查看71 | 回复0 | 2021-8-19 19:07:48 | 显示全部楼层 |阅读模式

以下是通达信分时主图买卖点公式源码(无源码的请下载附件导入)

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;

652199097.gif

652199097.gif

回复

使用道具 举报

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

本版积分规则