登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

来生缘

上邪!我欲与君相知长命无绝衰.山无陵江水为竭,冬雷震震夏雨雪,天地合,乃敢与君绝

 
 
 

日志

 
 

幅图共振指标  

2012-02-04 21:17:22|  分类: 炒股公式 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

幅图共振指标  
1.MACD+KDJ+BOLL+量比+换手    K上穿D

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,LINETHICK2;

K:SMA(RSV,3,1),LINETHICK1;

D:SMA(K,3,1),LINETHICK1;

J:=3*K-2*D,COLORFF00FF,LINETHICK1;

IF(K<15,K,DRAWNULL),COLORRED,LINETHICK2;

DRAWTEXT(CURRBARSCOUNT=1,40,'KDJ躺底吸纳');

{MACD部分}

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD2:=(DIF-DEA)*200,COLORSTICK;

STICKLINE(DIF>DEA,-10,-15,10,0),COLORRED;

STICKLINE(DIF<DEA,-10,-15,10,1),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,-10,'MACD红持绿退');

{换手部分}

HS5:=MA(HSL,5);

HS60:=MA(HSL,60);

STICKLINE(HS5>HS60,100,105,10,0),COLORMAGENTA;

STICKLINE(HS5<HS60,100,105,10,1),COLORWHITE;

DRAWTEXT(CURRBARSCOUNT=1,105,'HSL红高换手');

DRAWICON(CROSS(K,D) AND MACD>0,K-5,1);

{量比部分}

LBB:=V/(REF(V,15)/5);

MA120:=MA(LBB,120)/10;

DIF1:=EMA(LBB,30)-EMA(LBB,60);

DEA1:=EMA(DIF1,15);

STICKLINE(DIF1>DEA1,90,95,10,0),COLORRED;

STICKLINE(DIF1<DEA1,90,95,10,1),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,90,'量比红进绿退');

{布林部分}

BOLL:=MA(CLOSE,20);

UB:=BOLL+2*STD(CLOSE,20);

LB:=BOLL-2*STD(CLOSE,20);

STICKLINE(LB>C,-20,-25,10,0),COLORMAGENTA;

STICKLINE(LB<C,-20,-25,10,1),COLORWHITE;

STICKLINE(C>UB,-20,-25,10,0),COLORGREEN;

DRAWTEXT(CURRBARSCOUNT=1,-20,'BOLL红底绿高');


幅图共振指标 - 来生缘 - 来生缘

 


幅图共振指标 - 来生缘 - 来生缘

  

2.量比(源码,有用法.TDX)

M1:=5; M2:=10; M3:=20 ; M4:=60;VOLUME:=VOL,VOLSTICK;

MAVOL1:MA(VOLUME,M1),LINETHICK1;

MAVOL2:MA(VOLUME,M2),LINETHICK1,COLORGREEN;

MAVOL3:MA(VOLUME,M3),LINETHICK0;

MAVOL4:MA(VOLUME,M4),LINETHICK1;

前量比:VOL/REF(VOL,1),LINETHICK0;

五量比:VOL/MAVOL1,LINETHICK0;

六量比:VOL/MAVOL4,LINETHICK0;

IF(MA(VOL,5)>=REF(MA(VOL,5),1),MA(VOL,5),DRAWNULL),COLORRED,LINETHICK2;

1.前量比:今天成交量占昨日成交量的比值,根据时间测算今日是否放量或者缩量;

  五量比:今日成交量与五日均量线的比值,看看是否有上涨的动力,大于1才有上涨动力;

  六量比:中线大于1才具有中期行情;

2. 5是表示5日均量和10日均量的金叉,其余类推。

一句话:红买蓝卖,中线以上具有中期行情。(适用大盘)
幅图共振指标 - 来生缘 - 来生缘    

3. 通达信金叉共振指标公式:

市场成本:DMA(AMOUNT/V/100,V/CAPITAL),COLORRED;

DRAWICON(CROSS(C,市场成本),L-0.20,1);{1号图标显示红脸}

{PARTLINE(市场成本,市场成本>REF(市场成本,1),RGB(255,0,0),NOT(市场成本<REF(市场成本,1)),RGB(0,0,255),1,RGB(0,0,255)),LINETHICK2;}

J1:MA(C,7),COLORWHITE;

J2:MA(C,21),COLORYELLOW;

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);

A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));

B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));

A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

