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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      217 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      130 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      147 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      231 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      192 views
      0 likes
      Last Post CarlTrading  
      Working...
      X