Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stop loss & profit target orders get activated only after buy stop order is execute

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    stop loss & profit target orders get activated only after buy stop order is execute

    Hi,

    I am trying to write a simple breakout strategy in NinjaTrader. Basically when certain condition is met, I would like to send a buy stop order to IB and the corresponding stop loss and profit target orders are sent out at the same time. However that stop loss and profit target orders only sit on IB's server and are not activated. Only when that buy stop order is executed, the stop loss and profit target orders will be activated. I don't want NinjaTrader to manage the stop loss and profit target orders, otherwise if the network gets disconnected and that buy stop order is executed during this period, it is not protected. Is there any good solution to insure my position is always protected by a stop loss order?

    I just found out an old post http://www.ninjatrader.com/support/f...ight=stop+loss. It seems these is no good solution to prevent the risk of a naked position in case of network disconnection unless my strategy monitors the quote tick by tick and when the buy stop order is reached, send out a buy market order and the stoploss and profittarget oco orders at the same time instead of waiting for OnExecution().

    - Clearpicks
    Last edited by clearpicks; 07-20-2010, 10:16 PM.

    #2
    Hi clearpicks,

    With the internal handling rules described at the bottom of the page here - http://www.ninjatrader-support.com/H...tml?Overview36

    ...you will likely see orders ignored if you attempt to do this by simply submitting an order along with the entry.

    You may be able to achieve this with Unmanaged orders:


    Or you can simply submit an order manually to protect the order, however that will of course need to be monitored as well.
    TimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    5 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    12 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,982 views
    3 likes
    Last Post jhudas88  
    Working...
    X