乾坤数理“股中得乐版”主图 源码 贴图 通达信
T:=BARSLAST(CURRBARSCOUNT=CONST(LLVBARS(L,60))+1);
TT:=BARSLAST(CURRBARSCOUNT=CONST(T)+7);
T3:=BARSLAST(CURRBARSCOUNT=CONST(T)+2);
T03:=BARSLAST(CURRBARSCOUNT=CONST(T)-2);
XL:=REFX(L,BARSNEXT(T=0));
A:=CONST(REF(L,T));
DRAWLINE(T=0,L,ISLASTBAR,REF(L,T),0),COLORRED,LINETHICK3;
DRAWTEXT(TT=0,XL*1.02,VARCAT(VARCAT('底部价:',VAR2STR(CONST(REF(L,T)),2)),'元')),COLORRED;
DRAWLINE(T03=0,A+A*0.3,ISLASTBAR,A+A*0.3,0),COLORCYAN;
DRAWLINE(T03=0,A+A*0.6,ISLASTBAR,A+A*0.6,0),COLORCYAN;
DRAWLINE(T03=0,A+A*1.2,ISLASTBAR,A+A*1.2,0),COLORCYAN;
DRAWLINE(T=0,A+A*0.8,ISLASTBAR,A+A*0.8,0),COLORRED,LINETHICK3;
DRAWLINE(T=0,A+A*1.4,ISLASTBAR,A+A*1.4,0),COLORRED,LINETHICK3;
DRAWTEXT(T3=0,CONST(A+A*0.8)*1.04,'1.08'),COLORRED;
DRAWTEXT(T3=0,CONST(A+A*1.4)*1.04,'1.14'),COLORRED;
DRAWTEXT(T03=0,CONST(A+A*0.3)*1.04,'1.03'),COLORYELLOW;
DRAWTEXT(T03=0,CONST(A+A*0.6)*1.04,'1.06'),COLORYELLOW;
DRAWTEXT(T03=0,CONST(A+A*1.2)*1.04,'1.2'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:BARSNEXT
该公式包含未来函数:REFX
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
T赋值:上次CURRBARSCOUNT=CONST(LLVBARS(L,60距今天数)+1)
TT赋值:上次CURRBARSCOUNT=CONST(T距今天数+7)
T3:=上次CURRBARSCOUNT=CONST(T距今天数+2)
T03:=上次CURRBARSCOUNT=CONST(T距今天数-2)
XL赋值:REFX(L,BARSNEXT(T=0))
A赋值:CONST(T日前的L)
DRAWLINE(T=0,L,ISLASTBAR,T日前的L,0),画红色,LINETHICK3
DRAWTEXT(TT=0,XL*1.02,VARCAT(VARCAT('底部价:',VAR2STR(CONST(T日前的L),2)),'元')),画红色
DRAWLINE(T03=0,A+A*0.3,ISLASTBAR,A+A*0.3,0),画青色
DRAWLINE(T03=0,A+A*0.6,ISLASTBAR,A+A*0.6,0),画青色
DRAWLINE(T03=0,A+A*1.2,ISLASTBAR,A+A*1.2,0),画青色
DRAWLINE(T=0,A+A*0.8,ISLASTBAR,A+A*0.8,0),画红色,LINETHICK3
DRAWLINE(T=0,A+A*1.4,ISLASTBAR,A+A*1.4,0),画红色,LINETHICK3
DRAWTEXT(T3=0,CONST(A+A*0.8)*1.04,'1.08'),画红色
DRAWTEXT(T3=0,CONST(A+A*1.4)*1.04,'1.14'),画红色
DRAWTEXT(T03=0,CONST(A+A*0.3)*1.04,'1.03'),画黄色
DRAWTEXT(T03=0,CONST(A+A*0.6)*1.04,'1.06'),画黄色
DRAWTEXT(T03=0,CONST(A+A*1.2)*1.04,'1.2'),画黄色