David902 发表于 2023-11-30 19:20:13

喜欢指标的股友有福了,今日指标源码大放送!

<h2 data-first-child>每个人都应该有一套自己最适合的炒股体系, 私下跟很多朋友聊天,大家对指标存在一定的误会,有的人炒股全用指标,有的人不会用!今天我跟大家分享一下实践操作中有用的指标源码!</h2><h2>擒龙手主图指标:</h2><p >DRAWBAND(HHV(H,250),RGB(0,0,100),LLV(L,250),RGB(0,0,0));</p><p >MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;</p><p >牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16</p><p >*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11</p><p >*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5</p><p >*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;</p><p >马线:MA(牛线,6),COLORGREEN;</p><p >DRAWBAND(牛线,RGB(50,50,500),马线,RGB(50,50,500));</p><p >MAA5:MA(C,5),COLORFF00FF,LINETHICK2;</p><p >DRAWKLINE(H,O,L,C);</p><p >STICKLINE(C<O,C,O,2.7,1),COLORLIBLUE;</p><p >VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-</p><p >3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);</p><p >VAR22:=8;</p><p >QQ:=CROSS(VAR21,VAR22);</p><p >DRAWTEXT(QQ,H*1.03,'进'),COLOR0099FF;</p><p >A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;</p><p >A4:=SMA(A3,3,1);</p><p >A5:=SMA(A4,3,1);</p><p >A6:=3*A4-2*A5;</p><p >A7:=C-REF(C,1);</p><p >A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);</p><p >买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));</p><p >DRAWTEXT(FILTER(买=1,5),LOW-0.05,'买'),COLORYELLOW;</p><p >STICKLINE(买,OPEN,CLOSE,1.5,0),COLORYELLOW;</p><p >LC:=REF(CLOSE,1);</p><p ><a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/rsi/" class=" wrap external" target="_blank" rel="nofollow noreferrer">RSI</a>:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);</p><p >FF:=EMA(CLOSE,3);</p><p >MA15:=EMA(CLOSE,21);</p><p >日:=150;昨前:=3;</p><p >高1:=REF(HHV(H,日),昨前);</p><p >低1:=REF(LLV(L,日),昨前);</p><p >H1:=高1-(高1-低1)*0.191;</p><p >H2:=高1-(高1-低1)*0.382;</p><p >H3:=高1-(高1-低1)*0.5;</p><p >H4:=高1-(高1-低1)*0.618;</p><p >H5:=高1-(高1-低1)*0.809;</p><p >顶:REFDATE(高1,DATE),DOTLINE,COLORRED;</p><p >一0809:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;</p><p >二0618:REFDATE(H2,DATE),POINTDOT,COLORYELLOW;</p><p >中0500:REFDATE(H3,DATE),DOTLINE,COLORFF6699;</p><p >四0382:REFDATE(H4,DATE),POINTDOT,COLORYELLOW;</p><p >五0191:REFDATE(H5,DATE),POINTDOT,COLORYELLOW;</p><p >低:REFDATE(低1,DATE),DOTLINE,COLORRED;</p><h2>生机勃勃主图指标:</h2><p >C1:=CLOSE>REF(CLOSE,1);</p><p >STICKLINE(C1,OPEN,CLOSE,2,0),COLORRED;</p><p >C2:=REF(C,1);</p><p ><a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/%25D5%25C7%25CD%25A3/" class=" wrap external" target="_blank" rel="nofollow noreferrer">涨停</a>:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);</p><p >STICKLINE(涨停,H,L,0,0),COLORYELLOW;</p><p >STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;</p><p ><a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/%25B5%25F8%25CD%25A3/" class=" wrap external" target="_blank" rel="nofollow noreferrer">跌停</a>:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);</p><p >STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE;</p><p >STICKLINE(跌停,H,L,0,1),COLORBLUE;</p><p >大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);</p><p >STICKLINE(大阴线,OPEN,CLOSE,2,0),COLORBLUE;</p><p >STICKLINE(大阴线,H,L,0,1),COLORBLUE;</p><p >TY:=C;</p><p >AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);</p><p >AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);</p><p >JJ:=(3*C+H+L+O)/6;</p><p >VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;</p><p >TJ1:=<a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/vol/" class=" wrap external" target="_blank" rel="nofollow noreferrer">VOL</a>=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);</p><p >LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;</p><p >TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));</p><p >TP:=TJ2=1;</p><p >TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(LOW,3),1,0)));</p><p >STFZ:=TJ3=1;</p><p >CL:=STFZ AND TP;</p><p >TJCL:=FILTER(CL,3);</p><p >K4:=EMA(L,30) ,COLORBLUE;</p><p >K5:=EMA(L,40) ,COLORBLUE;</p><p >DRAWBAND(K5,RGB(0,255,0),K4,RGB(255,255,0));</p><p >XG:=SUM(C/REF(C,1)-1>0.07,12)>1 AND L<MA(L,13);</p><p >DD:=SUM(C/REF(C,1)-1>0.07,30)>1 AND L<MA(L,18);</p><p >AA:=EMA(C,5)>EMA(C,18) AND EMA(C,13)>EMA(C,20) AND EMA(C,20)>EMA(C,40) AND L<REF(L,1) AND L<REF(L,2);</p><p >A:=XG OR DD;</p><p ><a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/%25B3%25AD%25B5%25D7/" class=" wrap external" target="_blank" rel="nofollow noreferrer">抄底</a>线: MIN(K4,K5)*0.955,COLORMAGENTA;</p><h2>追涨选股公式:</h2><p >股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND<a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/vol/" class=" wrap external" target="_blank" rel="nofollow noreferrer">VOL</a><11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));</p><p ><a href="https://link.zhihu.com/?target=http%3A//www.gupang.com/all/%25D7%25B7%25D5%25C7/" class=" wrap external" target="_blank" rel="nofollow noreferrer">追涨</a>:股海万元户>0;</p><h2>擒龙手选股公式:</h2><p >VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-</p><p >3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);</p><p >VAR22:=8;</p><p >QQ:=CROSS(VAR21,VAR22);</p><p >进:QQ;</p><h2>今天就先给大家分享这些,大家可以挑选自己喜欢的指标新建使用,想要使用其他指标得股友,下方有留言方式,可以给老师留言。我会第一时间分享给大家。记得备注知乎粉丝哟</h2><p></p>

笑对人生153 发表于 2023-12-18 15:48:22

多谢分享!

Zmeltrn 发表于 2024-3-20 13:14:16

感谢分享好资源
页: [1]
查看完整版本: 喜欢指标的股友有福了,今日指标源码大放送!