Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to trail using unmanaged approach

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

    How to trail using unmanaged approach

    How can we trail an existing order by steps. Say every 10 ticks move the stop loss up?

    #2
    Hello ttrader23,

    Thanks for your post.

    The ChangeOrder() method along with custom logic could be used to change the stop loss order.

    You could consider creating a condition that checks if the current Close price (Close[0]) is greater than or equal to the previous Close price plus 10 ticks (Close[1] + 10 * TickSize) to detect if the current close price is 10 ticks greater than the previous close price and call ChangeOrder() within the condition.

    See this help guide page for more information about ChangeOrder(): https://ninjatrader.com/support/help...hangeorder.htm
    <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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X