Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars to load

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

    Bars to load

    Hi support!

    How can i keep the exact number of bars in the Data Series?When i try to implement the exact number of bars,it doesnt happen and as the price moves on i have the additional bars i do not want.What can be done about it?

    Thx

    #2
    Hello SnakeEYE,

    For something like that I believe you would have to create a custom bar type to be able to control the bar count like that. Creating custom bar types is unfortunately not supported by NinjaTrader. However, you can review source code for existing bar types and could create your own as well. You will need something like Visual studio or a text editor to open this file here:
    Documents\NinjaTrader 7\bin\custom\type\@BarTypes.cs

    You could also take a look at the source code for indicator HeikenAshi, which is a kind of bar type but developed as indicator. Can view this using Tools > Edit NinjaScript > Indicator > Select HeikenAshi and open.

    Otherwise, if you are worried about performance you can always set the Maximum number of bars that your NinjaScript code can look at using the MaximumBarsLookBack.
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    6 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X