DRAWICON(B1>0,L-0.20,5);

DRAWTEXT(B1,L-0.30,'MACD底背'),COLORWHITE;

DRAWICON(B2>0,L-0.20,4);

DRAWTEXT(B2,L-0.30,'KDJ底背'),COLORFF00FF;

DRAWICON(B3>0,L-0.20,3);

DRAWTEXT(B3,L-0.30,'RSI底背'),COLORYELLOW;

DRAWICON(CROSS(DIFF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.20,6);

DRAWTEXT(CROSS(DIFF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),L-0.30,'金叉共振'),COLOR0099FF;
幅图共振指标 - 来生缘 - 来生缘
 

4. MACD+KDJ+RSI
DIFIF1:=(EMA(CLOSE,12) - EMA(CLOSE,26))*100/EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,3,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,3,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,3,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLOR33FF33,LINETHICK2;
DEAEA1,COLORYELLOW,LINETHICK2;
MACD:MACD1,NODRAW,COLORMAGENTA;
强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;
弱:=IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),0.4,2);
A1:=BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1));
B1:=REF(C,A1+1)>C AND REF("MACD.DIF",A1+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA");
DRAWTEXT(B1>0,-0.8,'MACD底背'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS("
KDJ.K","KDJ.D"),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K",A2+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D");
DRAWTEXT(B2,-0.6,'KDJ底离'),COLORYELLOW;{KDJ底
背离};
A3:=BARSLAST(REF(CROSS("
RSI.RSI1","RSI.RSI2"),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1",A3+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2");
DRAWTEXT(B3>0,-0.3,'RSI底离'),COLORCYAN;{RSI底背离};
C1:=BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1));
D1:=REF(C,C1+1)<C AND REF("MACD.DIF",C1+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF");
DRAWTEXT(D1>0,0.4,'MACD顶离'),COLORBLUE;{MACD顶背离}
C2:=BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K",C2+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K");
DRAWTEXT(D2>0,0.6,'KDJ顶离'),COLORLIGRAY;{KDJ顶背离}
C3:=BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1",C3+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1");
DRAWTEXT(D3>0,0.8,'RSI顶离'),COLORGREEN;{RSI顶背离};
DD:=C=HHV(C,180);
EE:=DEAEA1< REF(DEAEA1,1) AND REF(DEAEA1< REF(DEAEA1,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:(CC AND EE)*DEAEA1,COLOR00FFFF;
顶背离:(DD AND EE AND DEAEA1< HHV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORGREEN;
FF:=C=LLV(C,180);
GG:= DEAEA1> REF(DEAEA1,1) AND REF(DEAEA1> REF(DEAEA1,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:(LL AND GG)*DEAEA1,COLORMAGENTA;
底背离:(FF AND GG AND DEAEA1> LLV(DEAEA1,180))*DEAEA1,STICK,LINETHICK3,COLORRED;

幅图共振指标 - 来生缘 - 来生缘

 


 5.MACD-KDJ金叉共振:

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);

IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);}
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,9,3),COLORYELLOW;
D:SMA(K,9,3),COLORWHITE;
J:3*K-2*D,COLORMAGENTA;
IF(J<D,J,DRAWNULL),COLORFFEE44;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);
A22:=BARSLAST(REF(CROSS("
KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
B2:=REF(C,A22+1)>C AND REF("KDJ.K"(9,3,3),A22+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("
RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
DRAWTEXT(B1,DEA-0.20,'▲MACD底背'),COLORWHITE;
DRAWTEXT(B2,D-0.20,'●KDJ底背'),COLORFF00FF;
{DJ:=CROSS(J,D) AND D<20;
DRAWTEXT(DJ,J-0.3,'低
金叉'),COLORCYAN;
MDJ:=CROSS(DIF,DEA) AND DEA<0;
DRAWTEXT(MDJ,DEA-0.3,'低金叉'),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,'死叉'),COLORYELLOW;
DRAWTEXT(CROSS(D,J),J+0.3,'死叉'),COLORRED;}
A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
DRAWICON(A,LOW*0.98,1);
B4:CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
DRAWTEXT(B4,L-0.20,'★金叉共振'),COLOR0099FF;

DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);

BA:=DEA>REF(DEA,1);
BB:=SUM(BA,5)>=4;
BC:=C<O;
BD:=SUM(BC,5)>=2;
BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);
STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;

SS:=EMA(C,11);
LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;

{短:EMA(LL,2),COLORGREEN,LINETHICK2;}

{长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}

AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));
(CROSS(AA,0.05)-1);

幅图共振指标 - 来生缘 - 来生缘

 

6. 通达信集体共振指标公式源码如下:
N1:=6;N2:=12;N3:=24;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:SMA(RSV,3,1),LINETHICK2,COLORWHITE;

D:SMA(K,3,1),LINETHICK2,COLORYELLOW;

J:3*K-2*D,LINETHICK2,COLORRED;

DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2,COLORGREEN;

DEA :EMA(DIFF,9),LINETHICK2,COLORBLUE;

MACD:2*(DIFF-DEA),LINETHICK2,COLORRED;

RSV1:=(HHV(H,9.8)-C)/(HHV(H,9.8)-LLV(L,9.8))*101;

KK:=SMA(RSV1,3,1);

DD:=SMA(KK,3,1);

JJ:=3*KK-2*DD;

买卖:=IF(JJ>=100,100,IF(JJ<=0,0,JJ));

明天买:IF(买卖=100,0-10,0),COLOR00CCCC;

明天卖:IF(买卖=0,90,100),COLOR00FF00;

TYP:=(HIGH+LOW+CLOSE)/3;

STICKLINE(DIFF>REF(DIFF,1),20,20,2,0),COLORRED;

STICKLINE(DIFF<REF(DIFF,1),20,20,2,0),COLORGREEN;

STICKLINE(K>=REF(K,1) OR K>D AND DIFF>REF(DIFF,1),80,80,2,1),COLORRED;

STICKLINE(K<REF(K,1),80,80,2,1),COLORGREEN;

MACD金叉:=CROSS(MACD,DIFF) AND MACD>=(0-0.05) AND MACD<=0.02;

DRAWTEXT(MACD金叉,40,'▲MACD金叉'),COLORRED;

XX:=EMA(MA(LOW,3)*0.96,30);

DIFF金叉:=IF(CROSS(DIFF,DEA) AND XX-REF(XX,1)>0 AND MACD>=REF(MACD,1) AND DIFF<=0,1,0);

DRAWTEXT(DIFF金叉=1,35,'▲DIFF金叉'),COLORRED;

低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

DRAWTEXT(低位金叉,25,'▲低位金叉'),COLORRED;

DIFDEA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));

二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(DIFDEA=2,21)=1;

DRAWTEXT(二次金叉,20,'▲二次金叉'),COLORRED;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));

