Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart background color.

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

    Chart background color.

    1) How do I change the background color of my chart?

    2) Is there a way to have different colors for both sim trading and real money trading so I know for sure which type of trading I am doing?

    #2
    Hello islandwizard,

    1. Yes, you may change the background color of your charts by right click inside of the chart, selecting Properties, and then change the "Color for Background" option. Here is a link to our Help Guide that has a description of all of the properties you may change.


    2. If you are using Chart Trader, you may change the color of the Chart Trader window when you have a Simulator account select. With Chart Trader enabled you may right click inside of the Chart Trader window and select Chart Trader Properties. From here you may change the "Simulator Color" from the Default "SlateGray" to a color that you want to easily see the difference. Note a Live Account will have a White background color.

    JCNinjaTrader Customer Service

    Comment


      #3
      Could i change the chart "Color for Background" with code from my indicators?
      Thank you

      Comment


        #4
        Hello ninjo,

        You can change the background color of the chart on a per bar basis. (Colors the chart panel behind the bar)

        Below is a link to the help guide on BackColor.
        http://ninjatrader.com/support/helpG.../backcolor.htm

        You can also loop through the BackColorSeries collection and set colors historically.
        http://ninjatrader.com/support/helpG...olorseries.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you ChelseaB, yes i know. But I want to change all window background and the axis color by code.

          Comment


            #6
            Hello ninjo,

            There are no supported ways to achieve this.

            Though there may be something buried in the chart control that may help. This would not be supported by NinjaTrader Support to do for NinjaTrader 7 however.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              All right !

              Comment


                #8
                Hello ninjo,

                I am not aware of any way to accomplish this, however, this thread will remain open for any community members that have information and would like to contribute.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Try this in OnStartUp()

                  Code:
                  protected override void OnStartUp()
                  {		
                  	ChartControl.BackColor = Color.Blue;
                  	ChartControl.AxisColor = Color.Red;
                  }
                  MatthewNinjaTrader Product Management

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  88 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  48 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  30 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  34 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  68 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X