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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    388 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    259 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    218 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    301 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    268 views
    0 likes
    Last Post CarlTrading  
    Working...
    X