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 mattbsea, Today, 05:44 PM
            0 responses
            2 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            31 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            2 views
            0 likes
            Last Post tkaboris  
            Started by GussJ, 03-04-2020, 03:11 PM
            16 responses
            3,281 views
            0 likes
            Last Post Leafcutter  
            Started by WHICKED, Today, 12:45 PM
            2 responses
            19 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Working...
            X