Categories
Forex Basics Forex Daily Topic

The Babe Ruth Syndrome

In his book More than you know, Michael J. Mauboussin tells the story of a portfolio manager working in an investment company of roughly twenty additional managers. After assessing the poor performance of the group, the company’s treasurer decided to evaluate each manager’s decision methods. So he measured how many of the assets under each manager outperformed the market, as he thought that a simple dart-throwing choice would produce 50% outperformers. This portfolio manager was in a shocking position because he was one of the best performers of the group while keeping the worst percent of outperforming stocks.

When asked why was such a discrepancy between his excellent results and his bad average of outperformers, he answered with a beautiful lesson in probability: The frequency of correctness does not matter; it is the magnitude of correctness that matters. 

Transposed to the trading profession, The frequency of the winners does not matter. What matters is the reward-to-risk ratio of the winners.

Expected-Value A bull Versus Bear Case.

Since a combination of both parameters will produce our results, how should we evaluate a trade situation?

Mauboussin recalls an anecdote taken from Nassim Taleb’s Fooled by Randomness, where Nassim was asked about his views of the markets. He said there was a 70% chance the market had a slight upward movement in the coming week. Someone noted that he was short on a significant position in S&P futures. That was the opposite of what he was telling was his view of the market. So, Taleb explained his position in the expected-value form:

Market events Probability Magnitude Expected Value
Market moves up 70% 1% 0.700%
Market moves down 30% -10% -3.000%
Total 100% -2.300%

  As we see, the most probable outcome is the market goes up, but the expected value of a long bet is negative, the reason being, their magnitude is asymmetric. 

Now, consider the change in perception about the market if we start trading using this kind of decision methodology. On the one hand, we would start looking at both sides of the market. The trader will use a more objective methodology, taking out most of the personal biases from the trading decision. On the other hand, trading will be more focused on the size of the reward than on the frequency of small ego satisfactions.

The use of a system based on the expected value of a move will have another useful side-effect. The system will be much less dependent on the frequency of success and more focused on the potential rewards for its risk.

We Assign to much value to the frequency of success

Consider the following equity graph:

 

Fig 1 – Game with 90% winners where the player pays 10 dollars on losers and gains 1 dollar on gainers

This is a simulation of a game with 90% winners but with a reward-to-risk ratio of 0.1. Which means a loss wipes the value of ten previous winners.

Then, consider the next equity graph:

Fig 1 – Game with 10% winners where the player pays 1 dollar on losers and gains 10 dollars on gainers

A couple of interesting conclusions from the above graphs. One is that being right is unimportant, and two, that we don’t need to predict to be profitable. What we need is a proper method to assess the odds, and most importantly, define the reward-to-risk situation of the trade, utilizing the Expected Value concept,

By focusing on rewards instead of frequency of gainers, our strategy is protected against a momentary drop in the percent of winners.

The profitability rule

P  > 1 / (1+ R)  [1]

The equation above that tells the minimum percent winners needed for a strategy to be profitable if its average reward-to-risk ratio is R.

Of course, using [1], we could solve the problem of the minimum reward-to-risk ratio R required for a system with percent winners P.

R > (1-P)/P    [2]

We can apply one of these formulas to a spreadsheet and get the following table, which shows the break-even points for reward-to-risk scenarios against the percent winners.

We can see that a high reward-to-risk factor is a terrific way to protect us against a losing streak. The higher the R, the better. Let’s suppose that R = 5xr where r is the risk. Under this scenario, we can be wrong four times for every winner and still be profitable.

Final words

It is tough to keep profitable a low reward-to-risk strategy because it is unlikely to maintain high rates of success over a long period.

If we can create strategies focused on reward-to-risk ratios beyond 2.5, forecasting is not an issue, as it only needs to be right more than 28.6% of the time.

We can build trading systems with Reward ratios as our main parameter, while the rest of them could just be considered improvements.

It is much more sound to build an analysis methodology that weighs both sides of the trade using the Expected value formula.

The real focus of a trader is to search and find low-risk opportunities, with low cost and high reward (showing positive Expected value).

 


Appendix: The Jupyter Notebook of the Game Simulator

%pylab inline
Populating the interactive namespace from numpy and matplotlib
%load_ext Cython
from scipy import stats
import warnings
warnings.filterwarnings("ignore")
The Cython extension is already loaded. To reload it, use:
  %reload_ext Cython
from scipy import stats, integrate
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(color_codes=True)
import numpy as np
%%cython
import numpy as np
from matplotlib import pyplot as plt

# the computation of the account history. We use cython for faster results
# in the case of thousands of histories it matters.
# win: the amount gained per successful result , 
# Loss: the amount lost on failed results
# a game with reward to risk of 2 would result in win = 2, loss=1.
def pathplay(int nn, double win, double loss,double capital=100, double p=0.5):
    cdef double temp = capital
    a = np.random.binomial(1, p, nn)
    cdef int i=0
    rut=[]
    for n in a:
        if temp > capital/4: # definition of ruin as losing 75% of the initial capital.
            if n:
                temp = temp+win
            else:
                temp = temp-loss        
        rut.append(temp)
    return rut
# The main algorithm. 
arr= []
numpaths=1 # Nr of histories
mynn= 1000 # Number of trades/bets
capital = 1000 # Initial capital

# Creating the game path or paths in the case of several histories
for n in range(0,numpaths):
    pat =  pathplay(mynn, win= 1,loss =11, capital= cap, p = 90/100)
    arr.append(pat)

#Code to print the chart
with plt.style.context('seaborn-whitegrid'):
        fig, ax = plt.subplots(1, 1, figsize=(18, 10))
        plt.grid(b = True, which='major', color='0.6', linestyle='-')
        plt.xticks( color='k', size=30)
        plt.yticks( color='k', size=30)
        plt.ylabel('Account Balance ', fontsize=30)
        plt.xlabel('Trades', fontsize=30)
        line, = ax.plot([], [], lw=2)
        for pat in arr:
            plt.plot(range(0,mynn),pat)
        plt.show()

References:

More than you Know, Michael.J. Mauboussin

Fooled by randomness, Nassim. N. Taleb

 

 

Categories
Forex Daily Topic Forex Risk Management

