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 04-15-2008, 10:03 AM   #1
skynetman
Senior Member
 
Join Date: Mar 2008
Posts: 138
Thanks: 0
Thanked 0 times in 0 posts
Default Action: Buy to cover!?

My strategy acted on its mind and just sent a "buy to cover" order to close a short position . But i never told to do that in the code!
Sell short at 134,3
Buy to cover at 134.
It hould have bought at 135,7........
How is it possible?
skynetman is offline  
Reply With Quote
Old 04-15-2008, 10:32 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

You would have tor enable TraceOrders and review the log tab to see what may have happened.

- Buy to cover order action are only generated from a strategy so for sure it came from your strategy
- Maybe some exit on close handlling?
NinjaTrader_Ray 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
Simple time based action altrader General Programming 2 04-08-2008 10:34 AM
Any way to plot which condition set triggered the action? Elliott Wave Strategy Development 5 04-01-2008 07:49 PM
Taking action at the end of a session bbarroux Strategy Development 7 10-10-2007 07:22 AM
Forex trading - wrong reporting, wrong Close action, connecting jcervinka Miscellaneous Support 2 08-30-2007 09:42 AM
mmm missing chart action prostyle Miscellaneous Support 5 08-27-2007 01:11 PM


All times are GMT -6. The time now is 02:38 PM.