Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

russellhq

Risk of Ruin Discussion

Recommended Posts

I'd like to start a disscussion on the maths behind risk of ruin as from what I've read previously, it leaves me a little uncomfortable.

 

I'll start by discussing the way it's usually presented. Usually when calculating RoR, you normally start with the the answer and work backwards, so lets do that.

 

I'll use the coin flipping analogy as the game. So say we play a game where I flip a coin and if it lands on heads then you win and if it's tails you lose. Normally, before the start, you would decided on what level of risk you will accept before going broke, say it's 1 in 10,000. This works out at roughly 13 tails in a row or 0.5^13.

 

Nice and easy, we can play the game for as long as we want but if there is a run of 13 tails, then you're out.

 

But, what if, at the start of the game you have a run of 12 tails, then a head, then 2 tails. You are still out! This thought led me to the following:

 

This time, instead of ruin meaning you can no longer play, lets set ruin to be true only at then end of a set number of games. If during the course of play you pass the ruin line, you are still allowed to play to try and recover but you must stop after the set number of games.

 

Lets start out by saying we will play 27 times, what will be the chance of you being ruined?

 

To work this out, lets start with how many different permutations of the game there is (how many difference ways we can flip the coin 27 times).

 

2^27 is the answer

 

Now lets work out how combinations there are that can ruin you by the end of play.

 

If you get 0 heads during the 27 flips, then all agreed, you would be well and truly ruined. There is only 1 combination of this.

 

If you get 1 head during the 27 flips, you would still be ruined. There are 27 combinations where you can get only 1 head from 27 flips.

 

If you get 2 heads during the 27 flips, again you'll be ruined. To calculate the combinations, we use factorials: 27!/(27-2)! = Number of ways you can be ruined.

 

We keep doing this until we get to 7 heads, after 7 heads, you would always be able to recover by the end.

 

So when we add up all the combinations from 0 heads, to 7 heads:

 

0 heads = 1

1 heads = 27

2 heads = 27!/(27-2)!

3 heads = 27!/(27-3)!

4 heads = 27!/(27-4)!

5 heads = 27!/(27-5)!

6 heads = 27!/(27-6)!

7 heads = 27!/(27-7)!

 

And divide by the total number of permutations (2^27) we end up with our answer. In this case it's 1 in 100!

 

This is a lot higher than our initial assesment of 1 in 10,000!

 

This is just the basics and i've not considered Risk/Reward ratios etc (that can be added later). I just wanted to start with the basics.

 

Thoughts?

Share this post


Link to post
Share on other sites

Be interested where you go with this, a neglected subject that really should be a mandatory part of trading 101.

 

The brain is a bit sluggish at the moment but I am not sure it makes sense (to me) to divorce account size and bet size from the equation. The main parameters to RoR are expectation of outcome (50:50) in our case, bankroll and bet size. Just having difficulty getting my head around how you have abstracted things. Again you can make bet and bank constant arbitrary values but I need to think if that actually allows them to be dropped from the equation. To lazy for thinking right now :)

 

Having said that looking at 'streakiness' is a pretty valuable exercise, many trading approaches do seem to yield 'streaks' (probably due to cycling market conditions).

Share this post


Link to post
Share on other sites

Hi Blowfish.

 

Account size and bet size would be the outcome of this exercise.

 

For example, in the first method we used an arbitrary RoR of 1 in 10,000 then calculated that 13 tails in a row would be about a 1 in 10,000 chance. Therefore, we assumed we would be ruined only after 13 straight tails. So to bankroll ourselves to cover the 9,999 other events where we don't hit 13 tails, we would need a bank of 13 times our bet size. Normally though we start with a bank size, and would divide it by 13 to work out our bet size.

Share this post


Link to post
Share on other sites
Hi Blowfish.

 

Account size and bet size would be the outcome of this exercise.

 

For example, in the first method we used an arbitrary RoR of 1 in 10,000 then calculated that 13 tails in a row would be about a 1 in 10,000 chance. Therefore, we assumed we would be ruined only after 13 straight tails. So to bankroll ourselves to cover the 9,999 other events where we don't hit 13 tails, we would need a bank of 13 times our bet size. Normally though we start with a bank size, and would divide it by 13 to work out our bet size.

 

