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 CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      34 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      130 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      184 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      94 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      138 views
      0 likes
      Last Post cmoran13  
      Working...
      X