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 AaronKoRn, Yesterday, 09:49 PM
                0 responses
                11 views
                0 likes
                Last Post AaronKoRn  
                Started by carnitron, Yesterday, 08:42 PM
                0 responses
                10 views
                0 likes
                Last Post carnitron  
                Started by strategist007, Yesterday, 07:51 PM
                0 responses
                12 views
                0 likes
                Last Post strategist007  
                Started by StockTrader88, 03-06-2021, 08:58 AM
                44 responses
                3,982 views
                3 likes
                Last Post jhudas88  
                Started by rbeckmann05, Yesterday, 06:48 PM
                0 responses
                10 views
                0 likes
                Last Post rbeckmann05  
                Working...
                X