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

Pushing Data to NT

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

    Pushing Data to NT

    Hello all,

    I'm hoping that one of you has an example of pushing some data to NT. The data I need to push is nothing but a simple object can be a string or integer, but I need NT to be able to receive this data and put it on a stack so that it can be accessed later on a FIFO basis.

    Do any of you have any examples of an indicator doing this?

    The application pushing data to NT would reside on the same machine, so IPC is an option. I appreciate any input, it would be ideal to just be able to send generic data using NT's DLL interface but I don't believe that is possible unless there is some sort of un-documented method.

    I appreciate your input.

    Dave

    #2
    Hello,

    As you probably know, this is beyond our level of support. Lets see if another trader/programmer can help you.
    DenNinjaTrader Customer Service

    Comment


      #3
      Pushing data to Ninja

      As an exercise I have managed to get Ninja to output text on a chart which is entered into a Windows Form This was done in the following manner.

      A Windows form was constructed using Visual Studio and placed in the Ninja7/bin/Custom directory. A reference was added to the dll and a using statement added to a strategy.

      The data was picked up by the following line in on bar update

      FormTest = inputOutputForm.Controls["textBox5"].Text;

      FormTest being a string declared in variables and ["textBox5"] being the relevant textBox on the Windows form.

      The text is output on a Ninja Chart using the following line in onbar update

      DrawText("test", FormTest, 20, Close[0], Color.Black);

      I am sure there are much better ways of doing this etc, but maybe this will give you some ideas.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mestor, 03-10-2023, 01:50 AM
      16 responses
      388 views
      0 likes
      Last Post z.franck  
      Started by rtwave, 04-12-2024, 09:30 AM
      4 responses
      31 views
      0 likes
      Last Post rtwave
      by rtwave
       
      Started by yertle, Yesterday, 08:38 AM
      7 responses
      29 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by bmartz, 03-12-2024, 06:12 AM
      2 responses
      22 views
      0 likes
      Last Post bmartz
      by bmartz
       
      Started by funk10101, Today, 12:02 AM
      0 responses
      7 views
      0 likes
      Last Post funk10101  
      Working...
      X