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

最新通达信主图指标 通达信DMI超级股转向公式源码(2)

2016-10-25 15:55    股票知识   zhishi.southmoney.com
    


DRAWBAND(PDI,RGB(100,0,10),MDI,RGB(0,80,0));

DRAWBAND(ADX,RGB(180,180,0),ADXR,RGB(0,10,150));

DRAWBAND(SMA(RSV,5,1),RGB(180,10,180),SMA(SMA(RSV,5,1),5,1),RGB(10,150,10));

K:SMA(RSV,5,1),COLORMAGENTA,LINETHICK1;

D:SMA(K,5,1),COLORLIGREEN,LINETHICK1;

逢低买入:IF(CROSS(PDI,MDI) OR REF(CROSS(PDI,MDI),1) AND PDI>REF(PDI,1) AND ADX <30 AND K>D,1,DRAWNULL),COLORYELLOW,NODRAW;

短线卖出:IF(CROSS(ADXR,ADX) AND PDI>MDI AND ADX>55,1,DRAWNULL),COLOR00FF00,NODRAW;

强牛市:IF(PDI > MDI AND ADX >= 30,1,DRAWNULL),COLOR0000FF,NODRAW;

强熊市:IF(PDI < MDI AND ADX >= 30,1,DRAWNULL),COLOR00FF00,NODRAW;

略牛市:IF(PDI > MDI AND ADX >=16 AND ADX < 30,1,DRAWNULL),COLORFF00FF,NODRAW;

略熊市:IF(PDI < MDI AND ADX >=16 AND ADX < 30,1,DRAWNULL),COLORFFFF00,NODRAW;

静寂期:IF(ADX <=16 AND (PDI > MDI OR PDI < MDI),1,DRAWNULL),COLORFFFFFF,NODRAW;

抄底1:=16,COLORWHITE,POINTDOT;

抄底2:=30,COLORYELLOW,POINTDOT;

逃顶1:=60,COLORGREEN,POINTDOT;

逃顶2:=80,COLORMAGENTA,POINTDOT;

多头线:PDI,COLORRED, LINETHICK1;

空头线:MDI,COLORGREEN, LINETHICK1;

DRAWTEXT_FIX(ISLASTBAR,0,0.05,0,'在一轮大牛市中,我们是可以看见空头线跌落至0位的,如果多头线在空头线上方,这时候的市场为强势市场。反之,就是空头市场。'),COLOR00FF00;

DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,'当ADX线大于60的时候,庄家就开始计划行动了。'),COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0,0.15,0,'特别说明:当ADX到达60附近时,都要禁止按市场现有的方向顺势操作。在上涨过程中,要停止买进,而在下跌过程中,不能因为市场的恐慌而继续做空。'),COLORWHITE;

DRAWTEXT_FIX(ISLASTBAR,0,0.2,0,'当ADX进入60到80的区域以后,市场就进入了真正的高风险区域,提示头部或底部已经很近了。'),COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0,0.3,0,'(1)强的上升趋势(牛市): PDI > MDI AND ADX >= 30 。(2)强的下降趋势(熊市):PDI < MDI AND ADX >= 30 。(3)略牛的盘整期:PDI > MDI AND 16 < ADX < 30。 '),COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0,0.35,0,'(4)略熊的盘整期:PDI < MDI AND 16 < ADX < 30。(5)静寂期: ADX < =16 AND (PDI > MDI OR PDI < MDI) 。(6)在牛市ADX越大越强,但是大于60就要注意了,牛市将可能要回调。 '),COLORMAGENTA;

DRAWRECTREL(610,50,790,250,RGB(20,20,100));

DRAWTEXT_FIX(ISLASTBAR AND TJ>0   ,0.62,0.07,0,'趋势:'),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR AND 强牛市>0,0.66,0.07,0,'强的上升趋势(牛市)'),COLORRED;
(股票知识网zhishi.southmoney.com)
    股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。
商务进行时
股票知识学习
联盟广告

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