Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to stop order by name using stop lost

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

    How to stop order by name using stop lost

    Hi,

    Is it possible to set stop lost order stop specific orders?

    eg. I have 3 entry with 3 stop lost orders. Named entry1,entry2,entry3, sl1,sl2,sl3.
    When entry1 filled trigger sl1, entry2 filled trigger sl2,...
    When the price is going to sl1 price, how can I just stop lost entry1 orders?

    Thanks,

    #2
    Hello thomson,

    You may use OnExecution() to be able to tell when the entry1 is filled and then submit your sl1 order at this time. Here is a thread that you may view that has an example of this.

    The OnOrderUpdate() and OnExecution() methods are reserved for experienced programmers. Instead of using Set() methods to submit stop-loss and profit target orders, you can submit and update them manually through the use of IOrder and IExecution objects in the OnOrderUpdate() and OnExecution() methods. The OnOrderUpdate()
    JCNinjaTrader Customer Service

    Comment


      #3
      Thanks for your quickly respond.
      I need clarify my question. My question is I have entry1,2,3 and sl1,2,3 already. How can I make sl1 just stop lost entry1 orders, stop lost 2 stop entry2 orders?
      I prefer using unmanage code submitorder to submit stop lost orders.

      Thanks,
      Last edited by thomson; 01-29-2014, 03:56 PM.

      Comment


        #4
        Hello thomson,

        Thanks for clarifying that. Using the Unmanaged Approach there is no way to tie entry orders together with stop loss orders. With that said, NinjaTrader will try to tie order together by way of FIFO (First In First Out) so if you want you may check the prices of your other entry orders and make sure that "sl1" will be filled first before "s2" and ect... when the price is too close you may change the order.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        115 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        161 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        83 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        127 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        87 views
        0 likes
        Last Post PaulMohn  
        Working...
        X