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 pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    66 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    15 views
    0 likes
    Last Post benmarkal  
    Started by f.saeidi, Today, 01:38 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X