NinjaTrader Support Forum  

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 11-12-2010, 02:50 PM   #1
paulca
Member
 
Join Date: Apr 2010
Posts: 65
Thanks: 2
Thanked 0 times in 0 posts
Default Multiple Timeframe problem in 7.0

Version 7.0.0.23.

We have been running a multiple TtimeFrame strategy in 6.5 with the same instrument in both TF's. We discovered early on that even though we are only trading on the Primary TF, an entry order (a stop entry) has to be resubmitted on both TF's otherwise the order is cancelled when exiting the secondary timeframe OnBarUpdate(). Note that we set the EntriesPerDirection property to 1 during initialization.

We recently moved the strategy to 7.0 and found that the order (re)entry on the secondary TF is intermittently having the order rejected with the following error:

'Exceeded entry signals limit based on EntryHandling and
EntriesPerDirection properties'

and a null IOrder is returned. We are currently testing an "all in/all out" strategy so it's not currently a problem but would be for a "scale in" strategy.

Attached is a copy of the output window with our log entries and NT log entries (TraceOrders property is set to true).
Attached Files
File Type: zip ReEntryError70.zip (137.8 KB, 3 views)
paulca is offline  
Reply With Quote
Old 11-12-2010, 03:04 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Paulca,

Quote:
We discovered early on that even though we are only trading on the Primary TF, an entry order (a stop entry) has to be resubmitted on both TF's otherwise the order is cancelled when exiting the secondary timeframe OnBarUpdate().
This shouldn't be a requirement. You can submit orders to only one time frame, and use the liveUntilCancelled property = true for the order to remain active beyond the bar it's submitted on.
NinjaTrader_RyanM 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
Multiple Timeframe questions paulca Strategy Development 3 07-24-2010 12:55 PM
Strategy wizard multiple timeframe ct Strategy Development 3 04-04-2009 11:47 AM
multiple timeframe in a chart stevebong Charting 1 02-20-2009 03:27 AM
multiple timeframe indicators in one chart? Kalle NinjaScript File Sharing Discussion 3 02-18-2009 06:21 AM
Detection of Coterminious Multiple-Timeframe Bar Closures whitmark Strategy Development 1 11-05-2007 09:04 AM


All times are GMT -6. The time now is 04:30 AM.