MACD底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);

DRAWTEXT(MACD底背离,30,'▲MACD底背离'),COLORRED;

A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));

MACD顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);

DRAWTEXT(FILTER(MACD顶背离,5),100,'▼MACD顶背离') ;

周DIFF:='MACD.DIFF#WEEK';

周DEA:='MACD.DEA#WEEK';

周MACD:='MACD.MACD#WEEK';

DIF周金叉:=CROSS(周DIFF,周DEA);

DRAWTEXT(DIF周金叉,45,'▲DIFF周金叉'),COLORRED;

DRAWTEXT(CROSS(周DEA,周DIFF),110,'▼DIFF周死叉') ;

MACD周金叉:=CROSS(周MACD,周DIFF) AND 周MACD>=(0-0.05) AND 周MACD<=0.02;

DRAWTEXT(MACD周金叉,50,'▲MACD周金叉'),COLORRED;

月DIFF:='MACD.DIFF#MONTH';

月DEA:='MACD.DEA#MONTH';

月MACD:='MACD.MACD#MONTH';

DIF月金叉:=CROSS(月DIFF,月DEA);

DRAWTEXT(DIF月金叉,55,'▲DIFF月金叉'),COLORRED ;

DRAWTEXT(CROSS(月DEA,月DIFF),105,'▼DIFF月死叉') ;

MACD月金叉:=CROSS(月MACD,月DIFF) AND 月MACD>=(0-0.05) AND 月MACD<=0.02;

DRAWTEXT(MACD月金叉,60,'▲MACD月金叉'),COLORRED;

周K:="KDJ.K#WEEK"(9,3,3);

周D:="KDJ.D#WEEK"(9,3,3);

周J:="KDJ.J#WEEK"(9,3,3);

月K:="KDJ.K#MONTH"(9,3,3);

月D:="KDJ.D#MONTH"(9,3,3);

月J:="KDJ.J#MONTH"(9,3,3);

