我的捉妖股指标(附源码),带我走上捉妖之路。喜欢捉妖请转发!
<p> 近期题材股回暖,妖股丛生。我们知道妖股是市场做多情绪的核心焦点,它引领市场的投机情绪。所以,要买到妖股,<strong>选股是关键</strong>,通过对妖股的研究发现很多妖股都是热点题材同时流通盘相对较小的股票。<strong>其次是心态,</strong>因为妖股的驾驭不是那么容易的。大家都知道买到强势股容易,骑到最后难,大部分都是刚开始就轻易的被震出来了。</p><p class="pgc-img-caption"></p><p> 今天给大家讲一下如何快速有效的选出妖股,先通过选股公式找出目标标的,然后根据我上边提到的选妖股的方式进行再次筛选。</p><p><strong>捉妖大师主图+小妖现副图</strong></p><p> 主副图共振时,是最强买卖点,这时我们一定要注意。</p><p class="pgc-img-caption"></p><p>捉妖大师主图源码:</p><p>M1:=60;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;</p><p>STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;</p><p>MA1:MA(CLOSE,M1),COLORMAGENTA,LINETHICK2;</p><p>EMA13:=EMA(C,13),COLORWHITE;</p><p>EMA21:=EMA(C,21),COLORYELLOW;</p><p>EMA34:=EMA(C,34),COLORFF00FF;</p><p>EMA60:=MA(C,60),COLORFFCC66;</p><p>VAR2:=(2*CLOSE+HIGH+LOW)/4;</p><p>VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);</p><p>VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);</p><p>散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;</p><p>庄家:=EMA(0.777*REF(散户,1)+0.333*散户,2)*VAR3;</p><p>DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;</p><p>DRAWTEXT(CROSS(庄家,散户) AND 散户>85,H+0.05,'←高抛'),COLORGREEN;</p><p>DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);</p><p>DRAWICON(CROSS(庄家,散户) AND 散户>85,H+0.05,2);</p><p>A0:=(L+H+C*2)/4;</p><p>A1:EMA(A0,14)COLORWHITE ,LINETHICK2;</p><p>A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;</p><p>A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;</p><p>A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;</p><p>买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED ,LINETHICK3;</p><p>卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;</p><p>STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLORYELLOW ;</p><p>STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLORYELLOW ;</p><p>STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLORYELLOW ;</p><p>STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLORYELLOW ;</p><p>MA5:MA(C,5),LINETHICK0,COLORFF00FF;</p><p>MA20:=MA(C,20);</p><p>MA30:=MA(C,30);</p><p>MA120:=SMA(C,120,1);</p><p>MTM:=C-REF(C,1);</p><p>DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);</p><p>QSXS1:=MA5>REF(MA5,1);</p><p>QSXS2:=MA20>REF(MA20,1);</p><p>QSXS3:=MA30>REF(MA30,1);</p><p>DTPL:=MA20>MA30 AND MA30>MA120;</p><p>LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;</p><p>GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));</p><p>买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);</p><p>DRAWTEXT(FILTER(买1=1,5),LOW-0.03,'▲ 买'),COLORYELLOW;</p><p>卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);</p><p>DRAWTEXT(FILTER(卖1=1,5),HIGH*1.025,'● 卖'),COLOR00FF00;</p><p>VAR6:=REF(C,1);</p><p>VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;</p><p>DRAWTEXT(CROSS(84,VAR7),H*1.01,'注意'),COLORFFFF00;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;</p><p>STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;</p><p>STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;</p><p class="pgc-img-caption"></p><p>小妖现副图源码:</p><p>V1:=MA(C,3)=HHV(MA(C,3),7);</p><p>V2:=MA(C,3)>MA(C,5);</p><p>LC20:=REF(CLOSE,1);</p><p>RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;</p><p>STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;</p><p>VAR3A:=3;</p><p>VAR2A:=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);</p><p>MTM:=C-REF(C,1);</p><p>DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);</p><p>YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);</p><p>加仓:IF(FILTER(YXF=1,5),20,-10),STICK,LINETHICK3;</p><p>A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV</p><p>(L,55))*100,5,1);</p><p>FY:=EMA(A51,5);</p><p>A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;</p><p>VAR2:=TROUGHBARS(3,15,1)<10;</p><p>VAR3:=PEAKBARS(3,15,1)<5;</p><p>VAR4:=IF(VAR2=1,50,0);</p><p>VAR5:=IF(VAR3=1,50,0);</p><p>底部:=IF(VAR4=50,10,0);</p><p>头部:=IF(VAR5=50,20,60);</p><p>未来买入:IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,50,0),COLOR0000CC,LINETHICK2;</p><p>未来卖出:IF(头部=20 AND REF(头部,1)=20 AND REF(头部,2)=60,20,60),COLORGREEN,LINETHICK2;</p><p>参考买入延迟线:底部,LINETHICK1 ,COLORMAGENTA;</p><p>LT:=100;</p><p>LU:=0;</p><p>LV:=38.2;</p><p>LA:=REF(CLOSE,1);</p><p>LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100);</p><p>LC:=(HIGH - REF(HIGH,1));</p><p>LD:=(REF(LOW,1) - LOW);</p><p>{通达信股票指标公式}</p><p>LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);</p><p>LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),10);</p><p>LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),10);</p><p>LH:=((LF * 100) / LE);</p><p>LI:=((LG * 100) / LE);</p><p>LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5);</p><p>AV:=(LB + LJ);</p><p>LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));</p><p>LL:=(LB - LK);</p><p>LM:=(AV + LL);</p><p>LO:=((((2 * CLOSE) + HIGH) + LOW) / 4);</p><p>LP:=LLV(LOW,34);</p><p>LQ:=HHV(HIGH,34);</p><p>LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13);</p><p>LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2);</p><p>向导线:=LLV(LM,1);</p><p>STICKLINE((向导线>225),95,90,4,1),COLORFFCC00;</p><p>STICKLINE((向导线>235),100,95,4,1),COLORRED;</p><p>STICKLINE(CROSS(235,向导线),100,90,4,1),COLOR00FF00;</p><p>STICKLINE((LM<(0-1)),0,5,4,1),COLOR00FF00;</p><p>STICKLINE((LM<(0-5)),5,10,4,1),COLORYELLOW;</p><p>STICKLINE(CROSS(向导线,(0-3)),0,10,4,1),COLORRED;</p><p>BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;</p><p>BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;</p><p>BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;</p><p>BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;</p><p>乖离:=MA(BIAS,3);</p><p>底一:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1;</p><p>STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;</p><p>底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;</p><p>STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;</p><p>底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;</p><p>STICKLINE(乖离<-6,5,3,2,1),COLORRED;</p><p>底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;</p><p>STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;</p><p>买:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG</p><p>(3,5),2)<=REF(ZIG(3,5),3));</p><p>卖:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG</p><p>(3,5),2)>=REF(ZIG(3,5),3));</p><p>STICKLINE((买=1),(-10),0,1,0),COLOR0000FF;</p><p>DRAWTEXT((买=1),(-12),'小妖现'),COLOR0000FF;</p><p>STICKLINE((卖=1),10,0,1,0),COLOR00FF00;</p><p>DRAWTEXT((卖=1),19,'卖'),COLOR00FF00;</p><p>VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;</p><p>VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA</p><p>((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);</p><p>VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA</p><p>((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);</p><p>VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);</p><p>DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;</p><p>STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;</p><p>VAR12:=(HIGH+LOW+CLOSE)/3;</p><p>VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));</p><p>VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));</p><p>VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);</p><p>VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);</p><p>VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;</p><p>VAR18:=100-ABS(VAR17);</p><p>VAR19:=IF(VAR18<90,VAR18,100);</p><p>VAR1A:=IF(VARE>0,VARE,0);</p><p>VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;</p><p>VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;</p><p>P1:=5;</p><p>P2:=4;</p><p>VARA:=LLV(LOW,P1);</p><p>VARB:=HHV(HIGH,P1);</p><p>K: EMA((CLOSE-VARA)/(VARB-VARA)*100,P2),COLORLIMAGENTA;</p><p>D: EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;</p><p> 指标只是我们选股道路中的一个工具,不是万能,但没有指标又万万不能,所以选出股票我们一定要进行二次筛选。</p><h1>喜欢的朋友可以收藏,转发。 后边会继续分享其他东西,有问题的可以留言交流。欢迎点赞、关注!! 希望能帮到你们。</h1> 感谢! 感谢楼主分享好资源
页:
[1]