Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest number of trades instead of timeframe

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

    Backtest number of trades instead of timeframe

    Is it possible or could it be possible with some custom coding to be able to run a backtest that returns a number of trades instead of running a backtest for a specific timeframe. So say you wanted 500 trades for your backtesting results you could enter 500 and once the number of trades in the backtest reached this number it would stop the backtest.

    Thanks

    Ash

    #2
    Driftintoad,

    This wouldn't be possible through the backtesting engine itself, however what you can do is assign a user defined variable to however many trades you want your strategy to make, then have the strategy disable itself once that is reached.

    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Adam. Great idea. Exactly what I needed.

      Cheers

      Ash

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      116 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      61 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      40 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      43 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      82 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X