以下是通达信尾盘双线重叠尾盘买入第二天指标源码和截图
通达信尾盘双线重叠选股尾盘买入第二天涨停指标源码:
粘合度N:=360;
N1:=5;
N2:=14;
N3:=34;
N4:=55;
N5:=99;
N6:=144;
距离:=22;
N0:=3;
SHORT:=12;
LONG:=29;
MID:=9;
{增仓}
JA1:=(VOL/C)/2;
A2YT:=SUM(IF(JA1 100ANDREF(CLOSE,1) REF(CLOSE,2),JA1,0),0);
A3Y:=SUM(IF(JA1 100ANDREF(CLOSE,1) REF(CLOSE,2),JA1,0),0);
A4Y:=SUM(IF(JA1 100ANDREF(CLOSE,1) REF(CLOSE,2),JA1,0),0);
A5Y:=SUM(IF(JA1 100ANDREF(CLOSE,1) REF(CLOSE,2),JA1,0),0);
A6Y:=A2YT+A3Y+A4Y+A5Y;
机买:=(A2YT/A6Y)*100;
机卖:=(A3Y/A6Y)*100;
差:=机买-机卖;
机构加仓:=(主力差 REF(主力差,1)+1.2)AND机买
XXBB:=EMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*4,5)*100;
追拉升:=REF(XXBB,1) 50ANDXXBB-REF(XXBB,1)
机构追买:=机构加仓AND追拉升;
{何氏妖股}
月DIF:="MACD.DIF#MONTH";
月DEA:="MACD.DEA#MONTH";
周DIF:="MACD.DIF#WEEK";
周DEA:="MACD.DEA#WEEK";
日DIF:="MACD.DIF";
日DEA:="MACD.DEA";
日:=CROSS(日DIF,日DEA);
周金叉:=CROSS(周DIF,周DEA);
月金叉:=CROSS(月DIF,月DEA);
WIW:=((日DIF 日DEAAND周DIF 周DEAAND月金叉)OR(周DIF 周DEAAND月DIF 月DEAAND日金叉)OR(日DIF 日DEAAND月DIF 月DEAAND周金叉)OR(日金叉AND周金叉AND月金叉)OR(日DIF 日DEAAND周DIF 周DEAAND月DIF 月DEA));
月K:="KDJ.K#MONTH";
月D:="KDJ.D#MONTH";
周K:="KDJ.K#WEEK";
周D:="KDJ.D#WEEK";
日K:="KD.K";
日D:="KD.D";
日金叉1:=IF(CROSS(日K,日D),15,0);
周金叉1:=IF(CROSS(周K,周D),25,0);
月金叉1:=IF(CROSS(月K,月D),35,0);
日周月:=IF(日金叉1=15AND周金叉1=25AND月金叉1=35,1,0);
日周月赚:=日周月=1;
日周:=IF(日金叉1=15AND周金叉1=25,2,0);
日周赚:=日周=2;
周月:=IF(周金叉1=25OR月金叉1=35,4,0);
日月:=IF(日金叉1=15AND月金叉1=35,5,0);
日月赚:=日月=4;
周月赚:=周月=3;
S1:=日K S2:=周K S3:=月K
WHW:=((S1ANDS2AND周金叉1AND日金叉1)OR(S1ANDS2AND周金叉1AND月金叉1)OR(S1ANDS3AND周金叉1AND月金叉1)OR(日金叉1AND周金叉1AND月金叉1)OR(S2ANDS3AND周金叉1AND月金叉1)OR(日金叉1AND周金叉1ANDS2ANDS3)OR(S1ANDS3ANDS2)OR(日月赚AND日周月赚AND周月赚)OR(日月赚AND日周赚AND日周月赚)OR(日周赚AND日周月赚AND周月赚)OR(日月赚AND日周赚AND周月赚));
涨停1:=(H/REF(C,1) 1.099ANDC=H)OR(H/L 1.11ANDC/L 1.06);
Y1Y:=COUNT(WIW,18) 0ORCOUNT(WIW,48) 0ORWIW;
Y2Y:=COUNT(WHW,18) 0ORCOUNT(WHW,48) 0ORWHW;
Y3Y:=COUNT(机构加仓OR机构追买,18) 0ORCOUNT(机构加仓OR机构追买,48) 0OR(机构加仓OR机构追买);
A1T:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
A2T:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1T);
金线王:=C =EMA(A2T,144);
JXWS:=C 金线王#MIN30ORC 金线王#MIN60ORC
天神捉妖:Y1YANDY2YANDY3YANDJXWS;
CN1:=HHV(V,5);CN2:=O CN02:=C CN03:=C=O;
CN04:=((SUM(V,5)/CN1));CN05:=IF(CN04 0.3,1,0);
CN06:=IF(CN2ANDCN05,V,0);CN07:=IF(CN02ANDCN05,V,0);
CN08:=IF(CN03ANDCN05,V,0);
AD:SUM(CN07,3),COLORYELLOW;DA:=SUM(CN06,3);
AZ:(AD-DA),COLOR0000FF;AF:=AZ=AD;
AX:=AD*0.6;SA:=BETWEEN(AZ,AD,AX);
0,COLORGRAY;
抓板就看它选股公式
CN1:=HHV(V,5);
CN2:=O
CN02:=C
CN04:=((SUM(V,5)/CN1));
CN05:=IF(CN04 0.3,1,0);
CN06:=IF(CN2ANDCN05,V,0);
CN07:=IF(CN02ANDCN05,V,0);
AD:=SUM(CN07,3);
DA:=SUM(CN06,3);
AZ:=AD-DA;
xg:cross(az,0);
M:=9;SHORT:=12;LONG:=26;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA),STICK;
多空分界:MA(C,50),LINETHICK1,COLORCYAN,POINTDOT;
TOZ:=MA(C,50),COLORYELLOW,DOTLINE;
TMACD:=MA(C,50)+(MACD.MACD)*3;
HD0:=CROSS(DIF,DEA);
金收:=REF(L,BARSLAST(HD0)),COLORYELLOW,DOTLINE;
DRAWNUMBER(ISLASTBAR,金收,金收),COLORCYAN;
LD0:=CROSS(DEA,DIF);
死收:REF(H,BARSLAST(LD0)),COLOR00FF00,DOTLINE;
JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));{计算出金叉死叉时的DIFF值}
DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));{计算出明日MACD=MACD时的DIFF值}
DIF拐头价:(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORYELLOW,LINETHICK1;
柱变向价:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORWHITE,LINETHICK1;
DRAWBAND(DIF拐头价,RGB(250,250,0),DIF拐头价,RGB(0,0,0));
DRAWBAND(IF(柱变向价 DIF拐头价,柱变向价,DRAWNULL),RGB(250,0,0),柱变向价,RGB(0,0,0));
黄铢消失见顶:=IF(柱变向价 =DIF拐头价,DIF拐头价,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
金叉:=IF(柱变向价 =DIF拐头价,多空分界,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;
金死叉价:(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORCYAN,NODRAW;
MACD走平时股价:=(((M+1)*(2*REF(DEA,1)*(M-1)+REF(MACD,1)*(M+1)))/(2*(M+1)*(M-1))+(REF(EMA(C,26),1)*(26-1)/(26+1))-(REF(EMA(C,12),1)*(12-1)/(12+1)))*(12+1)*(26+1)/(2*(26-12));
{买好股公式网}
ES:=REF(EMA(C,26),1);
EP:=REF(EMA(C,12),1);
DI:=REF(DIF,1);
DIF穿零价:((12+1)*(26-1)*ES-(26+1)*(12-1)*EP)/(2*(26+1)-2*(12+1)),NODRAW,COLORWHITE;
DRAWTEXT_FIX(1,0.7,0.01,0,STRCAT('金死叉价: ',CON2STR(金死叉价,2))),COLORCYAN;
ZJ:=DIF
HY:=DIF
XG1:=ZJANDC 死收ANDC 多空分界;
STICKLINE(XG1,L,H,0,0),COLOR0000AA;
STICKLINE(XG1,CLOSE,OPEN,3,0),COLOR000055;
STICKLINE(XG1,CLOSE,OPEN,2.8,0),COLOR000066;
STICKLINE(XG1,CLOSE,OPEN,2.5,0),COLOR000077;
STICKLINE(XG1,CLOSE,OPEN,2.2,0),COLOR000088;
STICKLINE(XG1,CLOSE,OPEN,1.7,0),COLOR000099;
STICKLINE(XG1,CLOSE,OPEN,1.2,0),COLOR0000AA;
STICKLINE(XG1,CLOSE,OPEN,0.7,0),COLOR0000CC;
STICKLINE(XG1,CLOSE,OPEN,0.2,0),COLOR0000FF;
W1:=C 死收ANDZJ;
STICKLINE(W1,H,L,0,1),COLORFF55FF;
STICKLINE(W1,C,O,3.2,0),COLOR880088;
STICKLINE(W1,C,O,2.6,0),COLORAA00AA;
STICKLINE(W1,C,O,1.9,0),COLORCC00CC;
STICKLINE(W1,C,O,1.1,0),COLOREE00EE;
STICKLINE(W1,C,O,0.3,0),COLORFF44FF;
W2:=C 多空分界ANDZJ;
STICKLINE(W2,H,L,0,1),COLORFF55FF;
STICKLINE(W2,C,O,3.2,0),COLOR880088;
STICKLINE(W2,C,O,2.6,0),COLORAA00AA;
STICKLINE(W2,C,O,1.9,0),COLORCC00CC;
STICKLINE(W2,C,O,1.1,0),COLOREE00EE;
STICKLINE(W2,C,O,0.3,0),COLORFF44FF;
XG2:=C DIF拐头价ANDHY;
STICKLINE(XG2,H,L,0,0),COLOR00FF00;
STICKLINE(XG2,C,O,3,0),COLOR009900;
STICKLINE(XG2,C,O,2,0),COLOR00BB00;
STICKLINE(XG2,C,O,1,0),COLOR00DD00;
STICKLINE(XG2,C,O,0.3,0),COLOR00FF00;
XG3:=C DIF拐头价ANDHY;
STICKLINE(XG3,H,L,0,0),COLOR00FF00;
STICKLINE(XG3,C,O,3,0),COLOR009900;
STICKLINE(XG3,C,O,2,0),COLOR00BB00;
STICKLINE(XG3,C,O,1,0),COLOR00DD00;
STICKLINE(XG3,C,O,0.3,0),COLOR00FF00;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORWHITE,LINETHICK1,NODRAW;
D:SMA(K,3,1),COLORYELLOW,LINETHICK1,NODRAW;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
IF(COUNT(RSI1 80,3)=3,H,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK8;
IF(COUNT(RSI1 20,3)=3,L,DRAWNULL),POINTDOT,COLORYELLOW,LINETHICK8;
IF(COUNT(K 80,3)=3,H,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK5;
IF(COUNT(K 20,3)=3,L,DRAWNULL),POINTDOT,COLORFF33FF,LINETHICK5;
今日空间:=C-REF(金死叉价,1)COLORGREEN,NODRAW;
尾盘空间:C-金死叉价,NODRAW;
DRAWTEXT_FIX(1,0.6,0.09,0,STRCAT('尾盘5分钟差值:',CON2STR(尾盘空间,2))),COLORCYAN;
通达信尾盘双线重叠选股尾盘买入第二天涨停指标截图