Russel,

 

Trading is negative sum when you add in all costs. As a trader you have to to do significantly better than 1 to 1 in order to overcome the costs and the obstacles that you are pointing out to make it worth one's while. It is very difficult and leads many hedge fund managers to lying, cheating, and stealing to post quarterly returns that are better than returns that would be earned by the randomly chosen hedge fund.

 

MM

Share this post


Link to post
Share on other sites

I am starting to get where you are going with your math Russell, but it only hold's true if you continue to risk the same amount after 6, 9, or even 12 losses. If you were considering Ruin to be dead broke, after 12 losses if you made another trade with the same risk you'd be risking 100% of your capital!

 

Depending on your risk model whether it be percentage based, fixed, or something else one would think you need to adjust it to be inline with your capital.

Share this post


Link to post
Share on other sites

Using analogies with coin toss for these kind of computation in trading is not much useful, and probably misleading.

 

There is a fundamental difference. While a coin can do whatever it likes, mkts don't.

 

Volatility is obviously bounded, as at certain prices you dont have no more buyers or sellers. Further, mkts (especially futures) experience violent reversals. In fact GBM with reversion are pretty realistic models for these (if we let volatility change randomly).

 

You can have large dd, but can't really have "unbounded losses", unless you use stops, in which case, obviously, you do.

 

[That is another reason why all fx brokers and scammers recommend to people to use stops .]

 

 

Tom

Share this post


Link to post
Share on other sites

Hi Russel

A most interesting post.

You will flip a coin 13 times .

The odds are 1 in 10000 you will go bust.

You go bust.!!!!!!!!!!!!!!!!!!. Where did you go wrong???.

You went wrong on on the second flip

The double up.

You cant trade like that.

To stay in the Park you must minimise your losses. Therefore the moment you are wrong you are out.

START AGAIN

We wont discuss the next problem

13 start agains!!!!

Kind regards

bobc

Share this post


Link to post
Share on other sites

Hi tommaso, i can't really agree with what you are saying unless you can expand further. Markets, like any other risk based activity, must follow the laws of probability. Flipping a coin and it landing heads or tails is analogous to entering a trade and it going up or down.

 

Discussing probabilities and risk is essential to maintaining a healthy account and that is what I am attempting to do here.

Share this post


Link to post
Share on other sites
Hi Russel

A most interesting post.

You will flip a coin 13 times .

The odds are 1 in 10000 you will go bust.

You go bust.!!!!!!!!!!!!!!!!!!. Where did you go wrong???.

You went wrong on on the second flip

The double up.

You cant trade like that.

To stay in the Park you must minimise your losses. Therefore the moment you are wrong you are out.

START AGAIN

We wont discuss the next problem

13 start agains!!!!

Kind regards

bobc

 

Hi bob, I've not mentioned wager size/risk value yet so I'm not sure where you are coming from. What I am discussing here is probabilities. Once the probability is defined, we can move onto risk amounts/stops to keep us in the game.

Share this post


Link to post
Share on other sites
Hi bob, I've not mentioned wager size/risk value yet so I'm not sure where you are coming from. What I am discussing here is probabilities. Once the probability is defined, we can move onto risk amounts/stops to keep us in the game.

 

Sorry Russel. I have jumped the Gun. Please ignore my post. Perhaps the Moderator should remove it

Kind regards

bobc

Share this post


Link to post
Share on other sites

[That is another reason why all fx brokers and scammers recommend to people to use stops .]

Tom

 

Are you saying that trading without stops is part of your strategy? You never use a stop?

Share this post


Link to post
Share on other sites
Are you saying that trading without stops is part of your strategy? You never use a stop?

 

Right. Stops are designed to keep the herd around zero. And they work perfectly to that purpose.

 

Tom

Share this post


Link to post
Share on other sites
Hi tommaso, i can't really agree with what you are saying unless you can expand further. Markets, like any other risk based activity, must follow the laws of probability. Flipping a coin and it landing heads or tails is analogous to entering a trade and it going up or down.

 

