• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sending Buy/Sell signals from a strategy on chart to external application

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

    Sending Buy/Sell signals from a strategy on chart to external application

    Hi,

    I want Ninjatrader to send Buy/Sell signals it generates based on a strategy on the chart to an external application, how can I do it? Is it possible through NTDirect.dll, if yes then a sample would be nice.

    Right now I can send data to NT to show on the chart and it works, the next step is I want to receive buy/sell signals generated from the chart to my application.

    Thanks & Regards,
    RC007

    #2
    Hello RC007,

    An example of sending an order with the NTDirect.dll would be:
    Command("PLACE", "Sim101", "AAPL", "BUY", 1, "MARKET", 0, 0, "GTC", string.Empty, new OrderID(), string.Empty, string.Empty);

    Below I am providing a link with general guidance on the API.
    https://ninjatrader.com/support/foru...442#post514442
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      So is this command has to be placed in the strategy, so that my application reads it? Is my understanding right?

      Thanks & Regards,
      RC007

      Comment


        #4
        Hello RC007,

        From my understanding you are using the ATI with the dll interface with an external application, is this correct?

        If so, there will be no strategy involved. This would be in the code of your external program.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          My requirement is that when a strategy generates a Buy/Sell signal on the chart, Ninjatrader should pass that to my application, right now only my application can call methods to the Ninjatrader. Is this possible?

          Comment


            #6
            Hello RC007,

            The API dll interface does not provide functionality to communicate with running NinjaScripts or access the internal NinjaScript framework.

            Below I am providing a publicly available link to the help guide on the functions available to the dll interface.
            https://ninjatrader.com/support/help.../functions.htm
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              You can do this through the use of a custom dll - use a C# interface and you can communicate to/from the dll from any NinjaTrader strategy.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by superg3, Today, 12:33 AM
              0 responses
              3 views
              0 likes
              Last Post superg3
              by superg3
               
              Started by vppzepuq, Yesterday, 11:28 PM
              0 responses
              1 view
              0 likes
              Last Post vppzepuq  
              Started by Steve L, 05-25-2019, 10:04 PM
              1 response
              6 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by mestril, 05-25-2019, 10:22 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by hir04068, 05-25-2019, 09:29 PM
              7 responses
              21 views
              0 likes
              Last Post hir04068  
              Working...
              X