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

?

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

    ?

    Is there an indicator that will count the bars? I did it manually.

    ty
    Attached Files

    #2
    Hello bdelorm,

    Thank you for your post.

    Which bars are you looking to count?

    Are you looking for the total count of bars or from a certain point?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      The total count of a price bar when it finish!

      Comment


        #4
        bdelorm,

        You can use CurrentBar to return the total amount of completed bars on the chart.

        I'm not aware of any indicator that does just this function.

        However, note that CurrentBar starts at 0 for counting. So, if 500 gets returned, then there are 501 bars completed on the chart.

        http://www.ninjatrader.com/support/h...currentbar.htm

        Let me know if I can be of further assistance.
        Last edited by NinjaTrader_CalH; 10-21-2014, 08:34 AM.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          and where can I found that indicator?

          Comment


            #6
            bdelorm,

            There is no indicator for this. This is a NinjaScript item that can be called to return the number of bars.
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              so what do I do? Im sorry I dont understand

              Comment


                #8
                Hello bdelorm,

                I was able to find an Indicator that will just print the number of bars that you are looking for on the chart.

                I have attached this indicator to my post

                You will need to download and import this into NinjaTrader -
                To Import

                * Download the indicator to your desktop, keep them in the compressed .zip file.
                * From the Control Center window select the menu File> Utilities> Import NinjaScript
                * Select the downloaded .zip file
                * NinjaTrader will then confirm if the import has been successful.


                Critical - Specifically for some indicators, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'
                Attached Files
                Cal H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cre8able, Yesterday, 01:16 PM
                3 responses
                11 views
                0 likes
                Last Post cre8able  
                Started by ChartTourist, Today, 08:22 AM
                0 responses
                4 views
                0 likes
                Last Post ChartTourist  
                Started by LiamTwine, Today, 08:10 AM
                0 responses
                2 views
                0 likes
                Last Post LiamTwine  
                Started by Balage0922, Today, 07:38 AM
                0 responses
                5 views
                0 likes
                Last Post Balage0922  
                Started by JoMoon2024, Today, 06:56 AM
                0 responses
                6 views
                0 likes
                Last Post JoMoon2024  
                Working...
                X