精品指标悟名源码主副图
-
相关简介:很少公布指标,今天高兴,也发一套指标,有主图指标,和附图指标,把他叫情侣套装指标吧,主图和附图量指标,说明,此指标,不是我的原创,是思思的,我只是修改成主图和量指标了而已。当然里面用到了叠加技术,发给大家,分享一下吧。像个汤勺一样,用法就不多说了。 1.主图指标。 ssK:=sMA(c,3,1),linethick1; ssD:=SMA(ssK,3,1),linethick1; ssJ:=3*ssK-2*ssD,linethick1; 量:=(EMA(IF(C=REF(C,2),V,(-V)),
-
文章来源:股海网作者:股海网发布时间:2015-04-17浏览次数:
很少公布指标,今天高兴,也发一套指标,有主图指标,和附图指标,把他叫情侣套装指标吧,主图和附图量指标,说明,此指标,不是我的原创,是思思的,我只是修改成主图和量指标了而已。当然里面用到了叠加技术,发给大家,分享一下吧。像个汤勺一样,用法就不多说了。
1.主图指标。
ssK:=sMA(c,3,1),linethick1;
ssD:=SMA(ssK,3,1),linethick1;
ssJ:=3*ssK-2*ssD,linethick1;
量:=(EMA(IF(C>=REF(C,2),V,(-V)),60)/MA(V,60))+ssk;
量1:= EMA(量,3);
量2:= EMA(量,5);
量3:= EMA(量,8);
T4:=EMA(量,34),COLORf00ff0;
Var3:=MA(CLOSE,13);
Var4:=24-ABS((CLOSE-Var3)/Var3*30);
生命量能:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,linethick0;
散户:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
VarD:=散户>Var4;
股加速:IF( 生命量能>23, 散户,0 ),LINETHICK0,COLORYELLOW;
var2:=REF(LOW,1);
var3:=SMA(ABS(LOW-var2),3,1)/SMA(MAX(LOW-var2,0),3,1)*20;
var4:=EMA(IF(CLOSE*1.2,var3*10,var3/10),3);
var5:=LLV(LOW,30);
var6:=HHV(var4,30);
var7:=IF(LLV(LOW,68),1,0);
KS:=(C-MA(C,17))/MA(C,17)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
FL:hhv(量1,3),COLORgreen,POINTDOT;
FS:if(量1<FL,(量1-(FL-量1)),FL),COLORgreen;
FL1:hhv(量1,5),COLORgreen,POINTDOT;
FS1:if(量1<FL1,(量1-(FL1-量1)),FL1),COLORgreen;
FL2:hhv(量1,7),COLORgreen,POINTDOT;
FS2:if(量1<FL2,(量1-(FL2-量1)),FL2),COLORgreen;
FL3:hhv(量1,9),colorFFABA3,linethick2;
FS3:if(量1<FL3,(量1-(FL3-量1)),FL3),colorFFABA3,linethick2;
PARTLINE(FS3>ref(FS3,1),FS3)colorred,LINETHICK2;
PARTLINE(FS3<ref(FS3,1),FS3)colorFFABA3,LINETHICK2;
PARTLINE(量1<REF(量1,1),量1),COLORGREEN,LINETHICK2;
PARTLINE(量1>REF(量1,1),量1)COLORRED,LINETHICK2;
assK:=sMA(c,3*5,1),linethick1;
assD:=SMA(assK,3*5,1),linethick1;
assJ:=3*assK-2*assD,linethick1;
v量:=(EMA(IF(C>=REF(C,2),V,(-V)),60)/MA(V,60))+assk;
v量1:= EMA(v量,3);
v量2:= EMA(v量,5);
v量3:= EMA(v量,8);
vT4:=EMA(v量,34),COLORf00ff0;
vVar3:=MA(CLOSE,13);
vVar4:=24-ABS((CLOSE-vVar3)/vVar3*30);
v生命量能:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,linethick0;
v散户:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
vVarD:=v散户>vVar4;
v股加速:IF( v生命量能>23, v散户,0 ),LINETHICK0,COLORYELLOW;
vvar2:=REF(LOW,1);
vvar3:=SMA(ABS(LOW-vvar2),3,1)/SMA(MAX(LOW-vvar2,0),3,1)*20;
vvar4:=EMA(IF(CLOSE*1.2,vvar3*10,vvar3/10),3);
vvar5:=LLV(LOW,30);
vvar6:=HHV(vvar4,30);
vvar7:=IF(LLV(LOW,68),1,0);
vKS:=(C-MA(C,17))/MA(C,17)*(-100);
vRKS:=REF(vKS,1);
vMLS:=vRKS/vKS>=1.23 AND vRKS>=8 AND C/REF(C,1)>=1.02;
vFL:hhv(v量1,3),COLORgreen,POINTDOT;
vFS:if(v量1<vFL,(v量1-(vFL-v量1)),vFL);
vFL1:hhv(v量1,5),COLORgreen,POINTDOT;
vFS1:if(v量1<vFL1,(v量1-(vFL1-v量1)),vFL1);
vFL2:hhv(v量1,7),COLORgreen,POINTDOT;
vFS2:if(v量1<vFL2,(v量1-(vFL2-v量1)),vFL2);
vFL3:hhv(v量1,9),linethick2;
vFS3:if(v量1<vFL3,(v量1-(vFL3-v量1)),vFL3),linethick2;
PARTLINE(vFS3>ref(vFS3,1),vFS3),LINETHICK2;
PARTLINE(vFS3<ref(vFS3,1),vFS3),LINETHICK2;
PARTLINE(v量1<REF(v量1,1),v量1),LINETHICK2;
PARTLINE(v量1>REF(v量1,1),v量1),LINETHICK2;
2.附图量指标
VOL,VOLSTICK;
ssK:=sMA(v,3,1),linethick1;
ssD:=SMA(ssK,3,1),linethick1;
ssJ:=3*ssK-2*ssD,linethick1;
量:=(EMA(IF(C>=REF(C,2),V,(-V)),60)/MA(V,60))+ssk;
量1:= EMA(量,3);
量2:= EMA(量,5);
量3:= EMA(量,8);
T4:=EMA(量,34),COLORf00ff0;
Var3:=MA(CLOSE,13);
Var4:=24-ABS((CLOSE-Var3)/Var3*30);
生命量能:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,linethick0;
散户:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
VarD:=散户>Var4;
股加速:IF( 生命量能>23, 散户,0 ),LINETHICK0,COLORYELLOW;
var2:=REF(LOW,1);
var3:=SMA(ABS(LOW-var2),3,1)/SMA(MAX(LOW-var2,0),3,1)*20;
var4:=EMA(IF(CLOSE*1.2,var3*10,var3/10),3);
var5:=LLV(LOW,30);
var6:=HHV(var4,30);
var7:=IF(LLV(LOW,68),1,0);
KS:=(C-MA(C,17))/MA(C,17)*(-100);
RKS:=REF(KS,1);
MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02;
FL:hhv(量1,3),COLORgreen,POINTDOT;
FS:if(量1<FL,(量1-(FL-量1)),FL),COLORgreen;
FL1:hhv(量1,5),COLORgreen,POINTDOT;
FS1:if(量1<FL1,(量1-(FL1-量1)),FL1),COLORgreen;
FL2:hhv(量1,7),COLORgreen,POINTDOT;
FS2:if(量1<FL2,(量1-(FL2-量1)),FL2),COLORgreen;
FL3:hhv(量1,9),colorFFABA3,linethick2;
FS3:if(量1<FL3,(量1-(FL3-量1)),FL3),colorFFABA3,linethick2;
PARTLINE(FS3>ref(FS3,1),FS3)colorred,LINETHICK2;
PARTLINE(FS3<ref(FS3,1),FS3)colorFFABA3,LINETHICK2;
PARTLINE(量1<REF(量1,1),量1),COLORGREEN,LINETHICK2;
PARTLINE(量1>REF(量1,1),量1)COLORRED,LINETHICK2;
assK:=sMA(v,3*5,1),linethick1;
assD:=SMA(assK,3*5,1),linethick1;
assJ:=3*assK-2*assD,linethick1;
v量:=(EMA(IF(C>=REF(C,2),V,(-V)),60)/MA(V,60))+assk;
v量1:= EMA(v量,3);
v量2:= EMA(v量,5);
v量3:= EMA(v量,8);
vT4:=EMA(v量,34),COLORf00ff0;
vVar3:=MA(CLOSE,13);
vVar4:=24-ABS((CLOSE-vVar3)/vVar3*30);
v生命量能:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4,linethick0;
v散户:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3)/4;
vVarD:=v散户>vVar4;
v股加速:IF( v生命量能>23, v散户,0 ),LINETHICK0,COLORYELLOW;
vvar2:=REF(LOW,1);
vvar3:=SMA(ABS(LOW-vvar2),3,1)/SMA(MAX(LOW-vvar2,0),3,1)*20;
vvar4:=EMA(IF(CLOSE*1.2,vvar3*10,vvar3/10),3);
vvar5:=LLV(LOW,30);
vvar6:=HHV(vvar4,30);
vvar7:=IF(LLV(LOW,68),1,0);
vKS:=(C-MA(C,17))/MA(C,17)*(-100);
vRKS:=REF(vKS,1);
vMLS:=vRKS/vKS>=1.23 AND vRKS>=8 AND C/REF(C,1)>=1.02;
vFL:hhv(v量1,3),COLORgreen,POINTDOT;
vFS:if(v量1<vFL,(v量1-(vFL-v量1)),vFL);
vFL1:hhv(v量1,5),COLORgreen,POINTDOT;
vFS1:if(v量1<vFL1,(v量1-(vFL1-v量1)),vFL1);
vFL2:hhv(v量1,7),COLORgreen,POINTDOT;
vFS2:if(v量1<vFL2,(v量1-(vFL2-v量1)),vFL2);
vFL3:hhv(v量1,9),linethick2;
vFS3:if(v量1<vFL3,(v量1-(vFL3-v量1)),vFL3),linethick2;
PARTLINE(vFS3>ref(vFS3,1),vFS3),LINETHICK2;
PARTLINE(vFS3<ref(vFS3,1),vFS3),LINETHICK2;
PARTLINE(v量1<REF(v量1,1),v量1),LINETHICK2;
PARTLINE(v量1>REF(v量1,1),v量1),LINETHICK2;
STICKLINE(T4>=REF(T4,1),T4,T4,0,0),COLOR338FDD,LINETHICK4;
STICKLINE(T4<=REF(T4,1),T4,T4,0,0),,LINETHICK4;
强:STICKLINE(量2>=量3,量1,量3,1,0),COLOR0044FF;
STICKLINE(量2>=量3,量1,量3,0,0),COLOR00CCFF;
STICKLINE(量2>=量3,量2,量3,8,0),COLOR0044FF;
STICKLINE(量2>=量3,量2,量3,7,0),COLOR0066FF;
STICKLINE(量2>=量3,量2,量3,6,0),COLOR0077FF;
STICKLINE(量2>=量3,量2,量3,5,0),COLOR0088FF;
STICKLINE(量2>=量3,量2,量3,4,0),COLOR0099FF;
STICKLINE(量2>=量3,量2,量3,3,0),COLOR00AAFF;
STICKLINE(量2>=量3,量2,量3,2,0),COLOR00BBFF;
STICKLINE(量2>=量3,量2,量3,1,0),COLOR00CCFF;
弱:STICKLINE(量2<=量3,量1,量3,1,0),COLORFF4400;
STICKLINE(量2<=量3,量1,量3,0,0),COLORFFCC00;
STICKLINE(量2<=量3,量2,量3,8,0),COLORFF4400;
STICKLINE(量2<=量3,量2,量3,7,0),COLORFF6600;
STICKLINE(量2<=量3,量2,量3,6,0),COLORFF7700;
STICKLINE(量2<=量3,量2,量3,5,0),COLORFF8800;
STICKLINE(量2<=量3,量2,量3,4,0),COLORFF9900;
STICKLINE(量2<=量3,量2,量3,3,0),COLORFFAA00;
STICKLINE(量2<=量3,量2,量3,2,0),COLORFFBB00;
STICKLINE(量2<=量3,量2,量3,1,0),COLORFFCC00;
T1:=量2>=量3 AND 量<REF(量,1);
T2:=量2<量3 AND 量>REF(量,1);
强转弱:STICKLINE(T1,量1,量3,1,0),COLORA0A0C0;
STICKLINE(T1,量1,量3,0,0),COLORDDDDFD;
STICKLINE(T1,量2,量3,8,0),COLORA0A0C0;
STICKLINE(T1,量2,量3,7,0),COLORAAAACA;
STICKLINE(T1,量2,量3,6,0),COLORB0B0D0;
STICKLINE(T1,量2,量3,5,0),COLORBBBBDB;
STICKLINE(T1,量2,量3,4,0),COLORC0C0E0;
STICKLINE(T1,量2,量3,3,0),COLORCCCCEC;
STICKLINE(T1,量2,量3,2,0),COLORD0D0F0;
STICKLINE(T1,量2,量3,1,0),COLORDDDDFD;
弱转强:STICKLINE(T2,量1,量3,1,0)LINETHICK3,COLOR338FDD;
STICKLINE(T2,量1,量3,0,0),COLOR33FFDD;
STICKLINE(T2,量2,量3,8,0),COLOR338FDD;
STICKLINE(T2,量2,量3,7,0),COLOR339FDD;
STICKLINE(T2,量2,量3,6,0),COLOR33AFDD;
STICKLINE(T2,量2,量3,5,0),COLOR33BFDD;
STICKLINE(T2,量2,量3,4,0),COLOR33CFDD;
STICKLINE(T2,量2,量3,3,0),COLOR33DFDD;
STICKLINE(T2,量2,量3,2,0),COLOR33EFDD;
STICKLINE(T2,量2,量3,1,0),COLOR33FFDD;
1.主图波段指标。
LCa := REF(c,1);
D1a:=LCa-l;
Da:=l-D1a+LCa;
SIa:=SMA(MAX(c-da,0),5,1)/SMA(ABS(c-da),5,1)+c;
KKa:=(EMA(FORCAST(SIa,5),3));
KKRa:=REF(KKa,1)+0.9;
KK1a:=EMA(KKa,3);
KK2a:=SMA(KK1a,10,3);
持股a:=IF((KKa>KK1a AND KKa>KK2a),5,0),COLORRED;
双线合并a:CROSS(KKa,KK1a),linethick0;
短卖a:=CROSS(KK1a,KKa);
LK4a:FILLRGN(KK2a>KK1a,KK1a,KK2a),COLORGREEN;
LK3a:FILLRGN(KK2a<KK1a,KK1a,KK2a),COLORRED;
LKa :FILLRGN(KKa>KK1a,KKa,KK1a),coloryellow;
LK1a:FILLRGN(KKa<KK1a,KKa,KK1a),colorblue;
2.附图趋势转换MACD和KDJ。
DRAWGBK(CLOSE>0, COLORRGB(1,1841,3411),COLORRGB(1,1881,6532),3);
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,COLOR00DDDD;
J:3*K-2*D,LINETHICK2,COLOR800080;
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),linethick0,COLOR0099FF;
DEA :EMA(DIFF,9),linethick0,COLORFF9999;
MACD:2*(DIFF-DEA),linethick0;
YLZC:=if(close=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(vol+0.01)/100);
阻价:=if(close=INDEXC,YLZC+INDEXC-INDEXl,YLZC+(close-low));
支价:=if(close=INDEXC,INDEXl+INDEXC-YLZC,low+(close-YLZC));
今压:REF(阻价,1),LINETHICK0,COLORAA11BB;
今撑:REF(支价,1),LINETHICK0,COLOR009900;
明压:阻价,LINETHICK0;
明撑:支价,LINETHICK0;
DD1:=BACKSET(ISLASTBAR,SUM(1,0));
DD2:=((3*HIGH+LOW+OPEN+2*CLOSE)/7)*DD1;
DD3:=((DD2+REF(DD2,1)+REF(DD2,3)+REF(DD2,5))/4)*DD1;
大单:EMA(DD3,10),LINETHICK0,ColorCC9900;
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;
KX:=SYSPARAM(3)-SYSPARAM(2)+1;
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[datacount],MAX(DH[datacount],JH[datacount]));
LKMIN:=MIN(KL[datacount],MIN(DL[datacount],JL[datacount]));
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[datacount],MAX(MHD[datacount],MHM[datacount]));
LMIN:=MIN(MLF[datacount],MIN(MLD[datacount],MLM[datacount]));
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;
CDA:=MACD<ref(MACD,1) and MACD>0;
CDB:=MACD>=ref(MACD,1) and MACD>0;
CDC:=MACD>ref(MACD,1) and MACD<0;
CDD:=MACD<=ref(MACD,1) and MACD<0;
STICKLINE(CDA,SH,macda,6,0),COLOR00AAFF;{黄色段}
STICKLINE(CDA,SH,macda,6.6,0),COLOR00BBFF;
STICKLINE(CDA,SH,macda,4.4,0),COLOR00CCFF;
STICKLINE(CDA,SH,macda,3.3,0),COLOR00DDFF;
STICKLINE(CDA,SH,macda,2.2,0),COLOR00EEFF;
STICKLINE(CDA,SH,macda,1.1,0),COLOR00FFFF;
STICKLINE(CDB,SH,macda,6,0),COLOR0000AA; {红色段}
STICKLINE(CDB,SH,macda,6.6,0),COLOR0011BB;
STICKLINE(CDB,SH,macda,4.4,0),COLOr0022CC;
STICKLINE(CDB,SH,macda,3.3,0),COLOR0033DD;
STICKLINE(CDB,SH,macda,2.2,0),COLOR0044EE;
STICKLINE(CDB,SH,macda,1.1,0),COLOR0055FF;
STICKLINE(CDC,SH,macda,6,0),COLORAA00BB;{向上粉红}
STICKLINE(CDC,SH,macda,6.6,0),COLORBB11BB;
STICKLINE(CDC,SH,macda,4.4,0),COLORCC22BB;
STICKLINE(CDC,SH,macda,3.3,0),COLORDD33BB;
STICKLINE(CDC,SH,macda,2.2,0),COLOREE44BB;
STICKLINE(CDC,SH,macda,1.1,0),COLORFF55BB;
STICKLINE(CDD,SH,macda,6,0),COLORFF7700;
STICKLINE(CDD,SH,macda,6.6,0),COLORFF8811;
STICKLINE(CDD,SH,macda,4.4,0),COLORFFAA22;
STICKLINE(CDD,SH,macda,3.3,0),COLORFFBB33;
STICKLINE(CDD,SH,macda,2.2,0),COLORFFDD44;
STICKLINE(CDD,SH,macda,1.1,0),COLORFFDD55;
PARTLINE(DIFF>0 or DIFF<0,DIFFA),POINTDOT,COLOR0099FF,linethick1;
PARTLINE(DEA>0 or DEA<0,DEAA),POINTDOT,colorFF9999,linethick1;
DRAWTEXT(ISLASTBAR,SH,' 0'),color00aaaa;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
STICKLINE(CDB or CDC or 明天买<0 and cci<-10 or CDA and diff/dea>=ref(diff/dea,1),19,20,2,0),COLORRED;
STICKLINE(明天买>=0 and (CDD or CDA and diff/dea<ref(diff/dea,1)),19,20,2,1),COLORGREEN;
STICKLINE(K>=ref(K,1),80,80,2,1),COLORRED;
STICKLINE(K<ref(K,1),80,80,2,1),COLORGREEN;
PARTLINE(K>0 or K<0,K),LINETHICK2,COLORWHITE;
PARTLINE(D>0 or D<0,D),LINETHICK2,COLOR00DDDD;
PARTLINE(J>0 or J<0,J),LINETHICK2,COLOR800080;