当前位置:→ 股海网飞狐公式 → 正文
  • 飞狐小指标4-分时二次突破(源码大智慧)

  • 相关简介:大智慧飞狐都一样,先建名为Z01的指标,以前已有Z01指标看情况把源码加到后面 {Z01} 昨量:REF(V,1); VM5:REF(MA(V,5),1); 再建选股指标,预警是周期选择1分钟 {大智慧版,有kingwa这个DLL文件就用这个,默认自动到自选股3板块,要建个自选股3} {分时二突} SJ:=BARSLAST(DAYREF(DAY,1) OR BARPOS=1)+1; LB:=SUM(V,SJ)*240/DYNAINFO(38)/SJ; LBA:=V/(Z01.昨量#DAY/240

  • 文章来源:股海网作者:股海网发布时间:2013-12-28浏览次数:下载次数:0

大智慧飞狐都一样,先建名为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;

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

飞狐小指标4-分时二次突破(源码大智慧)

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2013-12-28
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.