NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 11-12-2008, 03:26 PM   #1
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default Getting autotrader to take trades

OK, new to Ninja, trying to extract myself from TradeStation. Got an autotrader built, applied it to a chart, but it doesn't take trades, either on the sim account or live. It does for the programmer. I use patsystems for the data feed, he uses esignal(not sure if this matters).

Any help here?

Thanks,

Moneyman
moneyman is offline  
Reply With Quote
Old 11-12-2008, 03:31 PM   #2
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

Hi moneyman,

Welcome to the NinjaTrader Support Forums. Just to confirm, you are talking about a NinjaScript Strategy correct? Please first connect to your data provider, pull up a chart that is receiving streaming data, and then add the strategy onto the chart. Then take a look in the Control Center logs for any errors.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-12-2008, 03:34 PM   #3
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

OK, that is all working. I am getting a good feed from patsystems. no errors that i see.
moneyman is offline  
Reply With Quote
Old 11-12-2008, 03:54 PM   #4
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

Try throwing on the SampleMACrossOver strategy and see if that trades.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-12-2008, 03:57 PM   #5
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

Tried that, and it showed previous trades from the day on the chart. Didn't try it long enough to see if it was taking trades, but having the previous trades show up on the chart was more than my strategy was showing.
moneyman is offline  
Reply With Quote
Old 11-12-2008, 04:00 PM   #6
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

should AT Interface be checked?
moneyman is offline  
Reply With Quote
Old 11-12-2008, 04:03 PM   #7
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

AT Interface does not matter for NinjaScript Strategies. Since we have now confirmed that your NinjaTrader is not at fault since the standard SampleMACrossOver strategy is capable of trading you will want to go back to your programmer. You want to ask the programmer how to get it to work and if the strategy has been limited to real-time only.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-12-2008, 04:04 PM   #8
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

I did. He ran it on his chart successfully. Yet mine, it doesn't run. He has no idea...
moneyman is offline  
Reply With Quote
Old 11-12-2008, 04:14 PM   #9
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

moneyman,

We have no idea how your strategy is coded and as such we are not in a position to advise you. You could try reinstalling NinjaTrader along with .NET to see if that helps.

1. Backup anything you want via File->Utilities->Backup
2. Uninstall NT
3. Delete My Documents\NinjaTrader 6.5 folder
4. Uninstall .NET 2.0
5. Clear browser cache
6. Reinstall .NET 2.0
7. Reinstall NT
8. Try your strategy again
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-12-2008, 04:16 PM   #10
moneyman
Junior Member
 
Join Date: Nov 2008
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Default

ok, so can you point me to a place where ninja coding experts hang out, so i can contact one or more and see if they can solve this for me? My head is ready to explode trying to figure out what is most likely a very minor setting issue...
moneyman is offline  
Reply With Quote
Old 11-12-2008, 04:23 PM   #11
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

If you want you could hop over to the NinjaScript Strategy Development section and throw up your strategy there. See if people know what is going on, but the most useful source of information will still be from your programmer. Get him to provide you with exact steps to get it to work. Try running on the same instrument as him with the same settings. Ensure he is running it in real-time. You run in real-time as well. Eliminate all differences possible. Unfortunately we do not know how to provide you further support on this as this is a 3rd party script issue (we already confirmed that the default NinjaScripts worked on your end).
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-22-2011, 08:11 AM   #12
gjing
Junior Member
 
Join Date: Feb 2011
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

New to NT and have the same issue with NT 7. The standard SampleMACrossOver works well, but none of mine.

Any thoughts?

Thanks,

Gary
gjing is offline  
Reply With Quote
Old 02-22-2011, 11:01 AM   #13
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Welcome to our forums - are there any errors in the log tab of the Control Center? This would be the first place to check if you run into unexpected results. Are you having enough historical data loaded in your chart? Also it would be important to check your conditions are really triggering any trades, for this Print statements to debug are very helpful - http://www.ninjatrader.com/support/f...ead.php?t=3418
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-22-2011, 12:05 PM   #14
gjing
Junior Member
 
Join Date: Feb 2011
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Welcome to our forums - are there any errors in the log tab of the Control Center? This would be the first place to check if you run into unexpected results. Are you having enough historical data loaded in your chart? Also it would be important to check your conditions are really triggering any trades, for this Print statements to debug are very helpful - http://www.ninjatrader.com/support/f...ead.php?t=3418
Great. After using TraceOrders = true, the order seemed triggered and I saw the error message "... submitted an order that generated the following error 'OderRejected'. Strategy has sent cancel requests, attempted to close the position and terminated itself" in the message dialog. The opened position was closed immediately. Any ideals to fix that?
gjing is offline  
Reply With Quote
Old 02-22-2011, 12:48 PM   #15
gjing
Junior Member
 
Join Date: Feb 2011
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Looks like I have to use TraceOrders = true to have the strategy trigger the order, but I didn't see it in your sample.
gjing 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
IB TWS auto log off driving me nuts with strategy autotrader in NT scriabinop23 Connecting 11 03-19-2013 11:19 AM
testing trades diffused Miscellaneous Support 3 11-03-2008 05:10 AM
Live trades not appearing in Positions tab but bogus trades showing up bluelou Automated Trading 5 10-16-2008 06:39 AM
how to not have your trades on the chart? chan123 Charting 1 08-21-2007 11:46 PM
NT AutoTrader in Sim mode DennisAndLisa Automated Trading 1 01-08-2006 07:17 AM


All times are GMT -6. The time now is 08:52 PM.