Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Candle Clear

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

    Candle Clear

    This is an indicator that attempts to correct several things I hear people complaining on the forum they can't do with candle sticks.

    1. If you have too many indicators on the chart and can't see the candles / prices any more. Note for this to work you need to add this indicator last in your list of added indicators.

    2. If you want your candles to be strictly OHLC which by default on NT they are not.

    3. If you want a thicker wick on your candles. You need to change the default input parameter for this to work.

    4. If you have changed your chart background colour but can't work out what to set the wick colour to, this will automatically set the border/wick colour for you.

    I would post a screenshot, but the idea is it looks just like normal candle sticks, taking on the up/down colour settings in properties, but with these added features or 'properties'.


    ChangeLog: Updated 14th Aug 2007 - Vers 0.2 - I had left a debug line in the code which meant that down bars were always red, rather than being the colour set in chart properties.

    Updated 18th May 2008 - Vers 0.4 - Now comes with configurable wick and outline colour options.

    Updated 19th May 2008 - Vers 0.5 - Fixed lower wick out by one pixel problem.

    To import:

    - Download the file contained in this thread to your desktop
    - From the Control Center window select the menu File > Utilities > Import NinjaScript
    - Select the downloaded file
    Attached Files
    Last edited by Gumphrie; 05-19-2008, 06:27 AM.

    #2
    Thanks Gumphrie. A nice temporary workaround solution for having the databars on top of the indicators.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Note it only attempts to do this stuff with candlesticks, not OHLC bars or anything else.

      Comment


        #4
        Thanks for this, really makes a difference on my candlestick charts.

        Comment


          #5
          Thank you, it's exactly what I was looking for.

          However, on my NT 6.5, the bars were all plotted one pixel down comparing to the original NT candles.

          I found that subtracting 1 from the variables y1, y2, y3 and y4, ClearCandles exactly match NT candles.

          Just add these lines after y1,y2,y3,y4 initialization inside the paint() method:

          y1--;
          y2--;
          y3--;
          y4--;

          Comment


            #6
            Gumphrie, thanks a lot for this useful tool!!
            Regarding the point 4:

            4. If you have changed your chart background colour but can't work out what to set the wick colour to, this will automatically set the border/wick colour for you.

            How can I disable the function to set automatically the color with the chart backgound'

            What script I need to change/replace to hold my preferred wick colour?

            Thank you

            Sergio

            Comment


              #7
              Hi Sergio,

              Here's a version that works the way you require by not automatically creating the candle border colour from the background, but just inheriting the present settings.

              I've also added the fix that was contributed by barabba.

              I'll leave this posted here and won't update the original post for now in case that fix is a 6.0 or 6.5 issue and as someone may still want the auto colouring facility.

              To import:

              - Download the file contained in this thread to your desktop
              - From the Control Center window select the menu File > Utilities > Import NinjaScript
              - Select the downloaded file
              Attached Files

              Comment


                #8
                Thank you very much!

                Sergio

                Comment


                  #9
                  Hello,


                  Is it possible to have the wicks ticker?
                  That would be a nice addition to the outlines in black....

                  Thanks, Jojotrader

                  Comment


                    #10
                    Originally posted by jojotrader View Post
                    Is it possible to have the wicks ticker?
                    That would be a nice addition to the outlines in black....

                    Thanks, Jojotrader
                    You mean thicker than the thick wick=true option??

                    Comment


                      #11
                      Yes,

                      If I can add something like WickTickness = Wick 2px.....(possible pixel adjustment) that would be awesome, then my charts are perfect...
                      This is what I use now for my candles.


                      BarColor = Color.Lime;
                      CandleOutlineColor = Color.Black;


                      Thanks for the comment,

                      Jojotrader.
                      Attached Files

                      Comment


                        #12
                        Well the thick wick=true pixel width is set on line 123 of the version I last posted. If you specify a thick wick it gives you a pixel width of 3, it has to be an odd number or the wick is drawn to one side of the candle. Playing with that should give you what you want I guess...

                        Comment


                          #13
                          Can't get it done, but anyway thanks for the advice.
                          Maybe I'm looking for some easy doing here.....


                          Jojotrader

                          Comment


                            #14
                            Hello Gumphrie,

                            May I ask you if it's possible to set an individual color for:

                            1) Wick of Candle Up
                            2) Wick of Candle down
                            3) Outline Candle Up
                            4) Outline Candle down

                            Thank you

                            Comment


                              #15
                              I 've attached a picture of what I mean
                              Attached Files

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Christopher_R, Today, 12:29 AM
                              0 responses
                              6 views
                              0 likes
                              Last Post Christopher_R  
                              Started by sidlercom80, 10-28-2023, 08:49 AM
                              166 responses
                              2,235 views
                              0 likes
                              Last Post sidlercom80  
                              Started by thread, Yesterday, 11:58 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post thread
                              by thread
                               
                              Started by jclose, Yesterday, 09:37 PM
                              0 responses
                              7 views
                              0 likes
                              Last Post jclose
                              by jclose
                               
                              Started by WeyldFalcon, 08-07-2020, 06:13 AM
                              10 responses
                              1,415 views
                              0 likes
                              Last Post Traderontheroad  
                              Working...
                              X