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 FrazMann, Today, 11:21 AM
          2 responses
          6 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by rjbtrade1, 11-30-2023, 04:38 PM
          2 responses
          80 views
          0 likes
          Last Post DavidHP
          by DavidHP
           
          Started by Spiderbird, Today, 12:15 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by lorem, Yesterday, 09:18 AM
          5 responses
          18 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X