WQFS:=SUMBARS(vol,CAPITAL);
Var4:=(HIGH*1.1*V+REF(H,1)*1.1*(CAPITAL-V))/CAPITAL;
Var7:=(L*0.9*V+REF(L,1)*0.9*(CAPITAL-V))/CAPITAL;
Var8:=ema(MA(Var7,WQFS*0.618),1);
Var9:=ema(MA(Var4,WQFS*0.382),1);
VarA:=Var9*0.618;
VarB:=IF(c<=Var8,VarA,Var9);
超买: VarA,ColorFF00FF;
WL:-VarB*(HHV(H,WQFS)-c)/(HHV(H,WQFS)-LLV(L,WQFS))+VarB,Color00FF00;
{ _通达信股票指标公式}
趋势:SMA(WL,3,1),Color00FFFF,LINETHICK2;
超卖:VarB/(WQFS*0.618),ColorFFFF00;
平衡:(超卖+超买)/2,COLORWHITE;