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, 09: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.

        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

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by AlessioCianini12, Today, 01:38 AM
            0 responses
            27 views
            0 likes
            Last Post AlessioCianini12  
            Started by nandhumca, Yesterday, 11:54 PM
            0 responses
            29 views
            0 likes
            Last Post nandhumca  
            Started by nandhumca, Yesterday, 11:51 PM
            0 responses
            28 views
            0 likes
            Last Post nandhumca  
            Started by ezrollin, Yesterday, 11:48 PM
            2 responses
            29 views
            0 likes
            Last Post ezrollin  
            Started by jjanguda, Yesterday, 10:15 PM
            1 response
            28 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Working...
            X