Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

takeProfit and stop loss with unmanaged approach

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

    takeProfit and stop loss with unmanaged approach

    hi

    i am new to automated trading domain and ninja trader .can any one please tell how can i place stop loss and take profit with unmanaged approch ?

    thanks
    Last edited by tazz90; 04-21-2013, 08:41 AM.

    #2
    Hello tazz90,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    Using SubmitOrder() with OCO ids and IOrder objects to check the status and read the name of the order you can place protective Stops and Targets using the Unmanaged Approach.

    I recommend reviewing the following forum thread for information on this item: http://www.ninjatrader.com/support/f...ad.php?t=52561

    For information on IOrder objects please visit the following link: http://www.ninjatrader.com/support/h...nt7/iorder.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thank you so much Patrick for replying
      as i have told you, i am new to ninja trader that's why i don't know much about it .
      my questin is why should i submit my order with OCO ids right now am doing simply
      buyOrderId = SubmitOrder(0, OrderAction.Buy, OrderType.Market,(int) orderQuantity,0,0,"","Enter Long");
      what is OCO purpose . i have looked at little description about OCO in submit order but that didnt help me much
      can you tell me about OCO?

      Comment


        #4
        Hello taxx90,

        Thank you for your response.

        OCO is One Cancels Other. The application of this in this case is to set your Profit Target and Stop Loss to the same OCO id. So that when either the Stop or Profit is filled the opposite order is cancelled.

        An example would be if your Profit Target was filled the Stop Loss would be cancelled so that you do not have an order waiting to be filled that you do not want.

        You can view a video on OCO orders at the following link: http://www.ninjatrader.com/support/m...cels-Other.htm

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmoran13, Yesterday, 01:02 PM
        0 responses
        23 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        94 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        147 views
        2 likes
        Last Post CaptainJack  
        Working...
        X