飞狐做波段副图指标
源码
Var1:=(CLOSE+HIGH+LOW+OPEN)/4;
Var2:=SUMBARS(VOL,CAPITAL)*10/10;
Var3:=HHV(Var1,Var2);
Var4:=LLV(Var1,Var2);
Var5:=(Var1-Var4)/(Var3-Var4);
波段: IF(Var1>=Var3,(2*Var1-Var4-REF(Var3,1))/(Var3-Var4),Var5),COLORRED;
s:IF(Var1<=Var4,(2*Var1-Var4-REF(Var4,1))/(Var3-Var4),Var5),colorff00ff;
Var6:=IF(Var1>=Var3,(2*Var1-Var4-REF(Var3,1))/(Var3-Var4),Var5);
k:(100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)))/100,COLORYELLOW;
Var7:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);
r:MA(Var7,6)/100,colorwhite;
Var8:=MA(Var1,34);
Var9:=(Var1-Var8)/Var8*10;
VarA:=HHV(CLOSE,20);
VarB:=0.6*VOL/WINNER(CLOSE);
底部:IF(VarB>=1000000 AND Var9<-1.618,0.88,0),COLORRED;
if(VarB>=1000000 AND Var9<-1.618,0.88,0);
if(Var6<=0,0,0);
if(Var6>=1,2.5,3),colorffaa00;