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 maybeimnotrader, Today, 05:46 PM
              0 responses
              6 views
              0 likes
              Last Post maybeimnotrader  
              Started by quantismo, Today, 05:13 PM
              0 responses
              6 views
              0 likes
              Last Post quantismo  
              Started by AttiM, 02-14-2024, 05:20 PM
              8 responses
              166 views
              0 likes
              Last Post jeronymite  
              Started by cre8able, Today, 04:22 PM
              0 responses
              8 views
              0 likes
              Last Post cre8able  
              Started by RichStudent, Today, 04:21 PM
              0 responses
              5 views
              0 likes
              Last Post RichStudent  
              Working...
              X