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 futtrader, 04-21-2024, 01:50 AM
            4 responses
            41 views
            0 likes
            Last Post futtrader  
            Started by Option Whisperer, Today, 09:55 AM
            1 response
            11 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            1 view
            0 likes
            Last Post port119
            by port119
             
            Started by Philippe56140, Today, 02:35 PM
            0 responses
            3 views
            0 likes
            Last Post Philippe56140  
            Started by 00nevest, Today, 02:27 PM
            0 responses
            2 views
            0 likes
            Last Post 00nevest  
            Working...
            X