Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnExecutionUpdate

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

    OnExecutionUpdate

    Using OnExecution how can I separated the entry order "myentry1" from the associated stoploss or profit target executions which have the same "myentry1" .name? Just want to see the stoploss or profittarget events. Regards

    #2
    Hello elliot5,

    I went ahead and created a new thread for your question as this was not related to the thread you posted in.

    Your orders should not have the same names, if you gave them the same signal names you should change that first to be able to differentiate the orders and have the managed approach work correctly.

    You can find a sample of using OnExecutionUpdate to submit protective orders in the following link. That also shows how to collect the orders as variables. https://ninjatrader.com/support/help...and_onexec.htm

    If you are just trying to observe the orders you can do that without storing variables and just using the passed in execution however the orders would need a meaningful name if you wish to differentiate them.

    I look forward to being of further assistance.

    Comment


      #3
      Hi Jesse - I use different signal names for example "myentryshortday1" and
      "myentryshortday2" for entry and the associated stoploss and profittarget - what I need is to send an email when the stoploss execution alone is triggered. Regards

      Comment


        #4
        Hello elliot5,

        Can you provide more detail about what you need help with here? If the orders have unique names you should be able to differentiate them in OnExecutionUpdate. Did you try something that did not work? If so please provide that so we can better understand what the problem may be.

        If you need to send an email you can use the Share method for that: https://ninjatrader.com/support/help...lightsub=share

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        54 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
        72 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X