喜欢指标的股友有福了,今日指标源码大放送!
每个人都应该有一套自己最适合的炒股体系, 私下跟很多朋友聊天,大家对指标存在一定的误会,有的人炒股全用指标,有的人不会用!今天我跟大家分享一下实践操作中有用的指标源码!
擒龙手主图指标:
DRAWBAND(HHV(H,250),RGB(0,0,100),LLV(L,250),RGB(0,0,0));
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线
*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11
*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5
*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
马线:MA(牛线,6),COLORGREEN;
DRAWBAND(牛线,RGB(50,50,500),马线,RGB(50,50,500));
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
DRAWKLINE(H,O,L,C);
STICKLINE(C VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); VAR22:=8; QQ:=CROSS(VAR21,VAR22); DRAWTEXT(QQ,H*1.03,'进'),COLOR0099FF; A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; A4:=SMA(A3,3,1); A5:=SMA(A4,3,1); A6:=3*A4-2*A5; A7:=C-REF(C,1); A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6); 买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2)); DRAWTEXT(FILTER(买=1,5),LOW-0.05,'买'),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,1.5,0),COLORYELLOW; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100); FF:=EMA(CLOSE,3); MA15:=EMA(CLOSE,21); 日:=150;昨前:=3; 高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前); H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382; H3:=高1-(高1-低1)*0.5; H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809; 顶:REFDATE(高1,DATE),DOTLINE,COLORRED; 一0809:REFDATE(H1,DATE),POINTDOT,COLORYELLOW; 二0618:REFDATE(H2,DATE),POINTDOT,COLORYELLOW; 中0500:REFDATE(H3,DATE),DOTLINE,COLORFF6699; 四0382:REFDATE(H4,DATE),POINTDOT,COLORYELLOW; 五0191:REFDATE(H5,DATE),POINTDOT,COLORYELLOW; 低:REFDATE(低1,DATE),DOTLINE,COLORRED; C1:=CLOSE>REF(CLOSE,1); STICKLINE(C1,OPEN,CLOSE,2,0),COLORRED; C2:=REF(C,1); 涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(涨停,H,L,0,0),COLORYELLOW; STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE; STICKLINE(跌停,H,L,0,1),COLORBLUE; 大阴线:=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); STICKLINE(大阴线,OPEN,CLOSE,2,0),COLORBLUE; STICKLINE(大阴线,H,L,0,1),COLORBLUE; TY:=C; AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10); JJ:=(3*C+H+L+O)/6; 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; TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1); LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06; 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))); TP:=TJ2=1; 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))); STFZ:=TJ3=1; CL:=STFZ AND TP; TJCL:=FILTER(CL,3); K4:=EMA(L,30) ,COLORBLUE; K5:=EMA(L,40) ,COLORBLUE; DRAWBAND(K5,RGB(0,255,0),K4,RGB(255,255,0)); XG:=SUM(C/REF(C,1)-1>0.07,12)>1 AND L DD:=SUM(C/REF(C,1)-1>0.07,30)>1 AND L AA:=EMA(C,5)>EMA(C,18) AND EMA(C,13)>EMA(C,20) AND EMA(C,20)>EMA(C,40) AND L A:=XG OR DD; 抄底线: MIN(K4,K5)*0.955,COLORMAGENTA; 股海万元户:=(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 ANDVOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21)); 追涨:股海万元户>0; VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); VAR22:=8; QQ:=CROSS(VAR21,VAR22); 进生机勃勃主图指标:
追涨选股公式:
擒龙手选股公式:
今天就先给大家分享这些,大家可以挑选自己喜欢的指标新建使用,想要使用其他指标得股友,下方有留言方式,可以给老师留言。我会第一时间分享给大家。记得备注知乎粉丝哟