能量守恒线:0,COLORYELLOW,LINETHICK2;
H50:=EMA(H,50);
长期乖离:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100,COLORYELLOW,STICK,LINETHICK2;
中期:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100,COLORFF00FF,STICK,LINETHICK3;
短期:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100,COLORRED,STICK,LINETHICK2;
STICKLINE(短期<0,0,短期,8,0),COLORBLUE;
STICKLINE(短期>0,0,短期,8,1),COLORRED;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR2>50 AND COST(85)<CLOSE AND C>REF(C,1),短期,0,8,0),COLORMAGENTA;
通道上:=EMA(短期,17)+1.618*STD(长期乖离,17),COLORFF8000,DOTLINE;
通道下:=EMA(短期,17)-1.618*STD(长期乖离,17),COLORFF8000,DOTLINE;
轨迹:=短期,COLORMAGENTA;
ZJ:=(通道上+通道下)/2,COLORGREEN,DOTLINE;
IF(轨迹>0 ,0,
DRAWNULL),COLORRED;
X3:=EMA(短期,8),COLORCYAN;
X2:=EMA(短期,5),COLORYELLOW,LINETHICK2;
次顶:5,COLORCYAN;
次底:-5,COLORCYAN;
大顶:10,COLORCYAN;
大底:-10,COLORCYAN;
爆发点:=(DCLOSE-REF(C,1))/REF(C,1)*100;
起爆1:=CROSS(爆发点,18) OR CROSS(爆发点,13);
起爆:=BARSLAST(起爆1>0);
STICKLINE(起爆=0,0,-5,2,0 ),COLORLIRED;
STICKLINE(起爆=0,-4,-5,10,0),COLORGREEN;
DRAWTEXT(起爆=0,-9,'起爆'),COLORGREEN;
DRAWTEXT(CROSS(短期,0),-2,'游资'),COLORCYAN;
DRAWTEXT(CROSS(X2,5),-5,'机构'),COLORCYAN;
K:SMA(短期,5,1),COLORWHITE;
D:SMA(K,3,1),COLORLIGREEN,LINETHICK2;
J:3*K-2*D,COLORMAGENTA,LINETHICK2;