NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > ATM Strategies (Discretionary Trading)

ATM Strategies (Discretionary Trading) Support for Advanced Trade Management, AutoTrail, AutoBreakeven, Stop Strategy and Simulated Stops etc...

Reply
 
Thread Tools Display Modes
Old 02-22-2011, 10:12 AM   #1
Jim68
Junior Member
 
Join Date: Apr 2010
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default Ninja submits orders when opening

I had multiple orders open when Ninja stopped working. The problem I run into is if I restart NT7, it will submit orders complete stops, fill targets,etc..These are the orders that were still open at the time I had to close NT7. I have since closed these orders via my broker. How do I prevent NT7 from submitting these when I restart and connect to my broker and placing me in new positions?
Jim68 is offline  
Reply With Quote
Old 02-22-2011, 10:21 AM   #2
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,431
Thanks: 156
Thanked 262 times in 257 posts
Default

Hi Jim68,

Thank you for your post.

Upon restarting and reconnecting to your broker, NinjaTrader will request an update on the pending orders and open positions. Once NinjaTrader receives the update these orders/positions should be cleared from the system.
NinjaTrader_Kyle is offline  
Reply With Quote
Old 02-22-2011, 10:29 AM   #3
Jim68
Junior Member
 
Join Date: Apr 2010
Posts: 10
Thanks: 0
Thanked 0 times in 0 posts
Default

That hasn't been my experience in the past. It has filled stops and put me into long position or vice versa when connecting to the broker.
Jim68 is offline  
Reply With Quote
Old 02-22-2011, 10:32 AM   #4
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,431
Thanks: 156
Thanked 262 times in 257 posts
Default

Jim68,

One thing you could do, then, is to rename the NinjaTrader database.Doing so will cause NinjaTrader to create a new database on start up. Because of this, ATM strategy templates, custom instruments and instrument lists will need to be recreated. Order and execution history will be lost. (which will clear any pending orders as well)
To rename the database:
  • Shutdown NinjaTrader.
  • Open the Documents > NinjaTrader 7 > DB folder.
  • Right click on NinjaTrader.sdf and select "Rename." *
  • Rename the file 'OLDNinjaTrader.sdf'.
  • Finally, restart NinjaTrader.
NinjaTrader_Kyle 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
(Ninja Script) How to get the day's opening bar Force General Programming 7 12-02-2010 03:55 PM
Crash opening ninja script andrius Miscellaneous Support 1 09-29-2010 10:22 PM
Strategy submits orders in replay and realtime not in analyzer Sleeping Troll Strategy Analyzer 13 05-18-2010 04:11 PM
Missing Candles after opening Ninja Trader and Reload Historical Data quantus75 Charting 1 11-16-2009 07:21 AM
When opening Ninja Strategy Simulated account shows trades enterered prior suitguy1 Automated Trading 1 07-22-2008 10:12 AM


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