Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

specific and general question around managed orders

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

    specific and general question around managed orders

    Hi. I'm using managed approach where I generate a number of trades on the same instrument, and simultaneously enter the stop/ target levels for each trade. This is working fine.
    However, ideally I would like to implement trailing stops. Presumably the way to do this is with each bar update, take each individual stop order and update it to reflect the latest price move if appropriate. However, I don't know how to refer back to each Stop Order, as my entry signals identify the stop order based on bar number at time of entry.
    Is there a way just to cycle through all outstanding stop orders without know their specific names? Are you guys aware of more elegant approaches out there to implementing trailing stops on trade by trade basis in the unmanaged framework?
    thanks

    #2
    Hello stewarco,

    You can use SetTrailStop in the managed approach with unique signal names and these will keep the trailing stops separate.

    If you are using the unmanaged approach, you must be able to identify the order.

    You can loop through all the orders on an account, but if you did so, how would you know for any specific order when it needs to trail?

    You would need to either identify the order by signal name / from entry signal, or you would need to store these to an array or list and index them in an intelligent way to know what goes with what.

    Below is a public link to an example of a trailing stop using the unmanaged approach.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    43 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    47 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X