How Be Sure your Trading Strategy is a Winner?

To evaluate, the quality of a strategy is an old quest, and its answer has to do with gambling theory, although it can apply to any process in which the probability of profits is less than 100%. Of course, the first measure to know if our system is winning is when the current portfolio balance is higher than in its initial state. But that does not give very much information.

A better way might be to record winners and losers, and have a count of both so that we could apply some stats. It would be interesting to know the percentage of winners we get and how much is won on average. That also applies to losers.

We could try to find out if our results are independent of each other or they are dependent.

Finally, we could devise a way to obtain its Mathematical expectancy, which would show how profitable the strategy is.

Outcomes and probability statements

No trader is able to know in advance the result of the next trade. However, we could estimate the probability of it to be positive.

A probability statement is a figure between zero and one specifying the odds of the event to happen. In simple terms,

Probability = odds+ / ( odds+  +  odds – )

On a fair coin toss game: odds of heads (against, to one) = 1:1

probability Fair coin toss = 1/(1+1)

= 0.5

Probability of getting a Six on a dice:

odds = 5:1 – five against to one

Probability of a Six = 1/( 1+5) = 0.16666

We can also convert the probability into odds (against, to one) of occurring:

Odds = (1/ Probability) -1

As an example, let’s take the coin-toss game:

Odds of a head = 1/0.5 -1 = 2-1 =1:1

That is very handy. Suppose you have a system on which the probability of a winner is 66 percent. What are the odds of a loser?

System winners= 0.66 so -> System losers = 0.34

loser odds = 1/0.34 – 1 = 2 -> about 2:1.

That means, on average, there is one loser for every two winners, which means one loser every three trades.

Independent vs. Dependent processes

There are two categories of random processes: Independent and dependent.

A process is independent when the outcome of the previous events do not condition the odds of the coming one. For example, a coin toss or a dice throwing are independent processes. The result of the next event does not depend on previous outcomes.

A dependent process is one where the next outcome’s probability is affected by prior events. For example, Blackjack is a dependent process, because when cards are played, the rest of the deck his modified, so it modifies the odds of the next card being taken out.

This seems a tedious matter, but it has a lot of implications for trading. Bear with me.

What if we acknowledge our trades are independent from each other?

If we consider that our trades are independent, then we should be aware that the previous results do not affect the next trade, since there is no influence between each trade.

What if we know our system shows dependency?

If we know that our system’s results are dependent, we could make decisions on the position size directed to improve its profitability.

As an example, let’s suppose there is a very high probability that our system gets a winner after a loser, and also a loser after a winner. Then we could increase our trade size every time we get a loser, and, also, reduce or just paper-trade after a win.

Proving there is dependency on a strategy or system is very difficult to achieve. The best course of action is to assume there is none.

Assuming there is no dependency, then it is not right to modify the trade size after a loser such as martingale systems do since there is no way to know when the losing streak will end. Also, there is no use in trading different sizes after a winning or losing trade. We must split the decision-making process from trade-size decisions.

Mathematical expectancy

The mathematical expectancy is also known as the player’s edge. For events that have a unique outcome

ME = (1+A)*P-1

where P is the probability of winning, and A is the amount won.

If there are several amounts and probabilities then

ME = Sum ( Pi * Ai)

The last formula is suitable to be applied to analytical software or spreadsheet, but for an approximation of what a system can deliver, the first basic formula will be ok. Simply set

A = average profit and

P = percent winners.

As an example, let’s compute the mathematical expectancy of a system that produces 40% winners and wins 2x its risk.

ME = (1+2)*0.4 -1

ME = 3*0.4 -1

ME = 0.2

That means the system can produce 20 cents for every dollar risked on average on every trade.

Setting Profit Goals and Risk

Using this information, we can set profit goals. For instance, if we know the strategy delivers a mean of 3 trades every day – 60 monthly trades- The trader can expect, on average, to earn (60 * 0.2)R, or  12* R, being R his average risk.

If the trader set a goal of earning $6,000 monthly he can compute R easily

12*R = $6,000

R= $6000/12 = $500.

That means if the trader wants a monthly average of $6,000, he should risk $500 on every trade.

Final Words

On this article, we have seen the power of simple math statements, used to help us define the basic properties of our trading system, and then use these properties to assess the potential profitability of the strategy and, finally, create a simple plan with monthly dollar goals and its associated trade risk.

 

Categories
Forex Educational Library

Risk, Reward, and Profitability

The Nature of Risk and Opportunity

Trading literature is filled with vast amounts of information about market knowledge: fundamentals, Central Banks, events, economic developments and technical analysis. This information is believed necessary to provide the trader with the right information to improve their trading decisions.

On the other hand, the trader believes that success is linked to that knowledge and that a trade is good because the right piece of knowledge has been used, and a bad trade was wrong because the trader made a mistake or didn’t accurately analyse the trading set-up.

The focus in this kind of information leads most traders to think that entries are the most significant aspect of the trading profession, and they use most of their time to get “correct” entries. The other consequence is that novice traders prefer systems with high percent winners over other systems, without more in-depth analysis about other aspects.

The reality is that the market is characterized by its randomness; and that trading, as opposed to gambling, is not a closed game. Trading is open in its entry, length, and exit, which gives room for uncountable ways to define its rules. Therefore, the trader’s final equity is a combination of the probability of a positive outcome – frequency of success- and the outcome’s pay-off, or magnitude.

This latest variable, the reward-to-risk ratio of a system, technically called “the pay-off” but commonly called risk-reward ratio, is only marginally discussed in many trading books, but it deserves a closer in-depth study because it’s critical for the ultimate profitability of any trading system.

To help you see what I mean, Figure 1 shows a game with 10% percent winners that is highly profitable, because it holds a 20:1 risk-reward ratio.

A losing game is also possible to achieve with 90% winners:

So, as we see, just the percentage winners tell us nothing about a trading strategy. We need to specify both parameters to assess the ultimate behaviour of a system.

The equation of profitability

Let’s call Rr the mean risk-reward of a system.  If we call W the average winning trade and L the average losing trade then Rr is computed as follows:

Rr = W/L

If we call minimum P the percent winners needed to achieve profitability, then the equation that defines if a system is profitable in relation to a determined reward-risk ratio Rr is:

