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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X