 | |  |  |
飞狐KDJ+ZT源码公式:
{N0=1;N1=6}
A:=C/N1;
外轨上:=0.6*A+EMA(C,20);
内轨上:=0.4*A+EMA(C,20);
内轨下:=(-0.4*A)+EMA(C,20);
外轨下:=(-0.6*A)+EMA(C,20);
FILLRGN(C>0,内轨上,内轨下),COLOR344434;
外轨上,COLORFFFFFF,LINETHICK3;
内轨上,COLORCCCCCC,LINETHICK2;
内轨下,COLORCCCCCC,LINETHICK2;
外轨下,COLORFFFFFF,LINETHICK3;
{超买区:}FILLRGN(C>0,外轨上,内轨上),COLOR8888CC;
{超卖区:}FILLRGN(C>0,外轨下,内轨下),COLOR999966;
强弱线:EMA(C,20),COLORMAGENTA,linethick2;
PARTLINE(EMA(C,20)<REF(EMA(C,20),1),EMA(C,20)),COLORGREEN,linethick2;
STICKLINE(C>=O,H,L,1,0),COLOR0000FF;
STICKLINE(C>=O,H,L,0,0),COLOR00FFFF;
STICKLINE(C>=O,C,O,8,0),COLOR0000FF;
STICKLINE(C>=O,C,O,7,0),COLOR0033FF;
STICKLINE(C>=O,C,O,6,0),COLOR0055FF;
STICKLINE(C>=O,C,O,5,0),COLOR0077FF;
STICKLINE(C>=O,C,O,4,0),COLOR0099FF;
STICKLINE(C>=O,C,O,3,0),COLOR00BBFF;
STICKLINE(C>=O,C,O,2,0),COLOR00DDFF;
STICKLINE(C>=O,C,O,1,0),COLOR00FFFF;
STICKLINE(C<=O,H,L,1,0),COLORFF0000;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
STICKLINE(C<=O,C,O,8,0),COLORFF0000;
STICKLINE(C<=O,C,O,7,0),COLORFF3300;
STICKLINE(C<=O,C,O,6,0),COLORFF5500;
STICKLINE(C<=O,C,O,5,0),COLORFF7700;
STICKLINE(C<=O,C,O,4,0),COLORFF9900;
STICKLINE(C<=O,C,O,3,0),COLORFFBB00;
STICKLINE(C<=O,C,O,2,0),COLORFFDD00;
STICKLINE(C<=O,C,O,1,0),COLORFFFF00;
DRAWTEXT(C>0 AND ISLASTBAR=1,0.52*A+EMA(C,20),'←超买区'),COLORYELLOW;
DRAWTEXT(C>0 AND ISLASTBAR=1,(-0.42*A)+EMA(C,20),'←超卖区'),COLORGREEN;
RSV1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9));
RSV2:=(RSV1-0.5)/5*EMA(C,20);
RSVK:=SMA(RSV2,3,1);
RSVD:=SMA(RSVK,3,1);
RSVJ:=RSVK*3-RSVD*2;
K:RSVK+EMA(C,20),COLORwhite;
D:RSVD+EMA(C,20),COLORYELLOW;
J:RSVJ+EMA(C,20),COLORred,LINETHICK1; |
| |  | |  |
|