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