股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 分时二次突破(源码大智慧飞狐)


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-3-16 18:00:19
分时二次突破(源码大智慧飞狐)介绍

分时二次突破(源码大智慧飞狐)

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

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


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

 






gd32199

回复

举报

QQ|

GMT+8, 2024-11-16 17:52

快速回复 返回顶部 返回列表