Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Difference between 'Buy' and 'BuyToCover' in unmanaged mode

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Difference between 'Buy' and 'BuyToCover' in unmanaged mode

    When I call SubmitOrder() in Unmanaged mode, I'm required to supply orderAction of type OrderAction. This enum has four values: Buy, BuyToCover, Sell, SellShort.

    I realize their meaning in Managed mode, but do they have any effect in Unmanaged mode?
    Namely, are the following statement equivalent?
    Code:
    SubmitOrder(0, OrderAction.Buy, OrderType.Market, 1, 0.0, 0.0, "", "mySignal");
    SubmitOrder(0, OrderAction.BuyToCover, OrderType.Market, 1, 0.0, 0.0, "", "mySignal");

    #2
    Thanks for the post boaza, please see our reply here clarifying this topic - http://www.ninjatrader.com/support/f...ad.php?t=53397

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    92 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    70 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    87 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    64 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X