排序公式,日排序和周排序靠前的优先选择,谨慎的可以选择波段涨幅较低的买入。
{板块强度龙头排序}
{年涨幅以下:=200;}
{波段涨以下:=60;}
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,9);
VAR3:=BARSLAST(YEAR>REF(YEAR,1))+1;
VAR4:=IF(VAR3=DRAWNULL,BARSCOUNT(CLOSE)+1,VAR3);
VAR5:=(CLOSE/REF(CLOSE,VAR4)-1)*100;
VAR6:=BARSLASTCOUNT(VAR1>VAR2);
VAR7:=(CLOSE/REF(CLOSE,VAR6)-1)*100;
VAR8:=0.1;
VAR9:=CLOSE>=ZTPRICE(REF(CLOSE,1),VAR8) AND LOW<HIGH;
VAR10:=CLOSE>=ZTPRICE(REF(CLOSE,1),VAR8) AND LOW=HIGH;
VAR11:=HIGH>=ZTPRICE(REF(CLOSE,1),VAR8) AND CLOSE<HIGH;
VAR12:=1+0.8*VAR9+0.3*VAR10+0.2*VAR11;
VAR13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR14:=VAR13*VAR12;
VAR15:=1171030;
VAR16:=1171101;
VAR17:=0;
VAR18:=0;
VAR19:=1;
VAR20:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR19;
VAR21:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR19;
VAR22:=EMA(VAR21,30)*VAR19;
VAR23:=2*(VAR21-VAR22)*10*VAR19;
VAR24:=POW(VAR23,3)*0.1+POW(VAR23,2)*VAR19;
VAR25:=IF(VAR18!=1 AND VAR23>0.015,VAR24,0)/45*VAR19;
VAR26:=(EMA(CLOSE,12)/EMA(CLOSE,26)-1)*1000;
VAR27:=(EMA(INDEXC,12)/EMA(INDEXC,26)-1)*1000;
VAR28:=EMA(VAR26,5);
VAR29:=EMA(VAR27,5);
VAR30:=VAR28-REF(VAR28,1);
VAR31:=VAR29-REF(VAR29,1);
VAR32:=IF(VAR30-VAR31>0 AND VAR17=0,(VAR30-VAR31)*5,0);
VAR33:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR34:=IF(CLOSE>OPEN,VAR33*(HIGH-LOW),IF(CLOSE<OPEN,VAR33*(HIGH-OPEN+(CLOSE-LOW)),VOL/2));
VAR35:=IF(CLOSE>OPEN,VAR33*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,VAR33*(HIGH-LOW),VOL/2));
VAR36:=SUM((VAR34-VAR35)/CAPITAL,1)*1000;
VAR37:=VOL/10000;
VAR38:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
VAR39:=MOD(FROMOPEN,VAR38);
VAR40:=IF(VAR39<0.5,VAR38,VAR39);
VAR41:=IF(CURRBARSCOUNT=1 AND PERIOD<=5 AND DYNAINFO(8)>1,VOL*VAR38/VAR40/10000,DRAWNULL);
VAR42:=IF(CURRBARSCOUNT=1 AND PERIOD<=5,VAR41,VAR37);
VAR43:=VAR42/REF(MA(VAR42,5),1);
VAR44:=IF(VAR43>=100,10,IF(VAR43>=50 AND VAR43<100,20,VAR43/2));
VAR45:=DYNAINFO(17)>0;
VAR46:=NOT(NAMELIKE(2) OR NAMELIKE(4) OR NAMELIKE(3));
VAR47:=VAR46 AND VAR45 AND BARSCOUNT(CLOSE)>=30 AND VAR25>REF(VAR25,1);
VAR48:=VAR5<年涨幅以下 AND VAR7<波段涨以下;
日序:IF(VAR47=1 AND VAR17!=1 AND CLOSE>=OPEN AND VAR48,VAR36+VAR32+VAR14+VAR44,0),NODRAW;
周序:IF(VAR18!=1 AND CLOSE>=OPEN,SUM(日序,5),0),NODRAW;
月序:IF(VAR18!=1 AND CLOSE>=OPEN,SUM(日序,20),0),NODRAW;
年涨:(CLOSE/REF(CLOSE,VAR4)-1)*100,NODRAW;
波段涨幅:(CLOSE/REF(CLOSE,VAR6)-1)*100,NODRAW;
{板块强度排序}
强度:C/MA(C,20);