Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color Condition

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

    Color Condition

    If I want to set up a Color condition in Market Analyzer that says that if the Value of the SMA(Close,14) is greater than Last Price: Use green

    If its below last price use Red.

    How do I do this? The value for Double can only be a number

    PEDRO

    #2
    Originally posted by [email protected] View Post
    If I want to set up a Color condition in Market Analyzer that says that if the Value of the SMA(Close,14) is greater than Last Price: Use green

    If its below last price use Red.

    How do I do this? The value for Double can only be a number

    PEDRO
    Hello Pedro,

    Thank you for your post.

    Unfortunately this cannot be created in the Market Analyzer.

    This can be created as a custom indicator using NinjaScript.

    Try the Strategy Wizard for non-programmers: http://www.ninjatrader-support.com/H...verview41.html

    Or try our Certified NinjaScript consultants: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      Will this be added to NT7? I am looking to add a similar color coding scheme that compares current price to a given indicator - if Px > indicator make the row green, if Px < indicator make it red, etc.

      Am i to understand the color coding will only compare the price to fixed number and not a changing number such as a moving average or channel?

      Thanks

      Comment


        #4
        Originally posted by slyng View Post
        Will this be added to NT7? I am looking to add a similar color coding scheme that compares current price to a given indicator - if Px > indicator make the row green, if Px < indicator make it red, etc.

        Am i to understand the color coding will only compare the price to fixed number and not a changing number such as a moving average or channel?

        Thanks
        Hi Slyng,

        Additional alert condition parameters are on development's list of possible future enhancements for NT7, however no word yet on if/ what is going to be implemented.

        Yes, you can only set up color conditions based on a fixed number value.
        Ray S.NinjaTrader Customer Service

        Comment


          #5
          try this one

          if (SMA(14)[0] > SMA(30)[0])
          BackColor = Color.Red;
          else if (SMA(14)[0] < SMA(30)[0])
          BackColor = Color.Green;
          else
          BackColor = Color.gray;
          Last edited by mydet; 02-20-2009, 05:23 AM. Reason: not complete

          Comment


            #6
            That wouldn't work on a strategy analyzer though, would it? If so, how do you get that to operate in the background?

            Comment


              #7
              it just color background for market Analyzer, sorry not sure for strategy analyzer

              Comment


                #8
                Sorry, my post had a typo - i meant Market Analyzer. How would you get that code to run in the background? Sorry, still new at this...Do you have any steps, like "Right click on Market Analyzer, then click ____"

                Comment


                  #9
                  try modified this code

                  Comment


                    #10
                    as an indicator:

                    if (SMA(14)[0] > Close[0])
                    Plot0.Set(1);
                    else
                    Plot0.Set(0);


                    load it in mkt analyzer, if Plot0 >0 highlight green, if =0 highlight red. Just make the output of whatever indicator you want binary and you can use it in mkt analyzer no prob.

                    *
                    i didnt realize how old this thread was sorry

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by judysamnt7, 03-13-2023, 09:11 AM
                    4 responses
                    53 views
                    0 likes
                    Last Post DynamicTest  
                    Started by ScottWalsh, Today, 06:52 PM
                    4 responses
                    33 views
                    0 likes
                    Last Post ScottWalsh  
                    Started by olisav57, Today, 07:39 PM
                    0 responses
                    5 views
                    0 likes
                    Last Post olisav57  
                    Started by trilliantrader, Today, 03:01 PM
                    2 responses
                    19 views
                    0 likes
                    Last Post helpwanted  
                    Started by cre8able, Today, 07:24 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post cre8able  
                    Working...
                    X