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 Segwin, 05-07-2018, 02:15 PM
                      14 responses
                      1,788 views
                      0 likes
                      Last Post aligator  
                      Started by Jimmyk, 01-26-2018, 05:19 AM
                      6 responses
                      837 views
                      0 likes
                      Last Post emuns
                      by emuns
                       
                      Started by jxs_xrj, 01-12-2020, 09:49 AM
                      6 responses
                      3,293 views
                      1 like
                      Last Post jgualdronc  
                      Started by Touch-Ups, Today, 10:36 AM
                      0 responses
                      12 views
                      0 likes
                      Last Post Touch-Ups  
                      Started by geddyisodin, 04-25-2024, 05:20 AM
                      11 responses
                      62 views
                      0 likes
                      Last Post halgo_boulder  
                      Working...
                      X