NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-19-2009, 12:19 PM   #1
davewolfs
Member
 
Join Date: Jul 2008
Posts: 80
Thanks: 0
Thanked 0 times in 0 posts
Default 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
davewolfs is offline  
Reply With Quote
Old 12-19-2009, 04:58 PM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

As you probably know, this is beyond our level of support. Lets see if another trader/programmer can help you.
NinjaTrader_Ben is offline  
Reply With Quote
Old 12-21-2009, 10:01 AM   #3
MicroAl
Senior Member
 
Join Date: Jan 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
Default 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.
MicroAl is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Best Data Provider for NT soyjesus Market Analyzer 13 03-14-2013 10:14 AM
NT not receiving all data Darth-Trader Charting 1 10-14-2009 09:14 AM
Historic data for NT MightyM Miscellaneous Support 0 03-26-2009 09:19 AM
Is NT interested in Tenfore for data? FWIW, DTN resells Tenfore's FX data. bluelou Miscellaneous Support 3 02-18-2009 02:37 PM
building own continuous chart in NT (Data Storage and backfill in NT) Rocket130713 Automated Trading 3 08-25-2008 10:36 PM


All times are GMT -6. The time now is 08:26 PM.