Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Limit and Market entry order at the same time

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

    Limit and Market entry order at the same time

    Is there a way to submit order 1 contract each on market and limit price?

    #2
    luxurious_04, yes you could submit 2 entryorder calls, one EnterLongLimit and one EnterLong for example. For this to work you would need to ensure the entry Handling is set to UniqueEntries (if you named each entry uniquely) or a high enough EntriesPerDirection -

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      luxurious_04, yes you could submit 2 entryorder calls, one EnterLongLimit and one EnterLong for example. For this to work you would need to ensure the entry Handling is set to UniqueEntries (if you named each entry uniquely) or a high enough EntriesPerDirection -

      http://www.ninjatrader.com/support/h...=EntryHandling
      Bertran:

      Thank you so much Bertran. But I just have some question on the handling of it. For example the submitting of stops and targets on it. Sometimes the EnterLongLimit doesn't working well, sometimes the order didn't filled while if I used calling ATM strategy template the order was filled.

      Comment


        #4
        Could be the case, since the limit order entry would just be valid for one bar update per default, then the order would expire. You could submit via liveUntilCancelled as well and then self CancelOrder() it should it not be required anymore.

        Comment


          #5
          So I think I will be using LiveUntilCancel on a limit order and I think I will have to use also CancelOrder() for I want to cancel it the current price already 8 ticks from the entry and the order is still working or not yet filled. Also I want to cancel the market order if the limit order filled first or vice versa. Is there a way on that?

          Comment


            #6
            You could check the fillstates of each IOrder issued and thus prevent in your condition from 'double firing', however I'm pretty certain the market order would be filled first most of the time.

            Comment


              #7
              I realized that also. Anyway I am not used to using IOrder method. I am only using calling ATM strategies for a long time but calling ATM strategies requires a lot of time in testing that's why I'm trying to convert it into IOrder so that I could strategy analyzer on it. Also if you have some ideas on submiting a targets and stops which are related to IOrder tell me also. Even a method to exit an open position when it reach my exit parameters.

              Comment


                #8
                Sure luxurious_04- you could directly check into this sample here - http://www.ninjatrader.com/support/f...ead.php?t=7499

                Comment


                  #9
                  Bertan:

                  Thank you for that sample. I will just have to ask you if anything I wanna know. Your the best man in this business. Thanks again.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  119 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  63 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  41 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  45 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  82 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X