Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with code (Zone Shading)

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

    #16
    DrawRegion quirkiness

    I have DrawRegion working on my indicator, but it seems only to draw when I place my indicator in Panel 1. Does DrawRegion need offsets or something to work in other panels?

    Also, if my indicator line crosses above my threshold line "mid-bar" then DrawRegion() fills the left half below my threshold and fills the right half above the line. is there a way to get finer granularity along the horizontal axis so I only fill the portion above the threshold?

    Thanks,
    Jim

    Comment


      #17
      If you want it to draw in a different panel you need to set DrawOnPricePanel to false in the Initialize() method. The granularity is based on the bars itself. There is no way to make it have a higher resolution.

      You can try your hand at using a Plot method override, but that is beyond the level of support we can provide.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      599 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      345 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      558 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X