以下是通达信上升下降通道看盘主图源码

通达信公式上升下降通道看盘主图

LT:=LLVBARS(L,100);
HT:=HHVBARS(H,60);
LT1:=FINDLOWBARS(L,HT+1,30,1);
LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);
LTT1:=BARSLAST(CURRBARSCOUNT=CONST(LT1)+1);
HT1:=FINDHIGHBARS(H,LTT1,LTT+1,1);
HT1T:=BARSLAST(CURRBARSCOUNT=CONST(HT1)+1);
HT2T:=BARSLAST(CURRBARSCOUNT=CONST(HT)+1);
TJ:=L>REF(L,LTT);
TJ1:=H>REF(H,HT1T);
下轨:DRAWLINE(LTT=0,L,LTT1=0 AND TJ,L,1),COLORYELLOW,DOTLINE;
上轨:DRAWLINE(HT1T=0,H,HT2T=0 AND TJ1,H,1),COLORYELLOW,DOTLINE;
XLT:=FINDLOWBARS(H,0,HT2T+1,1);
XLT1:=BARSLAST(CURRBARSCOUNT=CONST(XLT)+1);
XH1T:=FINDHIGHBARS(H,XLT1,10,1);
XH1TT:=BARSLAST(CURRBARSCOUNT=CONST(XH1T)+1);
DF:=(C-REF(C,HT2T+1))/REF(C,HT2T+1)*100;
XL2TT:=BARSSINCEN(DF<-15,HT2T+1);
TJ2:=H<REF(H,HT2T);
TJ3:=L<REF(L,XL2TT);
上:DRAWLINE(HT2T=0,H,XH1TT=0 AND TJ2,H,1),COLORGREEN,DOTLINE;
下:DRAWLINE(XL2TT=0,L,XLT1=0 AND TJ3,L,1),COLORGREEN,DOTLINE;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。