PDA

View Full Version : Getting Ready To Go Live


darckeen
05-06-2009, 02:09 AM
Hey Ya'll,

I'm getting ready to test my strategy live and I have to address some problems before hand. Was wondering if anyone had some insight as to address some of my anticiapted issues.

1) How does NT handle broker connect errors? If the broker data feed fails what is going to happen to a strategy that is running off that feed? Would the result be any different if running RealtimeErrorHandling = RealtimeErrorHandling.TakeNoAction?

2) What the best way to have persistant variables within NT? Main application would be for money management system that needs to have access to persistant performance results between NT start-ups.

3) Anyway to send text messages to a cell phone from within NT? Would be nice to be able to know if I need to check on a position when the strategy encounters an error.

NinjaTrader_Bertrand
05-06-2009, 07:57 AM
Hi darckeen,

1. The strategy would be terminated in this case. With RealTimeErrorHandling set to TakeNoAction you could define your own error handing for this scenario, like which orders to send if reconnection is established. Please be aware that setting this to TakeNoAction can have serious impacts and this is offered for advanced programmers only.

2. Not sure I follow, unfortunately you can't access your live account at this point from within NinjaScript.

3. You can use SendMail() and then use a provider that converts those emails to text messages for your cellphone to be alerted.

darckeen
05-06-2009, 10:19 AM
For 2) I would like the system to be able to know how it has been performing. The result should be based on performance since inception which would involve NT being shut down and restarted and still have the same results for its performance. I guess since I can't access broker account data from within NT I need to record the info myself outside NT.

NinjaTrader_Bertrand
05-06-2009, 10:27 AM
For this you can then work with the Performance class - http://www.ninjatrader-support.com/HelpGuideV6/Performance.html

Here's a reference sample introducing this - http://www.ninjatrader-support2.com/vb/showthread.php?t=4084