P > 1 / (1 +Rr) (1)

Starting from equation (1) we can also get the equation that defines the reward-risk needed to achieve profitability if we define percent winners P:

Rr > (1-P) / P (2)

If we use one of these formulas on a spreadsheet we will get a table like this one:

When we look at this table, we can see that, if the reward is 0.5, a trader would need two out of three winning trades just to break-even, while they would require only one winner every three trades in the case of a 2:1 payoff, and just one winner every four trades if the mean reward is three times its risk.

The lessons learned from analysing these equations are:

Let’s call nxR the opportunity of a trade, where R is the risk and n is the multiplier of R that defines the opportunity. Then we can observe that:

  1. If you spot an nxR opportunity, you could fail, on average, n-1 times and still be profitable.
  2. A higher nxR protects your account against a drop in the percent of gainers
  3. You don’t need to predict the price to make money because you can be profitable with 10% winners or less.
  4. As a corollary to 3, the real money comes from exits, not entries.
  5. The search for higher R-multiples with decent winning chances is the primary goal when designing a trading system.

A high Rr ratio is a kind of protection against a potential decline in the percentage of winning trades. Therefore, we should make sure our strategies acquire this kind of protection. Finally, we must avoid Rr’s under 1.0, since it requires higher than 50% winners, and that’s not easy to attain when we combine the usual entries with stop-loss protection.

One key idea by Dr. Van K. Tharp is the concept of the low-risk idea. As in business, in trading, a low-risk idea is a good opportunity with moderate cost and high reward, with a reasonable probability to succeed. By using this concept, we get rid of one of the main troubles of a trader: the belief that we need to predict the market to be successful.

As we stated in point 3 of lessons learned: we don’t need to predict. You’ll be perfectly well served with 20% winners if your risk reward is high enough. We just need to use our time to find low-risk opportunities with the proper risk-reward.

We can find a low-risk opportunity, just by price location as in figure 3. Here we employ of a triple bottom, inferred by three dojis, as a fair chance of a possible price turn, and we define our entry above the high of the latest doji, to let the market confirm our trade.  Rr is 3.71 from entry to target, so we need just one out of four similar opportunities for our strategy to be profitable.

Finally, we should use Rr as a way to filter out the trades of a system that don’t meet our criteria of what a low-risk trade is.

If, for instance, you’re using a moving average crossover as your trading strategy, by just filtering out the low profitable trades you will stop trading when price enters choppy channels.

Conclusions:

  • Risk-reward is the parameter that allows the assessment of the opportunity value of a trade.
  • The higher the opportunity, the less the frequency of winners we need to be profitable.
  • Therefore, we can assess an opportunity just by its intrinsic value, regardless of other factors.
  • That frees us from seeking accurate entries and set the focus on trade setup and follow-up.
  • We just need to use the familiar market concepts, for instance, support and resistance, to design a robust trading system, by filtering out all trades that don’t comply with the risk-reward figure.
  • Trading becomes the search for low-risk opportunities, instead of trying to forecast the market.

Appendix:

Example of Rr Calculation:

As we observe in Fig 3, the risk is defined by the distance between the entry price and the stop loss level, and the reward is the distance between the projected target level defined by the distance from the Take profit level to the entry price:

Risk = Entry price– Stop loss

Reward = Take profit – Entry price.

Rr = Reward / Risk

In this case,

Entry price  = 1.19355

Stop loss = 1.19259

Take profit = 1.19712

Therefore,

Risk = 1.19355 -1.19259 = 0.00096

Reward = 1.19712 – 1.19355 = 0.00357

Rr = 0.00357 / 0.00096

Rr = 3.7187

©Forex.Academy

Categories
Forex Educational Library

Let Profits Run

Introduction

Aspiring traders and the majority of people think that if they had a crystal ball telling them the right entry point or the perfect stock to pick, that would be the key to succeed in the financial markets and become filthily rich. Nothing could be further from the truth.

Of course, entries are important, but no entry would save the investor or trader from market volatility. Novice investors and traders without the knowledge about how and when to exit will be wiped from their perfect purchases at the worst moment for them.

Most people focus on a frequentist way of looking at trading. Van K. Tharp calls it “the need to be right.” This need to be right pushes the investor to cut gains short and let losses run in the hope of a reversal that doesn’t always happen.

Daniel Kahneman in his book “Judgment Under Uncertainty: Heuristics and Biases” says that giving a choice of experiencing a string of small losses or one single huge loss, people prefer the second one. It also happens that what people enjoy most are frequent, although modest, gains; a lethal combination that transforms any winning system into a loser.

1.    The mathematics of profitability

What you’ll read just below is the best-kept secret in the trading industry. The real holy grail of trading that explains the importance of letting profits run (achieving high Reward to risk ratios)

The critical feature of a good system isn’t the percentage of gainers, but its expectancy (expected value E).

Expectancy is the expected value of gainers (E+) less the expected value of losers (E-)

(E+) = Sum(G)/(n+) * %Gainers

(E-) = Sum(L)/(n-) * %Losers

Sum(G) is the total dollar gain in our sample history

Sum(L) is the total dollar loss in our sample history

n+ is the number of positive trades(Gainers)

n- is the number of negative trades(Losers)

The expectancy E then is:

E = (E+) – (E-)

If E is positive, the system is good. The higher E the better the system. If E is zero or negative, the system is a loser, even if the percentage of gainers were more than 80%.

There is another angle to this. If we switch our good-old brain to the right way a good trader should think -let profits run and cut losses short- we would be rewarded with high Reward to Risk ratios.

That is the right way to make our system resilient to a decrease in its percent of gainers.

For instance, a 2:1 RR sets the break-even point at 33.33 percent gainers.

Right! We need only one winner out of every three trades to break even.  A 2.5:1 RR will bring the BE point down to 28.5% and a 3:1 RR will get it to 25%: Just one winner out of four trades.

There is no need to struggle with being right! We just need to make sure we follow our system, cut our losses short and let profits run! We can be blind chickens searching for corn grains!

