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 funk10101, Today, 09:43 PM
        0 responses
        4 views
        0 likes
        Last Post funk10101  
        Started by pkefal, 04-11-2024, 07:39 AM
        11 responses
        36 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Yesterday, 08:51 AM
        8 responses
        44 views
        0 likes
        Last Post bill2023  
        Started by yertle, Today, 08:38 AM
        6 responses
        26 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        24 views
        0 likes
        Last Post algospoke  
        Working...
        X