Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Stop updating

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

    Stop updating

    Click image for larger version

Name:	Untitled.png
Views:	164
Size:	122.3 KB
ID:	1178021
    How do you update your stop once price has gone a little into profit?
    I think my action order is lacking.

    It should be like:
    On entering long:
    Stop_Trigger = (Close[0] + (Trail_Trigger * TickSize)) ;

    On market data update:
    Stop_Price = (marketDataUpdate.Price - (Trail_Size * TickSize)) ;
    SetStopLoss("", CalculationMode.Price, Stop_Price, false);
    but is there any way to do it in the strategy builder? without having to unlock and code it? Thanks

    #2
    Hello ezrollin,

    Thanks for your post.

    Yes, you can do this in the Strategy builder but you cannot use the Set methods as they are fixed at the time the strategy is applied (meaning they cannot be set dynamically). You would have to use Stop and Limit type orders for the stoploss and profit target.

    Please see this example of a trailing stop by my colleague Chelsea: https://ninjatrader.com/support/foru...der#post806596
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:10 AM
    0 responses
    6 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by TradeForge, Today, 02:09 AM
    0 responses
    11 views
    0 likes
    Last Post TradeForge  
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    5 views
    0 likes
    Last Post gentlebenthebear  
    Working...
    X