![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Sorry. Not sure I follow. OnConnectionStatus() will not do anything with the messages from MBT unless it has to do with connecting.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Unfortunately it is currently not supported. Thanks for the suggestion though. I will forward it to development.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Sounds good.
Thanks
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |