Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Orders via AddOn

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

    Orders via AddOn

    What are the key gotcha's tied to placing orders via an addon?

    #2
    Little to no support in framework for order management.
    If you need advanced order management logic, be prepared to write it yourself.
    (ATM orders are supported, but if you're trying to coordinate w/chart trader controls, your mileage may vary.)

    Same with trade history and trade performance.
    If you need to track PnL closely, be prepared to write it yourself.

    The moral of these missing pieces?
    If you really need those things, you should consider using a Strategy.

    But ...
    If you simply need to 'place an order', you'll probably be fine.

    Last edited by bltdavid; 10-28-2021, 10:28 AM. Reason: Added comment about ATMs.

    Comment


      #3
      thanks bltdavid!

      I noticed the guide was a bit light. I'll just test and iterate my way into it.

      Comment


        #4
        NinjaTrader 8 offers a variety of ways to submit and manage Orders. In increasing amount of effort one might use Strategy Managed Orders, Strategy Unmanaged Orders, AddOn Orders.

        With anything other than Strategy Managed Orders, some significant programming is required to manage Orders effectively. The most effort is required to manage AddOn Orders effectively. Even Strategy Managed Orders require some degree of programming to manage appropriately, although they have many capabilities built-in.

        For AddOn Orders, you will need to build your own handlers for all Order-based events, using the various available Update methods for Orders, Executions, etc, amongst other things. More importantly, if you want to cater for a trader doing anything NT8 can do with Orders (e.g. ChartTrader Orders, other NT8 window Orders, etc), you will probably need some quite sophisticated code to handle such things in the context of the activities within the AddOn itself.

        For example, if you place an Order from the AddOn and the trader then partially or fully closes it from ChartTrader, or the trader adds to it in ChartTrader, should the AddOn recognise and handle that, and if so, how?

        Of course, if the AddOn is only used in "controlled" environments (e.g. the developer is the only user), these considerations may not be necessary … but the unexpected can happen.

        Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment


          #5
          Well said.

          Comment


            #6
            bltdavid and jeronymite,

            Thank you for the helpful information.

            parkinsonbr,

            I wanted to also provide links to the help guide and to an example addon that places orders.
            https://ninjatrader.com/support/help...nt8/add_on.htm
            https://ninjatrader.com/support/help...nt8/submit.htm
            https://ninjatrader.com/support/help...nt8/change.htm
            https://ninjatrader.com/support/foru...720#post820720
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Is there a way to access trades placed by the addon, as a collection of trades similar to the strategy trades collection functionality?

              Comment


                #8
                Hello parkinsonbr,

                Yes you can use the account that you found using the addon to observe its order events or also see the collection of orders/positions.

                https://ninjatrader.com/support/help...ount_class.htm
                https://ninjatrader.com/support/help...rderupdate.htm
                https://ninjatrader.com/support/help...tionupdate.htm
                https://ninjatrader.com/support/help...rs_account.htm
                https://ninjatrader.com/support/help...ns_account.htm
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  Thanks Jesse, I will review

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by KhaosTrader, 01-30-2017, 06:48 AM
                  130 responses
                  5,362 views
                  1 like
                  Last Post toaniel
                  by toaniel
                   
                  Started by Hobbes, Today, 09:33 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post Hobbes
                  by Hobbes
                   
                  Started by mmaruca, Today, 09:28 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post mmaruca
                  by mmaruca
                   
                  Started by amped216, Today, 04:38 PM
                  1 response
                  22 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by xmess7, 11-19-2022, 03:36 PM
                  7 responses
                  49 views
                  0 likes
                  Last Post xmess7
                  by xmess7
                   
                  Working...
                  X