Letting profits run requires patient and discipline. Jack Schwager recalls a sentence by Jesse Livermore: “it was never my thinking that made the big money for me. It was my sitting”. According to Schwager, “that’s a very appropriate comment. It means that you don’t have to be a genius, you don’t have to be smarter than anybody else, but you do need the patience to stay in the correct position.

The “letting profits run” stuff seems to be aimed at long-term traders and nothing to do with short-term ones, but it’s false. Letting profits run is a way of thinking.

You may be an intra-day trader, but at least you’ll need a strategy or trading plan that uses some entry method and some profit target. In this context, letting profits run means allowing your trade develop until your profit target is reached (or close to it) and not letting your fears of losing trigger a premature exit compromising the Reward-to-risk of your system.

2.    Trailing the trend

The usual way to let profits run is using trailing stops, and there are different methods on where to put a trailing stop.

There are systems not using any explicit trail stop. On those, the close of a position is marked by the system’s indicators. A reverse signal marks the close of the previous position.

1.- Trailing stops

The usual way to follow a trend is by trailing it with a stop at some level below the price action in long trades or above it in shorts.

The use of very tight stops at the beginning of a trade, until it proves itself, may lower the risk at the expense of being caught early. In this case, a re-entry plan should be considered.

You should be aware that to catch big trends you’re going to give back 25-35% of the profits at least once in that move. One way to deal with this is to break the position into three different chunks and set different stops and targets for each.

The use of stops based on price and pattern are common. Price movement has to do with levels. Once a level is surpassed there is a good chance it’ll continue to the next level. If price takes out a level and then flips back, like a false breakout, it’s a definite sign to close.

2.- Volatility stops

Volatility stops are located to avoid the “noise” of the market, by putting them below the recent volatility. For example, a trailing stop below the level marked by 1.5 times the 14-period average true range (ATR) keeps us in the trend most of the time.

3.- Trailing stops based on chart patterns.

Some traders use trail stops based on the latest pullback. They use the distance of that pullback as his stop distance. We may also use a pattern of higher highs and lows to put stops just below the recent low (or high if short).

When a market is moving up vertically a very reliable strategy would be a stop below the low of two to three days back (the same strategy on highs apply to down-moving markets).

4.- Trail stops and profit targets

Let’s say we started with a $500 money management stop let’s call this risk R. We should have defined a logical target at least 2R.  As our trade develops in out favor we should consider moving our stop when we reach 1R: At that point, we are left with 1R potential profit, so we should at least move the stop to break-even.

As the price approaches our target, we must consider if the price momentum is improving or stalling, If the latter happens we should tight our stop to a level consistent with the principle of 2:1 reward to risk. For example, if what’s left is 0.5R, it’s unreasonable to risk 1R. The idea is to reassess the reward to risk ratio of what we think remains as open profit.

7.- Multiple methods

Two interesting methods are mentioned in Bruce Babcock’s book “The four cardinal principles of traders”:

Steve Briese, one of the traders, interviewed by the author, states that every trader should have a price objective. The objective shall be set based on the length of the trend. An oscillator of half the length of the trend can be used for this. When it becomes overbought on a long trade it’s advisable to exit a portion of the position, letting the rest ride the trend using a trailing stop.

Jake Bernstein spoke about a channel method to generate entries, which says, it will keep the trader on the right side of a trend.

That indicator consists of a moving average channel composed of a 10-bar MA of highs and an 8-bar MA of lows. The trend turns up when two successive bars are entirely above the top MA. It remains up until two consecutive price bars are below the bottom MA. The trade is kept until the indicator reverses.

Another way to lock profits would be, he says, to buy insurance in the form of options in the other direction (puts on longs, calls on shorts).

3.    key points

  • Let profits run is a crucial ability for a successful trader
  • We should pursue Reward to risk ratios (RR) greater than two rather than high frequency of gainers at the expense of high RR.
  • The use of trail stops is a standard method to let profits run, but an exit can be triggered, also, by a reversal signal or volatility in the opposite direction.
  • Trails come in different flavors: recent retracement point, latest higher low or high, the crossing of a moving average or the price moving out of the channel in the other direction.
  • It’s ok to set targets based on the price action, but the trailing stop must be moved to where RR is within the 2:1 concept. It doesn’t make sense to risk 2 to get just 1.
  • It is advisable to computer-test our idea of trailing to optimize it.

2.    conclusions and criticism

The concept of let profits run is nice, but a short-term currency trader must adapt it and test it, through back and forward tests, and make it his own system like a suit.

The use of trails stops must be carefully tested against fixed stops and targets, but the concept of Reward to risk ratios is Key.

A system with 2.5 – 3 :1 and 40% gainers is preferable than another one with a 1:1 ratio and 65% gainers because in real markets it’s usual that a system underperforms its back-tested values.  We see that the system with 2.5:1 RR has a lot of room to allow for underperformance and, still, being profitable.

The only drawback of low percentage gainers is longer losing streaks, but, as we said, we must train our mind to be committed to the plan, and accept losing streaks. To achieve the right state of mind, we should trade small at the beginning and let the system prove itself.

 


3.    appendix

Python code to play with Reward to risk and Percent gainers

The code takes % gainers (PG) and Reward to risk ratio(RR) as inputs and computes the expectancy(E). A Break-even point between % gainers and RR happens when E approaches zero.

appendix

The figure above shows the break-even (E=0) for a 3 to 1 reward to risk ratio that is at 25% gainers.

You could work the other way around and find the percentage needed for a Reward to risk ratio less than 1. (Below the one required for RR=0.5: PG=66.6% or 2 out of 3 winning trades shall be winners to BE, as is to be expected)

reward to risk game - forex academy

 

©Forex.Academy
Categories
Forex Educational Library

Trading, a Different Viewpoint: It’s all about Market Structure, Risk and System Design

Introduction

Globalization, the internet and also the massive use of computers have contributed to the worldwide spread of trading of all kinds: Stocks, futures, bonds, commodities, currencies. Even the weather forecast is traded!

In recent years, investors have turned their attention to the currency markets as a way to achieve their financial freedom. Forex is perceived as an easy place to achieve that goal. Trading currencies don’t know about bear markets. Currency pairs simply fluctuate driven by supply and demand in cycles of speculation-saturation, explained by behavioral economic science and game theory.

It looks straightforward: buy when a currency rises, sell once it falls.

