NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-28-2010, 08:21 AM   #1
maumau72
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Number of historical bars

I would like to ask how do I set the number of historical minute bars (or the number of days) a strategy loads when started. I am connected to ZenFire.

Thanks
maumau72 is offline  
Reply With Quote
Old 04-28-2010, 08:45 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Maumau72,

Welcome to our forums!

When you run a Strategy from the chart, the bars loaded is defined according to the Charts range. You can increase or decrease by right clicking and selecting Format data series. Adjust the Days back setting.

When you run the strategy from the control center, it will give you the option of setting the date range.

Once you set the range, the strategy won't actually start running until the Minimum Bars Required has been met.
Attached Images
File Type: gif StratMinBars.png (40.0 KB, 5 views)
NinjaTrader_RyanM is offline  
Reply With Quote
Old 04-28-2010, 09:00 AM   #3
maumau72
Junior Member
 
Join Date: Apr 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Number Historical Bars

Ryan,
I am afraid I do not see where in the UI I set the date range when running a strategy from the control center.
Thanks
maumau72 is offline  
Reply With Quote
Old 04-28-2010, 09:13 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

I apologize. This setting is available from the version 7 ui, but not 6.5.

When using 6.5 you will have to set the default lookback under Tools > Options > Data.
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of Bars and Indicator Labels BlackJack Suggestions And Feedback 10 12-13-2011 07:07 AM
Volume Profile over number of bars? edsfreedom NinjaScript File Sharing Discussion 6 11-05-2010 06:32 PM
Average number of Up Bars Vs. Down Bars Dope63 Strategy Development 4 03-23-2010 06:50 PM
Number of bars of a session pespinar General Programming 1 03-16-2010 04:09 AM
Req: Access to number of historical bars processing tazatek Suggestions And Feedback 2 11-17-2009 01:34 AM


All times are GMT -6. The time now is 04:24 AM.