You are on page 1of 9

Take the

Bond Challenge!
Use the IBKR Bond Scanner to compare
available yields against those of your broker.

Start Trading Today!


Interactive Brokers Rated #1
Best Online Broker 2019 by Barron’s* ibkr.com/comparechallenge

Member - NYSE, FINRA, SIPC – Supporting documentation for any claims and statistical information will be provided upon request. *Interactive Brokers
rated #1, Best Online Broker according to Barron’s Best Online Brokers Survey of 2019: February 25, 2019. For more information see, ibkr.com/info
Barron’s is a registered trademark of Dow Jones & Co. Inc.
03-IB20-1280CH1278
Powerful Signals for Stocks & Commodities

Long Term & Short Term

Works with stocks, commodities, futures, options, FOREX, bonds for intra-day or position trading
Triple Confirmed Buy/Sell Signals

Traders Rave Over AbleTrend

SINCE 1994
ABLETREND 7.0 COLLECTED BY

Test-drive it to See All the Signals!

THESE RESULTS ARE BASED ON SIMULATED OR HYPOTHETICAL PERFORMANCE RESULTS THAT HAVE CERTAIN INHERENT LIMITATIONS. UNLIKE THE RESULTS SHOWN IN AN ACTUAL PERFORMANCE RECORD, THESE RESULTS DO NOT
REPRESENT ACTUAL TRADING. ALSO, BECAUSE THESE TRADES HAVE NOT ACTUALLY BEEN EXECUTED, THESE RESULTS MAY HAVE UNDER-OR OVER-COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS
LACK OF LIQUIDITY. SIMULATED OR HYPOTHETICAL TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY
ACCOUNT
ACCOUN WILL OR IS LIKELY TO ACHIEVE PROFITS OR LOSSES SIMILAR TO THESE BEING SHOWN. THE TESTIMONIAL MAY NOT BE REPRESENTATIVE OF THE EXPERIENCE OF OTHER CLIENTS AND THE TESTIMONIAL IS NO GUARANTEE
OF FUTURE PERFORMANCE OR SUCCESS. TECHNICAL ANALYSIS OF STOCKS & COMMODITIES LOGO AND AWARD ARE TRADEMARKS OF TECHNICAL ANALYSIS, INC.
Stocks & Commodities V. 38:13 (14–17): Essential Math For Traders by Perry J. Kaufman

Traders, Know Thy Numbers

Essential Math For Traders


Do you understand the right way to calculate risk, reward, end, which makes it unnecessary to keep track of the equity,
and the chance of something unexpected happening in the and the results are the same.
market? Are you sure? Just in case, here is a review of the basic
calculations and concepts that every trader should know. Creating the NAVs of your account
The net asset value (NAV), which tells you the total percent-

T
by Perry J. Kaufman age return, is created by compounding the daily, weekly, or
monthly returns. This assumes that you are always fully in-
he steady growth of volume in worldwide stock and vested, which is probably not true; however, it is the standard
futures markets during the past twenty years can be for creating annualized returns.
viewed as greatly increased competition for profits. An
important ingredient for success in this new regime is NAVt = NAVt–1 × (1 + rt )
a better understanding of how risk is important.
To know about your risk, you need to be able to do some Because we are multiplying the returns each day, the result
basic calculations, all of which can easily be done in Excel. is a compounded return. Typically, the first value is NAV0 =
This article will summarize the most important of those cal- 100. Note that this is the same process as indexing, that is,
culations that will help traders make better decisions. turning price changes into percentages.
Some sophisticated analysts use the log of returns, but it’s
Calculating returns more complicated and gives exactly the same values, so I use
The daily returns are calculated as: the first one, which is easiest.

Today’s profit or loss Annualized returns


rt =
Original investment Once we have the NAVs, we can find the annualized return.
RAWPIXEL/SHUTTERSTOCK

This will allow us to compare one result with another. It re-


You might expect to divide today’s profits by yesterday’s duces the importance of not having the same amount of data
equity, which is another way to do this. That would be okay, for each market.
but we will use this formula, then compound the results at the

Copyright © Technical Analysis Inc. www.Traders.com


Stocks & Commodities V. 38:13 (14–17): Essential Math For Traders by Perry J. Kaufman
TECHNICAL ANALYSIS BASICS

( )
( )
252 Using the daily returns, rt, as defined earlier, we calculate
the standard deviation as:
NAVt
n
AROR = –1


NAVt–n
t
Σ i=t–n+1 (r – R )
i
The formula says that we divide today’s total return (net
Stdev =
asset value) by the starting value (usually 100 at the begin- n
ning) and raise that to the number of years (in decimal), then
subtract 1. It’s easy to do in Excel: or:

If today’s NAV is in location B150 and the first NAV is in D2 = C2-AVERAGE(C$2:C$150), copy down D2 to D150
location B2, then the formula is: STDEV = SQRT(SUM(D2:D150)/149)

=(B150/B$2)^(252/149)-1 where R is the average of the n values of r.


