Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can an indicator detect where it is running?

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

    How can an indicator detect where it is running?

    I would like to detect whether my indicator is running in a panel or in a chart.

    I thought the "Overlay" variable would do that, but it seems to get set once and then never changed again.

    Specifically, I have checked in OnStartUp(), OnBarUpdate(), and in Plot(). Pulling up the configuration dialog and moving the indicator back and forth between a panel and the chart is not detectable with the Overlay variable.

    So how **am** I supposed to do it?

    Thanks,
    EV

    #2
    EV, unfortunately the assigned panel could not be accessed programmatically, for drawings you can check into DrawOnPricePanel - http://www.ninjatrader.com/support/h...pricepanel.htm

    Comment


      #3
      Thanks, but that does not seem to help..

      I do not want to control where I draw. I just want to find out which environment I am in so I can tailor a certain behavior appropriately.

      Neither Overlay nor DrawOnPricePanel seems to track where the indicator is, such that the indicator can read it and discover which it is in.

      Isn't there any way for an indicator to know which environment it is in?

      I do not want to change to the other environment. I do not want to draw in the other environment (that is a separate, and interesting, issue, though). I just want to know where I am running.

      --EV

      Comment


        #4
        EV, unfortunately you could not access the panel / environment where the indicator would run in - I suggest adding a custom input you can toggle then as needed.

        Comment


          #5
          That thought has occurred to me -- pretty ugly to make the user set the same thing twice, but it can be done. The user would have to set "Panel" to control where the indicator goes, and then also set a custom parameter to tell the indicator what the configuration dialog already knows. Very ugly, but doable.

          Searching on the site I see that you have been considering at least since 2008 adding a way for an indicator to know where it is running. Obviously the sytem knows. Please just expose a read-only property so that the indicator can tell, too. For example, make "Overlay" track properly, so that reading it gets valid information.

          Thanks,
          EV

          Comment


            #6
            Thanks for sharing your thoughts.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            581 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            338 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X