Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Stop Orders

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

    Multiple Stop Orders

    Are Multiple Stop Orders Possible with a single entry order?

    pseudo Code:

    EnterLongLimit(price0)

    ExitLongLimit(price4)
    ExitLongStop(price1)
    ExitLongStop(price2)
    ExitLongStop(price3)

    #2
    Hello neb1998,

    In order to scale out of a strategy, you must first scale in with separate entry names. We have a sample scaling strategy available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      What i want to do is enter 100 contracts with the first entry and then the 4 different exits will also exit the entire position with 1 exit order. The 4 different orders are just 4 different price points i want to assign to the single entrance order.

      So not a scaling in and out strategy

      Comment


        #4
        It will only submit the first order received on each side. In your example you would have your first limit order and first stop order submitted. The rest will be ignored with message:
        'This was an exit order but no position exists to exit'.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks,

          If i use the unmanaged approach is it possible for these type of exits to be used?

          Comment


            #6
            Yes, with unmanaged strategy, none of the internal management is in place. You can submit exit orders at different price levels, although there is no built in functionality in place to cancel them once the first exit order is filled. You have to manually send CancelOrder() commands to these orders.
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              Perfect, thank you!

              I was starting to work on that but i noticed in backtesting that all 4 orders were being placed but in live testing that only 2 of them were being placed.

              Converting from multiple data series in MC to ninja is not quite the same, although in MC it doesnt work in real time anyway.

              Comment


                #8
                There is no meaning in placing several exit orders. The closest will be executed and you will be out. Why do you need more?
                Maybe what you want is to change the order if some conditions are met.

                Baruch

                Comment


                  #9
                  I am basically accomplishing the same thing as SetStopLoss, Set profit target, and set trailing stop & and another proprietary exit all together manually. The logic that goes into how they operate is different than that of ninja's included exits. Its a MC to ninja conversion, it worked perfect in MC, just trying to port it.

                  Changing the order type might be one option but thats more complex code.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by zstheorist, Today, 07:52 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post zstheorist  
                  Started by pmachiraju, 11-01-2023, 04:46 AM
                  8 responses
                  149 views
                  0 likes
                  Last Post rehmans
                  by rehmans
                   
                  Started by mattbsea, Today, 05:44 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post mattbsea  
                  Started by RideMe, 04-07-2024, 04:54 PM
                  6 responses
                  33 views
                  0 likes
                  Last Post RideMe
                  by RideMe
                   
                  Started by tkaboris, Today, 05:13 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post tkaboris  
                  Working...
                  X