Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I force a tabbed chart to keep working?

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

    How can I force a tabbed chart to keep working?

    I guess I need to explain this a bit better. As I would also not understand this. So here it comes by giving an example:
    I have multiple timeframes on the ES, like 1 hour, 2 hours, daily, weekly, and when a certain indicator hits a value. it will send this to am API using an HTTP call.

    This works great, and I can collect this data analyze it and do some stuff with it. But......when a TAB is not in focus, the whole program in essence stops until it is back into focus again.

    Now to go around this I would have to open 16 additional charts to keep it working. This is not very effective and a bit messy.

    Is there a way to force a 'sleeping tab' to keep on working?

    Here is a picture of the tabs, to make it a bit more visual:

    Click image for larger version

Name:	image.png
Views:	174
Size:	5.2 KB
ID:	1290312​


    Thanks -- Ronald
    Last edited by tullips; 02-07-2024, 02:06 PM.

    #2
    What is the value of IsSuspendedWhileInactive?

    Comment


      #3
      Hello! Thank you for your post. Is the indicator you are referring to something you created or acquired from a third party?
      Kimberly H.NinjaTrader Customer Service

      Comment


        #4
        I created the indicator, well to be very honest, I am using some of the samples I find or ideas and worked my way into it. To give a simple answer, let's say I am using a simple moving average made by NinjaTrader, and each time it crosses I send a signal to my database (it is not like this, but it is the best way to describe it).

        Now if this is on a tab that is not in focus it will NOT send the signal, but it does so when it is in focus (so I know for sure the indicator is working properly)

        I found out by accident as I was cross-checking and noticed some inconsistencies...

        The link from bltdavid, does not work when using Edge (as most of the links in the forum do, so I try to find stuff by keywords, I think Edge is trying to get all this info into their cloud for their way of exploiting.....well we got the picture...)

        Interestingly enough though my robot, based on an indicator, is working in the background, placing buy and sell orders also when not in focus, so I am a little confused why this is not working....

        Comment


          #5
          Thanks to bltdavid I found the issue, sometimes it is so in your face.....that you overlook it and look for something more complicated. So, thank you, David, appreciated the hint.

          Now I have 24 charts, (4 times 6, 1 for each Index symbol) and my AWS server does not even get stressed...
          Click image for larger version

Name:	image.png
Views:	141
Size:	22.2 KB
ID:	1290407​

          Again, all that helped until now, thank you!! I will return the favor, for sure!!

          Comment


            #6
            Originally posted by tullips View Post
            The link does not work when using Edge (as most of the links in the forum do...)
            Thanks for letting me know about Edge's failure.
            (Chrome also has this problem.)

            That link is 100% correct, and it works just fine ... in Firefox.

            I'll paste what I previously wrote here,

            "The links are valid and properly created.

            Your browser/Windows combination is tickling
            a bug in NT's forum software.

            I've seen the bug manifest in Chrome on
            Windows 7 and Windows 11. I created the
            links by replying on Windows 7 using Firefox.

            Right now as I type this, on Win7, the links work
            fine in Firefox but fail in Chrome -- I can reproduce
            this forum software bug at will on my side.

            After clinking on a link ...
            Look carefully at the address, do you see the
            '.htm' extension in the URL and then garbage
            after that? The forum software has appended
            those garbage characters to the web address.

            See if you can fix the web address by deleting
            the garbage characters.​"


            -=o=-

            I also went on to post this,

            "In Chrome, I hover over the link and Chrome shows me the
            link address in the lower left, and this preview is correct -- but
            when I click on the link, the actual web address that Chrome
            uses shows garbage characters appended.

            Maybe Chrome is doing this, or maybe it's the forum software.

            But the NT forum software has always been crappy, many bugs
            in their forum software (like this one) have been around for years,
            so I'm inclined to think Chrome (with all their testing resources
            and millions of users) is not the problem.​"


            -=o=-

            So, unfortunately, both Edge and Chrome have this same issue,
            which is actually understandable, since Edge is based on the
            same code base as Chrome.

            -=o=-

            In summary, my points are these,

            1. Using Chrome or Edge to click on this link (and other links just like it)
            tickles a bug in the NT forum software. Firefox doesn't show this bug.

            2. The links I create in these forums are always correct, but not always
            up to date. Why? In some older posts the links may become obsolete,
            because sometimes the web pages get moved. But that's not usually
            an issue you'll see when reading extremely recent posts.

            3. If Chrome (and Edge) says the link is not found, it's possible you can
            recognize the crap URL address because of the garbage characters
            appended after the '.htm' extension.

            4. Edit the URL address by deleting those garbage characters after
            the '.htm' extension and the link should work fine.



            Does that help?
            Last edited by bltdavid; 02-08-2024, 07:01 AM. Reason: typos

            Comment


              #7
              Originally posted by tullips View Post
              I found the issue.
              Excellent news!

              May I suggest you study each of the builtin variables that
              most indicators set inside their State.Defaults -- these are
              well documented and each is worth a deeper investigation.

              Just my 2¢.



              Comment


                #8
                Yes I agree to study more about those builtins, and yes, I do try to search using this trick, or I search with the given keyword like you did 'IsSuspendedWhileInactive'

                I am a web developer as well (since 1999) and had my share of 'fixing' stuff. This wrong link issue is not impossible to fix, and if you need help with this just let me know. I know MySQL, SQL Server, php, .net, VueJS, Javascript, blabla and more....I started with ASP in 1999, and had my share of languages as well. And as you were so kind to help me, I can return the favor. I did many times fixes like these, or like encrypted text porting into another encrypted text, etc...

                == Ronald
                Last edited by tullips; 02-08-2024, 08:54 PM.

                Comment


                  #9
                  Originally posted by tullips View Post
                  Yes I agree to study more about those builtins
                  Yes ... yesssss ... gooood, my young Padawan.

                  The Force is strong with you.

                  A master you shall become.

                  Originally posted by tullips View Post
                  This wrong link issue is not impossible to fix, and if you need help with this just let me know.
                  Well, thanks, I would, but, uh ... it ain't up to me.

                  I'm a 'Senior Member' with 3000+ posts (every member
                  becomes 'Senior' after 100 posts, I think) but I don't work
                  for NinjaTrader and have no more control over this forum's
                  software than I do the womp rats back on Tatooine.

                  Bummer, we'll just have to stay inside this galaxy until
                  our Sith Lords fix the power converters on the bad link
                  connector inside the universal subspace transceivers.

                  Hahahhaa hahaha ... heheh ... er, yes, cough-cough.



                  I hope NT's web guys can fix this link problem soon.

                  Comment


                    #10
                    Originally posted by tullips View Post
                    I guess I need to explain this a bit better. As I would also not understand this. So here it comes by giving an example:
                    I have multiple timeframes on the ES, like 1 hour, 2 hours, daily, weekly, and when a certain indicator hits a value. it will send this to am API using an HTTP call.

                    This works great, and I can collect this data analyze it and do some stuff with it. But......when a TAB is not in focus, the whole program in essence stops until it is back into focus again.

                    Now to go around this I would have to open 16 additional charts to keep it working. This is not very effective and a bit messy.

                    Is there a way to force a 'sleeping tab' to keep on working?

                    Here is a picture of the tabs, to make it a bit more visual:

                    Click image for larger version

