Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Region question

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

    Draw Region question

    Hello,
    I'm trying to create an indicator that will change the color between the MA's based on conditions. I can't figure out how to "turn off" the conditions. As a result the colors are getting blended. Can anyone offer me a suggestion? Thanks.

    Code:
    if (VMAZones(9, 2, 18).Upper[0] > RSChannel(9, 1.5, 3, 14, 10).Mid[0])
                {
                    DrawRegion("Holding Up" , CurrentBar, 0, VMAZones(9, 2, 18).Upper, VMAZones(9, 2, 18).Lower, Color.Black, Color.Lime, 2);
                }
               
                
                if (VMAZones(9, 2, 18).Lower[0] < RSChannel(9, 1.5, 3, 14, 10).Mid[0])
                {
                    DrawRegion("Holding Down" , CurrentBar, 0, VMAZones(9, 2, 18).Upper, VMAZones(9, 2, 18).Lower, Color.Black, Color.Chocolate, 2);
                }

    #2
    Hello CaptainAmericaXX,
    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Please use the export feature of NinjaTrader to send the code.
    http://www.ninjatrader.com/support/h...tml?export.htm

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Jeremytang, 07-14-2018, 06:45 PM
    21 responses
    439 views
    0 likes
    Last Post mav8rick  
    Started by LeonK, Yesterday, 09:26 PM
    1 response
    8 views
    0 likes
    Last Post bltdavid  
    Started by NicholasJoannette, Yesterday, 03:01 PM
    2 responses
    11 views
    0 likes
    Last Post NicholasJoannette  
    Started by rach1994, Yesterday, 12:20 PM
    1 response
    35 views
    0 likes
    Last Post bltdavid  
    Started by litamm89, Yesterday, 11:00 AM
    5 responses
    22 views
    1 like
    Last Post rafael_delima86  
    Working...
    X