通达信股票公式之秀才套装(2)
MYGB1:=REF(JJ,2)<0 AND REF(JJ,1)<0 AND JJ<0 AND ABS(REF(JJ,2))<ABS(REF(JJ,1)) AND ABS(REF(JJ,1))>ABS(JJ);
MYGB3:=REF(JJ,2)>0 AND REF(JJ,1)>0 AND JJ>0 AND ABS(REF(JJ,2))<ABS(REF(JJ,1)) AND ABS(REF(JJ,1))>ABS(JJ);
STICKLINE(MYGB1,0,JJ,0.1,0),COLORMAGENTA;
STICKLINE(MYGB3,0,JJ,0.1,0),COLORYELLOW;
逃顶:=IF(PEAKBARS(3,15,1)=1,0.5,1.5),COLORGREEN;
M:=C/REF(C,1)<=1.02 AND V/REF(V,1)>=2 AND K>D;
N:=O>REF(C,1) AND HIGH/(C-O)>=2 AND K>D;
G:=C/REF(C,1)>=1.312*REF(V,1) AND K>D;
红包:=IF((TROUGHBARS(3,15,1)=0) AND (HIGH>LOW+0.01),1,(0)),COLORYELLOW;
DRAWTEXT(红包,D,'买'),,COLORYELLOW;
T:=COUNT(REF(C,1)/C>1.03,3)=3;
DRAWTEXT(REF(红包,1)=1 AND REF(T,1),D*0.98,'少买') ,LINETHICK2,COLORCYAN;
DRAWTEXT(REF(红包,1)=1 AND REF(COUNT(REF(C,1)/C>1.09,2)=2,1),D,'介入'),
LINETHICK2,COLORCYAN;
Q:=REF(红包,1)=1 AND O>REF(L,1);
DRAWTEXT(Q AND REF(T,1),逃顶*0.98,'坚买') ,LINETHICK2,COLORYELLOW;
DRAWTEXT(Q AND REF(COUNT(REF(C,1)/C>1.09,2)=2,1),逃顶*0.98,'快买'), LINETHICK2,COLORYELLOW;
============================副图 SKDJ 大盘顶底
LOWV:=LLV(LOW,6);
HIGHV:=HHV(HIGH,6);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,2);
K:EMA(RSV,3);
D:MA(K,3);
DRAWBAND(K,RGB(200,10,10),D,RGB(10,200,10));
20,POINTDOT,COLORCYAN;
50,COLORRED,POINTDOT;
80,POINTDOT,COLORWHITE;
IF(K>D,K,DRAWNULL),COLORYELLOW,LINETHICK1;
IF(K<D,K,DRAWNULL),COLORCYAN,LINETHICK1;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TR1);
MDI:=((DMM * 100) / TR1);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
阶段底部:=(AV + NEWVOL);
趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;
STICKLINE((阶段底部 < 0),20,25,1,0),LINETHICK6,COLORYELLOW;
STICKLINE(CROSS(阶段底部,0),20,30,1,0),LINETHICK6,COLORRED;
STICKLINE((趋势线 >230 ),90,85,1,0),LINETHICK6,COLORGREEN;
============================副图 涨跌都赚
VAR1:=1;
VAR2:=((((2*CLOSE)+HIGH)+LOW)/4);
20,POINTDOT;
90,COLORFFFF00,POINTDOT;
VAR4:=LLV(LOW,3);
VAR5:=HHV(HIGH,3);
C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),3)*VAR1),COLORFF00FF;
C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF;
DRAWBAND(C1,RGB(250,10,10),C2,RGB(10,250,10));
条件:=CROSS(C1,C2) AND C1<40;
条件0:=CROSS(C2,C1) AND C1>90;
DRAWICON(条件,C2*0.98,1);
DRAWICON(条件0,C1*1.02,2);
============================主图 秀才7号
CDP:=(REF(H,1)+REF(L,1)+2*REF(C,1))/4;
高:CDP+(H-L),COLORGREEN,NODRAW;
卖:CDP*2-L,COLORCYAN,NODRAW;
阻:((H+O+L+C)/4)-L+DYNAINFO(21),COLORWHITE,NODRAW;
支:DYNAINFO(20)-(((H+L+8*C)/10)-L),COLORYELLOW,NODRAW;
买:CDP*2-H,COLORMAGENTA,NODRAW;
低:CDP-(H-L),COLORRED,NODRAW;
价:C,COLORWHITE,NODRAW;
(南方财富网SOUTHMONEY.COM)
延伸阅读
|
要闻导读
|
||||||||||
|