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 mattbsea, Today, 05:44 PM
          0 responses
          3 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          31 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          2 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,282 views
          0 likes
          Last Post Leafcutter  
          Started by WHICKED, Today, 12:45 PM
          2 responses
          20 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Working...
          X