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 mishhh, 05-25-2010, 08:54 AM
                      19 responses
                      6,189 views
                      0 likes
                      Last Post rene69851  
                      Started by gwenael, Today, 09:29 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post gwenael
                      by gwenael
                       
                      Started by Karado58, 11-26-2012, 02:57 PM
                      8 responses
                      14,829 views
                      0 likes
                      Last Post Option Whisperer  
                      Started by Option Whisperer, Today, 09:05 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post Option Whisperer  
                      Started by cre8able, Yesterday, 01:16 PM
                      3 responses
                      11 views
                      0 likes
                      Last Post cre8able  
                      Working...
                      X