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 > 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 02-11-2009, 02:30 PM   #1
doc11
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default Error in execution

Hello,

I have multiple trades Running.
If I now send a trade, which can not be executed (no Money).
Why are all my active trades then closed?
doc11 is offline  
Reply With Quote
Old 02-11-2009, 02:53 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

doc11,

Are you doing discretionary trading? NinjaScript Strategy? Please clarify. Thank you.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-11-2009, 02:55 PM   #3
doc11
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default

NinjaScript Strategy.

I have noted, if a trade of NinjaTrader can not be executed,
NinjaTrader automatically closes all open positions.

how can I prevent it?
doc11 is offline  
Reply With Quote
Old 02-11-2009, 03:08 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

doc11,

This occurs when the strategy runs into an irreconcilable error. When you submit an order that is rejected, NinjaTrader does not know how you want to handle this and as such it will cancel any working orders. This is to limit any potential fall out. If you feel like the order is reconcilable you can override this behavior with this: http://www.ninjatrader-support.com/H...rHandling.html

We do NOT recommend you using this unless you have absolute confidence that you have programmed a fall out plan for every possible scenario.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-11-2009, 03:33 PM   #5
doc11
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for the help.
doc11 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
Phantom execution MelbourneRich Miscellaneous Support 1 08-13-2008 07:10 AM
Order execution funky_boy Strategy Development 11 07-18-2008 01:19 AM
Weird execution error ct Strategy Development 1 07-16-2008 11:07 AM
Two step execution stefy Strategy Development 3 05-12-2008 03:19 PM
Execution on the same bar MrBaffalo Strategy Development 3 01-23-2007 01:57 AM


All times are GMT -6. The time now is 01:42 AM.