KD月金叉:=CROSS(月K,月D);

KD周金叉:=CROSS(周K,周D);

KD日金叉:=FILTER(CROSS(K,D) AND D<50,4);

KD低位金叉:=FILTER(CROSS(K,D) AND D<20,4);

DRAWTEXT(KD月金叉,0,'▲KD月金叉'),COLORRED;

DRAWTEXT(KD周金叉,-5,'▲KD周金叉'),COLORRED ;

DRAWTEXT(KD日金叉,-10,'▲KD日金叉'),COLORRED ;

DRAWTEXT(KD低位金叉,5,'▲KD低位金叉'),COLORRED;

KD1:=COUNT(CROSS(K,D),BARSLAST(D>=50));

KD二次金叉:=CROSS(K,D) AND D<50 AND COUNT(KD1=2,21)=1;

DRAWTEXT(KD二次金叉,10,'▲KD二次金叉'),COLORRED ;

KD2:=COUNT(CROSS(D,K),BARSLAST(D<=50));

KD二次死叉:=CROSS(D,K) AND D>50 AND COUNT(KD2=2,21)=1;

DRAWTEXT(KD二次死叉,95,'▼KD二次死叉') ;

KD日死叉:=FILTER(CROSS(D,K) AND D>80,4);

DRAWTEXT(KD日死叉,80,'▼KD日死叉') ;

DRAWTEXT(CROSS(周D,周K),85,'KD周死叉') ;

DRAWTEXT(CROSS(月D,月K),90,'KD月死叉') ;

KDB:=BARSLAST(REF(CROSS(K,D),1));

KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D);

KDJ底背离:=IF(FILTER(KDDB>0,5),1,0);

DRAWTEXT(KDJ底背离=1,15,'▲KDJ底背离'),COLORRED;

KDD:=BARSLAST(REF(CROSS(D,K),1));

KDJ顶背离:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K);

DRAWTEXT(FILTER(KDJ顶背离>0,5),120,'▼KDJ顶背离') ;

RSI周金:DRAWTEXT(CROSS("RSI.RSI1#WEEK"(N1,N2,N3),"RSI.RSI2#WEEK"(N1,N2,N3)) ,65,'▲RSI周金'),COLORRED;

RSI周死:DRAWTEXT(CROSS("RSI.RSI2#WEEK"(N1,N2,N3),"RSI.RSI1#WEEK"(N1,N2,N3)) ,130,'▼RSI周死') ;

RSI月金:DRAWTEXT(CROSS("RSI.RSI1#MONTH"(N1,N2,N3),"RSI.RSI2#MONTH"(N1,N2,N3)) ,70,'▲RSI月金'),COLORRED;

RSI月死:DRAWTEXT(CROSS("RSI.RSI2#MONTH"(N1,N2,N3),"RSI.RSI1#MONTH"(N1,N2,N3)) ,115,'▼RSI月死') ;

A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));

B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));

RSI底背离:=FILTER(B3>0,5);

DRAWTEXT(RSI底背离,75,'▲RSI底背离'),COLORRED;

C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));

D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));

RSI顶背离:=FILTER(D3>0,5);

DRAWTEXT(RSI顶背离,125,'▼RSI顶背离') ;

{预涨}

AZ:=DYNAINFO(7);

AC1:=REF(C,1);

ZF1:=(AZ-AC1)/AC1*100;

BZ:=DYNAINFO(8);

BV1:=REF(VOL,1);

ZF2:=BZ/BV1*100;

DZ:=REF(CLOSE,1)-REF(OPEN,1);

EZ:=DYNAINFO(23)-DYNAINFO(22);

FZ:=REF(VOL,1)-REF(VOL,2);

预涨:=ZF1>1 AND ZF1<5 AND ZF2>30 AND DZ>0 AND EZ>0 AND FZ>0 AND D>REF(D,1);

DRAWTEXT(预涨,D*0.6,'预\N涨'),COLOR00CC00;

KX:=250;

KH:=HHV(K,KX);

DH:=HHV(D,KX);

JH:=HHV(J,KX);

KL:=LLV(K,KX);

DL:=LLV(D,KX);

JL:=LLV(J,KX);

HKMAX:=MAX(KH,MAX(DH,JH));

LKMIN:=MIN(KL,MIN(DL,JL));

KHLB:=(HKMAX+LKMIN)/2;

KHLC:=HKMAX-LKMIN;

