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 09-12-2008, 02:29 PM   #1
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default OnConnectionStatus() Event

I am using NT with MBTrading as my broker. Sometimes MB will send out a message and NT will create a dialog box with that message to alert the user. These messages are also created in the Log Tab.

Is there any way to capture these events from within NinjaScript, and parse the message that is sent? I know for connects / disconnects i can use the OnConnectionStatus() event, but can I reference the particular message sent for connect / disconnects?

Thanks
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 09-12-2008, 02:41 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Sorry. Not sure I follow. OnConnectionStatus() will not do anything with the messages from MBT unless it has to do with connecting.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-12-2008, 03:01 PM   #3
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

hey josh.maybe no that connectionstatus event in particular, but is there a way to get these messages in ninja script? the reason i ask is bc sometimes i get a message to restart the MB navigator but my computer is trading autonomously. i want to catch this and send an email to myself.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 09-12-2008, 03:06 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Unfortunately it is currently not supported. Thanks for the suggestion though. I will forward it to development.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-12-2008, 09:49 PM   #5
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

Sounds good.

Thanks
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik 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
OnTimer event trock168 Automated Trading 20 05-03-2011 10:19 AM
MouseMove event cls71 General Programming 34 11-24-2010 06:44 AM
Mouse Event shortorlong Charting 3 07-26-2008 11:59 AM
OnConnectionStatus funky_boy Strategy Development 17 07-22-2008 05:30 AM
OnConnectionStatus() method Aussie2 General Programming 1 12-19-2007 11:57 PM


All times are GMT -6. The time now is 06:51 AM.