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 ghoul, Today, 06:02 PM
            2 responses
            12 views
            0 likes
            Last Post ghoul
            by ghoul
             
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            44 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            20 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            180 views
            0 likes
            Last Post jeronymite  
            Started by DanielSanMartin, Yesterday, 02:37 PM
            2 responses
            13 views
            0 likes
            Last Post DanielSanMartin  
            Working...
            X