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


                    #10
                    Originally posted by NinjaTrader_Kate View Post
                    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.
                    Thanks Kate, I am looking for the same. Where do I have to edit/modify the code, please guide me

                    Comment


                      #11
                      Hello santoshv2k,

                      Thank you for your post.

                      The code above would be used within an indicator or strategy to set that color. You could either create a new indicator or modify an existing one in the NinjaScript Editor.

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

                      Comment


                        #12
                        Originally posted by NinjaTrader_Kate View Post
                        Hello santoshv2k,

                        Thank you for your post.

                        The code above would be used within an indicator or strategy to set that color. You could either create a new indicator or modify an existing one in the NinjaScript Editor.

                        Please let us know if we may be of further assistance to you.
                        Thanks a lot for your positive response Kate. Do I need to paste in notepad and save as .cs ? I am looking for minute candlestick in NINJATRADER 7 like this one https://prnt.sc/s0p70x
                        Last edited by santoshv2k; 04-16-2020, 11:50 AM.

                        Comment


                          #13
                          Hello santoshv2k,

                          Please see the indicator tutorials to get introduced to working with indicators in NinjaTrader 7. You can then test the code in the indicator's OnBarUpdate method.

                          Developing Indicators - https://ninjatrader.com/support/help...indicators.htm

                          We look forward to assisting.
                          JimNinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by WeyldFalcon, 08-07-2020, 06:13 AM
                          11 responses
                          1,422 views
                          0 likes
                          Last Post jculp
                          by jculp
                           
                          Started by RubenCazorla, Today, 09:07 AM
                          0 responses
                          4 views
                          0 likes
                          Last Post RubenCazorla  
                          Started by BarzTrading, Today, 07:25 AM
                          2 responses
                          29 views
                          1 like
                          Last Post BarzTrading  
                          Started by devatechnologies, 04-14-2024, 02:58 PM
                          3 responses
                          21 views
                          0 likes
                          Last Post NinjaTrader_BrandonH  
                          Started by tkaboris, Today, 08:01 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post tkaboris  
                          Working...
                          X