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 > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-08-2008, 11:38 AM   #1
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default What signals is NT sending to C2?

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!
cassb is offline  
Reply With Quote
Old 10-08-2008, 11:59 AM   #2
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

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!
cassb is offline  
Reply With Quote
Old 10-08-2008, 12:17 PM   #3
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

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.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-08-2008, 12:46 PM   #4
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

Quote:
Originally Posted by NinjaTrader_Ray View Post
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.

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!
cassb is offline  
Reply With Quote
Old 10-08-2008, 12:54 PM   #5
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-08-2008, 12:56 PM   #6
cassb
Senior Member
 
Join Date: Nov 2007
Location: Victor, NY
Posts: 577
Thanks: 5
Thanked 4 times in 4 posts
Send a message via Yahoo to cassb Send a message via Skype™ to cassb
Default

TraceOrders is always true, but I didn't have my Output window open... oh well. So I guess we'll never know.

Quote:
Originally Posted by NinjaTrader_Josh View Post
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.
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!
cassb 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
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


All times are GMT -6. The time now is 09:25 AM.