您现在的位置:  股票知识 > 股票公式 > 通达信股票公式 > 正文
南财搜索

2018通达信指标公式 趋势形有机会就进副图公式源码(2)

2018-07-03 16:35    股票知识   zhishi.southmoney.com
    

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.09,71),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.3,72),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.45,73),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR3-VAR5*0.55,74),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR4+VAR5/3,75),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=VAR1/4+30,VAR4+VAR5/10,76),COLORWHITE;

高压:REFDATE(VAR7,DATE),DOTLINE,COLORCYAN;

压力线:REFDATE(VAR16,DATE),DOTLINE,COLOR008000;

警示线:REFDATE(VAR15,DATE),DOTLINE,COLORYELLOW;

突破线:REFDATE(VAR14,DATE),DOTLINE,COLORGREEN;

强势线:REFDATE(VAR13,DATE),DOTLINE,COLORRED;

支撑线:REFDATE(VAR12,DATE),DOTLINE,COLORWHITE;

低线:REFDATE(VAR10,DATE),DOTLINE,COLORYELLOW;

上升均斜:EMA(SLOPE(CLOSE,15)*20+CLOSE,30),COLORBLUE;

VAR21:=CONST(LLVBARS(LOW,25));

VAR22:=CONST(REF(HIGH,VAR21));

VAR23:=CONST(CURRBARSCOUNT);

VAR24:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR21 AND HIGH>VAR22));

VAR25:=CONST(REF(HIGH,VAR24));

VAR26:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR24 AND HIGH>VAR25));

VAR27:=CONST(REF(HIGH,VAR26));

强牛:DRAWLINE(CURRBARSCOUNT=VAR26+1,VAR27,ISLASTBAR,VAR27,1),NODRAW,COLORRED,LINETHICK2;

DRAWTEXT(ISLASTBAR,VAR27,81),COLORRED;

VAR28:=BARSLAST(LLVBARS(LOW,25)=0);

VAR29:=CONST(REF(REF(VAR28,1),VAR28)+VAR28+1);

VAR30:=CONST(REF(HIGH,VAR29));

VAR31:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR29 AND HIGH>VAR30));

VAR32:=CONST(REF(HIGH,VAR31));

VAR33:=CONST(BARSLAST(CURRBARSCOUNT>VAR23+VAR31 AND HIGH>VAR32));

VAR34:=CONST(REF(HIGH,VAR33));

牛底:DRAWLINE(CURRBARSCOUNT=VAR33+1,VAR34,ISLASTBAR,VAR34,1),NODRAW,COLORRED,LINETHICK2;

DRAWTEXT(ISLASTBAR,VAR34,82),COLORRED;

VAR35:=20;

VAR36:=CONST(LLVBARS(LOW,VAR35));

VAR37:=CONST(REF(HIGH,VAR36));

VAR38:=CONST(CURRBARSCOUNT);

VAR39:=CONST(BARSLAST(CURRBARSCOUNT>VAR38+VAR36 AND HIGH>VAR37));

VAR40:=CONST(REF(HIGH,VAR39));

VAR41:=CONST(BARSLAST(CURRBARSCOUNT>VAR38+VAR39 AND HIGH>VAR40));

VAR42:=CONST(REF(HIGH,VAR41));

VAR43:=DRAWLINE(CURRBARSCOUNT=VAR41+1,VAR42,ISLASTBAR,VAR42,1);

VAR44:=DRAWTEXT(ISLASTBAR,VAR42,83);

VAR45:=MA(CLOSE,10);

VAR46:=MA(CLOSE,54);

VAR47:=(CLOSE-VAR46)/VAR46<0.1;

VAR48:=(CLOSE-VAR45)/VAR45<0.3;

VAR49:=(VAR47=1 AND VAR48=1)*0.2;

VAR50:=(VAR49=0 AND REF(VAR49,1)=0.2 AND REF(COUNT(VAR49=0.2,10)=10,1)=1)*1;

QWE:DRAWTEXT(VAR50,OPEN,84),COLORWHITE;

平台:REF(OPEN,BARSLAST(VAR50)),NODRAW,COLORRED;

VAR51:=MA(CLOSE,5);(股票知识网zhishi.southmoney.com)

    股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
股票知识学习
联盟广告

关于股票知识网 -版权声明 -诚聘英才 -广告服务 -网站地图 -
特此声明:广告商的言论与行为均与股票知识网无关
zhishi.southmoney.com
股票知识网 © 版权所有 闽ICP备09035581号