Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

where OnConnectionStatusUpdate() should be putted?

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

    where OnConnectionStatusUpdate() should be putted?

    Hi,

    where OnConnectionStatusUpdate() should be putted?

    should it be put first? before everything? when a connection is lost, I want to make it reload historical data so I wont have data gap, as I currently have.

    thank you.

    #2
    Hello zoharcho,

    Thank you for your reply.

    There's not a specific order it needs to be in, it just needs to be somewhere inside the strategy class.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi, I used the code in the documentation to reload all data when reconnect, and this error happened:
      look at the picture

      any idea why? seen this before?

      Comment


        #4
        it is also unrepairable, I have to close the chart and open a new one.

        Comment


          #5
          Originally posted by zoharcho View Post
          Hi, I used the code in the documentation to reload all data when reconnect, and this error happened:
          look at the picture

          any idea why? seen this before?
          To which documentation do you refer?

          Who is your data feed provider?
          Did you check the Log tab for any error messages?

          Comment


            #6
            Hello zoharcho,

            Thank you for your reply.

            Do you receive an error in the log tab of the Control Center regarding the strategy? How many days to load do you have on the chart?

            I'm attaching an example that's a modified version of an example I've previously sent you that will reload all historical data after a connection loss - I'd take a look at this and compare to what you've got within your strategy to assess what may have caused the issue.

            Thanks in advance; I look forward to assisting you further.
            Attached Files
            Kate W.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by bltdavid View Post

              To which documentation do you refer?

              Who is your data feed provider?
              Did you check the Log tab for any error messages?
              this document: https://ninjatrader.com/support/help...ime_vs_bac.htm

              IB is the provider

              Yes, Log tab show just connection lost, not something special

              Comment


                #8
                Originally posted by NinjaTrader_Kate View Post
                Hello zoharcho,

                Thank you for your reply.

                Do you receive an error in the log tab of the Control Center regarding the strategy? How many days to load do you have on the chart?

                I'm attaching an example that's a modified version of an example I've previously sent you that will reload all historical data after a connection loss - I'd take a look at this and compare to what you've got within your strategy to assess what may have caused the issue.

                Thanks in advance; I look forward to assisting you further.
                Hi, thanks, it is pretty much the same code, just without the not to trade addition.
                I had configured 15 days back.
                I think I will live with the possibility of data gap, because I have seen that the reload history function seemed to mess up things...

                charts with a 15 days back and 2min /3min was able to load properly. if you have any data about what are the limitation on those things it will be great.

                Comment


                  #9
                  Hello zoharcho,

                  Thank you for your reply.

                  There's not a solid limit for how many days to load you can do on your charts other than how far back your data provider has historical data available. That being said, the less days you're loading, the faster data will be able to be reloaded and the less performance impact there will be on the platform. This is especially true on tick based charts like renko charts - since these are built from ticks the amount of data to be reloaded would be much greater than, say, a daily chart where there's one bar per day. Depending on your PC hardware, the impact of loading historical data may vary.

                  Please let us know if we may be of further assistance to you.
                  Kate W.NinjaTrader Customer Service

                  Comment


                    #10
                    Thank you Kate,

                    I have a little issue here which I have no idea why:

                    I am putting a stop order using the chart trader in ninjatrader and I am trying to use the feature of the "attach to indicator"
                    but for some reason it is colored grey (both the enabled and properties)

                    Comment


                      #11
                      Hello zoharcho,

                      Thank you for your reply.

                      I've seen this happen from time to time with Interactive Brokers - if you disconnect from your IB connection and reconnect, do you see the option available?

                      Thanks in advance; I look forward to assisting you further.
                      Kate W.NinjaTrader Customer Service

                      Comment


                        #12
                        No, I closed Ninjatrader, and it still didnt work.



                        2 days ago when I was on version 980.4i it worked well.

                        today I changed it to the recommended version and it doesn't work
                        as you can see in the picture. I don't know if it is related.

                        seemed this problem exist since 2018:
                        https://ninjatrader.com/support/foru...-3#post1039547


                        let me know what you think, thanks in advance.

                        Comment


                          #13
                          Hello zoharcho,

                          Thank you for your reply.

                          Please restart your PC, then restart NinjaTrader and TWS and test. I'm unable to reproduce this reliably, so it's likely an issue with the connection either between IB and their servers or IB > NinjaTrader.

                          Thanks in advance; I look forward to assisting you further.
                          Kate W.NinjaTrader Customer Service

                          Comment


                            #14
                            Ok, thank you

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by RobotSyndicate, Today, 04:27 AM
                            0 responses
                            4 views
                            0 likes
                            Last Post RobotSyndicate  
                            Started by Ray12345, Today, 04:10 AM
                            0 responses
                            4 views
                            0 likes
                            Last Post Ray12345  
                            Started by Behungr101, Today, 02:16 AM
                            1 response
                            8 views
                            0 likes
                            Last Post NinjaTrader_Jason  
                            Started by omermirza, Yesterday, 08:37 PM
                            2 responses
                            12 views
                            0 likes
                            Last Post NT-Roland  
                            Started by aelagha, Today, 01:28 AM
                            1 response
                            12 views
                            0 likes
                            Last Post NinjaTrader_Jason  
                            Working...
                            X