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 / Alerts - bug report

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

    Background color / Alerts - bug report

    I set an indicator's chart background color with this stmt (works fine):
    Code:
     BackColor = prime<0 ? Color.FromArgb(bcAlpha,255,192,192) : Color.FromArgb(bcAlpha,192,255,192);
    I wanted a pale color not in the standard named set. Now I want to have an Alert with the same background color - but instead of the nice soft rose or green, the alert background is a hard gray. I think this is a bug.

    Does the color have to be expressed differently for alerts? The help implies it is the standard Color member...

    #2
    Should be able to work. Please try with something like Color.PaleGreen first and see if that works for your alerts.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Please try with something like Color.PaleGreen first and see if that works for your alerts.
      Oh yeah! I had been using Color.Yellow but decided to use that for something else. Then it seemed logical to color match the alert with the chart setting.

      In comparing, there is a hint of color, but it is in NO way close to the chart color. The other named colors match. So should this, yes?
      Attached Files

      Comment


        #4
        Suspect it has to do with the alpha you are using. Background alphaing on a chart is white. Background in the alert is not white and so the alpha influences the color differently.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Background in the alert is not white and so the alpha influences the color differently.
          Alert background is not white?! It certainly looks white if I do not override it and named colors come out the same.

          What is it then so I can know how to set alpha differently?

          Comment


            #6
            Looks very gray to me. Just don't use any alpha-ing. Don't use any transparency. You will need to search up which level of alpha turns off transparency on google or MSDN since I would not know.
            Attached Files
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Ah, now I understand. Because alert background set to Color.Empty always came out white, I thought that meant the background was white.

              I'll experiment. Thanks!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ScottWalsh, Today, 04:29 PM
              0 responses
              4 views
              0 likes
              Last Post ScottWalsh  
              Started by rtwave, 04-12-2024, 09:30 AM
              2 responses
              21 views
              0 likes
              Last Post rtwave
              by rtwave
               
              Started by tsantospinto, 04-12-2024, 07:04 PM
              5 responses
              69 views
              0 likes
              Last Post tsantospinto  
              Started by cre8able, Today, 03:20 PM
              0 responses
              7 views
              0 likes
              Last Post cre8able  
              Started by Fran888, 02-16-2024, 10:48 AM
              3 responses
              49 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Working...
              X