• 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 superkolleech, Today, 12:46 AM
    2 responses
    12 views
    0 likes
    Last Post superkolleech  
    Started by davidwade, Today, 02:51 AM
    0 responses
    3 views
    0 likes
    Last Post davidwade  
    Started by aviat72, 04-26-2020, 09:41 PM
    10 responses
    92 views
    0 likes
    Last Post kissandfly  
    Started by healthooa, Today, 01:28 AM
    0 responses
    8 views
    0 likes
    Last Post healthooa  
    Started by harjinderjit, Yesterday, 08:24 PM
    0 responses
    20 views
    0 likes
    Last Post harjinderjit  
    Working...
    X