If we use weekly data, divide 52 by the number of weeks. For Once you know the formula, it is easier to use the Excel func-
monthly data, divide 12 by the number of months. tion STDEV(D2:D150).

Calculating risk The standard deviation (σ in textbooks) shows how the


Risk, which is the same as volatility, is just as important as returns distribute around the average return. The standard
return. Using the same range from 2 to 150: deviation is the same as volatility. For a normal distribution,
one that is symmetric, or a bell shape, the standard deviation
ARISK = AVOL = STDEV(r2, … , r150 ) × SQRT(252) states that:

where the “r”s are the daily returns. As before, if you use • 68% of the data falls between R − 1σ and R + 1σ
weekly data, then multiply by SQRT(52) and for monthly by
SQRT(12). • 95.5% of the data falls between R − 2σ and R + 2σ
Ratio of return to risk • 99.7% of the data falls between R − 3σ and R + 3σ
Having found both the annualized return and the annualized
risk, we can find the ratio—an important value for comparing For example, if 1σ of the annual stock market returns is
the performance of different markets, systems, or portfolios. 6% and the average return is 8%, measured over the past 20
The industry standard is the Sharpe ratio: years, then 68% of the annual returns will fall between -2%
and +14%. There is 16% chance (100 – 68% divided by 2) that
AROR – Risk-free return you will earn more than 14% or less than -2%.
Sharpe ratio =
Annualized risk If we look at the more extreme 2σ case, then 95.5% of the
returns fall between -10% and +22%. There is only a 2.25%
The risk-free return is usually the 3-month T-bill rate, but chance of making more than 22% or losing more than 10%.
because all comparisons will use the same risk-free return, most Figure 1 shows what this looks like.
analysts ignore it. Instead they use the information ratio:
Why is the standard deviation
AROR important?
Information ratio (IR) =
ARISK Knowing the risk allows you to decide how much to commit
to an asset or a trade. Most professionals target a risk of 12%,
Ratios over 1.0 are very good. Ratios over 3.0 are excellent
but rare, and higher ratios are suspicious.

What are the chances?


If we believe that Google will rise by $100 over the next month,
what confidence do we have in that forecast? Is there a 50%
chance of a $100 move and a 25% chance of a $150 increase? 1σ 1σ
When we make a prediction, we want to know its chance of 68.26%
success. Just because the average volatility of Microsoft has
been $8 per day does not mean that it moves $8 each day. What
is the chance of a move of $16 or $3? The standard deviation Mean
is the most popular tool for expressing the probability of an FIGURE 1: DISTRIBUTION. Here is a normal distribution showing the percentage
outcome. It can be used for many applications. area included within the mean ±1 standard deviation.

Copyright © Technical Analysis Inc. www.Traders.com


Stocks & Commodities V. 38:13 (14–17): Essential Math For Traders by Perry J. Kaufman

around $4.00/bushel, as low as $2.00, and as high as $12. It’s


a positively skewed distribution with a fat tail.
Here are the most important That fat tail is very important. It shows that prices can
calculations that will help make very large, sustained moves to the upside and smaller
moves to the downside. That’s good for a trader who is usually
traders make better decisions. long. If we were to apply the average (about $4) and standard
deviation (say, $2.50) to this wheat chart, the average minus
2 standard deviations would be a negative price ($4 – $2.50
that is, one standard deviation of returns of 12%. As stated × 2 = -$1), which is not possible.
earlier, there is a 16% chance of losing more than 12% and a Instead, we can sort the prices and count 10% from the lowest
2.25% chance of losing more than 24%. If a bear market is actual price and 10% from the top to get those probabilities.
defined as a drop of more than 20%, this means that you’ll be It is both simpler and more accurate when dealing with real
able to survive a bear market if you keep the standard devia- price data. Then wheat has a 10% chance of moving above $9
tion of your returns under 12%. and a 10% chance of moving below $2 over the long term.
During the financial crisis of 2008, the risk peaked at just Instead of using prices, we could use the returns of our
under 100%—that’s eight times greater than the recommended trading system. Then we would have a better understanding
target. A conscientious investor would have reduced leverage of our trading risk. After all, it’s not the prices that are risky,
as volatility increased, saving a great deal of the loss. it’s whether we are long or short when prices are moving.
When you plot the returns of a trend-following system they
But that’s theory, not reality should look very much like Figure 3. If you don’t have a trend-
While Figure 1 shows a nice, smooth curve, reality does not. following system, the chart could be very different.
Most often, prices are skewed to the upside, called positive
skewness. It is typical of trend-following returns and also of Putting it to use:
most stock returns because prices tend to go up. Equalizing and controlling the risk
When evaluating a price distribution, the standard deviation Now that we understand a little more about prices and risk,
doesn’t always make sense. A frequency distribution is better. we can use the information ratio to compare performance of
For example, using wheat over a long time period, we plot a markets and choose the one with the highest ratio. That will
range of prices along the bottom and the frequency of occur- have the best payout.
rence at the left. Figure 3 shows that prices were most often To benefit the most, we need to have a portfolio of stocks or
futures markets where each position has the same initial risk.
Normal (symmetric) When everything in your portfolio has the same risk, you are
Positive distribution Negative maximizing diversification; you are not depending on any one
skewness skewness
stock to outperform the others. If you are pairs trading, buying
one stock and selling another, you want the hedge ratio to be
1.0, that is, each leg will have the same risk; otherwise, the
returns and risk of one stock can overwhelm the other.

