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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            65 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            41 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            23 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            26 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            52 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X