通达信极品黄金分割主图指标
{N1=20 N2=40}
S1:=HHVBARS(H,N2)+1;
S2:=CONST(S1);
H1:=CONST(REF(H,S1-1));
S3:=LLVBARS(L,N1)+1;
S4:=CONST(S3);
L1:=CONST(REF(L,S3-1));
最高:IF(CURRBARSCOUNT<=S2,H1,DRAWNULL);
最低价:IF(CURRBARSCOUNT<=S4 ,L1,DRAWNULL),COLORLIGRAY;
VAR1:=最高-最低价;
涨:((CLOSE-最低价)/VAR1)*100,COLORRED,NODRAW;
涨H:((H-最低价)/VAR1)*100,COLORRED,NODRAW;
回调:100-涨,COLORRED,NODRAW;
A1:=((L-最低价)/VAR1)*100;
回调L:100-A1,COLORRED,NODRAW;
_191%:最低价+VAR1*0.191,COLORGREEN;
_236%:最低价+VAR1*0.236,COLORWHITE;
_382%:最低价+VAR1*0.382,COLORRED,LINETHICK3;
_50%:最低价+VAR1*0.5,COLORYELLOW;
_618%:最低价+VAR1*0.618,COLORLIBLUE;
_809%:最低价+VAR1*0.809,COLORLIMAGENTA;
IF(S4<=S2,DRAWLINE(CURRBARSCOUNT=S2,H1,CURRBARSCOUNT=S4,L1,0),DRAWLINE(CURRBARSCOUNT=S4,L1,CURRBARSCOUNT=S2,H1,0));
STICKLINE(CURRBARSCOUNT=S4,L,最高,0.1,-1),COLORRED;
STICKLINE(CURRBARSCOUNT=S2,H,最低价,0.1,-1),COLORRED;
CURRBARSCOUNT,NODRAW;
{牛牛指标网提供 www.tdx001.com}
1817111237.jpg
|