However, this idyllic paradise has its own crocodiles that are required to be dealt with. The novel investor gets into this new territory armed with her own beliefs, that fitted well in his normal life but it’s utterly wrong when trading. But the main issues relating to underperformance lies inside the mind of the trader. Some say the market is rigged to fool most traders, however, the reality is that traders fool themselves. A shift in their core beliefs – and in the way they think-  is critical for them to succeed.

The purpose of this, divided into three parts, is to boost awareness concerning three main issues the trader faces:

  • The true knowledge about the nature of the trading environment
  • The nature of risk and opportunity
  • The key success factors when designing a system

The trading environment

Usually, people approach the study of the market environment by focusing mainly on market knowledge: Fundamentals, world news, central banks, meetings, interest rates, economic developments, etc. At that point, they interminably analyze currency technicalities: Overbought-oversold, trends, support-resistance, channels, moving averages, Fibonacci and so on.

They think that success is identified with that sort of information; that a trade has been positive because they were right on the market, and when it’s not is because they were wrong.

Huge amounts of paper and bytes have been spent in books and articles about those topics, yet there’s a concealed reality down there not yet uncovered, despite the fact that it’s the primary driver for the failure of the majority of traders (the other one is over-leverage and over-trading).

It’s evident that all traders are aware of the uncertainty of doing currency trading. Yet, except for individuals proficient about probability distributions, I am tempted to state that not a single person really knew what is this about, when she decided to trade currencies (at least not me, by the way).

So, let’s begin. Everybody knows what a fair coin flip is, but what’s the balance of a fair coin flip game, starting 100€, after 100 flips if we earn 1€ when heads and lose 1€ when tails?

Many would say close to zero, and they might be right, but this is just one possible path:Fig 1: 100 flips of a fair coin flip game

There are other paths, for instance, this one that loses more than 20€:

Fig 2: 100 different fair coin flips

This second path seems taken from a totally different game, but the nature of the random processes is baffling, and usually fools us into believing those two graphs are made from different games (distributions) although they’re not.

If we do a graph with 1,000 different games, we’d observe this kind of image:

Fig 3: 1,000 paths of a fair coin flip 100 flips long

Below, a flip coin with a small handicap against the gambler:

Fig 4: 1,000 paths of an unfair coin flip

Finally, a coin flip game with a slight advantage for the player:

Fig 5: 1,000 paths of a coin flip with edge

And that’s the genuine nature of the beast. This figure above corresponds to a diffusion process and each path is called random walk. Diffusion processes happen in nature, likewise, for instance, as a billow of smoke ascending out from a cigarette or the spread of a droplet of watercolor in a glass filled with clean water.

Our first observation regarding fig 4 is that the mean of the smoke cloud drifts with negative slope, so after the 100 games, just about 1/3 of them are above its initial value; and we may observe that, even in the fair coin case, 50% of paths end in negative territory.

The game of a coin flip with an edge (fig 5) is the only one that’s a winner long term, although, short-term, it might be a losing game. In fact, before the first 20 flips, close to 50% of them are underwater, and at flip Nr. 100 about 35% of all paths end losing money.

If that game were a trading system, it would be a fairly good one, with a mean profit of 70% after 500 trades, but how many traders would hold it after 50 trades? My figure: only a 30% lucky traders. The rest would drop it out; even that long-term performance is good enough.

Below fig 6 shows a diffusion graph of 1500 bets of that game, roughly the number of trades a system that takes six daily bets produces in a year. We see that absolutely all paths end positive and the mean total profit is about 200%.

Fig 6: 1,000 paths of a coin flip with edge

By the way, the edge in this game is just a reward to risk ratio of 1.3:1, while keeping a fair coin flip.

Before going into explaining the psychological aspects of what we’ve seen so far, let me show you some observations we’ve learned so far, regarding this phenomena:

  • The nature of the random environment fools the major part of the people
  • There are unlucky paths: Having an edge is no guarantee for a trader’s success (short term).
  • A casino game and the market, as well, collect money from endless hordes of gamblers with thin pockets and weak hands because they have no profitable system or stop trading his system before it could manifest its long-term edge.
  • Casino owners know the math of gambling and protect themselves against volatility by diversification and a maximum allowed bet (only small gamblers allowed).
  • By playing several uncorrelated paths at the same time, we could lower the overall risk, as does the casino owner, but we’d still need an edge and a proper psychological attitude.
  • A system without edge is always a loser, long term.

The psychology of decisions taken under uncertainty

In 2002, Daniel Kahneman received the Nobel prize in economics “for having integrated insights from psychological research into economic science, especially concerning human judgment and decision-making under uncertainty.”

Dr.Kahneman did most of this work with Dr. Amos Tversky, who died in 1966. Their studies opened a new field of economics: Behavioural finance. They called it Prospect Theory and dealt with how investors make decisions under uncertainty and how they choose between alternatives.

One of the behaviors studied was loss aversion. Loss aversion shows the tendency for traders to feel more pain when taking a loss than the joy they feel when taking a profit.

Loss aversion has its complementary conduct: fear of regret. Investors don’t like to make mistakes. Both mechanisms combined are responsible for their compulsion to cut gains short and let loses run.

Another conduct taken from Prospect theory is that individuals believe in the law of small numbers: The tendency of people to infer long-term behavior using a small set of samples. They suffer from myopic loss aversion by assigning excessive significance to short-term losses, abandoning a beneficial long-term strategy because of suboptimal short-term behavior.

That’s the reason people gamble or trade until an unlucky losing streak happens to them, and the main reason casinos and the markets profit from people. Those who lose early, exit because they had depleted their pockets or their patience. Lucky winners will bet until a losing streak wipes their gains.

To abstain from falling into those traps, we should develop a strategy and get the strength and discipline to follow it, instead of looking too closely at results.

In Decision Traps, Russo and Schoemaker, have an illustrative approach to point to the process vs. outcomes dilemma:

Fig 7: Russo and Schoemaker: Process vs Outcomes.

Results are important and they are more easily evaluated and quantified than processes, but traders make the mistake to presume that good results come from good processes and bad results came from bad ones. As we saw here, this may be false, so we should concentrate on making our framework as robust as possible and focus on following our rules.

