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 argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      68 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      41 views
                      0 likes
                      Last Post NabilKhattabi  
                      Started by Deep42, 03-06-2026, 12:28 AM
                      0 responses
                      24 views
                      0 likes
                      Last Post Deep42
                      by Deep42
                       
                      Started by TheRealMorford, 03-05-2026, 06:15 PM
                      0 responses
                      27 views
                      0 likes
                      Last Post TheRealMorford  
                      Started by Mindset, 02-28-2026, 06:16 AM
                      0 responses
                      54 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Working...
                      X