![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |