以下是通达信底部买入之神猎手副图买入公式源码和使用说明
通达信底部买入之神猎手副图选股买入公式源码:
XA_1:=REF(LLV(LOW,250/12),2);
XA_2:=MA(CLOSE,20);
XA_3:=MA(SLOPE(CLOSE,20)*5+CLOSE,10);
XA_4:=LOW XA_3ANDLOW XA_2;
XA_5:=CROSS(MA(CLOSE,10),MA(CLOSE,5));
XA_6:=COUNT(XA_5,5)
神猎手:CROSS(CLOSE,XA_1)ANDXA_4ANDXA_6,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0,0,GNBLOCK),COLOR00CCCC;
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26)),COLORRED,NODRAW;
DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;
MACD:2*(DIF-DEA),NODRAW;
DIFK:=EMA(DIF,3);
DIFD:=EMA(DIFK,3);
DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW;
DDD:EMA(DKK,5),COLOR2588FF,NODRAW;
TRLSX1:=MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),ABS(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));
TRLSX2:=EMA(TRLSX1,13);
TRLSX3:=REF(DIF,1)-REF(TRLSX2,1);
支撑:HHV(TRLSX3,13),COLORFFFFFF,NODRAW;
RSV14:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14))-0.5;
K14:=EMA(RSV14,3),COLORFF00FF,NODRAW;
D14:=EMA(K14,3),COLORGREEN,NODRAW;
J14:=3*K14-2*D14;
DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10));
MACDXG2:=REF(COUNT(DIF 0ANDMACD 0ANDMACD REF(MACD,1),4)=4,1)ANDMACD REF(MACD,1);
STICKLINE(MACDXG2,MACD*1.2,0,2.8,0),COLORRED;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,0.6,0),COLOR0000BB;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,1.8,0),COLOR888888;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,1.1,0),COLORBBBBBB;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,0.6,0),COLORDDDDDD;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1.8,0),COLOR3377AA;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,1.1,0),COLOR3388BB;
STICKLINE(MACD REF(MACD,1)ANDMACD 0,0,MACD,0.6,0),COLOR4499CC;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,1.8,0),COLORFF3300;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,1.1,0),COLORFF5500;
STICKLINE(MACD =REF(MACD,1)ANDMACD 0,0,MACD,0.6,0),COLORFF7700;
STICKLINE(J14 -0.5,0,0.15,1.8,0),COLORFF00FF;
支撑,COLORFFFFFF;
IF(C 0,DIF,DRAWNULL),COLORRED,LINETHICK1;
IF(C 0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1;
IF(DEA REF(DEA,1),DEA,DRAWNULL),COLORBE7F6F,LINETHICK1;
IF(DIF =REF(DIF,1),DIF,DRAWNULL),COLORBLUE,LINETHICK1;
IF(C,DKK,DRAWNULL),COLORFF00FF,LINETHICK1;
IF(DKK =REF(DKK,1),DKK,DRAWNULL),COLORCYAN,LINETHICK1;
IF(C,DDD,DRAWNULL),COLOR2255FF,LINETHICK1;
IF(DDD =REF(DDD,1),DDD,DRAWNULL),COLOR33FF33,LINETHICK1;
KDJXG:=REF(COUNT(J14 REF(J14,1),5) =3,1)ANDREF(J14,1) -0.4ANDJ14 REF(J14,1);
DRAWICON(FILTER(KDJXG,3),MACD*1.2,11),COLORFF00EE;
准备介入点:=REF(CROSS(0,MACD),3)ANDCOUNT(DIF 0ANDMACD REF(MACD,1),4)=4;
DRAWICON(准备介入点,0.05,9);
N1:=5;
N2:=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);
赶快买:CROSS(N2,N1),NODRAW;
秘密买:N2 =5,COLOR00FF99,NODRAW;
偿试买:N2 13,COLORCYAN,NODRAW;
STICKLINE(偿试买,0,50,4,-1),COLORCYAN;
STICKLINE(秘密买,0,45,1,0),COLOR00FF99;
STICKLINE(赶快买,0,100,1,0),COLORFF00FF;
STICKLINE(神猎手,0,100,1,0),COLORRED;
DRAWTEXT(赶快买,60,'赶快买'),COLORGREEN;
DRAWTEXT(神猎手,85,'神猎手'),COLORWHITE;
VARA:=REF(LOW,1);
VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,30);
VARE:=HHV(VARC,30);
VARF:=IF(MA(CLOSE,58),1,0);
DRAWTEXT_FIX(C O,1,1,0,''),colorred;
VARG:=EMA(IF(LOW =VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
VARH:=IF(VARG 28,28,VARG);
吸筹:STICKLINE(VARH -120,0,VARH,6,1),COLOR0FFFFF;
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;
X:=LLV(J,2)=LLV(J,8);
跟庄买入:IF(CROSS(J,3),50,0),colorred,LINETHICK3;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),colorred;
红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;
JL:=EMA(VOL,13);
JE:=EMA(AMOUNT,13);
JX:=((JE/JL)/100);
RGL:=(((CLOSE-JX)/JX)*100);
STICKLINE((RGL (0-6)),0,20,2,0),COLORFF00CC;
V1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
V2:=2*ABS(V1);
粉军:IF(V1 0,V1,0),COLORFFCCFF,LINESTICK;
绿军:IF(V1 0,V2,0),colorgreen,LINESTICK;
K1:=SMA(RSV,3,1);
DK1:=K1-REF(K1,1);
出手就赢:IF(DK1 7ANDREF(DK1,1) 0AND(DK1-REF(DK1,1)) 9,30,0),LINESTICK,coloryellow;
DRAWICON(出手就赢 0,30,1);
通达信底部买入之神猎手副图选股买入公式截图