• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart Candlestick outline color

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

    Chart Candlestick outline color

    anyone know how to set this?

    #2
    Hello NinjaCustomer,

    Thanks for your post.

    The candlestick outline color would be set in the data series on the chart. Right mouse click on the chart and select "data series..." Look for the row "Candle outline".

    If you are asking how to set through Ninjascript, then you would use CandleOutLineColor for the current bar: https://ninjatrader.com/support/help...tlinecolor.htm or CandleOutlineColorSeries to access prior bars: https://ninjatrader.com/support/help...olorseries.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      right click didn't work but i found a data series button

      another question.. how do I configure a custom color?

      I want to set the background of the chart to same color as the background of the NT8 dark skin

      Comment


        #4
        Hello NinjaCustomer,

        Thanks for your reply.

        To set the background color of the chart is the same as in NT8 on an individual chart. You can right mouse click on the chart and select "Properties". In the properties window, you can select the "Color for background" from the color selections shown when you click the drop down arrow that will show in the row when clicked. Note that if you choose black, you will want to also set the "Color for Axis" to be a lighter color, such as white.

        This information is available in the helpguide, here is a link to the related section: https://ninjatrader.com/support/help...properties.htm
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          ok i figured it out - you have to right click a custom color box then it wil give you a dialog

          Comment


            #6
            Originally posted by NinjaTrader_PaulH View Post
            Hello NinjaCustomer,

            Thanks for your post.

            The candlestick outline color would be set in the data series on the chart. Right mouse click on the chart and select "data series..." Look for the row "Candle outline".

            If you are asking how to set through Ninjascript, then you would use CandleOutLineColor for the current bar: https://ninjatrader.com/support/help...tlinecolor.htm or CandleOutlineColorSeries to access prior bars: https://ninjatrader.com/support/help...olorseries.htm
            Hi, could you tell me how to read the current settings?
            Our goal is: When bar outline = 0, Dojis appear as a single vertical line, making the open and close are invisible.
            We want to make sure in our indicator that Dojis are seen completely even if the bar outline is deactivated.
            Thanks!

            Edit: My question concerns NT8.

            Comment


              #7
              Hello wittmjo,

              Thank you for your post.

              You could overrride the user selected bar outline. In NT8, you could do something like this:

              if (Open[0] == Close[0])
              {
              CandleOutlineBrush = Brushes.LightGray; //only paint the outline for dojis
              }
              else {
              CandleOutlineBrush = Brushes.Transparent;
              }

              Since this is an NT 7 thread, here it is for that as well:

              if (Open[0] == Close[0])
              {
              CandleOutlineColor = Color.LightGray; //only paint the outline for dojis
              }
              else {
              CandleOutlineColor = Color.Transparent;
              }

              Please let us know if we may be of further assistance to you.
              Kate W.NinjaTrader Customer Service

              Comment


                #8
                Thanks Kate!

                A futher question: How is it possible to read the color that the user has selected in the UI?
                I would like my indicator to be able to read the candle body outline that is selected (slategray, transparent, etc).

                Comment


                  #9
                  Hello wittmjo,

                  Thank you for your reply.

                  In that case, save the original value of CandleOutlineBrush to a temporary variable, then reassign it if the candle is not a doji:

                  NT8

                  private Brush UserBrush;

                  protected override void OnBarUpdate()
                  {
                  UserBrush = CandleOutlineBrush;
                  if (Open[0] == Close[0])
                  {
                  CandleOutlineBrush = Brushes.LightGray;
                  }
                  else {
                  CandleOutlineBrush = UserBrush;
                  }
                  }

                  NT7

                  private Color UserColor;

                  protected override void OnBarUpdate()
                  {
                  UserColor = CandleOutlineColor;
                  if (Open[0] == Close[0])
                  {
                  CandleOutlineColor = Color.Black;
                  }
                  else {
                  CandleOutlineColor = UserColor;
                  }
                  }

                  Please let us know if we may be of further assistance to you.
                  Kate W.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by saltminer, Today, 05:19 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post saltminer  
                  Started by martyn73, Today, 04:18 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post martyn73  
                  Started by aprendiz, Today, 03:42 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post aprendiz  
                  Started by 1001111, Today, 09:10 AM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Started by usero86, Today, 06:02 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChrisL  
                  Working...
                  X