老师,文华指标导入出现,未定交的变量OPI,请问如果解决?谢谢
OPI-REF(OPI,DAYBARPOS);
AA:=IF(C=REF(C,1)&&OPI>REF(OPI,1),1,0),NODRAW;
BB:=IF(C=REF(C,1)&&OPI<REF(OPI,1),1,0),NODRAW;
多头增仓:=C>REF(C,1)&&OPI>REF(OPI,1) || AA,NODRAW;
空头减仓:=C>REF(C,1)&&OPI<REF(OPI,1) || BB,NODRAW;
空头增仓:=C<REF(C,1)&&OPI>REF(OPI,1),NODRAW;
多头减仓:=C<REF(C,1)&&OPI<REF(OPI,1),NODRAW;
STICKLINE(空头增仓,0,OPI-REF(OPI,1),COLORCYAN,0);
STICKLINE(多头增仓,0,OPI-REF(OPI,1),COLORRED,0);
STICKLINE(空头减仓,0,OPI-REF(OPI,1),COLORRED,0);
STICKLINE(多头减仓,0,OPI-REF(OPI,1),COLORCYAN,0);