Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dot at Bar Midpoint

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

    Dot at Bar Midpoint

    Hello,
    Attached is a dot template I use, I need assistance on lines107 to 115, I'm trying
    to place a dot at the middle of the bar High[0]-Low[0]/2. I don't know how to instruct
    the indicator to place the dot.
    Your help is appreciated.
    Ron
    Attached Files

    #2
    Hey.

    (High[0] - Low[0]) / 2 gives you the distance only. You need to tell ninjascript where to plot that distance from. Basically substract the distance from a reference point, like High[0]

    Is this what you are looking for?

    Code:
    Draw.HorizontalLine(this, "myLine", High[0] - ((High[0] - Low[0]) / 2), Brushes.Yellow);
    There is a Draw.Dot, it's better to use that than Draw.Text.

    Comment


      #3
      Hello rronzz,

      Thanks for your post.

      Member Gorkhaan has provided good advise (Thanks!) and agree that unless you are using a special symbol, that Draw.Dot() may be a better way to go, however one limit is that the size of the dot is not adjustable. Reference: https://ninjatrader.com/support/help.../?draw_dot.htm

      You may be interested in a free and publicly available indicator that provide center of bar marks (on every bar) called CandleQuarters that can provide a mark on the bar at the center, upper quarter, lower quarter and pivot point. The marks are plots that you can turn off (by changing to transparent color) or changing the symbol via the PlotStyle selection. The plotted marker size can also be changed (where as Draw.Dot() would be a fixed size)

      This indicator is publicly available on our NinjaTrader Ecosystem website:
      Here is a basic guideline of how to Import NinjaScripts.

      To import NinjaScripts you will need the original .zip file.

      To Import
      1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
      2. From the Control Center window select the menu Tools>import>Ninjascript add-on..
      3. Select the downloaded .zip file
      4. NinjaTrader will then confirm if the import has been successful.

      Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

      Once installed, you may add the indicator to a chart by:
      • Right click your chart > indicators > Select the Indicator from the list on the left > New > OK

      The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

      Comment


        #4
        Thanks for all the help.

        Comment


          #5
          Originally posted by NinjaTrader_PaulH View Post
          Hello rronzz,

          Thanks for your post.

          Member Gorkhaan has provided good advise (Thanks!) and agree that unless you are using a special symbol, that Draw.Dot() may be a better way to go, however one limit is that the size of the dot is not adjustable. Reference: https://ninjatrader.com/support/help.../?draw_dot.htm

          You may be interested in a free and publicly available indicator that provide center of bar marks (on every bar) called CandleQuarters that can provide a mark on the bar at the center, upper quarter, lower quarter and pivot point. The marks are plots that you can turn off (by changing to transparent color) or changing the symbol via the PlotStyle selection. The plotted marker size can also be changed (where as Draw.Dot() would be a fixed size)

          This indicator is publicly available on our NinjaTrader Ecosystem website:
          Here is a basic guideline of how to Import NinjaScripts.

          To import NinjaScripts you will need the original .zip file.

          To Import
          1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
          2. From the Control Center window select the menu Tools>import>Ninjascript add-on..
          3. Select the downloaded .zip file
          4. NinjaTrader will then confirm if the import has been successful.

          Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

          Once installed, you may add the indicator to a chart by:
          • Right click your chart > indicators > Select the Indicator from the list on the left > New > OK

          The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
          HI.
          Where can I see a description of how to use the CandleQuarters indicator correctly

          Comment


            #6
            Hello VirginKZ,

            Thanks for your post and welcome to the Ninjatrader forums!

            The NinjaTrader8 version of the indicator was a conversion from the original NinjaTrader7 version provided by forum member BobC635. The information he provided concerning the indicator can be found here: https://ninjatraderecosystem.com/use...ndle-quarters/

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            599 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            345 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            558 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X