Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Managed orders based on dynamic variables?

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

    Managed orders based on dynamic variables?

    Hi,
    I have defined TP and Stops as shown in the screenshot. The variables TPLong, TPShort, StopLong, StopShort take on the absolute price values for targets and stops in the conditions upon entry. However, both stops and targets are not executed when I test this strategy. What am I missing? Is it not possible to define the managed targets and stops based on variables?
    Click image for larger version

Name:	image.png
Views:	106
Size:	27.3 KB
ID:	1336340

    #2
    Hello philmg,

    Thank you for your post.

    Dynamic stops and targets are not possible using the Strategy Builder's Stop and Targets screen. These are meant for static stops and targets.

    If you wanted to use dynamic stops and targets in the Builder, you'll need to use exit methods. Below is a link to examples of dynamic breakeven and trailing action implemented in the Strategy Builder.

    https://ninjatrader.com/support/forum/forum/suggestions-and-feedback/suggestions-and[…]3992-request-breakeven-functions-in-strategy-builder?p=806596

    Or, if you want to stick to using set methods dynamically, you would need to unlock the script and call your set methods from OnBarUpdate() via manual coding. Below is a sample script that demonstrates.

    https://ninjatrader.com/support/help...of_stop_lo.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    160 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    81 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    125 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    206 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    184 views
    0 likes
    Last Post CarlTrading  
    Working...
    X