Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              600 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              347 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              103 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              558 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              558 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X