现在市场好了点,特发个自用的指标,我是合成了网上的指标,自己感觉还很不错.现在发给大家,请大家顶贴++++++分
代码:
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
阻力线:EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20),COLORF0F000,LINETHICK2;
突破线:= EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
操作线:突破线,COLORRED, LINETHICK2;
Var60:=MA(LOW,1);
Var61:=MA(HIGH,2);
Var3:=MA(CLOSE,2);
Var4:=(Var3-LLV(Var1,9))/(HHV(Var2,9)-LLV(Var1,9))*100;
Var5:=SMA(Var4,3,1);
Var6:=(HHV(Var2,9)-Var3)/(HHV(Var2,9)-LLV(Var1,9))*100;
Var7:=REF(Var3,1);
Var8:=SMA(MAX(Var3-Var7,0),13,1)/SMA(ABS(Var3-Var7),13,1)*100;
VarB:=MA(INDEXC,3)*100/MA(INDEXC,10)-100;
VarC:=MA(CLOSE,3)*100/MA(CLOSE,10)-100;
VarD:=CLOSE*100/MA(CLOSE,10)-100;
VarE:=IF(VarB>10,10,VarB);
VarF:=IF(VarE<-10,-10,VarE);
Var10:=IF(VarC>10,10,VarC);
Var11:=IF(Var10<-10,-10,Var10);
Var12:=REF(VarB,1);
Var13:=100*(Var3-REF(Var3,1))/REF(Var3,1);
Var14:=INDEXC;
Var15:=REF(Var14,1);
Var16:=100*(Var14-Var15)/Var14;
Var17:=MA(Var13,3);
Var18:=MA(Var16,3);
Var19:=(3*CLOSE+Var1+OPEN+HIGH)/6;
Var1A:=(20*Var19+19*REF(Var19,1)+18*REF(Var19,2)+17*REF(Var19,3)+16*REF(Var19,4)+15*REF(Var19,5)+14*REF(Var19,6)+13*REF(Var19,7)+12*REF(Var19,8)+11*REF(Var19,9)+10*REF(Var19,10)+9*REF(Var19,11)+8*REF(Var19,12)+7*REF(Var19,13)+6*REF(Var19,14)+5*REF(Var19,15)+4*REF(Var19,16)+3*REF(Var19,17)+2*REF(Var19,18)+REF(Var19,20))/210;
Var1B:=MA(Var1A,12);
Var1C:=EMA(Var1A,5);
Var1D:=ABS(Var1A-Var1B);
Var1E:=REF(Var3,1)*0.015;
Var1F:=REF(INDEXC,1);
Var24:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
Var25:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
Var26:=MA(CLOSE,26);
Var27:=Var26+2*STD(Var3,26);
Var28:=Var26-2*STD(Var3,26);
Var29:=Var26+2*STD(REF(Var3,1),26);
Var2A:=Var26-2*STD(REF(Var3,1),26);
Var2B:=IF(Var24 AND Var1<Var28,1,0);
Var2C:=IF(Var25*Var1 AND Var2>Var27,2,Var2B);
Var2D:=IF(Var2C=1,80,45);
Var2E:=IF(Var2C=2,0,Var2D);
Var2F:=Var2E;
d1:=ema(3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),5);
d2:=ref(d1,1);
STICKLINE(D1>=ref(d1,1),D1,D2,8,0),COLOR0055AA;
STICKLINE(D1<ref(d1,1),D1,D2,8,0),COLOR006600;
STICKLINE(D1>=ref(d1,1),D1,D2,5,0),COLOR0077CC;
STICKLINE(D1>=ref(d1,1),D1,D2,3,0),COLOR0099DD;
STICKLINE(D1<ref(d1,1),D1,D2,5,0),COLOR009900;
STICKLINE(D1<ref(d1,1),D1,D2,3,0),COLOR00BB00;
|