突破锅顶 源码 附图 说明
LT:=LLVBARS(L,60);
LT1:=LLVBARS(L,60);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
HT:=FINDHIGHBARS(H,LT+1,60,1);
DT:=FINDLOW(L,LT1+1,60,1);
锅顶:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLORYELLOW,LINETHICK2;
TT:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);
AA:=CROSS(C,CONST(锅顶));
TJ:=COUNT(AA,TT+1)=1 AND AA;
TJ1:=COUNT(V<MA(V,277),TT+1) ;
BL:=TJ1/(TT+1)*100;
XG:=TJ AND TT>40 AND BL>70;
XGT:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(XG))+1);
ZH:=REF(H,TT);
YL:=REF(L,LTT);
XC:=REF(C,XGT);
YZ:=(XC-YL)/YL*100;
ZBL:=YZ/REF(LTT,XGT);
XGA:=XG AND ZBL<2.95;
BB:DRAWLINE(TT=0,H,LTT=0,L,0),COLORRED,LINETHICK2;
锅底:DRAWLINE(CURRBARSCOUNT>CONST(LT1)+0,L,ISLASTBAR,REF(L,LT1),0),COLORWHITE,LINETHICK3;
B:=DRAWLINE(CURRBARSCOUNT>DLOW,L,ISLASTBAR,REF(H,DLOW),0),COLORRED,LINETHICK2;
DRAWLINE(LTT=0,L,XGT=0,L,0),COLORRED;
DRAWICON(XGA,L*0.95,9);
XG1:=TJ AND TT>40 AND BL>20;
未来函数检测结果如下:
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
LT赋值:LLVBARS(L,60)
LT1:=LLVBARS(L,60)
LTT:=上次CURRBARSCOUNT=CONST(LT距今天数+1)
HT赋值:FIND最高价BARS(H,LT+1,60,1)
DT赋值:FIND最低价(L,LT1+1,60,1)
输出锅顶:DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,HT日前的H,0),画黄色, 线宽为2
TT赋值:上次CURRBARSCOUNT=CONST(HT距今天数+1)
AA赋值:CROSS(C,CONST(锅顶))
TJ赋值:统计TT+1日满足AA的天数=1 AND AA
TJ1:=COUNT(V
BL赋值:TJ1/(TT+1)*100
XG赋值:TJ AND TT>40 AND BL>70
XGT:=上次CURRBARSCOUNT=CONST(BARSLAST(XG距今天数)+1)
ZH赋值:TT日前的H
YL赋值:LTT日前的L
XC赋值:XGT日前的C
YZ赋值:(XC-YL)/YL*100
ZBL赋值:YZ/XGT日前的LTT
XGA:=XG AND ZBL<2.95
输出BB:DRAWLINE(TT=0,H,LTT=0,L,0),画红色, 线宽为2
输出锅底:DRAWLINE(CURRBARSCOUNT>CONST(LT1)+0,L,ISLASTBAR,LT1日前的L,0),画白色, 线宽为3
B赋值:DRAWLINE(CURRBARSCOUNT>D最低价,L,ISLASTBAR,D最低价日前的H,0),画红色, 线宽为2
DRAWLINE(LTT=0,L,XGT=0,L,0),画红色
当满足条件XGA时,在L*0.95和9之间画图标
XG1:=TJ AND TT>40 AND BL>20