Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop updating

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

    Stop updating

    Click image for larger version

Name:	Untitled.png
Views:	230
Size:	122.3 KB
ID:	1178021
    How do you update your stop once price has gone a little into profit?
    I think my action order is lacking.

    It should be like:
    On entering long:
    Stop_Trigger = (Close[0] + (Trail_Trigger * TickSize)) ;

    On market data update:
    Stop_Price = (marketDataUpdate.Price - (Trail_Size * TickSize)) ;
    SetStopLoss("", CalculationMode.Price, Stop_Price, false);
    but is there any way to do it in the strategy builder? without having to unlock and code it? Thanks

    #2
    Hello ezrollin,

    Thanks for your post.

    Yes, you can do this in the Strategy builder but you cannot use the Set methods as they are fixed at the time the strategy is applied (meaning they cannot be set dynamically). You would have to use Stop and Limit type orders for the stoploss and profit target.

    Please see this example of a trailing stop by my colleague Chelsea: https://ninjatrader.com/support/foru...der#post806596

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X