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 cmtjoancolmenero, Yesterday, 03:58 PM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by benmarkal, Yesterday, 12:52 PM
      3 responses
      23 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by helpwanted, Today, 03:06 AM
      1 response
      20 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      12 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Working...
      X