可能抄集一些别人的,请见谅!
如果两个信号同时或者隔天出现为最好的。
好不好,大家来见证。
MA6:=MA(C,6);
MA18:MA(C,18),COLORRED,LINETHICK1;
MA55:MA(C,55),COLORMAGENTA,LINETHICK1;
MA125:MA(C,125),COLORFFCC66,LINETHICK1;
MA250:=MA(C,250),COLORGREEN,LINETHICK1;
乖离线:=((C-REF(MA6,1))/20+MA6)*1.20;
STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;
DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'卖点'),COLOR00FF00;
A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;
A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;
A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;
DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
V1:=C-(A1+MA(C,3))/2;
V2:=C-(A2+MA(C,8))/2;
V3:=C-(A3+MA(C,21))/2;
VA1:=(C+V3-V1+MACD);
VA4:=(C+V2-V1+MACD);
短线:=EMA(VA1,6),LINETHICK1,COLORYELLOW;
HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
高点压力:=DRAWLINE(CURRBARSCOUNT=GDCS2,CLOSE,CURRBARSCOUNT=GDCS1,CLOSE,1) COLORGREEN,LINETHICK2;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=CONST(DDTS1);
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=CONST(DDTS2);
低点支撑:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;
N:=18;M:=32;P1:=80;P2:=100;
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,N)*(1+P1/1000);
买入:=XMA(VAR1,M)*(1-P2/1000);
幅度:=100*(卖出-买入)/买入;
中:=(买入+卖出)/2,COLORWHITE;
YM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48),COLORYELLOW,LINETHICK1;
MACD价格1:=EMA(CLOSE,3) - EMA(CLOSE,9);
DEA1021:=EMA((EMA(MACD价格1,102) - EMA(MACD价格1,204)),9);
DEA511:=EMA((EMA(MACD价格1,51) - EMA(MACD价格1,102)),9);
DEA36361:=EMA((EMA(MACD价格1,36) - EMA(MACD价格1,72)),9);
DEA24241:=EMA((EMA(MACD价格1,24) - EMA(MACD价格1,48)),9);
DEA18181:=EMA((EMA(MACD价格1,18) - EMA(MACD价格1,36)),9);
DEA661:=EMA((EMA(MACD价格1,6) - EMA(MACD价格1,12)),9);
DEA331:=EMA((EMA(MACD价格1,3) - EMA(MACD价格1,9)),9);
DEA12121:=EMA((EMA(MACD价格1,12) - EMA(MACD价格1,24)),9);
MACD24241:=2*((EMA(MACD价格1,24) - EMA(MACD价格1,48))-DEA24241);
HH1:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORGRAY,LINETHICK1;
LL1:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORGRAY,LINETHICK1;
D90H1:=EMA(HH1,90),COLORRED,LINETHICK1;
D90L1:=EMA(LL1,90),COLORRED,LINETHICK1;
D901:=(D90H1+D90L1)/2;
A:=BARSLAST(CROSS(中,D90L1));
B:=D901>=REF(D901,3);
买1:=中>D901 AND YM>D901 AND OPEN<D901 AND B=1 AND 中>=YM AND CROSS(C,MA125);
STICKLINE(买1,L,L-0.09,4,0),COLORYELLOW;
DRAWTEXT(买1,L-0.13,'买点1'),COLORYELLOW;
买2:=YM>LL1 AND 中>YM AND CROSS(中,D90H1) AND CROSS(C,MA55);
STICKLINE(买2,L,L-0.11,4,0),COLORMAGENTA;
DRAWTEXT(买2,L-0.20,'买点2'),COLORMAGENTA;
买3:=YM>D901 AND LL1>D90H1 AND CROSS(中,YM) ;
STICKLINE(买3,L,L-0.13,4,0),COLORYELLOW;
DRAWTEXT(买3,L-0.15,'买点3'),COLORYELLOW;
底:=中>REF(中,1) AND LL1<REF(LL1,1) AND HH1<REF(HH1,1) AND LL1>YM AND CROSS(中,HH1);
STICKLINE(底,L,L-0.17,4,0),COLORYELLOW;
DRAWTEXT(底,L-0.16,'底成立'),COLORGREEN;
加:=MA125>MA55 AND OPEN>MA55 AND OPEN<MA125 AND 中>YM AND CROSS(中,D90H1);
STICKLINE(加,L,L-0.13,4,0),COLORYELLOW;
DRAWTEXT(加,L-0.13,'加成立'),COLORYELLOW;
开花:=CROSS(C,中) AND CROSS(C,D90H1) AND CROSS(C,YM) AND 中>REF(中,1);
QS:=开花=1.00 AND 加=1.00;
SQ:=开花=1.00 AND 买1=1.00;
三天强股:=QS OR SQ;
STICKLINE(三天强股,L,L-0.09,4,0),COLORRED;
DRAWTEXT(三天强股,L-0.13,'三天强'),COLORRED;