MHF:=HHV(DIFF,KX);

MHD:=HHV(DEA,KX);

MHM:=HHV(MACD,KX);

MLF:=LLV(DIFF,KX);

MLD:=LLV(DEA,KX);

MLM:=LLV(MACD,KX);

HMAX:=MAX(MHF,MAX(MHD,MHM));

LMIN:=MIN(MLF,MIN(MLD,MLM));

FHLB:=(HMAX-LMIN)/100;

FHLC:=HMAX-LMIN;

SH:=(0-FHLB)*(KHLC/FHLC)+KHLB;

DIFFA:=(DIFF-FHLB)*(KHLC/FHLC)+KHLB;

DEAA:=(DEA-FHLB)*(KHLC/FHLC)+KHLB;

MACDA:=(MACD-FHLB)*(KHLC/FHLC)+KHLB;

MD1:=MA(CLOSE,80)-MA(CLOSE,13)/3;

MD2:=MA((CLOSE-MD1)/MD1,3);

买点1:=CROSS(MD2,0) AND LOW/REF(HIGH,1)<1.012 AND J<75 AND J>REF(J,1);

MA12:=MA(CLOSE,12);

佳点:=IF(FILTER(MACD>=REF(MACD,5) AND OPEN<=REF(CLOSE,1) AND XX-REF(XX,1)>0 AND MACD<=0 AND MA12-REF(MA12,1)>=0,3) AND J<80 AND J>REF(J,1) AND D>REF(D,1) AND (DIFF>=REF(DIFF,1) OR DEA>=REF(DEA,1)),1,0);

DRAWTEXT(佳点=1,MACDA*0.98,'佳点'),COLOR00CC00;

DX0:=EMA(CLOSE,2)-EMA(OPEN,5);

DX1:=IF(CROSS(DX0,MACD) AND LOW<=XX AND MACD<=(0-0.11) AND (J<20 OR K<20),1,0);

DRAWTEXT(FILTER(DX1,3),0,'短10%'),COLOR00CC00;{短线}

MA10:=MA(CLOSE,10); SS:=EMA(MA(HIGH,3)*1.05,30);

LQS:=IF(FILTER(0.7*(CROSS(DIFF,DEA) AND CLOSE<SS AND XX-REF(XX,1)>0 AND CROSS(MACD,0) AND MACD>=0 AND DIFF>0 AND MA10-REF(MA10,1)>0 AND VOL>REF(VOL,1))>=0.7 AND (CLOSE<SS AND XX-REF(XX,1)>0),5) AND J<80,1,0);

DRAWTEXT(LQS=1,MACDA*0.98,'量价齐上'),COLOR00CC00;{量价齐上}

最佳点:=IF(COUNT(MD2>REF(MD2,1),3)=3 AND COUNT(MD2<0,10)=10 AND REF(MD2,3)=LLV(MD2,10) AND J<80 AND J>REF(J,1),1,0);

DRAWTEXT(最佳点=1,J,'最佳点'),COLOR00CC00;

买点2:=REF(MD2,2)=LLV(MD2,20) AND REF(MD2,2)<0.071 AND REF(MD2,2)<REF(MD2,1) AND

NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1) AND J<75 AND J>REF(J,1);

DRAWTEXT(买点1 OR 买点2,D-1,'买'),COLOR00CC00;
幅图共振指标 - 来生缘 - 来生缘
 
 
7.个股超跌选股指标:
CYS:=(C-CYC(13))/CYC(13)*100;
ASR20:=WINNER(L*1.2)*100;
个股HYPERLINK;

超跌:if((CYS<-16 AND ASR20<10),2,0),COLORRED,LINETHICK2;
STICKLINE(个股超跌=1,0,1,0.8,1),COLORRED;
DRAWTEXT((CYS<-16 AND ASR20<10),个股超跌,'★个股超跌'),COLORRED,LINETHICK2;


幅图共振指标 - 来生缘 - 来生缘

 

8. 六脉神剑指标(含选股指标)

通达信六脉神剑(KDJ 金叉、MACD 金叉、RSI 金叉指标

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);

DEA:=EMA(DIFF,5);

A1:=DIFF>DEA;

MACD金叉:IF(A1,1,0),COLORRED;

RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;

K:=SMA(RSV1,3,1);

D:=SMA(K,3,1);

DRAWICON(K>D,2,1);

