Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Script ordering

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

    Script ordering

    Hi, can the following only be used in strategies, and not indicators?

    EnterLongLimit
    EnterShortLimit
    SetProfitTarget
    SetStopLoss

    #2
    Hello shildebrand324,

    Thanks for your post.

    Managed Approach order methods are only available in a NinjaScript strategy. You would not be able to use Managed Approach order methods in a NinjaScript indicator.

    To place orders using an indicator you would need to access the Account class and use <Account>.CreateOrder() to create an order and <Account>.Submit() to submit the order.

    See the help guide documentation below for more information.
    Account class: https://ninjatrader.com/support/help...ount_class.htm
    CreateOrder: https://ninjatrader.com/support/help...reateorder.htm
    Submit: https://ninjatrader.com/support/help...nt8/submit.htm

    Let us know if we may assist further.
    <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
      Thank you.

      Comment


        #4
        Is there an example using Submit with an ATM?

        Comment


          #5
          Hello shildebrand324,

          Thanks for your note.

          Atm Strategy methods are only available for use with NinjaScript strategies and could not be used in an indicator to submit orders with an Atm strategy template attached. This could be seen in the Strategy section of the help guide under Atm Strategy Methods.

          To submit orders with an Atm strategy template applied, you would need to create a NinjaScript strategy instead of an indicator.

          See this help guide about Atm Strategy Methods: https://ninjatrader.com/support/help...gy_methods.htm

          Also, see the SampleAtmStrategy script that comes default with NinjaTrader. You could view this script in a New > NinjaScript Editor window.

          This may also be accomplished by creating an AddOn and using the AddOn Approach. See the example script made by my colleague Chelsea in the forum thread linked below.



          Let us know if we may assist further.
          Last edited by NinjaTrader_BrandonH; 02-17-2022, 12:21 PM.
          <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

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X