Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accounting for bid/ask spreads

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

    Accounting for bid/ask spreads

    Say a stock typically has at least a 10 cent difference between the bid and the ask. What is the best way of taking this into account when back testing market orders? I`m adding it as a commission at the moment.

    #2
    Instead of commission, maybe you can try using the Slippage options?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I thought ticks were a measure of time, can you give me an example of how to use these options? Entering .1, 10, 100,1000 etc for the slippage value doesn't seem to have the level of affect I would expect compared to entering a per share commission of .05. There also seems to be a limit to the value you can enter, capped at 20.

      Comment


        #4
        Slippage is measured can only take on integer values and is representative as to the number of ticks you want the slippage to be.

        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Could you define what a tick is in this context please so we are on the same page?

          I ran some tests to try and figure it out myself by running a back test and adjusting the slippage value.

          54 trades, 100 shares per trade

          Code:
          Slippage   Loss         Loss from Slippage
          0             813          0
          10            895         82
          20            927         114
          30            927         114
          40            927         114
          50            927         114
          If I did 54 trades with a slippage of 10 cents, I would expect the loss from slippage to be around 54/2*100*.1=$270?
          Last edited by Idruna; 10-07-2008, 12:14 PM.

          Comment


            #6
            Hi Idruna,

            A tick varies from instrument to instrument. You can see what it is defined as for your particular instrument by bringing up the Instrument Manager. Stocks generally have a tick size of 0.01.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Aha, thank you for clarifying that. Do those numbers look right to you? The amount of loss from slippage for a value of 10 seems too low, and if the amount of slippage doubles, wouldn't the loss from slippage double too?

              Comment


                #8
                It is hard to say. You will need to use TraceOrders = true and compare actual fill prices versus the prices you submitted at.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

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