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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      61 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X