源码
H1:EMA(CLOSE,6);
H2:EMA(H1,18);
HH1:EMA(C,30);
HH2:EMA(HH1,18);
HH3:EMA(C,108);
HH4:EMA(HH3,18);
H4:EMA(CLOSE,540),LINETHICK2,colorwhite;
STICKLINE(H1>H2,H1,H2,8,1),coloryellow;
STICKLINE(H1<H2,H1,H2,8,1),colorgreen;
STICKLINE(HH1>HH2,HH1,HH2,4,0),coloryellow;
STICKLINE(HH1<HH2,HH1,HH2,4,0),colorgreen;
STICKLINE(HH3>HH4,HH3,HH4,8,0),colorlimagenta;
STICKLINE(HH3<HH4,HH3,HH4,8,0),colorwhite;
STICKLINE(CLOSE>0 ,CLOSE,OPEN,10,0),color000000;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,9,0 ),COLOR999900;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLORbbbb00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,6,0 ),COLORcccc00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,4,0 ),COLORdddd00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
STICKLINE(OPEN>CLOSE ,HIGH,LOW,2,0 ),COLORffff00;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,9,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR0000bb;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,6,0) ,COLOR0000cc;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,2,0) ,COLOR0000ee;
STICKLINE(CLOSE>=OPEN ,HIGH,LOW,2,0 ),COLOR000fFF;
A2:=MA(C,18);
A3:=(C-A2)/A2*100>=-9.9 AND C<A2;
A4:=A3 AND C/REF(C,1)>1.099;
STICKLINE(A4,CLOSE,OPEN,4,0),colormagenta;
DRAWTEXT(A4,L*0.95,'↖谷底涨停'),colormagenta;
X1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
X2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),X1);
金线王:=EMA(X2,200)*1.118;
DF:=(C-REF(C,1))/REF(C,1)*100>9;
金K线:=CROSS(C,金线王) AND DF;
DRAWTEXT(金K线,L*0.95,'↖金K线'),coloryellow;
STICKLINE(金K线,CLOSE,OPEN,4,0),COLOR0077FF;
STICKLINE(金K线,CLOSE,OPEN,3,0),COLOR0099FF;
STICKLINE(金K线,CLOSE,OPEN,2,0),COLOR00BBFF;
STICKLINE(金K线,CLOSE,OPEN,1,0),COLOR00DDFF;
STICKLINE(金K线,CLOSE,OPEN,0.3,0),COLOR00FFFF;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
下:=(1-7/100)*DD;
买点:=REF(下,2)>REF(下,1) AND 下>REF(下,1);
STICKLINE(买点,CLOSE,OPEN,4,0),colorgreen;
DRAWTEXT(买点,L*0.95,'↖买点'),colorgreen;