N:=21;
v1:ema(close,5);
v2:ema(close,10);
v3:ema(c,n),color00ff00,linethick2;{21日指数平滑均价,同时称短期魔线,为多空双
方短期操作的重要支撑位或阻力位.线上红圈表示涨,蓝圈表示跌}
v4:ema(close,21);
drawtext(Cross(v1,v3) AND v1<100,v3,'金▲叉'),COLORYELLOW,LINETHICK2;
drawtext(Cross(v1,v3) AND v1<100,v3,'金▲叉'),COLORYELLOW,LINETHICK2;
TY:=C;
AA1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(AA1,10); C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); C2:=BACKSET(B2,10+1);
LD:=FILTER(C2,10);
AB:=REF(C,BARSLAST(HD));
Z:=REF(L,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
谷买入1:IF(T2,Z,Z),POINTDOT,color009090;
峰卖出:IF(T1,AB,AB),color00ff00{COLORYELLOW},linethick1,POINTDOT;
ZX:=(v1+v2)/2;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE(ZDF>9.8,O,C,6,0),COLORRED;
STICKLINE(ZDF<-9.8,O,C,6,0),COLORBLUE;
QSXS:=v1>=v2 AND v2>REF(v2,1);
GD:=ZX>=REF(ZX,1) AND REF(ZX,1)<REF(ZX,2);
YB:=C>REF((O-C)/2+C,2);
金叉买入: 2,COLORYELLOW,LINETHICK2;
买:CROSS(C,ZX) AND (GD OR YB) AND QSXS,COLOR00FF00,POINTDOT,LINETHICK0;
买黄k大涨3:买 AND v1>REF(v1,1),COLORYELLOW,POINTDOT,linethick0;
STICKLINE(买黄k大涨3,o,c,4,0),COLORYELLOW,linethick2;
全仓买4:买 AND v2>REF(v2,1),color00ff00;
买红k涨停5:买 AND v2>REF(v2,1),COLORRED;
IF(v2>ref(v2,1),v3,0),Circledot,COLORRED,LINETHICK2;
IF(v2<ref(v2,1),v3,0),Circledot,COLOR00FF00,LINETHICK2;
A:=ref(v3,1);
mtm:=close-ref(close,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
dy:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);
lc:=ref(close,1);
rsi:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
上线:=sma(c,6.5,1);
下线:=sma(c,13.5,1);
上线1:=sma(c,3,1);
下线1:=sma(c,8,1);
DRAWTEXT( cross(上线,下线),low *0.98,'全仓▲买哦' ),color00ff00;
b:=ref(v2,1);
mtm1:=close-ref(close,1);
dx1:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
dy1:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);
lc1:=ref(close,1);
rsi1:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
险:filter(cross(80,rsi) or dy,5),colorblue;
drawtext(险 and v2>A,high*1.03,'○'),colorblue;
d:=ref(v4,1);
mtm2:=close-ref(close,1);
dx2:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
dy2:=hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx);
lc2:=ref(close,1);
rsi2:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;
varC:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),HIGH,2);
var6:=REF(C,1);
var7:=SMA(MAX(C-var6,0),6,1)/SMA(ABS(C-var6),6,1)*100;
Var32:=CLOSE/REF(CLOSE, 1)>=1.062 AND HIGH/CLOSE<1.005 AND MA(CLOSE,
90)/CLOSE>=1.150;
Var33:=Var32 AND COUNT(Var32, 20)=1 ;
Var34:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1);
Var35:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1);
Var36:=IF(Var34>0.010, 0.900, 1) AND IF(Var34>(-0.025), 1, 1.200);
Var37:=Var36*(Var35-Var34)*100;
Var38:=SUM(Var37, 10);
Var39:=SMA(Var38, 40, 1);
Var310:=Var38>20;
Var311:=CROSS(CLOSE, MA(CLOSE*1.055, 3)) AND CLOSE>OPEN*1.060 AND VOL>=REF
(VOL, 1)*1.5 AND CLOSE>=MA(CLOSE, 10);
Var312:=Var310 AND Var311 ;
Var313:=(-100)*(HHV(HIGH, 3)-CLOSE)/(HHV(HIGH, 3)-LLV(LOW, 3));
Var314:= CROSS(Var313, (-87)) AND OPEN=1.090*REF(CLOSE, 1) AND
INDEXC>0.980*REF(INDEXC, 1) AND CLOSE<=1.470*LLV(CLOSE, 58);
Var315:=EMA(CLOSE, 12)-EMA(CLOSE, 26);
Var316:=EMA(Var315, 9);
Var317:=2*(Var315-Var316);
Var318:=(CLOSE-LLV(LOW, 9))/(HHV(HIGH, 9)-LLV(LOW, 9))*100;
Var319:=SMA(Var318, 3, 1);
Var320:=SMA(Var319, 3, 1);
Var321:=EMA(IF(Var316>REF(Var316, 1), 1, (-1)), 14)*14;
Var322:=EMA(IF(Var320>REF(Var320, 1), 1, (-1)), 14)*14*2;
Var323:=(MA(CLOSE, 5)/MA(CLOSE, 70)-1)*100;
Var324:=(Var323+Var322+Var321)/3;
Var325:=MA(CLOSE, 80)-MA(CLOSE, 10)/3;
Var326:=IF(CLOSE and MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.0 AND
CLOSE,88,0);{Var38>Var39;}
Var327:=IF(CLOSE/REF(CLOSE, 1)>1.050 AND VOL/CAPITAL*100<10 AND CLOSE<17
AND HIGH/CLOSE<1.010 AND Var326>0, 91, 0);
Var328:=IF(Var324>REF(Var324, 1) AND REF(Var324, 1)<REF(Var324, 2) AND
(Var33 OR Var312 OR Var314) OR Var326>0 OR Var327>0, 85, 0);
Var329:=IF(Var327>0 ,95,0), STICK,LINETHICK2;
Var330:=IF(Var326>0 or var327>0,91,0), STICK,LINETHICK2;
Var331:=IF(Var328>0 or var327>0 or var326>0,88,0), STICK,LINETHICK2;
Var332:=100*(CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV
(LOW,42)),LINETHICK1,colorgreen;
Var333:=COUNT(MA(CLOSE,3)>REF(MA(CLOSE,3),1),1)=1;
Var334:=(Var332<93 AND Var333 and MAX(MAX(Var329, Var330), Var331))*100;
STICKLINE(Var327>90,LOW*0.99,LOW*0.95,2,0),COLORYELLOW;
DRAWTEXT(Var327>90,LOW*0.95,'杀庄'),color00ff00;{COLORYELLOW; }
cj2:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
cj3:=(CLOSE-cj2)/cj2*100;
cj4:=REF(cj3,1)<-40 AND cj3>REF(cj3,1) AND REF(cj3,1)<REF(cj3,2) AND cj3-
REF(cj3,1)>2.5;
cj5:=(CLOSE-OPEN)/OPEN*100;
cj6:=REF(CLOSE,1);
cj7:=SMA(MAX(CLOSE-cj6,0),6,1)/SMA(ABS(CLOSE-cj6),6,1)*100;
cj8:=COUNT(cj7<20,20)>=1;
cj9:=cj5>9 AND cj8;
cjA:=100*WINNER(OPEN);
cjB:=100*WINNER(CLOSE);
cjC:=cjB-cjA;
cjD:=cjC>=30;
cjE:=CLOSE/MA(CLOSE,3)>=1.07 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA
(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND
CLOSE>REF(CLOSE,1);
cjF:=REF(CLOSE,1);
cj10:=SMA(MAX(CLOSE-cjF,0),5,1)/SMA(ABS(CLOSE-cjF),5,1)*100;
cj11:=COUNT(cj10<20,20)>=1;
cj12:=cjE AND cj11;
cj13:=MA(CLOSE,4);
cj14:=MA(CLOSE,10);
cj15:=MA(CLOSE,20);
cj16:=MA(CLOSE,25);
cj17:=COUNT(CROSS(cj14,cj15),2)=1;
cj18:=COUNT(CROSS(cj13,cj16),2)=1;
cj19:=cj17 AND cj18;
cj1A:=cj12 AND cjD AND cj19;
cj1B:=MA(CLOSE,80)-MA(CLOSE,10)/3;
cj1C:=CLOSE<cj1B AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND
CLOSE<MA(CLOSE,13)*1.3;
ls:=c/ref(c,1)>1.048 and c=h and between(forcast(V,4),0.2*forcast
(v,12),2.1*forcast(v,12));
拉升:=filter(ls,28)*100;
DRAWTEXT(拉升,low*0.99,'拉▲升'),COLORYELLOW,LINETHICK2;
DRAWICON(拉升,low*0.99,1),color00ff00;