Position sizing
The simplest position sizing for stocks is to divide your funds
equally across all stocks, then divide that allocation by the
Low prices High prices closing price. It assumes that volatility increases as prices
Arithmetic mean average
increase, which is not true because low-priced stocks are
Figure 2: Skewed distributions. Most system results and stock prices
have a positive skew.
the most volatile. To avoid most of the problems, don’t trade
stocks under $10.
Futures are more complicated but the sizing is more ac-
curate. Divide an equal allocation by the dollar value of the
Wheat Frequency Distribution
2500
2000
20-day average true range. Use a total of only 25% of your
investment so the reserve can absorb any losses. In futures
Frequency

1500
this way of sizing is perfectly accurate and is called volatil-
1000 ity parity. It can also be done for stocks but requires some
500 fiddling with the numbers.
0
0 100 200 300 400 500 600 700 800 900 1000 1100 1200 1300 The key is low volatility
Bins Volatility changes and we need to adjust our portfolio exposure
Figure 3: Frequency distribution. Here’s a sample frequency distribution to avoid both low and high volatility. That means measuring
based on wheat prices. your daily returns using the risk calculation, then leveraging

Copyright © Technical Analysis Inc. www.Traders.com


Stocks & Commodities V. 38:13 (14–17): Essential Math For Traders by Perry J. Kaufman

up when the annualized risk is below your target (of say, 12% Perry Kaufman is a trader and financial engineer. He is
standard deviation) or deleveraging when the risk is higher. the author of many books on trading and market analysis,
You will be surprised to find out that the most money is lost including the new sixth edition (2020) of Trading Systems
when you sit on a portfolio that has lower risk than your tar- And Methods (with the first edition published in 1978 as
get. During good periods in the market, your return is much a seminal book in the field of technical analysis), and A
lower than you expect. On the other hand, scaling down high Guide To Creating A Successful Algorithmic Trading Sys-
risk is very important but does not affect your returns nearly tem (2016). For questions or comments, please go to www.
as much. kaufmansignals.com.
With futures, leveraging and deleveraging is easy because
you have an unused, reserve of funds. To have the same flex- Further reading
ibility for stocks you need to use a double- or triple-leveraged Kaufman, Perry J. [2020]. Trading Systems And Methods,
ETF (such as SPXL), but only invest 1/3 if you use a triple. Sixth Edition, Wiley.
That gives you lots of excess capital to add leverage when the [2016]. A Guide To Creating A Successful Algorithmic
volatility of your returns is too low. Trading System, Wiley.
[2003]. A Short Course In Technical Trading, Wiley.
It’s all about the numbers [1995]. Smarter Trading, McGraw-Hill.
Being able to understand and perform these calculations will
help you control risk and measure the success of your trading
or investment. You can compare your approach with others on
an equal footing. Risk is the most important part of trading.
Control the risk and you are on the road to success.

Copyright © Technical Analysis Inc. www.Traders.com


Traders take many paths to reach their destination.
Can your platform get you there?

Search apps and services to personalize the


NinjaTrader platform to meet your requirements.
Indicators, automated strategies, free tools & more.

Explore now at ninjatraderecosystem.com

Futures, foreign currency and options trading contains substantial risk and is not for every investor. Only
risk capital should be used for trading and only those with sufficient risk capital should consider trading.
Because you
can never have
too many
PowerTools

17 is Here
Featuring the NEW OptionScope™
and QuoteCenter™ PowerTools
Discover the latest features at metastock.com/whats-new
subscribe or renew today!
Every Stocks & Commodities subscription
(regular and digital) includes:
• Full access to our Digital Edition
The complete magazine as a PDF you can download.
• Full access to our Digital Archives 8999
1 year.................
$
That’s 35 years’ worth of content!

2 years............ 149
• Complete access to WorkingMoney.com $ 99
The information you need to invest smartly and successfully.

3 years............ 199
• Access to Traders.com Advantage $ 99
Insights, tips and techniques that can help you trade smarter.

PROFESSIONAL TRADERS’ STARTER KIT


A 5-year subscription to S&C magazine that includes
everything above PLUS a free* book, Charting The Stock
Market: The Wyckoff Method, all for a price that saves
you $150 off the year-by-year price! *Shipping & han-
dling charges apply for foreign orders.

5 years..........
$
29999
That’s around $5 a month!

Visit www.Traders.com to find out more!


Email: Circ@Traders.com • Phone: 206-938-0570 facebook.com/STOCKSandCOMMODITIES @STOCKSandCOMM

You might also like