Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Show High of bar always the same for all the bars

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

    Show High of bar always the same for all the bars

    Hi there

    Can someone please help me create a indicator that will ALWAYS show the High of the bar at the zero line, so it will be the same as a normal chart, but the HIgh of the bar will always be the same.

    thanks

    #2
    Hello ninjamouse,

    Thank you for your post.

    To clarify, are you looking to see the High plotted on the chart as the zero line for each bar on the chart so you can still access the value from the Data Box but the Plot is at zero?

    I look forward to your response.

    Comment


      #3
      Hi Patrick

      Yes that is correct, as you know a chart goes up and down, what I would like is to have maybe a zero line and ALL the highs of the bar start at the zero line, and yes you are correct, I would like to access the value via the data box, if possible?

      many thanks for replying to me.

      Comment


        #4
        Hello ninjamouse,

        Thank you for your response.

        So would this look similar to how the VOL indicator plots? From zero line up to the price level for the High?

        I look forward to your response.

        Comment


          #5
          Hi there again Patrick

          It would be something like this. hope this makes sense? Would be even cool if you had you pick from a drop down list of where you want price to start from i.e. High, Low, etc.

          Many Thanks

          Click image for larger version

Name:	High.jpg
Views:	1
Size:	25.4 KB
ID:	866974

          Comment


            #6
            Hello ninjamouse,

            Thank you for your response.

            The picture definitely makes it clear on what you are looking for. I have one questions though, do you wish for this to be a custom bar type or just an indicator to add to a chart?

            I look forward to your response.

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello ninjamouse,

              Thank you for your response.

              The picture definitely makes it clear on what you are looking for. I have one questions though, do you wish for this to be a custom bar type or just an indicator to add to a chart?

              I look forward to your response.
              Hi Patrick,

              Would be nice if its a custom bar chart, don't know how hard it is to program this? If its too hard an Indicator will be great.

              Thank you so much for replying

              Comment


                #8
                Sorry I mean to say, I would prefer to have an indicator, sorry to trouble you. The purpose of this is that the bar will look different depending on what chart type you use i.e. range, renko minute etc.

                Thankyou

                Comment


                  #9
                  any idea anyone?

                  thankyou

                  Comment


                    #10
                    Hello ninjamouse,

                    Thank you for your response.

                    The methods to create a ChartStyle would be unsupported. If you want to go the route of the indicator you will need to familiarize yourself on how similar indicators plot. For example the VOL indicator uses the following method:
                    Code:
                    		protected override void Initialize()
                    		{
                    			Add(new Plot(new Pen(Color.Blue, 2), PlotStyle.Bar, "Volume"));
                    			Add(new Line(Color.DarkGray, 0, "Zero line"));
                    		}
                    
                    		/// <summary>
                    		/// Called on each bar update event (incoming tick)
                    		/// </summary>
                    		protected override void OnBarUpdate()
                    		{
                    			Value.Set(Volume[0]);
                    		}
                    You can use this as a guideline, for example we could change the Value.Set() to the following:
                    Code:
                    protected override void OnBarUpdate()
                    		{
                    			Value.Set(High[0]);
                    		}
                    For the Low we could use:
                    Code:
                    protected override void OnBarUpdate()
                    		{
                    			Value.Set(Low[0]);
                    		}
                    Please let me know if you have any questions.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    18 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Javierw.ok  
                    Started by timmbbo, Today, 08:59 AM
                    2 responses
                    10 views
                    0 likes
                    Last Post bltdavid  
                    Working...
                    X