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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    83 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    65 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X