设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信股票公式 一招鲜之dmi和cci操作系统

2014-12-1 13:40:31 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信股票公式 一招鲜之dmi和cci操作系统:

  MTR:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);

  HD :=HIGH-REF(HIGH,1);

  LD :=REF(LOW,1)-LOW;

  DMP:=EMA(IF(HD》0&&HD》LD,HD,0),14);

  DMM:=EMA(IF(LD》0&&LD》HD,LD,0),14);

  PDI:=DMP*100/MTR;

  MDI:=DMM*100/MTR;

  ADX:=EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);

  ADXR:=EMA(ADX,6);

  OK:=COUNT(EVERY(PDI《MIN(MDI,MIN(ADX,ADXR)),8),10)》0 AND CROSS(PDI,MAX(MDI,MAX(ADX,ADXR))) ;

  TYP:=(HIGH+LOW+CLOSE)/3;

  CCI:=MA((TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14))+400,5);

  A9:=TROUGH(CCI,34,1);

  BUY1:=A9》REF(A9,1) OR (OK AND PDI《45);

  TT:=BARSLAST(BUY1);

  止盈:=(REF(COUNT(C《REF(C,1)*0.97,TT-1)=0,1) AND C《REF(C,1)*0.97);

  止损:=(C《REF(L,TT) AND REF(COUNT(C《REF(L,TT),TT-1)=0,1))AND REF(COUNT(止盈,TT-1)=0,1);

  YY:=止盈 OR 止损 ;

  BUY:=IF(REF(COUNT(YY,TT-1)=0,1) AND BUY1,0,BUY1);

  DRAWTEXT(BUY,L*0.98,‘买入’);

  DRAWICON(BUY,L*0.99,23);

  DRAWTEXT(YY AND C》=REF(C,TT-1),H*1.01,‘止盈’);

  DRAWTEXT(YY AND C《REF(C,TT-1),H*1.01,‘止损’);

  DRAWICON(YY,H*1,12);

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。