Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing multiple indicators on the same Panel

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

    Drawing multiple indicators on the same Panel

    I wanted to draw more than one Indicator on (say Panel 2).

    My code is
    AddChartIndicator(Indicator1);
    Indicator1.Panel = 2;
    AddChartIndicator(Indicator2);
    Indicator2.Panel = 2;

    The issue is that Indicator2 draws on Panel 3 and does not overlay/draw on Panel 2 as expected.

    I would like them to both draw on Panel 2 as specified above as it makes more sense visually. What am I doing wrong?

    I added it in State.Configure and State.DataLoaded with the same results.
    I have also played with the order and put the Panel directive first with no change.

    Indicator1.Panel = 2;
    AddChartIndicator(Indicator1);
    Indicator2.Panel = 2;
    AddChartIndicator(Indicator2);

    Any help would be greatly appreciated.

    #2
    Hi, thanks for posting.

    Indicators can only spawn one panel or draw within the price series panel. To script multiple different indicators on panels of their own you must use a Strategy and AddChartIndicator. See here for an example:



    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 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
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X