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 jonfan45, Today, 06:06 PM
          0 responses
          8 views
          0 likes
          Last Post jonfan45  
          Started by rustyspring, Today, 05:15 PM
          0 responses
          9 views
          0 likes
          Last Post rustyspring  
          Started by xulu13, Today, 05:01 PM
          0 responses
          12 views
          0 likes
          Last Post xulu13
          by xulu13
           
          Started by Pbarrionuevo, Today, 04:30 PM
          0 responses
          9 views
          0 likes
          Last Post Pbarrionuevo  
          Started by vantojo, Today, 01:39 PM
          0 responses
          20 views
          0 likes
          Last Post vantojo
          by vantojo
           
          Working...
          X