• 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

Order function question

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

    Order function question

    This may be a stupid question but I'd like to confirm something.

    As I understand it, the length of the Order string returned from the Orders function should remain the same unless some new order has been placed via the ATI.

    To ensure efficiency, my plan is to do a check of the current Order string length against the previous length. If it's the same, then no need to do anything right? If there is a change, then, then my code needs to call the OrderStatus function for each OrderID within the Order string.

    Any reason not to implement as described above?

    #2
    imported post

    Your logic would seem correct.

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      It's getting down to the nits for me in working through my custom developed interface from NeoTicker to Ninja Trader.

      I'm having a problem with the Orders( account ) function. It's not working for me and I can't see that it's my problem. Every other NJ function I've used works fine but not the Orders function.

      I've been trying to think of the best way to get this to you. My code is written in Delphi. I will email you the function I'm having trouble with in calling the Orders function.

      Comment


        #4
        imported post

        Dierk is travelling today and will return from vacation tomorrow.
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          Got my call to the Orders function to work. Had to do with the way that Delphi works with strings with DLLs.

          Dierk:

          Could you look over the post that initiated this thread?

          The question there was this: To reduce needless parsing of the string returned by the Orders function am I safe in assuming that if that string length has not changed that there is no need to parse it again?

          Thanks for all your recent help!

          Comment


            #6
            imported post

            Hmmm .. could be.

            However, simple string comparision would do the job as well. In any programming language I know off calculating the string length is not significantly more efficient than doing a string comparison (at least not noticible).
            DierkNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by iq200, 03-11-2018, 07:49 PM
            24 responses
            1,004 views
            0 likes
            Last Post mrlucky1x  
            Started by DavidHP, Today, 08:18 PM
            0 responses
            1 view
            0 likes
            Last Post DavidHP
            by DavidHP
             
            Started by liquid150, Today, 06:20 AM
            1 response
            10 views
            0 likes
            Last Post User1104  
            Started by liquid150, Today, 06:22 AM
            1 response
            17 views
            0 likes
            Last Post lexusfood  
            Started by geo9419, 05-09-2019, 02:39 PM
            9 responses
            320 views
            1 like
            Last Post jgoarm
            by jgoarm
             
            Working...
            X