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:	94
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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 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