– A good decision is to follow our rules, even if the result is a loss

– A bad decision is not following our rules, even if the result is a winner.

The Nature of risk and opportunity

To help us in the task of exploring and finding a good trading system we’ll examine the features of risk and opportunity.

We’ll define risk as the amount of money we are willing to lose in order to get a profit.  We may call it a cost instead of risk since it’s truly the cost of our operations. From now on, let’s call this cost R.

We define opportunity as a multiple of R. Of course, as good businesspeople, we expect that the opportunity is worth the risk, so we should value most those opportunities whose returns are higher than the risk involved. The higher, the better.

From the preceding section, we realize that the majority of new investors and traders tend to cut gains and let the losses run, in an attempt for their losses to turn into profits, caused by the need to be right. Therefore, they prefer a trading system that’s right most of the time to a system that’s wrong most of the time, without any other consideration.

The novel trader looks for ideas that could make their system right, endlessly back-testing and optimizing it. The issue is that its enhancements are focused in the wrong direction, and, likewise, most likely ending over-optimized. Thus, with almost certainty, the resulting system won’t perform well in practice on any aspect (expectancy, % gainers, R/r, robustness…)

The focus on probability is sound when the outcomes are symmetrical (Reward/risk =1); otherwise, we must take into account the size of the opportunity as well.

So, we’d like a frame of reference that helps us in our job.  That frame will be achieved using, again, the assistance of our beloved diffusion cloud. The two parameters we’ll toy with will be: percent of gainers and also the Reward to risk (or Opportunity to cost ratio).

Since the goal of this exercise is to expel the misconceptions of the typical trader, we’ll use an extreme example: A winning system that’s right just 10% of the time, however with an R/r =10. It isn’t too pretty. It’s simply to point out that percent gainers don’t matter much:

 Fig 8: A game with 10% winners, and R/r = 10.

Right! One 10xR winner overtakes nine losers.

The only downside employing a system with parameters like this is that there’s a 5% chance to experience 30 consecutive losses, something tough to swallow.

But there are five really bright ideas taken from this exercise:

  • If you find an nxR opportunity you could fail on average n-1 times out of n and, still be profitable. Therefore, you only need to be right just one out of n times on an nX reward to risk opportunity.
  • A higher nxR protects us against a drop in the percent of gainers of our system, making it more robust
  • You don’t need to predict price movement to make money
  • Repeat; You don’t need to predict prices to make money
  • If you don’t have to predict, then the real money comes from exits, not entries.
  • The search for higher R-multiples with decent winning chances is the primary goal when designing a trading system.

Below it’s a table with the break-even point winning rate against nxR

Fig 9: nxR vs. break-even point in % winners.

We should look at the reward ratio nxR as a kind of insurance against a potential drop in the percent of winners, and make sure our systems inherit that sort of safe protection. Finally, we must avoid nxR’s below 1.0, since it forces our system to percent winners higher than 50%, and that’s very difficult to attain combined with stop losses and normal trading indicators.

Now, I feel we all know far better what we should seek: Looking for what a good businessperson does: Good opportunities with reduced cost and a reasonable likelihood to happen.

That’s what Dr. Van K. Tharp calls Low-risk ideas. A low-risk idea may be found simply by price location compared to some recent high, low or long-term moving average. As an example, let’s see this chart:

Fig 10: EUR/USD 15 min chart.

Here we make use of a triple bottom, suggested by three dojis, as a sign that there is a possible price turn, and we define our trigger as the price above the high of the latest doji. The stochastics in over-sold condition and crossing the 20-line to the upside is the second sign in favor of the hypothesis. There has a 3.71R profit on the table from entry to target, so the opportunity is there for us to pick.

Here it is another example using a simple moving average 10-3 crossover, but taking only those signals with more than 2xR:

Fig 10b: USD/CAD 15 min chart. In green 2xR trades using MA x-overs. In red trades that don’t pass the 2xR condition

Those are simply examples. The main purpose is, there are lots of ideas on trading signals: support-resistance, MA crossovers, breakouts, MACD, Stochastics, channels, Candlestick patterns, double and triple tops and bottoms, ABC pattern etc. However, all those ought to be weighed against its R-multiple payoff before being taken. Another point to remember is that good exits and risk control are more important than entries.

Key success factors when designing a system

Yeo Keon Hee, in his book Peak Performance Forex Trading, defines the three most vital elements of successful trading:

  1. Establishing a well-defined trading system
  2. Developing a consistent way to control risk
  3. Having the discipline to respect all trading rules defined in point 1 and 2

Those three points are essential, however not unique. We need additional tasks to perfect our job and our results as traders:

  1. Using proper position sizing to help us achieve our objectives.
  2. Keeping a trading diary, with annotations of our feelings, beliefs, and errors, while trading.
  3. A trading record including position size, entry date, exit date, entry price, stop price, target price, exit price, the nxR planned, the nxR achieved; and optionally the max adverse excursion and max favorable excursion as well.
  4. A continuous improvement method: A systematic review task that periodically looks at our trading record and draws conclusions about our trading actions, errors, profit taking, stop placement etc. and apply corrections/improvements to the system.

First of all, let’s define what a system is:

Van K Tharp wrote an article [1] about the subject. There he stated that what most traders think is a trading system, he would call it a trading strategy.

To me, the major takeaway of Van K. Tharp’s view of what a system means is the idea that a system is some structure designed to accomplish some objectives. In reference to McDonald’s, as an example of a business system, he says “a system is something that is repeatable, simple enough to be run by a 16-year-old who might not be that bright, and works well enough to keep many people returning as customers”.

You can fully read this interesting article by clicking on the link [1]  at the bottom of this document. Therefore I won’t expand more on this subject. If I discussed it, it was owing to the appealing thought of a system, as some structure designed to accomplish some goals that work mechanically or managed by people with average intelligence.

In this section, we won’t discuss details concerning entries, stop losses and exits- that’s a subject for other articles- however. We’ll examine the statistical properties of a sound system, and we’ll compare them with those from a bad system, so we could learn something about the way to advance in our pursuit.

