N:=10;
ZF:=5;
BDGD:=C=HHV(C,N);
GDSJ:=BARSLAST(BDGD);
底:LLV(L,N),COLORFF9933,LINETHICK1,CROSSDOT;
頂:HHV(H,N),COLOR0099CC,LINETHICK1,CROSSDOT;
前高:IF(GDSJ>0,REF(C,GDSJ),REF(C,GDSJ)),COLORFFFF00,POINTDOT,LINETHICK2;
MA5:MA(C,5),LINETHICK2,COLORFF00FF;
MA13:MA(C,13),LINETHICK2,COLOR00FF00;
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=SMA(C,120,1);
TP:=CROSS(C,REF(前高,1));
出擊:=TP AND COUNT(TP,5)=1;
TPSJ:=BARSLAST(出擊);
HC:=CROSS(REF(前高,TPSJ 1),L) OR CROSS(REF(前高,TPSJ),C);
回踩:=HC AND TPSJ>1;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
放量上漲:=CLOSE/REF(CLOSE,1)>=1.01 AND VOL/REF(VOL,1)>=1.5 AND VOL>MA(VOL,5) AND REF(VOL,1)/REF(MA(VOL,5),1)<=1.8;
箱體形成:=((HHV(C,3)/LLV(C,N)-1)*100<=ZF AND (HHV(C,N)/LLV(C,3)-1)*100<=ZF)*0.3;
接近箱頂:=(CLOSE/REF(HHV(CLOSE,N),2)<=1.02 AND HIGH/REF(HHV(CLOSE,N),2)>=0.98)*0.5;
P1:=BARSLAST(箱體形成);
P2:=BARSLAST(接近箱頂);
期待突破:=(放量上漲 AND 接近箱頂 AND P1<=3 AND P2<=1)*2;
關注:=(放量上漲 AND 接近箱頂)*1;
ZH520:=ABS(MA5-MA20)/MA20*100<=N;
ZH530:=ABS(MA5-MA30)/MA30*100<=N;
QSXS1:=MA5>REF(MA5,1);
QSXS2:=MA20>REF(MA20,1);
QSXS3:=MA30>REF(MA30,1);
DTPL:=MA20>MA30 AND MA30>MA120;
LYHT:=DTPL AND QSXS2 AND QSXS3 AND NOT(QSXS1) AND REF(QSXS1,1);
老鴨回頭:=LYHT*50;
WR5:=100*(HHV(H,5)-C)/(HHV(H,5)-LLV(L,5));
WR6:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
WR:=80-(WR5*3 WR6*2)/5;
坑:=IF(WR<0,WR,0);
LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;
GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));
LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;
買:=(LYKK AND NOT(REF(LYKK,1)))*50;
買1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
賣1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
VARC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
優選:=(買 AND COUNT((MA13>MA20),5)=5)*100;
{以下設置主圖顯示方式}
{DRAWTEXT(老鴨回頭,(MA13 MA20)/2, '○');
DRAWTEXT(WR<0,L*0.99, '#'),COLORYELLOW;
DRAWTEXT(WR<-10,L*0.99, '#'),COLORWHITE;
STICKLINE(買,H,L,1,0),COLOR00FF00,LINETHICK2;
STICKLINE(買,O,C,3,1),COLOR00FF00,LINETHICK2;}
DRAWTEXT(買>0,L*0.99, ''),COLORRED;
DRAWICON(優選>0,L*0.99,1);
DRAWICON(CROSS(82,VARC),HIGH,2);
DRAWTEXT(CROSS(84,VAR7),H*1.01,'頂'),COLORFFFF00;
DRAWTEXT(FILTER(買1=1,5),LOW-0.03,'▲ 強者殺入'),COLORYELLOW;
DRAWTEXT(FILTER(賣1=1,5),HIGH*1.025,'● 賣'),COLOR00FF00;
DRAWTEXT(出擊,L*0.99,'△出擊'),COLORFFFFFF;
DRAWTEXT(回踩,L*0.99,'H'),COLORA1C7F8;
DRAWTEXT(期待突破>0 ,L*0.99,'◇期待');
DRAWTEXT(關注,L*0.99,'◆'),COLORRED;
N:=20;
T:=10;
A:(C-LLV(L,10))/(HHV(H,25)-LLV(L,10)),COLORRED,;
操盤:MA(A,3),COLORGREEN;
底部:A<=0.025,COLORWHITE,NODRAW;
買底:REF(A<=0.025,1)AND A>REF(A,1),COLORRED,NODRAW;
跟進:CROSS(A,操盤)AND REF(COUNT(CROSS(A,操盤),3)=1,0)AND REF(A<0.3,1)OR CROSS(A,0.1),COLORYELLOW,NODRAW;
啟動:CROSS(A,0.29)COLORLIMAGENTA,NODRAW;
陰線買:CROSS(0.1,操盤),COLORCYAN,NODRAW;
追漲:BETWEEN(操盤,0.8,0.38)AND CROSS(A,操盤),COLORYELLOW,NODRAW;
STICKLINE(底部=1,0,0.05,0.1,0),COLORWHITE;
STICKLINE(買底=1,0,0.05,0.1,0),COLORRED;
STICKLINE(跟進=1,操盤,操盤 0.05,0.1,0),COLORYELLOW;
STICKLINE(啟動=1,0.3,0.35,0.1,0),COLORLIMAGENTA;
B:=CROSS(操盤,A)AND REF(COUNT(CROSS(操盤,A),3)=1,1)AND A>0.3;
DRAWICON(REF(A>0.8,1)AND CROSS(REF(A,1),A)OR B=1,操盤,2);
STICKLINE(陰線買,0.1,0.5,0,-1),COLORCYAN;
STICKLINE(CROSS(操盤,0.09),0.2,0,0,-1),COLORLIMAGENTA;
DRAWTEXT(啟動=1,0.35,'啟'),COLORLIMAGENTA;
STICKLINE(追漲,0.5,0.75,0,0),COLORYELLOW;
0.3,DOTLINE,COLORGRAY;
0.1,DOTLINE,COLORLICYAN;
0.2,COLORGREEN,DOTLINE;
頂:0.95,COLORBROWN;
高位:0.75,COLOR880088,DOTLINE;
分界:0.5,COLORGRAY,DOTLINE;
JHLL1:=REF(CLOSE,1);
JHLL2:SMA(MAX(CLOSE-JHLL1,0),12,1)/SMA(ABS(CLOSE-JHLL1),12,1)*100;
JHLL3:MA(JHLL2,4);
JHLL4:IF(CROSS(JHLL3,REF(JHLL3,2)) AND JHLL3<32,80,IF(CROSS(REF(JHLL3,2),JHLL3) AND JHLL3>62,20,50));
DRAWTEXT(JHLL4>60,JHLL4,'機會')COLORYELLOW;
DRAWTEXT(JHLL4=20,JHLL4,'減倉')COLORGREEN;
有話要說...