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