Discussing probabilities and risk is essential to maintaining a healthy account and that is what I am attempting to do here.

 

 

Mkts don't have to follow anything.

 

Probability models are mere attempts made by humans to understand part of the complexity of nature. And it's certainly not a coin toss model going to help.

 

If you introduced a GBM with reversion and jump diffusion and not constant variance

maybe the model could come close to a barely acceptable start to investigate some

aspects of money management and strategy performances with proper probabilistic tools.

 

Discussing the mkts with a coin toss won't lead anywhere, and is an especially biased

and naive approach, as mkt have locally bounded volatility, which is also the reason

why the broker can take sistematically the risk to lend you money.

 

Tom

Share this post


Link to post
Share on other sites
Using analogies with coin toss for these kind of computation in trading is not much useful, and probably misleading.

 

There is a fundamental difference. While a coin can do whatever it likes, mkts don't.

 

Volatility is obviously bounded, as at certain prices you dont have no more buyers or sellers. Further, mkts (especially futures) experience violent reversals. In fact GBM with reversion are pretty realistic models for these (if we let volatility change randomly).

 

You can have large dd, but can't really have "unbounded losses", unless you use stops, in which case, obviously, you do.

 

[That is another reason why all fx brokers and scammers recommend to people to use stops .]

 

 

Tom

 

Volatility is not bound.

 

Not using stops is an incredibly dangerous approach if you are trading.

Share this post


Link to post
Share on other sites
Volatility is not bound.

 

.

 

Dear Mighty Mouse

Please explain to a simple farm boy from sunny South Africa how volatility is not bound.

If there are no buyers and no sellers there is no movement. if there is no movement , there is no volatility.

Kind regards

bobc

Share this post


Link to post
Share on other sites
Mkts don't have to follow anything.

 

That's exactly why we assume they can do anything.

 

Starting very simply, if I complete 100 trades in a year then each trade can either win me money or lose me money. This is analogous to flipping a coin 100 times, it'll either land heads or tails, and I'll either win or lose.

 

What you are talking about are strategies to improve our chances, I'm starting from a conservative approach where we have no edge over the probabilities.

Share this post


Link to post
Share on other sites
Dear Mighty Mouse

Please explain to a simple farm boy from sunny South Africa how volatility is not bound.

If there are no buyers and no sellers there is no movement. if there is no movement , there is no volatility.

Kind regards

bobc

 

bobc, if there are no buyers or sellers, there is no market. Only when we have buyers and sellers, we have a market and boundless volatility.

Share this post


Link to post
Share on other sites
bobc, if there are no buyers or sellers, there is no market. Only when we have buyers and sellers, we have a market and boundless volatility.
Then it may follow that the more players there are, the lower the volatility, as the likelihood of any one of 10,000 players accepting a price becomes a higher probability. The more players ... the more liquidity.

 

The only spanner in those works then, is market sentiment and herd mentality.

We saw this over the past 10 days - herds and sentiment!

 

Has anything really changed?

Why was the DOW good value on TUESDAY, but stank on THURSDAY?

 

No reason at all - the market was spooked by fear, that's all - value didn't change.

 

Back to the topic ...

Share this post


Link to post
Share on other sites
I'd like to start a disscussion on the maths behind risk of ruin as from what I've read previously, it leaves me a little uncomfortable.

 

I'll start by discussing the way it's usually presented. Usually when calculating RoR, you normally start with the the answer and work backwards, so lets do that.

 

I'll use the coin flipping analogy as the game. So say we play a game where I flip a coin and if it lands on heads then you win and if it's tails you lose. Normally, before the start, you would decided on what level of risk you will accept before going broke, say it's 1 in 10,000. This works out at roughly 13 tails in a row or 0.5^13.

 

Nice and easy, we can play the game for as long as we want but if there is a run of 13 tails, then you're out.

 

But, what if, at the start of the game you have a run of 12 tails, then a head, then 2 tails. You are still out! This thought led me to the following:

 

