智能KDJ通达信公式 副图 源码附图

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);
{K;
D;
J;}
J,DOTLINE,COLORRED;
MA(J,4),COLORBLUE;
 
 
{---------JM----------}
YMDF:=150115;
YMDF1:=2710;
YMDFZB:=9922;
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;
{JMWZ1}
{JMWZ2 }
GQ0:DATE()<=(1000000+YC*10000+MC*100+DC) ;
GQ:=IF(GQ0 AND YES1 AND YESZB,1,DRAWNULL),NODRAW;
{JMWZ3}
GQ10:=IF(GQ=DRAWNULL AND CURRBARSCOUNT<10,DRAWNULL,1);
VGQ:=GQ+0.001;
VV2:=(VGQ-1)*1000;
 
{-------------------}
 
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;
 
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>REFX(J,1) AND J>REFX(J,2) AND J>REFX(J,4)} AND J>85.1;
底部0:=J<REF(J,1) AND J<REF(J,2) {AND J<REFX(J,1) AND J<REFX(J,2) AND J<REF(J,4)} AND J<20.1;
 
顶部:=顶部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;
准备买0:=EXIST(底部距离>15,3) AND J<20;
 
准备卖:=准备卖0 AND COUNT(准备卖0,5)=1;
准备买:=准备买0 AND COUNT(准备买0,5)=1;
 
DRAWTEXT(准备卖,80,'★准备卖'),COLORMAGENTA;
DRAWTEXT(准备买,20, '★准备买'),COLORRED;
 
顶部稳定:=顶部平均距离>=15;
底部稳定:=底部平均距离>=15;
 
 
DRAWTEXT(顶部平均距离<=15 AND 顶部,95,'  可能新高'),COLORGREEN;
DRAWTEXT(顶部平均距离<=20 AND 顶部平均距离>15 AND 顶部,95,'  △快到顶'),COLORBLUE;
DRAWTEXT(顶部平均距离>20 AND 顶部,95,'  ★阶段顶'),COLORRED;
 
 
DRAWTEXT(底部平均距离<=15 AND 底部,-5,'  可能新低'),COLORGREEN;
DRAWTEXT(底部平均距离<=20 AND 底部平均距离>15 AND 底部,-5,'  △快到底'),COLORBLUE;
DRAWTEXT(底部平均距离>20 AND 底部,-5,'  ★阶段底'),COLORRED;
 
DRAWTEXT_FIX( 1,0.8,0.0,1,'KDJ智能判断,根据低点高点的准确度进行买卖'),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(低买,5,'    上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;
DRAWICON(高卖,J,12);
DRAWTEXT(高卖,J,'    破3卖'),COLORGREEN;
 
{背景色}
{DRAWRECTREL(0,1000,220,000,RGB(255,255,0));}
 
FO:=FROMOPEN; {开盘分钟数,不同时间段给出不同提示};
 
 
{上午9:30~10:30}
DRAWTEXT_FIX(PERIOD>0 AND FO>0 AND FO<=60 ,0.002,0.05, 0,'▲9:30~10:30 ▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>0 AND FO<=60 ,0.002,0.20, 0,'▲友情提示▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>0 AND FO<=60 ,0.002,0.40, 0,'主力诱多基本在这个阶段'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>0 AND FO<=60 ,0.002,0.60, 0,'冲高高位背离注意卖出'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>0 AND FO<=60 ,0.002,0.80, 0,'不追高,只买有把握的股'),COLORYELLOW;
 
{上午10:30~11:30}
DRAWTEXT_FIX(PERIOD>0 AND FO>60 AND FO<=120 ,0.002,0.05, 0,'▲10:30~11:30 ▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>60 AND FO<=120 ,0.002,0.20, 0,'股道飞扬▲友情提示▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>60 AND FO<=120 ,0.002,0.40, 0,'看看主力在干什么,洗盘还是出货'),COLORYELLOW;
 
{上午11:30~14:00}
DRAWTEXT_FIX(PERIOD>0 AND FO>120 AND FO<=180 ,0.002,0.05, 0,'▲ 11:30~14:00▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>120 AND FO<=180 ,0.002,0.20, 0,'股道飞扬▲友情提示▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>120 AND FO<=180 ,0.002,0.40, 0,'如果午后拉升,继续持股'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>120 AND FO<=180 ,0.002,0.60, 0,'如果午后跳水,注意卖出'),COLORYELLOW;
 
{下午14:00~15:00}
DRAWTEXT_FIX(PERIOD>0 AND FO>180 AND FO<=240 ,0.002,0.05, 0,'▲ 14:00~15:00▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>180 AND FO<=240 ,0.002,0.20, 0,'股道飞扬▲友情提示▲'),COLORYELLOW;
DRAWTEXT_FIX(PERIOD>0 AND FO>180 AND FO<=240 ,0.002,0.40, 0,'买股的最佳时机到了,低位背离大胆买进'),COLORYELLOW;
 


未来函数检测结果如下:
该公式包含未来函数:REFX
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图