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

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




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

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

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