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 Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                648 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                572 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                574 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X