Margin & M2M - Varsity by Zerodha
Margin & M2M - Varsity by Zerodha
Modules
Videos
Certified
Junior
Blog
Live
However, before we proceed any further, let us list down a list of things you should know
by now. These are concepts we had learnt over the last 4 chapters; reiterating these crucial
takeaways will help us consolidate all the learning. If you are not clear about any of the
following points, you will need to revisit the previous chapters and refresh your
understanding.
Anyway, assuming you are clear so far, let us now focus more on the concept of margins
and mark to market.
We can now clearly appreciate that any gold price variation will either affect ABC or XYZ
negatively. If the price of gold increases, then XYZ suffers a loss, and ABC makes a profit.
Likewise, if the price of gold decreases, ABC suffers a loss, and XYZ makes a profit. Also, we
know that a forwards agreement works on a gentleman’s word. Consider a situation where
gold price has drastically increased, placing XYZ Gold Dealers in a difficult spot. Clearly, XYZ
can say they cannot make the necessary payment and thereby default on the deal.
Obviously, what follows will be a long and gruelling legal chase, but outside our focus area.
The point to be noted here is that in a forwards agreement, the scope and the incentive to
default is very high.
Since the futures market is an improvisation over the forwards market, the default angle is
carefully and intelligently dealt with. This is where the margins play a role.
In the forwards market, there is no regulator. The agreement takes place between two
parties with literally no intermediary watching over their transaction. However, in the
futures market, all trades are routed through an exchange. The exchange in return takes the
onus of guaranteeing the settlement of all the trades. When I say ‘onus of guaranteeing’, it
literally means the exchange makes sure you get your money if you are entitled. This also
means they ensure they collect the money from the party who is supposed to pay up.
So how does the exchange make sure this works seamlessly? Well, they make this happen
using –
We briefly looked into the concept of Margin in the previous chapter. The concept of Margin
and M2M is something that you need to know in parallel to appreciate futures trading
dynamics fully. However, since it is difficult to explain both the concepts simultaneously, I
would like to pause a bit on margins and proceed to M2M. We will understand M2M
completely and come back again to margins. We will then relook at margins keeping M2M
in perspective. But before we move to M2M, I would like you to keep the following points in
the back of your mind –
1. At the time of initiating the futures position, margins are blocked in your trading
account.
2. The margins that get blocked is also called the “Initial Margin.”
3. The initial margin is made up of two components, i.e. SPAN margin and the Exposure
Margin.
4. Initial Margin = SPAN Margin + Exposure Margin
5. Initial Margin will be blocked in your trading account for how many days you choose
to hold the futures trade.
a. The value of the initial margin varies daily as it depends on the futures price.
b. Remember, Initial Margin = % of Contract Value
c. Contract Value = Futures Price * Lot Size
d. The lot size is fixed, but the futures price varies every day. This means the
margins also vary every day.
So, for now, remember just these points. We will go ahead to understand M2M, and then we
will come back to margins to complete this chapter.
Assume on 1st Dec 2014 at around 11:30 AM; you decide to buy Hindalco Futures at Rs.165/-.
The Lot size is 2000. 4 days later, on 4th Dec 2014, you decide to square off the position at
2:15 PM at Rs.170.10/-. Clearly, as the calculation below shows, this is a profitable trade –
= Rs.10,200/-
However, the trade was held for 4 working days. Each day the futures contract is held, the
profits or loss is marked to market. While marking to market, the previous day closing price
is taken as the reference rate to calculate the profit or losses.
The table above shows the futures price movement over the 4 days the contract was held.
Let us look at what happens on a day to day basis to understand how M2M works –
On Day 1 at 11:30 AM, the futures contract was purchased at Rs.165/-, clearly after the
contract was purchased, the price has gone up further to close at Rs.168.3/-. Hence profit for
the day is 168.3 minus 165 = Rs.3.3/- per share. Since the lot size is 2000, the net profit for the
day is 3.3*2000 = Rs.6600/-.
Hence the exchange ensures (via the broker) that Rs.6600/- is credited to your trading
account at the end of the day.
Now here is another important aspect you need to note – from an accounting perspective,
the futures buy price is no longer treated as Rs.165 but instead, it will be considered as
Rs.168.3/- (closing price of the day). Why is that so, you may ask? The profit earned for the
day has been given to you already using crediting the trading account. So you are fair and
square for the day, and the next day is considered a fresh start. Hence the buy price is now
considered at Rs. 168.3, which is the closing price of the day.
On day 2, the futures closed at Rs.172.4/-, clearly another day of profit. The day’s profit
would be Rs.172.4/ – minus Rs.168.3/- i.e. Rs.4.1/- per share or Rs.8,200/- net profit. The profits
that you are entitled to receive is credited to your trading account, and the buy price is reset
to the day’s closing price, i.e. 172.4/-.
On day 3, the futures closed at Rs.171.6/- which means concerning the previous day’s close
price, there is a loss to the extent of Rs.1600/- (172.4-171.6) * 2000. The loss amount will be
automatically debited from your trading account. Also, the buy price is now reset to
Rs.171.6/-.
On day 4, the trader did not continue to hold the position through the day but rather
decided to square off the position mid-day 2:15 PM at Rs.170.10/-. Hence concerning the
previous day’s close, he again made a loss. That would be a loss of Rs.171.6/- minus Rs.170.1/-
= Rs.1.5/- per share and Rs.3000/- (1.5 * 2000) net loss. Needless to say, after the square off, it
does not matter where the futures price goes as the trader has squared off his position. Also,
Rs.3000/- is debited from the trading account by the end of the day.
Now, let us just tabulate the value of the daily mark to market and see how much money
has come in and how much money has gone out –
Well, if you summed up all the M2M cash flow, you will end up the same amount that we
originally calculated, which is –
= Rs.10,200/-
Why do you think M2M is required in the first place? Think about it – M2M is a daily cash
adjustment by which the exchange drastically reduces the counterparty default risk. As long
a trader holds the contract, the exchange by the M2M ensures both the parties are fair and
square daily.
Keeping this basic concept of M2M, let us now move back to relook at margins and see how
the trade evolves during its life.
Every time a trader initiates a futures trade (for that matter, any trade), few financial
intermediaries work in the background, ensuring that the trade carries out smoothly. The
two prominent financial intermediaries are the broker and the exchange.
If the client defaults on an obligation, it obviously has a financial repercussion on both the
broker and the exchange. Hence if both the financial intermediaries have to be insulated
against a possible client default, they need to be covered adequately using a margin deposit.
In fact, this is exactly how it works – ‘SPAN Margin’ is the minimum requisite margins
blocked as per the exchange’s mandate, and ‘Exposure Margin’ is the margin blocked over
and above the SPAN to cushion for any MTM losses. Do note both SPAN and Exposure
margin are specified by the exchange. So at the time of initiating a futures trade, the client
has to adhere to the initial margin requirement. The exchange blocks the entire initial
margin (SPAN + Exposure).
SPAN Margin is more important between the two margins as not having this in your
account means a penalty from the exchange. The SPAN margin requirement must be strictly
maintained as long as the trader wishes to carry his position overnight/next day. For this
reason, SPAN margin is also sometimes referred to as the “Maintenance Margin”.
So how does the exchange decide what should be the SPAN margin requirement for a
particular futures contract? Well, they use an advance algorithm to calculate the SPAN
margins daily. One of the key inputs that go into this algorithm is the ‘Volatility’ of the stock.
Volatility is a very crucial concept; we will discuss it at length in the next module. For now,
just remember this – if volatility is expected to go up, the SPAN margin requirement also
goes up.
Exposure margin, which is an additional margin, varies between 4% -5% of the contract
value.
Now, let us look at a futures trade, keeping both the margin and the M2M perspective. The
trade details are as shown below –
Particular Details
Symbol HDFC Bank Limited
Trade Type Long
By Date 10th Dec 2014
Buy Price Rs.938.7/- per share
Sell Date 19th Dec
Sell Price Rs.955/- per share
Lot Size 250
Contract Value 250*938.7 = Rs.234,675/-
SPAN Margin 7.5% of CV = Rs.17,600/-
Exp Margin 5.0% of CV = Rs.11,733/-
IM (SPAN + Exposure) 17600 + 11733 = Rs.29,334/-
P&L per share Profit of Rs.16.3/- per share (955 – 938.7)
Net Profit 250 * 16.3 = Rs.4,075/-
If you are trading with Zerodha, you may know that we provide a Margin calculator that
explicitly states the SPAN and Exposure margin requirements. Of course, at a later stage, we
will discuss the utility of this handy tool in detail. But for now, you could check out this
margin calculator.
Keeping the above trade details in perspective, let us look at how the margins and M2M
plays a role simultaneously during the life of the trade. The table below shows how the
dynamics change on a day to day basis –
I hope you don’t get intimidated looking at the table above; in fact, it is quite easy to
understand. Let us go through it sequentially, day by day.
Sometime during the day, HDFC Bank futures contract was purchased at Rs.938.7/-. The lot
size is 250. Hence the contract value is Rs.234,675/-. As we can see from the box on the right,
SPAN is 7.5%, and Exposure is 5% of CV, respectively. Hence 12.5% of CV is blocked as
margins (SPAN + Exposure); this works up to a total margin of Rs.29,334/-. The initial margin
is also considered as the initial cash blocked by the broker.
Going ahead, HDFC closes at 940 for the day. At 940, the CV is now Rs.235,000/- and
therefore, the total margin requirement is Rs.29,375/- which is a marginal increase of Rs.41/-
compared to the margin required at the time of the trade initiation. The client is not
required to infuse this money into his account as he is sufficiently covered with an M2M
profit of Rs.325/- which will be credited to his account.
The total cash balance in the trading account = Cash Balance + M2M
= Rs.29,334 + Rs.325
= Rs.29,659/-
Clearly, the cash balance is more than the total margin requirement of Rs.29,375/- hence
there is no problem. Further, the reference rate for the next day’s M2M is now set to
Rs.940/-.
The next day, HDFC Bank drop by Rs.1/- to Rs.939/- per share, impacting the M2M by
negative Rs.250/-. This money is taken out from the cash balance (and will be credited to the
person making this money). Hence the new cash balance will be –
= 29659 – 250
= Rs.29,409/-
Also, the new margin requirement is calculated as Rs.29,344/-. Clearly, the cash balance is
higher than the margin required; hence there is nothing to worry about. Also, the reference
rate for the next day’s M2M is reset at Rs.939/-
This is an interesting day. The futures price fell by Rs.9/- taking the price to Rs.930/- per
share. At Rs.930/- the margin requirement also falls to Rs.29,063/-. However, because of an
M2M loss of Rs.2250/- the cash balance drops to Rs.27,159/- (29409 – 2250), which is less than
the total margin requirement. Since the cash balance is less than the total margin
requirement, is the client required to pump in the additional money? Not really.
Remember, between the SPAN and Exposure margin; the most sacred one is the SPAN
margin. Most brokers allow you to continue to hold your positions as long as you have the
SPAN Margin (or maintenance margin). The moment the cash balance falls below the
maintenance margin, they will call you asking you to pump in more money. In the absence
of which, they will force close the positions themselves. This call that the broker makes
requesting you to pump in the required margin money is also popularly called the “Margin
Call”. If you are getting a margin call from your broker, it means your cash balance is
dangerously low to continue the position.
Going back to the example, the cash balance of Rs.27,159/- is above the SPAN margin
(Rs.17,438/-); hence there is no problem. The M2M loss is debited from the trading account,
and the reference rate for the next day’s M2M is reset to Rs.930/-.
Well, I hope you have got a sense of how both margins and M2M come into play
simultaneously. I also hope you can appreciate how under the margins and M2M, the
exchange can efficiently tackle a possible default threat. The margin + M2M combination is
virtually a foolproof method to ensure defaults don’t occur.
Assuming you are getting a sense of the dynamics of margins and M2M calculation, I will
now take the liberty to cut through the remaining days and proceed directly to the last day
of trade.
So what about the overall P&L of the trade? Well, there are many ways to calculate this –
= Rs.4,075/-
P&L = Final Cash balance (released by broker) – Cash Blocked Initially (initial margin)
= 33409 – 29334
= Rs.4,075/-
= Rs.238,750 – Rs.234,675
=Rs.4,075/-
P&L = (Difference b/w the futures buy & sell price ) * Lot Size
= 16.3 * 250
= Rs. 4,075/-
As you can notice, either of which ways you calculate, you arrive at the same P&L value.
1. The M2M loss would be Rs.18,750/- = (955 – 880)*250. The cash balance on 19th Dec was
Rs. 33,409/- from which the M2M loss would be deducted, making the cash balance
Rs.14,659/- (Rs.33,409 – Rs.18,750).
2. Since the price has dropped, the new contract value would be Rs.220,000/- (250*880)
a. SPAN = 7.5% * 220000 = Rs.16,500/-
b. Exposure = Rs.11,000/-
c. Total Margin = Rs.27,500/-
3. Clearly, since the cash balance (Rs.14,659/-) is less than SPAN Margin (Rs.16,500/-), the
broker will give a Margin Call to the client, or in fact, some brokers will even cut the
position in real-time as and when the cash balance drops below the SPAN
requirement.
1. A margin payment is required (which will be blocked by your broker) as long as the
futures trade is live.
2. The margin blocked by the broker at the time of initiating the futures trade is called
the initial margin.
3. Both the buyer and the seller of the futures agreement will have to deposit the initial
margin amount.
4. The margin amount collected acts as leverage, as it allows you to deposit a small
amount of money and take exposure to a large value transaction.
5. M2M is a simple accounting adjustment; the process involves crediting or debiting the
daily obligation money in your trading account based on how the futures price
behaves.
6. The previous day closing price figure is taken to calculate the current day’s M2M.
7. SPAN Margin is the margin collected as per the exchanges instruction, and the
Exposure Margin is collected as per the broker’s requirement
8. The SPAN and Exposure Margin are determined as per the norms of the exchange.
9. The SPAN Margin is popularly referred to as the Maintenance Margin.
10. If the margin account goes below the SPAN, the investor must deposit more cash into
his account if he aspires to carry forward the future position.
11. The Margin Call is when the broker requests the trader to infuse the required margin
money when the cash balance goes below the required level.
694 comments
1. Thiyagu says:
January 21, 2015 at 1:07 pm
Hi,
Thanks for your outstanding work. The content and the presentation is really
awesome and it is priceless.
I am yet to start Futures trading and I am sure this material will help me a lot. I am
afraid in Stock futures because, stocks at times if goes for a correction, they will in the
correction mode even for months and if I am long without clue, I might take severe
loss. So I thought Index futures is better because, even if it corrects for a week or 2 at
least next month it may turn. ( exceptions will be there). For stocks you say the specific
% as SPAN and Exposure, what about Nifty and Bank Nifty? what is the SPAN and
Exposure percentage, do we have this in NSE website?
I hope you will include, volatility and Open interest analysis in the upcoming chapters
Reply
🙂
Thanks, I hope you will get the required conviction to trade futures confidently
with this module
The next chapter (Margins Calculator) will have these details. it will be updated
sometime this week, so you could check that out. Yes, we will cover volatility,
open interest, and many other things topics as well. Please stay tuned.
Reply
Reply
If the position makes a loss and M2M dips below the required SPAN,
then yes it will be sq off.
Reply
MUTHUKUMAR says:
January 13, 2019 at 8:07 pm
I admire the clarity and the precise quality, your teachings offer to learners
as well as stalwarts! I have a doubt.Assume that there are 50,00,000 shares
of a company getting traded in the market. ( market cap/no of shares in the
market).
Now,
Total no of shares traded in the market = No fo shares in equity + No fo
shares in Futures + no of shares in options etc
Is it the futures and option quantity of shares ( lot size x no fo lots ) is a just
a notional no that has no boundaries. In other words, can I ask exchange to
deliver my ‘futures shares’ on expiry ( in case of buy) instead of cash
settlement.
Thanks
Muthu
Reply
Reply
2. Monil says:
February 19, 2015 at 7:25 am
In the above example the span value too keeps on changing . So now even if the CV
changes to 1.5 lacs wouldn’t this mean that the span too changes and thus the
requirement to pump in more money or there will be square off dosen’t seem valid as
stated above. As for any amount lower than this also would mean that the span margin
required is also lower .
Reply
True. In fact you maybe surprised to know exchange updates the margin
requirements close to about 5 times a day! But from my experience this hardly
has any impact on margin required, unless there is a drastic movement in the
prices. Under such circumstances one would need to pump in more money
towards margin requirements.
Reply
3. Monil says:
February 20, 2015 at 11:03 am
Here is a situation – If i buy a future agreement and so do i have a counter party who
is selling the same (shorting) . In case if the counter party square off his position and
lets say that delay to find another counter party by exchange is 10 secs. During this 10
seconds if the price of the underlying changes drastically and before the the exchange
finds another counterparty i decide to square off , then who is supposed to pay the
profit earned over those 10 seconds. This situation is purely hypothetical but i guess it
may be possible in the low liquidity futures .
Reply
When you buy obviously there is a person who is selling at the other end. It is
impossible to identify if he is shorting or just squaring off an existing long
position. Do note there is a difference between the two. Also, whenever you buy
or sell the transaction is approved only if there is a counterparty. If there is no
counter party your order will not go through. Hence as you have mentioned “In
case if the counter party square off his position and lets say that delay to find
another counter party by exchange is 10 secs. During this 10 seconds if the price of
the underlying changes drastically and before the the exchange finds another
counterparty i decide to square off , then who is supposed to pay the profit earned
over those 10 seconds” This can never happen.
Reply
4. Monil says:
February 20, 2015 at 11:51 am
Also karthik does the margin required as quoted by the exchange imply anything ? like
high margins than usually may be implying more probability of loss in the trade than
chance of making profits . Also the link http://zerodha.com/open-account is not
working . Not able to download application form .
Reply
Monil, the Open account link is working. If you want someone to contact you
from sales, do let me know and I can put you through.
The exchange stipulated margin is the SPAN part. Also higher margin
requirement means the stock’s volatility is high hence the probability to lose
money is high. It could also be due to low liquidity.
Reply
5. Keerthan says:
March 7, 2015 at 2:32 pm
Hi Karthik, To make sure I have understood it right, I have the following questions-
1) As long as the Span margin is intact, no money from my account would be debited?
2) All M2M losses would be debited from the cash balance. That is if I make a loss one
the day I bought the futures and further make losses for 3 continuous days, these M2M
losses( of 4 days) would be debited from the Initial Margin and as long as the balance
is above the Span Margin I can still trade without any infusion of funds. Am I right in
understanding this?
3) With reference to your example on the 20th of December suppose instead of a fall of
8%, there is a rise of 8% and I gain the profit of 18750. Now this gets added to the cash
balance. My question is can I use this a part of this profit (of 18500), say 15000 to buy a
option or something else or would the trading terminal/exchange not allow me to use
these profits as long as I am trading this contract?
Reply
You are right on all the counts here. Cash balance + Initial Margin should take
care of your M2M obligations. For this reasons it is always advisable to have some
money to cushion (cash balance) your trade. Also, the profits are released when
you terminate the trade completely (at least in Zerodha) and not while you are in
the trade.
Reply
Post a comment
Name (required)
Post comment
Varsity by Zerodha © 2015 – 2024. All rights reserved. Reproduction of the Varsity materials,
text and images, is not permitted. For media queries, contact press@zerodha.com