Name:	image.png
Views:	174
Size:	5.2 KB
ID:	1290312â


                    Thanks -- Ronald
                    Instead of a chart for each timeframe, can't you load the data series into memory of ninjascript and work with it, without having each timeframe on it's own chart?

                    Comment


                      #11
                      Hi backtester831 I got the solution from bltdavid , and this is now working as I was hoping for. The memory and cpu are far within bounds, so all is well now.

                      Thanks -- Ronald

                      Comment


                        #12
                        That is a way to accomplish it, however it is a really messy way of doing things and then i end up with so many chart layouts its nonsensical, that being said maybe i should do that as a stop gap for now....

                        i may end up just doing that and hoping for the real solution in the long run...i already have 6 layouts that i use, the big problem with doing that for me is that i then have to go through and replicate all of the levels on each separate version of the layouts, do you happen to have a solution that would kill that problem? maybe there is something i have missed....




                        In other words for me i have found its like which way do i want to go i have so much stuff going on with the charts that more layouts then loses important info that needs to be replicated, so either replicate tabs, or replicate drawings, thats why i suggested another layer of a global save...9apps apk
                        ​​
                        Last edited by bhaskar56h; 02-12-2024, 08:47 AM.

                        Comment


                          #13
                          Originally posted by bhaskar56h View Post
                          That is a way to accomplish it, however it is a really messy way of doing things and then i end up with so many chart layouts its nonsensical, that being said maybe i should do that as a stop gap for now....

                          i may end up just doing that and hoping for the real solution in the long run...i already have 6 layouts that i use, the big problem with doing that for me is that i then have to go through and replicate all of the levels on each separate version of the layouts, do you happen to have a solution that would kill that problem? maybe there is something i have missed....




                          In other words for me i have found its like which way do i want to go i have so much stuff going on with the charts that more layouts then loses important info that needs to be replicated, so either replicate tabs, or replicate drawings, thats why i suggested another layer of a global save...
                          what does a chart template save?

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Curerious, Today, 08:54 AM
                          4 responses
                          25 views
                          0 likes
                          Last Post Curerious  
                          Started by Adamel, Yesterday, 03:47 PM
                          3 responses
                          26 views
                          0 likes
                          Last Post Adamel
                          by Adamel
                           
                          Started by mmenigma, Today, 08:27 AM
                          4 responses
                          31 views
                          0 likes
                          Last Post mmenigma  
                          Started by philmg, 04-12-2025, 06:35 AM
                          10 responses
                          67 views
                          0 likes
                          Last Post philmg
                          by philmg
                           
                          Started by MiCe1999, 04-14-2025, 06:54 PM
                          5 responses
                          56 views
                          0 likes
                          Last Post NinjaTrader_Jesse  
                          Working...
                          X