Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can an indicator know what panel it is in?

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

    Can an indicator know what panel it is in?

    Are there methods that offer reflection type properties?

    Within the indicator I'd like to know:-
    1) What Panel is it running in?
    2) Is it running in more than one panel?

    Why?
    My Indicator raises Alerts & Plays sounds. If I have the same indicator in 3 different panels I only want one generating that info. (I have properties that make it look different in the other panels, eg: Background ribbon turned on when not in Price panel. extra lines that can be turned on / off) Orignally intended for debugging It actually helps trade.

    #2
    Hi David, unfortunately accessing those properties is not supported. As workaround you could create inputs to enter which background color for example is used on the chart and then check those off in your code to adjust indicator display.

    Comment


      #3
      Alternate idea

      Thanks,
      Creating a parameter the user can set did the trick.

      Another approach that worked well was to override the PLOT event & look at the "bounds.Top" parameter. Checking to see if it is greater than usual, ie 5. That let me determine that I wasn't in the PricePanel & thus set a global boolean that could be accessed by other routines.


      A slightly more complex version of that allowed me to create an array of "bounds.Top" values, again set once in the Plot event. Given that the user may resize the Panel I also needed to look at .Bottom & remove old values. The Indicators array was also handy for this purpose.

      Comment

      Latest Posts

      Collapse

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