红色虚线视为警戒线,DDX为空心且突破警戒线需警惕,换手风险突破警戒线需警惕(当日换手在10%以上有效)。
收:=INDEXC;
开:=INDEXO;
高:=INDEXH;
低:=INDEXL;
Var1:=YEAR=1990 AND MONTH=12 AND DAY=19;
Var2:=BARSLAST(Var1);
Var3:=IF(Var2>=0,REF(CLOSE,Var2)*收/REF(收,Var2),0);
Var4:=IF(Var2>=0,开/收*Var3,0);
Var5:=IF(Var2>=0,高/收*Var3,0);
Var6:=IF(Var2>=0,低/收*Var3,0);
STICKLINE(Var3>Var4 OR Var3=Var4 AND Var3>=REF(Var3,1),Var6,Var5,
0.1, 0),COLOR333399;
STICKLINE(Var3>Var4 OR Var3=Var4 AND
Var3>=REF(Var3,1),Var3,Var4,7,0),COLOR333399;
x2:STICKLINE(Var3
外轨上:=0.6*A+EMA(C,20);
内轨上:=0.4*A+EMA(C,20);
内轨下:=(-0.4*A)+EMA(C,20);
外轨下:=(-0.6*A)+EMA(C,20);
ar0:=EMA(C,20);
强弱线:STICKLINE(ar0>=REF(ar0,1),ar0,ar0,8,0),COLORMAGENTA;
STICKLINE(ar0
ar1:="ezstock@IS_LASTBAR";
DRAWTEXT(C>0 AND ar1=1,0.5*A+EMA(C,20),'←超买区'),COLORYELLOW;
DRAWTEXT(C>0 AND ar1=1,(-0.5*A)+EMA(C,20),'←超卖区'),COLORGREEN;
{超买区:STICKLINE(C>0,外轨上,内轨上,2,2),COLORBBBBBB;
超卖区:STICKLINE(C>0,外轨下,内轨下,2,2),COLORBBBBBB;}
STICKLINE(C>=O,C,O,8,0),COLOR0022FF;
STICKLINE(C>=O,H,L,1,0),COLOR0022FF;
STICKLINE(C>=O,C,O,5,0),COLOR0066FF;
STICKLINE(C>=O,C,O,3,0),COLOR0099FF;
STICKLINE(C>=O,C,O,1.5,0),COLOR00DDFF;
STICKLINE(C>=O,H,L,0,0),COLOR00DDFF;
STICKLINE(C<=O,C,O,8,0),COLORFF2200;
STICKLINE(C<=O,H,L,1,0),COLORFF2200;
STICKLINE(C<=O,C,O,5,0),COLORFF6600;
STICKLINE(C<=O,C,O,3,0),COLORFF9900;
STICKLINE(C<=O,C,O,1.5,0),COLORFFDD00;
STICKLINE(C<=O,H,L,0,0),COLORFFDD00;
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,LINETHICK2;
PARTLINE(j,j > (REF(强弱线,3)),RGB(255,0,0)),linethick3,COLORWHITE;