Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Issue with NTClosePosition

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

    Issue with NTClosePosition

    In TS I am trying to use the function NTClosePosition as:

    Success = NTClosePosition(AcctName);

    where AcctName is a string and I am begin told that the function has no inputs, yet your doc defines it as...

    int NTClosePosition(string account)
    Closes the selected instrument/account position. A return value of 0 indicates success and -1 indicates an error. Success indicates success in submitting the command NOT that the position has in fact been closed.

    What is going on?

    #2
    This is a bug in the NTClosePosition implementation for TS. We will fix that for next NT6.5 update. Thanks for pointing that out.

    For now you can use
    NTCommand("ClosePosition", <your-account-or-blank-string-for-ATI-default-account>, "", 0, "", 0, 0, "", "", "", "", "");

    Comment


      #3
      may I ask, is NT6.5 forth coming or is it a few months off still?

      Comment


        #4
        Next beta will be available in ~2 weeks.

        Comment


          #5
          Hi Dierk, thanks for the help these past few days.

          While you have added the fix for the NTClosePosition function, can you please take a look at this fix also, the OrderID doesn't seem to update in the NAME column of the ORDERS tab of Ninja and also and more importantly in the NAME column in the EXECUTION Tab. The LOG also has the NAME as null.


          When we are in email mode the orderID populates the Name field of the LOG window, but in dll mode which we are using the NAME field everywhere is null.

          This is imperative to get right as this is our audit of the order flows.

          TIA.

          Comment


            #6
            Thanks for your suggestion. We'll add it the list of possible future enhancements.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bortz, 11-06-2023, 08:04 AM
            47 responses
            1,605 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            13 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X