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:	82
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 NullPointStrategies, Today, 05:17 AM
    0 responses
    20 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X