Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawRegion

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

    DrawRegion

    Hi, I'm using the DrawRegion command to shade an area between 2 moving averages as follows: DrawRegion("MA_Band" + CurrentBar,1,0, MA1, MA2, Color.Empty, Color.Gray,10);

    The region is shaded as I want be there are lines separating the columns within the shaded area. Is there another technique or command I can use to create a smoother, more solid shading effect?

    thanks

    #2
    Hello,

    Your empty outlineColor parameter may be the cause. Do you see the same if you use the same color for the outlineColor and areaColor?

    This indicator from our Indicators forum should point you in the right direction as to how to avoid that:

    http://www.ninjatrader.com/support/f...d=4&linkid=491

    I've also attached a similar indicator created by one of our NinjaScript team members, which may help as well.
    Attached Files
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

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