Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

what is the functionality of Close button in Chart Trader.

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

    what is the functionality of Close button in Chart Trader.

    Hi,
    Would you please help me to understand functionality of close button in Chart Trader (Attachment)?

    #2

    Hello bosajin,




    Thank you for contacting NinjaTrader.

    In all NinjaTrader order entry windows there are CLOSE action buttons which will close a position or an ATM Strategy depending on which mouse button is pressed (the left mouse button will close the current position and cancel any working orders associated with the instrument/account combination and the middle mouse button (scroll wheel) will close the selected active ATM Strategy position only).

    When a position or ATM Strategy position is closed, NinjaTrader goes through the following process: (Assume we are long on the S&P E-mini contract at an entry price of 1000.)

    1.Identify the active account and instrument

    2.Send cancellation requests for any open orders on the active instrument/account

    3.Wait up to five seconds for cancellation confirmations from the connected brokerage

    4.After receiving confirmation for all cancellation requests, send an offset order to close any open position (For example, a Buy order for 3 contracts would be sent to close an open short position of 3 contracts)




    Please let us know if we may be of further assistance.

    Comment


      #3
      Hi Givovanna,

      Thanks for reply.

      I am developing a strategy,I need the exact same functionality before open new position(close all working positions).
      Would you please provide me a sample code to do all those things.


      Comment


        #4
        Good discussion on proper way to go flat is here.

        Even though it is NT7, I believe the same concepts apply to NT8.

        Comment


          #5
          Hello bosajin,


          Thanks for the note.


          The example forum post that bltdavid linked is certainly a good one to look at and it is true that the same concepts will apply to both NinjaTrader 7 and NinjaTrader 8.


          Please let us know if you have further questions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by WHICKED, Today, 12:56 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cre8able, Today, 01:16 PM
          0 responses
          2 views
          0 likes
          Last Post cre8able  
          Started by chbruno, 04-24-2024, 04:10 PM
          2 responses
          47 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by WHICKED, Today, 12:45 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by samish18, Today, 01:01 PM
          0 responses
          6 views
          0 likes
          Last Post samish18  
          Working...
          X