Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting random entry

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

    Backtesting random entry

    Hi all, I'm looking to experiment with various reward:risk ratios and I'd like to backtest using 100 trade random entry samples.

    What would be the easiest way to tell NT I want to take 100 trades on this instrument over a particular time frame?

    #2
    Hi pkmurphys,

    To test various risk reward ratios is a good task for the optimizer. You can structure your risk /reward values as inputs to be used in targets/stop losses, and then the optimizer runs many backtests against the range of inputs you tell it to run on.

    If you want to randomize 100 entries, you could work with C# random function:
    Represents a pseudo-random number generator, which is an algorithm that produces a sequence of numbers that meet certain statistical requirements for randomness.


    Maybe using Random CurrentBar value as a trigger for entry.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      hi ryan,

      is there a way to get Strategy Wizard to take 100 random trades? i don't have any programming experience

      Comment


        #4
        To take advantage of that random function would require working with code. With the strategy wizard, you'll have to define the conditions for entry using the condition builder, so they can't be random in the same sense. You could make basic conditions like Open[0] == Close[0] or crossovers just to get some entries made.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          yup, generating some crossovers and running them through the optimizer is pretty close to what i'm after, thanks for the suggestions.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by KenneGaray, Today, 03:48 AM
          0 responses
          2 views
          0 likes
          Last Post KenneGaray  
          Started by thanajo, 05-04-2021, 02:11 AM
          4 responses
          470 views
          0 likes
          Last Post tradingnasdaqprueba  
          Started by aa731, Today, 02:54 AM
          0 responses
          4 views
          0 likes
          Last Post aa731
          by aa731
           
          Started by Christopher_R, Today, 12:29 AM
          0 responses
          10 views
          0 likes
          Last Post Christopher_R  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          166 responses
          2,237 views
          0 likes
          Last Post sidlercom80  
          Working...
          X