Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

simple cross over question

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

    simple cross over question

    So i built a simple ema cross over strategy. but the back test seems to show later entries and exits than i would like. any suggestions.

    #2
    Hello asdfjkl,

    Thank you for your post.

    Are these entries and exits one bar later than expected?

    Comment


      #3
      Yes thank you

      Comment


        #4
        Hello asdfjkl,

        Thank you for your response.

        Backtesting is performed on historical data, which only has the Open, High, Low, and Close of the bar at the close of the bar. Unfortunately, how the bar was built and the ticks that occurred are not available.

        You can simulate intra-bar fills using a smaller data series added to your code. You can find an example of this at the following link: http://www.ninjatrader.com/support/f...ead.php?t=6652

        Comment


          #5
          I'll check it out thanks, really appreciate it. Would u mind taking a look at my latest and unrelated post?

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by traderqz, Yesterday, 09:06 AM
          3 responses
          21 views
          0 likes
          Last Post NinjaTrader_ThomasC  
          Started by f.saeidi, Today, 10:19 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by kujista, Today, 06:23 AM
          5 responses
          15 views
          0 likes
          Last Post kujista
          by kujista
           
          Started by traderqz, Today, 12:06 AM
          3 responses
          6 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by RideMe, 04-07-2024, 04:54 PM
          5 responses
          28 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X