| / | Articles |
Articles
Examples
Fallacies, Part 1: Money Management is Secondary and Not Very Important
To post a new article, please log in or register
|
Fallacies, Part 1: Money Management is Secondary and Not Very Important [ ru ]
Introduction
In this article we will discuss very simple things that can very often be deceptive - the graphs of an account balance in the testing report. In reports of strategy testing by beginners we can often see exponential balance/equity graphs and multibillion results by the end of the testing period. Such results usually invoke skeptical comments of experienced EA writers who know where these exponents come from, and immediately recommend to show results on a fixed lot (usually 0.1).
It is assumed that testing results with the fixed 0.1 lot better reflect all advantages and disadvantages of a strategy. Arguments for this assumption are quite clear: for most of currency pairs this graph shows how many points a strategy makes within a testing period. There is a justified opinion that a strategy may be considered challenging if it is profitable by points; but if a mathematical expectation is negative, such a strategy can hardly become profitable only by means of money management.
One more convincing argument: a curve of "0.1 lot" close to a straight line is a kind of indication of a strategy stability which can hardly be seen on an exponential graph.
However, despite all advantages, such graphs have disadvantages, which are not so obvious. To understand all this let us analyze testing results of a simple strategy with different money management systems and compare graphs. Types of Money Management (MM) Analyzed in the Article. Selecting an EA
Now we will analyze 3 types of MM, in which the volume of opened positions is either fixed or is an increasing function of a deposit. The possibility of an efficient MM taking into account results of previous trades seems reasonable to me only when the probability of a profitable/lossmaking series is considerably higher than the chance that trades with opposite results will alternate. So, here are MMs described in the article:
Let's analyze the Expert Advisor "20_200 expert_v4.2_AntS". We will not optimize the EA by parameters, because it is out of the scope of this article; let's use default parameters of the Expert Advisor. We will test it on all ticks on EURUSD H1 from 2000/06/07 to 2008/03/15. This period of testing was selected intentionally to have a quite good balance graph in testing at 0.1 lot. Exactly this EA is selected to demonstrate the main statements of this article. The source code of the EA is located at http://codebase.mql4.com/3557 .
The larger part of the Expert Advisor is the function for selecting lot LotSize() a little longer than 1000 lines (or 44K out of 50K of the source file size), which partially conditions its singularity. This function could be implemented in a much shorter form if we approximate the function of lot dependence on a balance by a simple line with the necessary lot rounded to 0.01. At least the difference of the approximation from calculations in the source code in "nodes" (points of lot measuring) shows up only in one node out of thousand (!!!). It can hardly influence parameters of the strategy.
I decided not to study the exact logic of selecting lot size and changed the code thus making the file much smaller (initially the EA code contained only active MM corresponding to this function of lot selection). Parts connected with the non-proportional lot increase were also excluded from the code thus excluding elements of martingale from the EA. The changed code of the EA is attached to the article.
Below is the function of lot size calculation suitable for EURUSD here: double LotSize() { double size; switch( _MM ) { case 0: size = 0.1; break; case 1: size = 0.1 * AccountBalance() / 1000; break; case 2: size = 0.1 * MathSqrt( AccountBalance() / 1000 ); //size = 1. * MathSqrt( AccountBalance() / 10000 ); break; default: size = 0.1; break; } if( size < 0.1 ) // is money enough for opening 0.1 lot? if( ( AccountFreeMarginCheck( Symbol(), OP_BUY, 0.1 ) < 10. ) || ( AccountFreeMarginCheck( Symbol(), OP_SELL, 0.1 ) < 10. ) || ( GetLastError() == 134 ) ) lot = 0.0; // not enough else lot = 0.1; // enough; open 0.1 else lot = NormalizeDouble( size, 2 ); return( lot ); }
Assumptions in the Article
Further in the article we will follow the logics of a typical beginner:
We will analyze obtained results and the beginner's actions mainly observing several integral parameters of testing results - net profit, maximal drawdown in percents and recovery factor.
Test 1: Fixed lot, "0.1"
Here are the results of testing:
Strategy Tester Report 20_200 expert_v4.2_AntS Alpari-Demo (Build 215)
We will add one more parameter - recovery factor: RF (Recovery Factor) = Total Net Profit / Maximal Drawdown = 9911.72 / 923.58 = 10.73
The curve looks not bad, RF is also OK, though it is for almost 8 years. All other parameters in the table are also quite good: mathematical expectation is 12.44 points (it can be larger, but this is is not so bad), maximal drawdown is about 20%. The ratio of an average profit trade to average loss trade is equal to 35.80/180.72 = 0.198 = 1/5.05; however the number of profitable trades is larger than that of loss trades (89.21%/10.79%, i.e. by 8.27, which is higher than 5.05). Thus a strategy seems to have something in store.
This gives confidence to our beginner and he decides to take the risk: instead of a fixed lot he introduces the geometrical money management based on a "modest" proportion "0.1 lot / $1000 of deposit". It is much riskier than the proportion offered in the original EA (a little more than 1/3 lot for $10000 of deposit), but our hero does not pay attention to it: he wants to earn as much money as possible... |
![]() Equivolume Charting Revisited
The article dwells on the method of constructing charts, at which each bar consists of the equal number of ticks. |
![]() MetaEditor:Templates as a Spot to Stand On
It may be news to many our readers that all preparations for writing an EA can be performed once and then used continuously. |
| Previous | Next |
QBTrader wrote:
Excellent article, excellent analysis, and excellent topic. I would just like to add a few considerations. Firstly, in the real world money managment is a function of investor risk tolerance and financial goals. I would like to start with an example of this being the constraints placed on managers of Mutual Funds where outside invesments are soliciated. By Law, all such funds must be diversified, must have only a specific number of placements at specific percentages. All of this is for the purpose of reducing risk.
.....
Minimizing drawdown can be achieved by maximizing leverage...i've talked about logic Gaps...you can only loose your free margin, not the margin value during a trade.
Minimizing drawdown can be achived by implementing cows like risk tolerance limits like institutionnals stringent enforcements you're talking about...think twice : what you're making propaganda with implies that the real exposition to risk is known thus legal enforcements adress adequate institution risk exposure, not what a limited brain financial lawyer group came out with. I really know what i'm talking about, if you want to discuss more about i'll tell what's inside Basel Banks Regulation Act, Sarbanne Oaxley Accounting Reform, Credit Risk and Derivatives Models and Laws Regulation and much more. In fact financial regulation acts on systemic risk failure aversion, enfoorcing to procluding mechanism at least exerting bad risk taking incentives much the time. So Institutions Risk Limits Framework does not provide a sound risk measurement procedures to the forex free trader...
I know all the stuff you're about, portolio optimization methods, Spot/forward hedging, Volatility Terms Structures Curves, Fixed Income Portfolios Management, Banks Asset and Liabilities Financial Risk Management principles, Cristallization, Immunisation and so on...believe me all this does not adress what you're dealing with in Forex wich is straightforward : buy or Sell, at big leverage, leverage being responsible only of the speed at wich you gain or loose, but not of the fact that you're trading a poor signal...
Looking forward :) !
I guess I should add that I have absolutely nothing agains "Larry". And after that time he became much less analytical about the market and more intuative. He knows his stuff there is no doubt about that. And I would highly recomment his courses if anyone is interested.
I just happened to be there at a time when he was developing his course and riding on his success of the championship. I think he made the adjustments he needed to and as I said he is a caring and simply great individual.
I stand corrected. It's been about 20 years now and my memory isn't what it used to be. Here is the guy if anyone wants to know more about him.
http://books.global-investor.com/pages/gurus.htm?PerIndex=1942
Now I am going to share an interesting story from my experience with the man who invented the Williams %R. Enjoy. It so happens that I signed up for one of Bill Williams training courses not long after he won the commondies trading championship. Bill by the way is a totally great guy.
You know I find it kind of interesting that every where you go the people who play this market or that market will tell you that their market is different. They will say in Forex we have these unique problems. You talk to the Index traders and they will say they have a unique situation. The commodity guys are the same. I have traded all of them and the charts all look the same to me and the leverage conditions are virtually identical. So, maybe someone should write an article on analysis of what if any differences there are in different markets.
Now I am going to share an interesting story from my experience with the man who invented the Williams %R. Enjoy. It so happens that I signed up for one of Bill Williams training courses not long after he won the commondies trading championship. Bill by the way is a totally great guy.
Great Article
++BuT .....
Optimal Cash cushion size in pips, owing to leverage value of your position, results from arbitraging contemporain spot volatility dynamics when entering market. No more, no Less.
Can you explain this to me please
Fine Stuff, really a big big work...
Ok QBTrader, i agree with some of your underlinings.
I'd just like to point out that, Forex trading involves particular risk measurement approach, the most obvious or frequent one leading to logic gap...
Lets start with the fact that the more lot size you take, lets say agressive MM, the more equity you protect from loss ! Then appetite for leverage should also be seen as risk-adverse characteristic of a trade decision. THink twice,..., Ok lets go on !
Once in the process, engaged in a trade, you're exposed to two main kind of risk : adverse spot deviation (ex : long in a bear market) and cash (freemargin) cushion.
The second will not save you long from the first, if you're on the wrong side, you'll loose at least. We should just consider cash cushion as equity fraction you should not put in the trade as spot trajectories shows to be chaotic even when sticking to your target path.
Then, when considering efficiency of an agressive MM, one should measure percentage of losses incured by reduced cash cushion (like stopout), to be treated appart from thoses arising from bad signals entries.
Your ruin probability when trading with big lots (agressive MM) rise with poor cash cushion adjustment, less because of big leverage policy.
Just think of odd/even given probabilities game, and compare the results of two betting strategies. You should know the Casino Martingale Nightmare, dougling your bet after each loss...
The only way for the establisment to vanish out its ruin probability, is to set a max on bet values...if not, the ruin probability climbs quickly to one each time the player loose and can bet once again.
Then asymptotically true, the most important loss factor of a trader lies in its risk exposure limits....the one intented to protect him from ruin...Think about it Once Again.....Ok !
At least, soon or later, you win and loose, then the survival factor is the amount you won. Except particular case of a 99/1 (good/bad) system, trade is profitable when gains exceed losses, even if your system is a poor 40/60 (good/bad). How can this be ?
Optimal Cash cushion size in pips, owing to leverage value of your position, results from arbitraging contemporain spot volatility dynamics when entering market. No more, no Less.
Excellent article, excellent analysis, and excellent topic. I would just like to add a few considerations. Firstly, in the real world money managment is a function of investor risk tolerance and financial goals. I would like to start with an example of this being the constraints placed on managers of Mutual Funds where outside invesments are soliciated. By Law, all such funds must be diversified, must have only a specific number of placements at specific percentages. All of this is for the purpose of reducing risk.
The end point of this is that money managment defined in the terms of any real investment practices is a function of the goals and risk tolerance of the user. Here where the goal is to create a trading system that will perform the best with the least amount of drawdown we are not actually dealing with the real issues involved when it comes to making an EA a viable part of your strategy in an investment portfolio.
So, I would suggest that any form of analysis of EA performace should be constructed on three separate formats. One would be based on conservative low risk constructs of your EA, the second on maximizing the performance of your EA and third on a livable high risk performance. At the core of these points is the question of if you are designing your money managment system to simply optimize performance or are you designing it to produce a generally acceptable rate of return as a serious investment tool. And in the financial world that measure is simply the percentage of return you make in a specific period of time.
Second suggestion. In all of the EA's I have looked at, not one of them has an Input for Draw Down Limit. They will all continue to trade whether you select .1 lot or a percent of margin until there is nothing left in your account. How hard would it be to Input a figure that would stop the EA from trading if it draws down your equity below a certain point? For example, if I have $1000 in my account I could set a Draw Down limit of $800. If my equity goes below that amount then the EA will stop trading. If you should say that there has to be that much of a draw down for your EA to work then consider including an incremental lot strategy that would choose a number that would not tax your $200 limit in the first few trades.
In addition, in theory, your management of the number of lots to trade should be a function of the win loss performance of the EA. I would suggest that when anayizing this aspect of your EA preformance you should look closely at the visual performance charts. What you should see is particular situations where your EA performs and particular situations were it doesn't. This is usually in regards to the way the market is moving at various times. I would suggest that if you can identify these situations you could manage your lot sizes according to the performance and non performance time frames. Minimize your investment in the bad times and maximize it in the good times. This is also a part of real world financial managment.
Good Trading to Everyone.