DRAWICON(K<D,2,2);

DRAWTEXT(ISLASTBAR=1,2,'.KDJ'),COLORFFFFFF;

A2:=K>D;

KDJ金叉:IF(A2,2,0),COLORRED;

LC:=REF(CLOSE,1);

RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;

RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;

DRAWICON(RSI1>RSI2,3,1);

DRAWICON(RSI1<RSI2,3,2);

DRAWTEXT(ISLASTBAR=1,3,'.RSI'),COLORFFFFFF;

A3:=RSI1>RSI2;

RSI金叉:IF(A3,3,0),COLORRED;

RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;

LWR1:=SMA(RSV,3,1);

LWR2:=SMA(LWR1,3,1);

DRAWICON(LWR1>LWR2,4,1);

DRAWICON(LWR1<LWR2,4,2);

DRAWTEXT(ISLASTBAR=1,4,'.LWR'),COLORFFFFFF;

A4:=LWR1>LWR2;

LWR金叉:IF(A4,4,0),COLORRED;

BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;

DRAWICON(CLOSE>BBI,5,1);

DRAWICON(CLOSE<BBI,5,2);

DRAWTEXT(ISLASTBAR=1,5,'.BBI'),COLORFFFFFF;

A5:=CLOSE>BBI;

BBI金叉:IF(A5,5,0),COLORRED;

MTM:=CLOSE-REF(CLOSE,1);

MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);

MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);

DRAWICON(MMS>MMM,6,1);

DRAWICON(MMS<MMM,6,2);

DRAWTEXT(ISLASTBAR=1,6,'.MTM'),COLORFFFFFF;

A6:=MMS>MMM;

MTM金叉:IF(A6,6,0),COLORRED;

涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0),COLORYELLOW,LINETHICK2;

上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,7,0),COLORYELLOW,LINETHICK2;

晴天:BARSLASTCOUNT(A1 AND A2 AND A3 AND A4 AND A5 AND A6),LINETHICK0;

雨天:BARSLASTCOUNT(MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉>0 AND MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉<21 ),LINETHICK0;

雪天:BARSLASTCOUNT(MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉=0),LINETHICK0;


幅图共振指标 - 来生缘 - 来生缘

 9.六脉神剑指标

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DRAWICON(DIFF>DEA,1,1);
DRAWICON(DIFF<DEA,1,2);
A1:=DIFF>DEA;
MACD金叉:IF(A1,1,0),COLORRED;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,1);
DRAWICON(K<D,2,2);
A2:=K>D;
KDJ金叉:IF(A2,2,0),COLORRED;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
DRAWICON(RSI1>RSI2,3,1);
DRAWICON(RSI1<RSI2,3,2);
A3:=RSI1>RSI2;
RSI金叉:IF(A3,3,0),COLORRED;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,1);
DRAWICON(LWR1<LWR2,4,2);
A4:=LWR1>LWR2;
LWR金叉:IF(A4,4,0),COLORRED;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE>BBI,5,1);
DRAWICON(CLOSE<BBI,5,2);
A5:=CLOSE>BBI;
BBI金叉:IF(A5,5,0),COLORRED;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DRAWICON(MMS>MMM,6,1);
DRAWICON(MMS<MMM,6,2);
A6:=MMS>MMM;
MTM金叉:IF(A6,6,0),COLORRED;
涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0),COLORYELLOW,LINETHICK2;
上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,7,0),COLORYELLOW,LINETHICK2;
晴天:BARSLASTCOUNT(A1 AND A2 AND A3 AND A4 AND A5 AND A6),LINETHICK0;
雨天:BARSLASTCOUNT(MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉>0 AND MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉<21 ),LINETHICK0;
雪天:BARSLASTCOUNT(MACD金叉+KDJ金叉+RSI金叉+LWR金叉+BBI金叉+MTM金叉=0),LINETHICK0;

幅图共振指标 - 来生缘 - 来生缘

 

 10.通达信六大金叉指标公式

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9);

DRAWICON(DIFF>DEA,1,1);

DRAWICON(DIFF<DEA,1,2);

MCDA金叉:DIFF>DEA;

RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

DRAWICON(K>D,2,1);

DRAWICON(K<D,2,2);

KDJ金叉:K>D;

LC:=REF(CLOSE,1);

RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100;

RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100;

DRAWICON(RSI1>RSI2,3,1);

DRAWICON(RSI1<RSI2,3,2);

