0
Follow
1
Followers
1)开单信息
022-01-21 18:24:32 信息 开空单,sellOrderId 404702825422401536
2022-01-21 18:24:32 Futures_OKCoin 卖出开空 - swap 市价单 1
2022-01-21 18:24:32 信息 持仓小于最大开仓量,可以多单
2)代码
function orderOpen(way, price, amount) {
if (way == "LONG") {
return trade("buy", price, amount)
} else if (way == "SHORT") {
return trade("sell", price, amount)
}
}
else if (position.length == 0) {
Log("空仓,直接开单")
buyOrderId = orderOpen(way, -1, amount)
Log("开单完毕:buyOrderIduyOrderId=", buyOrderId)
}
为什么多单就是市价单,空单就是委托单呢?谢谢
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engine
