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 TraderIqbal, 10-20-2023, 10:12 AM
        2 responses
        117 views
        0 likes
        Last Post Funnywo
        by Funnywo
         
        Started by Creamers, 04-27-2024, 05:32 AM
        12 responses
        72 views
        0 likes
        Last Post Creamers  
        Started by fredericlebre, Today, 01:19 AM
        0 responses
        4 views
        0 likes
        Last Post fredericlebre  
        Started by TraderJA, Today, 12:06 AM
        0 responses
        6 views
        0 likes
        Last Post TraderJA  
        Started by SnailHorn, Yesterday, 10:49 PM
        0 responses
        8 views
        0 likes
        Last Post SnailHorn  
        Working...
        X