Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

profit trigger and new profit target

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

    profit trigger and new profit target

    i'm trying to have a stepped stop loss. i have a profit target of 60 and a stop loss of 10. when the price of the contract hits a plus 12 i want the stop loss to move to a plus 2, essentially a new profit target. and, when the price of the contract hits a plus 20 i want the stop loss to move to a plus 10, essentially a new profit target. and, when the price of the contract hits 25 i want the stop loss to move to a plus 15, essentially a new profit target. what might this look like in code?

    #2
    Hello SteveReiza,

    Thanks for your notes.

    It seems like you want to implement a trailing stop loss in your strategy.

    You can use exit order methods and adding coding logic in the Strategy Builder to accomplish this goal. Please note that you would not be able to use the exit methods and the stops in the stop and targets window as that creates a violation of the managed approach internal order handling rules, linked here: https://ninjatrader.com/support/help...d_approach.htm

    My colleague Chelsea has created educational examples of strategy builder breakeven and trailing stop in the strategy builder here:

    https://ninjatrader.com/support/forum/forum/suggestions-and-feedback/suggestions-and-feedback-
    aa/103992-request-breakeven-functions-in-strategy-builder#post806596

    If you want a trailing profit target, you could implement similar logic see the "TrailBuilderExample_NT8" reference sample on the forum thread linked above to move your profit target.​
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      sweet, thanks! that should help the vendor. i have enough to give them with that.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      173 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      90 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      129 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      208 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      186 views
      0 likes
      Last Post CarlTrading  
      Working...
      X