Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Enterlonglimit execution price

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

    Enterlonglimit execution price

    For backtesting. When using EnterLongLimit(0,true,100,GetCurrentAsk() + (TickSize*10),"Entry");

    Isn't this saying Enter at the Ask(I know it's Last price for backtesting purposes) if possible but not more than 10 ticks above the Ask? When looking at the executions it seems to just always enter 10 ticks above the last price. It's acting more like EnterLongStopLimit() order it seems.

    #2
    That would just be a marketable limit order then in real life, in backtesting on our default fill algorithm you would get your price as specified (never better) though, however fills could not occur outside of your bar.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      So your saying that if it was Live it would attempt to give the closest to the Ask as intended and worst case 10 ticks(10 cents) higher?

      Comment


        #4
        Correct, that limit order would be marketable then. The current price is the better price (compared to what you spec'ed to use).
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Can you give more detail on what you mean by "Marketable"? Are you saying that the order would be hanging out there for anyone to grab giving me a potential worst case fill even though there might be a better price currently available, therefore it would not be a good idea to use this method?

          I'm just trying to avoid a fill any worse than 10 ticks above, so maybe instead I should use a condition for the spread something like Ask < last + 10 ticks.

          Comment


            #6
            Delta007, any limit order with a price equal or higher than the Ask (for buys) is marketable, in the sense immediately executable (this price or better, so triggered for a fill, no need to hold it). Some traders prefer this over true market orders, as they had quicker fill experiences especially if a market maker / specialist in involved. You can monitor the current spread as well, but this could of course change in the time your order is routed to the exchange, so spec'ing a limit price in will give you more control than a true market order.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by trilliantrader, 04-10-2024, 09:33 PM
            6 responses
            25 views
            0 likes
            Last Post trilliantrader  
            Started by traderqz, Today, 12:06 AM
            5 responses
            10 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by Mongo, Today, 11:05 AM
            2 responses
            10 views
            0 likes
            Last Post Mongo
            by Mongo
             
            Started by guillembm, Today, 11:25 AM
            0 responses
            4 views
            0 likes
            Last Post guillembm  
            Started by Tim-c, Today, 10:58 AM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X