Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CandleOutlineColor

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

    CandleOutlineColor

    How do I set the CandleOutlineColor to match the BarColor on my price charts? The Chart properties appear to force a color setting on this variable.

    from NT 6.5 help:
    CandleOutlineColor
    * If this property is not set, the outline color will take the color set by the BarColor property.



    Since Up & Down Candles have different colors in the chart properties, the candle outline & therefore shadow should match the body. I've already tried transparent - the shadow became invisible - not a good choice.

    #2
    This is not possible manually since this color option is across all bars, not just up and down bars.
    RayNinjaTrader Customer Service

    Comment


      #3
      In that case, sir, I respectfully submit that your current implementation of CandleOutlineColor has a bug - since your Help explicitly states
      "If this property is not set, the outline color will take the color set by the BarColor property."

      The Price BarColor changes are controlled by NT code. I want the outline to match the BarColor, here is a variable designed to do just that, and yet the Chart Properties implementation has prevented it from working. That is a flaw that needs to be corrected.

      You could either allow a property to disable the outline color, or more simply add a choice of color = "BarColor"that has the effect of resetting the CandleOutlineColor so that it does in fact match the BarColor at all times.

      Comment


        #4
        I will change the Help Guide to properly reflect the behaviour to state that if BarColor is set and CandleOutlineColor is not set, it will take the color of the BarColor.
        RayNinjaTrader Customer Service

        Comment


          #5
          Ray, I think you missed my point. The Help guide already says that.
          The problem is that it does not work that way - I would love my price candles to use the BarColor as the outline but they don't.

          It appears that it does not work because one cannot NOT SET the CandleOutlineColor because Chart properties FORCES it to be set.

          Comment


            #6
            I guess I don't follow.

            If I have an indicator with the following code in OnBarUpdate()

            BarColor = Color.Blue;

            All candles will be blue including the candleoutline.

            If I change code to this :

            BarColor = Color.Blue;
            CandleOutlineColor = Color.Red;

            I will get blue body candles with red outlines.

            Do you experience something different?
            RayNinjaTrader Customer Service

            Comment


              #7
              I've got to work on my communication skills..

              No mention of indicators... I have a chart. Standard any old chart with properties. In properties, I select Candle Stick.

              How can I set CandleOutlineColor to null (.i.e., unset) when the
              Properties have already forced the value to be set (default is black).

              Pictures below...
              Attached Files

              Comment


                #8
                I see. I assumed programming since you quoted the NinjaScipt portion of our Help Guide.

                What you want to do is not possible via the UI.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  I had time to test this via an indicator -- it does not have any affect?
                  First, I tried (what I want) CandleOutlineColor = null;
                  but it does not compile - How do I UNSET this variable?

                  Then I tried CandleOutlineColor = Color.Yellow;
                  however that command was ignored. The price candlesticks still have the black outline forced by the properties.

                  Respectfully, Ray, I still believe there is a flaw in the NT code or implementation, and I sincerely hope y'all will correct it....

                  Comment


                    #10
                    You can't set it to null.

                    If its not set, it will take the default color set in your chart. If you put ONLY the following line in OnBarUpdate() in an indicator;

                    CandelOutlineColor = Color.Red;

                    compile, apply to the chart, the outline will now be red.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Ray, you seem to keep overlooking the question...
                      Obviously I do NOT want the variable set, since I want the CandleOutlineColor to match the BarColor. That is what started this entire conversation.

                      How do I ensure that CandleOutlineColor is NOT SET?

                      If you do not know, it is ok to say so -- just go find some-one who does know.

                      In other words, I want my price candlesticks to use BarColor. How?
                      And do not say "just do not set the variable", because that is NOT TRUE.

                      Comment


                        #12
                        Maybe you are looking for something that just does not exist?

                        To clarify:

                        - There will always be a candle outline
                        - Setting the BarColor property will color both the candle and its outline to this color
                        - Setting BarColor and CandleOutline will set each object to the color its set
                        - Not setting any of these properties will take the color properties from Chart Properties

                        This is how it works. I hope I cleared things up.
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by NinjaTrader_Ray View Post
                          - Not setting any of these properties will take the color properties from Chart Properties.
                          I am sorry to hear that.

                          If that is the way it works (unfortunately) then y'all do need to either correct the way it works (best choice) or correct the help where it says:

                          CandleOutlineColor
                          * If this property is not set, the outline color will take the color set by the BarColor property.


                          I strongly prefer that it work the way the help says as it is important to me that the candle outline match the candle body (because y'all do not separate shadow thickness from body outline thickness).

                          respectfully...

                          Comment


                            #14
                            You can use the CandleClear indicator to to that.

                            Comment


                              #15
                              Originally posted by barabba View Post
                              You can use the CandleClear indicator to to that.
                              CandleClear is not in the help file of v6.5, nor is it listed as an indicator in the software folder...

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by tsantospinto, 04-12-2024, 07:04 PM
                              4 responses
                              61 views
                              0 likes
                              Last Post aligator  
                              Started by michi08, 10-05-2018, 09:31 AM
                              3 responses
                              740 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by sightcareclickhere, Today, 01:55 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post sightcareclickhere  
                              Started by Mindset, 05-06-2023, 09:03 PM
                              9 responses
                              258 views
                              0 likes
                              Last Post ender_wiggum  
                              Started by Mizzouman1, Today, 07:35 AM
                              4 responses
                              18 views
                              0 likes
                              Last Post Mizzouman1  
                              Working...
                              X