• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 suprsnipes, Today, 08:26 PM
    0 responses
    2 views
    0 likes
    Last Post suprsnipes  
    Started by RobertoPaez, Today, 06:47 PM
    0 responses
    7 views
    0 likes
    Last Post RobertoPaez  
    Started by catinabag, Today, 06:45 PM
    0 responses
    4 views
    0 likes
    Last Post catinabag  
    Started by darkgreen, Today, 03:35 PM
    0 responses
    9 views
    0 likes
    Last Post darkgreen  
    Started by GTBrooks, Today, 02:44 PM
    3 responses
    14 views
    0 likes
    Last Post GTBrooks  
    Working...
    X