Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninjatrader is closing out trades on its own

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

    Ninjatrader is closing out trades on its own

    I just started trying to learn the Ninjatrader code and setting up a strategy using the wizard, i have been just trying out different things to see what they would all do...my question is, is there some sort of default "safe" code built in that automatically closes out a trade after a certain amount of "loss"? (I'm only using historical data) B/c in my strategy i have only one condition on which it can exit a short (which is all i've been looking at) and I am using no stop loss, to help me c where this condition is met i have the bar painted yellow...well if the program has only one exit short command and it's at a yellow bar then why do i have several "Exit on close" positions on my graph that are not at yellow bars? I uploaded a screenshot to hopefully clarify any confusion on what i said.

    Thanks in advance to whoever can clarify/help me!
    Attached Files

    #2
    Hello tlittle187,

    Thanks for your post and welcome to the forums!

    By default a strategy will be set to "Exit On Close", this refers to closing all strategy trades/positions at the end of a session as defined by the session template used in the instrument.

    The Exit On Close setting can be found in the strategy panel when you apply the strategy to a chart. It is in the "Order Handling" section of parameters. When "Exit On Close" is set to true then the "Exit on close seconds" is used to have the strategy exit x seconds before the end of the session.

    For further clarity, please see the helpguide: http://ninjatrader.com/support/helpG...xitonclose.htm
    http://ninjatrader.com/support/helpG...oseseconds.htm

    This link will show you all of the strategy parameters: http://ninjatrader.com/support/helpG...t_strategy.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Awesome, thx so much for the help...i figured it was something simple like that but google turned up nothing and i didn't know exactly what i was looking for...thx again!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by stafe, 04-15-2024, 08:34 PM
      11 responses
      57 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by pechtri, 06-22-2023, 02:31 AM
      5 responses
      115 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Tim-c, Today, 03:54 AM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by FAQtrader, Today, 12:00 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by gnocchi, Today, 11:56 AM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Working...
      X