![]() |
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
I have a multi-symbol, single time frame, strategy. I have set 'days to load' to 100. I am running from the strategies tab in the control center.
In my Initialize() function I Add() about 100 symbols with the same bar type/interval as the primary series. In OnBarUpdate() I log every bar as the bar close event is triggered. For some reason, the first bar seen by my strategy is on 5/18. The first bar will not be any earlier no matter what value I set for 'days to load'. I have checked several of the symbols I am loading. Also, I performed a full reload of them from my IQ feed earlier today as well. The symbols I checked all had data for the timeframe and interval in question. What could be the cause of NT not triggering events for these bars that I have data for? Thanks! |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
I just thought of something.
FB is in my list of symbols that I am adding. Its first day was 5/18. Is it really possible that NT is trimming all the other symbols to the one with the shortest timeframe available?? That seems like a bad approach. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
|
Does the problem go away if you remove FB from the strategy?
|
|
|
|
|
The following user says thank you to Radical for this post: |
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Yes, FB is likely the issue here - as it would not have traded before - a MultiSeries script will be started getting OnBarUpdate() calls when the BarsRequired is satisfied for all involved series only.
Offering more flexibility here is on our feedback list for our next major NT update.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
Yes, so the bug is confirmed.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Hi zabar, this is not confirmed as a bug in our tracking as it's how the framework is operating at this point - we have this running as enhancement suggestion though to offer more flexibility.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
|
I can see how either behavior could be desirable. I would suggest a new input parameter to strategies. For instance, 'truncateTimeFrameToShortest' = T/F.
At a minimum this should be clearly documented. If I hadn't thought of FB, I would have been hunting around for a couple more hours at least. |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Thanks zabar, will suggest to amend our helpguide on this item and have added your vote in as well for this enhancement request.
Have a good weekend,
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading lots of bars without going overboard | egan857 | ATM Strategies (Discretionary Trading) | 9 | 01-01-2013 03:15 PM |
| Daily bars loading within indicators called by modules on minute bars | MicroTrends | Indicator Development | 19 | 11-15-2010 11:12 AM |
| Loading Range Bars | dwt1020 | Charting | 2 | 02-08-2010 11:47 AM |
| Chart not loading historcial Bars | morphtrade | Charting | 4 | 12-30-2009 07:12 AM |
| Suppress processing bars when loading strategy | atrader101 | Strategy Development | 2 | 09-23-2009 03:45 AM |