[CMD] Get Order Direction

1 98 Views No Comments 1 month ago
  • Gets the order direction as a signal enum – signallong, siignalshort, signalexitlong, signalexitshort, signalbuy, signalsell

    Usage –

    local orderdir = CC_GetOrderDirection(orderId)
    or
    local orderdir = CC_GetOrderDirection(orderId, PositionId, PriceMarket())

    • This topic was modified 1 month, 1 week ago by strooth. Reason: remove return so out always has a value
    HaasScript Code
    Sign in or Register to download for free
Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free