当前位置:首页 > 通达信 > 正文

【通达信源码分享】精品指标公式-抓主升浪 波段金指

2023-04-01未知 编 辑:掌上指标


5天倍量3次理念
 
第一、观察个股的量比。量比是衡量相对成交量的指标,在观察成交量方面,是卓有成效的分析工具。在用量比选股时,玩家自己编写了一套量比选股公式,放在交易软件中,当盘中有个股量比符合要求时,股票就会自动跳出。“少年股神”毫无保留的分享出自己的选股公式,“5天前倍量REF(VOL,4)/REF(VOL,5)>2;具体那一天可以自己改,量比大仅仅说明有资金关注 但是买点还要根据形态以及大盘来 。”
 
第二、根据形态挑选自选股。每天从公式中会选出很多股票,我会根据形态,挑选自己喜欢的股票。首先,股价不要离五日均线太远;其次,股票在一轮上升后回调较小或横盘时,通常都会有第二轮上升。目前行情,多数是把握第二波上涨的比较多,如近期操作的莱茵置业就是第二波上攻。
 
第三、买卖点的确立。主要是观察30分钟K线,如果MACD出现金叉或即将出现金叉的时候考虑买入。如果为了更好的把握住买卖点,可以进一步从5分钟K线中,寻找最佳出击点位。
 
 公式源码:
 
EMA13:=EMA(C,13),COLORWHITE;
 
EMA21:=EMA(C,21),COLORYELLOW;
 
N1:=3;N2:=5;N3:=9;N4:=13;N5:=21;N6:=34;
 
 DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4);
 
 DEA:=EMA(DIFF,N2);
 
 A1:=DIFF>DEA;
 
 RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100;
 
 K0:=SMA(RSV1,N1,1);
 
 D0:=SMA(K0,N1,1);
 
 A2:=K0>D0;
 
LC0:=REF(CLOSE,1);
 
 RSI1:=(SMA(MAX(CLOSE-LC0,0),N2,1))/(SMA(ABS(CLOSE-LC0),N2,1))*100;
 
 RSI2:=(SMA(MAX(CLOSE-LC0,0),N4,1))/(SMA(ABS(CLOSE-LC0),N4,1))*100;
 
 A3:=RSI1>RSI2;
 
 RSV0:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100;
 
 LWR1:=SMA(RSV0,N1,1);
 
 LWR2:=SMA(LWR1,N1,1);
 
 A4:=LWR1>LWR2;
 
 BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
 
 A5:=CLOSE>BBI;
 
 MTM:=CLOSE-REF(CLOSE,1);
 
 MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1);
 
 MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3);
 
 A6:=MMS>MMM;
 
 BIAS:=(C-MA(C,N2))/MA(C,N2);
 
 DIF:=(BIAS-REF(BIAS,16));
 
 DBCD:=SMA(DIF,76,1);
 
 MM1:=MA(DBCD,5);
 
 A7:=DBCD>MM1;
 
 持股:=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),LINETHICK0,COLORRED;
 
 支撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF;
 
 下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0;
 
 转向:=CROSS(持股,下跌){ AND 下跌<30};
 
 MA1:=MA(持股,5);
 
 向下:=CROSS(MA1,持股) AND MA1>80;
 
 A8:=持股>下跌;
 
 MT:=C-REF(C,1);
 
 ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3);
 
 MAZL:=MA(ZLGJ,5);
 
 A9:=ZLGJ>MAZL;
 
 PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
 
 JJ:=REF(EMA(PJJ,3),1);
 
 QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
 
 XVL:=IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF
 
 (CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2));
 
 HSL:=(XVL/20)/1.15;
 
  攻击流量:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
 
 GJJ:=EMA(攻击流量,8);
 
 LLJX:=EMA(攻击流量,3);
 
 资金流量:=LLJX,LINETHICK0,COLOR0000FF;
 
 A10:=资金流量>0;
 
 指导线:=(A1+A2+A3+A4+A5+A6+A7+A8+A9+A10),LINETHICK0,COLORFFFF00;
 
跟庄操作:IF(指导线 >6 ,2.38,1),LINETHICK1,COLOR04CAFB;
 
三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3);
 
三日最高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORWHITE;
 
卖:CROSS(CROSS(三日最高,C),0.6),STICK,COLOR000000;
 
DRAWICON(卖>0,卖,2);
 
 VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
 
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
 
VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
 
VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
 
减:REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
 
VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD,STICK,COLOR000000;
 
DRAWICON(减>0,减,2);
 
 AC:=AMOUNT/(VOL);
 
YY:=MA(AC,13);
 
LLL:=(C-YY)/YY*100;
 
MIDC := MA(CLOSE,22);
 
UPPERC:= MIDC + 2*STD(C,22);
 
LOWERC:= MIDC - 2*STD(C,22);
 
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
 
