{智能KDJ} 130;
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;
|
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!