【通達(dá)信】線的角度主圖指標(biāo)公式
攻城獅 2015.11.09 04:30
N:=10;
HH20:=CONST(HHV(H,N*3));
LL20:=CONST(LLV(L,N*3));
K:=(HH20-LL20)/(N),NODRAW;
XY:DRAWLINE(CURRBARSCOUNT=N,LL20,CURRBARSCOUNT=1,HH20,0),LINETHICK1,COLORFFFFFF;
YX:DRAWLINE(CURRBARSCOUNT=N,HH20,CURRBARSCOUNT=1,LL20,0),LINETHICK1,COLORFFFFFF;
中位線:(XY+YX)/2,LINETHICK1,COLORFFFFFF;
XX:IF(CURRBARSCOUNTYY:IF(CURRBARSCOUNT STICKLINE(CURRBARSCOUNT=1,HH20,LL20,0,0),COLORFFFFFF;
STICKLINE(CURRBARSCOUNT=N,HH20,LL20,0,0),COLORFFFFFF;
參考標(biāo)準(zhǔn)角:ATAN((HH20-LL20)/(N*K))*57.29633,COLORFFFFFF,NODRAW;
MAN:=MA(C,N),COLORAAAAFF;
DRAWTEXT(CURRBARSCOUNT=N-2,LL20*1.03,’主圖畫面參考標(biāo)準(zhǔn)角=45°’),COLORAAFFFF;
X角K:=CONST(REF(MAN,1)-MAN)*(CURRBARSCOUNT-1)+CONST(MAN);
{www.gUPang.com 概念股網(wǎng)_最新股票指標(biāo)公式}
MAN角斜線:DRAWLINE(CURRBARSCOUNT=N,X角K,CURRBARSCOUNT=1,X角K,0),LINETHICK2,COLOR00FFFF;
MAN角水平線:IF(CURRBARSCOUNT<=N,CONST(REF(MAN角斜線,N-1)),DRAWNULL),LINETHICK2,COLOR00FFFF;
STICKLINE(CURRBARSCOUNT=1,CONST(MAN角水平線),MAN角斜線,0.03,0),COLOR00FFFF;
MAN線:MAN,LINETHICK2,COLORAAAAFF;
MAN角:CONST(ATAN((MAN角斜線-MAN角水平線)/(N*K))*57.29633),NODRAW;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://m.guangshenggb.com/ 上發(fā)表,為其獨(dú)立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。