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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      26 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      15 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      10 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      17 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X