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 swestendorf, Today, 11:14 AM
              0 responses
              1 view
              0 likes
              Last Post swestendorf  
              Started by Sparkyboy, Today, 10:57 AM
              0 responses
              3 views
              0 likes
              Last Post Sparkyboy  
              Started by TheMarlin801, 10-13-2020, 01:40 AM
              21 responses
              3,917 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Started by timmbbo, 07-05-2023, 10:21 PM
              3 responses
              155 views
              0 likes
              Last Post grayfrog  
              Started by Lumbeezl, 01-11-2022, 06:50 PM
              30 responses
              812 views
              1 like
              Last Post grayfrog  
              Working...
              X