Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Do trades placed by an automated strategy include spread?

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

    Do trades placed by an automated strategy include spread?

    I use NT7 and MBTrading.

    Do trades placed by an automated strategy include spread?

    For instance, if spread is 2 pips, and a trade from an automated strategy shows a profit of 5 pips, is the profit 5 pips or is it really 3 pips?

    Same thing with the net profit field in the summary of the strategy. If net profit field in summary shows a profit of $100 over a period of a month, is it really $100 profit or do I need to subtract spread costs from the $100?

    #2
    Hello Tranquility,

    The simulated engine in real time fills at best bid / ask depending on direction. (buy or sell). It doesn't take spread into account beyond that.

    When you're backtesting, fills are placed at the open of the next bar following the condition, so you're not looking at bid / ask data in backtesting.


    If you want to simulate spread, you can try adjusting the slippage parameter, which fills you at worse prices depending on the slippage specified.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      So if I wanted the backtest to simulate a spread of 2 pips on each trade, should I set the slippage parameter to 2?

      Comment


        #4
        Slippage is applied per fill, so you would enter a value of 1 to have it apply 2 pips per trade. - Opening and closing fill.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I see, thank you.

          For a .9 pip spread, will the slippage field allow and correctly calculate a .45 entry?

          Comment


            #6
            No, it can only accept whole numbers. Unfortunately no way to specify .45 pip.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by selu72, Today, 02:01 PM
            0 responses
            0 views
            0 likes
            Last Post selu72
            by selu72
             
            Started by f.saeidi, Today, 12:14 PM
            8 responses
            18 views
            0 likes
            Last Post f.saeidi  
            Started by Mikey_, 03-23-2024, 05:59 PM
            3 responses
            49 views
            0 likes
            Last Post Sam2515
            by Sam2515
             
            Started by Russ Moreland, Today, 12:54 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Erick  
            Started by philmg, Today, 12:55 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Working...
            X