Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

background colorchanges

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

    background colorchanges

    Is there a line of code to add to the Ninja default DM Indicator that will color the background Wheat colored when ADX<=25 ?
    Or is it a lot more complex than that?
    I understand I need to make a copy first in order to accept changes to the script.

    #2
    simpletrades,

    To change the background color you can use BackColor = Color.Yellow for instance.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      simpletrades,

      To change the background color you can use BackColor = Color.Yellow for instance.
      Not as easy as I thought.

      I tried with ADX
      if (ADX<25) BackColor = Color.Wheat ;
      and got:
      Operator> cannot be applied to operands of type 'method group' and 'int'

      Then I tried with MACD> Avg (the Diff>)

      if (Diff>0) BackColor = Color.Wheat ;
      and got
      Operator> cannot be applied to operands of type NinjaTrader.Data.DataSeries and int

      Comment


        #4
        simpletrades, please try for example this the for MACD histogram -

        Code:
         
        if (MACD(12, 26, 9).Diff[0] > 0)
        BackColor = Color.Blue;
        I would also suggest you check into our level 6 tutorial here - http://www.ninjatrader-support.com/H...verview18.html
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          simpletrades, please try for example this the for MACD histogram -

          Code:
           
          if (MACD(12, 26, 9).Diff[0] > 0)
          BackColor = Color.Blue;
          I would also suggest you check into our level 6 tutorial here - http://www.ninjatrader-support.com/H...verview18.html
          Thanks, MACD does it and I tried adapting to the ADX from the DM indicator

          if (ADX(14)[0] > 25)
          BackColor = Color.Blue;

          and it works. Thanks.

          With a normal black background and red green yellow for ADX and DMI, its a challenge finding a decent new background and testing and then retesting a better combination etc..
          How can I add a color input for the recolor if ADX>25 so I can keep trying colors from the indicator screen and not the coded script and then needing to recompile over and over?

          Comment


            #6
            simpletrades,

            Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=4977
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              now that i have 7.0, none of these work.
              how do i recode a background colorchange to work in 7.0
              OR EVEN BETTER, canyou provide a link to a 7.0 imdicator that calls for a background change i can look at?

              Comment


                #8
                Hello,

                Please see this information in the guide for how to do this:





                Let me know if I can be of further assistance.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by bmartz, 03-12-2024, 06:12 AM
                5 responses
                32 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Started by Aviram Y, Today, 05:29 AM
                4 responses
                13 views
                0 likes
                Last Post Aviram Y  
                Started by algospoke, 04-17-2024, 06:40 PM
                3 responses
                28 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by gentlebenthebear, Today, 01:30 AM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by cls71, Today, 04:45 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X