This time, instead of ruin meaning you can no longer play, lets set ruin to be true only at then end of a set number of games. If during the course of play you pass the ruin line, you are still allowed to play to try and recover but you must stop after the set number of games.

 

Lets start out by saying we will play 27 times, what will be the chance of you being ruined?

 

To work this out, lets start with how many different permutations of the game there is (how many difference ways we can flip the coin 27 times).

 

2^27 is the answer

 

Now lets work out how combinations there are that can ruin you by the end of play.

 

If you get 0 heads during the 27 flips, then all agreed, you would be well and truly ruined. There is only 1 combination of this.

 

If you get 1 head during the 27 flips, you would still be ruined. There are 27 combinations where you can get only 1 head from 27 flips.

 

If you get 2 heads during the 27 flips, again you'll be ruined. To calculate the combinations, we use factorials: 27!/(27-2)! = Number of ways you can be ruined.

 

We keep doing this until we get to 7 heads, after 7 heads, you would always be able to recover by the end.

 

So when we add up all the combinations from 0 heads, to 7 heads:

 

0 heads = 1

1 heads = 27

2 heads = 27!/(27-2)!

3 heads = 27!/(27-3)!

4 heads = 27!/(27-4)!

5 heads = 27!/(27-5)!

6 heads = 27!/(27-6)!

7 heads = 27!/(27-7)!

 

And divide by the total number of permutations (2^27) we end up with our answer. In this case it's 1 in 100!

 

This is a lot higher than our initial assesment of 1 in 10,000!

 

This is just the basics and i've not considered Risk/Reward ratios etc (that can be added later). I just wanted to start with the basics.

 

Thoughts?

 

I have been reading a good book on this subject. The Universal Principles of Successful Trading, by Brent Penfold. He says the most important leg of the 3 legged stool is Risk Management and Risk of Ruin. He even has a computer program associated with this book that helps to calculate risk of ruin situations. I would like any comments on this book if anyone has read or is reading this book.

Jim

Share this post


Link to post
Share on other sites

I've been doing a bit more research as this puzzle has been a real head scratcher, but I think I've made more progress.

 

Let's look at the following problem:

 

A trader has a win rate of 55% and on average his losing traders lose $1000 and his wining traders win $1200.

 

Over the next year he expects to execute 100 trades. What would the size of his bank need to be such that he would only be ruined once in 10,000 years.

 

My calculations say he would need $23,000 to cover the risk...

Share this post


Link to post
Share on other sites
I've been doing a bit more research as this puzzle has been a real head scratcher, but I think I've made more progress.

 

Let's look at the following problem:

 

A trader has a win rate of 55% and on average his losing traders lose $1000 and his wining traders win $1200.

 

Over the next year he expects to execute 100 trades. What would the size of his bank need to be such that he would only be ruined once in 10,000 years.

 

My calculations say he would need $23,000 to cover the risk...

 

Can you post your calculations on that?

Share this post


Link to post
Share on other sites
Volatility is not bound.

 

Not using stops is an incredibly dangerous approach if you are trading.

 

 

Stops make the loss unbounded. It's bounded only if taken a stop you quit trading forever.

All scammers and brokers push hard on stop because this way your loss is unbounded.

 

If one does some serious reasearch (and i mean "serious", not te coin toss) and simulations, it is easily seen that strategies which use stop at trade level are sistematically unprofitable.

 

If you see seemingly good backtested results, it's just curve fitting.

 

I have been trading live for years showing and publishing live results of the order of 10% monthly, and all my traders have good returns. I never used stops.

 

Clearly, it requires capital. But anyway small traders are wiped out in any case. Just matter of time.

 

Tom

 

see for instance:

