NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-10-2007, 09:39 AM   #1
woodside
Member
 
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default multi time frame error

Came across an issue with multi time frame strategies.

My strategy runs on a one minute bar, I add in a 15 minute bar. The entire strategy runs within barsinprogress=0

Every 15 minutes my order(s) get cancelled, then resubmitted a minute later.

This ONLY happens with real accounts (both IB and MBT). Running it on simulation accounts the orders don't get canceled and seem to work like they should.

-Erik
woodside is offline  
Reply With Quote
Old 12-10-2007, 11:03 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

You would need to debug your strategy in order to understand why it fails:
http://www.ninjatrader-support.com/v...ead.php?t=3627
http://www.ninjatrader-support.com/v...ead.php?t=3418
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-10-2007, 11:07 AM   #3
woodside
Member
 
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default

This is the cancel message:

12/10/2007 11:00:02 AM Cancelled expired order: BarsInProgress=1: Order='0tu0808:042i/72435209' Name='LongLimit' State=Working Instrument='YM 12-07' Action=Buy Limit price=13729 Stop price=0 Quantity=1 Strategy='RegressionOneMinute' Type=Limit Tif=Gtc Oco='' Filled=0 Fill price=0 Token='8dc589c61f0a4590bdf31a8daf09e625'

The orders are all getting set with barsinprogress=0

This works fine on sim accounts, not on real accounts.

I don't use barsinprogress=1 anywhere in my stragegy.
woodside is offline  
Reply With Quote
Old 12-10-2007, 11:10 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please provide a simple as possible strategy which exhibits your problem and either post is here or mail it to "dierk AT ninjatrader DOT com".

Also: please provide a screenshot of the strategy settings you apply. Thanks
NinjaTrader_Dierk 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
CurrentBar and Multi Time Frame maxpi Strategy Development 7 07-31-2009 01:07 PM
multi time frame does not take a trade ceesvh Strategy Development 9 11-17-2008 05:47 PM
multi time frame question pdawg Strategy Analyzer 5 10-18-2007 02:23 PM
Referencing Multi-time frame indicators mwusu Strategy Development 2 08-13-2007 02:21 PM
Multi-time frame scjohn Strategy Development 1 06-06-2007 07:20 PM


All times are GMT -6. The time now is 10:55 PM.