LC := REF(CLOSE,1);//前一周期收盤價
RSI:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
A:=(3*C+L+O+H)/6,NODRAW;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
KKA:=EMA(C,5);
KKB:=EMA(KKA,8);
KKC:=EMA(KKB,13);
行情線:=EMA(A,1);
N:=90;
M:=3;
海底:=REF(LLV(L,N),M),COLORMAGENTA,NODRAW;
低:=REF(LLV(L,N),M);
低點:=REFX1(低,10000);
絕底:=低點=L AND ((C-L)>(0-C) OR (O-L)>(C-O));
STICKLINE(絕底,C,O,4,0),COLORYELLOW;
STICKLINE1(絕底,L,H,1.5,0),COLORRED;
STICKLINE1(絕底,L,H,0.001,0),COLORRED;
DRAWTEXT(絕底,L*0.99,'【………】'),COLORRED;
DRAWTEXT(絕底,L*0.99,'絕底'),COLORYELLOW;
DRAWICON(CROSS(74,RSI),HIGH*1.01,8);
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
買:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWICON(FILTER(買=1,7),LOW*0.95,7);
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(84,VARC),H*1.001,'頂'),COLORGREEN,NODRAW;
日:=150;
昨前:=3;
高1:=REF(HHV(H,日),昨前);
天頂:REFX1(高1,10000),NODRAW,COLORCYAN;
頂:=REFX1(高1,10000);
極頂:=REFX1(頂,10000);
跑:=極頂=H AND ((C-L)<(O-C) OR (O-L)<(C-O));
STICKLINE(跑,C,O,4,0),COLORWHITE;
STICKLINE(跑,C,O,2,0),COLORBLUE;
STICKLINE1(跑,L,H,0.001,0),COLORGREEN;
DRAWTEXT(跑,H*1.01,'絕頂'),COLORGREEN;
DRAWTEXT(跑,H*1.01,'【………】'),COLORGREEN;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
聯(lián)系客服