OnInit()
{ Array<Numeric> timepoint;
timepoint[0] = 0.145950;
SetTriggerBarClose(timepoint);
}
......
OnBarClose(ArrayRef<Integer> indexs)
{ OnBarClose(ArrayRef<Integer> indexs)
{
If( MarketPosition==-1 AND VOL >0 And time >= 0.1459 AND TIME <0.1500)
{BuyToCover(0,Close);}
}
用了上述这段代码,实现了日内平仓,但是再叠加策略的时候,系统还是默认是第二天早上9点才平的,这就导致MarketPosition这个数值冲突影响了第二天开盘的策略,该如何解决呢?
第一次遇到
如图,莫名其妙先发了平仓单,后面又不发了
好像其他帖子回过了
你这里有警告信号闪烁
先把信号闪烁排除了再来问其他问题