Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:	242
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.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    34 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    5 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    214 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    547 views
    0 likes
    Last Post PaulMohn  
    Working...
    X