设为首页加入收藏

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

通达信指标公式 通达信智能KDJ大涨和K线同时发出信号指标公式

2015-3-1 9:03:00 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信指标公式 通达信智能KDJ大涨和K线同时发出信号指标公式:

  {智能KDJ}

  130;

  顶部J值:=90;

  底部J值:=20;

  N:=9;

  M1:=3;

  M2:=3;

  RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

  K:=SMA(RSV,M1,1);

  D:=SMA(K,M2,1);

  J0:=3*K-2*D;

  J:=MA(J0,2);

  J,DOTLINE,COLORRED;

  MA(J,4),COLORBLUE;

  YMDF:=150228;

  YMDF1:=3914;

  YMDFZB:=22286;

  ZBXH:=22;

  YMD:=YMDF;

  YMD1:=YMDF1;

  YMD2:=YMDF1;

  YMD3:=YMDF1;

  YMDZB:=YMDFZB;

  YC:=MOD((YMD/10000),100);

  MC:=MOD((YMD/100),100);

  DC:=MOD((YMD),100);

  Y1:=POW(YC,2)*10+POW(MC,2)*10+POW(DC,2)*1+YC*MC*DC;

  Y2:=20000+POW(YC,2)*100+POW(MC,2)*10+POW(DC,2)*1000+YC*MC*DC;

  Y3:=30000+POW(YC,2)*10+POW(MC,2)*1000+POW(DC,2)*100+YC*MC*DC;

  YZB:=POW(YC,2)*ZBXH+POW(MC,2)*ZBXH+POW(DC,2)*ZBXH;

  YES1:=YMD1=Y1;

  YES2:=YMD2=Y2;

  YES3:=YMD3=Y3;

  YESZB:=YMDZB=YZB;

  GQ0:=(DATE()《=(1000000+YC*10000+MC*100+DC))+POW(10,-5);

  GQ:=IF(GQ0 AND YES1 AND YESZB,1,DRAWNULL),NODRAW;

  GQ10:=IF(GQ=DRAWNULL AND CURRBARSCOUNT《10,DRAWNULL,1);

  VGQ:=GQ+0.001;

  VV2:=(VGQ-1)*1000*(GQ0》1);

  MA20:=MA(C,13);

  平均涨速:=(MA20-REF(MA20,1))/MA20*100*(GQ10-0.001),NODRAW;

  温和区:平均涨速《0.5 AND 平均涨速》-0.5,COLORLIRED;

  上涨冲动区:平均涨速》=0.5,COLORMAGENTA;

  下跌冲动区:平均涨速《=-0.5,COLORGREEN;

  偏离值:(C/DKX-1)*100,COLORBLUE,NODRAW;

  STICKLINE(温和区,0,平均涨速*10,3,0),COLORLIRED;

  STICKLINE(上涨冲动区,0,3+(平均涨速-0.5)*10,3,0),COLORMAGENTA;

  STICKLINE(下跌冲动区,0,-3+(平均涨速+0.5)*10,3,0),COLORGREEN;

  顶部0:=J》REF(J,1) AND J》REF(J,2) AND J》顶部J值 AND 偏离值》5;

  底部0:=J《REF(J,1) AND J《REF(J,2) AND J《底部J值;

  顶部:=顶部0 AND COUNT(顶部0,5)=1;

  底部:=底部0 AND COUNT(底部0,5)=1;

  STICKLINE(顶部,100,90,1,0),COLORGREEN;

  STICKLINE(底部,0,10,1,0),COLORRED;

  顶部平均距离:=100/COUNT(顶部,100);

  底部平均距离:=100/COUNT(底部,100);

  顶部距离:=BARSLAST(顶部)+1;

  底部距离:=BARSLAST(底部)+1;

  准备卖0:=REF(顶部距离,1)》12 AND J》80 AND 偏离值》5;

  准备买0:=EXIST(底部距离》15,3) AND J《20;

  准备卖:=准备卖0 AND COUNT(准备卖0,5)=1;

  准备买:=准备买0 AND COUNT(准备买0,5)=1;

  DRAWTEXT(准备卖,105,‘★准备卖’),COLORMAGENTA;

  DRAWTEXT(准备买,20, ‘★准备买’),COLORRED;

  顶部稳定:=顶部平均距离》=15;

  底部稳定:=底部平均距离》=15;

  DRAWTEXT(顶部平均距离《=15 AND 顶部,95,‘ 可能新高’),COLORGREEN;

  DRAWTEXT(顶部平均距离《=20 AND 顶部平均距离》15 AND 顶部,95,‘ △’),COLORBLUE;

  DRAWTEXT(顶部平均距离》20 AND 顶部,115,‘▲筑顶’),COLORRED;

  DRAWTEXT(底部平均距离《=15 AND 底部,-5,‘ 可能新低’),COLORBLUE;

  DRAWTEXT(底部平均距离《=20 AND 底部平均距离》15 AND 底部,-5,‘ △’),COLORBLUE;

  DRAWTEXT(底部平均距离》20 AND 底部,-5,‘ ▲筑底’),COLORRED;

  强势回调:=COUNT(上涨冲动区,10)》=8 AND 准备买*VV2;

  就要大涨:=强势回调,COLORRED;

  STICKLINE(强势回调,0,50,1,0),COLORRED;

  DRAWTEXT(强势回调,40,‘ ★就要大涨’),COLORRED;

  挖坑结束0:=CROSS(C,MA(C,5)) AND EXIST(下跌冲动区,5)*VV2;

  挖坑结束:=挖坑结束0 AND COUNT(挖坑结束0,15)=1;

  STICKLINE(挖坑结束,0,30,1,0),COLORBLUE;

  DRAWTEXT(挖坑结束,40,‘ ★挖坑结束’),COLORBLUE;

  低买:=J》REF(J,1) AND REF(J,1)《0 AND (REF(J,1)《REF(J,2))*VV2;

  上3买:=低买,COLORBLUE;

  DRAWICON(低买,0,11);

  DRAWTEXT(低买,15,‘上3买’),COLORBLUE;

  高卖0:=J《REF(J,1) AND REF(J,1)》80 AND (REF(J,1)》REF(J,2))*VV2;

  高卖:=高卖0 AND COUNT(高卖0,6)=1;

  破3卖:=高卖,COLORGREEN;

  DRAWTEXT(高卖,90,‘ 破3卖’),COLORGREEN;

  DRAWTEXT(高卖,80, VARCAT(‘偏离值:’,VAR2STR(偏离值,1))),COLORBLUE;

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