上传一个自己从网络下载的,OSC指标,使用一段时间非常好,同花顺也有此指标,但有些简单.
Var1:=REF(CLOSE,1);
Var2:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
Var3:=(CLOSE-Var1)*Var2;
Var4:=SUM(Var3,0);
Var5:=SMA(Var4,5,1);
Var6:=SMA(Var4,8,1);
OSC: Var5-Var6,colorwhite,linethick1;
OSCMA: MA(OSC,4),coloryellow,linethick1;
VD: SUM(IF(OSC>0,OSC*1.003,OSC*1.003>0),12)/10,colorred,linethick1;
VE: SUM(IF(OSC<=0,OSC*0.97,OSC*0.97<0),8)/7,colorgreen,linethick1;