Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Monte Carlo sim

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

    Monte Carlo sim

    Just taking the Monte Carlo sim for a spin. Can you please explain what the x axis % means. The y axis I understand, but the meaning of the x axis has got me beat.

    -thanks
    Last edited by laparker; 10-28-2009, 11:19 AM.

    #2
    The horizontal axis of the Monte Carlo Simulation is showing the percentage of simulations that have fallen below the y axis value. For Example, if you run a Monte Carlo simulation setting the "# of Simulations" to 200 and using the Cumulative Profit Graph, The intersection of the 50% x value and the associated y value means that 100 of your simulated trading sequences will be below that cumulative profit/loss value; and oppositely the remaining 100 will have a greater cumulative profit/loss.

    Comment


      #3
      ok - got it, thanks.

      I am running into a problem where every time I run a simulation, the memory usage increases until it fills up and the system and is page swapping to a standstill. Closing the MC sim makes no difference, the memory remains committed to NT.

      Comment


        #4
        Can you please try with SampleMACrossOver as the strategy and see if you can reproduce? Thank you.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I'm not sure if the issue should be connected with the strategy that produced the results table. I ran your suggestion and got the same problem. I was running on x64 and I then ran your strategy on x86 and it crashed NT with what looked like an out of memory problem. Also it looks like it is only using 1 CPU core.

          edit - run with 100 trades and 10,000 sims.
          Last edited by laparker; 10-28-2009, 03:41 PM.

          Comment


            #6
            We'll look into the memory consumption.

            The 1 core usage is expected.

            Comment


              #7
              Not to sound like a total moron but I can't seem to find how to access the monte carlo sim...
              can anyone point me in the direction?

              Comment


                #8
                Strategy analyzer backtest results page
                Trades tab
                Right click
                select Monte Carlo

                Comment


                  #9
                  Originally posted by NinjaTrader_Josh View Post
                  Can you please try with SampleMACrossOver as the strategy and see if you can reproduce? Thank you.
                  well first thanks laparker for that, knew it had to be in there someplace but was driving myself nuts looking for it after this thread.
                  I'm also running into the same issue using SampleMAcross..Basically, it seems to work as long as the # of simulations, # of trades can be completed before
                  memory is used up..I wasn't able to reproduce it on daily BAC data though until I cranked it up to 100,000 simulations with 40 trades..Not that I have use to see 4 million samples for this though. I would rather not see a max number in there though but maybe just a general guideline to how many random samples you would nee before its overkill..

                  Since it was suggested to try SampleMAcross...what variables is the simulation taking in from a selected strategy to randomize? At the least I would think it would need to take in average hold time..the distribution for a strategy that has an average hold time of 5 minutes isn't going to be very useful if its including random week long swing trades.

                  I'm also a little confused on what the difference is between:
                  # simulations - 100
                  # trades - 90

                  vs

                  # simulations - 90
                  # trades - 100

                  does it just have to do with how each trade is seeded?
                  Last edited by darthtrader; 11-01-2009, 09:55 AM.

                  Comment


                    #10
                    We are looking into the memory issue. The simulation is purely random.
                    RayNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Ray View Post
                      The simulation is purely random.
                      Well also no offense Ray, but that means the results of the simulation are basically useless.
                      I mean hey, as a trader highly interested in MC methods, I've seen how its become a "buzz word" in retail space and its just good marketting..and good marketting is good for ninja so its good for me in the long term.
                      I'm glad its there as opposed to not being there, but I dont know..

                      Comment


                        #12
                        Let me clarify.

                        - The simulation will randomly orders the trades
                        - The # of simulations determines how many simulations is done
                        - # trades will determine the total number of trades included from your backtest in the simulation. If the value of trades is less than than the total backtested, we will randomly kick out the difference
                        RayNinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by darthtrader View Post
                          Well also no offense Ray, but that means the results of the simulation are basically useless.
                          I mean hey, as a trader highly interested in MC methods, I've seen how its become a "buzz word" in retail space and its just good marketting..and good marketting is good for ninja so its good for me in the long term.
                          I'm glad its there as opposed to not being there, but I dont know..
                          well actually its useful I hope.. my take is that if you can randomly throw data at it, curve fitting will not work.. also, removing 1 to 5% outlier winners/losers will show the robustness of the script.. i.e if it is relying on top few blockbuster trades for it to be successful...

                          Comment


                            #14
                            Right, exactly that is the value of a Monte Carlo sim...

                            Comment


                              #15
                              Originally posted by laparker View Post
                              Strategy analyzer backtest results page
                              Trades tab
                              Right click
                              select Monte Carlo
                              This seems awkward and a bit obscure.

                              Can this be put on a separate tab labeled something obvious like Monte Carlo?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              599 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              345 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              558 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X