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:	111
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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    57 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    39 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    45 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    35 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    153 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X