Type/to search
0
Follow
1
Followers
Problema de orden de mercado
Help
Created 2022-01-21 18:28:21  
 3
 1090
  1. Información para el formulario
    022-01-21 18:24:32 Información para abrir un formulario, sellOrderId 404702825422401536
    2022-01-21 18:24:32 Futures_OKCoin Venta abierta - swap precio de mercado 1
    2022-01-21 18:24:32 Información: La tenencia de una posición menor que la cantidad máxima abierta, puede ser más simple

  2. El código
    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 ("Estocado vacío, facturación directa")
buyOrderId = orderOpen(way, -1, amount)
Log (("Completo el pedido: buyOrderIduyOrderId=", buyOrderId)
}

为什么多单就是市价单,空单就是委托单呢?谢谢
Related Recommendations
Comment
All comments (3)

    我是发送后 发现单子在 当前委托里 没有成交 给我干蒙了。。。。。。。。。。

    5 years ago

    应该都是市价单,你看看委托单的价格

    5 years ago

    然后 我重启实盘 啥代码也没改,就变回市价单了。。。。。。。。。

    5 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)