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