![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
Collective2 signal (35630612) processed successfully: http://www.collective2.com/cgi-perl/...version=651006
Collective2 signal (35630624) processed successfully: http://www.collective2.com/cgi-perl/...version=651006 This is a buy, then a sell, of 4 contracts of YM. The buy order was done by C2. The sell order was not. So this position has been open all day without me knowing it. Is it because you are sending a "STO" order when it should be a "STC"? The code simply issues a ExitLong("tag") command to exit the position. Thanks, Bryan
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
|
#2 |
|
Senior Member
|
I'm sorry. Scratch that last quote of the C2 signals. This is the signal that I need to talk about:
Collective2 signal (35631233) processed successfully: http://www.collective2.com/cgi-perl/...version=651006 OK, this signal was sent at 10:01. Here is the transaction in the NT log: 7 YM 12-08 Sim101 SwingBreakouts Long 4 9653 9638 10/8/2008 10:00 10/8/2008 10:00 Breakout Long Sell -319 -396.5 19 300 0 0 1 You can see that this order was closed in NT, but the above signal was the only one sent to C2 regarding this order. So that's why there has been a position open all day... and the position was a long position too. I am totally confused as to what happened. Bryan
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Not sure I follow.
Signals are sent to C2 as either buy or sell on the fill of an order in NT. If for some reason the order sent to C2 failes (could not reach their servers) any further signals will not be submitted.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#4 | |
|
Senior Member
|
Quote:
I got no error messages. Why was the Sell order sent, but not the buy order before that?
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Please use TraceOrders = true as per this tip to debug what happened to your order in NinjaTrader: http://www.ninjatrader-support.com/v...ead.php?t=3627
It may have been ignored or rejected or anything.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 | |
|
Senior Member
|
TraceOrders is always true, but I didn't have my Output window open... oh well. So I guess we'll never know.
Quote:
Price-Dynamics.com
A NinjaTrader Official Partner Visit http://www.price-dynamics.com to learn more about the Rhythm Relay trading system. Yes, you can discretionary or auto-trade with 75%+ accuracy! Use our Contact Us page to request free access to our daily Trader's Lounge where you can see the system in action in a live account! |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending orders to a specific account | naifwonder | General Programming | 4 | 07-03-2008 08:03 PM |
| Aut. Trading with strategy > StopLoss is sending as StopLimit? | Torso | Automated Trading | 5 | 08-17-2007 10:49 AM |
| Sending E-mail upon order execution | dgregor5 | Automated Trading | 25 | 07-30-2007 01:19 PM |
| Sending executions by email | cprins | Suggestions And Feedback | 1 | 01-04-2007 01:21 AM |
| sending orders | manefaces | Automated Trading | 4 | 03-25-2005 08:18 AM |