快生活 - 生活常识大全

金戈铁马副图指标通达信贴图


  本图包含:月线周线日线KD指标及其共振,
  周日MACD及反转指标
  周日RIS
  KD/MACD/RIS/DIM指标顶底背离
  导入密码:521
  月金叉:=CROSS(KD.K#MONTH,KD.D#MONTH),COLORLIMAGENTA;
  月死叉:=CROSS(KD.D#MONTH,KD.K#MONTH),COLORGREEN;
  STICKLINE(月金叉,50,80,1,0),COLORLIMAGENTA;
  STICKLINE(月死叉,50,80,1,0),COLORGREEN;
  DRAWTEXT(月金叉,75," 月金"),COLORLIMAGENTA;
  DRAWTEXT(月死叉,75," 月死"),COLORGREEN;
  周金叉:=CROSS(KD.K#WEEK,KD.D#WEEK),COLORLIMAGENTA;
  周死叉:=CROSS(KD.D#WEEK,KD.K#WEEK),COLORGREEN;
  STICKLINE(周金叉,20,50,1,0),COLORLIMAGENTA;
  STICKLINE(周死叉,20,50,1,0),COLORGREEN;
  DRAWTEXT(周金叉,25," 周金"),COLORLIMAGENTA;
  DRAWTEXT(周死叉,25," 周死"),COLORGREEN;
  NOTEXT高:80,COLORBLUE,LINETHICK3;
  NOTEXT中:50,POINTDOT,COLORWHITE;
  NOTEXT低:20,COLORBLUE,LINETHICK3;
  NOTEXT周:-50,COLORBLUE,LINETHICK3;
  {NOTEXT周1:-80,COLORWHITE,LINETHICK3;}
  NOTEXT20:IF(KD.K#MONTH>=KD.D#MONTH,NOTEXT低,DRAWNULL),COLORRED,LINETHICK3;
  NOTEXT80:IF(KD.K#WEEK>=KD.D#WEEK,NOTEXT高,DRAWNULL),COLORRED,LINETHICK3;
  NOTEXT150:IF(MACD.DIF#WEEK>MACD.DEA#WEEK,NOTEXT周,DRAWNULL),COLORRED,LINETHICK3;
  DRAWTEXT(DAYSTOTODAY=0,80," 周K"),COLOR00FFFF;
  DRAWTEXT(DAYSTOTODAY=0,20," 月K"),COLOR00FFFF;
  DRAWTEXT(DAYSTOTODAY=0,-50," 周M"),COLOR00FFFF;
  RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  K:SMA(RSV,3,1),COLORWHITE,LINETHICK1;
  D:SMA(K,3,1),COLORYELLOW,LINETHICK1;
  LC := REF(CLOSE,1);{好股票WWW.GOODGUPIAO.COM}
  RSI1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
  RSI2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
  RSI3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
  相对强弱:=0.5*RSI1+0.31*RSI2+0.19*RSI3;
  WAVE1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
  WAVE2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
  WAVE3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
  短线波段:=0.5*WAVE1+0.31*WAVE2+0.19*WAVE3;
  机会区:=20,POINTDOT,COLORRED;
  风险区:=80,POINTDOT,COLORGREEN;
  风险:=0.5*相对强弱+0.5*短线波段,COLORYELLOW,NODRAW;
  CD1:=IF(风险&lt;20 and="" close=""&gt;OPEN AND DDX&gt;0,1,0);<!--20-->
  CD2:=IF(风险&lt;20 and="" low=""&gt;=REF(LOW,1) AND CLOSE&gt;LOW AND DDX&gt;0,1,0);<!--20-->
  CD3:=IF(REF(风险,1)&lt;20 and=""&gt;REF(风险,1),1,0);<!--20-->
  LBUY:=(CD1=1 OR CD2=1 OR CD3=1);
  X:=(LBUY AND COUNT(LBUY,3)=1);
  {DRAWICON(X,50,25);}
  {ST:=NOT(NAMELIKE("S") OR NAMELIKE("*S")) AND VOL&gt;1;
  FJC1:=CROSS(MA(C,5),MA(C,10));
  FJC2:=CROSS(MA(C,5),MA(C,20));
  FJC3:=CROSS(MA(C,10),MA(C,20));
  FJC4:=BARSLAST(CROSS(MA(C,5),MA(C,20)));
  FJC5:=ATAN((MA(C,60)/REF(MA(C,60),1)-1)*100)*57.3;
  FL:=VOL&gt;REF(V,1)*1.5 OR V=HHV(V,8);
  FJC6:=ATAN((MA(C,13)/REF(MA(C,13),1)-1)*100)*57.3;
  FJC7:=ATAN((MA(C,21)/REF(MA(C,21),1)-1)*100)*57.3;
  FJC8:=C&gt;REF(C,1)*1.07 AND FL;
  FJC9:=BARSLAST(FJC8);
  FJC10:=HHV(C,FJC9)&lt;=ref(h,fjc9) and=""&gt;REF(L,FJC9);<!--=ref(h,fjc9)-->
  飞机场:(IF(EXIST(FJC2 AND EXIST(FJC1,3),5),FJC3,0) AND LLV(CLOSE,FJC4)&gt;REF(OPEN,FJC4+1) AND ST)*100,COLORFFFFFF;{好股票WWW.GOODGUPIAO.COM}
  超飞机场:(IF(BARSLAST(飞机场)&lt;=55 and="" fjc5=""&gt;0,FL AND FJC3 AND EXIST(CROSS(MACD.DIF,MACD.DEA) AND MACD.DIF&gt;0,2),0) AND ST)*100,COLOR00FFFF;<!--=55-->
  登高望远:(IF(BARSLAST(飞机场)&lt;=55 and="" fjc5=""&gt;0 AND FJC4&gt;5,CROSS(CLOSE,REF(HHV(H,FJC4),1)) AND VOL=HHV(V,FJC4),0) AND ST)*100,COLOR0000FF;}<!--=55-->
  {DRAWICON(D&lt;=KD买点 AND CROSS(K,D),D,1);
  DRAWICON(CROSS(D,K),K,2);}
  DRAWICON(KD.K#MONTH&lt;KD.D#MONTH AND KD.K#WEEK<kd.d#week and="" k="">50,95,12);</kd.d#week>
  DRAWICON( K&gt;=70 AND CROSS(D,K),95,37);
  DRAWICON(KD.K#WEEK<kd.d#week and="" k="">=60,95,36);</kd.d#week>
  DRAWICON(CROSS(K,D) AND K&lt;35,35,38);
  DRAWICON(KD.K#WEEK&gt;KD.D#WEEK AND CROSS(K,D) AND D&lt;35,35,24);
  DRAWICON(KD.K#MONTH&gt;KD.D#MONTH AND KD.K#WEEK&gt;KD.D#WEEK AND CROSS(K,D) AND D&lt;50,35,9);
  KD共振1:=周金叉 AND EXIST(CROSS(K,D),3) AND D&lt;=D值;
  KD共振2:=EXIST(周金叉,3) AND CROSS(K,D) AND D&lt;=D值;
  KDXG:=KD共振1 OR KD共振2;
  DRAWICON(KDXG ,60,5);
  {MACD}
  DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
  DEA:=EMA(DIF,9);
  MYY:=EMA(CLOSE,3)-EMA(CLOSE,3);
  YMM:=EMA(MYY,3);
  MACD:=(DIF-DEA)*2*IF(C&lt;5,400,IF(C&lt;10,200,IF(C&lt;20,100,IF(C&lt;30,60,IF(C&lt;50,50,IF(C&lt;100,30,IF(C&lt;300,15,IF(C&lt;900,5,2))))))))COLORSTICK;
  DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
  DEA1:=EMA(DIFF1,9);
  {DIF上升为红色,下降为绿色}
  IF(DIF&gt;REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2,NODRAW;
  IF(DIF&lt;REF(DIF,1),DIF,DRAWNULL),COLORGREEN,LINETHICK2,NODRAW;
  {加了DEA的上升棕色,下降黄色}
  IF(DEA&gt;REF(DEA,1),DEA,DRAWNULL),COLORBROWN,LINETHICK2,NODRAW;
  IF(DEA&lt;REF(DEA,1),DEA,DRAWNULL),COLORYELLOW,LINETHICK2,NODRAW;
  MACD2:=MACD;
  获利比:WINNER(C),NODRAW;
  涨家数:=INDEXADV,NODRAW,COLORRED;
  跌家数:=INDEXDEC,NODRAW,COLORGREEN;
  正量能:=涨家数/(涨家数+跌家数)*100,NODRAW,COLORMAGENTA;
  {以下是顶底背离画图}
  TR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
  HD:=HIGH-REF(HIGH,1);
  LD:=REF(LOW,1)-LOW;
  PDM:=SUM(IF(HD&gt;0 AND HD&gt;LD,HD,0),14);
  MDM:=SUM(IF(LD&gt;0 AND LD&gt;HD,LD,0),14);
  PDI:=PDM*100/TR;
  MDI:=MDM*100/TR;
  A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
  B1:=REF(C,A1+1)&gt;C AND REF(DIF,A1+1)&lt;DIF AND CROSS(DIF,DEA);
  A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));
  B2:=REF(C,A2+1)&gt;C AND REF("KDJ.K"(9,3,3),A2+1)&lt;"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)&gt;C AND REF("RSI.RSI1"(6,12,24),A3+1)&lt;"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
  C1:=BARSLAST(REF(CROSS(DEA,DIF),1));
  D1:=REF(C,C1+1)<c and="">DIF AND CROSS(DEA,DIF);</c>
  C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
  D2:=REF(C,C2+1)<c and="">"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));</c>
  C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
  D3:=REF(C,C3+1)<c and="">"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));</c>
  C4:=BARSLAST(REF(CROSS(MDI,PDI),1));
  D4:=REF(C,C+1)<c and="">MDI AND CROSS(MDI,PDI);</c>
  A4:=BARSLAST(REF(CROSS(PDI,MDI),1));
  B4:=REF(C,A4+1)&gt;C AND REF(PDI,A4+1)&lt;PDI AND CROSS(PDI,MDI);
  M底:IF(B1&gt;0,1,0),COLORRED,NODRAW;
  K底:IF(B2&gt;0,1,0),COLORFF00FF,NODRAW;
  R底:IF(B3&gt;0,1,0),COLORYELLOW,NODRAW;
  D底:IF(B4&gt;0,1,0),COLORBROWN,NODRAW;
  K顶:IF(D2&gt;0,1,0),COLORFFCC66,NODRAW;
  M顶:IF(D1&gt;0,1,0),COLOR00FF00,NODRAW;
  R顶:IF(D3&gt;0,1,0),COLORWHITE,NODRAW;
  D顶:IF(D4&gt;0,1,0),COLORLIRED,NODRAW;
  DRAWLINE(A1=0,DEA,M底,DEA,0),COLORRED,LINETHICK2;
  DRAWLINE(A2=0,DEA,M顶,DEA,0),COLOR00FF00,LINETHICK2;
  底背离:=M底+K底+R底+D底,NODRAW;
  顶背离:=M顶+K顶,NODRAW;
  STICKLINE(B1&gt;0,-10,0,2,0),COLORRED;
  STICKLINE(B2&gt;0,-10,-20,2,0),COLORFF00FF;
  STICKLINE(B3&gt;0,-10,0,2,0),COLORYELLOW;
  STICKLINE(B4&gt;0,-10,-20,2,0),COLORBROWN;
  STICKLINE(D1&gt;0,10,0,2,0),COLOR00FF00;
  STICKLINE(D2&gt;0,10,20,2,0),COLORFFCC66;
  STICKLINE(D3&gt;0,10,0,2,0),COLORWHITE;
  STICKLINE(D4&gt;0,10,20,2,0),COLORLIRED;
  {}
  STICKLINE(((MACD2&gt;=0) AND (MACD2 &lt; REF(MACD2,1))),0,IF(MACD2&gt;150,150,MACD2),0,0),COLORMAGENTA;
  STICKLINE((MACD2&lt;0),0,IF(MACD2&lt;-150,-150,MACD2),0,0),COLORGREEN;
  STICKLINE(((MACD2&lt;0) and="" macd2=""&gt;REF(MACD2,1))),0,IF(MACD2&lt;-150,-150,MACD2),0,1),COLORWHITE;<!--0)-->
  DRAWICON(LONGCROSS(CLOSE,MA(CLOSE,5),17),MACD2,1);
  DRAWICON(LONGCROSS(MA(CLOSE,5),CLOSE,17),MACD2,2);
  低位反转:=MACD&lt;0 and="" macd=""&gt;REF(MACD ,1) AND REF(MACD ,1)&lt;REF(MACD ,2)AND REF(MACD ,2)&lt;REF(MACD ,3)AND REF(MACD ,3)&lt;REF(MACD ,4);<!--0-->
  STICKLINE(低位反转,0,MACD,0.3,0),COLORRED;
  MACDXG:=低位反转 AND KD.K&gt;=REF(KD.K,1) AND MACD&lt;=-5;
  DRAWICON((EXIST(KDXG,3) AND MACDXG) OR (KDXG AND EXIST(MACDXG,3)),95,23) ;
  高位反转:=MACD&gt;0 AND MACD<ref(macd and="" macd="">REF(MACD ,2)AND REF(MACD ,2)&gt;REF(MACD ,3)AND REF(MACD ,3)&gt;REF(MACD ,4);</ref(macd>
  STICKLINE(高位反转,0,MACD,0.3,0),COLORGREEN;
  低位金叉:=CROSS(DIF,DEA) AND DIF&lt;-0.1;
  DRAWICON(低位金叉 ,-15,28);
  JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA&gt;=0));
  二次金叉:=(CROSS(DIF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=2,21)=1)*0.3,COLORFFFFFF;
  DRAWICON(二次金叉&gt;0,-15,29);
  三次金叉:=(CROSS(DIF,DEA) AND DEA&lt;0 AND COUNT(JCCOUNT=3,60)=1)*0.3,COLOR00FFFF;
  DRAWICON(三次金叉&gt;0,-15,30);
  JCCOUNT1:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA&lt;=0));
  零上二金:=(CROSS(DIF,DEA) AND DEA&gt;0 AND COUNT(JCCOUNT1=2,21)=1)*0.3,COLORFFFFFF;
  DRAWICON(零上二金&gt;0,-15,30);
  零上一金:=(CROSS(DIF,DEA) AND DEA&gt;0 AND COUNT(JCCOUNT1=1,21)=1)*0.3,COLORFFFFFF;
  DRAWICON(零上一金,-15,30);{零上一金}
  双底:DRAWICON(底背离&gt;1,5,34);
  DRAWICON(顶背离&gt;0,5,35);
  月RSI1:="RSI.RSI1#MONTH"(9),COLORWHITE;
  A:=月RSI1&gt;50;
  首月R:CROSS(A&gt;REF(A,1),0.5),COLORWHITE,LINETHICK3;
  STICKLINE(首月R,-60,-30,1,0),COLORWHITE,LINETHICK3;
  DRAWTEXT(首月R,-50," 月R"),COLORWHITE;
  周RSI1:="RSI.RSI1#WEEK"(9),COLORGREEN;
  AAAA:=周RSI1&gt;50;
  BBBB:=周RSI1;
  首周R:CROSS(AAAA&gt;REF(AAAA,1),0.5),COLORRED,LINETHICK4;
  STICKLINE(首周R,-20,-40,1,0),COLORRED,LINETHICK4;
  DRAWTEXT(首周R,-40," 周R"),COLORRED;
  首周R1:CROSS(50,BBBB);
  STICKLINE(首周R1,-60,-80,1.5,0),COLORGREEN,LINETHICK4;
  DRAWTEXT(首周R1,-60," 周R"),COLORGREEN;
网站目录投稿:意映