Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting Ready To Go Live

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

    Getting Ready To Go Live

    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.

    #2
    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.

    Comment


      #3
      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.

      Comment


        #4
        For this you can then work with the Performance class - http://www.ninjatrader-support.com/H...rformance.html

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

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X