![]() |
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: Jan 2009
Location: Melbourne
Posts: 178
Thanks: 3
Thanked 0 times in 0 posts
|
All,
A question in relation to NT7 multi-timeframe multi-instrument strategies. The below code snippet is executed as part of a strategy on a 10min chart. Code:
protected override void Initialize()
{
Add(PeriodType.Minute,30);
Add("^SP500",PeriodType.Minute,10);
Add("^SP500",PeriodType.Minute,30);
}
protected override void OnBarUpdate()
{
if (FirstTickOfBar)
{
if (CurrentBar < 200) return;
Print (Time.ToString() + " - " + BarsInProgress);
}
}
17/09/2010 11:30:00 AM - 0However, BarUpdates are not being processed as expected, it seems BarUpdates are being randomly skipped. Regards Shannon |
|
|
|
| Tags |
| firsttickofbar, instruments, multi, nt7, timeframe |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SetStopLoss() in multi timeframes | DarthTraderson | Strategy Development | 11 | 03-01-2013 03:39 AM |
| Multi TimeFrames -- 2nd Secondary | dpennypacker | Version 7 Beta General Questions & Bug Reports | 7 | 06-30-2010 04:38 PM |
| Problem with multi instruments?.. | Godo78 | Strategy Development | 7 | 05-12-2010 04:15 PM |
| RSI (multi timeframes) returned values are different between Ninja 6.5 and 7 | Jean-Marc-Molina | Version 7 Beta General Questions & Bug Reports | 6 | 11-16-2009 08:51 AM |
| How to strategy test against multi timeframes ? | wcredle | Strategy Analyzer | 1 | 03-13-2009 03:37 PM |