公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 大智慧公式 > 正文 → 正文

分时二次突破预警 源码

发布时间:2016/7/18 6:36:14  浏览次数:

分时二次突破 源码

有人问到分时量比的问题,解释比较麻烦,发个指标供参考

 仅供参考,其中一些条件能改成你自己的思路最好!
 

大智慧飞狐都一样,先建名为Z01的指标,以前已有Z01指标看情况把源码加到后面


{Z01}
昨量:REF(V,1);
VM5:REF(MA(V,5),1);

再建选股指标,预警是周期选择1分钟


{大智慧版,有kingwa这个DLL文件就用这个,默认自动到自选股3板块,要建个自选股3}
{分时二突}
SJ:=BARSLAST(DAY<>REF(DAY,1) OR BARPOS=1)+1;
LB:=SUM(V,SJ)*240/DYNAINFO(38)/SJ;
LBA:=V/("Z01.昨量#DAY"/240);
LBB:=V/(DYNAINFO(38)/1200);
ZDH:=H/DYNAINFO(3); ZDC:=C/DYNAINFO(3);
A1:=BARSLAST(MA(C,2)<REF(MA(C,2),1));
A2:=C/REF(C,A1)>=1.024 AND HHV(ZDC,A1+1)>=1.024;{一波涨幅}
A3:=HHV(LBA,A1+1)>=4 AND HHV(LBB,A1+1)>=10 AND TIME<=102100;{量}
A4:=BARSLAST(CROSS(0.5,A2 AND A3));{起点}
A5:=REF(HHV(ZDH,SJ),A4+1)<=1.07;{最大涨幅限制};
A6:=COUNT(C>=DYNAINFO(3),SJ)=SJ;{没跌破昨收};
A7:=HHV(H,SJ)/LLV(L,SJ)<=1.045;{振幅限制};
B1:=(C-REF(LLV(L,SJ),A4))/(REF(HHV(H,SJ),A4)-REF(LLV(L,SJ),A4));{KD}
B2:=MAX(MA(C,5),MA(C,10),MA(C,20))/MIN(MA(C,5),MA(C,10),MA(C,20))<=1.003;
B3:=ALL(MA(C,20)>REF(MA(C,20),1),15) AND MA(C,5)>MA(C,20) AND MA(C,10)>MA(C,20);
B4:=ALL(C>O AND C>REF(C,1),3) AND B1>0.6 AND B1<1 AND B2 AND B3;
B5:=CROSS(B1,0.9) OR CROSS(B1,0.95) OR REF(B4,1);
C1:=B5 AND A5 AND A6 AND A7 AND LB>=3 AND TIME>=93700 AND TIME<=102100;{信号}
TC:=STRFIND(STKNAME,'S',1)=0 AND CAPITAL/100/10000<=20 AND DYNAINFO(8)>=100;{剔除ST};
预警:C1 AND TC;
if 预警 then
begin
     aa1:="kingwa@save2blk"(预警,3);
     end;

 

{大智慧版,没有kingwa这个DLL文件就用这个}
{分时二突}
SJ:=BARSLAST(DAY<>REF(DAY,1) OR BARPOS=1)+1;
LB:=SUM(V,SJ)*240/DYNAINFO(38)/SJ;
LBA:=V/("Z01.昨量#DAY"/240);
LBB:=V/(DYNAINFO(38)/1200);
ZDH:=H/DYNAINFO(3); ZDC:=C/DYNAINFO(3);
A1:=BARSLAST(MA(C,2)<REF(MA(C,2),1));
A2:=C/REF(C,A1)>=1.024 AND HHV(ZDC,A1+1)>=1.024;{一波涨幅}
A3:=HHV(LBA,A1+1)>=4 AND HHV(LBB,A1+1)>=10 AND TIME<=102100;{量}
A4:=BARSLAST(CROSS(0.5,A2 AND A3));{起点}
A5:=REF(HHV(ZDH,SJ),A4+1)<=1.07;{最大涨幅限制};
A6:=COUNT(C>=DYNAINFO(3),SJ)=SJ;{没跌破昨收};
A7:=HHV(H,SJ)/LLV(L,SJ)<=1.045;{振幅限制};
B1:=(C-REF(LLV(L,SJ),A4))/(REF(HHV(H,SJ),A4)-REF(LLV(L,SJ),A4));{KD}
B2:=MAX(MA(C,5),MA(C,10),MA(C,20))/MIN(MA(C,5),MA(C,10),MA(C,20))<=1.003;
B3:=ALL(MA(C,20)>REF(MA(C,20),1),15) AND MA(C,5)>MA(C,20) AND MA(C,10)>MA(C,20);
B4:=ALL(C>O AND C>REF(C,1),3) AND B1>0.6 AND B1<1 AND B2 AND B3;
B5:=CROSS(B1,0.9) OR CROSS(B1,0.95) OR REF(B4,1);
C1:=B5 AND A5 AND A6 AND A7 AND LB>=3 AND TIME>=93700 AND TIME<=102100;{信号}
TC:=STRFIND(STKNAME,'S',1)=0 AND CAPITAL/100/10000<=20 AND DYNAINFO(8)>=100;{剔除ST};
预警:C1 AND TC;

 

{飞狐版,有自动预警到板块功能}
{分时二突}
SJ:=BARSLAST(DAY<>REF(DAY,1) OR BARPOS=1)+1;
LB:=SUM(V,SJ)*240/"Z01.VM5#DAY"/SJ;
LBA:=V/("Z01.昨量#DAY"/240);
LBB:=V/("Z01.VM5#DAY"/1200);
ZDH:=H/DYNAINFO(3); ZDC:=C/DYNAINFO(3);
A1:=BARSLAST(MA(C,2)<REF(MA(C,2),1));
A2:=C/REF(C,A1)>=1.024 AND HHV(ZDC,A1+1)>=1.024;{一波涨幅}
A3:=HHV(LBA,A1+1)>=4 AND HHV(LBB,A1+1)>=10 AND TIME<=102100;{量}
A4:=BARSLAST(CROSS(0.5,A2 AND A3));{起点}
A5:=REF(HHV(ZDH,SJ),A4+1)<=1.07;{最大涨幅限制};
A6:=COUNT(C>=DYNAINFO(3),SJ)=SJ;{没跌破昨收};
A7:=HHV(H,SJ)/LLV(L,SJ)<=1.045;{振幅限制};
B1:=(C-REF(LLV(L,SJ),A4))/(REF(HHV(H,SJ),A4)-REF(LLV(L,SJ),A4));{KD}
B2:=MAX(MA(C,5),MA(C,10),MA(C,20))/MIN(MA(C,5),MA(C,10),MA(C,20))<=1.003;
B3:=ALL(MA(C,20)>REF(MA(C,20),1),15) AND MA(C,5)>MA(C,20) AND MA(C,10)>MA(C,20);
B4:=ALL(C>O AND C>REF(C,1),3) AND B1>0.6 AND B1<1 AND B2 AND B3;
B5:=CROSS(B1,0.9) OR CROSS(B1,0.95) OR REF(B4,1);
C1:=B5 AND A5 AND A6 AND A7 AND LB>=3 AND TIME>=93700 AND TIME<=102100;{信号}
TC:=STRFIND(STKNAME,'S',1)=0 AND CAPITAL/100/10000<=20 AND DYNAINFO(8)>=100;{剔除ST};
预警:C1 AND TC;

分时二次突破预警 源码

资源下载链接   资源大小:unknow

手机移动版 - 关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZX.COM.CN ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识