Algo Trading
Algo Trading
• Important Inventions:
The fast & Chronicle
The invention and development of ‘Wheel’ is an important part of the
trading history. This civilization that witnessed the use of wheel had a
better advantage over their ancestors because they had a greater
ability to produce food, manufacture goods, and transport people and
goods at a greater distance.
Communities started expanding since it became easier for them to
cover greater distance within a short period of time and there was no
need to stay close to food production areas. The wheel was also used
in making pottery; it was an important part of early civilization.
The period from 5th Millennium to 4th Millennium is also important
because this is when proto-writing or the first form of writing was
discovered. People were now able to commute and communicate
better.
Clay amulet, one of
the Tărtăria tablets,
dated to ca. 4500
BCE
Algo Trading
• Trading is a search problem. Buyers must find sellers, and sellers must find buyers. Every trader wants to
trade at a good price. Sellers seek buyers willing to pay high prices. Buyers seek sellers willing to sell at low
prices. Traders also must find traders who are willing to trade the quantities, or sizes, they desire. Traders who
want to trade large quantities may have to find many willing traders to complete their trades
• Dealers and brokers help people trade. Dealers trade with their clients when their clients want to trade. The
prices at which a dealer will buy and sell are the dealers’ bid and ask prices. After they trade with their clients,
dealers then try to trade out at a profit by selling what they have bought or by buying back what they have
sold. In effect, clients pay dealers to take their trading problems. The dealers then try to solve them at a profit.
Dealers profit by buying low and selling high. Successful dealers must be excellent traders.
• Brokers are agents that arrange trades for their clients. They help their clients find traders who are willing to
trade with them. They profit by charging commissions
• In the digital age Dealers are possibly rare. IB does the role of a broker- example CCD-VGS-LnT
A brief overview…contd
• Patient traders obtain better prices than impatient traders do because they are willing to search
longer and harder to arrange their trades at favorable terms. Impatient traders pay for the privilege
of trading when they want to trade
• Traders who offer to trade give other people options to trade. These options sometimes are quite valuable.
Traders who expose their offers can lose to clever traders who use various front- running trading strategies to
extract these option values. Traders therefore must expose their offers very carefully. They should expose
only to traders who are most likely to trade with them.
• Traders who trade only to accommodate other traders risk trading with, and losing to, well- informed
speculators. Speculators are traders who trade to profit from information they have about future prices. Well-
informed speculators can predict futures prices better than other traders can. They then choose to buy or sell
based upon which side they expect will be profitable.
• Dealers lose to well-informed speculators because they end up being on the wrong side of the trade. Prices
tend to move against their positions before they can trade out of them. All traders try to avoid trading with
well-informed speculators or copy them
A brief overview…contd
Dealers recover their losses to informed speculators by widening the spread between the bid and ask prices at
which they will buy and sell. Uninformed traders therefore pay more for their trades when dealers lose a lot to
informed traders. In effect, uninformed traders lose to well- informed traders through the intermediation of
dealers. This why dealers are now almost extinct in some markets due to digital intervention
Traders who can estimate fundamental values cause prices to reflect their value estimates. They buy when price
is below their value estimates and sell when price is above. Their buying pushes prices up, and their selling pulls
prices down. They do not trade if they believe that prices reflect values. Well-informed traders make prices
informative.
Bluffers can sometimes fool uninformed traders into trading unwisely. In general, they can profit if the price
impacts of their buying and selling are not exactly opposite to each other
Contd…
• Since dealers may trade when bluffers want them to trade, dealers must be highly disciplined to avoid
losing to bluffers.
• Trading is a zero-sum game when gains and losses are measured relative to the market average. In a zero-
sum game, someone can win only if somebody else loses. On average, well-informed speculators and
bluffers win, and poorly informed traders and foolish traders lose. Informed traders can only profit to the
extent that less informed traders are willing to lose to them.
• Poorly informed traders trade for many reasons. Investors use the markets to move money from the present
to the future. Borrowers do the opposite. Hedgers trade to manage financial risks they face. Asset
exchangers trade one asset for another they value more. Gamblers trade to entertain themselves.
Exchanges and brokerages design markets to minimize the search costs
of trading. They usually organize markets so that everyone who wants to
trade gathers at the same place. A common gathering place helps traders
find those traders who will offer the best prices
Principles
• Exchanges and brokerages once exclusively organized their markets on physical trading floors. Now they
can organize their markets within computerized communications networks that allow buyers and sellers to
arrange their trades remotely. Electronic marketplaces have rapidly expanded as the costs of electronic
communications technologies have dropped.
• Most traders want to trade in well-established markets because other traders trade there. When many
traders trade in the same place, arranging trades is very easy. The attraction of traders to other traders
makes it hard to start new markets.
• Entrepreneurs create new markets when old markets do not adequately meet the needs of a significant set of
traders. Since traders face a diversity of trading problems, no single market can best meet every trader’s
needs. Many diverse markets may form as exchanges and brokerages compete to attract traders.
• Arbitrageurs ensure that prices do not vary much across markets. When prices diverge, they buy in cheaper
markets and sell in more expensive markets. The effect of their trading is to connect sellers in cheaper
markets to buyers in more expensive markets.
An exchange’s trading rules affect the quality of its markets. They
determine the balance of power between informed traders and
uninformed traders, between public traders and professional traders, and
between large traders and small traders. Trading rules are very
important.
Markets work best when they trade fungible instruments. An instrument is fungible
if one unit (a share, a bond, a contract, …) of the instrument is economically
indistinguishable from all other units. If so, buyers do not care which units they
receive. Since all sellers offer identical units, buyers can buy from any seller who
offers an attractive price. Sellers likewise can sell to any buyer. Fungible
instruments therefore are easier to trade than are instruments that have idiosyncratic
characteristics. In derivative markets, the benefits of fungible instruments cause
trading to concentrate in just a few standardized contracts eg UTI, Mutual funds
WHAT ARE THE DRIVERS OF A GOOD
EXCHANGE?
Information asymmetries
Traders who know more about values and traders who know more about what other
traders intend to do have a great advantage over those who do not. Well- informed
traders profit at the expense of less informed traders. Less informed traders therefore
try to avoid well-informed traders. Pay attention to who is well informed and to how
traders learn about values.
Options.
The option to trade is valuable. People who write limit orders give free
trading options to other traders. Clever traders can extract the value of
these options. Pay attention to when traders create trading options and to
how they prevent other traders from extracting their values.
Externalities
People create positive externalities when they do something that
benefits other people without compensation. People create negative
externalities when they do something that harms other people without
penalty. The most important externality in market microstructure is the
order flow externality. Traders who offer to trade give other traders
valuable options to trade for which they are not compensated. The order
flow externality attracts and binds traders to markets because traders
want to benefit from free trading options. Pay close attention to when,
why, and how traders offer to trade. Pay attention also to how markets,
brokerages, and dealers benefit from the order flow externality.
Market Structure
• Market structure consists of the trading rules, the physical layout, the information presentation systems, and
the information communication systems of a market. Market structure determines what traders can do, and
what they can know. It therefore affects trader strategies, the power relationships among different types of
traders, and ultimately trader profitability. Always consider what effects market structures have on trading
strategies and on the balance of power between various types of traders.
Competition with free entry and exit
Traders compete in markets to make profits. Trading strategies that generate large
profits attract traders who want to participate in those profits. Their entry lowers the
profits that everyone makes, on average. Conversely, traders quit using trading
strategies that are not profitable, which allows remaining traders to make more
profits on average. Free entry and exit ensures that alternative trading strategies
produce equal net profits, on average, after accounting for all costs. Wherever you
see people competing, consider how the costs of entry and exit affect their ability to
maintain profits or avoid losses. This principle will help you understand the
determinants of bid/ask spreads, dealer profits, informed trader profits, and order
submission strategies.
Communications and computing technologies
People are trustworthy if they try to do what they say they will do.
People are creditworthy if they can do what they say they will do. Since
people often will not or cannot do what they promise, market
institutions must be designed to effectively and inexpensively enforce
contracts. Pay close attention to the mechanisms that ensure that traders
will settle their trades. Attempts to solve trustworthiness and
creditworthiness problems explain much of the structure of market
institutions.
The zero-sum game
All trades involve two or more parties. The accounting gains made by
one side must equal the accounting losses suffered by the other side.
Understanding the origins of trading profits therefore requires that we
understand both sides of a trade. We must understand why traders on
one side expect to profit, and why traders on other side either are willing
to lose or do not understand that they should expect to lose
Bulls and Bears
• Traders call rising markets bull markets and falling markets bear markets. According to legend, these terms
originated from morbid contests that promoters once staged between bulls and bears. Bulls fight by thrusting
upward with their horns. In contrast, bears fight by striking downward with their claws. This image has
generated a small cottage industry of artisans who create bull- fighting-bear sculptures that traders buy to
adorn their offices and living rooms.
Who Are the Players?
Traders
• Traders are people who trade. They may arrange their own trades, they may have others arrange trades for
them, or they may arrange trades for others. Proprietary traders trade for their own accounts while brokers
arrange trades as agents for their clients. Brokers are also called agency traders, commission traders, or
commission merchants. Proprietary traders engage in proprietary trading, and brokers engage in agency
trading
• Traders have long positions when they own something. Traders with long positions profit when prices rise.
They try to buy low and sell high.
• Traders have short positions when they have sold something that they do not own. Traders with short
positions hope that prices will fall so that they can repurchase at a lower price. When they repurchase, they
cover their positions. Short sellers profit when they sell high and buy low
Buy and Sell Side and Liquidity
• The trading industry has a buy side and a sell side. The buy side consists of traders who buy exchange
services. Liquidity is the most important of these services. Liquidity is the ability to trade when you want to
trade. Traders on the sell side sell liquidity to the buy side. A substantial fraction of this book considers how
interactions between buy side and sell side traders determine the price of liquidity.
• (The buy- and sell sides of the trading industry have nothing to do with whether a trader is a buyer or seller
of an instrument. Traders on both sides of the trading industry regularly buy and sell securities and
contracts. The terms buy side and sell side refer to buyers and sellers of exchange services.)
Buy Side
• The buy side of the trading industry includes individuals, funds, firms, and governments that use the
markets to help solve various problems that they face. These problems typically originate outside of trading
markets. For example, investors use securities markets to solve intertemporal cash flow problems: They
have income today that they would like to have available in the future. They use the markets to buy stocks
and bonds to move their income from the present to
•
the future. We discuss this problem and other buy side trading problems in Chapter 8 (Why People Trade).
• Many buy side institutions are pension funds, mutual funds, trusts, endowments, and foundations that invest
money. These institutions are known collectively as investment sponsors. Investment sponsors frequently
employ investment advisors to manage their funds. Investment advisors are also called investment counselors,
investment managers, or portfolio managers. Investment advisors often employ traders to implement their
trading decisions. These traders are buy side traders. The people and institutions who will ultimately benefit
from the funds that investment sponsors hold are beneficiaries.
Trader type Generic examples Why they trade Typical instruments
Investors Individuals To move wealth from the present to Stocks Bonds
Corporate pension funds Insurance the future for themselves or for their
funds Charitable and legal trusts clients.
Endowments
Mutual funds Money managers
Brokers Retail brokers Discount brokers Full- Charles Schwab & Co. E*Trade To earn commissions by
service brokers Institutional brokers Dreyfus Brokerage Services Abel/Noser
Block brokers Futures commission Corp. arranging trades for
merchants XpressTrade clients.
Cargill Financial Markets Group
Broker-dealers Wirehouses Goldman Sachs Merrill Lynch Salomon To earn trading profits
Smith Barney
Morgan Stanley Dean Witter Credit and trading commissions.
Suisse First Boston
What is a Wirehouse
Traders often call large broker-dealers wirehouses. The word “wire” in wirehouse once referred to the telegraph.
Following its invention, broker-dealers used the telegraph to collect orders from branch offices in distant cities.
Those who quickly adopted it were able to expand their businesses substantially and thereby greatly increase
their profits. The ability to communicate quickly was—and remains—very important in the trading industry
Trade Facilitators
• Depository
• Custodians
Orders and Order Properties
• Orders are trade instructions. Orders specify what traders want to trade, whether to buy or sell, how much,
when and how to trade, and most importantly, on what terms. Traders issue orders when they cannot
personally negotiate their trades.
• Orders are the fundamental building blocks of trading strategies. To trade effectively, you must specify
exactly what you intend. Your order submission strategy is the most important determinant of your success
as a trader. The proper order used at the right time can make the difference between a good trade, a costly
trade, or no trade at all.
• Many markets arrange all their trades by using a set of rules to match buy and sell orders that traders submit
to them. To understand how these markets work and to use them effectively, you must understand how
traders specify their orders.
• Understanding orders will also allow you to see where liquidity comes from. Liquidity is the ability to trade
when you want to trade. Some orders offer liquidity by presenting other traders with trading opportunities.
Other orders take liquidity by seizing those opportunities. Trader decisions to offer or take liquidity
therefore affect market quality. To understand liquidity, you must understand how traders form their order
submission strategies.
• Traders choose orders that have properties that allow them to best solve their trading problems.
• Traders use specialized words and phrases to communicate quickly and accurately with each other. Whether
you intend to trade or simply want to learn about trading, you need to be familiar with market nomenclature
• Although order instructions have the same meanings in all markets, their properties differ depending on the
type of market to which traders submit them
• Mostlytraders submit their orders to a continuous trading market that arranges trades as orders arrive.
Identical orders have slightly different properties in call markets that collect and process all orders at the same
time
What Are Orders, and Why Do People Use Them?
• Orders are instructions that traders give to the brokers and exchanges that arrange their trades. The
instructions explain how they want their trades to be arranged.
• An order always specifies which instrument (or instruments) to trade, how much to trade, and whether to buy
or sell. An order may also include conditions that a trade must satisfy. The most common conditions limit the
prices that the trader will accept. Other conditions may specify for how long the order is valid, when the order
can be executed, whether it is okay to partially fill the order, where to present the order, and how to search for
the other side. Some orders even specify the traders with whom the trader is willing to trade
• Orders are necessary because most traders do not personally arrange their trades. Traders who arrange their
own trades—typically dealers—do not use orders. They decide on the spot what they want to do and how to
do it. All other traders must carefully express their intentions ahead of time.
• For many small traders, it is not economical to continuously monitor the market. These traders use orders to
represent their interests when they are not paying close attention to the market.
• Traders who arrange their own trades have an advantage over traders who use orders to express their
intentions. The former can respond to market conditions as they change. The latter must anticipate such
changes and write contingencies into their orders to deal with them. Carefully written orders will adequately
represent traders’ interests even when conditions change. When orders do not do so, traders must cancel them
and resubmit new instructions. During the time it takes to cancel and resubmit orders, traders can lose because
their old orders trade before they can cancel them, or because they cannot submit new orders in time to take
advantage of the changing market conditions. Traders therefore must carefully specify their intentions when
they use orders to trade.
• In general, traders who can respond most quickly to changes in market conditions have an advantage over
slower traders. Traders who submit and cancel orders manually are slower than traders who use computers
to monitor and adjust their orders. Where speed is of the essence, floor traders and computerized traders are
the most successful traders.
• Clear and efficient communication is essential when trading in fast markets. Brokers must understand
exactly what traders intend. Otherwise, extremely costly errors may occur. To avoid mistakes, most traders
use standard orders to decrease the probability that they will misunderstand each other when communicating
quickly. All traders recognize and understand these orders.
Class3-03-03-2021
Exchanges and Products
John C. Hull is a Professor of Derivatives and Risk Management at
the Rotman School of Management at the University of Toronto.[He is a
respected researcher in the academic field of quantitative finance (see for
example the Hull-White model) and is the author of two books on financial
derivatives
that are widely used texts for market practitioners: "Options, Futures, and
Other Derivatives"[5] and "Fundamentals of Futures and Options
Markets".[6] He has also written "Risk Management and Financial
Institutions" and "Machine Learning in Business: An Introduction to the
World of Data Science"He studied Mathematics at Cambridge
University (B.A. & M.A.), and holds an M.A. in Operational
Research from Lancaster University and a Ph.D. in Finance from Cranfield
University. In 1999, he was awarded the Financial Engineer of the Year
Award, bythe International Association of Financial Engineers. He has also
won many teaching awards, such as the University of Toronto's prestigious
Northrop Frye award.[7]
Professor Basu’s areas of interest in terms of research are in Financial
Calculus, Option Pricing, Bond and Portfolio Valuation, Applications of
Quantitative Techniques to Finance, Insurance, Reinsurance, Risk
Management, Biostatistics and Corporate Finance. He has presented his
work at international conferences in Thailand, USA, UK, France, Spain,
Norway, Iran, Tunisia, Morocco, The Netherlands and India. He has, to his
credit, a number of papers in international journals of repute like Insurance:
Mathematics and Economics and the Journal of Statistical Planning and
Inference. He is currently President of the Asia-Pacific Risk and Insurance
Association (APRIA)..
One view of Buy Side or Sell Side
Some Reading material….
• Belonsky Gail M., and David M. Modest, 1993, Market microstructure: An empirical retrospective,
Working paper, Haas School of Business, University of California, Berkeley.
• Coughenour, Jay, and Kuldeep Shastri, 1999, Symposium on market microstructure: A review of
empirical research, Financial Review 34(4), 1-28
• Dalton, John M., ed., 1993. How the Stock Market Works (New York Institute of Finance, New York,
NY).
• Downes, John, and Jordan E. Goodman, eds., 1991. Dictionary of Finance and Investment Terms
• (Barron’s Educational Series, New York, NY).
• Fan, Ming, Sayee Srinivasan, Jan Stallaert, and Andrew B. Whinston, 2002. Electronic Commerce and
the Revolution in Financial Markets (South-Western, Mason, OH).
• Kalman J. Cohen, Steven F. Maier, Robert A. Schwartz, and David K. Whitcomb, 1986. The
Microstructure of Securities Markets (Prentice-Hall, Englewood Cliffs, NJ).
• Lee, Rubin, 1998. What is an Exchange: The Automation, Management and Regulation of Financial
Markets (Oxford University Press, New York, NY).
• Lyons, Richard K., 2002. The Microstructure Approach to Exchange Rates (The MIT Press,
Cambridge, MA).
•
Some Reading material
• Madhavan, Ananth, 2000, Market microstructure: A survey, Journal of Financial Markets
3(3), 205-258
• O’Hara, Maureen, 1995. Market Microstructure Theory (Basil Blackwell, Cambridge, MA).
Schwartz, Robert A., 1991. Reshaping the Equity Markets: A Guide for the 1990s (Harper
• Business, New York, NY).
•
Sharp, Robert, 1989. The Lore and Legends of Wall Street (Dow Jones-Irwin, New York, NY).
• Stoll, Hans R., 1992, Principles of trading market structure, Journal of Financial Services
Research 6(1), 75-107
• Teweles, Richard J., Edward S. Bradley, and Ted M. Teweles, 1998. The Stock Market 7th ed.
(John Wiley and Sons, Inc., New York, NY).
• Teweles, Richard J., and Frank J. Jones; Ben Warwick, ed., 1999. The Futures Game: Who
Wins? Who Loses? And Why? 3rd ed. (McGraw-Hill, New York, NY).
• Wagner, Wayne, ed., 1989. The Complete Guide to Securities Transactions: Enhancing
Performance and Controlling Costs (John Wiley & Sons, New York, NY).
•
Liquidity
• Liquidity in the economy
• Liquidity of a Share
• Liquidity in a exchange . Buy-Sell?
Orders
• Orders are trade instructions. Orders specify what traders want to trade, whether to buy or sell, how much,
when and how to trade, and most importantly, on what terms. Traders issue orders when they cannot
personally negotiate their trades.
• Orders are the fundamental building blocks of trading strategies. To trade effectively, you must specify
exactly what you intend. Your order submission strategy is the most important determinant of your success
as a trader. The proper order used at the right time can make the difference between a good trade, a costly
trade, or no trade at all.
• Many markets arrange all their trades by using a set of rules to match buy and sell orders that traders submit
to them. To understand how these markets work and to use them effectively, you must understand how
traders specify their orders
• Understanding orders will also allow you to see where liquidity comes from. Liquidity is the ability to trade
when you want to trade. Some orders offer liquidity by presenting other traders with trading opportunities.
Other orders take liquidity by seizing those opportunities. Trader decisions to offer or take liquidity therefore
affect market quality. To understand liquidity, you must understand how traders form their order submission
strategiesorders are, how traders specify them, and most importantly, what properties they have.
• Traders choose orders that have properties that allow them to best solve their trading problems
The Art of Communication
• The General 6 am…
• My experience in Mynamar
• Should be precise, unambiguous and actionable
• Especially in the digital age where the parties are just “entities”
• Familiarize yourself with the many trading terms involved in your exchange
• Traders use specialized words and phrases to communicate quickly and accurately with each other. Whether
you intend to trade or simply want to learn about trading, you need to be familiar with market nomenclature.
• Although order instructions have the same meanings in all markets, their properties differ depending on the
type of market to which traders submit them
• Most markets are continuous trading markets that arrange trades as they arrive
• Identical orders have slightly different properties in call markets that collect and process all orders at the same
time
What are orders?
• Orders are instructions that traders give to the brokers and exchanges that arrange their trades. The
instructions explain how they want their trades to be arranged.
• An order always specifies which instrument (or instruments) to trade, how much to trade, and whether to buy
or sell. An order may also include conditions that a trade must satisfy. The most common conditions limit the
prices that the trader will accept. Other conditions may specify for how long the order is valid, when the order
can be executed, whether it is okay to partially fill the order, where to present the order, and how to search for
the other side. Some orders even specify the traders with whom the trader is willing to trade.
• Orders are necessary because most traders do not personally arrange their trades. Traders who arrange their
own trades—typically dealers—do not use orders. They decide on the spot what they want to do and how to
do it. All other traders must carefully express their intentions ahead of time.
• For many small traders, it is not economical to continuously monitor the market. These traders use orders to
represent their interests when they are not paying close attention to the market.
• Traders who arrange their own trades have an advantage over traders who use orders to express their
intentions. The former can respond to market conditions as they change. The latter must anticipate such
changes and write contingencies into their orders to deal with them. Carefully written orders will adequately
represent traders’ interests even when conditions change. When orders do not do so, traders must cancel them
and resubmit new instructions. During the time it takes to cancel and resubmit orders, traders can lose because
their old orders trade before they can cancel them, or because they cannot submit new orders in time to take
advantage of the changing market conditions. Traders therefore must carefully specify their intentions when
they use orders to trade.
• In general, traders who can respond most quickly to changes in market conditions have an advantage over
slower traders. Traders who submit and cancel orders manually are slower than traders who use computers to
monitor and adjust their orders. Where speed is of the essence, floor traders and computerized traders are the
most successful traders-Algo trading or quant trading
• Clear and efficient communication is essential when trading in fast markets. Brokers must understand exactly
what traders intend. Otherwise, extremely costly errors may occur. To avoid mistakes, most traders use
standard orders to decrease the probability that they will misunderstand each other when communicating
quickly. All traders recognize and understand these orders.
Terms
• Traders indicate that they are willing to buy or sell by making bids and offers. Traders quote their bids and
offers when they arrange their own trades. Otherwise, they use orders to convey their bids and offers to the
brokers or automated trading systems that arrange their trades. Bids and offers usually include information
about the prices and quantities that traders will accept. Traders call these prices bid and offer prices. They also
use the terms bidding price, offering price, asking price, or simply bid and ask. They refer to the quantities as
sizes
• Prices are firm when traders can demand to trade at those prices. Prices are soft if the traders who offer them
can revise them before trading. Orders generally have firm prices
The highest bid price in a market is the best bid. The lowest offer price is the best
offer (or equivalently, the best ask). Traders also call them the market bid and the
market offer (or market ask) because they are the best prices available in the market.
A market quotation reports the best bid and best offer in a market. A market
quotation is often called the BBO, which is the acronym for Best Bid and Offer.
Many markets continuously publicize their market quotations. The best bid and
offer anywhere in the United States is the NBBO—National Best Bid and Offer.
The difference between the best ask and the best bid is the bid/ask
spread. Traders sometimes call it the inside spread because the space
between the highest bid price and the lowest ask price is inside the
market. The English often refer to the spread as the touch. In sports
betting markets, bettors and bookies call it the vigorish.
An order offers liquidity—or equivalently supplies liquidity—if it gives
other traders an opportunity to trade. For example, suppose Joe issues an
order to buy 100 shares of IBM for no more than 100 dollars per share
from the first person to contact him before trading closes today. Joe’s
bid offers liquidity because other traders now have the opportunity to
sell IBM for 100 dollars per share. Joe’s bid is a day limit order because
it is only valid for the day, and because Joe limits the price that he will
pay
• Buyers and sellers can both offer liquidity. Buyers
offer liquidity when their bids give other traders
opportunities to sell. Sellers offer liquidity when their
offers give other traders opportunities to buy
The dual use of the word “offer” may seem confusing.
It may refer to an offer of an item for sale, or to an offer
of liquidity. If you think of liquidity—the ability to
trade when you want to trade—as a service that you can
buy or sell, the use of the word “offer” makes sense.
This perspective leads to many useful insights. For
example, dealers make money by selling liquidity to
their clients.
Standing orders are open offers to trade. Joe’s order will stand
until someone sells to Joe at 100 dollars or less, the order
expires at the end of the day, or Joe cancels it. Standing orders
are also called open orders. Since standing orders allow other
traders to trade when they want to trade, traders offer liquidity
when they have orders outstanding.
• Traders who want to trade quickly demand liquidity. Traders take liquidity
when they accept offers—standing limit orders or quotes—that other traders
made. If Sue is willing to sell 100 shares of IBM at 100 dollars, she can initiate
a trade by taking Joe’s offer.
• Traders who demand to trade immediately demand immediacy. Immediacy is
one of several dimensions of liquidity.
• A market is liquid when traders can trade without significant adverse effect on
price. Markets with many standing limit orders and small bid/ask spreads are
usually quite liquid
• The prices at which orders fill are trade prices. Buy orders that trade
at high prices and sell orders that trade at low prices trade at inferior
prices.
• Markets and traders sometimes treat orders differently depending on
whether they are agency orders or proprietary orders. Agency orders
are orders that brokers represent as agents for their clients.
Proprietary orders are orders that traders represent for their own
accounts. In many organized markets, agency orders have precedence
over proprietary orders at the same price. The tension always exists.
Trigger of a general offer
Market Structures
The trading rules and the trading systems used by a market
define its market structure. They determine who can trade;
what they can trade; and when, where, and how they can trade.
They also determine what information traders can see about
orders, quotations, and trades; when they can see it; and who
can see it.
Market structure is extremely important because it determines
what people can know and do in a market. Since power comes
from knowledge and the ability to act on it, market structure
helps determine power relations among various types of
traders. These relationships greatly affect who will trade
profitably
To trade effectively, you need to know the structure of every market in
which you trade. The trading strategies that are successful in one market
often do not work well in markets with different structures. The best
order submission strategy for a given trading problem generally depends
on the structure of the market where the trader intends to solve the
problem. Traders therefore behave differently in different markets.
You must understand market structure, and how it
affects trader behavior, to understand the origins of
market liquidity, price efficiency, volatility, and trading
profits. These variables all depend on trader behavior.
Since market structure affects trader behavior, it helps
determine whether markets will be liquid, whether
prices will be informative, and which traders will trade
profitably.
We can look at a basic framework. Keep that at the core and try to use
it for other markets. Some of th points we have already discussed
Trading Sessions
Trading takes place in trading sessions. The two types of
trading sessions are continuous trading sessions and call
market sessions. In continuous trading, traders can attempt to
arrange their trades whenever the market is open. In call
markets, all trades take place only when the market is called.
Trading forums are the places where traders arrange their
trades. In physically convened markets, traders must be on a
trading floor to negotiate their trades. Physically convened
futures markets trade in trading pits. Physically convened
stock markets trade at posts.
Today trading is electronic
Traders and exchanges use various execution systems to
arrange trades. In quote-driven systems, dealers arrange most
trades when they trade with their customers. In order-driven
systems, all trades are arranged by using order precedence
rules to match buyers to sellers and trade pricing rules to
determine the prices of the resulting trades. In brokered trading
systems, brokers arrange trades by helping buyers and sellers
find each other
Various information systems move information in and out of
the market, present it, and store it. Order routing systems send
orders from customers to brokers, from brokers to dealers,
from brokers to markets, and from markets to markets. These
systems also send reports of filled orders back to customers.
Order presentation systems present orders to traders so that
they can act upon them. The systems may use screen-based,
open-outcry, or hand-signaling technologies. Order books
store open orders. Market data systems report trades and
quotes to the public.
In most markets, traders can only use prices that are an integer
multiple of a specified minimum price increment. The size of
the increment, measured as a fraction of price, varies
considerably across markets.
Trading Sessions
• In call markets, all traders trade at the same time when the market is called. The
market may call all securities simultaneously, or it may call the securities one at a
time, in a rotation. Markets that call in rotation may complete only one rotation
per trading session, or as many rotations as their trading hours permit. Markets
that call in rotation were once very common. Now only in the stock markets of a
few small countries call in rotation.
• Many continuous order-driven exchanges open their trading sessions with call
market auctions and then switch over to continuous trading. These markets also
use calls to restart their trading after a trading halt. Open-outcry futures
exchanges, however, start continuous trading immediately when they open.
• Call markets are used as the exclusive market mechanism for many instruments.
Most governments sell their bonds, notes, and bills in call market auctions. Some
stock markets also use calls to trade their least active securities. The Deutsche
Börse and Euronext Paris Bourse are examples of such markets.
Order Driven Markets
Order-driven markets use trading rules to arrange their trades.
These markets include oral auctions, single price auctions,
continuous electronic auctions, and crossing networks.Trading
strategies depend on market structure
Order-driven markets are quite common. Almost all of the
most important exchanges in the world are order-driven
markets. Most newly organized trading systems choose
electronic order- driven market structures
• Despite the great variation in how order-driven markets
operate, their trading rules are all quite similar. All order-
driven markets use order precedence rules to match buyers
to sellers and trade pricing rules to price the resulting trades.
• Variations in trading rules distinguish order-driven markets
from each other. The trading strategies that work best in one
market may work poorly in markets with different rules.
Traders therefore need to know how trading rules affect
optimal trading strategies.
Key preferences in order driven markets
• Time
• Price
Brokers
• Why Brokers?
Market type Trades Market structure Brokerage role
Order flow Small to medium sizes Order-driven or quote- Brokers receive orders
in seasoned securities and driven and match them with
contracts orders and quotes made
by other traders
Block Large sizes in seasoned Brokered Brokers receive an order
securities and contracts. on one side
and must search for
traders who will take the
other side. Brokers
occasionally identify both
sides.
New and seasoned Large size offered by an Brokered Brokers sell securities to
offerings issuer or one or more buyers on
large holders behalf of issuers and large
holders
Mergers and acquisitions Company to company Brokered Brokers find one or both
parties
Clearing & Settlement
• Brokers used to do that
• Clearing House
• Today’s electronic exchanges do it automatically
• Harshad Mehta scam- Sitaram?
Why do people trade?
Who is he?
Nudge…..
• You must understand why people trade to use markets effectively.
Markets provide many valuable opportunities. To take advantage of
them, you must first recognize them.
• By considering why people trade, you will better understand why
you trade and whether you should trade. Many traders do not fully
recognize the reasons why they trade. Consequently, either they
pursue inappropriate trading strategies, or they trade when trading is
counterproductive to their true interests. The optimal trading strategy
for a given trading problem depends on the problem. You cannot
trade well if you do not know why you want to trade.
• Knowing why people trade may also help you determine whether other traders
understand why they are trading. This skill is very important because you can
usually distinguish a good money manager from a poor one by whether they
understand well why they trade. It is also important because traders who do not
fully understand why they trade often trade foolishly. If you can identify such
traders, you may be able to profit from their foolishness.
• If you engage in any trading strategy that depends on the volume of trade, you
must understand why people trade to interpret volumes properly. Many factors
cause people to trade. If your trading strategy depends on one of these factors,
you will want to examine volumes carefully. However, you must be careful to
recognize when other factors may cause people to trade.
• Otherwise, you may misinterpret volumes and trade when you should not.
• Markets are successful only when people trade in them. If you want to design new
markets, or if your business depends on trading in a successful market, you must
understand why—and how— people trade.
• Trading is a zero-sum game in an important accounting sense. In a zero-sum
game, the total gains of the winners are exactly equal to the total losses of the
losers. Trading is a zero-sum game because the combined gains and losses of
buyers and sellers always sum to zero. If a buyer profits from a trade, the seller
loses the opportunity to profit by the same amount.
• Likewise, if a buyer loses from a trade, the seller avoids an identical loss.
• Successful traders must understand the implications of the zero-sum game. To
trade profitably, traders must trade with people who will lose. Profit-motivated
traders therefore must understand why losers trade to know when they should
trade.
• Finally, you must understand why people trade to form well-reasoned opinions
about market structures. Different structures favor different trader types. If you
intend to influence a decision about market structure, you should consider first
how the decision affects various traders. The benefits that traders obtain from
markets depend on why they trade. Regulators and other interested parties must
therefore understand these reasons
• In practice, traders often trade for many reasons. The complexity of their motives
explains why many traders get confused and fail to fully recognize why they trade.
By considering stylized traders, we simplify our discussions and ultimately make
it easier for you to identify the different reasons why people trade.
• Profit motivated traders
• Utilitarian traders
• Informed traders
• Uninformed traders
Informed traders-Value based investing
What constitutes a good market?
Some Questions….
Should regulators consolidate all orders into a central limit order book?
Should markets use quote-driven or order-driven systems?
Should regulators allow internalization and preferencing?
Should regulators impose price limits or trading halts on trading?
?
Should dealers yield to their customers?
Should regulators require that markets be linked electronically? How fast
should those links be?
What trading hours should markets adopt?
Who should be able to see the limit order book?
Who owns market data?
What securities and contracts should regulators allow exchanges to trade?
The Stake holders…
Legislators pass laws that dictate structures.
Regulators interpret those laws, propose new ones, and selectively enforce them.
Government administrators propose laws, veto laws, and use their influence in a myriad of ways to
promote their interests. In some countries, they also write the laws.
Judges interpret laws and write new case law.
Exchanges, brokers, clearing agencies, and information providers freely create any market structures that
the legal system permits. They also frequently propose—and sometimes even implement—structures that
laws and regulations do not currently permit.
Issuers influence market structure through the decisions they make about where to list their securities.
Traders likewise influence market structure through the decisions they make about where to trade.
Investors and the general public influence market structure by voting for politicians that favor their
interests and by lobbying those politicians.
• Finally, the leaders of trade organizations, public interest groups, and watchdog agencies often lobby on behalf
of their constituents
Fundamentals
• Informed traders are speculators who acquire and act on information about fundamental values. They buy
when prices are below their estimates of fundamental value and sell when prices are above their estimates.
Informed traders include value traders, news traders, information- oriented technical traders, and
arbitrageurs
• A price is informative when it is near its corresponding fundamental value. Informative prices are extremely
valuable to the economy because they help us allocate resources efficiently. To fully appreciate how market-
orientated economies work, you must understand how informed traders make prices informative.
• The market value of an instrument is the price at which traders can buy or sell the instrument. The
fundamental value (or intrinsic value) is the “true value” of the instrument. In financial terms, fundamental
value is the expected present value of all present and future benefits and costs associated with holding the
instrument. Everyone would agree upon this value if they all knew everything known about the instrument, if
they all used the proper analyses to predict and discount all uncertain future cash flows, and if they all
perceived the benefits and costs of holding the instrument equally. Since these conditions never occur, traders
often differ in their opinions about fundamental values.
• Fundamental values are not perfect foresight values. Fundamental values depend only on information that
is currently available to traders. Perfect foresight values depend on all current
and future information about values. Fundamental values are the best estimates of perfect foresight values.
Noise
• Prices are completely informative when they equal fundamental values. Efficient markets produce prices that
are very informative. The difference between fundamental value and market value (price) is noise. Informed
traders try to identify the noise in prices by estimating fundamental values. Since we do not observe
fundamental values, we cannot easily determine whether prices are informative or noisy.
Fischer Black on Noise
Fischer Black was a mathematician who made many seminal contributions to the
development of financial theory. Perhaps most notably, he helped develop option-
pricing theory, for which Myron Scholes and Robert Merton received the 1997
Nobel Prize in Economic Science. Had Fischer not died two years before the Prize
was awarded, he undoubtedly also would have been a Nobel laureate.
In his 1985 presidential address to the American Finance Association, Black
offered a now famous opinion about noise. He believed that we should consider
stock prices to be informative if they are between one-half and twice their
fundamental values! Most economists believe that the prices of actively traded
securities are well within these extreme bounds, but no one can know for sure.
• Source: Fischer Black, 1986, “Noise,” Journal of Finance 41(3), 529-543
• Changes in fundamental values are completely unpredictable. Since fundamental
values reflect all available information, they change only when traders learn
unexpected new fundamental information. If fundamental value changes were
predictable, current fundamental values would not fully reflect the information
upon which the predictions are based. Fundamental value changes therefore must
be unpredictable. Since prices are very close to fundamental values in efficient
markets, price changes in efficient markets are quite unpredictable.
• When traders cannot predict future price changes, statisticians say that prices
follow a random walk. Plots of random walks through time look like paths that
wander up or down at random because random walks are completely
unpredictable.
• Informed traders estimate fundamental values. They may base their estimates on private information that only
they have, or on public information that any trader can obtain. Informed traders compare their value estimates
with the corresponding market prices. They consider instruments to be undervalued if prices are less than
their estimates of fundamental value, and overvalued if prices are greater.
• Informed traders buy instruments that they believe are significantly undervalued and sell instruments that
they believe are significantly overvalued. They hope to profit when the prices of their purchases rise, and
when the prices of their sales fall. Informed traders naturally hope that these price changes will occur
quickly.
• Informed traders lose money when they estimate fundamental values poorly. When their value estimates are
wrong, they pay too much for instruments they have overvalued, and they sell toocheaply those instruments
that they have undervalued. Informed traders who consistently estimate values poorly usually quit trading
when they have lost more money than they can tolerate or when bankruptcy forces them out of the markets.
• Informed traders also can lose money even if they accurately estimate
fundamental values. This happens when prices move away from fundamental
values rather than towards them. These losses, however, tend to be short-term
losses. In the long run, prices usually revert toward their fundamental values so
that well-informed traders ultimately profit.
• Even if prices never adjust to their fundamental values, well-informed traders
who have correctly estimated values still can profit from their trades if they are
patient. When they buy an undervalued instrument, they acquire the rights of
ownership for less than their aggregate value. By holding the instrument, they will
eventually receive the benefits of these rights—typically interest, dividends,
royalties, capital repayments, or liquidating distributions—at a lower price than
they could otherwise obtain them. When they sell overvalued instruments, they
can invest the proceeds in instruments with higher expected rates of return.
• Informed traders, like all other traders, often significantly impact prices when they trade. Their
buying tends to push prices up, and their selling tends to push prices down. Since they buy when
price is below their estimates of fundamental value and sell otherwise, the effect of their trading is
to move prices toward their estimates of fundamental value. Their trading therefore causes prices
to reflect their estimates of fundamental value. When informed traders accurately estimate values,
their trading makes prices more informative.
• Informed traders generally differ in their estimates of value. This often happens when they base
their estimates on different data. Informed traders often trade with each other so that the price
impacts of their trading tend to cancel. The net impact of their trading is a market price that
reflects an average of their different value estimates. This price usually is more informative than
are any of the individual value estimates. Markets aggregate data from many sources to produce
prices that typically estimate fundamental values more accurately than can any individual trader.
Volatality
• Volatility is the tendency for prices to unexpectedly change. Prices change in
response to new information about values and in response to the demands of
impatient traders for liquidity.
• Volatility itself changes through time. Sometimes prices are very volatile. Other
times, prices are very stable and hardly change at all. Large price changes
sometimes occur in short time intervals. Regulators and traders refer to episodes
of such price changes as episodic volatility. Episodic volatility concerns many
people because it can be quite scary.
• Volatility, risk, and profit are closely related. Every drop in prices creates losses
for traders who have long positions and profits for traders with short positions.
Likewise, every price rise causes losses for traders with short positions and
profits for traders with long positions. Traders therefore are very interested in
volatility because it can have a significant impact on their wealth. If risk scares
you or profits interest you, you need to know about volatility.
• Volatility especially concerns options traders. Option contract values depend
critically on the volatility of the underlying instrument. Options traders must be
able to measure and predict volatilities to trade profitably. Both skills require that
they understand well the origins of volatility.
• Technical traders who try to interpret trading volumes also pay close attention to
volatility because volumes and volatility are often correlated. The relation
between the two variables is not simple, however. It depends on the origins of
the volatility.
• Volatility greatly concerns regulators. Excessive volatility may indicate that
markets are not functioning well. Since accurate prices are extremely important in
the economy, regulators pay close attention to the markets when prices are highly
volatile. They are especially attentive when markets crash.
• Volatility is of two types. Fundamental volatility is due to unanticipated changes
in instrument values while transitory volatility is due to trading activity by
uninformed traders.
• The distinction is important both for traders and for regulators. Traders must
distinguish between the two volatility types to accurately predict future volatility,
the profitability of dealing strategies, and transaction costs. Regulators must
distinguish between them because they cannot have any lasting effect on
fundamental volatility, but they often can substantially affect transitory volatility.
Depending on the policies regulators adopt, they may decrease or increase
transitory volatility.
• Since economies use prices to allocate resources, it is very important that prices
reflect fundamental values. Values change when the fundamental factors that
determine them change. Prices therefore should change when people learn that
fundamental factors have unexpectedly changed. Such price changes contribute
to fundamental volatility.
• When new information about changes in fundamental values is common
knowledge, prices may change without any trading. For example, suppose that an
unexpected killer frost descends upon Florida overnight. The morning news will
undoubtedly report the event. The next day, orange juice futures contracts will
open at a much higher price than the last price of the previous trading day.
• When only a few people know new information about changes in
fundamental values, prices generally will change on high trading
volumes. The well-informed traders will trade on their information.
The pressures their trades put on prices will cause prices to change
to reflect the new fundamental values.
• Since informed traders generally hurt dealers, and since dealers
generally do not know when they trade with informed traders, dealers
try to infer information about fundamental values from their order
flows.
Fundamental factors
Any factor that determines the value of a trading instrument can cause
the price of that instrument to change. For a commodity, the most
important factors are cash market supply and demand conditions. Other
important factors are interest rates and storage costs. For a bond, the
most important factors are interest rates and the credit quality of the
issuer. For a stock, the most important factors are quality of
management, the values of the company’s resources and technologies,
the supply and demand conditions in its product markets and in its input
markets, and interest rates. For currencies, the important valuation
factors include national inflation rates, macroeconomic policies, and
trade and capital flows. Unexpected changes in any of these factors
generate fundamental volatility in the instrument
Expected changes in fundamental factors generally do not change
prices. Informative prices usually fully incorporate all available
information about future values. Since people base their expectations on
existing information, fully informative prices will already incorporate
expected changes in fundamental factors. When the expected event
occurs, it is not surprising, and it therefore should not cause prices to
change. Only unexpected events cause fundamental price volatility.
Consequently, the identifying characteristic of fundamental volatility in
fully informative prices is unpredictable price changes. An
unpredictable price process is called a random walk.
Bubbles & Crashes
Assignment
• Open a demat account
• Buy and sell at least 1 share
• Write 1 page on the order information etc for buying
• Write 1 page for the order information on selling
06032021
Class 4-Exchanges, Products
Noise
• Prices are completely informative when they equal fundamental values. Efficient markets produce prices that
are very informative. The difference between fundamental value and market value (price) is noise. Informed
traders try to identify the noise in prices by estimating fundamental values. Since we do not observe
fundamental values, we cannot easily determine whether prices are informative or noisy.
Fischer Black on Noise
Fischer Black was a mathematician who made many seminal contributions to the
development of financial theory. Perhaps most notably, he helped develop option-
pricing theory, for which Myron Scholes and Robert Merton received the 1997
Nobel Prize in Economic Science. Had Fischer not died two years before the Prize
was awarded, he undoubtedly also would have been a Nobel laureate.
In his 1985 presidential address to the American Finance Association, Black
offered a now famous opinion about noise. He believed that we should consider
stock prices to be informative if they are between one-half and twice their
fundamental values! Most economists believe that the prices of actively traded
securities are well within these extreme bounds, but no one can know for sure.
• Source: Fischer Black, 1986, “Noise,” Journal of Finance 41(3), 529-543
• Changes in fundamental values are completely unpredictable. Since fundamental
values reflect all available information, they change only when traders learn
unexpected new fundamental information. If fundamental value changes were
predictable, current fundamental values would not fully reflect the information
upon which the predictions are based. Fundamental value changes therefore must
be unpredictable. Since prices are very close to fundamental values in efficient
markets, price changes in efficient markets are quite unpredictable.
• When traders cannot predict future price changes, statisticians say that prices
follow a random walk. Plots of random walks through time look like paths that
wander up or down at random because random walks are completely
unpredictable.
• Informed traders estimate fundamental values. They may base their estimates on private information that only
they have, or on public information that any trader can obtain. Informed traders compare their value estimates
with the corresponding market prices. They consider instruments to be undervalued if prices are less than
their estimates of fundamental value, and overvalued if prices are greater.
• Informed traders buy instruments that they believe are significantly undervalued and sell instruments that
they believe are significantly overvalued. They hope to profit when the prices of their purchases rise, and
when the prices of their sales fall. Informed traders naturally hope that these price changes will occur
quickly.
• Informed traders lose money when they estimate fundamental values poorly. When their value estimates are
wrong, they pay too much for instruments they have overvalued, and they sell toocheaply those instruments
that they have undervalued. Informed traders who consistently estimate values poorly usually quit trading
when they have lost more money than they can tolerate or when bankruptcy forces them out of the markets.
• Informed traders also can lose money even if they accurately estimate
fundamental values. This happens when prices move away from fundamental
values rather than towards them. These losses, however, tend to be short-term
losses. In the long run, prices usually revert toward their fundamental values so
that well-informed traders ultimately profit.
• Even if prices never adjust to their fundamental values, well-informed traders
who have correctly estimated values still can profit from their trades if they are
patient. When they buy an undervalued instrument, they acquire the rights of
ownership for less than their aggregate value. By holding the instrument, they will
eventually receive the benefits of these rights—typically interest, dividends,
royalties, capital repayments, or liquidating distributions—at a lower price than
they could otherwise obtain them. When they sell overvalued instruments, they
can invest the proceeds in instruments with higher expected rates of return.
• Informed traders, like all other traders, often significantly impact prices when they trade. Their
buying tends to push prices up, and their selling tends to push prices down. Since they buy when
price is below their estimates of fundamental value and sell otherwise, the effect of their trading is
to move prices toward their estimates of fundamental value. Their trading therefore causes prices
to reflect their estimates of fundamental value. When informed traders accurately estimate values,
their trading makes prices more informative.
• Informed traders generally differ in their estimates of value. This often happens when they base
their estimates on different data. Informed traders often trade with each other so that the price
impacts of their trading tend to cancel. The net impact of their trading is a market price that
reflects an average of their different value estimates. This price usually is more informative than
are any of the individual value estimates. Markets aggregate data from many sources to produce
prices that typically estimate fundamental values more accurately than can any individual trader.
Volatality
• Volatility is the tendency for prices to unexpectedly change. Prices change in
response to new information about values and in response to the demands of
impatient traders for liquidity.
• Volatility itself changes through time. Sometimes prices are very volatile. Other
times, prices are very stable and hardly change at all. Large price changes
sometimes occur in short time intervals. Regulators and traders refer to episodes
of such price changes as episodic volatility. Episodic volatility concerns many
people because it can be quite scary.
• Volatility, risk, and profit are closely related. Every drop in prices creates losses
for traders who have long positions and profits for traders with short positions.
Likewise, every price rise causes losses for traders with short positions and
profits for traders with long positions. Traders therefore are very interested in
volatility because it can have a significant impact on their wealth. If risk scares
you or profits interest you, you need to know about volatility.
• Volatility especially concerns options traders. Option contract values depend
critically on the volatility of the underlying instrument. Options traders must be
able to measure and predict volatilities to trade profitably. Both skills require that
they understand well the origins of volatility.
• Technical traders who try to interpret trading volumes also pay close attention to
volatility because volumes and volatility are often correlated. The relation
between the two variables is not simple, however. It depends on the origins of
the volatility.
• Volatility greatly concerns regulators. Excessive volatility may indicate that
markets are not functioning well. Since accurate prices are extremely important in
the economy, regulators pay close attention to the markets when prices are highly
volatile. They are especially attentive when markets crash.
• Volatility is of two types. Fundamental volatility is due to unanticipated changes
in instrument values while transitory volatility is due to trading activity by
uninformed traders.
• The distinction is important both for traders and for regulators. Traders must
distinguish between the two volatility types to accurately predict future volatility,
the profitability of dealing strategies, and transaction costs. Regulators must
distinguish between them because they cannot have any lasting effect on
fundamental volatility, but they often can substantially affect transitory volatility.
Depending on the policies regulators adopt, they may decrease or increase
transitory volatility.
• Since economies use prices to allocate resources, it is very important that prices
reflect fundamental values. Values change when the fundamental factors that
determine them change. Prices therefore should change when people learn that
fundamental factors have unexpectedly changed. Such price changes contribute
to fundamental volatility.
• When new information about changes in fundamental values is common
knowledge, prices may change without any trading. For example, suppose that an
unexpected killer frost descends upon Florida overnight. The morning news will
undoubtedly report the event. The next day, orange juice futures contracts will
open at a much higher price than the last price of the previous trading day.
• When only a few people know new information about changes in
fundamental values, prices generally will change on high trading
volumes. The well-informed traders will trade on their information.
The pressures their trades put on prices will cause prices to change
to reflect the new fundamental values.
• Since informed traders generally hurt dealers, and since dealers
generally do not know when they trade with informed traders, dealers
try to infer information about fundamental values from their order
flows.
Fundamental factors
Any factor that determines the value of a trading instrument can cause
the price of that instrument to change. For a commodity, the most
important factors are cash market supply and demand conditions. Other
important factors are interest rates and storage costs. For a bond, the
most important factors are interest rates and the credit quality of the
issuer. For a stock, the most important factors are quality of
management, the values of the company’s resources and technologies,
the supply and demand conditions in its product markets and in its input
markets, and interest rates. For currencies, the important valuation
factors include national inflation rates, macroeconomic policies, and
trade and capital flows. Unexpected changes in any of these factors
generate fundamental volatility in the instrument
Expected changes in fundamental factors generally do not change
prices. Informative prices usually fully incorporate all available
information about future values. Since people base their expectations on
existing information, fully informative prices will already incorporate
expected changes in fundamental factors. When the expected event
occurs, it is not surprising, and it therefore should not cause prices to
change. Only unexpected events cause fundamental price volatility.
Consequently, the identifying characteristic of fundamental volatility in
fully informative prices is unpredictable price changes. An
unpredictable price process is called a random walk.
Bubbles & Crashes
Bubbles and crashes occur when prices greatly differ from
fundamental values. The wealth that these events create,
destroy, and redistribute is often enormous. Bubbles and
crashes thus are quite scary when prices change quickly.
Extreme volatility concerns many people:
Traders pay close attention to it because large unexpected price changes
expose them to tremendous risks and opportunities.
Clearinghouses worry about extreme volatility because traders who experience
large losses may be unable to settle their trades or contracts. Clearinghouses
and their members must bear the costs of resulting settlement failures.
• Exchanges and brokers plan for extreme volatility because extreme price changes
usually generate—or are generated by—huge volumes that can overwhelm their
trading systems and cause them to fail. Large sustained price drops especially
concern them because trading volumes usually shrink substantially and remain
low for a long time afterwards
Microeconomists fret over extreme volatility because very large
price changes often appear inconsistent with rational pricing and
informative prices. They wonder whether excess price volatility
causes people to make poor decisions about the use of economic
resources.
• Macroeconomists fear that the wealth effects associated with large,
broad-based changes in market values may adversely affect the
investment and consumption spending decisions that companies and
individuals make. Poor spending decisions can cause unsustainable
booms and protracted contractions in economic activity
These concerns explain why market regulators regularly
examine trading practices and trading rules that might induce
or attenuate extreme volatility. Some policies that they
consider can create markets that are more resilient. Other
policies have little value, and many policies can harm the
markets. Regulators therefore must carefully analyze how
market structure affects volatility before adopting new policies.
What causes extreme volatility, and how regulations might make it less likely or less
dangerous. Not surprisingly, analysts generally understand the causes of extreme
volatility better after the fact than beforehand. Volatility episodes rarely have
common causes. They do, however, tend to fit a common pattern. Traders who can
recognize conditions that may lead to extreme volatility can take positions that are
highly profitable. Regulators who can recognize these conditions can occasionally
adopt policies to reduce the harmful aspects of extreme volatility.
Bubbles occur when prices rise to levels that are substantially above
fundamental values. (Fundamental values, of course, are not common
knowledge. If they were, crashes and bubbles would not occur.) Some
bubbles occur very quickly. Others occur over long periods. Many
bubbles end with a crash. Traders say that such bubbles pop
Crashes occur when prices fall very quickly. Crashes often follow
bubbles, but they also occur in other circumstances. Crashes sometimes
are called market breaks because the price path breaks when prices fall
very quickly. They also are called market meltdowns when they
overload the order handling capacity of a market.
Bubbles and crashes may affect an individual trading
instrument or many instruments at once. Those that
simultaneously affect many instruments are broad-based
events or market-wide events. Very large price changes most
commonly affect only an individual instrument. Broad- based
bubbles and crashes are quite rare.
•
Bubbles start when buyers become overly optimistic about
fundamental values. The potential of new technologies and the
potential growth of new markets can greatly excite some traders.
Unfortunately, many of these traders cannot recognize when prices
already reflect information about these potentialities. They also may
not adequately appreciate the risks associated with holding the
securities that interest them. If enough of these enthusiastic traders try
to buy at the same time, they may push prices up substantially.
• The resulting price increases may encourage momentum traders to buy
on the hope that past gains will continue. Some momentum traders
may buy because they hope to obtain the profits that their neighbors
and friends have already earned. If enough traders follow them, they
will realize their hopes. The last buyers, however, will lose badly.
• So what?
Algo trading
• Your Algo is fine
• Your momentum math is right
Black Swan
• A black swan event is a very rare event
• It happens randomly
• All models are fooled by randomness
• Paranoid people recognize it
• Order anticipators may also buy in anticipation of new uninformed
buyers. They will profit if they can get out before prices fall.
• The combined trading of these traders can cause a bubble in which
prices exceed fundamental values. Momentum traders and order
anticipators, in particular, tend to accelerate price changes. Prices also
accelerate when early buyers grow more confident as their wealth
increases, and when early sellers repurchase their positions to stop
their losses.
• Value traders and arbitrageurs may recognize that prices exceed values, but they may be unable or
unwilling to sell in sufficient volume to prevent the bubble from forming. These traders may be
unable to sell as much as they want to sell if they do not have large positions to sell, if they do not
have enough capital to carry large short positions, or if they cannot easily sell short. They may be
unwilling to sell if they suspect that uninformed traders will continue to push prices up, or if they
lack confidence in their abilities to estimate values well.
• Eventually prices rise to a level that causes sellers to start trading aggressively. The sellers may
be long-term holders, early buyers who want to realize their gains, contrarians, value traders, or
arbitrageurs. Once their selling causes prices to fall, momentum buyers lose their interest.
• Overly optimistic buyers lose their confidence and sellers become more confident. Late buyers
especially worry about their positions and often start selling to stop their losses. Those traders
who financed their positions on margin may have to sell their positions to satisfy margin calls
from their brokers. Other long holders who have placed stop loss orders also will start to sell.
Order anticipators may anticipate these margin calls and these stop orders and sell before them. A
crash occurs when the combined effect of all their selling causes prices to quickly fall.
• A very good book for India
• Answers a lot of questions
• Will refer to it often
How do you identify a bubble?
• High PE which is possible during high growth
• Commodity Stocks are rising
• Economic Growth and Stock price rise are disproportional
• Media Hype
• Sudden Entry of Less Known firms
• Entry of more firms in the sector
Lessons
• Valuations (and fundamentals) matter the most
• Avoid triple digit PE’s
• Mid Cap and Small Cap Stocks(Why?)
• Avoid Large little known companies
• Information Asymmetry- be careful
• This time it is different-be careful
• Never get married to your stocks
• Never short sell
Why do bubbles repeat?
• Demographic Changes
• Short Public Memory
• There is no way of measuring the new Phenomena- Covid??
• Overconfidence of Knowledge, Ability(and tools)- the AI phenomena
Fischer Black on Noise
Fischer Black was a mathematician who made many seminal contributions to the
development of financial theory. Perhaps most notably, he helped develop option-
pricing theory, for which Myron Scholes and Robert Merton received the 1997
Nobel Prize in Economic Science. Had Fischer not died two years before the Prize
was awarded, he undoubtedly also would have been a Nobel laureate.
In his 1985 presidential address to the American Finance Association, Black
offered a now famous opinion about noise. He believed that we should consider
stock prices to be informative if they are between one-half and twice their
fundamental values! Most economists believe that the prices of actively traded
securities are well within these extreme bounds, but no one can know for sure.
• Source: Fischer Black, 1986, “Noise,” Journal of Finance 41(3), 529-543
Capitalization to GDP
• In Jan 2021 India’s market cap crossed 100 % of its GDP
• At the lowest is was 52%
• Median was 76%
• M2B Vs M2M
• Fundamental value 52/1.5 0r 76/2 say 38%?
Products
Products
• Stocks & Shares
• Bonds
• Derivatives-Forward & Futures,Options & Swaps
• Portfolio(Capital Allocation)
• Index funds
Fundamental
Enterprise/Company Performance
• Good book
• A bit in detail
• Good for beginners
Macro factors
• What business is the company in?
• What geography does it operate in
• What is the TAM?
• Who are competitors?
• What is the USP?
• Who is the Management?
• What is the Quality?
Information Sources
• Quarterly results
• Yearly results
• Balance sheet
• Cash flow statements
• Stautory filing
• Conference calls?
Numbers
• Revenue
• Other Income
• Cost of Operations
• Cost of Sales
• Cash flow
• Tax
• Dividend policy?
Exercise
• Take a company of your choice-listed
• Study its public balance sheet, cash flow
• Study competition
• Why would you invest/not invest?
10-03-2021
Ratio’s-Operational & Investor , Shares as a product
• Gross profit margin, operating profit margin, and net profit
margin are the three main margin analysis measures that are
used to analyze the income statement activities of a firm.
• Each margin individually gives a very different perspective on
the company’s operational efficiency. Comprehensively the
three margins taken together can provide insight into a
firm’s operational strengths and weaknesses (SWOT). Margins
are also useful in making competitor comparisons and
identifying growth and loss trends against past periods.
Gross Profit Margin
• Gross Profit Marginanalyzes the relationship between gross
sales revenue and the direct costs of sales. This
comparison forms the first section of the income statement.
Companies will have varying types of direct costs depending on
their business. Companies that are involved in the production
and manufacturing of goods will use the cost of goods sold
measure while service companies may have a more
generalized notation.
• Overall, the gross profit margin seeks to identify how efficiently
a company is producing its product. The calculation for gross
profit margin is gross profit divided by total revenue. In general,
it is better to have a higher gross profit margin number as it
represents the total gross profit per dollar of revenue.
Operating Profit Margin
• Operating efficiency forms the second section of a company’s
income statement and focuses on indirect costs. Companies have a
wide range of indirect costs which also influence the bottom line.
Some commonly reported indirect costs includes research and
development, marketing campaign expenses, general and
administrative expenses, and depreciation and amortization.
• Operating profit margin examines the effects of these costs.
Operating profit is obtained by subtracting operating expenses from
gross profit. The operating profit margin is then calculated by dividing
the operating profit by total revenue.
• Operating profit shows a company’s ability to manage its indirect
costs. Therefore, this section of the income statement shows how a
company is investing in areas it expects will help to improve its brand
and business growth through several channels. A company may
have a high gross profit margin but a relatively low operating profit
margin if its indirect expenses for things like marketing, or capital
investment allocations are high.
Net Profit Margin
• Net profit margin is the third and final profit margin metric used
in income statement analysis. It is calculated by analyzing the last
section of the income statement and the net earnings of a company
after accounting for all expenses.
• Net profit margin takes into consideration the interest and taxes paid
by a company. Net profit is calculated by subtracting interest and
taxes from operating profit—also known as earnings before interest
and taxes (EBIT). The net profit margin is then calculated by dividing
net profit over total revenue.
• Net profit spotlights a company’s ability to manage its interest
payments and tax payments. Interest payments can take several
varieties. Interest includes the interest a company pays stakeholders
on debt for capital instruments. It also includes any interest earned
from short-term and long-term investments.
• The net profit margin of a company shows how the company is managing all the
expenses associated with the business. On the income statement, expenses are
typically broken out by direct, indirect, and interest and taxes. Companies seek to
manage expenses in each of these three areas individually.
• By analyzing how the gross, operating, and net profit margins compare to each other,
industry analysts can get a clear picture of a company’s operating strengths and
weaknesses.
• Market and business factors may affect each of the three margins differently.
Systematically if direct sales expenses increase across the market, then a company
will have a lower gross profit margin that reflects higher costs of sales.
• Companies may go through different cycles of growth that lead to higher operational,
and interest expenses. A company may be investing more in marketing campaigns or
capital investments that increase operating costs for a period which can decrease
operating profit margin. Companies may also raise capital through debt which can
decrease their net profit margin when interest payments rise.
• Understanding these different variables and their effects on margin analysis can be
important for investors when analyzing the worthiness of corporate investment.
XBRL
• XBRL stands for eXtensible Business Reporting Language. It is a
language for the electronic communication of business and financial data
which is revolutionising the business reporting around the world. It offers
major benefits to all those who have to create, transmit, use or analyse
such business information. Some of the benefits of using XBRL include
cost savings, greater efficiency, improved accuracy and reliability to all
those involved in supplying or using financial data.
• The basic idea behind XBRL is that instead of treating financial information
as a block of text or numeric items, a unique electronically readable tag is
attached to each individual financial term. It is not just the data or text that
floats around, these individual items move along with an electronic tag.
Thus, it is not just the 'content' but also the ‘context’ is being transmitted. It
is one of a family of ‘XML’ languages which is becoming a standard means
of communicating information between businesses and on the Internet.
EBITDA, EIT and net Margin
• EBIT (Earnings Before Interest and Taxes) is a proxy for
core, recurring business profitability, before the impact of capital
structure and taxes.
• EBITDA (Earnings Before Interest, Taxes, Depreciation, and
Amortization) is a proxy for core, recurring business cash flow
from operations, before the impact of capital structure and
taxes.
• And Net Income represents profit after taxes, the impact of
capital structure (interest), AND non-core business activities.
Example
• You have to program your algo to choose among 6 companies
manufacturing a widget X
• You can choose to trade only with 2 of the stocks
Parameter Company1 Company 2 Company3 company4 company5 Company 6
{D/(r-g)}-E/r
Where
D=Dividend for the next period
r=cost of capital or capitalization rate of the company
E=EPS
G=growthrate of the company
EV/EBITDA
• Enterprise Value is the current value of the business taking debt into
account
• Enterprise Value=Market Capitalization +Total Debt- Total Cash
• Market Capitalization= Market Price per share x No of shares
• EBITDA can be calculated from he balance sheet
• Debt is added on the EV side and Debt on the EBITDA side
• Some promoters prefer debt, This ratio brings all to comparable basis
• EBIDTA indicates that Net Profit may not be positive
• EV/EBIDTA is for companies which are not start-up’s but not earning
enough for a net profit.It is a modified form of P/E for companies yet
to generate a profit.
• It has to be read with other metrics
• Limited Vue
Price-to-Sales Ratio(PSR)
• Price to Sales Ratio=Market Cap/Annual Sales
• Revenue is same as Annual Sales
• Limited Use
• Used when profits are not a good metric-retail
• Used along with other metrics
The 4 metric discussed so far are Profitability Ratios
• EPS
• P/E
• EV/EBITDA
• PSR
Investment Ratio’s
• Dividend Yield
• Total Return
• Return on Capital Employed
• Return on Equity
• Premium on Asset Value
• Internal Rate of Return
• Return of Assets
• Dividend Payment Ratio
Dividend Yield
• Dividend Yield=Dividend/Share Price
• Tax
• Dividend Record
• Dividend Yield
• May not be applicable
• Dividend Policy
Total Return
• Total Return=Capital Growth+Dividend yield at purchase price
• Capital Growth is the increase in value of shares measured as a
percentage of the amount paid for them
• Dividend yield is calculated like earlier except that we use purchase
price instead of market price
• Return is a inflated figure for long held shares-inflation
• Return on Current Value-Divide it by number of years or take the root
of the period
ROCE(Return on Capital Employed)
• ROCE=(EBIT/Net Capital Employed) x100
• Net Capital Employed is taken from the balance sheet.Simplest way to
add all assets and subtract current labilities.
• NOPLAT-Net Operating Profit Less Adjusted Taxes
• Use of NOPLAT to get comparison of cost of Capital
• ROCE on trading
Return On Equity
• Return on Equity=(Net profit attributable to shareholders/equity)x100
• Net profit attributable to shareholders is the net profit after deduction of
interest,tax and all other items expect dividends(paid and payable).This
figure is available to shareholders
• Equity in this context means value of the assets which may regarded as
owned by the shareholders.This figure is sometimes called shareholder
funds,equity or net assets
• Shareholders equity=Fixed Assets+current assets-current liabilities-long
term creditors-provisions
• Goodwill
• Varies from industry.15-20% ?
Premium to Asset Value(PAV)
• Premium to asset value={(share price-net asset value)x100}-100
• NAV=(Shareholder funds-goodwill)/number of shares in issue
• If large difference between NAV and PAV- maybe undervalued?
• PAV is a means to check premium
Internal Rate of Return(IRR)
• It is the overall rate of return from more than one variable
• Not a ratio in the rue sense
• =XIRR is thefunction on Mircosoft Excel
• It gives you the rate of return on shares compared to other
instruments
• It is a compounding rate of interest.Presently 8% is good, 12% is very
good.
• Can compare with yields on bonds
Return on Assets
• ROA=(Net Pofits/Net Assets)x100
• Net profit is profit before taxes and dividends
• Net assets is total of all fixed assets(less depreciation) plus current
assets, minus current liabilities
• ROA is a % which represents the return the company is itself
makingon what it owns
• Bankers use this
• Variations
Dividend Payout Ratio
• Dividend Payout ratio=Dividend per share/EPS
• Dividend per share is the total of the year’s dividend payablefor
owning one share.If a company pays an interim and final dividendthey
must be added.The amount included is the amount received by the
shareholder.No adjustment made for tax
• Retained Earning ratio is the opposite
• Useful as an investor for trusts etc
Dividend Cover
• Dividend Cover=EPS/Dividend per share
• It gives out how sustainable the dividend is
• Usually should be 3 times-last 3 years
• Below 1 is a warning
Overheads to Turnover Ratio
• Overheads/Turnover=(overheada/turnover)x100
• Overheads are all the expenses or indirect costspf the company.They
are the the items between GP and NP
• Turnover is Sales
• This has to reduce as company grows
• Expense Ratio is the same
13-03-2021
Ratio’s and Products
REGIONAL HEAD OF ADVISORY SOLUTIONS AND PRODUCT MANAGEMENT
• EFG BANK • 2012 TO 2020
Member of Singapore Management Committee. As a member of the Asia Business
Committee, help establish strategic directions for the Asian region. In the role of Regional
investment head, oversaw CHF
5. bn in client Assets Under Management with a regional team of Investment
Counsellors, asset class specialists & product management experts. A regular
speaker at various investment forums.
2
𝑥 − 𝑥ҧ
𝜎=
𝑛
• 𝜎=standard deviation
• 𝑥=the average arithmetic mean share price
• 𝑥=the
ҧ share price at the end of the day
• n=number of share prices ,sometimes denoted as n-1
• 1.Calculate the amount by which each day’s closing price differs from
the average
• 2.Square each answer
• 3.Add up the squares
• 4.Divide by the number of answers
• 5.Take the square root
• Share A 96,101,103 and 100.Drawing a bell curve and calculating SD
SD IS 2-45.There is a 68.2% probability that A will differ by 2.45
Share B -80.92.130.98-COMMENT?
• SD=18.49
• 2X18.49=36.98
• Probability=95.4%
• STDEVon excel
• Mean Varaince optimization
• Risk Reward
What did we cover
• Profitability Ratio’s • Margins • .Efficiency Ratio
• EPS • GM,OM,Net • Stock Turn
• P/E • OH on Turnover • Pbv
• EV • Gearing • Over trading and
• ESR • Gearing Ratio Under Trading
• Investment Ratio’s • Interest Cover • Policy Ratio
• Dividend Yield • Solvency Ratio • Debtor Period
• Total Return • Acid test
• ROCE • Creditor Period
• Current Ratio • Fixed Asset
• ROE • Cash Burn
• PAV • Defensive Interval Spending Ratio
• IRR • Fixed Charges Cover • Volatility
• ROA • Volatility Ratio
• Dividend Payout Ratio • Standard Deviation
• Dividend Cover
In Summary
• Enterprise/Company is the bedrock of trade
• P&L and Cash flow are the mathematical measures from accounting
• Ratio’s are derived from these
• Each investor makes his own thesis based on ratio’s
In God we trust-the rest bring numbers
Instruments
Stocks
Growth of a company/Enterprise
• Propietership
• Partnership
• LLP
• Pvt Ltd
• Closely Held Publicly Limited
• Listed
What are Shares?
• Shares are units of equity ownership interest in a corporation
that exist as a financial asset providing for an equal distribution
in any residual profits, if any are declared, in the form
of dividends. Shareholders may also enjoy capital gains if the
value of the company rises.
• Shares represent equity stock in a firm, with the two main types
of shares being common shares and preferred shares. As a
result, "shares" and “stock" are commonly used
interchangeably.
• In India they are called promoter’s shares
Key Takeaways
• Shares represent equity ownership in a corporation or financial
asset, owned by investors who exchange capital in return for
these units.
• Common shares enable voting rights and possible returns
through price appreciation and dividends.
• Preferred shares do not offer price appreciation but can be
redeemed at an attractive price and offer regular dividends.
• Most companies have shares, but only the shares of publicly-
traded companies are found on stock exchanges.
Unlike debt capital, obtained through a loan or bond issue, equity
has no legal mandate to be repaid to investors, and shares, while
they may pay dividends as a distribution of profits, do not pay
interest. Nearly all companies, from small partnerships or LLCs to
multinational corporations, issue shares of some kind.
• Shares of privately held companies or partnerships are owned
by the founders or partners. As small companies grow, shares
are sold to outside investors in the primary market. These may
include friends or family, and then angel or venture (VC)
investors. If the company continues to grow, it may seek to raise
additional equity capital by selling shares to the public on
the secondary market via an Initial Share Offering (IPO). After
an IPO, a company's shares are said to be publicly tradedand
become listed on a stock exchange
Authorized and Issued Shares
• Authorized shares comprise the number of shares a company’s
board of directors may issue. Issued shares comprise the
number of shares that are given to shareholders and counted
for purposes of ownership.
• In India SEBI controls the issue of shares
• Bonus Shares-Dilutes Value
• Stock Split-Does not
• For some BOD is sufficient
• For some a AGM
Rights
• Most companies issue common shares. These provide
shareholders with a residual claim on the company and its
profits, providing potential investment growth through both
capital gains and dividends. Common shares also come
with voting rights, giving shareholders more control over the
business. These rights allow shareholders of record in a
company to vote on certain corporate actions, elect members to
the board of directors, and approve issuing new securities or
payment of dividends. In addition, certain common stock comes
with pre-emptive rights ensuring that shareholders may buy new
shares and retain their percentage of ownership when the
corporation issues new stock.
In comparison, preferred shares typically do not offer much
market appreciation in value or voting rights in the corporation.
However, this type of stock typically has set payment criteria, a
dividend that is paid out regularly, making the stock less risky
than common stock. Because preferred stock takes priority over
common stock if the business files for bankruptcy and is forced to
repay its lenders, preferred shareholders receive payment before
common shareholders but after bondholders. Because preferred
shareholders have priority in repayment upon bankruptcy, they
are less risky than common shares.
Bonds
What is a Bond?
A bond is a fixed income instrumentthat represents a loan made
by an investor to a borrower (typically corporate or
governmental). A bond could be thought of as an IOU between
the Lender and borrower that includes the details of the loan and
its payments. Bonds are used by companies, municipalities,
states, and sovereign governments to finance projects and
operations. Owners of bonds are debtholders, or creditors, of the
issuer. Bond details include the end date when the principalof the
loan is due to be paid to the bond owner and usually includes the
terms for variable or fixed interest payments made by the
borrower.
Key takeaway’s
• Bonds are units of corporate debt issued by companies and
securitized as tradeable assets.
• A bond is referred to as a fixed income instrument since bonds
traditionally paid a fixed interest rate (coupon) to debtholders.
Variable or floating interest rates are also now quite common.
• Bond prices are inversely correlated with interest rates: when
rates go up, bond prices fall and vice-versa.
• Bonds have maturity dates at which point the principal amount
must be paid back in full or risk default.
Who issues them?
Governments (at all levels) and corporations commonly use
bonds in order to borrow money. Governments need to fund
roads, schools, dams or other infrastructure. The sudden
expense of war may also demand the need to raise funds.
Funding wars…
The Rothschild family are known to have funded the losers and the
winners of all wars since the Napoleonic Wars of 1803 to 1815. They
fund both sides so that whichever side wins, they profit. In 1815,
Napoleon Bonaparte was campaigning to take over Britain itself.
Seeing an opportunity, the Rothschild family got together and made a
plan. Jacob Rothschild was stationed in Paris, France. He was told to
fund Napoleon’s war effort to conquer Britain. On the other hand,
Nathan Rothschild, stationed in London was told to fund General
Wellington’s war effort against Napoleon. The two sons did that and
the war raged. Soon, the family decided that it was more profitable to
them if Britain won the war and the British royal family was indebted to
the Rothschild family. Thus, Jacob limited the funds to Napoleon’s
army and General Wellington began to win.
India
• Jagat Seth
• Battle of Plassey
• Robert Clive
Similarly, corporations will often borrow to grow their business, to
buy property and equipment, to undertake profitable projects, for
research and development or to hire employees. The problem
that large organizations run into is that they typically need far
more money than the average bank can provide. Bonds provide
a solution by allowing many individual investors to assume the
role of the lender. Indeed, public debt markets let thousands of
investors each lend a portion of the capital needed. Moreover,
markets allow lenders to sell their bonds to other investors or
to buy bondsfrom other individuals—long after the original issuing
organization raised capital
• Bonds are commonly referred to as fixed income securities and
are one of three fundamental asset classes individual investors
are usually familiar with, along with stocks (equities) and cash
equivalents.
• Many corporate and government bondsare publicly traded;
others are traded only over-the-counter (OTC) or privately
between the borrower and lender.
•
When companies or other entities need to raise money to finance
new projects, maintain ongoing operations, or refinance existing
debts, they may issue bonds directly to investors. The borrower
(issuer) issues a bond that includes the terms of the loan, interest
payments that will be made, and the time at which the loaned
funds (bond principal) must be paid back (maturity date). The
interest payment (the coupon) is part of the return that
bondholders earn for loaning their funds to the issuer. The
interest rate that determines the payment is called the coupon
rate.
The initial price of most bonds is typically set at par, usually $100
or $1,000 face value per individual bond. The actual market price
of a bond depends on a number of factors: the credit quality of
the issuer, the length of time until expiration, and the coupon rate
compared to the general interest rate environment at the time.
The face value of the bond is what will be paid back to the
borrower once the bond matures.
Most bonds can be sold by the initial bondholder to other
investors after they have been issued. In other words, a bond
investor does not have to hold a bond all the way to its maturity
date. It is also common for bonds to be repurchased by the
borrower if interest rates decline, or if the borrower’s credit has
improved, and it can reissue new bonds at a lower cost.
Advantages and Disadvantages
• Income through interest but lower than stock, taxes
• Get your principal back, but companies can default
• You can sell the bond at higher price but yield may fall
Some terms
• Face value is the money amount the bond will be worth at
maturity; it is also the reference amount the bond issuer uses
when calculating interest payments. For example, say an
investor purchases a bond at a premium $1,090 and another
investor buys the same bond later when it is trading at a
discount for $980. When the bond matures, both investors will
receive the $1,000 face value of the bond.
• The coupon rate is the rate of interest the bond issuer will pay
on the face value of the bond, expressed as a percentage. For
example, a 5% coupon rate means that bondholders will receive
5% x $1000 face value = $50 every year
Coupon dates are the dates on which the bond issuer will make
interest payments. Payments can be made in any interval, but
the standard is semiannual payments.
The maturity date is the date on which the bond will mature and
the bond issuer will pay the bondholder the face value of the
bond.
The issue price is the price at which the bond issuer originally
sells the bonds.
What affects a bond price?
• Credit Quality and Duration
• Credit rating agencies
• Investment grade
• Junk Grade
• Bonds and bond portfolios will rise or fall in value as interest
rates change. The sensitivity to changes in the interest rate
environment is called “duration.” The use of the term duration in
this context can be confusing to new bond investors because it
does not refer to the length of time the bond has before
maturity. Instead, duration describes how much a bond’s price
will rise or fall with a change in interest rates
• The rate of change of a bond’s or bond portfolio’s sensitivity to
interest rates (duration) is called “Convexity”.
• Convexity of a Bond is a measure that shows the
relationship between bond price and Bond yield, i.e., the
change in the duration of the bond due to a change in the
rate of interest, which helps a risk management tool to
measure and manage the portfolio’s exposure to interest
rate risk and risk of loss of expectation
Bonds & Derivatives
Class 7-15-03-2021
Time Value of Money(TVM)
• The Time Value of Money (“TVM”) is a concept on which the
rest of finance theory rests on. Therefore, it is critical to
understand this concept well.
• Rs 100 today will buy a lot less ten years from now and brought
a lot more 10 years back
• As time flows value of money declines
• The value of money declines due to the combined impact of the
following:
1.Inflation in the economy;
2.Risks involved in delayed receipts of cash or financial
transactions; and
3.Opportunity cost of capital delayed.
• While each of these forces alone can cause the value of money to
decline individually, all the three usually act with different
degrees of impact to cause a decline in the value of money as
time flows.
The Present Value Formula
• The present value formula quantifies how fast the value of money declines. This formula
shows you how much once single cash payment (FV) received in a future time period (t) is
worth in today’s terms (PV).
PV= FVt
__________________
(1+r)t
• Present Value (PV) stands for the value of the money in today’s terms.
• Future Value (FV) stands for the amount of cash received in the future.
r is the discount rate or the speed at which the decline in value is happening
• t is the time period in which the future value or cash is received.
Future Value of a Sum
The future value of a sum depends on the interest rate and the
interval of time over which the sum is invested. This is shown
with the following formula:
FVt = PV*(1+r)t
• where:
• FVt = future value of a sum invested for t periods
• r = periodic interest rate
• PV = present value
• t = number of periods until the sum is received
Example
• A sum of Rs 1000 is invested at a rate of interest of 3% for 4 years.
What is the value of the sum at the end of 4 years?
• PV=1000, t=4 and r=3
• FV4 = 1,000(1+.03)4
• FV4 = 1,000(1.12551)
• =1125.51 Rs
Example 2
• How much must be deposited in a bank account that pays 5%
interest per year in order to be worth Rs1000 in three years?
• In this case, t = 3, r = 5% and FV3 =Rs 1000.
• PV=1,000/(1.1576)
• =Rs 863.84
Interest Rate and Compounding Frequencies
• Simple
• Annual Compounding
• Semi-Annual Compounding
• Monthly Componding
• t changes in value
• Take 1000 Rs invested for 2 years at 8%
• Annual=1,000*(1+.08)^2=1166.4
• Semi Annual=1,000*(1+.04)^4=1169.86
• Monthly=1,000*(1+.006667)^24=1172.89
Annuities
• An annuity is a periodic stream of equally-sized payments. The
word annuity is derived from the Latin word annum (yearly). In
spite of this, any stream of periodic payments of equal size can
be treated as an annuity. As an example, mortgage payments are
made monthly and are of equal size, and so can be thought of as
a type of annuity.
The two basic types of annuities are:
• Ordinary annuity
• Annuity due
Ordinary Annuinity
With an ordinary annuity, the first payment takes place one
period in the future. Most annuities are ordinary; some examples
are:
• Coupons paid by a bond
• Dividend payments by a share of preferred stock
• Car loan payments
• Mortgage payments
• Student loan payments
• Social security payments
The Future
Value of an FVAt=Future value of t-
Ordinary period of an annuity
1 month 0.25%
3 months 0.26%
6 months 0.35%
1 year 0.45%
2 years 0.61%
3 years 0.71%
5 years 1.00%
7 years 1.26%
10 years 1.46%
20 years 1.83%
30 years 2.27%
The corresponding yield curve
Historically, the yield curve has been upward-sloping. This is the
how the yield curve normally looks, it has been referred to as the
‘normal yield curve’. The yields of longer-maturity bonds tend to
be higher than the yields of shorter-maturity bonds since the
longer maturity bonds are riskier. This is because
• Changes in market conditions have a greater impact on the
prices of longer maturity bonds than shorter maturity bonds;
and
• There is more uncertainty over market conditions that take
place further in the future.
The shape and level of the yield curve can change over time. If
economic activity is expected to accelerate in the future, the yield
curve tends to become steeper, since future rates are expected to
be higher than they are now. If the economy is expected to slow
in the future, the yield curve tends to become flatter, since future
rates are expected to be lower than they are now.
During periods of rising inflation, the entire yield curve
shifts up as lenders require higher rates of return to compensate
for the loss of purchasing power. During periods of falling
inflation, the entire yield curve shifts down.
Occasionally, the yield curve can have a negative slope (referred
to as an ‘inverted yield curve’); this tends to happen when
inflation is at unusually high levels and is expected to fall in the
future or when recessions are imminent
Definition of Interest Rates
Interest rates can be expressed in several different equivalent ways,
such as:
• Discount factors
• Spot rates
• Forward rates
• Yields
The prices of Treasury securities may be used to compute discount
factors, spot rates, forward rates and yields. Discount factors can be
computed directly from the prices of Treasuries. Spot rates can be
computed from discount factors; forward rates can be computed from
spot rates.
Discount Factors
where:
S(t) = t-year spot rate
d(t) = t-year discount factor
t = maturity of spot rate (measured in
years)
Forward Rates
where:
DMAC = Macaulay Duration
t = a time index
n = the number of periods until the
bond’s maturity date
CFt = the bond’s cash flow at time t
y = the bond’s yield to maturity
P = the bond’s price
• As an example, suppose that a ten-year U.S. Treasury note that
was issued seven years ago with a coupon rate of 6% and a face
value of $1,000. Also assume that newly-issued (“on-the-run”)
three-year Treasury notes offer a coupon rate of 3%, and that
the note pays semi-annual coupons.
• The price of the bond is computed as the present value of the
bond’s future cash flows. The bond in this example makes a
semi-annual coupon payment of $30 twice per year; at maturity,
the face value (principal) of $1,000 is repaid. Each cash flow is
discounted by the semi-annual yield to maturity, which is one-
half of 3%, or 1.5%.
• Since the bond makes semi-annual coupon payments, this result
is measured in terms of semi-annual periods. The Macaulay
Duration expressed in years is 5.60/2 = 2.80. This indicates
that it takes 2.8 years before the present value of the cash flows
adds up to 1,000, the initial price of the bond.
Modified Duration
= P2 – 2P1 + P0
Convexity can be computed by using calculus; this is
accomplished by computing the second derivative of the bond’s
price function with respect to the bond’s yield, and then
multiplying the result by 1/P.
As a simpler alternative, the convexity can be
computed with the following equation:
where:
C = convexity
t = a time index
n = the number of periods until the bond’s maturity
date
CFt = the bond’s cash flow at time t
y = the bond’s yield to maturity
P = the bond’s price
Using the example of the ten-year U.S. Treasury note that was
issued seven years ago with a coupon rate of 6%, a face value of
$1,000 and a yield of 3%, the convexity can be computed as
follows.
= 57.38 + 169.59 + 334.17 + 548.73 + 810.92 + 38,402.38
= $40,323.18
When this is multiplied by 1/P, the convexity is determined to be:
C = 40,323.18 / 1,085.45 = 37.15
Convexity is positive for option-free bonds. Convexity can be
negative if a bond contains an embedded call option. An
embedded call option enables the issuer to repurchase the bond
at a fixed price (known as the call price) at a specified time in the
future. With very low yields, the likelihood of a bond being called
is extremely high; as a result, investors will not pay more than the
call price for a bond, no matter how low yields are. This results in
a phenomenon known as “price compression”, in which the price
of a bond is prevented from rising above the call price while the
price can still fall due to rising yields. When yields are extremely
low, the bond’s convexity can become negative as the price curve
flattens out.
Using both modified duration and convexity to estimate the change in a bond’s price due
to a given change in yield can be estimated more precisely than with modified duration
alone; the equation is:
• For the ten-year U.S. Treasury note that was issued seven years
ago with a coupon rate of 6%, a face value of $1,000 and a yield
of 3%, the change in the price due to an increase in the yield to
3.01% can be computed as follows:
• ΔP = -2.76(1,085.46)(0.0001) + 0.5(37.15)(1,085.46)(0.0001)2
• = -0.30 + 0.0002
• = -$0.2998
• n this case, using convexity in addition to modified duration
added very little accuracy to the estimated price change. In
other cases, using convexity can make a significant
improvement in the estimation of the price change. This can
occur when the convexity is very large; unlike modified
duration, which cannot exceed the maturity of the bond, the
convexity of a bond can reach a value in the thousands.
In addition to computing the change in
a bond’s price due to a given change in
yield, modified duration and convexity
can be combined to give the
approximate percentage change in the
price of a bond, as follows:
Effective Duration and Convexity
One of the major drawbacks of the modified duration and
convexity measures is that they are based on the assumption that
all promised cash flows to a bond will actually be made. This is
not necessarily the case for a bond containing an embedded
option. In particular, with an embedded call option, the bond can
be repurchased prior to maturity by the issuer. This will result in
the last few years’ worth of cash flows not being received by the
bond owner. As a result, the modified duration and convexity
measures may not accurately reflect the risk of this bond.
In order to correct for this problem, two alternative measures
were developed: effective duration and effective convexity. With
these measures, a model of the term structure of interest rates is
needed. Within the model, yields are increased by a specified
number of basis points, and the impact on the price is
observed. Yields are then decreased by the same number of basis
points, and the impact on the price is observed.
Effective duration is defined as
follows:
where:
DE = effective duration
P0 = the initial price of a bond
P– = the price of the bond after
the yield curve shifts down by
Δy basis points
P+ = the price of the bond after
the yield curve shifts up by Δy
basis points
Dy = the change in yield
For example, suppose that a
bond’s price is currently
$1,050.00. If the yields in a
term structure model are
reduced by 25 basis points,
the bond’s price rises by
$26.25 to $1,076.25. If the
yields are increased by 25
basis points, the bond’s
price falls by $25.89 to
$1,024.11. In this case, the
effective duration would be:
where:
CE = effective convexity
Passive Bond Portfolio Strategies
Different types of strategies can be used to manage the returns
and risk of a bond portfolio; some of the more widely-used
strategies are known as:
• Indexing
• Immunization
• With an indexing strategy, the portfolio manager attempts to
replicate a bond index, such as the Standard and Poor’s 500
Bond Index. Due to the varied features of bonds, this is a more
difficult objective to accomplish than replicating a stock market
index.
With an immunization strategy, the risk of a portfolio is managed
by attempting to ensure that the duration of a bond portfolio
matches a specified investment time horizon. The goal is to
ensure that the portfolio will provide a certain rate of return by
the end of the time horizon
Summary of what we learnt on Bonds
• TVM • Bond Pricing
• Future Value of a Sum • Bond Characteristics
• Annuity • Yield Measures
• YTM
• Ordinary Annuity • YTC
• Future Value • Current Yield
• Annuinities Due • Repo Rates
• Term Structure • Excel Sheet functions
• Yield Curve • Managing Bond Portfolio & Risks
• Interest Rate Risk
• Interest Rates • Macaulay Duration
• Discount Factors • Modified Duration
• Convexity
• Yields • Measures of Risk
• Expectations theory • Effective Duration
• Effective Convexity
• Liquidity Premium Theory • Risk Mitigation
• Indexing
• Immunization
Primary instruments
• Shares
• Bonds
• Currency
• Commodity
Others
• Futures
• Options
• Swaps
Secondary
• Derivatives
31032021
Derivatives , Futures, Options & Swaps
• The best movie to
understand the 2008
crash….
Derivative(Hull)
A derivative is defined as a financial instrument whose value depends
on(or derives from) the values of other more basic
underlying.variables,Very often variables underlying derivatives are
traded assets.A stock option for example is a derivative whose value is
dependent on the price of the stock..However derivatives can be
dependent on any variable-commodity, oil, currency, bonds, interest
rates
Derivatives( Ashwani Gujral)
Derivatives as the name suggests are financial instruments whos value
is dependent on the underlying asset.The underlying security in the
case of equity derivatives is a equity share.A share of equity can only
provide unhedged position whether long or short and the entire risk of
the transaction lies with the trader or investor. Whereas derivatives
allow futures, options , swaps and other means for speculation and
hedging
Forward
A relatively simple derivative is a forward contract.It is an agreement to
buy or sell an asset at a certain future time at a certain price.A forward
contract is usually contracted between two financial institutions.A
forward contract is very popular in the foreign currency market to
hedge foreign currency risk.
A forward contract is a customized contract between two parties
to buy or sell an asset at a specified price on a future date. A
forward contract can be used for hedging or speculation,
although its non-standardized nature makes it particularly apt
for hedging
• A forward contract is a customizable derivative contract between two
parties to buy or sell an asset at a specified price on a future date.
• Forward contracts can be tailored to a specific commodity, amount,
and delivery date.
• Forward contracts do not trade on a centralized exchange and are
considered over-the-counter (OTC) instruments.
• For example, forward contracts can help producers and users of
agricultural products hedge against a change in the price of an
underlying asset or commodity.
• Financial institutions that initiate forward contracts are exposed to a
greater degree of settlement and default risk compared to contracts
that are marked-to-market regularly.
• Unlike standard futures contracts, a forward contract can be
customized to a commodity, amount, and delivery date. Commodities
traded can be grains, precious metals, natural gas, oil, or even
poultry. A forward contract settlement can occur on a cash or delivery
basis.
• Forward contracts do not trade on a centralized exchange and are
therefore regarded as over-the-counter (OTC) instruments. While
their OTC nature makes it easier to customize terms, the lack of a
centralized clearinghouse also gives rise to a higher degree
of default risk.
• Because of their potential for default risk and lack of a centralized
clearinghouse, forward contracts are not as easily available to retail
investors as futures contracts
SpotContract
• Is a contract to buy or sell an asset almost immediately
• In finance, a spot contract, spot transaction, or simply spot, is
a contract of buying or selling a commodity, security or
currency for immediate settlement (payment and delivery)
on the spot date, which is normally two business days after the
trade date.
• T+n
• Settlement is on the nth day, 3rd day usually
• There is a relationship between interest rates and forward
prices and spot
Long Positions
• The term long position describes what an investor has
purchased when they buy a security or derivative with the
expectation that it will rise in value.
• Being long is a measurement of time
• In forward contracts the party who assumes a long position
agrees to buy the underlying asset on a certain specified future
date for a certain specified price
• This term will be used for bullish acts
Short Position
• In a forward contract the party that agrees to sell the asset on a
specific date for a specific price is said to have taken a short position
• A short, or a short position, is created when a trader sells a
security first with the intention of repurchasing it or covering it
later at a lower price. A trader may decide to short a security
when she believes that the price of that security is likely to
decrease in the near future. There are two types of short
positions: naked and covered. A naked short is when a trader
sells a security without having possession of it.
• In general bearish action
Payoff
K= Delivery Price as per contract at time T
ST=Spot Price at time T
For
Long= ST-K
Short=K-ST
Consider the following example of a forward contract. Assume
that an agricultural producer has two million bushels of corn to
sell six months from now and is concerned about a potential
decline in the price of corn. It thus enters into a forward contract
with its financial institution to sell two million bushels of corn at a
price of $4.30 per bushel in six months, with settlement on a cash
basis
Long or Short? Who?
In six months, the spot priceof corn has three possibilities:
1.It is exactly $4.30 per bushel. In this case, no monies are
owed by the producer or financial institution to each other and
the contract is closed.
2.It is higher than the contract price, say $5 per bushel. The
producer owes the institution $1.4 million, or the difference
between the current spot price and the contracted rate of $4.30.
3.It is lower than the contract price, say $3.50 per
bushel. The financial institution will pay the producer $1.6
million, or the difference between the contracted rate of $4.30
and the current spot price.
More practical…
Consider a stock that is worth 60$ and pays no dividend.You can
borrow or lend money at 5%, what should the forward price of the
stock be?
Assuming no rerating of the stock the answer is 60$ +5%=63$
If the stock is expected to touch 67$, borrow 60$ buy one share and
sell it at 67$.After paying the loan on 3$ you have a profit of 4$
Longs
If the stock were expected to touch 58$, investor investor owning this
can sell it and enter into a forward contract for 1 year at 58$.The
proceeds of 60$ earn 3$ and he owns the stock back at a profit of 2 $.
Net 5$
Shorts
Futures
What is a future?
Like a forward contract, a future is an agreement to buy an asset at a
certain time at the future for a certain price.U
Unlike forward contracts future contracts are traded on a exchange
Tomake trading possible the exchange specificies certain standardized
features of the contract.
As the two parties do not know each other the exchange also provides
a mechanism that gives the two parties a gaurantee that the contract
will be honoured
Clearinghouse
The futures price i.e. the price at which the buyer commits to
purchase the underlying asset can be calculated using the
following formulas:
FP0 = S0 × (1+i)t
Where,
FP0 is the futures price,
S0 is the spot price of the underlying,
i is the risk-free rate and t is the time period.
Value of a futures contract
The formula is a little different for futures contract in which the
underlying asset has cash inflows or outflows during the term of
the futures contract, for example stocks, bonds, commodities,
etc.
The value of a futures contract is different from the future price. It
is the value of the long or short position in the futures contract
itself and it depends on whether the spot price of the underlying
asset at the time of valuation is higher or lower than the agreed
futures price and the risk-free interest rate.
Value at inception
The value of futures contract for the buyer (i.e. the party with long
position) at inception is zero and the value at expiration equals
the difference between the associated spot rate at the expiration
date minus the futures price i.e. the price at which the futures
contract was purchased.
• VT = ST − F0
• Where,
VT is the value at expiration,
ST is the spot price at expiration, and
F0 is the futures price looked through the futures contract.
Value after inception but before expiry date
• Because futures contracts are traded on an exchange, parties
might sell them any time between the inception date and the
expiration date. In such an event, the value of the futures
contract equals the difference between the spot price at that
time (denoted as St) minus the present value of the futures price
locked at time t. The value of futures future F0 that we expected
to get at time T can be worked out by discounting the futures
price (F0) at risk-free rate r for the remaining time period (i.e. T
minus t). The value of the futures contract can be worked out as
follows:
Vt= St - F0/(1+r)*(T-t)
• Stock futures offer a variety of usages to the investors. Some of the key usages
are mentioned below:
Investors can take long term view on the underlying stock using stock futures.
• Stock futures offer high leverage. This means that one can take large position
with less capital. For example, paying 20% initial margin one can take position for
100 i.e. 5 times the cash outflow.
Futures may look overpriced or underpriced compared to the spot and can offer
opportunities to arbitrage or earn risk-less profit. Single stock futures
offer arbitrage opportunity between stock futures and the underlying cash
market. It also provides arbitrage opportunity between synthetic futures (created
through options) and single stock futures.
When used efficiently, single-stock futures can be an effective risk management
tool. For instance, an investor with position in cash segment can minimize either
market risk or price risk of the underlying stock by taking reverse position in an
appropriate futures contract.
• Presently, stock futures are settled in cash. The final settlement
price is the closing price of the underlying stock.
The investor can square up his position at any time till the
expiry. The investor can first buy and then sell stock futures to
square up or can first sell and then buy stock futures to square
up his position. E.g. a long (buy) position in December Infy
futures, can be squared up by selling December Infy futures.
• The outstanding positions in stock futures are marked-to-
market daily. The closing price of the respective futures contract
is considered for marking to market. The notional loss / profit
arising out of mark to market is paid / received on T+1 basis.
• The profits and losses would depend upon the difference
between the price at which the position is opened and the price
at which it is closed. Let an investor have a long position of one
November Stock "A" Futures @ 430. If the investor square up
his position by selling November Stock "A" futures @ 450, the
profit would be Rs. 20 per share. In case, the investor squares
up his position by selling November Stock "A" futures @ 400,
the loss would be Rs. 30 per share.
• According to L.C.Gupta Committee Report on Derivatives, at the
time of introduction of Derivatives Contracts on any underlying the
value of the contract should be at least Rs. 2 lakhs. This value of Rs.
2 lakhs is divided by the market price of the individual stock to arrive
at the initial 'market lot' for it. It may be mentioned here that the only
exception to this rule is the 'mini' contract on the S&P BSE
SENSEX (both futures and Options).
Similarly, you can enter an order for Sell Nov Dec stating the
difference you want to receive. This would mean that you are selling
a December Contract and buying a November Contract and
receiving the difference.
• One can trade in spread contracts on the Derivative Segment of
BSE. Spreads are the contracts for differential price. This
means that in case you want to buy a December contract and
sell November contract, you can enter an order for Buy Nov
Dec stating the difference you want to pay. This would mean
that you are buying a December Contract and selling a
November contract.
Deposit upfront the initial margin
Similarly, you can enter an order for Sell Nov Dec stating the
difference you want to receive. This would mean that you are
selling a December Contract and buying a November Contract
and receiving the difference.
Pair Trading
• This trading strategy involves taking a position on the relative
performance of two stocks. It is achieved by buying futures on
the stock expected to perform well and selling futures on the
stock anticipated to perform poorly. The overall gain or loss
depends on the relative performance of the two stocks.
Variable
5% Interest
Interest Paid
Libor + 1.30% Paid by ABC ABC's Gain XYZ's Loss
by XYZ to
to XYZ
ABC
Year 1 3.80% $38,000 $50,000 ($12,000) $12,000
Year 2 4.05% $40,500 $50,000 ($9,500) $9,500
Year 3 4.30% $43,000 $50,000 ($7,000) $7,000
Year 4 4.55% $45,500 $50,000 ($4,500) $4,500
Year 5 4.80% $48,000 $50,000 ($2,000) $2,000
Total ($35,000) $35,000
• In this case, ABC would have been better off by not engaging in the
swap because interest rates rose slowly. XYZ profited $35,000 by
engaging in the swap because its forecast was correct.
• This example does not account for the other benefits ABC might
have received by engaging in the swap. For example, perhaps the
company needed another loan, but lenders were unwilling to do that
unless the interest obligations on its other bonds were fixed.
• In most cases, the two parties would act through a bank or other
intermediary, which would take a cut of the swap. Whether it is
advantageous for two entities to enter into an interest rate swap
depends on their comparative advantage in fixed or floating-
rate lending markets.
• The instruments exchanged in a swap do not have to be
interest payments. Countless varieties of exotic swap
agreements exist, but relatively common arrangements include
commodity swaps, currency swaps, debt swaps, and total return
swaps.
Commodity Swaps
This one is the most used concept in the various fields concerning
mathematics and in simple words, it is the average of the given dataset.
Thus, if we take five numbers in a data set, say, 12, 13, 6, 7, 19, 21, the
formula of the mean is
which makes it :
(12 + 13 + 6 + 7 + 19 + 21)/6 = 13
Furthermore, the trader tries to initiate the trade on the basis of the mean
(moving average) or moving average crossovers
Here, let us understand two types of moving averages based on the
ranges (number of days) of the time period they are calculated in and the
moving average crossover:
Faster moving average (Shorter time
period) -
• A faster moving average is the mean of a data set (stock prices)
calculated over a short period of time, say past 20 days.
Slower moving average (Longer time
period)
• A slower moving average is the one that is the mean of a data
set (stock prices) calculated from a longer time period say 50
days.
• Now, a faster-moving average and a slower moving average
also come to a position together where a “crossover” occurs.
• According to Wikipedia, “A crossover occurs when a faster-
moving average (i.e., a shorter period moving average) crosses
a slower moving average (i.e. a longer period moving average).
In other words, this is when the shorter period moving average
line crosses a longer period moving average line.”
• Here, to explain it better, the graph image above is showing
three moving lines. Blue one shows the trend line of the stock
prices in general. It is further disintegrated into green and
orange lines. The green one indicates a slower-moving average
and orange one indicates a faster-moving average.
• Now starting with the green line, (slower moving average) the
entire trend line shows the varying means of stock prices over
longer time periods. The trend line follows a zig-zag pattern and
there are different crossovers.
• For example, there is a crossover between October, 2018 and
January, 2019 where orange line (faster-moving average)
comes from above and crosses the green one (slower-moving
average) while going down. This indicates that any individual or
firm would be selling the stocks at this point since it shows a
slump in the market.
• This crossover point is called the “meeting point”. After the
meeting point, ahead both the lines go down and then go up
after a point to create one more (and then other) crossover(s).
• Now, it is very important to note here that the “meeting point” is
considered bullish if the faster-moving average crosses over the
slower-moving average and goes beyond in the upward
direction. On the contrary, it is considered bearish if the faster-
moving average drops below the slower-moving average and
goes beyond down. This is so because in the former scenario, it
shows that in a short time, there came an upward trend for
particular stocks. Whereas, in the latter scenario it shows that in
the past few days there was a downward trend.
• For example, we will be taking the same instances of the 20-
days' moving average for faster-moving average and 50 days'
moving average for slower-moving average. If 20-days' moving
average goes up and crosses 50- days' moving average, it will
show a bullish market since it indicates an upward trend in the
past 20-days’ stocks. Whereas, if the 20-days' moving average
goes below the 50-days' moving average, it will
be bearish since it means that the stocks fell in the past 20-
days.
• In short, Mean is a statistical indicator used for estimating a
company’s or even the market’s stock performance over a
period of time. This period of time can be days, months and
even years.
Going forward, mean can also be
computed with the help of an
excel sheet, with the following
formula:
=Average(B2: B6)
• In python, for taking out the mean of closing prices, the code
will be as follows:
mean = np.mean (aapl[‘Adj Close’])
print(mean)
RESULT???
Median
• Sometimes, the data set values can have a few values which
are at the extreme ends, and this might cause the mean of the
data set to portray an incorrect picture. Thus, we use the
median, which gives the middle value of the sorted data set.
• To find the median, you have to arrange the numbers in
ascending order and then find the middle value. If the dataset
contains an even number of values, you take the mean of the
middle two values.
• For example, if the list of numbers are: 12, 13, 6, 7, 19, then,
• In ascending order, the numbers are: 6, 7, 12, 13, 19
• Now, we know there are in total 5 numbers and the formula for
Median is:
• (n+1)/2 value.
• Hence, it will be n = 5 and
• (5+1)/2 value will be 6/2= 3rd value.
• Here, the 3rd value in the list is 12.
• So, the median becomes 12 here.
• Mainly, the advantage of the median is that unlike the mean, it
remains extremely valid in case of extreme values of data set
which is the case in stocks.
• Median is required in case the average is to be calculated from
a large data set, in which, the median shows an average which
is a better representation of the data set.
• For example, in case the data set is given as follows with values in
INR:
• 75,000, 82,500, 60,000, 50,000, 1,00,000, 70,000 and 90,000.
• Calculation of the median needs the prices to be first placed in
ascending order, thus, prices in ascending order are:
• 50,000, 60,000, 70,000, 75,000, 82,500, 90,000, 1,00,000
• Now, the calculation of the median will be:
• As there are 7 items, the median is (7+1)/2 item, which makes it the
4th item. The 4th item in the ascending order is INR 75,000.
• As you can see, INR 75,000 is a good representation of the data set,
so this will be an ideal one.
• Excel sheet helps in the
following way to compute
median:
• =Median(B2:B6)
•
median = np.median (aapl[‘Adj Close’]) print(median)
Mode in Python
Now, if we take the closing prices prices of Apple from Dec 26,
2018, to Dec 26, 2019, we will find there is no repeating value,
and hence the mode of closing prices does not exist.
• Hence, the mode does not make sense while observing closing
price values.
• Coming to the significance of the mode, it is most helpful when
you need to take out the repetitive stock price from the previous
particular time period. This time period can be days, months
and even years. Basically, the mode of the data will help you
understand if the same stock price is expected to repeat in the
future or not.
• Also, the mode is best utilised when you want to plot histograms
and visualize the frequency distribution.
Measure of Dispersion
• It displays how scattered the data is around the central point. It
simply tells the variation of each data value from one another,
which helps to give a representation of the distribution of the
data. Also, it portrays the homogeneity and heterogeneity of the
distribution of the observations.
• In short, it simply shows how much the entire data varies from
their average value.
Measure of dispersion can be divided into:
• Range
• Quartile Deviation
• Mean Absolute Data or Mean Deviation
• Variance
• Standard Deviation
Now, let us understand the concept of each category.
Range
• This is the most simple out of all the measures of dispersion and is also easy to
understand. Range simply implies the difference between two extreme observations or
numbers of the data set.
• For example, let X max and X min be two extreme observations or numbers. Here, Range
will be the difference between the two of them.
• Hence,
• Range = X max - X min
• It is also very important to note that Quant analysts keep a close follow up on ranges. This
happens because the ranges determine the entry as well as exit points of trades. Not only
the trades, but Range also helps the traders and investors in keeping a check on trading
periods.
• This makes the investors and traders indulge in Range-bound Trading strategies, which
simply imply following a particular trendline. The trendlines are formed by high priced
stocks (following an upper trendline) and low priced stocks (following a lower trendline). In
this, the trader can purchase the security at the lower trendline and sell it at a higher
trendline to earn profits.
Quartile Deviation:
• This is the type which divides a data set into quarters. It consists of First Quartile
as Q1, Second Quartile as Q2 and Third Quartile as Q3.
• Here,
• Q1 - is the number that comes between the smallest and the median of the data
(1/4th) or top 25%
• Q2 - is the median of the data or
• Q3 - is the number that comes between the median of data and the largest
number (3/4th) or lower 25%
• n - is the total number of values
• And the formula for Quartile deviation is Q = ½ * (Q3 - Q1)
• Since,
• Q1 is top 25%, the formula for Q1 is - ¼ (n+1)
• Q3 is also 25%, but the lower one, so the formula is - ¾ (n+1)
• Hence, Quartile deviation = ½ * [(¾ (n+1) - ¼ (n+1)]
• The major advantage, as well as the disadvantage of using this
formula, is that it uses half of the data to show the dispersion from
the mean or average.
• You can use this type of measure of dispersion for studying the
dispersion of the observations that lie in the middle.
• This type of measures of dispersion helps you understand dispersion
from the observed value and hence, differentiates between the large
values in different Quarters.
• In the financial world, when you have to study a large data set (stock
prices) in different time periods and want to understand the
dispersed value (prices) from an observed one (average-median),
Quartile deviation can be used.
Mean Absolute Deviation:
Variance
Here, N = number of values in data set and
D0, D1, D2, D3 are the deviation of each
value in the data set from the mean
In simple words, the
standard deviation is a
calculation of the spread out
Standard of numbers in a data set.
The
Deviation symbol (sigma)represents
Standard deviation and the
formula is:
Also,
•
•
• Loosely speaking, a time series is stationary if its mean
and variance are time invariant (constant over time). A
stationary time series will be mean reverting in nature,
i.e. it will tend to return to its mean and fluctuations
around the mean will have roughly equal amplitudes. A
stationary time series will also not drift too far away from
its mean
• A non-stationary time series, on the contrary, will have a time
varying variance or a time varying mean or both, and will often
not revert back to its mean.
• In the following diagram the blue line represents a non-
stationary time series, whereas the red line represents a
stationary time series.
• In the financial industry, traders take advantage of
stationary time series by placing orders when the
price of a security deviates considerably from its
historical mean, speculating the price to revert
back to its mean.
• One of the simplest mean reversion trading related trading strategies is
to find the average price over a specified period, followed by determining
a high-low range around the average value from where the price tends to
revert back to the mean. The trading signals will be generated when these
ranges are crossed - placing a sell order when the range is crossed on
the upper side and a buy order when the range is crossed on the lower
side. The trader takes contrarian positions, i.e. goes against the
movement of prices (or trend), expecting the price to revert back to the
mean.
•
Pairs Trading Strategy: Mean Reversion of Spreads
5/77
Categories and
Terminologies (cont.)
• univariate vs. multivariate
A time series containing records of a single variable is
termed as univariate, but if records of more than one
variable are considered then it is termed as multivariate.
• linear vs. non-linear
A time series model is said to be linear or non-linear
depending on whether the current value of the series
is a linear or non-linear function of past observations.
• discrete vs. continuous
In a continuous time series observations are measured at
every instance of time, whereas a discrete time series
contains observations measured at discrete points in time.
• This lecture will focus on univariate, linear, discrete
time series.
Important Characteristics
Some important questions to first consider when first looking at a time series
are:
• Is there a trend, meaning that, on average, the measurements tend to
increase (or decrease) over time?
• Is there seasonality, meaning that there is a regularly repeating pattern of
highs and lows related to calendar time such as seasons, quarters, months,
days of the week, and so on?
• Are there outliers? In regression, outliers are far away from your line. With
time series data, your outliers are far away from your other data.
• Is there a long-run cycle or period unrelated to seasonality factors?
• Is there constant variance over time, or is the variance non-constant?
• Are there any abrupt changes to either the level of the series or the
variance?
Components of aTime Series
• In general, a time series is affected by four components,
i.e. trend,seasonal,cyclical and irregular components.
– Trend
The general tendency of a time series to increase,
decrease or stagnate over a long period of time.
110
cents per pound
60 70 80 90
15
9/77
10
5
0
Johnson & Johnson quarterly earnings per share, 84 quarters, 1960-I to 1980-IV.
Components of a Time Series (cont.)
• In general, a time series is affected by four components,
i.e. trend,seasonal,cyclical and irregular components.
– Cyclical variation
This component describes the medium-term changes
caused by circumstances, which repeat in cycles. The
duration of a cycle extends over longer period of time.
130
10/77
110
90
70
–Additive Model
–Multiplicative Model
Σt
Xt = δ+ X t− 1 + w t = δt + wi
i=1
−20 0 20 40 60 80
models,
but this lecture will focus on stochastic process.
–We assume a time series can be defined as a collection of
random variablesindexed according to the order they are
obtained in time, X1, X2, X3, ... t will typically be discrete
and vary over the integers t = 0, ±1, ±2, ...
–Note that the collection of random variables {Xt} is referred to
as astochastic process, while the observed values are
referred to as arealizationof the stochastic process.
Measures of Dependence
• A complete description of a time series, observed as a
collection of n random variables at arbitrary time points
t1, t2, ...,tn, for any positive integer n, is provided by
the
joint distribution function, evaluated as the probability
that the values of the series are jointly less than the n
17/77
Ft1,t2,...,tn (c1, c2, ...,cn) = Pr(Xt1 ≤ c1, Xt2 ≤ c2, ...,Xtn ≤ cn).
value operator.
• Clearly for white noise series, µwt = E[wt ] = 0 for all t.
• For random walk with drift (δ ƒ= 0),
t
µXt = E[X t] = δt + Σ E[wi ] = δt
i=1
Autocovariance for
•
Time Series
Lack of independence between adjacent values in time
series
Xs and Xt can be numericallyassessed.
• Autocovariance Function
–Assuming the variance of Xt is finite, the
autocovariance function is defined as the second
moment product
19/77
all s and t.
–Note that γ(s, t) = γ(t, s) for all time points s andt.
• The autocovariance measures thelinear dependence
between two points on the same series observed at
different times.
–Very smooth series exhibit autocovariance functions that
stay large even when the t and s are far apart, whereas
choppy series tend to have autocovariance functions
Autocorrelation for
Time Series
• Autocorrelation Function (ACF)
–The autocorrelation function is defined
as
γ(s,t)
ρ(s, t) = √
γ(s, s)γ(t, t)
2
|γ(s, t)| ≤ γ(s, s)γ(t, t),
–A stationary time series is one whose statistical properties such as mean, variance,
autocorrelation, etc. are all constant over time.
• Most statistical forecasting methods are based on the assumption that the time series
can be rendered approximately stationary after mathematical transformations.
Which of these are
stationary?
22/77
Strict
Stationarity
• There are two types of stationarity, i.e.strictly
stationaryand weakly stationary.
• Strict Stationarity
–The time series {Xt, t ∈Z} is said to be strictly stationary if
thejoint distributionof ( Xt1 ,Xt2 ,...,Xtk ) is thesameas that
of (Xt1+h, Xt2+h, ...,Xtk +h).
23/77
φ11 = corr(Xt+1, Xt ) = ρ1
φhh = corr(Xt+h − Xˆt+h, Xt −Xˆt), h ≥2
of the form
Σp
Xt = φ 1X t− 1 + φ 2X t− 2 + ··· + φ X
p t− p +w t = φX
i t− i +w t
i=1
BXt =X t−1 .
31/77
Xt = B −1 BX t =B −1 X t−1 .
Autoregressive Operator of AR Process
• Recall the definition for AR(p) process:
Xt = φ1Xt−1 + φ2Xt−2 + ··· + φpX t−p + wt By
34/77
• Mean E[Xt] = 0
σw2
• Varianc Var(X t) =
e (1 − φ)21
AR Examples: AR(1)
Process
• Autocorrelation Function (ACF)
ρh =φh 1
35/77
AR Examples: AR(1)
Process
• Partial Autocorrelation Function (PACF)
φ11 = ρ1 = φ1 φhh = 0, ∀h ≥ 2
36/77
AR Examples: AR(1) Process
• Simulated AR(1) Process Xt = −0.9Xt−1 +wt :
37/77
• Mean E[Xt] = 0
σw2
• Varianc Var(X t) =
e (1 − φ)21
AR Examples: AR(1)
Process
• Autocorrelation Function (ACF)
ρh =φh 1
38/77
AR Examples: AR(1)
Process
• Partial Autocorrelation Function (PACF)
φ11 = ρ1 = φ1 φhh = 0, ∀h ≥ 2
39/77
Stationarity of AR(1)
• We can iteratively expand AR(1) representation
as:
Xt ==φ Xt−1X+ wt +w
φ1(φ + w t= φ X1 + φ 1w t− 1 +w t
1 1 t− 2 t− 1 ) t− 2
2
..
40/77 Σ
k− 1
j
= φX
k
1 t− k + φw
1 t− j
j=0
Σ∞ j
Xt = φw
1 t− j
j=0
47/77
• Mean E[Xt] = 0
• Variance Var(Xt) = σ2 (1 + θ2)
w 1
MA Examples: MA(1)
Process
θ1
• Autocorrelation Function (ACF)
ρ1 = ρh= 0, ∀h ≥ 2
1+ θ 1
2
48/77
MA Examples: MA(1) Process
• Partial Autocorrelation Function (PACF)
h
(−θ )1 (1 − θ) 2
1,
φhh =− 2(h+1)
h ≥1
1− θ 1
49/77
MA Examples: MA(2) Process
• Simulated MA(2) Process Xt = wt + 0.5×w t−1 + 0.3×w t−2 :
50/77
• Mean E[Xt] = 0
• Variance Var(Xt) = σ2 (1 + θ2 + θ2)
w 1 2
MA Examples: MA(2) Process
• Autocorrelation Function
(ACF) θ1 +θ1θ2 θ2
ρ1 = ρ2 = ρh= 0, ∀h ≥ 3
1 + θ 1+ θ 2
2 2 1 + θ21+ θ2 2
51/77
General MA(q) Process
Σ∞ j
Xt = φw
1 t− j
j=0
54/77
η(B)φ(B)Xt =η(B)θ(B)wt
chicken
60 70 80 90 110
Time
detrended
61/77
resid(fit)
−5 0 5 10
Time
first difference
diff(chicken)
−2 −1 0 1 2 3
Time
From ARMA to ARIMA
• Order of Differencing
–Differences of order d are defined as
d d
∇ = (1 − B) ,
is ARMA(p, q).
–In general, ARIMA(p, d, q) model can be writtenas:
.
Box-Jenkins Methods
• As we have seen ARIMA models have numerous
parameters and hyper parameters, Box and Jenkins
suggests an iterative three-stage approach to estimate
an ARIMA model.
• Procedures
1 Model identification: Checking stationarity and
seasonality, performing differencing if necessary,
63/77
64/77
66/77
67/77
70/77
• From the ACF plot, we can see that the mean and
std variations have much smaller variations with
time.
• Also, the ADF test statistic is less than the 10% critical
value, indicating the time series is stationary with 90%
confidence.
Choosing Model
Specification
72/77
73/77
74/77
ARMA(2, 2): Predicted on Residuals
75/77
76/77
SARIMA: Seasonal ARIMA Models
• One problem in the previous model is the lack of
seasonality, which can be addressed in a generalized
version of ARIMA model calledseasonal ARIMA.
• Definition
–A seasonal ARIMA model is formed by including
additional seasonal terms in the ARIMA models,
denoted as 77/77
i.e.
φ(Bm) φ(B)(1 − B m )D (1 − B)d Xt = θ(Bm) θ(B) wt
year.
–The seasonal part of the model consists of terms that are
similar to the non-seasonal components, but involve
ARCH and GARCH
• As an example of financial time series data, Figure shows the daily
returns (or percent change) of the Dow Jones Industrial Average (DJIA)
from April 20, 2006 to April 20, 2016. It is easy to spot the financial
crisis of 2008 in the figure. The data shown in Figure are typical of
return data. The mean of the series appears to be stable with an
average return of approximately zero, however, highly volatile
(variable) periods tend to be clustered together. A problem in the
analysis of these type of financial data is to forecast the volatility of
future returns. Models such as ARCH and GARCH models (Engle, 1982;
Bollerslev, 1986) and stochastic volatility models (Harvey, Ruiz and
Shephard, 1994) have been developed to handle these problems.
DJIA returns
-.05 to 0.10
• GARCH
• Generalized ARCH
Volatility = Standard Deviation
Implies that the conditional variance of Yi is a constant or the errors (i) are
E ( t ) t
homocedastic.
2 On the
2 contrary, if
then the variance is not a constant or the errors are Heteroscedastic. This is a
common problem with cross section data.
If so, estimates (0 and 1) are unbiased, but conventional estimates of
standard errors and confidence intervals are very narrow, giving false sense of
precision. For instance, the usual variance formula is:
var(1 ) 2 xt2
whereas the true variance with heteroskedastic errors is:
*
var(1 ) x 2
t t
2
x
2 2
t
*
var(
Obviously,
1 ) var( 1 )
1033
1119
1205
1291
1377
1463
1549
1635
1721
87
173
259
345
431
517
603
689
775
861
947
1
Yt X t t
2 2 2
1 t 1 t 2
where t ist a white0 noise process. The2 conditional
t
variance for t is:
2
E t 0 1 t21 2 t22
The above equation is called an ARCH (2) process.
The most convenient way is to model both mean and variance simultaneously using
maximum likelihood techniques. Engle (1982) provides a multiplicative
conditionally heteroscedastic model:
where
tt isawhite
t 0noise
1process
t 1 with unit variance; 0 > 0 and 0 < 1 < 1.
2
Drawbacks of ARCH P process
Consumes several degrees of freedom
Difficult to interpret if some coefficients are
negative
Does not estimate mean and variance functions
simultaneously
Thus an ARCH model higher than ARCH(3) is
better estimated by GARCH Model
The GARCH Model
where t-1 and t-1 are ARCH and GARCH terms respectively.
2 2 2
The ARCH-M Model
rt t2 t t2
t2 0 1 t21 2 t21
Often, we notice that the downward movements in the market are highly
volatile than upward movement of the same magnitude. In such case, symmetric
ARCH model undermines the true variance process. Engle and Ng (1993)
provide a news impact curve with asymmetric response to good and bad news.
Volatility
The T ARCH or Threshold ARCH due to Zakoian (1990) can be defined as:
rt t t2
t2 0 1 t21 2 t21 t21d t 1
where d t-1 1 if ε t 0 and 0 otherwise
ε t 0 good news, ε t 0 bad news
good news has an impact of 1 t2-1 while bad news has an
impact of (1 ) t2-1
If 0, there is leverage effect.
if 0, the news impact is asymmetric .
The EGARCH Model
t 1 t 1
log 0 1 log
2 2
t 1 3
t 1 t 1
t
• Thanks to Yahoo finance we can get the data for free. Use the
following link to get the stock price history
of TESLA: https://finance.yahoo.com/quote/TSLA/history?perio
d1=1436486400&period2=1594339200&interval=1d&filter=histo
ry&frequency=1d
• Dowload and save ,csv
• 2015-2020
• Modules needed: Numpy, Pandas, Statsmodels, Scikit-Learn
• Our imports
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas.plotting import lag_plot
from pandas import datetime
from statsmodels.tsa.arima_model import ARIMA
from sklearn.metrics import mean_squared_error
Now let’s load the TESLA stock history data:
df = pd.read_csv("TSLA.csv")
df.head(5)
• Now let’s load the TESLA stock history data:
df = pd.read_csv("TSLA.csv")
df.head(5)
• Target variable is the close price
Before building the ARIMA model, let’s see if there is some cross-
correlation in out data.
.
plt.figure()
lag_plot(df['Open'], lag=3)
plt.title('TESLA Stock - Autocorrelation plot with lag = 3')
plt.show()
We can now confirm that ARIMA is going to be a good model to
be applied to this type of data (there is auto-correlation in the
data).
Stock price over time
.
plt.plot(df["Date"], df["Close"])
plt.xticks(np.arange(0,1259, 200), df['Date'][0:1259:200])
plt.title("TESLA stock price over time")
plt.xlabel("time")
plt.ylabel("price")
plt.show()
• Build the predictive ARIMA model
Next, let’s divide the data into a training (70 % ) and test (30%)
set. For this tutorial we select the following ARIMA parameters:
p=4, d=1 and q=0.
train_data, test_data = df[0:int(len(df)*0.7)], df[int(len(df)*0.7):]training_data = train_data['Close'].values
test_data = test_data['Close'].valueshistory = [x for x in training_data]
model_predictions = []
N_test_observations = len(test_data)for time_point in range(N_test_observations):
model = ARIMA(history, order=(4,1,0))
model_fit = model.fit(disp=0)
output = model_fit.forecast()
yhat = output[0]
model_predictions.append(yhat)
true_test_value = test_data[time_point]
history.append(true_test_value)MSE_error = mean_squared_error(test_data, model_predictions)
print('Testing Mean Squared Error is {}'.format(MSE_error))
Summary of the code
• We split the training dataset into train and test sets and we use
the train set to fit the model, and generate a prediction for each
element on the test set.
• A rolling forecasting procedure is required given the
dependence on observations in prior time steps for
differencing and the AR model. To this end, we re-create
the ARIMA model after each new observation is received.
• Finally, we manually keep track of all observations in a list
called history that is seeded with the training data and to which
new observations are appended at each iteration.
• Testing Mean Squared Error is 741.0594879572484
• The MSE of the test set is quite large denoting that the precise
prediction is a hard problem. However, this is the average
squared value across all the test set predictions.
Let’s visualize the predictions to understand the performance
of the model more.
test_set_range = df[int(len(df)*0.7):].indexplt.plot(test_set_range,
model_predictions, color='blue', marker='o’,
linestyle='dashed',label='Predicted Price')plt.plot(test_set_range, test_data,
color='red', label='Actual Price')plt.title('TESLA Prices Prediction')
plt.xlabel('Date')
plt.ylabel('Prices')
plt.xticks(np.arange(881,1259,50), df.Date[881:1259:50])
plt.legend()
plt.show()
• ARIMA model results in appreciable results. This model offers a
good prediction accuracy and to be relatively fast compared to
other alternatives, in terms of training/fitting time and
complexity.
• ARIMA /GARCH Vs traditional BUY/HOLD
• As you can see, over a 65 year period, the ARIMA+GARCH
strategy has significantly outperformed "Buy & Hold". However,
you can also see that the majority of the gain occured between
1970 and 1980. Notice that the volatility of the curve is quite
minimal until the early 80s, at which point the volatility increases
significantly and the average returns are less impressive.
• First of all, let's consider the fact that the ARMA model was only
published in 1951. It wasn't really widely utilised until the 1970's
when Box & Jenkins discussed it in their book.
• Secondly, the ARCH model wasn't discovered (publicly!) until
the early 80s, by Engle, and GARCH itself was published by
Bollerslev in 1986.
• Thirdly, this "backtest" has actually been carried out on a stock
market index and not a physically tradeable instrument.
• Equity curve of ARIMA+GARCH strategy vs "Buy & Hold"
for the S&P500 from 2005 until today
• As you can see the equity curve remains below a Buy & Hold
strategy for almost 3 years, but during the stock market crash of
2008/2009 it does exceedingly well. This makes sense because
there is likely to be a significant serial correlation in this period
and it will be well-captured by the ARIMA and GARCH models.
Once the market recovered post-2009 and enters what looks to
be more a stochastic trend, the model performance begins to
suffer once again.
• Note that this strategy can be easily applied to different stock
market indices, equities or other asset classes. I strongly
encourage you to try researching other instruments, as you may
obtain substantial improvements on the results presented here.
Options, Swaps, Hedgeing
and Math
03-04-2021
Last Week….
• BIG SETBACK! PPF, NSC, • Why?
Sukanya Samriddhi, Senior
Citizens Savings Scheme
interest rates SLASHED;
check new rates
here…headlines from
popular dailies…
options
Options are financial instruments that are derivatives based on
the value of underlying securities such as stocks. An options
contract offers the buyer the opportunity to buy or sell—
depending on the type of contract they hold—the underlying
asset. Unlike futures the holder is not required to buy or sell the
asset if they choose not to.
• Call options allow the holder to buy the asset at a stated price
within a specific timeframe
• Put options allow the holder to sell the asset at a stated price
within a specific timeframe
• Each option contract will have a specific expiration date by
which the holder must exercise their option. The stated price on
an option is known as the strike price. Options are typically
bought and sold through online or retail brokers
Options are a versatile financial product. These contracts involve
a buyer and a seller, where the buyer pays an
options premium for the rights granted by the contract. Each call
option has a bullish buyer and a bearish seller, while put options
have a bearish buyer and a bullish seller.
• Options Contracts usually represent 100 shares of the
underlying security, and the buyer will pay a premium fee for
each contract. For example, if an option has a premium of 35
cents per contract, buying one option would cost $35 ($0.35 x
100 = $35). The premium is partially based on the strike price—
the price for buying or selling the security until the expiration
date. Another factor in the premium price is the expiration date.
Just like with that carton of milk in the refrigerator, the expiration
date indicates the day the option contract must be used. The
underlying asset will determine the use-by date. For stocks, it is
usually the last Thursday of the contract's month.
Traders and investors will buy and sell options for several
reasons. Options speculation allows a trader to hold a leveraged
position in an asset at a lower cost than buying shares of the
asset. Investors will use options to hedge or reduce the risk
exposure of their portfolio. In some cases, the option holder
can generate income when they buy call options or become an
options writer. Options are also one of the most direct ways
to invest in oil. For options traders, an option's daily
trading volume and open interest are the two key numbers to
watch in order to make the most well-informed investment
decisions
American options can be exercised any time before the
expiration date of the option, while European options can only be
exercised on the expiration date or the exercise date. Exercising
means utilizing the right to buy or sell the underlying
security.India is the European model
Options Risk Metrics: The Greeks
• The “Greeks" is a term used in the options market to describe
the different dimensions of risk involved in taking an options
position, either in a particular option or a portfolio of options.
These variables are called Greeks because they are typically
associated with Greek symbols. Each risk variable is a result of
an imperfect assumption or relationship of the option with
another underlying variable. Traders use different Greek values,
such as delta, theta, and others, to assess options risk and
manage option portfolios.
Delta
Delta(Δ) represents the rate of change between the option's price
and a $1 change in the undelying asset’s price. In other words,
the price sensitivity of the option relative to the underlying. Delta
of a call option has a range between zero and one, while the
delta of a put option has a range between zero and negative one.
For example, assume an investor is long a call option with a delta
of 0.50. Therefore, if the underlying stock increases by $1, the
option's price would theoretically increase by 50 cents.
• For options traders, delta also represents the hedge ratio for
creating a delta neutral position. For example if you purchase a
standard American call option with a 0.40 delta, you will need to
sell 40 shares of stock to be fully hedged. Net delta for a
portfolio of options can also be used to obtain the portfolio's
hedge ration.
• A less common use of an option’s delta is it's current probability
that it will expire in-the money. For instance, a 0.40 delta call
option today has an implied 40% probability of finishing in-the-
money.
Theta
• Theta (Θ) represents the rate of change between the option price
and time, or time sensitivity - sometimes known as an option's time
decay. Theta indicates the amount an option's price would decrease
as the time to expiration decreases, all else equal. For example,
assume an investor is long an option with a theta of -0.50. The
option's price would decrease by 50 cents every day that passes, all
else being equal. If three trading days pass, the option's value would
theoretically decrease by $1.50.
• Theta increases when options are at-the-money, and decreases
when options are in- and out-of-the money. Options closer to
expiration also have accelerating time decay. Long calls and long
puts will usually have negative Theta; short calls and short puts will
have positive Theta. By comparison, an instrument whose value is
not eroded by time, such as a stock, would have zero Theta.
Gamma
• Gamma (Γ) represents the rate of change between an
option’s delta and the underlying asset's price. This is called
second-order (second-derivative) price sensitivity. Gamma
indicates the amount the delta would change given a $1 move
in the underlying security. For example, assume an investor is
long one call option on hypothetical stock XYZ. The call option
has a delta of 0.50 and a gamma of 0.10. Therefore, if stock
XYZ increases or decreases by $1, the call option's delta would
increase or decrease by 0.10.
• Gamma is used to determine how stable an option's delta is: higher
gamma values indicate that delta could change dramatically in
response to even small movements in the underlying's price.
Gamma is higher for options that are at-the-money and lower for
options that are in- and out-of-the-money, and accelerates in
magnitude as expiration approaches. Gamma values are generally
smaller the further away from the date of expiration; options with
longer expirations are less sensitive to delta changes. As expiration
approaches, gamma values are typically larger, as price changes
have more impact on gamma.
• Options traders may opt to not only hedge delta but also gamma in
order to be delta-gamma-neutral, meaning that as the underlying
price moves, the delta will remain close to zero.
Vega
Variable
5% Interest
Interest Paid
Libor + 1.30% Paid by ABC ABC's Gain XYZ's Loss
by XYZ to
to XYZ
ABC
Year 1 3.80% $38,000 $50,000 ($12,000) $12,000
Year 2 4.05% $40,500 $50,000 ($9,500) $9,500
Year 3 4.30% $43,000 $50,000 ($7,000) $7,000
Year 4 4.55% $45,500 $50,000 ($4,500) $4,500
Year 5 4.80% $48,000 $50,000 ($2,000) $2,000
Total ($35,000) $35,000
• In this case, ABC would have been better off by not engaging in the
swap because interest rates rose slowly. XYZ profited $35,000 by
engaging in the swap because its forecast was correct.
• This example does not account for the other benefits ABC might
have received by engaging in the swap. For example, perhaps the
company needed another loan, but lenders were unwilling to do that
unless the interest obligations on its other bonds were fixed.
• In most cases, the two parties would act through a bank or other
intermediary, which would take a cut of the swap. Whether it is
advantageous for two entities to enter into an interest rate swap
depends on their comparative advantage in fixed or floating-
rate lending markets.
• The instruments exchanged in a swap do not have to be
interest payments. Countless varieties of exotic swap
agreements exist, but relatively common arrangements include
commodity swaps, currency swaps, debt swaps, and total return
swaps.
Commodity Swaps
The formula for calculating expected rate of return given the risk
ERi=Rf+βi(ERm−Rf)
• where:ERi=expected return of investment
• Rf=riskfree rate
• βi=beta of the investment
• (ERm−Rf)=market risk premium
• The beta of a potential investment is a measure of how much
risk the investment will add to a portfolio that looks like the
market. If a stock is riskier than the market, it will have a beta
greater than one. If a stock has a beta of less than one, the
formula assumes it will reduce the risk of a portfolio.
Adjusting a Stock Portfolio’s Beta using
Stock Index Futures
• Beta, as defined in the capital asset pricing model, is a measure
of a portfolio’s systematic risk. When a trader uses index futures
to hedge a position in an equity portfolio, they are effectively
trying to reduce the portfolio’s systematic risk. As such, hedging
is actually an attempt to reduce a portfolio’s beta.
Let’s define the following variables:
Β=portfolio beta
β∗=target beta after hedging
P=portfolio value
A=Unit value of the underlying Asset
Number of contracts required=(β∗−β)(P/A)
If the above result is positive, the trader would have to buy the
relevant number of futures. If negative, they would have to sell
futures.
Efficient
Frontier
Two portfolios that have
been constructed to fit
along the efficient frontier.
Portfolio A is expected to
return 8% per year and
has a 10% standard
deviation or risk level.
Portfolio B is expected to
return 10% per year but
has a 16% standard
deviation. The risk of
portfolio B rose faster than
its expected returns.
Security Market Line
Where:
•∂ – the first derivative
•V – the option’s price (theoretical value)
•S – the underlying asset’s price
Keep in mind that we take the first derivative of the option and underlying asset
prices because the derivative is a measure of the rate change of the variable
Delta at a given period.
The delta is usually calculated as a decimal number from -1 to 1. Call
options can have a delta from 0 to 1, while puts have a delta from -1 to 0. The
closer the option’s delta to 1 or -1, the deeper in-the-money is the option.
The delta of an option’s portfolio is the weighted average of the deltas of all
options in the portfolio.
Delta is also known as a hedge ratio. If a trader knows the delta of the option,
he can hedge his position by buying or shorting the number of underlying
assets multiplied by delta.
• Delta option greeks are the most popular of the Greeks
because it’s the easiest to understand. It measures the rate of
change in price. In other words, Delta tells us how much an
option would increase when the stock moves up a point.
• It’ll be positive for call options and negative for put options.
Depending on your strategy, you can use Delta to determine the
probability of the contract being in the money at expiration.
• Many times, you want to be at the money at expiration because
the more in the money you are, the higher the your profit
potential is. Many times when you go to place and options
trade, you want a higher delta.
• he higher the delta the higher the risk and reward. While there
is high risk, you can offset that by practicing proper risk
management and trading patterns. You want traction so where
you buy your option determines how well your contract moves.
• Remember that the higher the delta the more expensive the
option will be. The reason is because you have a higher
probability of expiring in the money. Hence a higher profit
potential. In the money gives you more of a cushion too.
Gamma (Γ) is a measure of the
delta’s change relative to the
changes in the price of the
underlying asset. If the price of the
Gamma underlying asset increases by $1,
the option’s delta will change by the
gamma amount. The main
application of gamma is the
assessment of the option’s delta.
Where:
•∂ – the first derivative
•V – the option’s price (theoretical value)
•σ – the volatility of the underlying asset
Where:
•∂ – the first derivative
•V – the option’s price (theoretical value)
•τ – the option’s time to maturity
In most cases, theta is negative for options.
However, it may be positive for some
European options. Theta shows the most
negative amount when the option is at-the-
money.
• Theta deals with time decay. Options are wasting assets
because they expire. Time is constantly moves forward. As a
result, your options decay. Think of it like an hourglass.
• The more time passes, the seller of the option profits. So the
seller would be the bottom of the hourglass whereas the buyer
would be at the top. As a result, profit drips to the seller on a
daily basis.
• 80% of options expire worthless. That means many times, the
seller is the winner.
Black Scholes model
• The Black-Scholes model, also known as the Black-Scholes-
Merton (BSM) model, is a mathematical model for pricing an
options contract. In particular, the model estimates the variation
over time of financial instruments.
• The Black-Scholes model is one of the most important concepts
in modern financial theory. It was developed in 1973 by Fischer
Black, Robert Merton, and Myron Scholes and is still widely
used today. It is regarded as one of the best ways of
determining the fair price of options. The Black-Scholes model
requires five input variables: the strike price of an option, the
current stock price, the time to expiration, the risk-free rate, and
the volatility.
• Also called Black-Scholes-Merton (BSM), it was the first widely
used model for option pricing. It's used to calculate the
theoretical value of options using current stock prices, expected
dividends, the option's strike price, expected interest rates, time
to expiration and expected volatility.
• The initial equation was introduced in Black and Scholes' 1973
paper, "The Pricing of Options and Corporate Liabilities,"
published in the Journal of Political Economy.
• Black passed away two years before Scholes and Merton were
awarded the 1997 Nobel Prize in economics for their work in
finding a new method to determine the value of derivatives (the
Nobel Prize is not given posthumously; however, the Nobel
committee acknowledged Black's role in the Black-Scholes
model).
Black-Scholes posits that instruments, such as stock shares or
futures contracts, will have a lognormal distribution of prices
following a random walk with constant drift and volatility. Using
this assumption and factoring in other important variables, the
equation derives the price of a European-style call option.
The inputs for the Black-Scholes equation are volatality the price
of the underlying asset, the strike price of the option, the time
until expiration of the option, and the risk-free interest rate. With
these variables, it is theoretically possible for options sellers to
set rational prices for the options that they are selling.
Furthermore, the model predicts that the price of heavily traded
assets follows a geometric Brownian motion with constant drift
and volatility. When applied to a stock option, the model
incorporates the constant price variation of the stock, the time
value of money, the option's strike price, and the time to the
option's expiry.