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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    36 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X