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).

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,234 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            1 view
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            6 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,414 views
            0 likes
            Last Post Traderontheroad  
            Started by firefoxforum12, Yesterday, 08:53 PM
            0 responses
            11 views
            0 likes
            Last Post firefoxforum12  
            Working...
            X