Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Background Color

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

    Background Color

    If I want the chart background color to be green when inidcator is a buy and red when the indicator is a sell, what code do I use to color the chart background?

    #2
    You would need to write a custom indicator and use the following BackColor property.

    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by rtj4201 View Post
      If I want the chart background color to be green when inidcator is a buy and red when the indicator is a sell, what code do I use to color the chart background?
      BackColor = Color.Red;

      Comment


        #4
        Will it do that for the price chart background, not panel 2?

        Comment


          #5
          Originally posted by rtj4201 View Post
          Will it do that for the price chart background, not panel 2?
          If your indie overlays the price panel then it will change price chart background, otherwise panel 2 (or whatever panel your indie sits in)

          Comment


            #6
            What does indie mean?

            Comment


              #7
              Originally posted by rtj4201 View Post
              What does indie mean?
              Indicator Sorry

              Comment


                #8
                I have up down arrows plotting on the price chart based on the indicator in panel 2; however, the arrows are small and hard to see. I was wondering if I could have the price chart change color green/red based on the buy sell signal from panel 2.

                Comment


                  #9
                  Originally posted by rtj4201 View Post
                  I have up down arrows plotting on the price chart based on the indicator in panel 2; however, the arrows are small and hard to see. I was wondering if I could have the price chart change color green/red based on the buy sell signal from panel 2.
                  I am not aware of a built-in method for that. You would need to do some kind of workaround...
                  May be to make a different indicator which does same calculations, but does not plot anything, just changes background color. In that case you could overlay it on the price...

                  Comment


                    #10
                    How would I overlay it on the price?

                    Comment


                      #11
                      Originally posted by rtj4201 View Post
                      How would I overlay it on the price?
                      In initialize():

                      Overlay = true;

                      Or in indicator properties set panel to 1

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by 00nevest, Today, 02:27 PM
                      0 responses
                      1 view
                      0 likes
                      Last Post 00nevest  
                      Started by Jonafare, 12-06-2012, 03:48 PM
                      5 responses
                      3,986 views
                      0 likes
                      Last Post rene69851  
                      Started by Fitspressorest, Today, 01:38 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post Fitspressorest  
                      Started by Jonker, Today, 01:19 PM
                      0 responses
                      2 views
                      0 likes
                      Last Post Jonker
                      by Jonker
                       
                      Started by futtrader, Today, 01:16 PM
                      0 responses
                      9 views
                      0 likes
                      Last Post futtrader  
                      Working...
                      X