HOME FORUMS BROKERS SOFTWARE BOOKS CONTACT US
Elite Trader Your Account  •  Become a Member  •  Help  •  Search    
    Forums ›› Main ›› Economics ›› Monte Carlo How-To thread  


Post A Reply
    
tenthousandmen
 

Registered: Dec 2011
Posts: 728

 

01-15-12 07:50 PM

Monte Carlo How-To thread
There seems to be allot of confusion on the board regarding what Monte Carlo simulation is and how it protects traders from disastrous drawdown's and blowing up their account. I thought I'd share what I learned with anyone who has not yet taken advantage of using Monte Carlo with their backtest data.




How Monte Carlo works - an example:

With a set of backtest data from 01/2008-01/2012 (four years) - the Monte Carlo simulation works by randomly selecting x% of the trades (usually 25% of the trades) during the four year period. The simulation repeats over and over N times - it's recommend to use at least N > 1,000.

So for this four year period, a 25% sample would create data for a one year period.

Using the maximum drawdown in your original backtest data is not an accurate way to determine the statistically worst drawdown in the future. By running thousands of 25%-sample simulations, you can more confidently determine the absolute worst-case scenario going forward by looking at which sim had the largest drawdown - in other words, which sim had the "worst luck" by randomly selecting the worst trades during the four year backtest period.

You may be surprised to find that the worst-case Monte Carlo sample may have a significantly worse drawdown than your original backtest data. Use this point as your worst case scenario - not the maximum drawdown in your original backtest data - and calculate your necessary leverage over time from there. Common ways to calculate leverage over time are the Kelly Criterion, Half-Kelly, and Sharpe Ratio formulas.





Outside of Monte Carlo, it is also important to consider that any system, no matter how non-curve fitting it may be, does not last forever. You should always be looking for other technical edges, as well as trading other non-technical methods such as more generic support/resistance, MA crossovers, etc. Also, consider keeping up your discretionary skills with paper trading, so that you'll have something to confidently fall back on when your system fails earlier than expected!

To calculate Monte Carlo sim's - check if your software platform has this feature integrated. Ninjatrader has Monte Carlo simulations in the Strategy Analyzer window; just right click on the "trades" tab on your backtest data and select Grid > Monte Carlo Simulation. If you don't have Ninja, you can download it for free to run your data via the free historical feed. Some Excel files available from Microsoft for free also do Monte Carlo simulations.

I hope this helps clear up what Monte Carlo simulation is and how you can use it with your trading. If I missed anything, please post and add on!

    Edit/Delete Quote Complain
Volker Butzlaff
 

Registered: Nov 2006
Posts: 85

 

01-26-12 11:14 AM

@tenthousandmen,

concerning the so-called MCS based system stresstest you've said the main important things.

In my experience it's also not bad to use all available historical data and do a bunch of simulation runs (>= 10.000), to get a better feeling of max possible DDs. So Excel may be a little bit slow for such huge evaluations. Using MCS Software compile in native code is far far faster... :-)

But this stress test is not the only possibility of using MCS methodology in the trading system development process. It can also be used in generating so-called synthetic data (based on an origin historical data file) and so specially for so-called "many markets-many time frames"-systems you have a professional test environment.

See also here:
http://www.zentrader.de/html/monte_...simulator1.html

bye,
Volker

    Edit/Delete Quote Complain
tenthousandmen
 

Registered: Dec 2011
Posts: 728

 

02-06-12 02:18 AM

Here are two screen shots of monte carlo in action - one is of the original draw down data, the other is of the monte carlo draw down data. A big difference!


si.jpg
This has been downloaded 336 time(s).

    Edit/Delete Quote Complain
tenthousandmen
 

Registered: Dec 2011
Posts: 728

 

02-06-12 02:20 AM

Here's the draw down related to the other attachment...

silverdrawdown.jpg
This has been downloaded 348 time(s).

    Edit/Delete Quote Complain
Wide Tailz
 

Registered: Sep 2011
Posts: 1515

 

02-06-12 08:44 PM

P/F 1.3 with a 21% win rate.

Yikes!!!

    Edit/Delete Quote Complain
tenthousandmen
 

Registered: Dec 2011
Posts: 728

 

02-06-12 09:13 PM


Quote from Wide Tailz:

P/F 1.3 with a 21% win rate.

Yikes!!!



I wouldn't touch it with a $5 bill. However I think there are more losing trades than normal because silver doesn't do much overnight, and the back test wasn't set for session hours only (hence the low average losing trade).

    Edit/Delete Quote Complain
    
Post A Reply


Receive an email whenever a new post is added to this thread by subscribing to it.
 
Rate This Thread:

Forum Jump:
 

 

   Conduct Rules  -  Privacy Policy  -  Day Trader -  Day Trader Forum -  Best Trading Software -  Sitemap Copyright © 2013, Elite Trader. All rights reserved.    
 
WHILE YOU'RE HERE, TAKE A MINUTE TO VISIT SOME OF OUR SPONSORS:
Advantage Futures
Futures Brokerage & Clearing
AMP Global Clearing
Futures and FX Trading
Bright Trading
Professional Equities Trading
CTS
Futures Trading Software
DaytradingBias.com
Professional Trading Analytics
ECHOtrade
Professional Trading Firm
eSignal
Trading Software Provider
FXCM
Forex Trading Services
Global Futures
Futures, Options & FX Trading
Interactive Brokers
Pro Gateway to World Markets
JC Trading Group
Direct Access Trading
MB Trading
Direct Access Trading
MultiCharts
Trading Software Provider
NinjaTrader
Trading Software Provider
OANDA
Currency Trading
optionshouse
Option Trading & Education
Rithmic
Futures Trade Execution Platform
SpeedTrader
Direct Access Trading
SpreadProfessor
Spread Trading Instruction
thinkorswim by TD Ameritrade
Direct Access TradingAdvertisement
TradersStudio
System Building & Backtesting
Trading Technologies
Trading Software Provider
Trend Following
Trading Systems Provider