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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    150 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X