RSI金叉:RSI1>RSI2;

LWR1:=SMA(RSV,3,1);

LWR2:=SMA(LWR1,3,1);

DRAWICON(LWR1>LWR2,4,1);

DRAWICON(LWR1<LWR2,4,2);

LWR金叉:LWR1>LWR;

BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;

DRAWICON(CLOSE>BBI,5,1);

DRAWICON(CLOSE<BBI,5,2);

BBI金叉:CLOSE>BBI;

MTM:=CLOSE-REF(CLOSE,1);

MMS:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),3);

MMM:=100*EMA(EMA(MTM,26),12)/EMA(EMA(ABS(MTM),26),12);

DRAWICON(MMS>MMM,6,1);

DRAWICON(MMS<MMM,6,2);

MMS金叉:MMS>MMM;

MCDA金叉 AND KDJ金叉 AND RSI金叉 AND LWR金叉 AND BBI金叉 AND MMS金叉,COLORRED,LINETHICK2;

幅图共振指标 - 来生缘 - 来生缘

12.六脉神剑另一版本

DIFF:=EMA(CLOSE,8)-EMA(CLOSE,13);
DEA:=EMA(DIFF,5);
DRAWICON(DIFF>DEA,1,7);
DRAWICON(DIFF<DEA,1,8);
DRAWTEXT(0,70,'.MACD'),COLORFFFFFF;
A1:=DIFF>DEA;
MACDX:IF(A1,1,0),COLORRED;
RSV1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
K:=SMA(RSV1,3,1);
D:=SMA(K,3,1);
DRAWICON(K>D,2,7);
DRAWICON(K<D,2,8);
DRAWTEXT(0,59,'.KDJ'),COLORFFFFFF;
A2:=K>D;
KDJX:IF(A2,2,0),COLORRED;
LC:=REF(CLOSE,1);
RSI1:=(SMA(MAX(CLOSE-LC,0),5,1))/(SMA(ABS(CLOSE-LC),5,1))*100;
RSI2:=(SMA(MAX(CLOSE-LC,0),13,1))/(SMA(ABS(CLOSE-LC),13,1))*100;
DRAWICON(RSI1>RSI2,3,7);
DRAWICON(RSI1<RSI2,3,8);
DRAWTEXT(0,47,'.RSI'),COLORFFFFFF;
A3:=RSI1>RSI2;
RSIX:IF(A3,3,0),COLORRED;
RSV:=-(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13))*100;
LWR1:=SMA(RSV,3,1);
LWR2:=SMA(LWR1,3,1);
DRAWICON(LWR1>LWR2,4,7);
DRAWICON(LWR1<LWR2,4,8);
DRAWTEXT(0,35,'.LWR'),COLORFFFFFF;
A4:=LWR1>LWR2;
LWRX:IF(A4,4,0),COLORRED;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWICON(CLOSE>BBI,5,7);
DRAWICON(CLOSE<BBI,5,8);
DRAWTEXT(0,23,'.BBI'),COLORFFFFFF;
A5:=CLOSE>BBI;
BBIX:IF(A5,5,0),COLORRED;
MTM:=CLOSE-REF(CLOSE,1);
MMS:=100*EMA(EMA(MTM,5),3)/EMA(EMA(ABS(MTM),5),3);
MMM:=100*EMA(EMA(MTM,13),8)/EMA(EMA(ABS(MTM),13),8);
DRAWICON(MMS>MMM,6,7);
DRAWICON(MMS<MMM,6,8);
DRAWTEXT(0,11,'.MTM'),COLORFFFFFF;
A6:=MMS>MMM;
MTMX:IF(A6,6,0),COLORRED,LINETHICK2;
涨买入:IF((A1 AND A2 AND A3 AND A4 AND A5 AND A6) AND REF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,1)=0,7,0),COLORYELLOW,LINETHICK1;
上涨:IF(A1 AND A2 AND A3 AND A4 AND A5 AND A6,7,0),COLORYELLOW,LINETHICK1;
晴天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX=21),LINETHICK0;
雨天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX>0 AND MACDX+KDJX+RSIX+LWRX+BBIX+MTMX<21 ),LINETHICK0;
雪天:(MACDX+KDJX+RSIX+LWRX+BBIX+MTMX=0),LINETHICK0;

幅图共振指标 - 来生缘 - 来生缘
  评论这张
 
阅读(4416)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018