Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DLL/ATI Interface overrides custom order IDs

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

    DLL/ATI Interface overrides custom order IDs

    Hello,

    I'm sending orders from a C# app to Ninja via the DLL/ATI interface using NinjaTrader.Client.Client
    I supply a custom order ID so that I can reference the order later for adjustments.

    For example:
    Code:
    NinjaTrader.Client.Client NTClient = new NinjaTrader.Client.Client();
    string orderID = "MYORDER_A_" + Guid.NewGuid().ToString()
    NTClient.Command("PLACE", "Sim101", "A", "BUY", 1, "MARKET", 0, 0, "GTC", "", orderID, "", "");
    However, when the order is filled and I check Ninja logs the order ID always turns out something random that Ninja seems to generate in the background. Is this a bug?
    I'm on Ninja 8.0.22.2 64-bit

    Click image for larger version

Name:	ninjalog.png
Views:	37
Size:	181.8 KB
ID:	1137828
    Thanks.
    Last edited by CarpetHooligan; 01-21-2021, 04:03 PM.

    #2
    Hello CarpetHooligan,

    Thank you for your post.

    I understand that the OIF order ID does not match the order ID you set in your code. This is normal behavior for OIF orders and is also the behavior in NinjaTrader 7.

    If you would like, I could submit this as a feature request to the Development team and add your vote. Please let me know if you would like a feature request created.

    Additionally, I see that you're using an older version of NinjaTrader 8. To update NinjaTrader, please follow the steps below:
    • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
    • Click on the link: https://ninjatrader.com/PlatformDirect
    • Enter your license key and press Submit
    • Select 'Download'
    • Critical: Before running the installer, ensure NinjaTrader is closed.
    Please let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by demarcog, Today, 12:28 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by demarcog, Today, 11:03 AM
    5 responses
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by jo54321, Today, 04:26 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by pserrera, Today, 03:26 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by maxuscz, Today, 03:01 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X