Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimt() questions

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

    EnterLongLimt() questions

    I want to make a strategy using EnterLongLimit() and other limit orders.

    1) Is there an example strategy anywhere using limits?

    2) Since the limit orders must be re-entered every tick, what if the limit was for 200 and 100 were filled? Do you need to re-enter at 100 then or still re-enter at 200?

    Thanks,

    Folls

    #2
    1) This one here (http://www.ninjatrader-support.com/v...ead.php?t=3223) uses EnterLongStop(). It is implemented in the same way you would implement EnterLongLimit() though.

    2) I believe you don't need to modify the order when it is resubmitted. NT will understand it was a partial fill and continue to try to fill your original order.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks!

      Folls

      Comment


        #4
        Partial fills.

        I want to make sure that in fact the engine does continue to place EnterShortLimit() and EnterLongLimit() orders with a new qty once a partial fill occurs as long as I continue to issue the order every OnBarUpdate() event.

        Example:
        DefaultQuantity = 2

        I am long two contracts and I place EnterShortLimit(DefaultQuantity,price,"GoShort")
        ) order above market action, two contracts gets filled, I continue to place the EnterShortLimit() order regardless if the Position.MarketPosition == MarketPosition.Flat ... will it know to place an order for net 2 short.

        Any variation of the above test perfectly in backtest since it is always assumed that all qty is filled when a fill happens .. I just need to make sure that this does work correctly in live.

        -Lars

        Comment


          #5
          It is expected to work live however, that's one of the benefits of NinjaTrader. You can test this in real-time using a live feed against the Sim101 account, Market Replay or Simualted Data Feed.
          RayNinjaTrader Customer Service

          Comment


            #6
            Sim vs. Live on fills.

            Ray,
            Does the SIM account, account for, partial fills?
            How does it do that?

            Example if I have a limit order in the market in real life my placement within the "Order Stack" is an unknown, how does SIM account for this?

            -Lars

            Comment


              #7
              Without providing the entire algorithm, yes it handles partial fills. If you want to enforce this, go to Tools > Options > Sim and change the settings.
              RayNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              605 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              351 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              560 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              561 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X