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