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 jclose, Today, 09:37 PM
      0 responses
      5 views
      0 likes
      Last Post jclose
      by jclose
       
      Started by WeyldFalcon, 08-07-2020, 06:13 AM
      10 responses
      1,414 views
      0 likes
      Last Post Traderontheroad  
      Started by firefoxforum12, Today, 08:53 PM
      0 responses
      11 views
      0 likes
      Last Post firefoxforum12  
      Started by stafe, Today, 08:34 PM
      0 responses
      11 views
      0 likes
      Last Post stafe
      by stafe
       
      Started by sastrades, 01-31-2024, 10:19 PM
      11 responses
      169 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X