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

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.
      Paul H.NinjaTrader Customer Service

      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/

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by llanqui, Today, 11:10 AM
            0 responses
            4 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by llanqui, Today, 10:29 AM
            0 responses
            5 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by llanqui, Today, 08:32 AM
            1 response
            12 views
            0 likes
            Last Post llanqui
            by llanqui
             
            Started by lollers, Yesterday, 03:26 AM
            1 response
            53 views
            0 likes
            Last Post lollers
            by lollers
             
            Started by Salahinho99, 05-05-2024, 04:13 AM
            7 responses
            63 views
            0 likes
            Last Post Salahinho99  
            Working...
            X