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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            153 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            305 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            244 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            345 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            176 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X