居高临下画角度线 添加到主图上即可
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);
未来函数检测结果如下:
该公式包含未来函数:DHIGH
该公式包含未来函数:DLOW
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
LT赋值:FIND最低价BARS(L,0,30,1)
{原句为LT赋值:FIND最低价BARS(L,0,30,1)
}
HT赋值:FIND最高价BARS(H,LT=0,60,1)
{原句为HT赋值:FIND最高价BARS(H,LT=0,60,1)
}
LL赋值:LT日前的L
HH赋值:HT日前的H
输出
{}
NOTEXT1:DRAWLINE(HT=0,HH,LT=0,HH,1),画黄色
输出
NOTEXT2:DRAWLINE(HT=0,HH,LT=0,LL,1),画黄色
输出
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)