Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Will strat "ExitLong" a position it didn't open?

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

    Will strat "ExitLong" a position it didn't open?

    I have a strategy that will not place orders on historical bars. If I start the strategy during a period in which it is long, and it wants to exit that position with "ExitLong", what will happen? Will it put me short or does it know that it never actually placed that long? I know what must be done in either case, I just need to know if I need more code.

    This is probably basic stuff that I can find by rooting around the forum but I NEEEEED some sleep..

    thx in advance

    #2
    TikDaddy, welcome to our forums here - ExitLong() is ignored if there's no strategy position to exit from - http://www.ninjatrader-support.com/H.../ExitLong.html

    For starting up correctly, synching your account to the strategy position is also of consideration -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X