Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit Strategy with no Entry

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

    Exit Strategy with no Entry

    Hi,

    Is it possible to program a strategy to only exit orders that are currently in position without the exit referring to a position that the strategy its self opened? Like, if I manually open a long trade and only want the strategy to exit all or a certain amount of it, can it do that? In the order management tab (using the wizard here) it gives the option to Exit Long Position, but it requires From Entry Signal and won't just exit what is open from manual orders.
    I can work around this by setting a condition along with the parameters for exit, that if market position is Long then Flatten... but I don't see an option in Order Management that says Flatten Everything. Is there a way to do this, or just simply have the strategy exit Long even if it its self never entered Long (but rather you did manually) ?

    Thank you very much.

    #2
    Hello werido,

    NinjaScript strategies automate entries and exits both so unfortunately you won't be able to exit a position that wasn't opened by the strategy.

    With a managed strategy it will require that a position is open by the strategy (either virtual or actual), before it submits orders attached with an Exit statement.

    You may consider using the unmanaged system, which you can use to submit the order you want without the strategy requiring entry / exit pairing.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Is there no way to Flatten Everything in a strategy?

      Comment


        #4
        There is no supported way to flatten everything in a strategy. I would review the undocumented / unsupported thread for hints.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mattbsea, Today, 05:44 PM
        0 responses
        3 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        31 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        2 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,282 views
        0 likes
        Last Post Leafcutter  
        Started by WHICKED, Today, 12:45 PM
        2 responses
        20 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Working...
        X