1、天下奇兵买卖无敌决杀,引用周线数据 N:=30; P:=10; A:=5; ZKK:="KD.K#WEEK"(9,3,3); ZKD:="KD.D#WEEK"(9,3,3); RSV2:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV2,3,1),COLORYELLOW; D:=SMA(K,3,1),COLORWHITE,; KCD:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)<30,13); KCD1:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)>30,13); 买进:IF(D<25 AND CROSS(K,D) ,80,0),COLORMAGENTA,STICK; 卖出:IF(D>75 AND CROSS(D,K) ,80,0),COLORGREEN,STICK; MTM:=CLOSE-REF(CLOSE,5); TSI1:EMA(EMA(MTM,5),5)/EMA(EMA(ABS(MTM),5),5)*100; TSI2:EMA(EMA(MTM,10),10)/EMA(EMA(ABS(MTM),10),10)*100; STICKLINE(K>D,K,D,2,0),COLORFFFF50; STICKLINE(D>K,K,D,2,0),COLOR0000FF; TSI3:EMA(EMA(MTM,20),20)/EMA(EMA(ABS(MTM),20),20)*100; XG1:=KCD; VAR1:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100; VAR2:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,21)*100; DIFW:="MACD.DIF#WEEK"(12,26,9); DEAW:="MACD.DEA#WEEK"(12,26,9); VAR3:=(CLOSE-MA(CLOSE,90))/MA(CLOSE,34)*100; VAR4:=(VAR1+3*VAR2+9*VAR3)/13; VAR5:=(100-ABS(VAR4)); VAR6:=ABS((COST(40)-CLOSE)/CLOSE*100); VAR10:=LLV(LOW,10); VAR13:=HHV(HIGH,25); FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13); XG2:=FCA; RSV:=((((HHV(HIGH,P)-CLOSE)/(HHV(HIGH,P)-LLV(LOW,P)))*200)-125); M:EMA((CLOSE-VAR10)/(VAR13-VAR10)*4,4)*25,COLORYELLOW,LINETHICK2; RSV10:= (HHV(HIGH,11)-CLOSE)/(HHV(HIGH,11)-LLV(LOW,11))*100; 散户:=SMA(RSV,A,1)+15; LWR1:SMA(RSV10,3,1),COLORRED,LINETHICK2; LWR2:SMA(LWR1,3,1),COLORWHITE; RSV1:=((((CLOSE-LLV(LOW,P))/(HHV(HIGH,P)-LLV(LOW,P)))*200)-105); 主力:=SMA(RSV1,A,1)+15; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; XG3:=CROSS(主力,散户); 很准:CROSS(RSI,11)*80,COLORRED; DRAWTEXT(很准,79,'准'),COLOR66FFCC; 买:IF(TSI3<-45 AND CROSS(TSI2,TSI3),55,00),LINETHICK2,COLORRED; 卖:IF(TSI1>50 AND CROSS(TSI2,TSI1),-35,00),LINETHICK2,COLORGREEN; 选股: XG2 AND FCA; AA:=LLV(LOW,34); BB:=HHV(HIGH,30); STICKLINE(选股,0,20,3,0),COLOR0000FF; STICKLINE(选股,20,40,2,0),COLORGREEN; DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25); STICKLINE(选股,40,80,1,0),COLORMAGENTA; WWW58188COM:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 底部:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25); DRAWTEXT(选股,40,'天下无敌'),COLORYELLOW; 杀入:IF(CROSS(底部,90) AND (DD<40),70,0),COLORFFFF00; 2、选股A号,选股和副图 大道至简,公式也是如此,一精胜百懒。( 股 民 学 院 : http://www.58188.com ) 选股A号这个是选股公式,条件比较苛刻,选的股自然也会少,这种行情下,每天复盘选一遍,等大势明朗,好处自会显现。 {选股A号副图} VAR2:=(2*CLOSE+HIGH+LOW)/4; VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); A:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4); B:=EMA(0.667*REF(A,1)+0.333*A,2); QA:=(C-REF(C,1))/REF(C,1)*100>=9.91; XG:=BARSLAST(QA); RRT:=CROSS(A,B) AND A<30 AND XG>2 AND XG<=7; STICKLINE(RRT, 0,10, 2, -1),COLORLIMAGENTA; STICKLINE(RRT, 0,2, 3, 0),COLORLIMAGENTA; DRAWTEXT(RRT,5,'选股A号'),COLORYELLOW; STICKLINE(RRT, 8,10, 3, 0),COLORLIMAGENTA; STICKLINE(RRT, 6,7.5, 2, 0),COLORRED; {选股A号选股} VAR2:=(2*CLOSE+HIGH+LOW)/4; VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4); A:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4); B:=EMA(0.667*REF(A,1)+0.333*A,2); QA:=(C-REF(C,1))/REF(C,1)*100>=9.91; XG:=BARSLAST(QA); RRT:CROSS(A,B) AND A<30 AND XG>2 AND XG<=7; 3、初选牛犊,可以做成股票池 本公式,本来是 初选牛犊股票池 的公式,把源码分享,( 股 民 学 院 : http://www.58188.com ) 会做股票池的,自己编辑,不会的,就当选股公式使用吧。 今日涨幅:=C/REF(C,1)>=1.025 AND C/REF(C,1)<=1.079; 今日量比:=DYNAINFO(17)>1.3; HS:=VOL/CAPITAL*100>=2; 流通盘:=CAPITAL/1000000<=6.75;{2.75}{6.75} 股价:=C>=5.58 AND C<14.98;{9.75}{14.98} 去创业板:=IF(CODELIKE('300'),0,1); 去停牌:=DYNAINFO(17)>0; D22:=IF(NAMELIKE('S'),0,1); D33:=IF(NAMELIKE('*'),0,1); 去ST:=D22 AND D33 AND 流通盘 AND 股价 AND 去停牌 AND 去创业板 AND C/REF(C,1)>=1.028;{AND HS} VAR01:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3)); 短线之王:=CROSS(VAR01,-87) AND OPEN<MA(CLOSE,5) AND CLOSE>=1.099*REF(CLOSE,1) AND INDEXC>0.98*REF(INDEXC,1) AND CLOSE<=1.47*LLV(CLOSE,58); WH01:=(HHV(C,10)-LLV(C,10))/LLV(C,10)*100<=10; WH02:=SUM(VOL,10)/CAPITAL*100<45; WH03:=REF(WH01,1); WH04:=HHVBARS(HIGH,55)>20 OR C=HHV(H,55); WH05:=WH02 AND WH03 AND WH04 AND C>REF(HHV(H,10),1); 缩量横盘突破:=WH05 AND REF(NOT(WH05),1) AND 去ST; 短线之王 OR 缩量横盘突破 AND 去ST; |