秀才套装(1主4副,公式、源码,附图)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-04-05 10:42:00
公式简介:
不含未来函数,买卖点一目了然。
主图:秀才主图
副图:DMI秀才,抄底王,SKDJ大盘顶底,涨跌都能赚
============================副图 DMI秀才
TRYGB:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
多:DMP*100/TRYGB,COLORWHITE,LINETHICK1;
空:DMM*100/TRYGB,COLORYELLOW,LINETHICK1;
ADX:EXPMEMA(ABS(空-多)/(空+多)*100,5),COLORRED,LINETHICK1;
ADXR:EXPMEMA(ADX,3),COLORGREEN;
DRAWBAND(多,RGB(100,10,10),空,RGB(10,100,10));
DRAWBAND(ADX,RGB(250,10,10),ADXR,RGB(10,250,10));
IF(空<多 AND ADX>REF(ADX,1) AND ADX>=25,ADX,DRAWNULL),COLORRED,LINETHICK2;
IF(空<多 AND ADX>多 AND ADX<REF(ADX,1),ADX,DRAWNULL),COLORGREEN,LINETHICK1;
IF(空>多 AND 空>REF(空,1) AND 多<REF(多,1) AND ADX>REF(ADX,1),ADX,DRAWNULL),COLORCYAN,LINETHICK2;
IF(COUNT(多>=50,4)>=1 AND 多<=50 AND ADX>=70,ADX,DRAWNULL),COLORYELLOW,LINETHICK2;
VAR20:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR21:=(20*VAR20+19*REF(VAR20,1)+18*REF(VAR20,2)+17*REF(VAR20,3)+16*REF(VAR20,4)+15*REF(VAR20,5)+14*REF(VAR20,6)+13*REF(VAR20,7)+12*REF(VAR20,8)+11*REF(VAR20,9)+10*REF(VAR20,10)+9*REF(VAR20,11)+8* REF(VAR20,12)+7*REF(VAR20,13)+6*REF(VAR20,14)+5*REF(VAR20,15)+4*REF(VAR20,16)+3*REF(VAR20,17)+2*REF(VAR20,18)+REF(VAR20,21))/210;
VAR22:=EMA(VAR21,15);
VAR23:=HHV(CLOSE,90);
VAR24:=LLV(CLOSE,90);
VAR25:=VAR23-VAR24;
VAR26:=EMA((CLOSE-VAR24)/VAR25-0.5,14);
ZLSP:=VAR26*20;
VAR27:=REF(HHV(CLOSE,66),2);
VAR28:=CROSS(CLOSE,VAR27) AND (HHV(CLOSE,110)/LLV(CLOSE,110)-1)*100<45 AND ZLSP<5.666;
VAR29:=LLV(ZLSP,35)<-8.9 AND CROSS(ZLSP,-7.815) AND ZLSP<-1.2;
VAR30:=10*FILTER(VAR29,41);
VAR31:=15*FILTER(VAR28,41)>10;
STICKLINE(VAR31,10,30,1,0),COLORYELLOW;
============================副图 抄底王
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EXPMA(EXPMA(EXPMA(VAR1,3),3),3);
JJ:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100,COLORSTICK;
D:MA(JJ,2);
K:MA(JJ,1);
DRAWBAND(K,RGB(250,10,10),D,RGB(10,250,10));
DRAWTEXT(PEAKBARS(3,15,1)=1,K*1.01,'卖'),COLORCYAN;
J:JJ,COLORSTICK;
STICKLINE(JJ>REF(JJ,1) AND JJ>0,0,JJ,0,0),COLORRED;
STICKLINE(JJ<=REF(JJ,1) AND JJ>0,0,JJ,0,0),COLORYELLOW;
STICKLINE(JJ<REF(JJ,1) AND JJ<0,0,JJ,0,0),COLORCYAN;
STICKLINE(JJ>=REF(JJ,1) AND JJ<0,0,JJ,0,0),COLORMAGENTA;
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;
单股:LLV(MA(HIGH,(3)),1),LINETHICK1,COLORRED;
双币:HHV(MA(HIGH,(3)),2),LINETHICK0,COLORCYAN;
DRAWBAND(单股,RGB(250,10,10),双币,RGB(10,200,10));
DRAWKLINE(H,O,L,C);
PH:=TROUGHBARS(2,5,1);
LL:=HHV(H,PH);
TJ1:=LL=HIGH AND LL<REF(LL,1);
TS:=SUMBARS(TJ1,2);
TJ:=PEAKBARS(2,5,1)=1 AND TS>=PH;
DRAWICON(TJ,HIGH*1.01+0.02,2);
YGB1:=MA(CLOSE,5);
YGB2:=MA(CLOSE,10);
YGB3:=MA(CLOSE,20);
X1:=EMA(C,7);
DRAWICON(FILTER(YGB3 AND YGB2 AND COUNT(X1<REF(X1,1),5)>2 AND X1>REF(X1,1),3),L,1);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(75,RSI), HIGH*1.01,' 卖'),COLORWHITE;
STICKLINE(C>REF(C,1)*1.099,C,O,2.7,0)COLORRED,LINETHICK2;
STICKLINE(C<REF(C,1)*0.901,C,O,2.7,0)COLORGREEN,LINETHICK2;
N1:=(3,30,10);
箱顶:=PEAK(CLOSE,N1,1)*0.98,COLORGREEN,LINETHICK1;
箱底:=TROUGH(CLOSE,N1,1)*1.02,COLORCYAN,LINETHICK1;
N:=(80,120,102);
M:=(2,20,7);
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
道1:=AA*N/100,COLORBLUE;
道2:=AA*(200-N)/100,COLORGREEN;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
道3:=(1+M/100)*DD,COLORCYAN;
道4:=(1-M/100)*DD,COLORGRAY;
MB1:=EMA(WINNER(C)*100,5),COLORYELLOW;
MB2:=EMA(MB1,2),COLORBLUE;
MB3:=EMA(MB2,2),COLORBLUE;
MB4:=EMA(MB3,2),COLORBLUE;
MB5:=EMA(MB4,2),COLORBLUE;
MB6:=EMA(MB5,2),COLORBLUE;
MB7:=EMA(MB6,2),COLORBLUE;
MB8:=EMA(MB7,2),COLORBLUE;
MB9:=EMA(MB8,2),COLORBLUE;
MB10:=EMA(MB9,2),COLORBLUE;
MB11:=EMA(MB10,2),COLORBLUE;
MB12:=EMA(MB11,2),COLORBLUE;
MB13:=EMA(MB12,2),COLORBLUE;
MB14:=EMA(MB13,2),COLORBLUE;
VAR3:=DRAWLINE(MB1>=HHV(MB1,5)=1,MB1,MB1<=LLV(MB1,5)=1,MB1,1),COLORWHITE;
XG1:=REF(MB1,1)=REF(VAR3,1) AND REF(MB1,1)<REF(MB4,1);
XG2:=REF(MB1,1)=REF(VAR3,1) AND MB1>REF(MB1,1);
XG3:=C>箱底;
DRAWTEXT(XG1 AND XG2 AND XG3,L,' 买'),COLORYELLOW;
STICKLINE(REF(C,1)>REF(箱顶,1) AND C<箱顶,MIN(O,C)+ABS(C-O)*0.75,MAX(O,C),2.7,0),COLORBLUE;
DRAWTEXT(MB1=VAR3 AND MB1<MB4,MIN(O,C)+ABS(C-O)*0.5,' ★'),COLORMAGENTA;
DRAWTEXT(XG2,MIN(O,C)+ABS(C-O)*0.5,' ★'),COLORYELLOW;
VC:=(2*C+H+L)/4;
VD:=LLV(L,3);
VE:=HHV(H,3);
V12:=EMA((VC-VD)/(VE-VD)*100,5);
V13:=EMA(V12,2);
IF(V12>V13,双币,DRAWNULL),COLORRED,LINETHICK1;
RSI2:=SMA(RSI,6,1);
IF(RSI>RSI2,单股,DRAWNULL),COLORRED,LINETHICK1;
YGBLQH1:=(HHV(H,36)-C)/(HHV(H,36)-LLV(L,36))*100;
YGBLQH2:=SMA(YGBLQH1,5,1);
YGBLQH3:=SMA(YGBLQH2,8,1);
DRAWICON(CROSS(YGBLQH2,YGBLQH3) AND YGBLQH3<20,H*1.03,2);
VARYGB2:=TROUGHBARS(3,15,1)<10;
VARYGB3:=PEAKBARS(3,15,1)<10;
VARYGB4:=IF(VARYGB2=1,50,0);
VARYGB5:=IF(VARYGB3=1,50,0);
底部:=IF(VARYGB4=50,10,0);
YGBLQH:=IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,25,0),COLORCYAN,LINETHICK1;
DRAWTEXT(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,MIN(O,C)+ABS(C-O)*0.5,'▲'),COLORYELLOW;
DRAWTEXT(TROUGHBARS(3,10,1)=0 AND HIGH>LOW+0.01,MIN(O,C)+ABS(C-O)*0.5,'▲'),COLORMAGENTA;
[url=http://www.goodgupiao.com/gupiaogongshi/13137.html][B]秀才套装(1主4副,公式、源码,附图)[/B][/url]