NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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 02-12-2009, 07:18 AM   #1
SystemTrading
Senior Member
 
Join Date: Aug 2008
Location: Orlando, Florida
Posts: 166
Thanks: 0
Thanked 0 times in 0 posts
Default Min. bars required

how would I change this to default to a number other than 20?
SystemTrading is offline  
Reply With Quote
Old 02-12-2009, 07:28 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

BarsRequired = x
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-11-2009, 10:00 AM   #3
trader20
Junior Member
 
Join Date: May 2009
Location: Utah
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default Minbars required

So the only way to change the BarsRequired value for a built in indicator (like Range) is to make my own copy and add the BarsRequired statement?
trader20 is offline  
Reply With Quote
Old 06-11-2009, 10:02 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

That is correct.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-11-2009, 10:34 AM   #5
trader20
Junior Member
 
Join Date: May 2009
Location: Utah
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default

Suggestion for future release: Make BarsRequired a value that can be changed under the General section when you add an indicator to a chart, like Auto scale, or Displacement. Also, allow the user to change the program wide default value under the Options menu in the Control Center.
trader20 is offline  
Reply With Quote
Old 06-11-2009, 10:37 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Thank you for your suggestion. We will add it to the list of future considerations.
NinjaTrader_Josh 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
Min. Bars Required Question... BigDog008 Automated Trading 3 12-26-2008 11:57 PM
Enter on bars, exit on ticks and min bars requirment coolraz Strategy Development 3 12-15-2008 09:59 AM
Min bars required in a live strategy bluelou Strategy Development 5 08-25-2008 12:04 PM
Min Bars required under strategy backtesting Sidhartha Strategy Development 4 04-08-2008 07:17 AM
required bars behealed Miscellaneous Support 1 04-03-2008 09:48 PM


All times are GMT -6. The time now is 11:30 PM.