Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tracking ATM orders in an Indicator

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

    Tracking ATM orders in an Indicator

    Hello,

    in OnOrderUpdate in an indicator.....

    is there a way to know if the order (including profit targets, stops, trailing stops) are from an ATM?

    (and not for example from a managed or unmanaged order?)

    thx

    #2
    Hello llanqui,

    Thanks for your post.

    You could consider tracking orders of an ATM Strategy from account level OrderUpdate events.

    The first stop order submitted with an ATM Strategy will have an Order.Name of "Stop1". The second stop order submitted with an ATM Strategy will have an Order.Name of "Stop2", and so on. The first target order submitted with an ATM Strategy will have an Order.Name of "Target1". The second target order submitted with an ATM Strategy will have an Order.Name of "Target2" and so on.

    See the help guide documentation below for more information.
    Account: https://ninjatrader.com/support/help...ount_class.htm
    OrderUpdate: https://ninjatrader.com/support/help...rderupdate.htm

    While undocumented/unsupported, GetOwnerStrategy() can be used to retrieve an ID.
    Below is a link to a forum post.
    https://ninjatrader.com/support/foru...21#post1085921
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      yes, would track with account onorderupdate

      question: the trailing stops would also be Named "StopX"?

      Comment


        #4
        Hello llanqui,

        Thanks for your notes.

        This is correct. ATM Strategy stop losses that use an 'Auto Trail' option for trailing the stop loss will also have a name of "StopX" where "X" is the number of the stop order.

        For example, "Stop1" for the first stop submitted, "Stop2" for the second stop submitted, and so on.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Hmmm...it appears that OrderEventArgs does not include Name????

          Comment


            #6
            My mistake...there is an Order.Name

            thx

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            557 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X