通达信准备买入主图+选股公式
-
相关简介:通达信准备买入主图+选股公式 指标源码如下: LH:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14)); NL:=EMA((EMA(C,5)*7+EMA(C,10)*3)/10,3); IF(NLREF(NL,1),DRAWNULL,NL),LINETHICK5,COLORGREEN; IF(NLREF(NL,1),DRAWNULL,NL),LINETHICK5,COLORRED; NX:=CROSS(EMA(C,3.14),EM
-
文章来源:股海网作者:股海网发布时间:2013-08-14浏览次数:
通达信准备买入主图+选股公式
指标源码如下:
LH:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));
NL:=EMA((EMA(C,5)*7+EMA(C,10)*3)/10,3);
IF(NL>REF(NL,1),DRAWNULL,NL),LINETHICK5,COLORGREEN;
IF(NL<REF(NL,1),DRAWNULL,NL),LINETHICK5,COLORRED;
NX:=CROSS(EMA(C,3.14),EMA(C,6.18)) AND REF(LH,1)<0;
STICKLINE(NX,H,L,0.1,0),COLORYELLOW;
STICKLINE(NX,O,C,3,0),COLORYELLOW;
DRAWICON(NX,H,9);
欣喜:MEMA(XMA((((C-O)*2)+O),30),13);
若狂:MEMA(MEMA((((C-O)*2)+O),5),13);
DRAWBAND(欣喜,RGB(150,0,80),若狂,RGB(0,0,250));
DRAWICON(LONGCROSS(欣喜,若狂,1),欣喜*0.995,7),COLORRED;
DRAWICON(LONGCROSS(若狂,欣喜,1),若狂*1.009,8),COLORGREEN;
DRAWTEXT(LONGCROSS(欣喜,若狂,1),欣喜*0.995,'一次准备'),COLORRED;
短线趋势:=(EMA(C,7) - EMA(C,13));
中线趋势:=EMA(短线趋势,13);
VAR4:=MA(C,7);
VAR5:=MA(C,13);
VAR6:=MA(C,34);
VAR7:=MA(C,55);
VAR10:=((0 - ((10 * (HHV(C,5) - C)) / (HHV(C,5) - LLV(L,5)))) + 10);
VAR11:=((0 - ((10 * (HHV(C,13) - C)) / (HHV(C,13) - LLV(L,13)))) + 10);
VAR12:=((0 - ((10 * (HHV(C,21) - C)) / (HHV(C,21) - LLV(L,21)))) + 10);
VAR13:=((0 - ((10 * (HHV(C,34) - C)) / (HHV(C,34) - LLV(L,34)))) + 10);
VAR14:=REF(中线趋势,1);
VAR15:=中线趋势;
VAR16:=(VAR15 - VAR14);
VAR17:=REF(短线趋势,1);
VAR18:=短线趋势;
VAR19:=(VAR18 - VAR17);
VARE:=(SUM(((C * VOL) * 10),34) / SUM((VOL * 200),34));
VARF:=(INTPART((VARE * 10)) / 10);
黄雀在后:=(((((((O<= VAR4) AND (O<= VAR5)) AND (O<= VAR6)) AND (C>= VAR4)) AND (C>= VARF)) AND (VAR16 > 0)) AND (VAR19 > 0)),LINETHICK0;
DRAWTEXT(黄雀在后,L-0.1,'二次准备'),COLORMAGENTA;
DRAWICON(黄雀在后,L-0.1,1);
AAA:=WINNER(C+C*15/100)*100;
BB:=WINNER(C+C*0/100)*100;
CC:=AAA-BB;
DD:=(WINNER(C-C*0.1/100)-WINNER(C-C*15/100))*100;
EE:=CC<3 AND DD<0.5 AND O<L;
A1X:=DYNAINFO(6);
A2X:=IF(L>A1X,0,IF(H<A1X,1,(A1X-L+0.01)/(H-L+0.01)));
A3X:=V/WINNER(L);
A4X:=REF(HHV(C,120),1);
A5X:=REF(LLV(C,120),1);
A6X:=100*(C-A5X)/(A4X-A5X);
A7X:=A2X>0 OR A2X=1;
A8X:=A7X AND A3X/REF(A3X,3)>=3 AND A6X<80 ;
A9X:=REF(A8X,1) OR REF(A8X,2) OR REF(A8X,3) OR REF(A8X,4);
A10X:=A8X AND A9X;
A12X:=IF(FILTER(A10X,3) OR EE,10,0);
CCC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD20:=DMA(CLOSE,CCC);
AA20:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道22:=AA20*(200-7)/100;
通道44:=(1-7/100)*DD20;
A20:=C<通道22 AND C<通道44 AND C>O;
TYP2:=(HIGH+LOW+CLOSE)/3;
CCI2:=(TYP2-MA(TYP2,14))/(0.015*AVEDEV(TYP2,14));
MIDD:=MA(CLOSE,20);
LOWERR:=MIDD-2*STD(CLOSE,20);
XGG:=A20 AND CCI2<-100 AND O<LOWERR;
XIN:=A12X AND XGG;
XX:=BARSLAST(XIN);
〖止盈价〗:IF(XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,DRAWNULL),NODRAW,COLORYELLOW;
〖止损价〗:IF(XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*0.95,DRAWNULL),NODRAW,COLORWHITE;
〖平仓价〗:IF(XX=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),C,DRAWNULL),NODRAW;
DRAWICON(XIN,C*0.95,1);
DRAWICON(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,2);
DRAWICON(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>=REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,2);
DRAWICON(COUNT(H<REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,2);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX),REF(C,XX),1,0);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),COLORYELLOW;
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX),REF(C,XX),1,0);
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),COLORYELLOW;
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,REF(C,XX)*1.1,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX),REF(C,XX),1,0);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*0.95,REF(C,XX)*0.95,1,0),,COLORYELLOW;
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX=10 AND COUNT(C>=REF(C,XX)*0.95,XX)=XX,REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
STICKLINE(COUNT(H<=REF(C,XX)*1.1,XX)=XX AND XX<=10 AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1) AND C<=REF(C,XX)*0.95,REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
STICKLINE(H>=REF(C,XX)*1.1 AND XX<=10 AND REF(COUNT(H<REF(C,XX)*1.1,XX)=XX,1) AND REF(COUNT(C>REF(C,XX)*0.95,XX)=XX,1),REF(C,XX)*1.1,REF(C,XX)*0.95,0.00001,-1);
JJ:=IF(HHV(H,8)<=C*1.1,HHV(H,8),IF(HHV(H,7)<=C*1.1,HHV(H,7),
IF(HHV(H,6)<=C*1.1,HHV(H,6),
IF(HHV(H,5)<=C*1.1,HHV(H,5),
IF(HHV(H,4)<=C*1.1,HHV(H,4),
IF(HHV(H,3)<=C*1.1,HHV(H,3),IF(HHV(H,2)<=C*1.1,HHV(H,2),H)))))));
STICKLINE(XIN,JJ,C*0.95,0.00001,-1);
----------------------------------------
出现“二次准备”的选股公式
VAR4:=MA(C,7);
VAR5:=MA(C,13);
短线趋势:=(EMA(C,7) - EMA(C,13));
中线趋势:=EMA(短线趋势,13);
VAR6:=MA(C,34);
VAR7:=MA(C,55);
VAR14:=REF(中线趋势,1);
VAR15:=中线趋势;
VAR16:=(VAR15 - VAR14);
VAR17:=REF(短线趋势,1);
VAR18:=短线趋势;
VAR19:=(VAR18 - VAR17);
VARE:=(SUM(((C * VOL) * 10),34) / SUM((VOL * 200),34));
VARF:=(INTPART((VARE * 10)) / 10);
XG:(((((((O<= VAR4) AND (O<= VAR5)) AND (O<= VAR6)) AND (C>= VAR4)) AND (C>= VARF)) AND (VAR16 > 0)) AND (VAR19 > 0));