Type/to search
12
Follow
3
Followers
¿Cómo escribir el código si hay órdenes largas y cortas al mismo tiempo?
Help
Created 2022-01-15 14:50:06  
 1
 1029

¿La función GetPosition de exchange.Get no soporta el uso simultáneo de boletos y boletos en blanco, por lo que se debe llamar al API de la bolsa para obtenerlos directamente?
var pos = _C(exchange.GetPosition)
pos[0].Type == PD_LONG
pos[0].Type == PD_SHORT

Pos en este momento[0] es polinómico, pos[¿Qué pasa con las tarjetas?

¡Por favor, ayúdenme a encontrar la respuesta, gracias!

Related Recommendations
Comment
All comments (1)

    GetPosition会获取多头、空头持仓,可以遍历GetPosition返回的持仓数组,筛选出多头、空头。

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