通达信精品指标金色短线
使用说明:
1、该指标为短、中线结合信号,牛熊线绿色下行时出现买入信号,为短线抢反弹行情,一旦买入后弱,及时止损;牛熊线红色上行为牛市,发出买入信号,坚决介入,中线持股,直到典型头部形成或目标位到达。{牛牛指标网提供:www.tdx001.com}
2、黄色柱状K线(+号)为买入信号,绿色K线为止损或止赢信号;黄色彩带持股,兰色彩带休息;
3、信号只是参考,决策在人脑,纪律是成功的保证!!
原码:
C/C++ Code复制内容到剪贴板
- HR:=HHV(HIGH,55);
- HRY:=LLV(LOW,55);
- HRY11:=HR*HRY;
- HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;
- IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;
- WLT1:=EMA(C,3);
- WLT2:=EMA(C,5);
- WLT3:=EMA(WLT2,5);
- DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(0,0,220));
- X1:=(C+L+H)/3;
- BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
- EMA3:=EMA(C,3);
- DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),
- LOW*0.99,'★∠45'),COLORFFFFFF;
- TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10);
- MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)<REF(WLT1,2) ;
- GG1:=CROSS(WLT1,WLT2);
- 超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;
- 超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;
- TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;
- DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2);
- GG2:=CROSS(WLT1,TEND);
- HRY1:=LLV(LOW,55);
- HRY2:=HHV(HIGH,21);
- GG3:=C<HRY2*0.8 AND C>HRY33;
- JJ1:=C<HRY1*1.62;
- TJ1:=GG1;
- TJ2:=GG2 AND JJ1;
- TJ3:=GG1 AND GG3 ;
- XG:=TJ1 OR TJ3 ;
- DRAWICON(XG,LOW*0.97,23);
- STICKLINE(XG,C,O,4,0),COLOR009999;
- STICKLINE(XG,C,O,3,0),COLOR00BBBB;
- STICKLINE(XG,C,O,1.5,0),COLOR00DDDD;
- STICKLINE(XG,C,O,0.3,0),COLOR00FFFF;
- SAL1:=HIGH>超买;
- SAL2:=C<O AND (O-C)/C>0.03;
- QQ:= C<WLT2;
- QQ1:=CROSS(WLT2,WLT1);
- QQ3:=HIGH>HRY1*1.38;
- SAL01:= SAL1 AND SAL2 AND QQ AND QQ3;
- SAL02:=QQ3 AND QQ1;
- SAL:=SAL01 OR SAL02;
- DRAWICON(SAL,HIGH*1.03,15);
- STICKLINE(SAL,C,O,4,0),COLOR009900;
- STICKLINE(SAL,C,O,3,0),COLOR00BB00;
- STICKLINE(SAL,C,O,1.5,0),COLOR00DD00;
- STICKLINE(SAL,C,O,0.3,0),COLOR00FF00;
- GET:ZIG(3,5),COLORFFFFFF;
- PL5:=ZIG(3,5);
- EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);
- EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);
- PL10:=ZIG(3,10);
- EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);
- EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);
- PL20:=ZIG(3,20);
- EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);
- EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);
- PL40:=ZIG(3,40);
- 走强1:=BARSLAST(PL5<REF(PL5,1));
- 走弱1:=BARSLAST(PL5>REF(PL5,1));
- 走强2:=BARSLAST(PL10<REF(PL10,1));
- 走弱2:=BARSLAST(PL10>REF(PL10,1));
- 走强3:=BARSLAST(PL20<REF(PL20,1));
- 走弱3:=BARSLAST(PL20>REF(PL20,1));
- ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);
- ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);
- DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);
- DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);
- ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);
- ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);
- DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);
- DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);
- DRAWTEXT(EN1 AND DTJZ5=1,L*0.98,'(A)'),COLORFFFF00;
- DRAWTEXT(EX1 AND DTJD5=2,H*1.02,'(B)'),COLORFF00FF;
- DRAWTEXT(EN2 AND ZTJZ5=1,L*0.98,'(C)'),COLOR0000FF;
- DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJD5=1,H*1.02,'⑴'),COLOR0000FF;
- DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2,L*0.98,'⑵'),COLOR0000FF;
- DRAWTEXT(EX1 AND PL10>REF(PL10,1) AND ZTJZ5=2,H*1.02,'⑶'),COLOR0000FF;
- DRAWTEXT(EN1 AND PL10>REF(PL10,1) AND ZTJZ5=3,L*0.98,'⑷'),COLOR0000FF;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.02,'⑸'),COLOR0000FF;
- DRAWTEXT(EN2 AND DTJZ10=1,L*0.93,'Ⅰ'),COLORFF00FF;
- DRAWTEXT(EX2 AND DTJD10=2,H*1.05,'Ⅱ'),COLORFFFF00;
- DRAWTEXT(EN3 AND ZTJZ10=1,L*0.93,'Ⅲ'),COLOR0000FF;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=1,H*1.03,'①'),LINETHICK3,COLOR00FFFF;
- DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2,L*0.95,'②'),LINETHICK3,COLOR00FFFF;
- DRAWTEXT(EX2 AND PL20>REF(PL20,1) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2)
- AND EX2,H*1.03,'③'),LINETHICK3,COLOR00FFFF;
- DRAWTEXT(EN2 AND PL20>REF(PL20,1) AND ZTJZ10=3,L*0.95,'④'),LINETHICK3,COLOR00FFFF;
- WLT11:=EN1 AND DTJZ5=1;
- WLT22:=EN2 AND ZTJZ5=1;
- WLT33:=WLT11 OR WLT22;
- WLT01:=EN2 AND DTJZ10=1;
- WLT02:=EN3 AND ZTJZ10=1;
- WLT03:=WLT01 OR WLT02;
- WLT:=WLT33 AND WLT03;
- DRAWTEXT(WLT,LOW*0.86,'买底'),COLORYELLOW;
应部分股友的要求,对主图原码进行了去繁,对买入信号进行了更严格的限制,只做牛市或跌幅达70%以上的个股(超超跌反弹):
C/C++ Code复制内容到剪贴板
- HR:=HHV(HIGH,55);
- HRY:=LLV(LOW,55);
- HRY11:=HR*HRY;
- HRY33:SQRT(HRY11),COLORGREEN,LINETHICK2;
- IF(C>HRY33 AND HRY33 >=REF(HRY33 ,1), HRY33 ,DRAWNULL),LINETHICK2,COLORRED;
- WLT1:=EMA(C,3);
- WLT2:=EMA(C,5);
- WLT3:=EMA(WLT2,5);
- DRAWBAND(WLT1,RGB(255,255,0),WLT2,RGB(0,0,220));
- HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.10;
- LB:=VOL/MA(VOL,5);
- X1:=(C+L+H)/3;
- BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
- EMA3:=EMA(C,3);
- DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),
- LOW*0.99,'★∠45'),COLORFFFFFF;
- TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10);
- MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)<REF(WLT1,2) ;
- GG1:=CROSS(WLT1,WLT2);
- TYP:= (HIGH + LOW + CLOSE)/3;
- CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
- 差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
- CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
- 差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
- CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
- 差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
- CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
- 差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
- CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
- 差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
- CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2,COLORRED,LINETHICK2;
- WLT91:=HHV(CCI,13);
- WLT92:=LLV(CCI,13)<-100;
- WLT95:=COUNT(WLT92,13)>=3;
- WLT93:=CCI>WLT91;
- WLT96:=CROSS(CCI,100);
- TJ91:=WLT95 AND WLT96;
- JLP:=FILTER(TJ91,5);
- 超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;
- 超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;
- TEND:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;
- DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2);
- GG2:=CROSS(WLT1,TEND);
- HRY1:=LLV(LOW,55);
- HRY2:=HHV(HIGH,21);
- GG3:=C<HRY2*0.8 AND C>HRY33;
- JJ1:=C<HRY1*1.62;
- TJ1:=GG1;
- TJ2:=GG2 AND JJ1;
- TJ3:=GG1 AND GG3 ;
- XG:=TJ1 OR TJ3 ;
- XG2:=C<HRY2*0.86 OR LB>1;
- XG1:=XG AND XG2 AND C>HRY33 AND JLP;
- XG3:=XG AND C<HHV(HIGH,250)*0.3;
- XG11:=XG1 OR XG3;
- DRAWICON(XG11,LOW*0.97,23);
- DRAWTEXT(XG1,LOW*0.95,'全'),COLORRED;
- DRAWTEXT(XG1,LOW*0.93,'仓'),COLORRED;
- STICKLINE(XG,C,O,4,0),COLOR009999;
- STICKLINE(XG,C,O,3,0),COLOR00BBBB;
- STICKLINE(XG,C,O,1.5,0),COLOR00DDDD;
- STICKLINE(XG,C,O,0.3,0),COLOR00FFFF;
- SAL1:=HIGH>超买;
- SAL2:=C<O AND (O-C)/C>0.03;
- QQ:= C<WLT2;
- QQ1:=CROSS(WLT2,WLT1);
- QQ3:=HIGH>HRY1*1.38;
- SAL01:= SAL1 AND SAL2 AND QQ AND QQ3;
- SAL02:=QQ3 AND QQ1;
- SAL:=SAL01 OR SAL02;
- DRAWICON(SAL,HIGH*1.03,15);
- STICKLINE(SAL,C,O,4,0),COLOR009900;
- STICKLINE(SAL,C,O,3,0),COLOR00BB00;
- STICKLINE(SAL,C,O,1.5,0),COLOR00DD00;
- STICKLINE(SAL,C,O,0.3,0),COLOR00FF00;
92611093.png
|