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-16-2009, 08:26 AM   #1
kjackson
Member
 
Join Date: Sep 2009
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default Buy stop and Sell Stop in the same strategy

I would like to create a strategy that sets both a buy-stop and a sell-stop at different prices, and then once one is filled, have it automatically cancel the other. Is this possible to do?

Thanks in advance,

Ken
kjackson is offline  
Reply With Quote
Old 11-16-2009, 08:41 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,215
Thanks: 82
Thanked 332 times in 324 posts
Default

Hello Ken,

You can accomplish a breakout/breakdown approach by:
  • Right click in the SuperDOM and select the menu "OCO Order" to enable this function
  • For your first order, select the desired option from the "ATM Strategy" drop down list
  • Submit your stop order to buy above the market
  • For your second order, select the desired option from the "ATM Strategy" drop down list
  • Submit your stop order to sell below the market
  • CRITICAL Right click in the SuperDOM and select the menu "OCO Order" to disable this function
For a market fade approach just subsitute limit orders for stop orders. This entry technique is demonstrated in our free ATM Level I training class that we hold several times per week. You can find a complete schedule of all upcoming events at the link below.
http://www.ninjatrader.com/webnew/tr...ine_events.htm
NinjaTrader_Jason is offline  
Reply With Quote
Old 11-16-2009, 09:25 AM   #3
kjackson
Member
 
Join Date: Sep 2009
Posts: 43
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Jason for the quick reply!

I'm a bit confused, is there no way to set this through a strategy that I can enable through the charts? I would like my single strategy to set both the buy and sell stop orders as opposed to me having to manually intervene. Is it the case that it can only be done using SuperDOM?

Ken
kjackson is offline  
Reply With Quote
Old 11-16-2009, 10:42 AM   #4
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,215
Thanks: 82
Thanked 332 times in 324 posts
Default

Hello Ken,

Please see the link below for information upon creating an automated strategy.
http://www.ninjatrader-support.com/H...dingLogic.html

In addition, I found the forum thread below regarding automated strategies and OCO orders.
http://www.ninjatrader-support2.com/...er+NinjaScript
NinjaTrader_Jason 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
How to enter OCO sell stop & buy stop? asalada Charting 7 09-17-2010 04:24 AM
Chart Trading with Buy Stop/ Sell Stop orders tschalli27 Charting 3 10-20-2009 03:35 PM
Buy / Sell Stop bsamani General Programming 5 12-11-2008 01:58 PM
Stop Buy Sell orders and new bars snaphook Strategy Development 1 11-18-2008 11:38 AM
Sell and Buy stop colors deanldavis475 Charting 1 01-14-2008 09:48 AM


All times are GMT -6. The time now is 01:14 PM.