Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy builder - trail calculation

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

    strategy builder - trail calculation

    How do I make a trailing stop loss logic that always maintaince xx amount of tick distance from the highest positive tick movement after the order is filled?
    Last edited by parkourbg; 10-01-2023, 05:40 AM.

    #2
    start tracking the highest and lowest prices after the fill. then you can start maintaining a x distance from the highest price.

    Comment


      #3
      Thank you very much for the answer!
      Sadly, I'm pretty new to the NinjaTrader system/coding. Is there any chance you can give me a template for that?

      Comment


        #4
        Hello parkourbg,

        Thanks for your post.

        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
        Please let us know if we may assist further.​
        <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

        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
        127 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