NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 06-21-2012, 09:54 PM   #1
zabar
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default strategy execution not loading # bars specified

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!
zabar is offline  
Reply With Quote
Old 06-21-2012, 09:59 PM   #2
zabar
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
zabar is offline  
Reply With Quote
Old 06-22-2012, 12:37 AM   #3
Radical
Senior Member
 
Join Date: Sep 2008
Posts: 543
Thanks: 80
Thanked 187 times in 131 posts
Default

Does the problem go away if you remove FB from the strategy?
Radical is offline  
Reply With Quote
The following user says thank you to Radical for this post:
Old 06-22-2012, 02:10 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-22-2012, 08:32 AM   #5
zabar
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Yes, so the bug is confirmed.
zabar is offline  
Reply With Quote
Old 06-22-2012, 08:35 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-22-2012, 08:38 AM   #7
zabar
Junior Member
 
Join Date: May 2012
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
zabar is offline  
Reply With Quote
Old 06-22-2012, 09:34 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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,
NinjaTrader_Bertrand 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
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


All times are GMT -6. The time now is 02:24 PM.