Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Transparent background color

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

    Transparent background color

    Hello, I have an indication in ninjatrader 7 that I do not know how to remove the white background color on the banner, if I change it to blue, red or any other color it makes the change but if I make it transparent it continues to appear in white. What I want is a text with black letters but as a background I want it to be the same color as the background of the graphic that I have configured, how can I do it? Not "transparent color"?

    if (banners)
    DrawTextFixed("Banner2", bannerstring, TextPosition.BottomLeft, Color.Black, font, Color.White, Color.White, 10);
    else
    RemoveDrawObject("Banner2");



    #2
    Originally posted by punkiy2111 View Post
    Hello, I have an indication in ninjatrader 7 that I do not know how to remove the white background color on the banner, if I change it to blue, red or any other color it makes the change but if I make it transparent it continues to appear in white. What I want is a text with black letters but as a background I want it to be the same color as the background of the graphic that I have configured, how can I do it? Not "transparent color"?

    if (banners)
    DrawTextFixed("Banner2", bannerstring, TextPosition.BottomLeft, Color.Black, font, Color.White, Color.White, 10);
    else
    RemoveDrawObject("Banner2");

    Try changing your opacity number of 10

    Comment


      #3
      Thankssss You have helped me enormously, have a nice day!

      Comment


        #4
        Hello punkiy2111,

        Did you try using Brushes.Transparent?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello it generates an error, could you tell me how this order would be placed? Thank you

          if (banners)
          DrawTextFixed("Banner2", bannerstring, TextPosition.BottomLeft, Color.Black, font, Color.White, Color.White, 10);
          else
          RemoveDrawObject("Banner2");

          Comment


            #6
            Hello punkiy2111,

            What is the full error message?

            There are no orders being placed with entry or exit methods or SubmitOrderUnmanaged().
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              f (banners)
              DrawTextFixed("Banner2", bannerstring, TextPosition.BottomLeft, Color.Black, font, Color.White, Color.White, 1);
              else
              RemoveDrawObject("Banner2");

              I changed Color.White, 10 for Color.White, 1 and it worked for me, is there another way to make it look transparent? Regards.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by kinfxhk, 07-14-2026, 09:39 AM
              0 responses
              130 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 10:18 AM
              0 responses
              105 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 09:50 AM
              0 responses
              87 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 07:21 AM
              0 responses
              107 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-11-2026, 02:11 AM
              0 responses
              86 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Working...
              X