Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting spread

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

    Setting spread

    When runnning backtest, functions getcurrentask and getcurrentbid return same value, is it somehow possible to set spread? I have imported bid data and I have to force NT to trade for ask which is 2 pips above bid. How do I do it?

    #2
    Right. GetCurrentBid/Ask are the same values in backtesting.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I know, but

      but how do I handle it? You just wrote what I have found too, that is not an answer. I need some resolution how to work with it - to simulate real world - to answer my previous question. Please. Can I set somewhere that data are bid so NT will intelligently use them as bid and simulate ask according to spread which I set somewhere? I am just a beginner in NT, but this seems to me like a critical problem protecting me from realmarket backtesting.

      Comment


        #4
        There is no supported way in NT to store and access historical bid/ask data.
        RayNinjaTrader Customer Service

        Comment


          #5
          A simple, possibly effective guesstimate, would be to multiply the number of trades taken during the backtest by your broker's usual spread for that pair.

          Or set the commission value appropriately for your pair to adjust for spread.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by david196, Today, 09:09 PM
          0 responses
          8 views
          0 likes
          Last Post david196  
          Started by kkc2015, Today, 08:50 PM
          0 responses
          4 views
          0 likes
          Last Post kkc2015
          by kkc2015
           
          Started by fscabrera03, Today, 06:55 PM
          0 responses
          11 views
          0 likes
          Last Post fscabrera03  
          Started by LorraineP, Today, 04:02 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by NTPlayer, Today, 01:18 PM
          1 response
          25 views
          0 likes
          Last Post NinjaTrader_Kate  
          Working...
          X