通达信暴涨点副图/选股预警源码

MA5:=MA(C,5);
MA10:=MA(CLOSE,10);
MA60:=MA(CLOSE,60);
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
BAIJIN3:=GJTJ1>60 AND GJTJ4>70;

HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;

XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;

ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));
ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;
ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;
ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;

AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA1:=AA AND BB;
AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA2:=AAA AND BAA ;
AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
AA3:=AAAA AND BAAA ;
BB1:=REF(AA1,1);
BB2:=REF(AA2,1);
BB3:=REF(AA3,1);
DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;
DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;
DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;

暴涨点:COUNT(XG,3)=1 AND XG AND C>MA(C,20);




来函数检测结果如下:
该公式没有未来函数


解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

MA5赋值:C的5日简单移动平均
MA10赋值:收盘价的10日简单移动平均
MA60赋值:收盘价的60日简单移动平均
GJTJ1赋值:100*(C-5日内L最低值)/(5日内C最高值-5日内L最低值)
GJTJ2赋值:100*(C-10日内L最低值)/(10日内C最高值-10日内L最低值)
GJTJ3赋值:100*(C-20日内L最低值)/(20日内C最高值-20日内L最低值)
GJTJ4赋值:100*(C-30日内L最低值)/(30日内C最高值-30日内L最低值)
BAIJIN1赋值:上次30上穿GJTJ1距今天数<2 AND BARSLAST(GJTJ1上穿50)<2
BAIJIN2赋值:上次GJTJ4上穿GJTJ1距今天数<2 AND GJTJ1>GJTJ4
BAIJIN3赋值:GJTJ1>60 AND GJTJ4>70

HUANGJIN1赋值:上次50上穿GJTJ1距今天数<3 AND BARSLAST(GJTJ1上穿50)<3
HUANGJIN2赋值:上次GJTJ4上穿GJTJ1距今天数<2 AND GJTJ1>GJTJ4

XG赋值:上次GJTJ4上穿GJTJ1距今天数<5 AND GJTJ1>GJTJ4

ZHENCANG1赋值:上次GJTJ4上穿GJTJ1距今天数>3 AND BARSLAST(GJTJ1上穿GJTJ4)<3
ZHENCANG2赋值:上次GJTJ4上穿GJTJ2距今天数
ZHENCANG3赋值:GJTJ3 ZHENCANG4赋值:上次GJTJ4上穿GJTJ3距今天数>3 AND BARSLAST(GJTJ1上穿GJTJ4)<3
ZHENCANG5赋值:GJTJ2 ZCB1赋值:ZHENCANG1>0 AND 1日前的ZHENCANG1=0 AND 2日前的ZHENCANG1>0

AA赋值:上次97上穿GJTJ1距今天数<=1 AND BARSLAST(GJTJ1上穿85)<=1
BB赋值:上次97上穿GJTJ2距今天数<=1 AND BARSLAST(GJTJ2上穿85)<=1
AA1赋值:AA AND BB
AAA赋值:上次97上穿GJTJ1距今天数<=2 AND BARSLAST(GJTJ1上穿85)<=1
BAA赋值:上次97上穿GJTJ2距今天数<=2 AND BARSLAST(GJTJ2上穿85)<=1
AA2赋值:AAA AND BAA
AAAA赋值:上次97上穿GJTJ1距今天数<=3 AND BARSLAST(GJTJ1上穿85)<=1
BAAA赋值:上次97上穿GJTJ2距今天数<=3 AND BARSLAST(GJTJ2上穿85)<=1
AA3赋值:AAAA AND BAAA
BB1:=1日前的AA1
BB2:=1日前的AA2
BB3:=1日前的AA3
DD1赋值:GJTJ1=100 AND GJTJ2=100 AND AA1
DD2赋值:GJTJ1=100 AND GJTJ2=100 AND AA2
DD3赋值:GJTJ1=100 AND GJTJ2=100 AND AA3
输出

暴涨点:统计3日满足XG的天数=1 AND XG AND C>C的20日简单移动平均


指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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