Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ExitShort not working

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

    ExitShort not working

    I entered short with name "FiboShort" on a multi time frame strategy (NT 7.0.1000.4). Entry is on BarsInProgress = 1.
    I want to exit position if actual close is above previous close for this i called
    ExitShort( "FiboShort" ), but order is ignored with following message

    FromEntrySignal='FiboShort' Reason='This was an exit order but no position exists to exit'

    see attached log file

    In Control Panel there is one position
    Attached Files

    #2
    Hello,

    Thanks for the forum post.

    When you are calling ExitShort() is it also in BarsInProgress==1 or a different BarsInProgress?

    Also, I'm seeing something in the output window that looks off:

    16.03.2011 12:06:00 Entered internal PlaceOrder() method at 16.03.2011 12:06:00: BarsInProgress=1 Action=Sell OrderType=Market Quantity=0

    See how the QTY is == 0? Finally, The document you included the first entry from the output window is the first time it tried to exit. I need you to post the lines so that I can see the position it was in before it tried to exit.

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thank you Brett,
      i found my error (copy paste error) . I called ExitLong instead of ExitShort

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, Yesterday, 01:02 PM
      0 responses
      29 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      21 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      160 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      95 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      148 views
      2 likes
      Last Post CaptainJack  
      Working...
      X