Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT closing positions rules

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

    NT closing positions rules

    Dear NT Support:

    If I place a long (short) order while a short (long) order is open does NT also send a close position order to complete the flip? Can I disable this? I am already handling the exit but NT is doubling on me, not sure what's generating the double. The order description is just "Close position" which is nowhere in my code.

    Thanks!

    #2
    Hi entropy,

    Yes, enter statements will reverse a position, and will indicate separately close position and the name of the enter rule as two separate items. They'll take care of the closing and opening order in the opposite direction.

    If you don't want this behavior, you can add a market position check to your entries, to check that you are flat before submitting the order.

    if (Position.MarketPosition == MarketPosition.Flat)
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by entropy View Post
      Dear NT Support:

      If I place a long (short) order while a short (long) order is open does NT also send a close position order to complete the flip? Can I disable this? I am already handling the exit but NT is doubling on me, not sure what's generating the double. The order description is just "Close position" which is nowhere in my code.

      Thanks!
      That is the behavior if you are using Market Orders. You can try to use Limit Orders instead, but that opens a whole new can of worms.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by srbdoc, Today, 04:36 PM
      1 response
      32 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jimmy12, 01-02-2023, 05:06 PM
      3 responses
      57 views
      0 likes
      Last Post jimmy12
      by jimmy12
       
      Started by tommmm, 02-27-2019, 05:19 AM
      4 responses
      803 views
      0 likes
      Last Post akaSurreal  
      Started by TallTim, Today, 06:13 AM
      2 responses
      39 views
      0 likes
      Last Post TallTim
      by TallTim
       
      Started by givemefood, Today, 06:09 PM
      0 responses
      29 views
      0 likes
      Last Post givemefood  
      Working...
      X