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 documentation doesn't align with current client DLL

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

    DLL documentation doesn't align with current client DLL

    The official DLL docs at https://ninjatrader.com/support/help...?functions.htm

    do not align with v8.1.3.0 of the Ninjatrader.Client.dll. For example, in the docs, the function Command does not specify an argument called tpl, where the client DLL does. The commands and parameters docs for the Command class also doesn't reflect the tpl argument at all at: https://ninjatrader.com/support/help...parameters.htm

    #2
    Hello ms52390,

    Thank you for your post.

    Where exactly are you seeing that COMMAND has a tpl parameter? I'm not seeing this in the Client.dll or referenced anywhere.

    Command does not have a tpl parameter. What is listed in the Help Guide is the correct syntax.

    int Command(string command, string account, string instrument, string action, int quantity, string orderType, double limitPrice, double stopPrice,
    string timeInForce, string oco, string orderId, string strategy, string strategyId)​
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Gaby View Post
      Hello ms52390,

      Thank you for your post.

      Where exactly are you seeing that COMMAND has a tpl parameter? I'm not seeing this in the Client.dll or referenced anywhere.

      Command does not have a tpl parameter. What is listed in the Help Guide is the correct syntax.

      int Command(string command, string account, string instrument, string action, int quantity, string orderType, double limitPrice, double stopPrice,
      string timeInForce, string oco, string orderId, string strategy, string strategyId)​
      Hello, right in Ninjatrader.Client.dll, this is a copy/paste of the COMMAND syntax:

      public int Command(string command, string account, string instrument, string action, int quantity, string orderType, double limitPrice, double stopPrice, string timeInForce, string oco, string orderId, string tpl, string strategy)

      Note "tpl" second to last argument

      Comment


        #4
        Hello,

        I am not seeing this referenced anywhere - I've also asked another member of the team to confirm that there is no tpl parameter in Command. The syntax you've posted doesn't seem to match the documented Help Guide version.

        Can you post a screenshot of what you are seeing and where?
        Gaby V.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Gaby View Post
          Hello,

          I am not seeing this referenced anywhere - I've also asked another member of the team to confirm that there is no tpl parameter in Command. The syntax you've posted doesn't seem to match the documented Help Guide version.

          Can you post a screenshot of what you are seeing and where?
          Hello, in version 8.1.3.0 of the Client DLL, you can see the following Command function featuring the tpl argument:
          Click image for larger version

Name:	image.png
Views:	16
Size:	83.2 KB
ID:	1308302

          Comment


            #6
            Hello,

            NinjaTrader.Client.dll is a closed-source assembly. Please note we do not provide the source code of this assembly.

            That being said, it looks like you have renamed the string strategy parameter to tpl and the string strategyId parameter renamed to strategy.

            Help Guide:

            int Command(string command, string account, string instrument, string action, int quantity, string orderType, double limitPrice, double stopPrice,
            string timeInForce, string oco, string orderId, string strategy, string strategyId)​

            Your image:

            public int Command(string command, string account, string instrument, string action, int quantity, string orderType, double limitPrice, double stopPrice,
            string timeInForce, string oco, string orderId, string tpl, string strategy)

            This is the same thing just named differently. ​
            Gaby V.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by JackyP, 07-25-2023, 08:39 AM
            3 responses
            312 views
            0 likes
            Last Post Lancer
            by Lancer
             
            Started by TiffanyMiller, Yesterday, 10:19 PM
            0 responses
            2 views
            0 likes
            Last Post TiffanyMiller  
            Started by algospoke, 05-13-2024, 06:53 PM
            12 responses
            133 views
            0 likes
            Last Post algospoke  
            Started by psangram, Yesterday, 06:35 PM
            0 responses
            4 views
            0 likes
            Last Post psangram  
            Started by Alaina19, 07-14-2024, 04:38 PM
            2 responses
            16 views
            0 likes
            Last Post Alaina19  
            Working...
            X