Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Background Color

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

    Background Color

    Hello,
    Is it possible to change the background color for the entire chart based on the close of the current bar? If the current bar's close is higher than it's open, I would like the entire screen to be colored green and if the current bar's close is lower than it's open, the entire screen should be red.

    If someone knows how to do this, please post the code/indicator.

    Thank you.

    Kevin

    #2
    Hi Kevin, while I would unfortunately not have a full study implementing that, you can deifnitely color all panels with the BackColorAll command - http://www.ninjatrader.com/support/h...tsub=backcolor
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by kevinh786 View Post
      Hello,
      Is it possible to change the background color for the entire chart based on the close of the current bar? If the current bar's close is higher than it's open, I would like the entire screen to be colored green and if the current bar's close is lower than it's open, the entire screen should be red.

      If someone knows how to do this, please post the code/indicator.

      Thank you.

      Kevin
      This thread should show you the (unsupported) command that you need.

      ref: http://www.ninjatrader.com/support/f...d.php?p=273853

      Comment


        #4
        Thank you for the reply koganam but the part I don't know how to do is paint the entire screen not just the background of the current bar.

        Any ideas?

        Comment


          #5
          Originally posted by kevinh786 View Post
          Thank you for the reply koganam but the part I don't know how to do is paint the entire screen not just the background of the current bar.

          Any ideas?
          You must not have read the thread? I gave out those commands right in the thread.

          Comment


            #6
            My mistake koganam. I'm not a programmer so I'm a little slow at this stuff but I plugged in your code and it works great...than you!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,290 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            8 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            8 responses
            61 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by Option Whisperer, Today, 09:55 AM
            0 responses
            8 views
            0 likes
            Last Post Option Whisperer  
            Started by halgo_boulder, 04-20-2024, 08:44 AM
            2 responses
            24 views
            0 likes
            Last Post halgo_boulder  
            Working...
            X