![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2007
Location: Atlanta
Posts: 281
Thanks: 0
Thanked 4 times in 3 posts
|
What is the code sequence to control the "Min. bars required" for a strategy?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
TAJ the reference is simply BarsRequired:
Code:
protected override void Initialize()
{
BarsRequired = 10; // Do not plot until the 11th bar on the chart
}
Austin
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Min. bars required | SystemTrading | Strategy Development | 5 | 06-11-2009 10:37 AM |
| min Bar required | gg80108 | General Programming | 1 | 04-28-2009 12:08 PM |
| Min. Bars Required Question... | BigDog008 | Automated Trading | 3 | 12-26-2008 11:57 PM |
| 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 |