请教关于A_buy函数orderIds参数问题
2024-07-27 13:30

A_Buy-指定账户指定合约开多头单

Bool A_Buy(String symbol, Numeric lot, Numeric price, ArrayRef<Integer> orderIds, String userNote = \"\", String createSource = \"\", Integer accountIndex = 0)

说明:

指定账户指定合约开多头单。

参数:

参数名类型说明
symbolString合约代码
lotNumeric手数
priceNumeric价格
orderIdsArrayRef<Integer>报单索引
userNoteString用户注释
createSourceString操作源
accountIndexInteger账户下标索引

第一个问题,orderIds参数为什么是数组类型,一条A_buy命令不是应该对应一个索引值吗?

第二个问题,orderIds参数是A_buy命令执行完自动写入变量里面的?用户不能指定参数值?


评论区
顶部