Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Which bars to display?

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

  • NinjaTrader_Jesse
    replied
    Hello afshinmoshrefi,

    Thank you for the post.

    At this time there is no way to control this from NinjaScript. The bars on a chart would be controlled by the DataSeries window in the chart. You can add secondary series to your script with a set number of bars to load, however, this will not affect the charts visual bars.

    Code:
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, int barsToLoad, string tradingHoursName, bool? isResetOnNewTradingDay)
    https://ninjatrader.com/support/help...=adddataseries

    I look forward to being of further assistance.

    Leave a comment:


  • afshinmoshrefi
    started a topic Which bars to display?

    Which bars to display?

    How can I control how many bars are displayed on a chart inside indicator code?

Latest Posts

Collapse

Topics Statistics Last Post
Started by guenni7, Today, 09:43 PM
0 responses
2 views
0 likes
Last Post guenni7
by guenni7
 
Started by jonfan45, Today, 06:06 PM
0 responses
9 views
0 likes
Last Post jonfan45  
Started by rustyspring, Today, 05:15 PM
0 responses
13 views
0 likes
Last Post rustyspring  
Started by xulu13, Today, 05:01 PM
0 responses
15 views
0 likes
Last Post xulu13
by xulu13
 
Started by Pbarrionuevo, Today, 04:30 PM
0 responses
12 views
0 likes
Last Post Pbarrionuevo  
Working...
X