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:	98
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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    128 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    65 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    117 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X