Forums - Robotrading: CT + Trending Strategy on folios of futures

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • Well said. This principle is highly analogous to trading. Any human can easily click buy or sell when they "feel" that price is about to go up or down. The problem with feeling, commonly referred to as "instinctive" trading, is that it cannot be quantified. And because it cannot be quantified, it cannot be empirically tested. Instinctive trading has the lowest barrier to entry and therefore returns the lowest reward. As this is true for most things in life, this comes as no surprise. Unfortunately, the lowest barrier to entry is attractive to new traders for obvious reasons. This actually applied to me decades ago.🤭   It's only human nature to seek the highest amount of reward in exchange for the lowest amount of work. In fact, I often say that there is massive gray area between efficiency and laziness. Fortunately, losing for a living inspired me to investigate the work of Wall Street quants who refer to us as "fishfood" or "cannonfodder." Although I knew that we as retail traders cannot exploit execution rebates or queues like quants do, I learned that we can engage in automated scalp, swing, and trend trading. The thermonuclear caveat here, is that I had no idea how to write code (or program) trading algorithms. So I gravitated toward interface-based algorithm builders that required no coding knowledge (see human nature, aforementioned). In retrospect, I should never have traded code written by builder software because it's buggy and inefficient. However, my paid subscription to the builder software allowed me to view the underlying source code of the generated trading algo--which was written in MQL language. Due to a lack of customization in the builder software, I inevitably found myself editing the code. This led me to coding research which, in turn, led me to abandoning the builder software and coding custom algo's from scratch. Fast forward to the present, I can now code several trading strategies per day across 2 different platforms. Considering how inefficient manual backtesting is, coding is a huge advantage. When a new trading concept hits me, I can write the algo, backtest it, and optimize it within an hour or so--across multiple exchanges and symbols, and cycle through hundreds of different settings for each input. And then I get pages upon pages of performance metrics with the best settings pre-highlighted. Having said all of this, I am by no means an advanced programmer. IMHO, advanced programmers write API gateways, construct their own custom trading platforms, use high end computers with field programmable gateway array chips, and set up shop in close proximity to the exchanges. In any event, a considerable amount of work is required just to get toward the top of the "fishfood"/"cannonfodder" pool. Another advantage of coding is that it forces me to write trade entry and exit conditions (triggers) in black & white, thereby causing me to think microscopically about my precise trade trigger conditions. For example, I have to decide whether the algo should track the slope, angle, and level of each bar price and indicator to be used. Typing a hard number like 50 degrees of angle into code is a lot different than merely looking at a chart myself and saying, that's close enough.  Code doesn't acknowledge "maybe" nor "feelings." Either the math (code) works (is profitable) or doesn't work (is a loser). It doesn't get angry, sad, nor overly optimistic. And it can trade virtually 24 hours per day, 5 days per week. If you learn to code, you'll eventually reach a point where coding an algo that trades as you intended provides its own sense of accomplishment. Soon after, making money in the market merely becomes a side effect of your new job--coding. This is how I compete, at least for now, in this wide world of trading. I highly recommend it.  
    • VRA Vera Bradley stock watch, pull back to 5.08 support area at https://stockconsultant.com/?VRA
    • MU Micron stock watch, pull back to 102.83 gap support area with high trade quality at https://stockconsultant.com/?MU
    • ACLX Arcellx stock watch, trending at 84.6 support area with bullish indicators at https://stockconsultant.com/?ACLX
    • Here’s something few are talking about: The Chinese are printing money like it's going out of style. Not that you'd hear about it in the mainstream news. But Bitcoin knows.   Bitcoin always knows.   Here’s the thing…   When the Chinese government prints money to paper over the cracks, their smart money doesn't sit around waiting to get devalued.   It usually flows into three things: Bitcoin, gold, and dollars.   After years of being beaten down, gold's having one of its best years in decades. But here's the secret -- whatever gold does, Bitcoin's going to do it bigger.   Much bigger.   Since last November, when China started their printing spree, Bitcoin's been moving in near-perfect correlation with the People's Bank of China's balance sheet. Over 80% correlation, maybe even 90%.   Again, few are talking about it.   But here's why this matters right now: This could be the beginning of a huge breakout in the crypto markets.   Bitcoin broke above its July high, and historically, that's led to new all-time highs over 90% of the time. The only times it failed? COVID and the 2022 bear market.   That's it.” – Chris Campbell   Profits from free accurate cryptos signals: https://www.predictmag.com/     
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.