Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How can I know when the Indicator dialog is popped up?

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

    How can I know when the Indicator dialog is popped up?

    Is there some indicator method that will get called when the Indicators dialog gets popped up.

    The reason I want to know is that if I must save and restore plot colors so I can set transparent for the Data Box, one of the times I need to restore them is just before the Indicators dialog gets popped up.

    If I don't then the configuration color in Plots will still be transparent. Restoring the color will be no visual problem in this case, because the item is not being plotted to begi with, and so is not visible.

    Of course that still does not solve my problem of synchronizing Data Box updates, but I'm exploring whether I could make it work even if I could get Data Box to do the right thing.

    --EV

    #2
    hello,

    Initialize is called.

    Let me know if I can be of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      hello,

      Initialize is called.

      Let me know if I can be of further assistance.
      The problem is that Initialize() is called only on a couple of newly-created instances. It is not called on the existing instance, which is the one that needs to get the word.

      (I have trace information showing that if need be.)

      --EV
      Last edited by ETFVoyageur; 01-17-2011, 10:06 AM.

      Comment


        #4
        Sorry? I stand by my original statement.

        Please test this on your own if you dont believe me. Adding a simple Print() To Initialize you will see that it does it called on Indicator box opens.

        Comment


          #5
          Originally posted by NinjaTrader_Brett View Post
          Sorry? I stand by my original statement.

          Please test this on your own if you dont believe me. Adding a simple Print() To Initialize you will see that it does it called on Indicator box opens.
          Brett,

          I have done that. I go one step further, though. I tag each instance with a unique ID, and I include that in my printout so I can see not only which methods get called, but which instances they are called for.

          As I said in my previous post, Initialize() does get called -- just not on the object instance I need a call for. What my tracing shows is that when the Indicator dialog gets popped up two new instances are created, and their Initialize() methods do get called.

          But, unfortunately, I see no call to any method that I know of for the existing instance -- the one that needs to know.

          My posting here was in hope of some other method that I am not aware of, perhaps -- anything at all that will get called on the existing instance. Calls on new instances are no help.

          --EV
          Last edited by ETFVoyageur; 01-17-2011, 10:40 AM.

          Comment


            #6
            Hello,

            Gotcha.

            Yea, This is at the limit that we would be able to provide support for.

            Let me know if I can be of further assistance.

            Comment


              #7
              OK.

              Thanks anyway. You folks do a great job.

              It's quite interesting what you see when you tag your tracing so you can see which instance is which.

              --EV

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Waxavi, Today, 02:10 AM
              0 responses
              3 views
              0 likes
              Last Post Waxavi
              by Waxavi
               
              Started by TradeForge, Today, 02:09 AM
              0 responses
              9 views
              0 likes
              Last Post TradeForge  
              Started by Waxavi, Today, 02:00 AM
              0 responses
              2 views
              0 likes
              Last Post Waxavi
              by Waxavi
               
              Started by elirion, Today, 01:36 AM
              0 responses
              4 views
              0 likes
              Last Post elirion
              by elirion
               
              Started by gentlebenthebear, Today, 01:30 AM
              0 responses
              4 views
              0 likes
              Last Post gentlebenthebear  
              Working...
              X