![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2008
Posts: 138
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
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?
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |