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
            6 responses
            57 views
            0 likes
            Last Post futtrader  
            Started by sgordet, Today, 11:48 AM
            0 responses
            1 view
            0 likes
            Last Post sgordet
            by sgordet
             
            Started by Trader146, Today, 11:41 AM
            0 responses
            2 views
            0 likes
            Last Post Trader146  
            Started by jpapa, 04-23-2024, 07:22 AM
            2 responses
            16 views
            0 likes
            Last Post rene69851  
            Started by funk10101, Today, 11:35 AM
            0 responses
            1 view
            0 likes
            Last Post funk10101  
            Working...
            X