Let’s begin by saying that in order to make sure the parameters of our system are representative of the entire universe of possibilities, we’d need an ample sample of trades taken from all possible scenarios that the system may encounter. Professionals test their systems using a multiyear database (10+ years as a minimum); however, an absolute minimum of 100 trades is a must, though it’s beyond the lowest size I might accept.

The mathematics of profitability

The main key feature of a sound system isn’t the percentage of gainers, but expectancy E (the expected value of trades).

Expectancy is the expected value of winners (E+) less the expected value of losers (E-)

(E+) = Sum(G)/(n+)  x  %Winners

(E-) = Sum(L)/(n-)  x  %Losers

Sum(G): The total dollar gains in our sample history, excluding losers

Sum(L): The total dollar losses in our sample history, excluding winners

(n+): The number of positive trades(Gainers)

(n-): The number of negative trades(Losers)

The expectancy E then is:

E = (E+) – (E-)

Similarly, we can compute

E = SUM(trade results)/n

Where n = total number of trades,

So E is the normalized mean or total results divided by the number of trades n.

If E is positive the system is good. The higher the E is, the better the system is, as well. If E is zero or negative, the system is a loser, even though the percentage of gainers was over 80%.

Another measure of goodness is the variation of results. Dr. Chis Anderson (main consultant for Dr. Van K. Tharp on his book about position sizing) explains that, for him, expectancy E is a measure of the non-random (or edge) part of the trade, and that we are able to determine if that edge is real or not, statistically.

From the trade list, we can also calculate the standard deviation of the set (STD).

From the trade list, we can also calculate the standard deviation of the set (STD). That can be done in Excel or by some other statistical package (Python, R, etc.). This is a measure of the variability of those results around the mean(E).

A ratio of E divided by the STD is a good metric of how big our edge is, relative to random variations. This can be coupled quite directly to how smooth the equity curve is.

Dr. Van K Tharp uses this measure to compute what he calls the System Quality Number (SQN)

SQN = 100 x E / STDEV

Dr. Anderson says he’s happy if the STDEV is five times smaller than E, that systems with those kind of figures show drawdown characteristics he can live with. That means SQN >= 2 are excellent systems.

As an exercise about the way to progress from a lousy system up to a decent and quite usable one, let’s start by looking at the stats, and other interesting metrics, of a bad system- a real draft for a currencies system- and, next, tweak it to try improving its performance:

STATISTICS OF THE ORIGINAL SYSTEM:

Nr. of trades             : 143.00
gainers                   : 58.74%
Profit Factor             : 1.06
Mean nxR                  : 0.74
sample stats parameters:      
mean(Expectancy)          : 0.0228
Standard dev              : 1.6351
VAN K THARP SQN           : 0.1396

Our sample is 143 long, with 58.74% winners, but the mean nxR is just 0.74, therefore the combination of those two parameters results in E = 0.0228, or just 2,28 cents per dollar risked. SQN at 0.1396 shows it’s unsuitable to trade.

Let’s see the histogram of losses:

Histogram of R-losers

Fig 11: Histogram of R-losers (normalized to R=1)

Original system probability of profits of x R-size

Histogram of R-Profits

Fig 12: Histogram of R-Profits (normalized to R=1)

Diffusion cloud of 10,000 synthetic histories of the system:

Original system: Diffusion cloud 10,000 histories of 1,000 trades

Fig 13: Original system: Diffusion cloud 10,000 histories of 1,000 trades.

Histogram of Expectancy of 10,000 synthetic histories:

Expectancy histogram of 10,000 histories of 1,000 trades

Fig 14: Expectancy histogram of 10,000 histories of 1,000 trades. 50% of them are negative

We notice that the main source of information about what to improve lies in the histograms of losses and profits. There, we may note that we need to trim losses as a first measure. Also, the histogram of profits shows that there are too many trades with just a tinny profit. We don’t know what causes all this: Entries taken too early; too soon, or too late, on exits, or a combination of these factors. Therefore, we must examine trade by trade to find out that information and make the needed changes.

As a theoretical exercise, let’s assume we did that and, as a consequence of these modifications, we’ve reduced losses bigger than 2R by half and, also improved profits below 0.5R by two. The rest of the losses and profits remain unchanged.  Let’s see the stats of the new system:

IMPROVED SYSTEM STATISTICS:  
Nr. of trades             : 143.00 %
gainers                   : 58.74%
Profit Factor             : 1.99
mean nxR                  : 1.40 

sample stats parameters:       
mean(Expectancy)          : 0.4081
Standard dev              : 2.2007  
VAN K THARP SQN           : 1.8546

By doing this we’ve achieved an expectancy of 41 cents per dollar risked and an SQN of 1.53. It isn’t a perfect system, but it’s already usable to trade, even better than the average system:

Improved system: Diffusion cloud 10,000 histories of 1,000 trades

Fig 15: Improved system: Diffusion cloud 10,000 histories of 1,000 trades.

We may notice, also, on the histogram of Expectancies, below, that, besides owning a higher mean, all values of the distribution lie in positive territory. That’s an excellent sign of robustness and a good edge.

Expectancy histogram of 10,000 histories of 1,000 trades

Fig 17: Improved system: Expectancy histogram of 10,000 histories of 1,000 trades.

There are other complementary data we can extract that reveal other aspects of the system, such those below:

Trading System: It’s All About Market Structure, Risk & System Design

Trading System

Fig 17, for instance, shows that the system has a 40% chance of having 2 winners in a row, and 15% chance of 3 of them. Also, from fig 18, there’s a 60% chance of 2 loses in a row, 37% chance of 3 losers and 5% chance of a streak of 7 losers, so we must prepare ourselves against this eventuality by proper risk management.

Throughout this exercise, we’ve learned how to use our past trading information to analyze a system, decide what parts need to be modified, then perform the modifications, continue by testing it again using a new batch of results and observe if the new statistical data is sufficiently good to approve it for trading. Otherwise, a new round of modifications must be carried out.

Position Sizing

All figures and stats we’ve seen until now belong to an R-normalized system: It trades just a unity of risk per trade, without any position sizing strategy at all. That is needed to characterize the system properly. But the real value of a framework that allows this type of measurements is to use it as a scenario planning to experiment with different position sizing strategies.

We should remember, a system is a structure to achieve specific goals.

