Type/to search
12
Follow
3
Followers
Como escrever o código se houver ordens longas e curtas ao mesmo tempo?
Help
Created 2022-01-15 14:50:06  
 1
 1029

A função GetPosition do exchange.GetPackage não suporta o uso simultâneo de múltiplos itens e itens vazios, e deve ser obtida diretamente através da API do exchange?
var pos = _C(exchange.GetPosition)
pos[0].Type == PD_LONG
pos[0].Type == PD_SHORT

Agora é pos[0] é múltiplo, pos[O que é um cartão vazio?

Por favor, ajudem-me a responder, obrigado!

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)