用A_buyposition和A_sellposition读取不到账户的持仓
OnBarOpen(ArrayRef<Integer> indexs)
{
Commentary("账户数: " + text(A_accountcount));
Commentary("当前账户ID: " + A_AccountID(0));
Commentary("账户动态权益 :" + text(A_CurrentEquity(0)));
Commentary("账户持仓多 :" + text(A_BuyPosition(0)));
Commentary("策略持仓多 :" + text(longCurrentContracts));
Commentary("账户持仓空 :" + text(A_SellPosition(0)));
Commentary("策略持仓空 :" + text(shortCurrentContracts));
}


建议先去看一遍基础视频教学吧!!!