![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Apr 2012
Posts: 16
Thanks: 0
Thanked 0 times in 0 posts
|
Hello my question is about a bracket OCO order. I want to set one order to cancel only after a certain condition is met on the other open order. For example if im trading Forex. I set buy and sell entry points at 60 and 30. I enter buy at 60 but dont want the other sell order to cancel until I reach price of 75. How would i go about setting this up? thanks in advance
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
Camron, you could set this up in unmanaged order submission approach, the SubmitOrder methods offer an inbuild OCO tag, however for your task you would then want to provide the OCO cancel logic in your code yourself so you can monitor price for your cancellation condition and then send the CancelOrder() for part of the bracket - http://www.ninjatrader.com/support/h...d_approach.htm
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2012
Posts: 16
Thanks: 0
Thanked 0 times in 0 posts
|
how to i go about setting up an unmanaged order? where do i go to do this? how do i set up the code, Is this a ninja script strategy?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
|
Hello,
Yes, you would set this up through your NinjaScript Strategy. You can find more information on the unmanged order methods from the following link. Getting Started with Unmanaged Order Methods Please note that these order methods have been reserved for more experienced programmers as it does require to program your order handling rules:
Matthew
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OCO Order | Romulan | Version 7 Beta General Questions & Bug Reports | 4 | 11-10-2010 05:27 AM |
| can you designate an OCO after you've placed an order | crmcwi | ATM Strategies (Discretionary Trading) | 4 | 05-21-2010 08:37 AM |
| Is it possible to attach an OCO order pair to a limit order? | clearpicks | Automated Trading | 1 | 09-17-2009 12:22 PM |
| OCO Entry Order | Klaus Hengher | Strategy Development | 1 | 09-01-2009 07:20 AM |
| OCO order error | cesas | Automated Trading | 58 | 06-26-2009 10:49 AM |