以下是通达信居高临下画角度线主图指标源码贴图
网上找的画角度线指标
LT:=FINDLOWBARS(L,0,30,1);{原句为LT:=FINDLOWBARS(L,0,30,1);}
HT:=FINDHIGHBARS(H,LT=0,60,1);{原句为HT:=FINDHIGHBARS(H,LT=0,60,1);}
LL:=REF(L,LT);
HH:=REF(H,HT);
NOTEXT1:DRAWLINE(HT=0,HH,LT=0,HH,1),COLORYELLOW;
NOTEXT2:DRAWLINE(HT=0,HH,LT=0,LL,1),COLORYELLOW;
NOTEXT3:DRAWLINE(HT=0,HH,LT=0,(HH-LL)*0.25+LL,1),DOTLINE,COLORLIMAGENTA;
NOTEXT4:DRAWLINE(HT=0,HH,LT=0,(HH-LL)*0.5+LL,1),DOTLINE,COLORLIBLUE;
NOTEXT5:DRAWLINE(HT=0,HH,LT=0,(HH-LL)*0.75+LL,1),DOTLINE,COLORLIGREEN;
NOTEXT6:DRAWLINE(HT=0,HH,LT=0,(HH-LL)*0.875+LL,1),DOTLINE,COLORLIGRAY;
DRAWNUMBER(ISLASTBAR,NOTEXT3,0.25);
DRAWNUMBER(ISLASTBAR,NOTEXT4,0.5);
DRAWNUMBER(ISLASTBAR,NOTEXT5,0.75);
DRAWNUMBER(ISLASTBAR,NOTEXT6,0.875);
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)