• 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 U0000999, Today, 05:17 AM
              0 responses
              3 views
              0 likes
              Last Post U0000999  
              Started by Prataturry89, Today, 03:40 AM
              0 responses
              5 views
              0 likes
              Last Post Prataturry89  
              Started by UltraFastKetoBoost28, Today, 02:43 AM
              0 responses
              6 views
              0 likes
              Last Post UltraFastKetoBoost28  
              Started by kojakojids, Today, 02:04 AM
              0 responses
              5 views
              0 likes
              Last Post kojakojids  
              Started by pitifak, Today, 01:01 AM
              0 responses
              4 views
              0 likes
              Last Post pitifak
              by pitifak
               
              Working...
              X