Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Loss between 2 separate strategies

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

    Stop Loss between 2 separate strategies

    Hello

    I am using a pre-built strategy from ninjatraderecosystem. but it doesn't have a stop loss parameter that I need.
    So I tried creating another Stop_Loss_Strategy in the strategy builder:
    I gave it an input and used the condition IF the Unrealized PnL is Great Equal to my input => Do the following Exit Long position.

    Now I have both strategies running on the chart, but when the condition is met, my Stop_Loss_Strategy execute but it doesn't Exit Long position for the first strategy.
    it is like the two strategies are not linked, so they are excuting separately from each other.

    How do I make my Stop_Loss_Stragey affect the trades from my first strategy?

    Note: my first strategy is based on ninjascript not strategy builder.

    #2
    Hello onlinebusiness,

    Each strategy is isolated so you won't be able to accurately control another strategies position from a second strategy. You will need to contact the vendor of the strategy you imported to have it modified to support stoploss orders.

    Comment


      #3
      Hello NinjaTrader_Jesse

      Thanks for your reply.

      I think it is possible for a stop loss strategy to control another strategy trades. this Equity Guard strategy from bcomas does exactly that.

      But this equity guard stratgy doesn't allow more trades to happen after stop loss is executed, it disables all running strategies. that's not what I want, I just want to exit the current trades and keep the strategy enabled for next trades.

      Can you think of any way around this?

      Comment


        #4
        Hello onlinebusiness,

        Its not supported for one strategy to control another strategies orders or positions, they are intentionally not linked and won't speak to each other.

        While it may be possible using unsupported code for strategies to work in tandem that is not something we would suggest. The only suggestion that I can make here is to contact the vendor to have the item updated so it works as you wanted to place stops.

        When a strategy enters a position it also needs to plan the exit such as stops or exits. If you exit that position using another strategy or manually its internal tracking can't keep track you closed the position. If you randomly close a position using another script the strategy that made that position will still think its in a position. That is going to derail the strategies logic so I wouldn't be able to suggest any means to manage its position from another script.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X