Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draws on price panel but opens second panel as well

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

    draws on price panel but opens second panel as well

    I have a simple custom indicator that uses the following to draw a few lines and rectangles:
    • Draw.HorizontalLine(this, "tag1", false, Open[0], Brushes.Purple, DashStyleHelper.Solid, 2);
    • Draw.Rectangle(this, "tag2", false, Time[2], LowY, Time[2].AddDays(6), HighY, Brushes.Silver, BrushFill, 25);
    No fancy logic, just draws stuff in OnBarUpDate() against OnBarClose.

    For a while it just drew on the price panel and then randomly started to open a second panel but still draw on the price panel. Second panel is blank.

    Here's what I've tried to rectify the problem:
    • Add, remove, add the indicator
    • Close chart and open a fresh char and add back the indicator
    • Add the SMA indicator in addition to my custom one
    • Comment out ALL code leaving just IsOverlay = true, DrawOnPricePanel = true; and a return in OnBarUpdate().​
    • Comment out ALL Code leaving just a return statement - no defaults
    • Recompiled and reapplying indicator repeatedly during and between all these steps
    • Restarted NinjaTrader a few times along the way
    • Manually set panel to "same as input series", apply, remove indicator, apply indicator again
    I can place something like just SMA on chart and it works fine. When I go back to custom indicator the second panel appears again. I've run out of ideas.

    Suggestions please.
    Thanks,
    Clint

Latest Posts

Collapse

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