通达信KD比较法主图指标公式
RSV:=((C-LLV(L,9))/(HHV(H,9)-LLV(L,9)))*100-50;
KX:=SMA(RSV,3,1);
DX:=SMA(KX,3,1);
KK:=IF(KX》DX,5,-5);
STICKLINE(KK=5,L,H,0.2,0),COLOR0000CC;
STICKLINE(KK=5 AND C》=O,C,O,3,1),COLOR0000CC;
STICKLINE(KK=5 AND C《O,C,O,3,0),COLOR0000CC;
STICKLINE(KK=-5,L,H,0.2,0),COLOR00AA00;
STICKLINE(KK=-5 AND C》=O,C,O,3,1),COLOR00AA00;
STICKLINE(KK=-5 AND C《O,C,O,3,0),COLOR00AA00;
涨停:=IF(1.1*REF(C,1)-C《0.01,1,0);
STICKLINE(涨停,O,C,1,0),COLOR0099FF;
跌停:=IF(C-0.9*REF(C,1)《0.01,1,0);
STICKLINE(跌停,O,C,1,0),COLORBLUE;
HD0:=CROSS(KX,DX);
金收:REF(C,BARSLAST(HD0)),COLORYELLOW,DOTLINE;
DRAWNUMBER(ISLASTBAR,金收,金收),COLOR00FFFF;
LD0:=CROSS(DX,KX);
死收:REF(C,BARSLAST(LD0)),COLOR00FF00,DOTLINE; {低点}
DRAWNUMBER(ISLASTBAR,死收,死收),COLOR00FF00;
DRAWICON(金收》死收 AND CROSS(KX,DX),L*0.99,1);
DRAWICON(金收》死收 AND CROSS(DX,KX),H*1.01,2);
(股票知识网zhishi.southmoney.com)
要闻导读
|
||||||||||
|