以下是波段之王之选股指标公式源码和使用说明
使用说明:
波段之王之选股指标是一种用于辅助股票选取和波段交易的技术指标。该指标基于股票的价格波动情况,通过计算当日收盘价相对于最高价和最低价之间的位置来评估股票的波动性和趋势性。
收集数据:获取股票的历史价格数据,包括每日的最高价、最低价和收盘价。
计算指标:对于每个交易日,使用指标公式计算波段之王之选股指标的值。将收盘价减去最低价,然后除以最高价减去最低价,得出指标值。
分析指标:观察指标值的变化情况。较高的指标值表示股票收盘价接近最高价,而较低的指标值表示股票收盘价接近最低价。较高的指标值可能表明股票处于上涨趋势,而较低的指标值可能表明股票处于下跌趋势。
选取股票:根据指标值的分析结果,可以选择在较低指标值时买入股票,以便在上涨趋势中获取利润;或者在较高指标值时卖出股票,以避免下跌趋势的损失。
波段之王之选股指标公式源码:
TJ1:=(C-REF(C,1))/REF(C,1)*100>=0.1;
VAR1:=LLV(LOW,13);
VAR2:=HHV(HIGH,13);
VAR3:=SMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5,1);
VAR4:=SMA((VAR2-CLOSE)/(VAR2-VAR1)*100,5,1);
AA:=VAR3;
BB:=VAR4;
VAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
CC:=EMA(VAR5,3);
DD:=MA(C,30)>=REF(MA(C,30),1);
EE:=L<=MA(C,26)ANDH>=MA(C,30);
MTM:=CLOSE-REF(CLOSE,15);
MAMTM:=MA(MTM,8);
FF:=MAMTM>REF(MAMTM,2);
XG:CC>=REF(CC,2)ANDC>OANDTJ1ANDEEANDDDANDFF;
VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;
VAR2:=SMA(VAR1,3,1);
VAR3:=Sma(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,5);
VAR6:=HHV(HIGH,5);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
VARE:=SMA(VARD,3,1)*1.5-100;
VARF:=SMA(VARE,3,1);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=EMA(VAR11,13);
VAR13:=stD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=EMA(VAR14,5);
VAR16:=EMA(VAR15,13);
VAR17:=EMA(VAR15,13)+200-100;
VAR18:=EMA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/vol/100;
VAR20:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR21:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR22:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR23:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR24:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR25:=EMA(VAR24,24);
VAR26:=STD(VAR24,24);
VAR27:=(VAR24-VAR25)/VAR26*100;
VAR28:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR29:=EMA(VAR27,5);
VAR2A:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR2B:=SUMBARS(VOL,CAPITAL);
VAR2C:=(VAR20-MA(VAR20,90))/(0.015*AVEDEV(VAR20,90));
VAR2D:=((VAR2C+VAR2A+VAR29+VAR28+VAR21)/5+165)/4;
VAR2E:=(EMA(EMA(EMA(VAR2D,15),10),5)-25)*2+VAR23;
VAR2F:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR30:=EMA(VAR2F,13);
VAR31:=(VAR2D+VAR2F)/2/1.1;
VAR32:=HHV(VAR22,VAR2B);
VAR33:=LLV(VAR22,VAR2B);
VAR34:=(VAR22-VAR33)/(VAR32-VAR33);
AAA:=IF(VAR22>=VAR32,(2*VAR22-VAR33-REF(VAR32,1))/(VAR32-VAR33),VAR34);
XG:AAA<=0;
S1:=EMA(C,3)*2-EMA(EMA(C,3),3),coloryellow;
S2:=EMA(C,6)*2-EMA(EMA(C,6),6),coloryellow;
S3:=EMA(C,9)*2-EMA(EMA(C,9),9),coloryellow;
S4:=EMA(C,14)*2-EMA(EMA(C,14),14),coloryellow;
S5:=EMA(C,19)*2-EMA(EMA(C,19),19),coloryellow;
均线:(S1+S2+S3+S4+S5)/5,ColorFF17FF,LINETHICK2;
L1:EMA(C,27)*2-EMA(EMA(C,27),27),Color1AFFFF;
L2:EMA(C,34)*2-EMA(EMA(C,34),34),Color1EFF1E;
L3:EMA(C,41)*2-EMA(EMA(C,41),41),ColorFFFF2D;
L4:EMA(C,48)*2-EMA(EMA(C,48),48),ColorFFFFFF;
L5:EMA(C,55)*2-EMA(EMA(C,55),55),Color1E1EFF;
var1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);
Var2:=REF(Var1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var3:=REF(Var2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var4:=REF(Var3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var5:=REF(Var4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var6:=REF(Var5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var7:=REF(Var6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var8:=REF(Var7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var9:=REF(Var8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VarA:=REF(Var9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VarB:=REF(VarA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VarC:=REF(VarB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VarD:=CLOSE<REF(CLOSE,1)ANDCLOSE<REF(CLOSE,2);
VarE:=REF(VarD,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VarF:=REF(VarE,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var10:=REF(VarF,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var11:=REF(Var10,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var12:=REF(Var11,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var13:=REF(Var12,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var14:=REF(Var13,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var15:=REF(Var14,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var16:=REF(Var15,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var17:=REF(Var16,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
Var18:=REF(Var17,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
Var19:=REF(VarDORVarEORVarFORVar10ORVar11ORVar12ORVar13OR
Var14ORVar15ORVar16ORVar17ORVar18,1)ANDVar1;
DRAWTEXT(Var19,L,’B’),colorwhite;
Var1A:=REF(Var1ORVar2ORVar3ORVar4ORVar5ORVar6ORVar7OR
Var8ORVar9ORVarAORVarBORVarC,1)ANDVarD;
DRAWTEXT(Var1A,H*1.02,’S’),coloryellow;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5,0),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5,0),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5,0),COLOR00FF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,10,0),COLORff7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,6,0),COLORff9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,5,0),COLORffbb00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLORffcc00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORffdd00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLORffee00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.8,0),COLORffFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0),COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0),COLOR000066;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0),COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0),COLOR0000ff;
var9Q:=C=HHV(C,4)AND(REF(C,1)>=REF(C,2)ORREF(C,1)>=REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE>=REF(C,2)ORREF(C,2)=HHV(C,4)ANDREF(C,3)=LLV(C,4)ANDC>=REF(C,1)ORREF(C,3)=HHV(C,4)ANDC>=REF(C,1)ANDC>=REF(C,2);
STICKLINE(var9Q,C,(O+C)/2,10,0),color000055;
STICKLINE(var9Q,C,(O+C)/2,6,0),color000066;
STICKLINE(var9Q,C,(O+C)/2,5,0),color000077;
STICKLINE(var9Q,C,(O+C)/2,4,0),color000099;
STICKLINE(var9Q,C,(O+C)/2,3,0),color0000bb;
STICKLINE(var9Q,C,(O+C)/2,2,0),color0000dd;
STICKLINE(var9Q,C,(O+C)/2,0.8,0),color0000ff;
varaQ:=C=HHV(C,4)ANDREF(C,1)=LLV(C,4);
STICKLINE(varaQ,C,(O+C)/2,10,0),colorff11ff;
STICKLINE(varaQ,C,(O+C)/2,6,0),colorff33ff;
STICKLINE(varaQ,C,(O+C)/2,5,0),colorff55ff;
STICKLINE(varaQ,C,(O+C)/2,4,0),colorff77ff;
STICKLINE(varaQ,C,(O+C)/2,3,0),colorff99ff;
STICKLINE(varaQ,C,(O+C)/2,2,0),colorffbbff;
STICKLINE(varaQ,C,(O+C)/2,0.8,0),colorffddff;
varbQ:=C=LLV(C,4)AND(REF(C,1)<REF(C,2)ORREF(C,1)<REF(C,3))ORREF(C,1)=LLV(C,4)ANDC<REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)<>HHV(C,4)ANDC<REF(C,1)ORREF(C,3)=LLV(C,4)ANDC<REF(C,1)ANDC<REF(C,2);
STICKLINE(varbQ,C,(O+C)/2,10,0),color333333;
STICKLINE(varbQ,C,(O+C)/2,6,0),color555555;
STICKLINE(varbQ,C,(O+C)/2,5,0),color777777;
STICKLINE(varbQ,C,(O+C)/2,4,0),color999999;
STICKLINE(varbQ,C,(O+C)/2,3,0),colorbbbbbb;
STICKLINE(varbQ,C,(O+C)/2,2,0),colordddddd;
STICKLINE(varbQ,C,(O+C)/2,0.8,0),colorffffff;
varcQ:=REF(C,1)=LLV(C,4)ANDC>=REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)<=REF(C,3)ANDREF(C,2)<REF(C,4)ANDC>=REF(C,1);
STICKLINE(varcQ,O,(O+C)/2,10,0),color003300;
STICKLINE(varcQ,O,(O+C)/2,6,0),color005500;
STICKLINE(varcQ,O,(O+C)/2,5,0),color007700;
STICKLINE(varcQ,O,(O+C)/2,4,0),color009900;
STICKLINE(varcQ,O,(O+C)/2,3,0),color00bb00;
STICKLINE(varcQ,O,(O+C)/2,2,0),color00dd00;
STICKLINE(varcQ,O,(O+C)/2,0.8,0),color00ff00;
vardQ:=REF(C,1)=HHV(C,4)ANDC<REF(C,2)OR(REF(C,2)=HHV(C,4)ANDREF(C,1)>REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1)>REF(C,2))ANDREF(C,2)>=REF(C,4)ANDC<REF(C,1);
STICKLINE(vardQ,O,(O+C)/2,10,0),colorff1100;
STICKLINE(vardQ,O,(O+C)/2,6,0),colorff3300;
STICKLINE(vardQ,O,(O+C)/2,5,0),colorff5500;
STICKLINE(vardQ,O,(O+C)/2,4,0),colorff7700;
STICKLINE(vardQ,O,(O+C)/2,3,0),colorff9900;
STICKLINE(vardQ,O,(O+C)/2,2,0),colorffbb00;
STICKLINE(vardQ,O,(O+C)/2,0.8,0),colorffdd00;
AC:=AMOUNT/(VOL);
YY:=MA(AC,9);
LLL:=(C-YY)/YY*100;
MIDC:= MA(CLOSE,14);
UPPERC:=MIDC+2*STD(C,14);
LOWERC:=MIDC-2*STD(C,14);
BBA:=(C-LOWERC)/(UPPERC-LOWERC);
BBC:=FORCAST(BBA,3);
LIFENGCYC:=(REF(LLL,1)<-15ANDREF(BBA,1)<0ANDLLL>REF(LLL,1));
DRAWTEXT(LIFENGCYC>0,LOW*0.99,’☆’),colorffffff;
波段之王之选股指标公式截图
评论(0)