Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Region draws to wrong panel

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

    Draw.Region draws to wrong panel

    I have an indicator that normally draws on it's own indicator panel. When loaded by itself as an indicator this works.
    When the indicator is included in a strategy via AddChartIndicator(..) the indicator gets it's own panel and the normal plots draw in that panel. However, the Draw.Region output ends up on the price panel.
    If you then add another indicator that requires its own pane, such as MACD, it then changes my indicator to draw correctly in its indicator panel.

    I have attached a test indicator and test strategy that demonstrates the behavior.

    To reproduce this behavior, take these steps:
    1) load GTestHisto indicator by itself on a chart. Verify a region is drawn over the top of the histo bars.

    2) remove GTestHisto from chart.

    3) load strategy GDrawRegionFromIndicatorInStrategy and enable it. It should show the GTestHisto on its own panel but the region is drawn on the price panel.

    4) load a MACD indicator. It causes the GTestHisto to draw the region correctly on it's own panel.

    Seems like a bug to me.

    Gary
    Attached Files

    #2
    Hi GaryAlbers,

    Thanks for your post and efforts to identify the issue.

    We will investigate and update when we have further information.

    Comment

    Latest Posts

    Collapse

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