设为首页加入收藏

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

通达信指标公式 通达信超买预警公式源码

2015-4-28 9:59:11 股票入门 http://rumen.southmoney.com

  通达信指标公式 通达信超买预警公式源码:

  A1:MA(C,2),COLORWHITE,NODRAW;

  MA2:MA(C,6),COLORLIBLUE,NODRAW;

  MA3:MA(C,20),NODRAW;

  MA4:MA(C,60),NODRAW;

  高:DYNAINFO(5),COLORYELLOW,NODRAW;

  低:DYNAINFO(6),COLORWHITE,NODRAW;

  涨:=INDEXADV;

  跌:=INDEXDEC;

  DRAWTEXT_FIX(1,0.00,0,0,‘涨:’)COLOR0080FF;

  顶周期:=TOPRANGE(H),;

  底周期:=LOWRANGE(L);

  上内:=LLVBARS(H,顶周期);

  上外:=LLVBARS(L,顶周期);

  下内:=HHVBARS(L,底周期);

  下外:=HHVBARS(H,底周期);

  上力度:=HHV(L,上内+1)》LLV(H,上内+1);

  下力度:=HHV(L,下内+1)》LLV(H,下内+1);

  上包含:=COUNT(L》=REF(L,1),上外)》2 AND COUNT(H》=REF(H,1),上内)》2;

  下包含:=COUNT(H《=REF(H,1),下外)》2 AND COUNT(L《=REF(L,1),下内)》2;

  顶0:=顶周期 AND 上力度 AND 上包含 AND 上外》3;

  底0:=底周期 AND 下力度 AND 下包含 AND 下外》3;

  顶分天数:=BARSLAST(顶0);

  底分天数:=BARSLAST(底0);

  含中间K线:=IF(顶分天数=0,底分天数,顶分天数)》=3;

  顶:=顶0 AND 含中间K线 AND H=HHV(H,BARSLAST(底0));

  底:=底0 AND 含中间K线 AND L=LLV(L,BARSLAST(顶0));

  NOTEXT上笔划线: DRAWLINE(底,L,顶,H,0),COLORLIRED,LINETHICK1;

  NOTEXT下笔划线: DRAWLINE(顶,H,底,L,0),COLORLIGREEN,LINETHICK1;

  分界点:=NOTEXT上笔划线 AND NOTEXT下笔划线;

  位置调整:=

  IF(PERIOD=11,0.02,{年}

  IF(PERIOD=10,0.02,{季}

  IF(PERIOD=9,0.02, {多日}

  IF(PERIOD=8,0.001,{多分钟}

  IF(PERIOD=7,0.02, {月}

  IF(PERIOD=6,0.01, {周}

  IF(PERIOD=5,0.005, {日}

  IF(PERIOD=4,0.002,{60F}

  IF(PERIOD=3,0.001,{30F}

  IF(PERIOD=2,0.001,{15F}

  IF(PERIOD=1,0.0003,{5F}

  IF(PERIOD=0,0.0002,{1F}0))))))))))));

  DRAWNUMBER(分界点 AND 顶,1.0005*H+H*位置调整,H),COLORWHITE;

  DRAWNUMBER(分界点 AND 底,L*0.999,L),COLORWHITE;

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