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 sjsj2732, Yesterday, 04:31 AM
            0 responses
            22 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            280 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            279 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            130 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            90 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X