And position size is the method that helps us to achieve the financial goal of that system, at a determined financial maximum risk.

As an exercise, Let’s look at what this system may accomplish by maximizing position size without regard for risk (besides not going broke).

We’ll do it using Ralf Vince’s optimal f: The optimal fraction of our running capital. The computation of optimal f for this system was done using a Python script over 10,000 synthetic histories and resulted in a mean Opt f = 22%. To be on the safe side, we’ll use 75% of this value. That means the system will bet 16.77% of the running capital on every trade.

The result of the diffusion cloud will be shown in semi-log scale to make it fit the graph:

Diffusion cloud traded with Optimal f. y log scale

Fig 19: Improved system: Diffusion cloud traded with Optimal f. y log scale.

Below the probability curve of the log of profits, on a starting 10,000€ account, after 1000 trades:Trading System curve

Starting capital   :  1.0 e+4
Mean ending Capital:  2.54013596e+10
Min  ending Capital:  4.20930083e+02
Max  ending Capital:  3.94680594e+18

We see that there is 50% chance that our capital ends at 25,400 million euro (2.54 e+10) after 1000 trades, and a small chance of that figure is 3+ digits higher. Of course, the market will stop delivering profits much early than this. The purpose of the exercise is to show the power of compounding using position sizing.

Let’s see the drawdown curve of this positioning strategy:

Curve of Trading System

We observe there’s 80% chance our max drawdown being more than 75% and 20% chance of it being 90%, so this kind of roller-coaster isn’t for the faint heart!

Before finishing with this scenario, let’s look at a final graph:

trading curve

This graph shows the probability to reach 10x our initial capital after n trades. For this system, we observe that there’s a 25% chance (one out of 4 paths) that we could reach 10X in less than 80 trades and a 50% chance this happens in less than 150 trades.

That shows an important property of the optimal f strategy: Optimal f is the fastest way to grow a portfolio. The closer we approach optimal f the faster it grows. But as position size goes beyond the optimal fraction the risk keeps increasing but the profit diminishes, so there’s no incentive to trade beyond that point.

That property may suggest ideas about an alternative use the use of optimal f. If you think about a bit, surely, you’ll find some of them.

My goal with this exercise was to show that any average system can achieve any desirable objective.

Now let’s do another useful exercise. Let’s compute the fraction that fulfills a given objective limited by a given drawdown.

Let’s do a position sizing strategy for the faint-heart trader. He doesn’t wish more than 10% drawdown, accepting a 5% probability that drawdown goes to 15%. His primary concern is the risk, so he takes what the system could deliver within that small risk.

To find this sweet spot we need to try several sizes on our simulator using different fractions until that spot is reached. After a couple of trials, we find that the right amount for this system is to trade 1% of the running balance on each trade. Here we assumed that no other systems are used, and just one trade at a time. If several positions are needed, then the portfolio should be divided, or, alternatively, we must compute the characteristics of all systems combined.

Below, the main figures of the resulting system:

Starting Capital   :  10,000 | forex academy

Starting Capital   :  10,000
Mean ending Capital:  45,508
Min  ending Capital:  13,406
Max  ending Capital:  177,833

Trading System - Forex Academy

Mean drawdown: 9.58%
Max drawdown: 25.98%
Min drawdown: 4.13%

We observe, the system performs quite well for such small drawdown, with 100% of all paths more than doubling the capital, and a mean return of 455% after 1,000 trades.

Trading System - Forex.Academy

Finally, the figures for a bold trader who is willing to risk 30% of its capital, with just a small chance of more than 40%, are shown below.

FA

Starting Capital   :  10,000
Mean ending Capital:  710,455
Min  ending Capital:  19,890
Max  ending Capital:  37,924,312

FOREX TRADING SYSTEM

Mean drawdown: 26.43%
Max drawdown: 60.52%
Min drawdown: 11.97%

We observe that this positioning size is about 2.5 times riskier than the previous one. In the more conservative position sizing, we have a 5% chance of 15% max drawdown, while this one has a 5% chance of about 38% drawdown. But on returns we go from a mean ending capital of 45,500€ to a mean ending capital of 710,455€, surpassing by more than 10 times the returns of the first strategy.

This is common in position sizing compounding. Drawdowns grow arithmetically, returns grow geometrically.


Summary

Throughout this document, we’ve learned quite a bit about the three main aspects of trading.

Let’s summarize:

Nature of the trading environment

  • The nature of the random environment fools a majority of the people
  • New traders want to be right so they cut their profits while hanging on their losses
  • New traders are psychologically affected by the law of small numbers, and fail because they believe in the law of small numbers instead of being confident by the long-term edge of their system.
  • Having an edge is no guarantee for a trader’s success (short term) of you don’t have an edge and the discipline to follow your system.
  • By splitting the risk into several uncorrelated paths at the same time, we could lower the overall risk
  • A system without edge is always a loser long term.

The nature of risk and opportunity

  • If we look for nxR opportunities, we just need to succeed once every n trades be profitable.
  • A system with higher nxR is protected against a drop in the percent of gainers of our system, making it more robust.
  • We don’t need to predict price movement to make money.
  • If we don’t need to predict, then real money comes from exits, not from entries.
  • The search for higher R-multiples with decent winning chances is the primary goal when designing a trading system.

Key factors to look when developing a system

  • A system is a structure designed to accomplish specific goals that work automatically.
  • The three most vital elements of successful trading:
    • Establishing a well-defined trading system
    • Developing a consistent way of controlling risk
    • Having the discipline to respect all trading rules defined in point 1 and 2
  • Using proper position sizing helps us achieve our objectives.
  • Keeping a trading diary, with annotations of our feelings, beliefs, and errors, while trading.
  • It’s essential to keep a trading record
  • We need a continuous improvement method: A systematic review task that periodically looks at our trading records and draws conclusions about our trading actions, errors, profit-taking, stop placement, etc. and apply corrections/improvements to the system.
  • Position sizing is the tool to help us achieve our specific objectives about profits and risk.


References

[1] http://www.stockbangladesh.com/blog/what-is-a-trading-system-by-van-k-tharp/

Recommended readings:

Trade your way to your financial freedom, Van K. Tharp

Peak performance Forex Trading, Yeo, Keong Hee