源码
Var1:=1;
n1:=10;
趋势:((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50),COLORGREEN;
主力: EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORMAGENTA;
Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var3:=LLV(LOW,34);
Var4:=HHV(HIGH,34);
SK: EMA((Var2-Var3)/(Var4-Var3)*100,13)*Var1,colorwhite;
SD: EMA(SK,2)*Var1,COLORBLUE;
Var5:=EMA(CLOSE,12)-EMA(CLOSE,26);
Var6:=EMA(Var5,9);
Var7:=Var1*CLOSE*1.236
Var9:=(HIGH-CLOSE)*1.36<=CLOSE-OPEN;
VarA:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
VarB:=ABS(Var5-Var6);
VarC:=STD(CLOSE,90)*10;
VarD:=COUNT((REF(CLOSE,15)-CLOSE)/CLOSE*100>45,5);
Var1:=DMA(CLOSE,VOL/SUM(VOL,34));
Var2:=(CLOSE-Var1)/Var1*100;
Var3:=(WINNER(CLOSE*1.2)-WINNER(CLOSE))*100<34;
Var4:=Var2<-27;
进:Var1*Var7 AND Var8 AND Var9 AND VarC<25 AND CLOSE<8 AND VarA<114 AND VarB<=0.23*40,COLORRED;
VarE:=SLOPE(CLOSE,40);
VarF:=COUNT((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<-0.098,90);
Var10:=(MA(CLOSE,120)-CLOSE)/CLOSE*100;
Var11:=Var1*STD(CLOSE,63)*10;
Var12:=Var1*(MA(CLOSE,76)-MA(CLOSE,13)/3);
Var13:=Var1*MA((CLOSE-Var12)/Var12,1);
买1:=Var1*IF(CROSS(Var13,-0.008) AND VarE>-0.618 AND Var10<114 AND Var11<23.6 AND VarF<8 AND LOW/REF(HIGH,1)<1.145 OR REF(Var13,2)=LLV(Var13,20) AND REF(Var13,2)<0.042 AND VarF<8 AND REF(Var13,2)REF(HIGH,2) AND LOW>REF(HIGH,1)) AND Var13>-0.368 AND CLOSE>REF(CLOSE,1),68,0);
Var14:=MA(CLOSE,5);
Var15:=MA(CLOSE,10);
Var16:=MA(CLOSE,20);
Var17:=MA(CLOSE,30);
Var18:=MA(CLOSE,60);
Var19:=MA(CLOSE,150);
Var1A:=MA(CLOSE,250);
Var1B:=Var1*VOL/CAPITAL*100;
Var1C:=(CLOSE-Var1A)/Var1A*100;
Var1D:=(CLOSE/REF(CLOSE,1)-1)*100;
Var1E:=PWINNER(1,CLOSE);
Var1F:=IF(Var1>0.75 AND Var1<0.901,0.618,1);
走: 0.5*IF(Var14>Var15 AND Var15>Var16 AND Var16>Var17 AND Var16>Var18 AND Var19>Var1A AND (Var1E>=0.9 OR Var1E>0.76 AND Var1E<0.901 AND Var1D>5 AND Var1B>5) AND Var1D>1.8 AND Var1C<40 AND CLOSE>3 AND (CLOSE-Var18)/Var18<0.25 AND Var1B<=6 AND Var4*Var1B>=1 AND CLOSE<18.5,76,0), colorff0000;
Var20:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
Var21:=(MA(CLOSE,48)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
Var22:=Var1*(MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,48)+MA(CLOSE,96))/4;
Var23:=Var1*MA(CLOSE,250);
Var24:=MA(CLOSE,125);
牛1:=IF(SD>18 AND SK<75 AND CROSS(Var20,Var21) AND (Var22-Var23)/Var23<0.161 AND REF(SK,3)
Var26:=REF(CLOSE,1);
Var27:=SMA(MAX(CLOSE-Var26,0),5,1)/SMA(ABS(CLOSE-Var26),5,1)*100;
Var28:=Var1*COUNT(Var27<25,20)>=1;
Var29:=(HIGH-LOW)/HIGH*100+(CLOSE-Var26)/Var26*100;
Var2A:=EMA(MA(Var29,41),6);
Var2B:=Var2A>LLV(Var2A,6)*1.02 AND REF(Var2A,1)
Var2C:=Var1*LLV(LOW,6)=LLV(LOW,41) AND LLV(LOW,6)
中买: 0.5*IF(CROSS(趋势,21),50,18.5);
中卖: IF(CROSS(87,趋势),50,81.5),colorFFAA00;
DRAWTEXT(Var2C>0 AND Var2D,88,'↑');
Var2E:=IF(CROSS(SK,SD),25,18.5);
Var2F:=IF(CROSS(SD,SK),75,81.5);
短买: Var2E,colorred;
短卖: Var2F, colorwhite;
Var13<0.06*(-10)+81.5,colorwhite;
Var30:0-SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5;
STICKLINE(Var30<-2,0,Var30,1.5,1), coloryellow;
定涨: Var1*(Var2C>0 AND Var2D*16+81.5)*Var1,Color80FFFF ;
hs:=VOL/CAPITAL*100;{换手 }
jx:=ema(c,3); {3日平滑均线}
tp:=filter((c>ref(hhv(h,120),1) or winner(c)>0.93) and c/ma(c,135)<1.2 and barscount(c)>40 and hs<=4,120);{无量创新高突破点}
ts:=barslast(tp>0);{突破时间记录}
tpd:=if(tp>0,ref(c,1),0);
tpj:=hhv(tpd,240);{突破点价格记录}
突破:tp*13 ,coloryellow;{突破点指示}
起动:filter(hhv(tpd,60)>0 and cross(jx,tpj*1.08) and winner(c)>=0.7,40)*11,colorred;{起动点指示}
突破后中阳:filter(hhv(起动,20)>0 and c/ref(c,1)>=1.04 and hs<=7,20)*15 ,colormagenta;{将进入快速拉升}
关注底:5*FILTER(IF(Var3 AND Var4,-25,0),5),Color00FF00,stick,linethick2;{过滤5天连续出现的信号}
tj:=0.01*MA(1/WINNER(CLOSE)*100,5)/10000;
STICKLINE(tj>5,0,tj,1,1),COLORGRAY;
LO := REF(OPEN,1);
RSIO:=SMA(MAX(OPEN-LO,0),N1,1)/SMA(ABS(OPEN-LO),N1,1)*100;
LC := REF(CLOSE,1);
RSIC:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
LH := REF(HIGH,1);
RSIH:=SMA(MAX(HIGH-LH,0),N1,1)/SMA(ABS(HIGH-LH),N1,1)*100;
LL := REF(LOW,1);
RSIL:=SMA(MAX(LOW-LL,0),N1,1)/SMA(ABS(LOW-LL),N1,1)*100;
开盘:RSIO, LINETHICK0 ;
收盘:RSIC, LINETHICK0 ;
最高:RSIH, LINETHICK0 ;
最低:RSIL, LINETHICK0 ;
STICKLINE(收盘>开盘,开盘,最低,0.5,1),colorred;
STICKLINE(收盘>开盘,最高,收盘,0.5,1),colorred;
STICKLINE(收盘>开盘,收盘,开盘,5,1),colorred;
STICKLINE(收盘< 开盘,最高,开盘,0.5,1),COLORFFFF00;
STICKLINE(收盘< 开盘,最低,收盘,0.5,0),COLORFFFF00;
STICKLINE(收盘< 开盘,收盘,开盘,5,0),COLORFFFF00;
10;80;90;