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 gentlebenthebear, Today, 01:30 AM
                2 responses
                13 views
                0 likes
                Last Post gentlebenthebear  
                Started by Kaledus, Today, 01:29 PM
                2 responses
                8 views
                0 likes
                Last Post Kaledus
                by Kaledus
                 
                Started by frankthearm, Yesterday, 09:08 AM
                13 responses
                46 views
                0 likes
                Last Post frankthearm  
                Started by PaulMohn, Today, 12:36 PM
                2 responses
                16 views
                0 likes
                Last Post PaulMohn  
                Started by Conceptzx, 10-11-2022, 06:38 AM
                2 responses
                56 views
                0 likes
                Last Post PhillT
                by PhillT
                 
                Working...
                X