自己组合的一个指标,用了两年多了感觉非常不错,那位老师给优化一下让曲线平滑些,美观些。
孤城顶底
N:=18;
M:=24;
I:=26;
Var1:=INDEXV*INDEXC;
Var2:=EMA(Var1,5)/EMA(INDEXV,5);
Var3:=(INDEXC-Var2)/Var2*100;
Var4:=Var3<=-1.5 AND Var3>-100;
Var5:=SUM(Var4>0,N)/SUM(Var4=0,N);
Var6:=Var5<5 AND Var5>=0.25;
Var7:=(LOW+HIGH+CLOSE)/3;
Var8:(Var7-MA(Var7,M))/(0.015*AVEDEV(Var7,M)),COLORYELLOW;
Var9:EMA(Var8,3),colorwhite;
VarA:=(HIGH+LOW+CLOSE)/3;
VarB:SUM(MAX(0,HIGH-REF(VarA,1)),I)/SUM(MAX(0,REF(VarA,1)-LOW),I)*100,Colorred;
Varg:REF(MA(VarB,3),2.2),COLORGREEN;
Varh:=REF(MA(VarB,13),6.2);
Varj:=REF(MA(VarB,89),36.6);
Vark:=CROSS(Varg,VarB) AND VarB>150;
VARC:=SMA(((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100),4,1);
VARD:=SMA(((CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11)))*(100),4,1);
VARE:=SMA(((CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12)))*(100),4,1);
VARF:=SMA(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*(100),4,1);
VAR10:=SMA(((CLOSE-LLV(LOW,14))/(HHV(HIGH,14)-LLV(LOW,14)))*(100),4,1);
VAR11:=SMA(((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100),4,1);
VAR12:=SMA(((CLOSE-LLV(LOW,16))/(HHV(HIGH,16)-LLV(LOW,16)))*(100),4,1);
VAR13:=SMA(((CLOSE-LLV(LOW,17))/(HHV(HIGH,17)-LLV(LOW,17)))*(100),4,1);
VAR14:=SMA(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*(100),4,1);
VAR17:=SMA(((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)))*(100),4,1);
VAR18:=(HIGH+LOW+CLOSE)/(3);
VAR19:=(VAR18-MA(VAR18,14))/((0.015)*(AVEDEV(VAR18,14)));
VAR1A:=(VAR18-MA(VAR18,70))/((0.015)*(AVEDEV(VAR18,70)));
VAR1B:=IF((VAR19>=150) AND (VAR19<200) AND (VAR1A>=150) AND (VAR1A<200),(-10),0);
VAR1C:=IF((VAR19<=(-150)) AND (VAR19>(-200)) AND (VAR1A<=(-150)) AND (VAR1A>(-200)),10,0);
VAR1D:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);
VAR1E:=100-ABS(VAR1D);
警1:IF((BARSCOUNT(CLOSE)<70),280,IF((VAR1A>=200) AND (VAR19>=150),(-15),VAR1B)+280),COLORCCFF66;
警2:IF((BARSCOUNT(CLOSE)<13),260,IF((VAR1E<88) AND (VAR1D>0),190,260)),Color1880FF;
警3:IF((BARSCOUNT(CLOSE)<13),(-200),0-IF((VAR1E<92) AND (VAR1D<0),85,200)),COLORGREEN;
警4:IF((BARSCOUNT(CLOSE)<70),(-220),IF((VAR1A<=(-200)) AND (VAR19<=(-150)),15,VAR1C)-220),COLORBLUE;
VAR50:=(HIGH+LOW+CLOSE)/3;
VAR60:=(VAR50-MA(VAR50,10))/(0.015*AVEDEV(VAR50,10));
VAR70:=(VAR50-MA(VAR50,30))/(0.015*AVEDEV(VAR50,30));
VAR80:=IF(VAR60>=150 AND VAR60<200 AND VAR70>=150 AND VAR70<200,100,0);
VAR90:=IF(VAR60<=-150 AND VAR60>-200 AND VAR70<=-150 AND VAR70>-200,-100,VAR80);
警5:(IF((VAR70>=200 AND VAR60>=150),60,IF(VAR70<=-200 AND VAR60<=-150,-60,VAR90))+0.01),COLORSTICK,COLORRED,LINETHICK3;
|