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 Mindset, 04-21-2026, 06:46 AM
0 responses
49 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
69 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
36 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by cmoran13, 04-16-2026, 01:02 PM
0 responses
96 views
0 likes
Last Post cmoran13  
Started by PaulMohn, 04-10-2026, 11:11 AM
0 responses
59 views
0 likes
Last Post PaulMohn  
Working...
X