Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

slippage and limit order..

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

    slippage and limit order..

    Would using EnterLongLimit(0,true,1,GetCurrentBid() + TickSize,"");

    be the same as using...

    EnterLongLimit(0,true,1,GetCurrentBid(), ""); and using a slippage of 1?


    Basically does GetCurrentBid() + TickSize account for slippage of 1

    #2
    zachj, there would be no slippage on a limit order, you either get your price specified or you won't. For backtesting you need to consider GetCurrentBid / GetCurrentAsk will use Close price data, where as in realtime you will see whatever values the inside market has at the time.

    Comment


      #3
      What is the most common or best way to try to come closest to live market action when backtesting. Am I better off just using EnterLong() and 1 for slippage or using a limit order(realizing it's going to use close price when Back Testing).

      Comment


        #4
        zachj, most accurate would be using bid / ask tickdata to submit your orders to for backtesting. Limit orders would always run the risk though of not getting filled, so using Market orders with appropriate slippage would be a good alternative. In the end it would be important your avg trade has enough cushion for costs.

        Comment


          #5
          One other question.. when I choose 1 tick for slippage is this for the entry and the exit?

          Comment


            #6
            zachj, that would be per execution. So if you enter and exit market - each would get a tick.

            Comment


              #7
              What if I have 2 enter longs...
              EnterLong(0, 1, "EnterLongA");
              EnterLong(0, 1, "EnterLongB");

              Will the slippage of 1 take care of each execution or do I need to change the slippage to 2?

              Comment


                #8
                No need to increase slippage here, it would be for each execution.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                55 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                29 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                40 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                56 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                47 views
                0 likes
                Last Post CarlTrading  
                Working...
                X