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:	301
Size:	181.8 KB
ID:	1137828
    Thanks.
    Last edited by CarpetHooligan; 01-21-2021, 05: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.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    89 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    257 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X