• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Boonfly8, Today, 12:20 PM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by RedDuke, Today, 11:40 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by snbence, Today, 11:19 AM
    2 responses
    7 views
    0 likes
    Last Post snbence
    by snbence
     
    Started by marwanco, Today, 10:54 AM
    2 responses
    7 views
    0 likes
    Last Post marwanco  
    Started by daqu40, Today, 11:01 AM
    1 response
    1 view
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X