Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator for currentBars

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

    Indicator for currentBars

    Hey, I'm using NT8 via a virtual machine on Mac and for some reason Drawings created by strategies will not draw on my chart. I guess it's a limitation of the virtualmachine.

    Indicators do however work.

    I want an indicator that displays the same number as the currentBars variable in strategies on my chart. All the indicators I've found simply display the bar count from the start of the day session but it seems like currentBars is showing the bars starting counting from the weekly session?



    In the script output I can see the bars seems to start counting from 06.21.24. So today for example my bars are already around 1500 on the 2000 tick chart.

    The indicators I've found simply number the bars from the start of the day session.

    #2
    Hello lucyb​,

    Thank you for reaching out.

    I would suggest searching the user ecosystem for custom NinjaScripts that may accomplish the same goal or closely resemble the indicators your have mentioned;

    Please try searching here:

    Trading Indicators | Automated Strategies | Trading Apps | NinjaTrader Ecosystem

    Here is a basic guideline of how to import NinjaScript add-ons in NinjaTrader 8:
    Note — 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 'Available' list on the left > Add > OK


    Here is a short video demonstration of the import process:

    Please let us know if we can be of further assistance.
    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.
    Erick P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X