• 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 JTizz, Today, 08:17 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Johnny Santiago, 07-30-2020, 07:30 PM
    9 responses
    33 views
    0 likes
    Last Post brucerobinson  
    Started by Jorge.andres.o, Yesterday, 03:44 PM
    2 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Rastus, Yesterday, 10:27 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by jonfan45, Today, 01:25 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X