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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      155 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      244 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      346 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      176 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X