input:m(13),p(25),s(15);
DRAWGBKLAST(CLOSE>0,Strip(RGB(0,10,50),RGB(00,10,50),0));
VAR100:=IF(DATE<=1090831,1,0);
CSS:=((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100)*VAR100;
YJDD:=(EMA(CSS,3)-50)*2* VAR100;
强弱:(YJDD+100)/2* VAR100,COLORblue,PRECIS2;
80*VAR100,COLORff00ff,POINTDOT,LINETHICK3,PRECIS0;
20*VAR100,COLORff00ff,POINTDOT,LINETHICK3,PRECIS0;
100*VAR100,COLORgreen,PRECIS0;
T1:=(INDEXC-MA(INDEXC,58))/MA(INDEXC,58)<-0.152;
T2:=(C-EMA(C,58))/EMA(C,58)<-0.19;
买1:=T2 AND T1;
T3:=IF(DATE<=1090831,1,0);
T4:=(C-MA(C,2))/MA(C,2)*100*T3;
T5:=INDEXC*T3;
T6:=MA(T5,13)*T3;
T7:=T6>1.050*T5*T3;
T8:=(C-REF(C,26))/REF(C,26)*10*T3;
T9:=T7*T3;
T10:=T8<-2.30 AND T3;
T11:=T4<-2.7 AND T3;
T12:=T9 AND T10 AND T11 AND T3;
T13:=CROSS(0.5,T12)*T3;
T14:=CROSS(T13,0.5)*T3;
T15:=BARSLAST(T14=1)*T3;
T16:=T15<=5 AND C<REF(C,T15) AND T3;
买2:=T13 OR T16;
T17:= (C-MA(C,2))/MA(C,2)*100;
T18:=INDEXC;
T19:=MA(T18,56);
T20:=T18/T19<0.94;
T21:=(C-REF(C,26))/REF(C,26)*10;
T22:=T20;
T23:=T21<-2.55;
T24:=T17<-2.7;
T25:=T22 AND T23 AND T24;
T26:=CROSS(0.5,T25);
T27:=CROSS(T26,0.5);
T28:=BARSLAST(T27=1);
T29:=T28<=5 AND C<1.02*REF(C,T28);
底4:=T26 OR T29;
T30:= (C-MA(C,2))/MA(C,2)*100;
T31:=INDEXC;
T32:=MA(T31,13);
T33:=T32>1.050*T31;
T34:=(C-REF(C,26))/REF(C,26)*10;
T35:=T33;
T36:=T34<-2.69;
T37:=T30<-3.09;
T38:=T35 AND T36 AND T37;
T39:=CROSS(0.5,T38);
T40:=CROSS(T39,0.5);
T41:=BARSLAST(T40=1);
T42:=T41<=5 AND C<REF(C,T41);
买3:=COUNT(T39 OR T42,4)=4;
T43:=EMA(((C*1.1-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630))-(C*0.9-LLV(LOW,630))/(HHV(HIGH,630)-LLV(LOW,630)))*80,5);
T44:=INDEXC;
T45:=MA(T44,5);
T46:=MA(T44,20);
T47:=MA(T44,30);
T48:=T45>T44*1.03 AND T46>T44*1.13;
T49:=T48;
目标:=COUNT(T43<6 AND T49,3)>=3;
新目标:=买3 OR 目标;
神枪手:IF(((COUNT(买1 AND 底4,6)=6 OR COUNT(买1 AND 买2,4)=4 OR COUNT(买2 AND 底4,5)=5) OR 新目标),90,0),COLORRED,PRECIS0;
DRAWTEXT(FILTER(神枪手,5),95,'买入区'),COLORRED,ALIGN1;
Vv1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
HY1:=REF(EMA(Vv1,3),1);
实时线:=MA(CLOSE,1);
神秘线:=HY1;
卖:=CROSS(HY1,CLOSE) and date<=1090831;
BMA0:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1);
BMA1:=SMA(ABS(CLOSE-REF(CLOSE,2)),7,1);
BMA2:= BMA0/BMA1*100;
小顶:=date<=1090831 and (BMA2< REF(BMA2,1) and REF(BMA2,1)<REF(BMA2,2) AND BMA2>70);
LC:=REF(CLOSE,1);
RSI5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
R:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
A:=SMA(R,3,1);
B:=SMA(A,3,1);
CCcC:=(B/2+40)*1.1;
D:=SMA(CcCC,3,1);
逃顶1:=CROSS(D,RSI5);
逃顶2:=CROSS(80,RSI5);
全卖:=逃顶1 and 逃顶2;
jm:=1;
k1:=(close-llv(low,80))/(hhv(high,80)-llv(low,80))*200;
k2:=sma(k1,3,1);
k3:=sma(k2,3,1);
k4:=3*k2-2*k3;
k5:=llv(low,5);
k6:=hhv(high,5);
k7:=ema((close-k5)/(k6-k5)*100,4)*2;
k8:=ema(0.667*ref(k7,1)+0.333*k7,2);
k9:=3*k7-2*k8;
ka:=pow(ma(close,5),2)+ma(close,5);
kb:=pow(ma(low,5),2)+ma(low,5);
kc:=pow(ma(high,5),2)+ma(high,5);
kd:=(ka-llv(kb,64))/(hhv(kc,64)-llv(kb,64))*150+65-10;
ke:=sma(kd,3,1)*1.5-100;
kf:=sma(ke,3,1);
k10:=3*ke-2*kf;
k11:=(high+low+close*2)/4;
k12:=ema(k11,13);
k13:=std(k11,13);
k14:=(k11-k12)*100/k13;
k15:=ema(k14,5);
k16:=ema(k15,13);
k17:=ema(k15,13)+200-100;
k18:=ema(k17,10);
k19:=3*k17-2*k18;
k1a:=k2+k7+ke+k17;
k1b:=k3+k8+kf+k18;
k1c:=k4+k9+k10+k19;
k1d:=(high+low+close)/3;
k1e:=amount/vol/100;
k1f:=sum(amount,5)/sum(vol,5)/100;
k20:=(k1d-ma(k1d,34))/(0.015*avedev(k1d,34));
k21:=dma(amount/vol/100,vol/capital);
k22:=(high+low+close+k1d)/4;
k23:=ema(k22,24);
k24:=std(k22,24);
k25:=(k22-k23)/k24*100;
k26:=(k1d-ma(k1d,24))/(0.015*avedev(k1d,24));
k27:=ema(k25,5);
k28:=(k1e-ma(k1e,21))/(0.015*avedev(k1e,21));
k29:=(k1f-ma(k1f,90))/(0.015*avedev(k1f,90));
k2a:=(({k29+k28+}k27+k26+k20)/3+165)/4;
k2c:=(k1a+k1b+k1c*30)/32/5-15;
k2e:=(k2a+k2c)/2/1.1;
dxm:= k2e*jm;
短a:=ema(dxm,1);
顶:=cross(100,短a) or cross(80,短a);
坚决清仓: if((全卖 or 顶 or 小顶) and count(全卖 or 顶 or 小顶,barslast(神枪手=90))=1,90,0),coloryellow,linethick3,PRECIS0;
drawtext(filter(坚决清仓=90,5),95,'坚决清仓'),coloryellow,ALIGN1;
多方:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
逃顶:=CROSS(78.89,多方);
清仓:if(((逃顶) and count(逃顶,barslast(神枪手=90))=1) and count(坚决清仓=90,barslast(神枪手=90))=0 and date<=1090831,65,0),Color8285bb,linethick2,PRECIS0;
drawtext(清仓=65,75,'清仓'),Color8285bb,ALIGN1;
减仓:if(((卖 and count(卖,barslast(神枪手=90))=1)) and count(清仓=65 or 坚决清仓=90,barslast(神枪手=90))=0 and date<=1090831,40,0),color0077ff,linethick1,PRECIS0;
drawtext(filter(减仓=40,2),50,'减仓'),color0077ff,ALIGN1;
aa:=100*v/capital;
ee:=sumbars(aa,2);
ff:=sumbars(aa,98);;
vq1:=HHV(c,ee)/hhv(HHV(c,ee),m)*100;
vq2:=HHV(c,ff)/hhv(HHV(c,ff),m)*100;
kq1:=sma(vq1,2,1);
kq2:=sma(vq2,2,1);
Kq3:=count(abs(c/ref(c,1)-1)*100>=6,30)>=p;
Kq4:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
xg:(kq1-kq2),PRECIS2;
bb:=if(xg<(0-s) and (Kq4 OR Kq3),10,0);
dd:=0-s;
FILLRGN(xg,dd,xg<(0-s),rgb(250,0,0)); |