Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Wrong results on simplest of backtests

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

    Wrong results on simplest of backtests

    Hello,

    I am running a backtest on the SampleMACrossover strategy but I seem to be getting the wrong results... Specifically, Entry and Exit points are erroneous.

    Are you aware of any problems using Strategy Analyzer on NT 7.4?

    Help please, I am REALLY frustrated.

    Thanks,

    Stopped

    #2
    Hi stopped,

    Can you please let us know how you feel the entry and exit points are erroneous? It may help to walk us through what you're doing in the platform, what you expect to see, and what you are seeing instead.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ok, here is just one example (see attached): The Exit at 1301 (red circle) does not seem right. If I understand this strategy correctly, a short trade as in this case would only close and reverse into a buy trade if and when the Fast MA closes above the Slow MA. This did not happened at that point.
      Attached Files

      Comment


        #4
        That exit is due to ExitOnClose handling, an available property when running any strategy. You can disable this by setting to false.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Great, problem solved, thank you for pointing this out

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          21 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          120 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X