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

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.
    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.
            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 jclose, Today, 09:37 PM
              0 responses
              4 views
              0 likes
              Last Post jclose
              by jclose
               
              Started by WeyldFalcon, 08-07-2020, 06:13 AM
              10 responses
              1,413 views
              0 likes
              Last Post Traderontheroad  
              Started by firefoxforum12, Today, 08:53 PM
              0 responses
              9 views
              0 likes
              Last Post firefoxforum12  
              Started by stafe, Today, 08:34 PM
              0 responses
              10 views
              0 likes
              Last Post stafe
              by stafe
               
              Started by sastrades, 01-31-2024, 10:19 PM
              11 responses
              169 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X