高1:=REF(HHV(H,150),3);
低1:=REF(LLV(L,150),3);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
{頂:REFDATE(高1,DATE),POINTDOT,COLORWHITE;}
%19:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;
%38:REFDATE(H2,DATE),POINTDOT,COLORYELLOW;
%50:REFDATE(H3,DATE),POINTDOT,COLORWHITE;
%61:REFDATE(H4,DATE),POINTDOT,COLORYELLOW;
%80:REFDATE(H5,DATE),POINTDOT,COLORYELLOW;
突破:REF(EMA(C,14),1)COLORMAGENTA,LINETHICK2;
A1X:=(EMA(C,14)-突破)/突破*100,NODRAW;
出擊:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK2;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL)COLORGREEN,LINETHICK2; STICKLINE(A1X>=0,出擊,突破,0,-1)COLORRED;
STICKLINE(A1X<0,休假,突破,0,-1)COLORGREEN;
STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;
STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;
※:IF(A1X<0,突破,DRAWNULL)COLORGREEN,LINETHICK2;
DP:=REF(EMA(INDEXC,14),1);
DPX:=(EMA(INDEXC,14)-DP)/DP*100;
STICKLINE(DPX>=0 AND A1X>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED; STICKLINE(DPX<0 AND A1X<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN; STICKLINE(NOT(DPX>=0 AND A1X>=0) AND NOT(DPX<0 AND A1X<0),REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORYELLOW;
A1:=IF(CLOSE>MA(CLOSE,10),H,DRAWNULL); A2:=IF(C>MA(C,10)&&C>=O,O-0.001,IF(C>MA(C,10)&&O>C,C,DRAWNULL)); A3:=IF(CLOSE>MA(CLOSE,10),L,DRAWNULL); A4:=IF(C>MA(C,10)&&C>=O,C,IF(C>MA(C,10)&&O>C,O,DRAWNULL)); STICKLINE(CLOSE>MA(CLOSE,10),H,L,0,1),COLORRED; DRAWKLINE(A1,A2,A3,A4); LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE-LC),0),9,1)/SMA(ABS((CLOSE-LC)),9,1))*100); STICKLINE((RSI < 20),LOW,HIGH,0,1),COLORLIGREEN; STICKLINE((RSI < 20),OPEN,CLOSE,-1,1),COLORLIGREEN; DRAWICON(CROSS(RSI,(20 - 0.0005)),LOW*0.99,1); 十:MA(CLOSE,10),COLORWHITE; RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100); K:=SMA(RSV,3,1); D:=SMA(K,3,1); YX:=((CLOSE>LC) AND C>O); KK:=HHV(K,5); DD:=HHV(D,5); D1:=REF(D,1); K1:=REF(K,1); DRAWTEXT((((D1<30) AND CROSS(K,D)) AND YX),(LOW),'△'),COLORYELLOW;
DRAWTEXT((((D1<30) AND CROSS(K,D)) AND YX),(LOW * 0.992),'↑'),COLORYELLOW; {DRAWTEXT(((DD>70) AND CROSS(D,K)),HIGH*1.02,'*'),COLORFF00CC;} DRAWICON(((DD>70) AND CROSS(D,K)),H*1.001,2); 三0高:MA(H,30),COLORYELLOW;
|
|