之前好好的今天卡着不动了
检查策略代码
重启软件
3.一直不行的话,右上角帮助->上传日志,并备注说明
发了,重启也不行,代码没问题,昨晚上还好呢
你可以提供可复现的内容,或者就是上传日志
Series<Numeric> ATR; // 声明EMA序列变量
Bool yyp;
Bool myp;
Bool yptj;
CodeProperty yp; //合约属性
Events
OnInit()
{
Print("周期:" + Frequency());
}
OnReady()
{
Data0.Show();
}
onBar(ArrayRef<Integer> indexs)
{
//............................................................................................
ATR=AvgTrueRange(14);
Bool ret = GetProperty(yp);
yyp = FindFirstOf(yp.dealTimes, "21") != InvalidInteger;
myp = FindFirstOf(yp.dealTimes, "21") == InvalidInteger;
If( yyp)
{
PushStatusMsg("\n有夜盘");
}
If( myp)
{
PushStatusMsg("\n没夜盘");
}
yptj = (CurrentTime>0.21 And yyp) Or CurrentTime<0.21;
PlotAuto("yyp",yptj);
PlotBool("PC", yptj And symbolType<>"IH" And symbolType<>"IF" And symbolType<>"IM" And symbolType<>"IC" And symbolType<>"T" And symbolType<>"TF" And symbolType<>"TL" And symbolType<>"TS" And ATR / C * 10000 >150);
}
Series<Numeric> ATR; // 声明EMA序列变量
Bool yyp;
Bool myp;
Bool yptj;
CodeProperty yp; //合约属性
Events
OnInit()
{
Print("周期:" + Frequency());
}
OnReady()
{
Data0.Show();
}
onBar(ArrayRef<Integer> indexs)
{
//............................................................................................
ATR=AvgTrueRange(14);
Bool ret = GetProperty(yp);
yyp = FindFirstOf(yp.dealTimes, "21") != InvalidInteger;
myp = FindFirstOf(yp.dealTimes, "21") == InvalidInteger;
If( yyp)
{
PushStatusMsg("\n有夜盘");
}
If( myp)
{
PushStatusMsg("\n没夜盘");
}
yptj = (CurrentTime>0.21 And yyp) Or CurrentTime<0.21;
PlotAuto("yyp",yptj);
PlotBool("PC", yptj And symbolType<>"IH" And symbolType<>"IF" And symbolType<>"IM" And symbolType<>"IC" And symbolType<>"T" And symbolType<>"TF" And symbolType<>"TL" And symbolType<>"TS" And ATR / C * 10000 >150);
}
现在选东西正常了,但是还是卡集合运算运行中,另外两个也正常了
我怀疑是因为铸造铝今天上市造成的
有可能 我会反馈一下