进点:(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1)),STICK,COLOR000000;
 
DRAWTEXT(进点,0.4,'B'),COLOR0000FF;
 
DRAWICON(进点>0,进点,1);
 
 
 
M2:=EMA(C,2);
 
M18:=EMA(C,18);
 
买点:=IF(CROSS(M18,M2),5,0* 10000);
 
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
 
VARB2:=(RSVV/2+22)*1;
 
Q:=EMA(VOL,13);
 
Y:=EMA(AMOUNT,13);
 
S:=((Y /Q) / 100);
 
X:=(((CLOSE -S) / S) * 100);
 
F:=((X < (0)) AND ZXNH);
 
XQ:=F AND RSVV<VARB2-2;
 
突击:买点 AND XQ ,STICK,COLOR000000;
 
DRAWTEXT(突击,0.5,'调'),COLORFFFFFF;
 
DRAWTEXT(突击,0.1,'买'),COLORFFFFFF;
 
DRAWICON(突击>0,突击,23);
 
 
 
AX:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
 
AXMA:=MA(AX,5);
 
ANA:=PLOYLINE(CROSS(AX,AXMA),AXMA);
 
ANB:=PLOYLINE(CROSS(AXMA,AX),AXMA);
 
MD:=CROSS(AX,AXMA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND AXMA<=0)
 
OR ((AXMA<=-45 OR CROSS(AXMA,-45)) AND (ANB<-60
 
OR LLV("KDJ.J",3)<=-49) AND ANB>0));
 
AQZ:=COUNT(CROSS(AX,AXMA),ANA<REF(ANA,5) AND ANB>REF(ANB,5));
 
阴买:MD AND AQZ AND C<O,STICK,COLOR000000;
 
DRAWTEXT(阴买,0.5,'阴'),COLORFFFFFF;
 
DRAWTEXT(阴买,0.1,'买'),COLORFFFFFF;
 
DRAWICON(阴买>0,阴买,34);
 
 
 
LC:=REF(C,1);
 
RSV34:=100*(C-LLV(L,34))/(HHV(H,34)-LLV(L,34));
 
K34:=SMA(RSV34,3,1);
 
BIAS34:=((C-MA(C,34))/MA(C,34)*100+10)*5;
 
KB34:=(K34+BIAS34)/4+10;
 
BB1:=IF((K34<10 OR (K34<15 AND HHV(H,5)/LLV(C,5)>1.15)) AND KB34<=-0.5,1,0);
 
抢反弹:BB1=1 AND C=LLV(C,10) AND C<L*1.045 AND V<HHV(V,10) AND C>LC*0.9015,STICK,COLOR000000;
 
DRAWTEXT(抢反弹,0.5,'抢'),COLORFFFFFF;
 
DRAWTEXT(抢反弹,0.1,'反'),COLORFFFFFF;
 
DRAWICON(抢反弹>0,抢反弹,11);
 
短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
 
中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
 
中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
 
长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
 
四线归一:短期<6 AND 中期<6 AND 中长期<6 AND 长期<6,STICK,COLOR000000;
 
DRAWTEXT(四线归一,0.5,'归'),COLORFFFFFF;
 
DRAWTEXT(四线归一,0.1,'一'),COLORFFFFFF;
 
DRAWICON(四线归一>0,四线归一,5);
 
 
 
短转点:(((SMA(C,2,1)-(SMA(L,21,2)*0.95))*10)<2 AND SMA(C,2,1)>REF(SMA(C,2,1),1) AND REF(SMA(C,2,1),2)>REF(SMA(C,2,1),1))=1,STICK,COLOR000000;
 
DRAWTEXT(短转点,0.5,'短'),COLORFFFFFF;
 
DRAWTEXT(短转点,0.1,'转'),COLORFFFFFF;
 
DRAWICON(短转点>0,短转点,23);
 
{======================================================}
 
范围高A:=REFDATE(HHV(H,120),DATE)*1.05;
 
范围低A:=REFDATE(LLV(L,120),DATE)*0.95;
 
MA5:=MA(C,5),COLORCYAN,LINETHICK2;
 
MA24:=MA(C,24),COLORGREEN,LINETHICK2;
 
MA72:=MA(C,72),COLORRED,LINETHICK2;
 
MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;
 
{=======================仪表盘=========================}
 
主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
 
主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);
 
主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>IF(MA200=DRAWNULL,0,MA200);
 
初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;
 
底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA5>MA24;
 
探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>MA24 AND MA24>MA5;
 
观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);
 
有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C>=MA72,MA72<MA200 AND C>=MA200);
 
放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);
 
DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,'观望',0)COLOR00BF00;
 
DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;
 
DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,'主浪回调',0)COLORFF8080;
 
DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,'主浪深调',0)COLOR009500;
 
DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF;
 
DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,'底部反弹',0)COLORFFFF00;
 
DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,'探底阶段',0);
 
DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,'观望',0)COLORFFFF00;
 
DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;
 
DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,'放弃',0)COLOR00BF00;
 
步步高:=V/REF(V,1)>1.1 AND REF(V,1)/REF(V,2)>1.1;
 
挖坑:=V/REF(V,1)>1.20 AND REF(V,2)/REF(V,1)>1.07;
 
成量:=步步高 OR 挖坑;
 
潜伏:O<REF(C,1) AND C>O AND (H-MAX(C,O))/(H-L)>0.3 AND (H-MAX(C,O))/(H-L)>(MIN(O,C)-L)/(H-L)
 
 AND EMA(C,5)>REF(EMA(C,5),1) AND MA(C,3)>EMA(C,7) AND MA(C,5)>MA(C,10) AND C>MA(C,20)
 
 AND C>MA(C,60) AND (MIN(O,C)-L)/(H-L)>0.01 AND 成量 AND REF(C,1)/REF(C,2)<1.07
 
 AND C/REF(C,1)<1.06,STICK,COLOR000000;
 
DRAWTEXT(潜伏,0.5,'潜'),COLORFFFFFF;
 
DRAWTEXT(潜伏,0.1,'伏'),COLORFFFFFF;
 
DRAWICON(潜伏>0,潜伏,25);
 
 
 
AA1:= AMOUNT/VOL;
 
BB01:= LOW<AA1*0.9;
 
CC1:= (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
 
DD1:= LOW<MA(CLOSE,5)*0.921;
 
EE1:= VOL<MA(VOL,5)*1.5;
 
FF1:= BB01 AND CC1 AND DD1 AND EE1;
 
买3:= FILTER(FF1,3);
 
长期底部:= LLV(HIGH,30);
 
上:= SMA(LOW,5,2)*0.96;
 
短期底部:= LLV(HIGH,30)*0.93;
 
选底:= FILTER(LOW<=上 AND HIGH>=短期底部 AND CLOSE>=长期底部 AND CLOSE/OPEN>1.03,3);
 
VAR08:= LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
 
VAR09:= CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
 
VAR010:= VAR08 AND VAR09;
 
VAR014:= LLV(LOW,1)=LLV(LOW,35) AND CLOSE>=OPEN*1.04;
 
二十天最低跌幅:= HHV(CLOSE,20)/LLV(CLOSE,20);
 
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 
K:= SMA(RSV,3,1);
 
D:= SMA(K,3,1);
 
J:= 3*K-2*D;
 
X0:= LLV(J,2)=LLV(J,8);
 
买1:= CROSS(J,REF(J+0.01,1)) AND X0 AND J<20 AND 二十天最低跌幅>=1.3;
 
稳赚: FILTER(买3 OR 选底,3) AND COUNT(买1+VAR014+VAR010,3)>0,STICK,COLOR000000;
 
DRAWTEXT(稳赚,0.5,'稳'),COLORFFFFFF;
 
DRAWTEXT(稳赚,0.1,'赚'),COLORFFFFFF;
 
DRAWICON(稳赚>0,稳赚,34);
 
 
 
D1:=(L+H+C*2)/4;
 
D2:= MA(D1,4);
 
D3:=HHV(D2,10);
 
D4:=MA(D3,3);
 
D5:=1.25*D4-0.25*D3;
 
A:=IF(D5>D3,D3,D5);
 
F1:=LLV(D2,10);
 
F2:=MA(F1,3); F3:=1.25*F2-0.25*F1;
 
B:=IF(F3<F1,F1,F3);
 
MA13:=MA(C,13);
 
DOU:=CROSS(C,B) AND CROSS(C,MA13) AND CROSS(C,A);
 
DOUDOU:=CROSS(C,MA13) AND CROSS(C,A);
 
买入:DOU OR DOUDOU,STICK,COLOR000000;
 
DRAWTEXT(买入,0.5,'买'),COLORFFFFFF;
 
DRAWTEXT(买入,0.1,'入'),COLORFFFFFF;
 
DRAWICON(买入>0,买入,34);
 
 
 
X_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 
X_2:=SMA(X_1,3,1);
 
X_3:=SMA(X_2,3,1);
 
起涨:CROSS(X_2,X_3) AND X_3<30,STICK,COLOR0000E3;
 
DRAWTEXT(起涨,0.5,'起'),COLORFFFFFF;
 
DRAWTEXT(起涨,0.1,'涨'),COLORFFFFFF;
 
DRAWICON(起涨>0,起涨,1);
 
 
 
高量柱:VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01,STICK,COLOR000000;
 
DRAWTEXT(高量柱,0.5,'高量'),COLORFFFFFF;
 
DRAWTEXT(高量柱,0.1,'柱'),COLORFFFFFF;
 
DRAWICON(高量柱>0,高量柱,34);
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标