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 arvidvanstaey, Today, 02:19 PM
        4 responses
        10 views
        0 likes
        Last Post arvidvanstaey  
        Started by samish18, 04-17-2024, 08:57 AM
        16 responses
        57 views
        0 likes
        Last Post samish18  
        Started by jordanq2, Today, 03:10 PM
        2 responses
        8 views
        0 likes
        Last Post jordanq2  
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        47 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X