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 04-02-2009, 07:34 AM   #1
vit007
Junior Member
 
Join Date: Mar 2009
Posts: 16
Thanks: 0
Thanked 0 times in 0 posts
Smile automated trading

Hi all. Im planning to subscribe for Ninja service and I have just one question for you guys. At present time I trade futures with Infinity Futures and I use automated system based on Sierra Charts. Im planning to move my account from Infinity to futuresbetting.com,same idea but no commisions. Unfortunately they support only Ninja for automated trading. After contacting Sierra admin. they tolled me--- I can send the signals to Ninja through a text file.
I wonder if it works ??? and IF does would it slow down order processing ,get late feels ????
Thanks
Vitali.
vit007 is offline  
Reply With Quote
Old 04-02-2009, 07:59 AM   #2
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

Hi, welcome to our support forums! Yes, you can use OIF Files for automatic signal execution in NinjaTrader - http://www.ninjatrader-support.com/H...nFilesOIF.html

You will have to test this for your system, but the processing is instantly done the moment the files are writtten and saved to your harddisk, so you should get good fills.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-27-2009, 12:57 PM   #3
RobWalker
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Stop Loss and Take Profit

How do I set the Stop Loss and Take Profit on a Market Order in a OIF? The help shows me that I have optional parameters for [LIMIT PRICE] and [STOP PRICE]. Is this where I would set the values?
RobWalker is offline  
Reply With Quote
Old 05-27-2009, 01:18 PM   #4
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

RobWalker, welcome to our forums - best would be to use the PLACE command and then call an ATM strategy template to place your OCO stop and target - http://www.ninjatrader-support.com/H...nFilesOIF.html
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-27-2009, 01:45 PM   #5
RobWalker
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

Would the ATM override the quantity that I have specified in the OIF? I'm trying to make the quantity dynamic rather than static to a template.
RobWalker is offline  
Reply With Quote
Old 05-27-2009, 01:47 PM   #6
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

What is sent by the OIF is what will occur. You will want to have an ATM strategy template that matches what your OIF is sending as your entry.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-27-2009, 02:01 PM   #7
RobWalker
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

So just to confirm, if the OIF has a quantity of 2 and the ATM Strategy has a quantity of 1, which quantity would be used?
RobWalker is offline  
Reply With Quote
Old 05-27-2009, 02:07 PM   #8
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

RobWalker,

I think we have a misunderstanding. The ATM strategy called does not have a quantity for the entry. You send in an OIF for the entry quantity. If your entry was 2, but your ATM strategy only has rules defined out for 1, well you would have an extra 1 position at the end of the ATM.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-27-2009, 02:17 PM   #9
RobWalker
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

So only half my position would be covered with a Stop Loss and Take Profit? If my entry was 1 and the ATM strategy has a quantity of 2 would I get the Stop Loss and Take Profit for the full position?
RobWalker is offline  
Reply With Quote
Old 05-27-2009, 02:37 PM   #10
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

RobWalker,

Okay. It is easiest if you just try this and experiment with the behavior so you can see exactly what it does. Open up your NinjaTrader and connect to the Simulated Data Feed. Then just open up a chart and use the Chart Trader. Place a trade while attaching an ATM strategy that uses quantities not matched to the order. You will see that the ATM strategy's orders automatically adjusts the first stop/target quantity to address the mismatch.
NinjaTrader_Josh is offline  
Reply With Quote
Old 05-27-2009, 02:55 PM   #11
RobWalker
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks very much - I'm still finding my way around and the platform is all very new to me. One final question....does the ATM send the Stop Loss and the Take Profit to the broker's server so that the instruction is with the Broker? My concern is that if NT stops running on the client side machine for some reason, the Broker will not have the Stop Loss and Take Profit instructions?
RobWalker is offline  
Reply With Quote
Old 05-27-2009, 03:10 PM   #12
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

RobWalker,

This would depend on your brokerage. Now, any advanced stop strategy will for sure not be at the brokerage, but for the orders themself you will want to see this article: http://www.ninjatrader-support2.com/...ead.php?t=5349
NinjaTrader_Josh 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
The power of automated trading chipper338 Automated Trading 26 04-08-2009 10:52 AM
Automated trading cozar534 Automated Trading 11 03-04-2009 07:05 AM
Automated Scale trading AGtrader Automated Trading 1 07-18-2007 04:47 PM
How to Best Test Automated Trading Jim-Boulder Automated Trading 3 06-06-2007 11:32 AM
Automated Trading Travis Automated Trading 2 10-10-2005 07:59 AM


All times are GMT -6. The time now is 06:54 PM.