Moving Averages - Varsity by Zerodha Varsity by Zerodha
Moving Averages - Varsity by Zerodha Varsity by Zerodha
search
≡
Capítulo 13
Médias Móveis
897
Todos nós aprendemos sobre médias na escola, a média móvel é apenas uma extensão disso. As médias móveis
são indicadores de tendência e são frequentemente usadas devido à sua simplicidade e eficácia. Antes de
aprendermos as médias móveis, vamos recapitular rapidamente como as médias são calculadas.
Suponha que 5 pessoas estejam sentadas em uma bela praia ensolarada, desfrutando de uma bebida engarrafada
gelada. O sol é tão brilhante e agradável que cada um deles acaba bebendo várias garrafas da bebida. Suponha
que a contagem final seja algo como isto:
ª
Assumir uma 6 pessoa caminha para descobrir 29 garrafas de bebidas espalhadas eles. Ele pode ter uma noção
rápida de "aproximadamente" quantas garrafas cada uma delas consumiu dividindo [o número total de
garrafas] por [número total de pessoas] .
https://zerodha.com/varsity/chapter/moving-averages/ 1/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
= 29/5
= 5,8 garrafas por cabeça.
Portanto, a média neste caso nos diz aproximadamente quantas garrafas cada pessoa consumiu. Obviamente,
poucos teriam consumido acima e abaixo da média. Por exemplo, a Pessoa E bebeu 8 garrafas de bebida, muito
acima da média de 5,8 garrafas. Da mesma forma, a pessoa D bebeu apenas 3 garrafas de bebida, muito abaixo
da média de 5,8 garrafas. Portanto, a média é apenas uma estimativa e não se pode esperar que seja preciso.
Estendendo o conceito às ações, aqui estão os preços de fechamento da ITC Limited nos últimos 5 pregões. O
último fechamento médio dos últimos cinco dias seria calculado da seguinte forma:
= 1719.75 / 5
= 343.95
= 1212,3 / 5
= 242,5
https://zerodha.com/varsity/chapter/moving-averages/ 2/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
= 1223,3 / 5
= 244,66
Então, basicamente, estamos migrando para o ponto de dados mais recente e descartando o mais antigo para
calcular a média mais recente de 5 dias. Daí o nome "móvel" médio!
No exemplo acima, o cálculo da média móvel é baseado nos preços de fechamento. Às vezes, as médias móveis
também são calculadas usando outros parâmetros, como alto, baixo e aberto. No entanto, os preços de
fechamento são usados principalmente pelos comerciantes e investidores, pois reflete o preço pelo qual o
mercado finalmente se acalma.
As médias móveis podem ser calculadas para qualquer período de tempo, de minutos, horas a anos. Qualquer
período de tempo pode ser selecionado no software de gráficos com base em seus requisitos.
Para aqueles familiarizados com o Excel, aqui está uma captura de tela de como as médias móveis são
calculadas no MS Excel. Observe como a referência da célula se move na fórmula média, eliminando a mais
antiga para incluir os pontos de dados mais recentes.
Como é evidente, a média móvel muda à medida que o preço de fechamento é alterado. Uma média móvel
conforme calculada acima é chamada de 'Média Móvel Simples' (SMA). Como o calculamos de acordo com os
últimos 5 dias de dados, ele é chamado de SMA de 5 dias.
As médias para o dia 5 (ou pode ser algo como 5, 10, 50, 100, 200 dias) são então unidas para formar uma linha
curva suave conhecida como linha média móvel e continua a se mover conforme o tempo avança.
No gráfico mostrado abaixo, sobreponho um SMA de 5 dias sobre o gráfico de velas do ACC.
Então, o que uma média móvel indica e como ela é usada? Bem, existem muitas aplicações de média móvel e
em breve irei introduzir um sistema de negociação simples com base nas médias móveis. Mas antes disso, vamos
aprender sobre a média móvel exponencial.
Total 1214,5
Quando se calcula a média desses números, há uma suposição não declarada. Estamos essencialmente dando a
nd
cada ponto de dados a mesma importância. Ou seja, estamos assumindo que o ponto de dados em 22 de julho
º
é tão importante como o ponto de dados em 28 de julho. No entanto, quando se trata de mercados, isso nem
sempre pode ser verdade
Lembre-se da suposição básica da análise técnica - os mercados descontam tudo. Isto significa que o mais
th
recente de preços que você vê (o dia 28 de julho) desconta toda a informação conhecida e desconhecida. Isto
th th
implica também o preço em 28 é mais sagrado do que o preço em 25 .
Passando por isso, gostaríamos de atribuir peso aos pontos de dados com base na 'novidade' dos dados. Portanto,
th th th
o ponto de dados em 28 julho recebe o maior weightage, 25 julho recebe o segundo maior weightage, 24
rd
julho recebe o 3 mais alto, e assim por diante.
Ao fazer isso, eu essencialmente dimensionei os pontos de dados de acordo com sua novidade - o ponto de
dados mais recente recebe a atenção máxima e o ponto de dados mais antigo recebe menos atenção.
A média calculada nesse conjunto de números em escala nos fornece a Média Móvel Exponencial (EMA). Pulei
deliberadamente a parte do cálculo da EMA, simplesmente porque a maioria do software de análise técnica nos
permite arrastar e soltar a EMA nos preços. Portanto, focaremos a aplicação da EMA em oposição ao seu
cálculo.
Aqui está um gráfico da Cipla Ltd. Plotamos uma SMA de 50 dias (preta) e uma EMA de 50 dias (vermelha) nos
preços de fechamento da Cipla. Embora a SMA e a EMA tenham um período de 50 dias, você pode notar que a
EMA é mais reativa aos preços e, portanto, fica mais próxima do preço.
A razão pela qual a EMA é mais rápida em reagir ao preço atual de mercado é porque a EMA dá mais
importância aos pontos de dados mais recentes. Isso ajuda o comerciante a tomar decisões comerciais mais
rápidas. Por esse motivo, os comerciantes preferem o uso da EMA ao invés da SMA.
um preço superior ao seu preço médio. Isso significa que os traders estão otimistas com o aumento do preço das
ações. Portanto, deve-se considerar as oportunidades de compra.
Da mesma forma, quando o preço das ações é negociado abaixo do preço médio, isso significa que os traders
estão dispostos a vender as ações a um preço menor que o preço médio. Isso significa que os comerciantes são
pessimistas sobre o movimento do preço das ações. Portanto, deve-se considerar as oportunidades de venda.
Podemos desenvolver um sistema de negociação simples com base nessas conclusões. Um sistema de
negociação pode ser definido como um conjunto de regras que ajudam a identificar pontos de entrada e saída.
Agora, tentaremos definir um desses sistemas de negociação com base em uma média móvel exponencial de 50
dias. Lembre-se de que um bom sistema de negociação fornece um sinal para você negociar e um sinal para
encerrá-lo. Podemos definir o sistema de negociação de média móvel com as seguintes regras:
Regra 1) Compre (durar) quando o preço de mercado atual ficar maior que a EMA de 50 dias. Depois de longo,
você deve permanecer investido até que a condição de venda necessária seja satisfeita
Regra 2) Saia da posição longa (quadrado) quando o preço de mercado atual ficar menor do que a EMA de 50
dias
Aqui está um gráfico que mostra a aplicação do sistema de negociação nos cimentos Ambuja. A linha preta no
gráfico de preços é a média móvel exponencial de 50 dias.
Começando pela esquerda, a primeira oportunidade de compra teve origem em 165, destacada nas paradas como
B1 @ 165. Observe que, no ponto B1, o preço das ações subiu para um ponto superior à EMA de 50 dias.
Portanto, de acordo com a regra do sistema de negociação, iniciamos uma nova posição longa.
Seguindo o sistema de negociação, continuamos investindo até obter um sinal de saída, que finalmente
chegamos a 187, marcado como S1 @ 187. Esse comércio gerou um lucro de Rs.22 por ação.
O próximo sinal a ser comprado chegou a B2 @ 178 , seguido por um sinal de quadrado em S2 @ 182. Este
comércio não foi impressionante, pois resultou em um lucro de apenas Rs.4. No entanto, o último comércio, B3
@ 165 , e S3 @ 215 foi bastante impressionante, resultando em um lucro de Rs.50.
https://zerodha.com/varsity/chapter/moving-averages/ 6/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Aqui está um rápido resumo dessas operações com base no sistema de negociação praticado:
nd
A partir da tabela acima, é muito claro que os primeiros e últimos negócios eram rentáveis, mas o 2 comercial
st rd
não era tão rentável. Se você inspecionar por que isso aconteceu, é evidente que durante o 1 ea 3 comércio,
nd
o estoque foi trending mas durante o 2 trocar o estoque se mudou para o lado.
Isso nos leva a uma conclusão muito importante sobre as médias móveis. As médias móveis funcionam
brilhantemente quando há uma tendência e não são executadas quando o estoque se move lateralmente. Isso
basicamente significa que a 'Média móvel', na sua forma mais simples, é um sistema que segue as tendências.
Da minha própria experiência pessoal de negociação com base em médias móveis, notei algumas características
importantes:
1. As médias móveis fornecem muitos sinais de negociação (compra e venda) durante um mercado lateral. A
maioria desses sinais resulta em lucros marginais, se não em perdas
2. No entanto, geralmente um desses muitos negócios resulta em uma alta massiva (como a negociação B3
@ 165 ), levando a ganhos impressionantes
3. Seria muito difícil separar o grande vencedor dos muitos pequenos negócios
4. Portanto, o comerciante não deve ser seletivo em termos de seleção de sinais sugeridos pelo sistema de
média móvel. De fato, o comerciante deve negociar todos os negócios que o sistema sugere
5. Lembre-se de que as perdas são mínimas em um sistema de média móvel, mas que 1 grande comércio é
bom o suficiente para compensar todas as perdas e pode gerar lucros suficientes
6. O comércio com fins lucrativos garante que você esteja na tendência enquanto ela durar. Às vezes até
vários meses. Por esse motivo, o MA pode ser usado como proxy para identificar idéias de investimento
de longo prazo
7. A chave do sistema de negociação da MA é aceitar todas as negociações e não julgar os sinais gerados
pelo sistema.
Aqui está outro exemplo de BPCL, onde o sistema MA sugeriu várias operações durante o mercado lateral,
porém nenhuma delas foi realmente lucrativa. No entanto, o último comércio resultou em um lucro de 67% em
cerca de 5 meses.
https://zerodha.com/varsity/chapter/moving-averages/ 7/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
In a MA crossover system, instead of the usual single moving average, the trader combines two moving
averages. This is usually referred to as ‘smoothing’.
A typical example of this would be to combine a 50 day EMA, with a 100 day EMA. The shorter moving
average (50 days in this case) is also referred to as the faster moving average. The longer moving average (100
days moving average) is referred to as the slower moving average.
The shorter moving average takes lesser number of data points to calculate the average and hence it tends to
stick closer to the current market price, and therefore reacts more quickly. A longer moving average takes more
number of data points to calculate the average and hence it tends to stay away from the current market price.
Hence the reactions are slower.
Here is the chart of Bank of Baroda, showing you how the two moving averages stack up when loaded on a
chart.
As you can see, the black 50 day EMA line is closer to the current market price (as it reacts faster) when
compared to the pink 100 day EMA (as its reacts slower).
Traders have modified the plain vanilla MA system with the crossover system to smoothen out the entry and exit
points. In the process, the trader gets far fewer signals, but the chances of the trade being profitable are quite
high.
The entry and exit rules for the crossover system is as stated below:
Rule 1) – Buy (fresh long) when the short term moving averages turns greater than the long term moving
average. Stay in the trade as long as this condition is satisfied
Rule 2) – Exit the long position (square off) when the short term moving average turns lesser than the longer
term moving average
Let us apply the MA crossover system to the same BPCL example that we looked at. For ease of comparison, I
have reproduced the BPCL’s chart with a single 50 day MA.
https://zerodha.com/varsity/chapter/moving-averages/ 8/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Notice, when the markets were moving sideways, MA suggested at least 3 trading signals. However the 4th trade
was the winner which resulted in 67% profit.
The chart shown below shows the application of a MA crossover system with 50 and 100 day EMA.
The black line plots the 50 day moving average and the pink line plots the 100 day moving average. As per the
cross over rule, the signal to go long originates when the 50 day moving average (short term MA) crosses over
the 100 day moving average (long term MA). The crossover point has been highlighted with an arrow. Please do
notice how the crossover system keeps the trader away from the 3 unprofitable trades. This is the biggest
advantage of a cross over system.
A trader can use any combination to create a MA cross over system. Some of the popular combinations for a
swing trader would be:
a. 9 day EMA with 21 day EMA – use this for short term trades ( upto few trading session)
b. 25 day EMA with 50 day EMA – use this to identify medium term trade (upto few weeks)
c. 50 day EMA with 100 Day EMA – use this to identify trades that lasts upto few months
d. 100 day EMA with 200 day EMA – use this to identify long term trades (investment opportunities), some
of them can even last for over a year or more.
Remember, longer the time frame the lesser the number of trading signals.
Here is an example of a 25 x 50 EMA crossover. There are three trading signals that qualify under the crossover
rule.
https://zerodha.com/varsity/chapter/moving-averages/ 9/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Needless to say, the MA crossover system can also be applied for intraday trading. For instance one could use
the 15 x 30 minutes crossover to identify intraday opportunities. A more aggressive trader could use 5 x 10
minute crossover.
You may have heard this popular saying in the markets – “The trend is you friend”. Well, the moving averages
help you identify this friend.
Remember, MA is a trend following system – as long as there is a trend, the moving averages works brilliantly.
It does not matter which time frame you use or which cross over combination you use.
Module 2
Chapters
1. Background
2. Introducing Technical Analysis
3. The Chart Types
https://zerodha.com/varsity/chapter/moving-averages/ 10/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
897 comments
1. jagadeesh says:
November 16, 2014 at 6:04 am
Hello Sir,
First of all thank you so much for what you guys are doing .
I have a doubt.Can i select 9×21 crossover system on 5min. chart for intraday opportunities?
Reply
Thanks
Reply
I have a one question regarding use MA crossover system how its work and how we can find
call . in both line.. for intraday.
Reply
Reply
Anil says:
May 30, 2018 at 11:57 pm
Reply
You will first need to decide on the number of candles for which you want the MA.
Then, you can open a 15 min chart and add 2 moving averages with the period ‘X’ and
‘X*2’
Say you want to plot for 100 candles. Choose 100 for 1st MA and 200 for 2nd MA.
That will give you a 15 min * 30 min crossover
Reply
The period you have mentioned is in days. How can we select no of candles in
15*30 minutes chart and how to plot chat for 15*30minutes. Please tell clearly as
I am new to using the tools.
Rajiv says:
August 9, 2018 at 11:27 pm
Sir, as you rightly mentioned, I’ve also noticed that MA’s perform whenever the market’s in a
trend. However, I’ve observed this quite often and feel that the duration of the EMA
crossovers need to be backtested on a scrip across its historical data points to arrive at the best
possible trade entry/exit positions. For ex: I’ve found that a 5×20 EMA crossover on 5-min
Heikin Ashi candlestick pattern works pretty well for HINDALCO.
Reply
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 12/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Yup, it does.
Reply
Sahil says:
March 30, 2019 at 3:19 pm
Sir can you tell me in last chart there are two moving averages .my ques. Is
Why those lines are getting up and down with each other.?
Reply
I’d suggest you read the chapter again, Sahil. Its explained well there.
Reply
2. rajeshck32 says:
November 20, 2014 at 1:17 pm
Reply
You can avoid whip saws to some extent by using a higher value moving average.
Reply
rajeshck32 says:
November 24, 2014 at 11:04 am
how to avoid whipsaw of higher value cross over , if you continue this there won’t
be any trade to take , can you elaborate on your answer. if you go on choosing higher value
where is the end .
Reply
Agreed. The thing is, if you choose a higher MA cross over, whipsaws are reduced to a
great extent. However avoiding whipsaws while using MA system is not possible…
especially when the markets are moving sideways. So between the two i.e lower MA
and higher MA, I would suggest a higher value MA crossover as it tends to reduces the
whipsaws.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 13/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Whipsaw is a term used when the market fluctuates between two price points for
a prolonged period. For example if a stock is trading between 950 and 975 for the
longest period then both bulls and bears will find it difficult to make meaningful
money. This is because the stock is fluctuating between two price levels (which
are close to each other)…and usually the fluctuations are rapid. This is called
“Whipsaws”.
saurabhrendale says:
December 2, 2016 at 3:17 am
Thanks Karthik for the explanation of whipsaw, I knew what it meant, but was
not sure why this happens. One idea that i had was whipsaw was a result of some
negative news in the market at that time.
saurabhrendale says:
December 3, 2016 at 12:41 am
Gyan says:
January 6, 2017 at 10:49 pm
If there are whipsaws, then doesn’t it mean that there is no trend and we
shouldn’t use MA Crossover in no-trend market.
Yes, MAs does not really give you great results when the markets whipsaws.
kunal says:
October 2, 2017 at 3:45 pm
Reply
Reply
kunal says:
October 3, 2017 at 2:57 pm
but suppose if i wanna take average of last 5 sessions (1st day, 2nd day, 3rd day,
4th day, 5th day)and its 1000 then whats the higher value in this . the only value
we have is 1000.whats the high average and low average we have only 1 average
and ie 1000
i hope i made my que clear to u
What if the data on the 5th day is skewed and your average jumps to 1000 from
the usual 650?
Which crossover system and candle chart are preferable for intra day trading in MCX bullion market.
Thank you.
Reply
Irrespective of the asset class for intra day trading I would advice 10 or 15 mins charts..as longer the
time duration is longer, the more reliable is the trading signal. Going by the same logic, I would
advice you to use slightly longer term MA cross over for better accuracy.
Reply
Saurabh says:
February 4, 2018 at 10:44 pm
Thanks Sir,
Thanks for your valuable guidance pl tell me in 10/15 mint chart or in intra day trading which
indicator are best to do technical analysis,
I am new here in this field and using Zerodha as my preferred broker
Thanks in advance!
Reply
I personally prefer the moving averages, they are simple and helps in most cases.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 15/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
jagadeesh says:
November 24, 2014 at 10:44 pm
Hi nitesh,
A stock is said to be in divergence when the momentum forms lower peaks while the stock is
forming higher peaks….
Reverse is true for bear markets.. Hav a look at the following picture for a better understanding..
Reply
Thanks JAGADEESH
Reply
Jagadeesh has posted a quick background information. I will try and elaborate on it sometime
soon…but I personally don’t like to look at divergence and convergence, hence have not covered it
in Varsity.
Reply
Hi Karthik
How to Trade the Below Situation when no cross overs happening and the RSI and Stoacstics not in Favor
of short trade
Reply
From what I can see from the chart, clearly the trade is in favor of a long position. This is because
the MA cross over has already happened and it seems like a trend is being formed. I would wait for
a retracement on low volumes to enter a position. Ofcoure, the other checklist items should also
comply.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 16/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Karthik,
In the below chart even though the Price is Retracing Upwards the EMA cross over has hapend , how
trade can be avoided in this type of situation , also what other indicator i can mix with this to filter the
same .
Reply
1) I see a very nice double bottom formation ard 4345 suggesting a long
2) I see a hammer being formed at the end of the 2nd double bottom suggesting a long
3) Volumes are great
4) MACD crossover suggests a long
If both S&R also are supportive, then I guess this is a clear case of being long on this stock. Also,
for it is best if you overlay the moving averages on the price chart and not on a separate plane.
Reply
Pearl says:
May 11, 2015 at 3:37 pm
Can you tell me what MACD, RSI, FSTO (in the given chart) stand for?
Reply
They are all technical indicators. I would suggest you go through Chapters 14 & 15 for
more details.
Reply
Ashwin D says:
August 9, 2015 at 10:11 am
Dear karthik,
Is it ok to use 3×13 EMA Crossover for short term trading?, also, if yes what other parameters
to be considered in this case for better profit opportunity?
Reply
Yeah, you can use 3 x 13 EMA. In fact you can backtest this on Pi to figure out the
profitability. Check this http://zerodha.com/z-connect/tradezerodha/pi-
tradezerodha/eas-for-auto-buysell-signals-pi
https://zerodha.com/varsity/chapter/moving-averages/ 17/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
swapnil says:
April 21, 2018 at 10:20 am
Karthik could you please share this chart with us so that we can have idea about the
formation?
Thanks.
Reply
Reply
rajeshck32 says:
January 7, 2015 at 6:01 am
bro see my jan 5 th comment on how whipsaws can be avoided , if you go on including indicators
you can never trade totally confused ,in above situation ,even macd is telling it will go up .( flat
macd method ).
Reply
Sir,
First of all, many many congratulations for your effort, I’ve not seen such an effort to educate & support
traders. God bless.
I’ve a doubt regarding the MA crossover system (last figure of this chapter – 25&50 MA crossover). The
first two trades are in loss, as we entered @ high and exit @ low, please clarify.
Arunava BHattacharya.
Reply
Thank you
Yes, the first 2 trades are loss making. This is because the stock was in a sideways movement. MA
crossover works best when we have a trending market and fails when we are in sideways market.
This is what is being highlighted in the chart.
Reply
rajeshck32 says:
https://zerodha.com/varsity/chapter/moving-averages/ 18/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
sir if you observe care fully the candle in which crossover has happened in all the cases , there is
one thing common .
Reply
Bullish Candle?
Reply
rajeshck32 says:
January 5, 2015 at 1:21 pm
candle { crossover} high or low has to be broken and CLOSE above or below , THAN
TAKE IN THE NEXT CANDLE . IT IS SIMPLE . STOPLOSS PREVIOUS CANDLE
LOW OR HIGH , TECHNICALLY SPEAKING THERE HAS TO BE STRENGTH
AFTER THE CROSSOVER TO MOVE . YOU COULD HAVE INSIDE BAR IF
THERE IS NO STRENGTH , WHICH WILL GIVE THE DIRECTION OF THE
TRADE .
Reply
Vivek says:
September 26, 2015 at 12:53 pm
8. rajeshck32 says:
January 6, 2015 at 7:51 am
SIR CAN YOU INCLUDE ONE TOPIC ON HOW TO CUT DOWN WHIPSAWS . IN EVERY
INDICATOR . IF THIS IS IN RESPONSES HERE ,THIS WILL NOT BE SEEN BY ALL .
https://zerodha.com/varsity/chapter/moving-averages/ 19/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Yes, one of the best ways to deal with this is keeping a ‘trailing stoploss’. Will talk about it
sometime soon. Thanks.
Reply
DR1184 says:
April 3, 2015 at 9:37 pm
if we r using MA system , i think Long/Short Entry into whipsaw is unavoidable (i.e. whipsaw is
visible only in hindsight)
breakouts often happen after lengthy whipsaw.
what really matters is ‘exit’ condition.
if exit point is well defined , one can profit from whipsaws too.. or in some cases , whipsaws are
very desirable. ( : scalping ? )
(e.g. , CLOSE > (REF(CLOSE,3) + 10))
Reply
You are right on this…also, whipsaws are very desirable for scalping…even here exit matters.
Reply
Raghavendra says:
June 17, 2015 at 4:48 am
Hi Karthik,
I did not understand the code mentioned by DR1184 in the end of his comment. What
does that mean?..
Also is there a chapter which takes us through the codes and formulas?..
Reply
The code is just an exit condition for the trade wherein it specifies “I would like
to exit the trade when the closing price of the current candle exceeds the close
value of the last 3 candles plus 10 more points”.
We are in the process of structuring the content for “AFL for traders” which is all
about coding the formulas in the AFL (Amibroker formula language), will keep
you posted on that. Meanwhile please do follow us on twitter for instant updates
— http://www.twitter.com/ZVarsity
9. vasanth says:
https://zerodha.com/varsity/chapter/moving-averages/ 20/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Can i use Moving average cross over system alone to take the trading decision? If so what’s the
probability of success rate?
I have checked alone also it’s giving good result. Requesting your suggestion please.
Reply
Of course you can. But do remember a solid MA system with high success ratio requires you have a
long term averages …something like 50 day x 100 day or 100 day x 200 day…but when you do so
the number of trading signals reduces. In essence higher the time frame, better the accuracy and
lower the number of signals.
Reply
Can i use Moving average cross over system alone to take the trading decision? If so what’s the
probability of success rate?
I have checked alone also it’s giving good result even if low volume. Requesting your suggestion please.
Reply
Can i use Moving average cross over system alone to take the trading decision? If so what’s the
probability of success rate?
I have checked alone also it’s giving good result even if low voume. Requesting your suggestion please.
Reply
If i am looking after 5 Mins intraday chart which time frame can give better result while using Cross over
MA alone?
Reply
Try 21 x 9 average. I’m not saying this is the best combination…but you may want to just give it a
shot.
Reply
Virender says:
July 9, 2018 at 8:52 pm
https://zerodha.com/varsity/chapter/moving-averages/ 21/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
When u say 5 minute intra day chart and 21*9 AMA, it means the candlestick will form every
5 minute and the two AMA will be 21 DAYS average and 9 DAYS average right?
Somewhere you had said 50*100 means number of candles you want and I’m getting more
and more confused
How to interpret this whenever you say something about x * y
Reply
Virender, 5 * 21 day SMA means that a moving average will be formed using 5-day
closing price and another moving average will be formed over 21-day closing price.
Replace the day with minute, the interpretation remains the same.
Reply
PRUTHVI says:
October 10, 2018 at 11:45 am
Hi Karthik,
If i want to use 15*30min then 100ma and 200ma converts into 1500 and 6000
mins or what please confirm I am having a confusion in it.
I’m not sure what you mean by 15*30 mins. You will have to stick to one time
frame, for example, 15mins. Once you do that, 100 MA will correspond to the
last the average of the last 100, 15 minutes candle. Likewise with 200MA.
want trading in bank nifty future.I request any experience trader who can advice about MA, Indicators ,
Time frames etc .Thanks
Reply
The underlying does not make any difference. Whether you are trading Nifty futures, Bank Nifty
Futures, or Crude Oil futures the principle of trading remains the same.
Reply
How to be cautious & avoid trading in whipsaws while using MA cross over strategy?
https://zerodha.com/varsity/chapter/moving-averages/ 22/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
This really depends on your time frame. As a rule of thumb, the longer the MA combination the
lesser the whipsaws. For example a 20 x 9 MA crossover system will generate lesser whipsaws
when compared to 3 x 5 MA crossover.
Reply
rajeshck32 says:
February 18, 2015 at 7:10 pm
Pls refer above comments . my resech on how to avoid whipsaws in moving avarages
Reply
Sure. I’ve not really worked with these MA combinations, hence cant really comment.
Reply
Consistently I tried 9X21 MA cross over in 5 Mins Intraday chart but sometimes it get failed. Can you
suggest Crossover MA strategy with any combination for best results? Like candlesticks with R&S and
Volume…
Reply
Even i tried triple combination cross over MA of 9X15X21, once 9 crosses 15, alert signal & after 21
taking position. Sometimes it’s not working well which results in loss.
Reply
Vasanth – to begin with try increasing your time frame. Maybe 5 mins is too short. Explore (paper
trade) 15 mins time frame and on that try 3 x 5 or 9 x 21 combination. Also stick to indices to begin
with.
Reply
rajeshck32 says:
February 18, 2015 at 7:14 pm
Try 13 / 21 /34 in 5 min works 80% strike rate with momuntem indicator
https://zerodha.com/varsity/chapter/moving-averages/ 23/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Sk says:
July 31, 2017 at 5:30 pm
Hi can we write in script to get alerts?. If you know, can I please guide me
Reply
Reply
VGouda says:
August 29, 2017 at 4:27 pm
Sell Script:
REF(OPEN,1)>REF(CLOSE,1) AND
REF(OPEN,2)>REF(CLOSE,2)
Looks like a script where buy and sell signals are generated based on comparing
OHLC data.
Hi Karthik, thanks for presenting all this useful technical info in an excellent manner…hats off to you and
your team. well my understanding is that trading based on MA crossover will not result into losses though
sometimes it may be marginal profit or large profits and also at lower time frame with lesser period MA
combination may result into higher whipsaws….is my observation correct?
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 24/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
thanks Karthik. well I have a doubt. many a times candlestick pattern gets formed around
S&R levels to confirm long or short but after sometime trend changes i.e. it breaks the S&R
level and trade goes against us. against this pattern strategy, MA crossover strategy ensures
that either trade is in our favour or marginally against unless strong gap up or gap down
opening. so why have you kept the candlestick pattern on top in the checklist when MA
crossover strategy gives better results? though it is good to have all the checklist items but its
not possible in the intra-day trade. also how safe is to do intra day trade based on flat MA
crossover strategy? thanks in advance for your time and advise.
Reply
Well, the problem with MA strategy is that they work very well in a trending market.
But market can remain range bound for more time than anyone can imagine. In fact the
whole of 2012 was range bound with virtually no movement in the market. In such
circumstances MA based strategies just wont work, hence you will have to rely on
candlesticks to identify opportunities. Like with anything else, relying on just 1
technique may be not a great idea in markets.
Reply
karthik sir..
25-50 ema day bearish indicator.
thank you sir
Reply
karthik sir..
25-50 ema day bearish indicator, gravita stock.
thank you sir
Reply
Yes, this is a bearish cross over…but there is a picture perfect bullish Marubuzo as well
Reply
girish says:
March 31, 2015 at 5:50 am
https://zerodha.com/varsity/chapter/moving-averages/ 25/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
Glad to know this Girish. Yes, you can develop your one indicators…its just a matter of getting the
thought process right.
Reply
hello Sir ,
. EMA would more whipsaws in sideways market.? if yes , is it good to prefer SMA ?
. MA gives us ‘late entry’ into a trend, how can we use PSAR along with MA system ? for right timing
into trade.
thnx,
Rajesh
Reply
EMA is always more desirable as it takes into account the latest information from markets. Will
probably include an additional topic on MA & PSAR sometime soon.
Reply
Dear Sir,
In the above Girsh Chart on Gravita India I would like to go long as the prior trend is downward and a
marabozu formed at the bottom of the trend and RSI is rising from 30-50 range. But as stated by Girish
C/O of EMA`S are not suggesting. Pl. correct me. Regards
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 26/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Marubuzo is the only pattern which does not require a prior trend. As long as you think the trade is
good to go, you should take it.
Reply
Reply
Reply
Hi karthik,
If i had missed a to go long during a short term ema crosses up over long term ema, Can i buy that stock
after that? so that i can sell when the ema reverses?
Reply
You can as long as the run up in the stock (after the crossover) is not much.
Reply
Reply
Thanks for your interest. We are thinking of putting up some stuff related to Pi soon.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 27/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
IN SECOND CHART OF THIS NOTES HOW MANY DAYS HAVE U SELECTED OF BPCL STOCK
SIR
AND THIS ALL FEATURES ARE AVAILABLE ON PI TRADING TERMINAL
AND WHAT IS DIFFERENCE BETWEEN 10 MIN EMA AND 10 DAYS EMA
AND AGAIN THE SAME Q IS THIS ALL INDICATORS AVAILABLE IN PI SOFTWARE
Reply
BPCL is EOD chart here. All these indicators and more are available on Pi. Please do visit
http://www.zerodha.com/pi to know more.
10 mins EMA considers 10 min candles as look back period…likewise the 10 day EMA considers a
lookback period of 10 End of day periods.
Reply
Reply
If you ask me – simple candlestick patterns with S&R levels should be just fine
Reply
thank u sir looking forward to other modules which are coming soon
Reply
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 28/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
sir,how to plot EMA CROOSOVERS IN PI &when we plot s&r the graph gets smurged(iday)should we
plot s&r cloe&open a new chart of same for better visbility(cstics)r is there any other way explian both
question detailly as iam not so good at basics,bcoz of ur knowledge sharing we r trying
Reply
Can you please email sreenivasulu.m at zerodha dot com for this?
Reply
Sir, for intraday charts, MACD is better or EMA is better can we use 12*25 EMA for 5, 10 & 15 min
Intraday Charts?
Reply
Certainly. Although I should tell you my views are biased as I always like to use the EMA for its
simplicity and matter of fact approach.
Reply
Reply
Reply
dear sir, pls suggest me which is the best EMA that can b used in nifty future trading? AND what is the
best MACD?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 29/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
do we use a combination of candlestick pattern, s & r and volume in commodity trading and second
question is can we use ema crossover with rsi in commodity pls do reply
thank u
Reply
Reply
Reply
Reply
Karthik thanks a lot for your efforts in this module. My learning has been tremendous and loving it. I have
a specific query.
On PI i attempted to create EMA with 9X21, 21X50, 50X50 for 1 day intraday, 1 week and 6 months
(tried all three EMA’s for each time frame) but could not find any crossover. I did it for Lupin Shares from
17-July-2015 to 24-July-2015. Also plotted all three in 3 different charts at same time on 24-July-2015
intraday there was not cross over happening at all. This particular share had beautiful price movement (a
prerequiste for EMA). Can you help me where i am going wrong ?
Reply
CORRECTION TO ABOVE:
Reply
Thanks Varun. I would suggest you email [email protected] regaring Pi, he will help
you with it.
Reply
This is not regarding PI but regarding Moving Averages. i understand it conceptually but not
able to use it effectively.
Reply
Reply
i attempted to create EMA with 9X21, 21X50, 50X100 for 1 day intraday, 1 week and 6 months (tried all
three EMA’s for each time frame for same frame in differnet charts) but could not find any crossover. I did
it for Lupin Shares from 17-July-2015 to 24-July-2015. Also plotted all three in 3 different charts at same
time on 24-July-2015 intraday there was not cross over happening at all.
Reply
I suspect you could inadvertently missing something here Varun. Can you please mail
[email protected] and check with him once?
Reply
Sir,
I trade intraday in Nifty. I have to pick only 5 points with 50 qty. Because I want to make 20-30 trades
daily so I can get huge profit by end of day.
Kindly tell me these parameters :
1. Periodicity, interval & days in chart
2. EMA Crossover Slow & Fast interval
3. How to draw a moving average line on the volume bars
4. Which indicators should I use? ( MACD, RSI, BB )
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 31/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I’m afraid I may not be the right person to answer this, for I don’t know how to generate these kinds
of trades on a daily basis. However I can answer your 3rd question –
To plot the MA over volumes – it depends on the software you use. Usually this can be done by
dragging and dropping the volume indicator from the tool bar on the volume data.
Reply
karthik,
How can i draw MA on volume chart in kite?Which variable to select in studies list??
Reply
Reply
Anup says:
October 10, 2017 at 6:20 pm
Reply
Cheers!
Suppose I want to do intraday trading with my capital x 10 or 20 ( brokers capital or margin money or
leverage etc. in say TATA MOTORS cash equity segment. Hence my capacity now is to buy 1000 shares
at one go or sell the same. Can you tell me exactly as to I have to look to which indicator so that I can buy
shares or take entry? Same for selling or exit? Or say first sell then buy at low? From the candles I am sure
even God can earn profit. Some other tools like PSAR, AVERAGE, SUPER TREND must be used. What
is this 20 days EMA and 50 days EMA? Where can I get it? Where exactly MCAD is used?
https://zerodha.com/varsity/chapter/moving-averages/ 32/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
MACD – http://zerodha.com/varsity/chapter/indicators-part-2/
Reply
Say I want trade with TATA MOTORS futures contract 1 lot. Lot size I will know. My question is will I be
able to buy this futures contract of TATA MOTORS of 29 Oct 2015 @ current market price. Or it’s price
is special and different from current market price of TATA MOTORS?
Reply
Reply
1) is it true that moving averages do not generate false / loss making calls ?
2) i use PI and i am not aware which indicators to use for intraday trading ?
3) what should be ideal timeframe for candlestick chart for intraday & ideal MA gap between short & long
MA for MA signal generation ?
4) anyway to combine other indicators with MA to generate better signals ? which combination would u
suggest ?
5) if you can be kind enough to share which indicator / combination you use for your trading ?
thank you
Reply
Reply
I got that : One can decide to make fresh buy position as soon as stock prices goes above the 50 Day SMA
butif Day SMA ? then he will not be able to maximize profit ? How can he decide to sell at highest or near
High price b/w those 2 points? If he waits for stock to come down the 50 Day SMA, he would be missing
the oppurtunity to sell at high b/w those 2 points.
Reply
You cant really time the markets to perfection. Even if you capture 40% of the rally, its job well
done.
Reply
1) is it true that moving averages do not generate false / loss making calls ?
2) i use PI and i am not aware which indicators to use for intraday trading ?
3) what should be ideal timeframe for candlestick chart for intraday & ideal MA gap between short & long
MA for MA signal generation ?
4) anyway to combine other indicators with MA to generate better signals ? which combination would u
suggest ?
5) if you can be kind enough to share which indicator / combination you use for your trading ?
thank you
Reply
I have just gone through EMA cross over chart pattern and want to experiment 15*30 minutes on day
trading. Is 15*30 ok or anyother else to be tried?
Kindly inform if the same chart is available in Kite or PI software and if yes, in which drop down box or
how to create? I request to guide step by step.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 34/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Yes, the same is available in Kite and Pi. You just need to overalay the moving averages on the
prices. Suggest you call our support and they will explain this better to you.
Reply
Hi,
I am using 9-21 EMA and 9 RSI (80%-20%) is it right setting for intra-day trading?
Reply
Reply
Dear Sir, I am trading in Copper and Crude using 10 min sma crossing 50sma . also watch 200ema. all on
3 min and 5 mins chart. but some times the chart line takes a u turn on touching the slow one. this makes a
lot of trouble. can you suggest a better format for trading in copper and crude? i would like to learn some
better ideas from you. how it can be organised. please suggest
Reply
Pradeep – very shortly we would be covering commodities. Suggest you kindly wait for a little more
time.
Reply
in PI MACD is plotted below the chart i wish to plot the MACD on live chart . shall i do it manually ?
i understood the long cycle= 26, short cycle = 13 , but what exactly does the signal cycle = 9 mean ?
should RSI be used only as a supportive indicator to our buying & shorting desicions or we can trade
using RSI indicator alone?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 35/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Regarding how to plot, I would suggest you reach out to my colleague Srini –
[email protected]
Also, your main thesis to trade should stem from candlestick/fundamentals/quants. Indicators alone
should not be your main criteria to set up trade.
Reply
aehsan4004 says:
December 22, 2015 at 9:25 am
3)should RSI be used only as a supportive indicator to our buying & shorting desicions or we
can trade using RSI indicator alone?
4) once a good strategy is finalized then is automatic trading a good option for retail traders ?
5) what are the most common auto-trading strategies used in markets by retail / institutional
traders ?
Reply
Answers as below –
1) Fundamentals such as demand and supply situation, production data etc. Quant is
more of statistical data.
2) MACD Line
3) Supporting indicator
4) Yes
Reply
aehsan4004 says:
December 23, 2015 at 7:44 am
i would like to know /learn more about ” quants ” . what can be an ideal source
for this ?
with regars to supply & demand , production data … shall we consider CME to
be relevant ? what other sources for the same ?
https://zerodha.com/varsity/chapter/moving-averages/ 36/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
You will have to start with understanding basic calculus to deal with Quants for
Finance. If you are not familiar with calculus, then here is a good book to start
with – http://www.mhprofessional.com/product.php?isbn=0071795537&cat=145
CME is good.
1) basic calculus seems like something i did during my 12th boards , i think i should be workable for me .
i downloaded the sample pages it just had problems & solutions ….. how exactly should i use this book ,
like a workbook to practice problem solving ?
2) is it a good idea to trade options based “ONLY” on MACD signals of underlying ? (my idea is buy only
OTM / far OTM CE-PE , as per the signal , without considering/calculating any of the greeks )
Reply
1) The idea is to first get comfortable with basic mathematics. Once you do that you can look for a
structured program on financial mathematics – I guess Coursera has few.
2) No.
Reply
aehsan4004 says:
December 27, 2015 at 10:09 am
Reply
Hi Karthik,
Can you please refer to the Adani Ports chart?
Is the bullishness to be continued based on the MA Crossover and last candle being a Bullish Maribozu?
Regards,
Somnath.
Reply
It certainly looks bullish, but do watch out for the low volume on the Bullish Marubuzo.
https://zerodha.com/varsity/chapter/moving-averages/ 37/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Dear Karthik,
Please refer to the ACC chart, do you think its the time to take long position?
Reply
Well, the hammer looks enticing. Please make sure other items on the checklist align.
Reply
Karthik,
The ACC chart is of 10*21 EMA, but as i have learnt from theory in this chapter, Buy signal
is generated when the short term MA turns greater than Long term MA. But according to the
chart it should be a sell signal… Am i going wrong somewhere?Plz help
Reply
Not really Arun, the stock is trending up and MA’s are suggesting a buy.
Reply
But the shorter Ema (10) is less than 21 ema at the hammer formation.So how it
can b a buy?
Hello sir can u tell me in intraday trading for crude oil and nickle which technical indicator should be uaed
like sma , stochastic, or RSI and which configuration should we taken
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 38/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
All indicators are applicable to commodities as well. I personally prefer the 9 and 21 day EMA for
intraday trading.
Reply
Joe says:
February 8, 2016 at 5:50 pm
Hi Karthik
Apologies for this silly question. Could you help me to know how do I draw this 9*21 EMA
in the chart for any commodities in intraday?
Reply
This should be quite simple. Which s/w do you use? If you are using Pi or Kite our
support executive should be able to help you, suggest you give them a call.
Reply
Joe says:
February 13, 2016 at 10:37 am
Thanks Karthik. The support executive did help me the other day when I called
them. I’m using PI.
hi karthik
i really liked the way u refer to all the doubts.
even i have a doubt actually and i hope i will get something from u.
my doubt:
is yes definitely all the trading system with moving averages works upto 70% accuracy and our entry
points will be accurate but am not able to book profit am unable to decide how much profit to take. when
price reaches certain level am unable to decide whether i have to book my profits and get out of the trade
or have to continue so that price will go further. for example i use 200 ema with 15 min time frame few
days back in nifty i took long position around 7450 and price reached 7600 and i thought price may go
further but it started declining now today it reached 7507 and i couldn’t encash maximum profits. can u
please suggest me who to deal with this
https://zerodha.com/varsity/chapter/moving-averages/ 39/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Harish – this is a tricky problem. Why don’t you try having a short term moving average to trail
your stoploss?. This should help you lock in your profits as the stock moves in your favor.
Reply
Reply
Well, if you are following a moving average system (any system actually) then the only way to
ensure success is by taking all the trades that the system suggests. You cannot be subjective here. So
you will be required to reenter when the MA suggest a crossover a generates a buy signal.
Reply
if at all using a short term moving average is beneficial which short term average to use? can u please
suggest any one?
Reply
Reply
but 9*21 generates lots of false signals and how to identify false signals? is there any other indicator
which can be clubbed with 9*21 to avoid false signals? if s please suggest me how to use it.
or else out of your experience if u have any trading strategy either long term or short term please share
with us.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 40/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Harish try and increase the MA timeframe for fewer false signals. Something like 21 x 50 should
also be ok. I’ve been discussing a lot of strategies in the Option strategies module (Module 6).
Reply
Anuragh says:
January 8, 2019 at 9:41 pm
Hello Karthik,
What would be entry point and stop loss for 9 cross 21 or may be strategy for that matter .
I understand that Entry point would be the cross over point but what if cross over has already
happened few hours back and in that case what would be my entry point and Stop loss for the
same .
Please suggest .
Reply
The best thing to do is to wait for a retracement till the moving average.
Reply
Anuragh says:
January 9, 2019 at 2:49 pm
Yes Karthik That’s fine . But you know the cross over for 9*21 doesn’t happen
that often as 9*21 ON A 15 MIN Chart happens once or twice In a day and that
too rarely and waiting for it to happen again is like am not going to trade at all for
that day . What be your suggestion on this . Do you say that I should start looking
for an different opportunity on a different stock if the crossover has happened
couple of Hours before .
Thank you in advance
Yes, you should expand the watchlist, Anuragh. It is best if the trade originates
on its own rather than we trying to forcibly look for one.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 41/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Sir, I am 24 year old. I don’t have any economic, finance or commerce background. But, I am good at
Mathmatics since. I enjoyed your tutorials a lot and understood market from scratch.
I have Rs.20,000 to invest in and start trading alongside a job. Is it possible to start trading with such a low
investment ?? Could you please help. Thank you.
Reply
My sincerer advice – don’t use that money for trading. I’d suggest you invest that money and learn
the how long term investment works before getting into trading.
Reply
Mideone says:
February 6, 2016 at 7:26 am
Thanks sir. Could you please suggest me what are sources to learn about long term
investment. I started an SIP of Rs2000. Would be grateful if you suggest what all should I
study before start trading. Thanks.
Reply
I’d suggest you read our module on FA, you will get a good idea on long term investing
– http://zerodha.com/varsity/module/fundamental-analysis/
Reply
I’ve been reading the text book for last few days but nothing came that close to understand MA the way
you have articulated Karthik. Indeed very simple and anyone can understand this. Now apologise for my
lack of knowledge. Can you help me to know how do I draw these MA in the chart when I open a chart for
a commodity?
Reply
Thanks for the kind words and encouragement Joe I’ve posted the answer in your other
comment.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 42/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi karthik,on August 24th our market has crashed one of the biggest single day fall since 2008 recession
anticipated further fall but very next day market rebounded more than 100 points and stocks like Hdfc
recouped the loss,how can we predict after a great fall like I mentioned that a bounce can happen,or it was
domestic play…
Reply
Honestly its very difficult to predict such short term moves. However years of solid market
experience will help you to some extent.
Reply
What is short covering? Intra day due square off obligations required to go for buy but how it is happening
in futures and equity market?long unwinding is just the opposit of short covering…
Reply
Short Covering = the act of traders covering their short positions (preferably with a profit). Short
covering requires you to buy back futures, hence leads to a mini rally.
Reply
Which time frame and ema time frame suitable for intraday trading to generate accurate signal
Reply
Reply
Joe says:
February 13, 2016 at 10:48 am
This Saturday afternoon is turning out be great benefit to me as I’m reading these modules
Karthik and reading all the comment sections that many people have posted. Can you also
https://zerodha.com/varsity/chapter/moving-averages/ 43/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Would my below assumptions correct when I read this statement ‘ Depends on your risk
appetite. I prefer 9 x 21 minute EMA
crossover’
1. For trading about 3 hours in the India commodites segment(let’s say from 8.30 PM to 11.30
PM Singapore time), it is good to choose a 5 minute chart(I’m fine with the risk:reward and
have done the position sizing as well) and no overnight risk(I mean I don’t keep positions
open for the next day)
2. On this 5 minute chart of ONLY one day(do you want me to choose multiple days(?)),
select 9*21 minutes EMA to get some reliable accurate signals
3. write/print the rules in a piece of paper that you have highlighted and stick in the wall right
in front of the trading PC and start trading!
Reply
Yup, you can certainly choose 5 mins chart and overlay the 9 x 21 Minute EMA but
then you need to be sure about the risk reward ratio and other things.
Reply
Virender says:
July 9, 2018 at 9:10 pm
hi karthik. how do futures position influences the equity price? theoretically underlying price should
influence fno? here iis it happening other way around? how futures short covering influence equity price?
Reply
Spot always influences the derivatives market. Both short covering and long unwinding are transient
and does not dictate long term outlook. This is exactly why you need to be quick while trading short
covering and long unwinding.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 44/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Depends on the situation. They are two different indicators with their own merits and disadvantages.
Cant compare them.
Reply
aehsan4004 says:
February 23, 2016 at 5:53 am
if you don’t mind , can you share what tech.indicators you use for your personal trading ?
thank you
Reply
Reply
aehsan4004 says:
February 24, 2016 at 9:02 am
You can minimize them by increasing time frame. For example 21 day MA
produces more whipsaws than 50 day ema.
https://zerodha.com/varsity/chapter/moving-averages/ 45/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Dear Sir,
I’m a newbie. Awesome material. I’m reading the Moving Avg Chapter and couldn’t understand the
following(apologies if its dumb)
Under section 13.3, in the example for Ambuja Cements, you have said the first buy signal is B1@165
when price is above 50 EMA. But isn’t the price 165 below the EMA line? (it should be higher isnt it?) I
felt the same for S1@187 where the price seems higher(rather than below) than EMA line. Where am I
going wrong? Pls clarify
rgds
Reply
Oh, the markings maybe confusing you, sorry about that. Please check the close of the candle to get
more clarity.
Reply
my client id is rb1210. i dont know how to plot Simple moving average for differnet time horizons like 20
days, 50 days and 200 days on pi could you please help me out.
Reply
Reply
Dear Zerodha.
I was trading from last two years blindly after coming yo zerodha I didn’t traded but learnt many things
here. Thank u for providing not only technology but also amazing knowledge.
I have one question
I have a data history of last one year .if I want to calculate MACD how many data points has to be
considered. I.e MACd value for today EOD is from last 30 readings ? Or from last one year i have to
calculate. Same question is applied to other indicators too.
Reply
Usually for short term trading, 1-2 year look back period is good enough.
Reply
Krishna says:
May 17, 2016 at 6:05 am
Reply
Yes, for 1 year EMA, you go back year ago…for 2 years you go back 2 years…so on
and so forth!
Reply
Krishna says:
May 18, 2016 at 5:15 am
These are calculated on a rolling average basis. The reference point keeps
moving as and when you keep moving the reference time period.
Hi,
When i apply 1min, 3min and 5 mins charts, which EMA and Which SMA and EMA cross over should i
take in to consideration?
Regards,
SaikiranGarapati
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 47/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
This depends on your risk appetite. Lower the frequency of the EMAs then more number of signals
and more noise. Higher the frequency, lesser number of signals but also the quality of signals
improve.
Reply
Dear zeordha.
Do u ppl block “reply” option if post is more than 3?, I dint seen reply option for my above post.
As I said I used to trade blindly before. Last year I joined zerodha and learnt many things here. Thanks
again for ur knowledge sharing.
U said reference point keep moving. I didn’t got it. Its moving to how many points behind. In Google
finance der is no option for assigning points behind ( don’t know abt pi),
Reply
Oh no, there is no blocking of that sort. Maybe this is a bug, let me request our tech team to look
into this.
Regarding ref point – today is 18th May, if I need one year SMA I’d look back from 16th May 2015
to 17th May 2016, tomorrow would be 19th may..so my look back would shift to 18th May 2015 to
17th May. So on and so forth.
Reply
Krishna says:
May 19, 2016 at 4:48 am
Thank u sir.
If I want 20 days EMA for 19_05_16, then how PI or Google finance calculating ? Is it last 20
readings from 19_05_16 back side?,, as per ur answer if I want macd(26,12,9)for 19/05/16
then readings from 23/04/16 ( 19th -26) is enough ?
Reply
For 20 day EMA, look back is 21 days. For MACD (26,12,9) look back period would
be 27.
Reply
Hello Sir! I am a great fan of your work towards educating us with immense knowledge about markets.
The only query which I have is whether should we consider volumes during intraday trading using
EMA’s? Also, what other parameters should we consider while trading with EMA technique in order to
https://zerodha.com/varsity/chapter/moving-averages/ 48/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
improve our accuracy? Should we use different indicators like RSI,MACD,etc with EMA’s. Also should
we consider S&R while using EMA’s. Once again thankyou Sir.
Reply
Yup, it makes sense to keep volumes in perspective. From my experience EMA + S&R helps much
better than overlaying other indicators.
Reply
Reply
15 mins is good.
Reply
Rameshwar says:
July 8, 2016 at 10:35 pm
Ok. I will use 15 mins candle sticks. Which moving average cross over should I use? Ex: 11
mins ,20 mins and 60 mins
Reply
Reply
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 49/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hello Karthick, First of all thanks for the clear explanation of the concept
How can I set MA crossover of 5min x10min for Intraday trading in zerodha kite platform? is it possible?
Reply
Welcome.
Yes, you can. Here is the link to Kite User manual which will explain everything about charts and
other aspects of Kite – https://kite.trade/docs/kite/ and for charts in particular –
https://kite.trade/docs/kite/#indicators-studies
Reply
Hi Sir, in the “SMOOTHING” method for intraday, can I use 5 minute chart and on top of it use 15 minute
EMA and 30 minute EMA for crossing method? what time chart would you advice for intraday? 5 minute
is ok or should I use any other? Thank you.
Reply
Shorter the time frame, higher is the noise component. I’d suggest you use a slightly long term
chart. I personally 10 or 15 mins charts for intraday.
Reply
It would be great if these contents were in video format because, the contents are good but are too lengthy
and time consuming, i usually prefer to learn from youtube.
Reply
Agreed, but we do not have the resource and bandwidth to make video content
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 50/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
What is ‘offset’ variable that Is available when plotting the moving average indicator?
Reply
You can ignore that Arjun. It helps you displace the data, although does not really improve the
predictability of the indicator.
Reply
When on the chart when i move my cursor over previous candle charts, I can see OHLC values change for
the instrument. in this case bank nifty however the values for the moving average indicator can’t be seen.
Thanks in advance.
Reply
Ah, not sure. It seems to be working for me. Can you contact our support for this? Thanks.
Reply
When you say 9×21 crossover on a 5min chart for intraday is it 9×2 1min OR 9X21day.Excuse me if that
Is a dumb question
Reply
Reply
ravi says:
September 28, 2016 at 1:27 am
In 5 min chart, each candle is 5 min duratuon ( u can call it period). so 9×21 ema crossover on 5 min
chart means 9 period and 21 period ema crossover.
karthik sir, pls correct me if i m wrong.
https://zerodha.com/varsity/chapter/moving-averages/ 51/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
Pls clarify.
There was a hammer formation in L&T two days back with good volume and traded near the strong
support in EOD chart.
But the price has broken the 50 & 100 Day SMA.
Is it good in going long?
Reply
Hammer by requires a downtrend as prior trend, do you see that happening in L&T?
Reply
Hi karthik,
can we initiate a buy(long) just after some time or half wau through when the faster EMA crossed over the
slower moving EMA and will be still be able to book profits when the reverse cross over happens?
Reply
Well, its always good to have some confirmation and play it safe
Reply
sudheer says:
October 31, 2016 at 7:03 pm
Hey karthik,
Thanks for that .I have one more question. Is there a way where we can track if 50 day EMA
of stock or for that matter any stocks under watchlist crossed over its 100 day EMA and
create alerts for that so that we can take a look at trading decision.Thanks again for your time.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 52/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
sudheer says:
November 2, 2016 at 12:13 pm
Thanks karthik
Welcome!
sir how to find support and resistance in uptrend and in down trend?
Reply
Reply
Sir , Can you tell me which is the good ema crossover system for day trading by your experience?
Reply
Reply
pankaj says:
December 1, 2016 at 8:47 am
Reply
Reply
psamant81 says:
December 1, 2016 at 6:44 pm
Reply
Reply
psamant81 says:
December 3, 2016 at 8:04 pm
I’d prefer either the 10mins or 15 mins candles for intra day trading.
Karthik, for intraday trading, if 9 period ema crosses 21 period ema on 5 min chart we can buy and be in
trade till crossover changes direction and come out of that particular trade. my question in at that point can
we consider of entering in new trade to sell and square off later when ema crossover changes direction
again? and keep repeating it whenever we get signals? or is there something that we should go long only
or short only based on some other signal or conditions?
Reply
Yes, you can trade the averages…works well as long as there is a trend in either directions. But
when the markets consolidates, the whipsaws tends to give you many trades with none of them
materializing.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 54/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
Reply
Reply
I’m afraid not. Also, I’ve not really heard of a double MA. Is it a custom indicator?
Reply
Pichaimani A says:
January 4, 2017 at 2:13 pm
The formula for DEMA is: DEMA = ( 2 * EMA(n)) – (EMA(EMA(n)) ), where n= period.
Double Exponential Moving Average (DEMA) is a smoother and faster Moving average
developed with the purpose of reducing the lag time found in traditional moving averages.
If Zerodha introduces Double/Trible EMA, it will be great for traders . Thanks in advance
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 55/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Ok. I’m not sure if we can have this in Kite. However, you can use the exper advisor
feature in Pi and run your own custom indicator. Check this –
https://zerodha.com/expert-advisors/
Reply
MA Crossover seems to indicate a trade very late. Please refer chart of DLF. It is moving up since 27th
Dec 2016 when its price was INR 102. Today it have moved to INR125. DMI also says that it is in a trend.
But still 9-days EMA hasn’t cross 21-days EMA. Most probably it will cross tomorrow i.e. after price
moving 20%!
Reply
Yes, you are right. In fact, for this exact reason the moving average is considered a lagging
indicator.
Reply
karthik please make some arrangements in kite so that we can increase the thickness of movingaverage
lines as per our requirement right now it is very thin and we can not increase the thick ness what is
happening is we can not see proper with such thin line with other indicators such as ichimoku trading
system along with moving average.please do it its a request
Reply
Venkat – when you hover over the line, it automatically thickens. Have you tried this?
Reply
and another request increase the colours choices in kite of all indicators which is restricting a lot and
confusion goes on with less colour choices. thanking you.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 56/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
chaitanya says:
January 5, 2017 at 11:42 am
4. im able to plot the graph at 10:00 and the graph is showing EMA line from 9:30
Reply
chaitanya says:
January 5, 2017 at 2:48 pm
hello karthik sir….i think i found a solution for my problem on my own…pls tell me whether
it is right or wrong…if i take 1min chart from yesterday itself then i will get correct signal to
enter into the trade in fact i can enter into the market at 9:15 or 9:20 itself…for eg for todays
market i will take 1min chart for yesterday itself..am i right sir..
Reply
Reply
The periodicity can be anything – ranging from 1 mins to 1 day. If you opt for 15×30 mins…then
you will have to wait for 30mins for the data to generate.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 57/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
hello karthik sir…i have another doubt pls dont get angry on me…this may be silly math doubt but my is
not able to agree for this
YES BANK is trading at 1168 at 9:20 this morning and at 11:10 first EMA crossover too place and got
sell signal at 1188 (im not using expert advisor sir…im observing the ema line move and when it crosses i
sell)..for 1 lot of jan futures we get 14000 profit and after 1.5hr again we get the same buy and sell signal
which gives profit of 23per share total profit will be 29400… sir do we get such huge profits on
investment of 40000 using EMA lines…is it safe trading with EMA during trend…im not able accept the
fact that we get such huge profts…pls help me
Reply
It really depends on how when you manage the trade. There is a big difference between paper
trading and actual trading. Things appear to be in control when you paper trade…but with an actual
trade its easy to lose control. However, a good trade aims to be indifferent to the two. Its hard to
achieve this state…but one can.
Reply
chaitanya says:
January 6, 2017 at 5:58 pm
sir can you be ore specific about the difference…i am a client of zerodha form 2013..im
somewhat used to trading on live platform but i used to trade without using any technicals…
so i ran into losses so i thought i should learn and then trade…so i stopped a year ago and i
found varsity in last december it helped me a lot…ive gone through all the chapters..im able
to understand and visualize while reading…even though i have a little experience trading on
live platform still will i find difference… l will try to achieve the difference and thanks for
your support sir.. i bow to you
Reply
When you paper trade, you are emotionless. Even if you make a big loss, deep down
you know its not real. But when you trade in real markets, a small loss to give you big
pain. This make a big difference, as it can influence you to take irrational decisions.
Reply
Hi karthik
sorry to say u that i m really stuck in between the course I was so eagerly studying as at the crucial points I
cant see any charts mentioned by u. I m refering to my mobile pho e. Kindly let me know if there is way
out.
thanks
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 58/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Mehul – some of the graphs in the comment section may not be visible (there was an update which
messed up the images in the comments), but the graphs in the main chapter is.
Reply
Or if u can suggest any good book to refer on TA where all the aspects are covered
thanks
Reply
Reply
Hi karthik
Got the problem solved
Can see the charts
Kindly ignore the above msg
Thanks
Reply
Great!
Reply
what period ema should one use for daily and weekly charts?
Reply
No set rule here, Hemant. For short term, I use 9 and 21 period EMAs.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 59/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Dear Karthik,
Amazing Modules..!!!!
I have one question –
What role does OFFSET plays while looking at MA charts?
Reply
Thanks Shubham.
Reply
What is the difference between trend strength and momentum of stock? Both basically mean the same.
Reply
Reply
Reply
Reply
Reply
You will have multiple crossovers, hence too many buy and sell signals.
Reply
hello Karthik Sir… I may be wrong but in my opinion single EMA is more beneficial than crossing over
two EMAs because as per charts we are getting crossover(many times) in the end of the trend or at higher
point. Your words on this will help. Thank u..
Reply
Using two EMAs will help you identify longer trends and reduces the number of false trades.
Reply
In above charts all the averages giving buy signal after the market is already up and giving sell signal after
the market is already down, why?
Wouldn’t it be difficult to take decision when to enter and when to exit?
Reply
Reply
Dear sir
How to set up smoothened moving average 3,8,13 ( allegator indicator settings ) in Zerodha PI or in kite ?
Reply
Reply
Chandrasekaran says:
April 9, 2017 at 8:26 am
https://zerodha.com/varsity/chapter/moving-averages/ 61/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Other moving averages are there. But smoothened moving averages are not there, I think.
Please confirm. I think it is not possible to put the indicator of smoothened moving averages.
Reply
Reply
From the very beginning I read all chats on this moving averages forim
Lot of moving averages values time frames shared
As a filtered one can you please tell me which Ema values and which timeframe
Best for index, equity stocks and commodities
Kindly mention time frame for doing intraday as well one or two days holding
Thanks lot
Reply
Sreeram, as you may have realized there is no such thing as the best EMA/SMA. One has to
calibrate it to suite the time frame and stock (index) that her or she is trading. Having said that, I
think for intra-day 9 minute EMA works for me…and 21 day EMA for overnight positions.
Reply
Reply
Reply
Sreeram says:
April 13, 2017 at 11:22 am
Ema 9 crosses above 21 , we have to check Candle high value of the buy arrow candle
That high has to be broken on the following any one candles before reverse signal
Reply
I’m not sure, Sreeram. You need to back test this extensively before using it in the
market.
Reply
Sir ,
You mentioned 15 * 30 mins can be used for intraday and more aggressive trader 5 * 10 mins.
you mean to say in 1 min chart ,we need to use 15 ema and 30 ema cross over or 5 ema and 10 ema cross
over?
Reply
You can use any time frame and apply these averages. Shorter the time frame, more number of
signals and higher is the noise component. Higher the time frame, then vice versa.
Reply
Hence, moving averages help better for those who mostly invests for a long term purpose and for a short
term purpose we can use candlestick methods with volumes for better result.
Am i right?
Reply
Yup.
Reply
firstly i thanks very much for your insightful modules. secondly, trading in crude oil is baffling me. it
seems that there is no strategy trading in crude oil. whether 9×21 ema crossover works or any other
strategy. pls help and post some strategy of trading in crude oil intraday
Reply
All TA patterns are applicable on Crude as well…so try resorting to good old charts
Reply
Reply
You can apply the moving averages, however you need to backtest to check if it works
well. Good luck.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 64/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I am looking a chart on Kite and have got a 50 SMA drawn. Please let me know, how can I see the value
of SMA at any particular point.
Reply
Please enable the crossair and move along the curve, you should be able the see the value on the
right.
Reply
Vivek says:
May 6, 2017 at 8:49 am
Reply
Welcome!
Reply
Reply
Cheers!
Reply
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 65/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
i want to place 4 hour or 5 days moving average on 5 minute chart in kite ,how can i do this
Reply
To see an hourly moving average on a 5 minute chart, you need to multiply by 12 (60 min in hr
divided by 5 min candle) so this will be around 252 and it will need to be entered into the moving
average value box on the 5 min candle chart, Hope this helps.
Reply
Mahesh says:
May 20, 2017 at 2:36 pm
252??? i think for 4 hour ema on 50 mi chart it should be 48 ema .(60 mi *4 hours=240
mi/5mi=48), & anything for 5 days eod ema on 5 mi chart in kite
Reply
Instead Of Crossover Can Traders Use Only 50 Day EMA? Considering That The Price Closes Above 50
Day EMA And That Too Pretty Much In The Support Zone With Almost 50% Extra Volume Than It’s 10
Days Average Volume?
Reply
Reply
Hello sir
Reply
Suggest you drop in email to [email protected] , he will be able to help you out.
Thanks.
https://zerodha.com/varsity/chapter/moving-averages/ 66/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
113. TK says:
June 11, 2017 at 11:58 pm
Hi, I have been following these modules and they are just great. The explanation and examples are simply
amazing. I have a little doubt here and I guess I am totally confused with the below information…
Rule 1) – Buy (fresh long) when the short term moving averages turns greater than the long term moving
average. Stay in the trade as long as this condition is satisfied
Rule 2) – Exit the long position (square off) when the short term moving average turns lesser than the
longer term moving average
From the graphs it appears that it is profitable to go long when short term moving average is lesser than
the long term (because share prices are low) and square off when short term goes higher than the long
term (because current prices are higher). What am I missing?
Reply
Crossover of moving averages gives you more conviction for the ensuing trend. When the short
term MA is lower, the chances of the trade going sour is higher. Hence its better to wait for the
crossover.
Reply
Hello sir
I have a little confusion in moving average. When we analyse day chart and use 50 MA it means we are
using 50 days MA. Now when we are using 5 min chart for intra day and using 50 MA, what does 50
stand for? Does 50 MA mean past 50 min data or 50 sticks each of 5 min?
Varsity student
Thank you
Reply
It means you are looking at the average of the last 50, five mins candle
So generally speaking, if you are looking at last n period moving average for x frequency, then
essentially its the n period moving average of the last x candles. Hope I dint confuse you with that!
Reply
If the frequency is 5 min and i am looking for 20 MA it means 20 candle sticks having 5 min
of frequency. Right? And if it is true then i am looking for past 5*20= 100 min data?
https://zerodha.com/varsity/chapter/moving-averages/ 67/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
What i want to say is if i am using 75 MA for 5 min candle stick , i am looking for last
one day data, for 150 MA i am looking for last 2 days. ( No of 5 min candle sticks in
one day= 75)
Reply
No, as I said it is not a straight forward multipication. In this case the system will
calculate the average closing of that last 75 data points and plot the value on 76th
day.
Yes, you are looking at 20 period average 5 mins candles. No, 5*20 does not mean 100
min data. This is not a straight forward multiplication.
Reply
Hello Karthik,
Is EMA is available on Kite ? Since i did not find anything like EMA on Kite there is just one thing
available called Moving Average, if it exits on Kite can you please tell me from where to access it?
Reply
Of course its available. Load a chart, select Moving averages from studies and change the type to
exponential, and you are good to go
Reply
Thank you .. now its perfect..! I have been doing some thing similiar.. Now more smooth with
Expo
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 68/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Hi,
In Kite I can see Moving averages as a study but in Pi all I see is moving average envelope.
Why is the difference?
Reply
Reply
Hi Karthik,
Thanks for your response, but could you explain a bit more about the engines and
does that mean Pi will not be able to show EMA?
Charting engines are programs which power charting on trading platforms. EMA
does work on Pi.
First of all thank you very much for all modules which is highly informative. However, I would like to
know if there is Demo account for trading practice and video classes for this technical analysis.
Reply
Thanks for the kind words, Nishitha. Unfortunately, there are no demo accounts. But we do have a
ton of videos on our youtube channel. Check this out –
https://www.youtube.com/user/zerodhaonline/playlists
Reply
sathya nr says:
July 22, 2017 at 4:37 pm
https://zerodha.com/varsity/chapter/moving-averages/ 69/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
YOU CAN TRY NSE PATHASALA FOR MOCK TRADING PRACTICE. I FIND IT A GREAT
TOOL TO KNOW HOW WE ARE GOING TO PERFORM IN REAL LIFE TRADING. LINK IS
THERE IN NSE SITE
Reply
Reply
The content is great and way it is presented is impeccable. I thank you for creating such an enriching
resource. Can you please tell me which tool do you use for plotting? I will be grateful.
Reply
Thanks for the kind words, Raghav. I use Zerodha’s Kite platform for charting.
Reply
Sir, I trade in mcx metals mostly I use 15 minutes chart.. I want to ask that is it possible to trade in 1day
candle basis.. Is it safe to enter a any intraday position
Reply
You can look at EOD data, in fact, if you ask me this is a better approach.
Reply
Sk says:
July 31, 2017 at 5:31 pm
Sir how to write script for triple crossover 15,21,34, to get alerts or to backrest? Can u please
guide..
Reply
Sk says:
July 31, 2017 at 5:32 pm
*backtest
https://zerodha.com/varsity/chapter/moving-averages/ 70/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
End of day data is called EOD. You can see the EOD data on kite itself.
Reply
Sir I want to ask you a question personally that sir I made a lot of loss in this day trading I’m not good at it
but I learned all technical analysis indicators and all by help of zerodha varsity but still I’m in loss, sir I’m
very beginner in this market most probably 6 months.i’m 22 years guy . But my capital Is all about to end
I’m struggling sir from 150000 lakh rupess now I have only 30000 rupess.. Sir can you tell me that how
can i recover my capital any strategies.. Please sir please help me to find a right way.. My email Is
[email protected] sir if you want then you can pm me or you can tell me here.. Please sir
Reply
Sourav, I’m really sorry this happened. My guess is that you have over traded without a proper
thesis. Recovering 1.5L from 30K is a huge task and I’ve explained why here –
https://zerodha.com/varsity/chapter/position-sizing/
I’d suggest you take a break, get your act right and then approach the market with a fresh mind.
Reply
Thank you very much sir. I read very carefully those information you gave me.. I exactly did same as
poker game.. Now I understand thank you for that information..
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 71/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
excellent writing and explanation for beginners in trading. of all the material I read its the best!
Reply
Thanks, Gautham!
Reply
Hi Sir,
The moving average study given in zerodha is simple moving average or exponential moving average?
Thanks,
S
Reply
Both.
Reply
Dear sir,
in this chapter you say 15×30 minutes cross over for intraday. but in MA the minimum period is 1 day
how can we fix 15×30 minutes crossover or 5×10 minutes cross over.
Reply
Reply
Excellent explanation on SMA & EMA I read first time for average trading. It clears all my doubts
Reply
Happy learning.
Reply
Hi Karthik
I understood that MAs are good indicators for going long on a stock. Does that same hold for shorting
too? Is it a good option to short when short term moving average goes lower than the long term moving
average?
Also, I am new to trading so I wanted to understand how exactly going short works. In a call, we have the
actual possession of the stock, and we can sell later whenever we want. But in shorting, do we have to
compulsorily close the trade the same day itself? Or is it possible to carry it for 2-3 more days/weeks?
Reply
Yes, it does. You can use MA to short stocks as well. I’d suggest you look at the explanation on
shorting here – https://zerodha.com/varsity/chapter/commonly-used-jargons/ and then here –
https://zerodha.com/varsity/chapter/shorting/
Reply
Hello sir,
In 9×21 ma, if 9ma is already above the 21ma.. How to decide the entry then?
As the stock is in uptrend cause its 9ema is already 21 ema can u pls suggest when to enter
Reply
Reply
how to set multiple moving average like 50, 100, 200 in kite?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 73/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
EMA lines when viewed through charts on KITE on desktop , are very thin and almost not visible . Why
don`t you give us an option to increase the thickness of the line so that they are always visible boldly .
When the same EMA line viewed on Android mobile, thickness of lines is OKAY but would like it to be
bolder / thicker — Kindly give us the option of selecting line thickness on desktop & mobile
Reply
The lines are quite thick already, anything thicker than this can get quite distracting. Don’t you
think?
Reply
venkatpai says:
September 17, 2017 at 9:09 am
Issue is when you choose multipe EMA and give multiple colours,
For single EMA , line becomes bold when you hoover mouse above it.
Difficulty is when having 2 or more EMA`s I cannot hoover my mouse, above all EMA`s
simultaneously, to check crossovers
On desktop its not visible properly even when you enlarge the area
On Investing.com website , see how they allow you to increase line thickness as per your
need. Its an excellent idea
Reply
Reply
I have shifted to Zerodha recently, as it was recommended by one of my friend. Main reason was the
flexibility it allows and this study material, which is simple to understand for a novice trader like me.
Thank you for this study material.
I have one question on EMA. This tool seems to be a effective way to decide on trades. However, is it
available in Zerodha account or it needs to be purchased separately. I mean unless I have the chart, I will
be unable to decide on trade. OR is it that I will have to manually calculate and plot graphs in Excel.
Please guide.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 74/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
EMA is an integral part of the charting engine in Kite. No need to pay for it. I’d suggest you look at
videos on Kite here – https://www.youtube.com/watch?v=1Jy23XfKwG8&list=PLkxTRam6E2V-
okv6gwQlt6dLTsn0v6CD1
Reply
Hi karthik,
5 days EMA is calculated as by taking closing price of 1st,6th,11th,16th,21st/ 5 (assuming there is no
holidays in between ). Am i right????
Reply
Reply
Reply
I personally prefer EMA crossover on an EOD basis. However, if you have a trade live, then
tracking it during market hours helps in better management.
Reply
for the intra day study the 9×21 , so here 9 and 21 in the day only? right? EMA unit is only in days right?
hope i unestand it right
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 75/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
If you load 9 x 21 on an EOD chart, then 9 and 21 will represent days….however, if you plot this on
a 5 min chart, then 9 and 21 will represent 9, 5 mins chart and 21, 5 mins chart.
Reply
himanshu says:
November 2, 2017 at 9:39 pm
thanks for the reply. but can u please explain what is it.and what is offset or and field. and
why i set to EMS then it is automatially set to SMA only? thanks in advance.
Reply
Reply
Mr Rangappa
Your observations are very good a person will never make loss if he follow this system in trading ,i am
using this 30 to 50 hourly time frame even he will have losses it will be recovered very soon but one
support he must take is of fractals ,and ADX and DI crossings .
Thanks for what you have written here .In my opinion this is one of the best methods of trading .
Your opinion on fractals and ADX DI indicators in Kite zerodha it is doing fine.
Thanks
sunil kumar minz
Reply
Happy learning Sunil. Remember, there is no foolproof trading technique – always watch out for
risks
Reply
SUNIL says:
October 28, 2017 at 1:46 pm
Stop loss is there to cover risk,here fractals comes to play and ADX indicator ,that,s my
question for you i just wanted your opinion in using these indicators as your total article on
moving averages is very very help full and superb.Because i want to enhance my lots with 10
to 15 lots of nifty and bank nifty futures,i wanted your opinion.
Thanks again
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 76/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I’ve heard about fractals, but have no experience trading based on that. So I’m not sure
if I can give you any meaningful inputs.
Reply
SUNIL says:
October 30, 2017 at 8:55 am
Thanks
Cheers!
I have a question on the EMA cross over strategy. When the faster moving EMA has crossed above the
slower moving average we will create a long position. When the faster average moves below slower we
square of the position.
Reply
You can, in fact, many active traders do – it really depends on your capital and risk appetite.
Reply
Reply
Reply
Hi, how do I add EMA (say 50,100 or 200) and volumes info. in the Charts in the Kite. Thanks.
Reply
Load the moving average, select the ‘Volume’ in the field section instead of the default which is
‘open’.
Reply
Hi, What if 50, 100, 200 EMA never intersect for almost a year. what does that signify.(example Dilip
Buildcon)
Reply
Well, that means the stock is trending and there are no signals to trade. The only option is to reduce
the frequency and look for shorter term signals.
Reply
Hi, Suppose I have gone long when the faster EMA crosses and is above the slower EMA
How does one determine the target price using the “Moving average crossover system” for example “9
day EMA with 21 day EMA” or “50 day EMA with 100 Day EMA”. Thanks.
Reply
If its purely a MA crossover system, then you will have to wait for the reverse to happen i.e wait for
the faster to move below the slower MA.
Reply
Alok says:
November 7, 2017 at 11:02 am
Thanks. Really appreciate the effort you and your team are putting in. Please keep up the
good work.
Reply
Cheers!
Reply
Nishant says:
November 24, 2017 at 1:12 pm
Hi Karthik,
This chapter has been quite an eye-opener for me. At least, now I am confident
that we can create good trading systems. I have been backtesting MA crossover
system and it seems to give good results for many stocks on NIFTY. Yes,
whipsaws are there but then it also lets one ride on rallies. Thank so much.
My question, how does one set a stoploss and target while placing orders, say on
a Zerodha platform like Kite?
Does Bracket order make more sense to be used in this trading system because it
has the option to add a trailing stoploss? Even, with trailing stoploss what should
be the approach to set a target in advance if we aren’t able to monitor the chart
minute by minute?
Nishanth, you can always use S&R for identifying target and stoploss. Also, the
idea with MA is to follow the trend, given this, there is no way you can identify a
target or stoploss. You just ride the wave, as long as it lasts.
Hi There Mr rangappa
In my viewpoint larger time frame MA crossover works fine for investments and especially for stocks e.g.
50 day and 100 day or 20 day&50 day.while for trading purpose 20 hourly and 50 hourly for trading . your
opinion,please.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 79/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
SUNIL says:
November 9, 2017 at 1:41 pm
Thanks
This type of support gives moral booster that i am not totally on wrong side,as i am doing fine
with my trade and investments,losses are inevitable but small losses and big gains should be,
our motto.
Reply
Reply
Reply
Sunil, thanks for the kind words, I’ll pass that compliment to our beautiful technology team
Lots of work getting done in the background, Z-Connect will be updated with all that info soon.
Reply
Reply
I’d prefer EMA crossover for overnight position panning across multiple days.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 80/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Sir,
for intraday what is best settings for MA, EMA, Supertrend? Which indicator is better to use for intraday?
Reply
I’d suggest you stick to EMA. My personal preference is 9 over 21-minute candles.
Reply
Hi Karthik
Back with another query, Please correct me. The below details for EMA cross-over
Reply
Reply
sainath says:
November 20, 2017 at 11:41 pm
Thanks Karthik
Reply
Cheers!
Reply
Hi Karthik,
We have interacted on another forum as well.
Would appreciate if you could furnish me with the tradescript code for calculating DEMA and TEMA. I
have the formula but I am unable to compile EMA of EMA i.e. EMA(CLOSE,EMA(CLOSE,50)) in Pi.
The argument required is ‘periods’ but I guess the EMA(CLOSE,50) returns a vector. Is there any math
function to convert the vector into integer (or period)? I went through the tradescript guide but in vain. Or
is there a direct DEMA/TEMA function that we can access? Any help would be highly appreciated.
Thanks.
~Abudhar al Hassan.
Reply
I’d suggest you email my colleague Srini for this – [email protected] . Thanks.
Reply
Reply
Good luck!
Reply
karthik for crudeoil trading what ema crossoverwould you prefer for 15 min,1 hour,daily timeframe
Reply
Reply
esan says:
November 22, 2017 at 11:41 am
https://zerodha.com/varsity/chapter/moving-averages/ 82/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Got it. I think the 9 and 21 over 15M EMA will be good, at least for a start.
Reply
I’m using 9 day EMA with 21 day EMA for intraday. I need your suggestion what is the time frame along
with this should be used.
Thanks for the material and this helps me a lot.
Reply
Try the intraday chart of 10 or 15 mins for the last 5 trading sessions.
Reply
Prakhar says:
December 1, 2017 at 12:36 pm
Can you elaborate what does trading sessions refer in above context
Reply
The times when markets are open is referred to as a trading session. For example, we
have 5 trading session, Monday to Friday between 9:15 AM to 3:30PM.
Reply
karthik build some strategy upload page so that traders can benefit from it..
Reply
Reply
A golden Crossover is when a 50 day moving average crosses over a 200-day moving average.
Reply
Hi Karthick
can i use this MA cross over for Crypto currency also? What is your advice as cryptos are very volatile?
Reply
The basic premise of TA is that it can be used on any asset which has time series data, so given this,
you can apply TA on Crypto, in fact, I’ve seen people using TA on Crypto. But the swings are wild
and your stoplosses / target needs to be deep.
Reply
I have one query. I trade in crude using 30 minutes mostly for intraday (Sometimes 1 to 2 days). is it ok to
use 9 * 21 EMA and what difference does it make between using 15 minutes chart v/s 30 minutes chart.
please explain
Reply
Yes, 9*21 EMA works, however, I’d suggest you do your backtesting once. Generally, higher the
time frame better is the quality of signal…hence I’d prefer to use the 30 mins versus the 15 mins
chart.
Reply
Hi sir I just wanted to know can we do intraday trading for new issued IPO in the market i.e the same day
on which it was listed.Could you help with that? Do we need to subscribe the IPO beforing listing?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 84/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Yes, you can trade intraday once the stock is listed on the exchange. Just make sure that the stock
doesn’t belong to Trade to Trade category
Reply
Reply
Reply
Dear Sir,
How to apply the 5 X 10 Minutes cross over in KITE platform?
Reply
All you need to do is to load two moving averages on the same chart i.e the 5 and 10 mins chart.
Once you have these on the charts you will know when the crossover happens.
Reply
Hi Karthik – it is said that MA system works in trending market. Does it matter whether trend is up or
down with respect to trade signal? I mean suppose stock is in UP trend but stock price cross EMA from
+ve to -ve(may happen once stock made top), should we go for shorting?
Reply
Not really, MA system just confirms the trend – and the trend itself can be an uptrend or a
downtrend. You can short provided you have the staying power – cause the trend can last for few
weeks.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 85/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
The plain vanilla single MA seems to be more profitable than the cross-overs.
The crossover lags too much and the sell signal in the above charts is more or less near the buying level or
even lower sometimes.
If we look at the price level when those cross-overs took place we don’t really see cross-over making any
sense.
Is it just the above examples or this is the inherent issue with crossover strategy?
Reply
Reply
Lets say my trading rule is to exit if the price traces back to 30 EMA. Now next day split is announced say
6:35. so the price opens below 30 EMA, but i know that this is not a retracement but due to the split. So
how should i discount this factor and adjust my exit strategy? If you can give any new idea?
Reply
For this, you need to look at the split-adjusted (or bonus adjusted) charts.
Reply
where can i find bonus adjusted chart for split adjusted chart?
Reply
Reply
Dear SIr,
Presently i am using kite version 3 for trading but I am unable to set time frame of 15 min (EMA) in as it
has least count of 1 day.
Plz help.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 86/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Not really, Nitish. Load the chart for 15 mins and overlay with MA, set the period as 15, and you
will be good to go.
Reply
Hi Karthik,
Can we use this system for only going long or can we also do shorting as well using EMA’s
Reply
You can use this for shorting as well, Satish. But works best with futures.
Reply
dear sir
how do i draw emacrossover on kite
Reply
Hello sir, in one of the discussions you have mentioned to set trailing stoploss based on smaller moving
average, Can you relate the same for crossover of 9 x 21?
Reply
Reply
Guhan says:
February 22, 2018 at 1:58 pm
in a discussion you suggested to use short term moving average to trail the stoploss to lock
profits. So in a 9 x 21 crossover system what could be the short term moving average that
could be used to trail stop loss Sir?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 87/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
The 9×21 EMA is quite a short term already, not sure if deploying another MA on this
system is justified.
Reply
Guhan says:
February 22, 2018 at 2:07 pm
I am very new to share market Sir, varsity inspired me to trade Sir. While backtesting I found
that it is difficult to test a strategy with stoploss and trailing stoploss, so my question is ‘Is
there any quantitative way to fix stoploss and trailing stoploss for MA crossover strategy?’
Reply
Reply
Hi Karthik,
I have a question regarding the trade setup while only relying on the cross-over MA trading system.
Suppose, I’m interested in a short-term trade, thus using a 9 x 21 EMA. I take a long position when the 9-
EMA breaches the 21-EMA. What would be the trade set-up at this point as the market would be higher
than the intersection point of the EMAs?
Suppose, the market is trading at ₹107 and the intersection points of the two EMAs is ₹102. Would the
following trade-setup make sense?
Buy at ₹107 (the market) and the stop-loss at ₹102 (the intersection point).
Reply
Yes, buying at 107 with 102 as SL is perfectly valid. Also remember, MA is a lagging indicator,
hence the signal to buy or sell is always delayed.
Reply
Siddharth says:
February 26, 2018 at 12:45 pm
Thanks Karthik.
https://zerodha.com/varsity/chapter/moving-averages/ 88/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I backtested this particular algo on Streak and didn’t get good results.
Scrips – SUNPHARMA NSE, ICICIBANK NSE, ITC NSE, INFY NSE, RELIANCE NSE
Initial Capital -10000000
Quantity – 100
Stop Loss – 1%
Target Profit – 0.5%
Order Type – MIS
Candle Interval – 1 Hour
Algo – Buy when 9EMA crosses over 21EMA and exit when 9EMA crosses down 21EMA.
All of them results in losses. Any way I can improve this or can you shed more light on this
algorithm and how to use it correctly. Thanks.
Reply
Firstly, a SL of 1% against a target of 0.5% is not a great idea. The risk-reward just
does not match. It should be the other way round.
Although I admire MA for its simplicity, I’d also suggest you overlay this with
candlestick pattern.
Reply
Reply
Reply
In a Kite chart, click on Studies, search for Moving Average and enter the period as 30.
Repeat the same process and enter the period as 15. You can choose different colours to recognise
the crossover
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 89/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Karthik
First of all, heartfelt thanks to you and Zerodha for introducing us to stock trading fundamentals in such an
informative and lucid manner. I had a query on MA – volume charts on kite are in blue and red unlike the
all blue charts shown in demonstration. Now as you told volumes correspond to the number of shares
bought not sold in a time period so how do we track in dual coloured charts -what does the large red
coloured bars reflect – high volumes of selling and thus smart money exiting … is it? If not, can we switch
to single coloured volume charts on zerodha.
Reply
The colour of the volume denotes the price action on the stock (if the close is higher than previous
day’s close, it is a blue bar, otherwise red) for that timeframe.
Reply
Reply
Pankaj….do this. Take a random data array of 30 data points, plot 9 and 21 day moving average.
Include a large data as 31st data point and see how both the averages react.
Reply
Hi Karthik
First of all let me thank Zerodha Team for providing excellent technical information & thank you also for
giving replies on all queries patiently, just now I have gone through MA chapters based on which trade
can be initiated at crossovers at different time frames,say 15 – 30 mnts time frame with 9EMA X 21EMA
for intraday then what should be target & stop loss points based on different MA cross overs? because a
full time employee may not find time to watch position continuously !! after trade is initiated stock/index
price may rise and come to back to same price where trade was initiated or even it can go below that also
in that case that there may be huge loss if trade is in futures ,just for time being let us ignore profit /target
but what about losses then how to avoid /arrest such big losses which can happen within minutes due to
any unforeseen market conditions?
I hope you will reply me with best solution for the same.
https://zerodha.com/varsity/chapter/moving-averages/ 90/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
The moving average system you are talking about comes with its own sent of stoploss and target.
YOu just have to follow the crossover on the two lines and follow through, and the system will
guide you when to enter and exit. In fact, all trading systems come with their own SL and target.
The stoploss and target is applicable when you trade based on candlestick patterns or any other price
charts.
Reply
Bhoopal says:
March 13, 2018 at 12:22 pm
Hi Karthik,
Thanks for your reply ,but still I have some doubt for example “x” stock opened @ Rs.500
whose high & low prices were Rs. 520 &Rs. 510 respectively on 15 mnts candle time frame
and later crossover was happened at Rs.515 at which I have initiated the trade, now should I
fix SL as Rs.510/- based on previous candle low & target as per EMA next crossover ?
Pls clarify & I will be grateful to you if you can cite an example in your reply based on MA
crossovers.
Reply
It is best that you follow the MA trend and accordingly exit the position(either Stoploss
or Target) when there is a reverse crossover.
If your having issue with actively following the positions, you need to develop a trading
system with a different indicator that gives you a fixed stoploss that you could set while
setting up the trade (possibly Fibonacci retracement lines)
Reply
I am using 3 min chart, so please tell me which one is best setting for crossover moving average and
which setting neet to be require like simple, exponential or etc..
Reply
Amit, 3 mins is too short according to me. Please try 15 min at least.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 91/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
In all the above mentioned trading systems (especially crossover EMA), considering a stock whose prices
fluctuate frequently, by the time the shorter EMA rises above the other, the prices would already have
risen considerably. Aren’t we missing out on chances of booking higher profits already.
In most of the cases in the above graphs, the prices have been hesitated while the shorter EMA is above
longer EMA.
Reply
Yes, that’s the reason this is called a lagging indicator. The reason one would trade using these
systems is to capture a part of the larger move…and not the entire move.
Reply
Is there any was to set positive moving average and negative moving average with different colors in Pi.
(By positive moving average i mean suppose we are on daily chart if 20d moving average for today is
more than the 20d moving average of yeserday.)
Reply
Ankur, isn’t it easier to read the movement by looking at the moving average line itself? If it has
moved up or down from yesterday’s candle
Reply
How do I make a EMA crossover system in android kite app? Is there any way I can set targets using this
mechanism while doing intraday trading? I wish to use 50 and 100 EMA crossover with 1min points?
Reply
Himanshu, you simply have to overlay the two averages on the price chart. Alternatively, check out
https://www.streak.tech/
Reply
Hi Karthik
Few doubts —–
1) Does intraday trades have slightest of an impact on the stock prices or they are purely governed by
delivery based trades ?
2) If I place an intraday order and convert it to delivery by the end of the session, will it highlight in the
overall volume for the day?
3) Was shorting banned during the 2008 global crisis ? If yes then was trading in F&O banned too ? (Little
out of the topic I Know)
Reply
Reply
On studies box which one should be taken for the moving cross over system?
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 93/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Sir,
What is the difference b/w linear weighted moving average and exponential moving average,, And i
cannot find linear weighted moving average on kite.
Reply
Ah, I’m not sour linear weighted MA. I need to figure this out myself. EMA gives more weight to
the recent data points as opposed to the older ones. So in a 10 day EMA, data points of 7,8,9, and
10th day is given more significance as opposed to 1,2,3,5, and 6th day.
Reply
Excellent module and response karthik. Does trend matter in crossover MA system. If sort is placed where
slower MA crossed faster MA , at that point trend needs to consider or not?
Reply
In fact, MA is an indicator of trend. So if there is a trend, the MA will let you know.
Reply
To use the exponential moving average crossover between 9 day EMA with 21 day EMA ( upto few
trading session) and 25 day EMA with 50 day EMA (upto few weeks) what should be the duration of
candlesticks ? Should it be 15min or 30min or 1hr or 1 day ?
Reply
If you are using intraday, I’d suggest you use 15 or 30 mins. Else EOD for swing trades.
Reply
Zerodha Team, Need your help. I went through the videos, varsity docs, but not confident yet on EMA
period setting. I would like to learn about EMA period usage in Kite. Using Kite Suppose I am viewing 15
minute candlestick chart and I have applied two EMA as
EMA with period value 15
EMA with period value 30
1. Can you please tell me what is exactly happening here?
https://zerodha.com/varsity/chapter/moving-averages/ 94/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
2. Does it mean I am comparing EMA (15min into 15) vs EMA (15min into 30)? i.e., 225 min EMA vs
450 min EMA?
3. How do I apply 15 x 30 minutes EMA on a 15 minute candle?
4. How do I apply 15 x 30 minutes EMA both on a 3 minute candle and on a 5 minute candle on the same
chart itself ?
5. How should we calculate the period in kite for days, hours, minute on different candles say
3min,5min,1hr candle. I would like to know how the calculation works.
6. Does the calculation differs for commodity, stock options trading since the trading hours is different for
mcx, nse.
7. On a single chart of say crude oil
a. 3min candle: Apply 3 day Exponential moving average and 15 minute Exponential moving average
b. 5min candle: Apply 20 day ema
How to calculate the period in Kite and also does kite support the same with both 3min and 5min candle ?
Thanks in Advance Zerodha Team.
Reply
Reply
Pl tell how to get the 5 x 10 minutes moving average crossover to identify intraday opportunities. Thnx.
Reply
Please plot these averages on the price movement and look for crossovers. This should help you
with signals.
Reply
For short term trading we can use candlestick data of past 3-6 months with 50 x 100 day EMA?
But which candlestick chart to use as in EOD or 1 week charts for last 3-6 months?
https://zerodha.com/varsity/chapter/moving-averages/ 95/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
And for long term ie 100 x 200 day EMA we have to use 1 month candlestick charts and data period past
1-3 years?
Reply
I’d suggest EOD chart for this. For long term too, I’d suggest EOD charts.
Reply
could u suggest me some recommended and free technical analysis software (reputed) for performing ema
and sma, bollinger analysis etc
Reply
Reply
Karthik, how about waiting for 5 minutes to confirm if the Short MA is staying above Long
MA or reversing and avoid stop loss as the last chart?
Reply
5 mins can be a bit too short-term for establishing the trend, Chirag.
Reply
In the last chart, after first arrow, if we entered long, we would have lost as the price went down in spite of
SMA being above LMA. What do we do in such cases??
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 96/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
What is the best time frame to trade positional, say on Friday or Monday in Bank NIfty?
How many days should I consider for both moving average?
Reply
Also please suggest a good script that I can chose from Zerodha Expert Advisors page for my above
query. Thanks in advance
Reply
Try Infosys.
Reply
Reply
While reading your options module regarding choosing the right strike price, the first step was to decide
my prediction of the underlying.
In case of EMA, we don’t predict but go with the flow and make profits as long as the condition of sell
does not hit.
How to select a strike price in case I want to trade options using EMA Crossover system Intraday?
Reply
If the signal triggers at a point where there is ample time to expiry (like 15-20 days), go for slightly
OTM options…else stick to ATM. Remember, the chances of going wrong with ATM options is
low. This is assuming your analysis is right in the first place.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 97/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
W.r.t. Bank Nifty, I’d consider ample time to expiry as 3days or higher, right?
‘Cos on 9th Morning (Monday) 9AMA crossed 21AMA at around 26500 and if I had
purchased slight OTM 26700 if not 26800, then too would have made great money.
Reply
Yes, that would make sesnse, as long as you are talking about Bank Nifty weekly
expiry.
Reply
EMA is working like a charm for me. Today almost at the end of the day, I saw
on a 5 min 9*21EMA chart of Nifty Bank creating a long position. Immediately I
bought a nearest ITM strike (26800) at 84 and within 6 minutes the same chart of
Nifty Bank gave sell signal, made 10 points in no time.
Good luck, Chirag! Hope you have more success in your way.
As said regarding taking trades based on moving averages, that we should take all the trades which are
signalled , but does the technical analysis check list applies for trading with 50 ema?
Reply
In crossover system, should we wait for both averages to cross each other either buy or sell side? Because
sometimes till the averages crosses each other, the profit gets converted into losses.
Reply
Its better to wait for the actual crossover before initiating the trade, Archit.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 98/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
186. GN says:
July 16, 2018 at 12:03 am
Hi karthik,
In the kite chart, the moving average is Simple Moving Average or Exponential Moving Average?
Reply
Reply
“Buy (fresh long) when the short term moving averages turns greater than the long term moving average.”
Here when the short term EMA turns lesser than long term, can I buy an ITM PE Call, since I know that
the price will fall as the smaller has crossed the longer downwards?
Reply
The thing with MA is that it can crisscross the signal line a couple of times before the trend
emerges…by which time the option may lose its value.
Reply
I am thinking of using EMA strategy only when the trend emerges in a 15min chart. Ofcourse
what I earn will be very less if the trend reverses immediately but as you’ve also said, I will
make big during rallies.
I am a risk averse trader and have found moving averages will suit me for Option Trading but
the only problem is selection of strike price at that moment and the expiry.
1. Should I buy the next weekly BNF (not coming) expiry to reap gains of MA? (But
premiums are too high)
2. Currently I take a Long position if available on Thursday or Friday for the coming
Thursday expiry and square off in a day or two when the trend reverses, should I not do 1. and
continue with 2.?
Reply
Chirag, if the strike selection confuses you, I’d suggest you stick to ATM options.
1) Since you are buying, I’d suggest you stick to monthly options
2) Buyers need more time to expiry, so better to stick to monthly options.
Reply
Ok then I’ll stick to Nifty 50 stocks and keep scanning them for buying
opportunities of either CE or PE with strict stop loss. Thanks! Will keep you
posted by August end.
Reply
It means that price you see on the screen is reflective of all the known and unknow information
related to the stock.
Reply
Hi Sir,
1. What is an Offset in a moving Average? What is it used for ? What is the ideal value for this parameter?
( I could see this parameter in Kite).
2.What is displaced moving average?Is it used to forecast the trend?Kindly explain in details.
Reply
Offset helps you move (displace) the moving average into the future. There is no ideal value but I
see people use 5 days as default offset value. Both are similar.
Reply
CHIDAMBARAM V says:
August 9, 2018 at 9:59 pm
https://zerodha.com/varsity/chapter/moving-averages/ 100/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Sir,
What is the use of offsetting a moving average.In what way it helps in technical Analysis?
How to use it ? Can u explain in detail !!
Reply
Reply
Reply
Reply
Ram says:
August 9, 2018 at 3:39 pm
Thannks
Reply
Ram says:
August 9, 2018 at 3:39 pm
Thanks
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 101/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Hello Karthik,
I am adding 3 rd question,
Reply
Reply
Reply
Reply
Googe luck
Reply
Hi Karthik!
https://zerodha.com/varsity/chapter/moving-averages/ 102/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Can I get to know whats the MACD – MA Convergence and Divergence and how it is beneficial? I
understand Crossover is one of the key point of MACD. Can you explain this and why MACD isn’t
included in this topic?
Reply
Reply
I could not find out the EMA in the studies in Zerodha…. Can you please let me know if it goes by other
names
Reply
Open the chart in Kite, under the studies dropdown, look for the EMA option.
Reply
Hi Karthik
It seems you love moving averages,me too it rarely fails i will regret why in the early times i did not
realized this.These days kite is slightly not giving precise information in its candle bars,and not properly
works in first 2 minuts .Anyways it works fine.
Zerodha is the only brokerage firm giving such nice free classes on technical analysis Big thanks for it.
I would like to know if i combine mov.avg with ADX and DI indicator the momentum indicator
sunil k minz
Reply
You can combine it, with ADX or DI to gain insights into the strength of momentum.
Reply
Reg. EMA crossover, it looks nice but one hitch. STOPLOSS. You haven’t spoken anything regarding it.
If it is tight, probably one would get stopped out on a potentially profitable trade. If it is generous,
https://zerodha.com/varsity/chapter/moving-averages/ 103/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
risk/reward ration is not attractive. What is your view on “what should be the stop loss”?
Reply
EMA (or even SMA), is not the best indicator to identify SL, simply because it gets choppy when
the stock is moving sideways . You should opt for CS patterns instead.
Reply
Hi, When you said do 15 Minutes X 30 Minutes EMA for intraday. You meant period of 15 X 30 and 1
Minute candlesticks?
Reply
Reply
Anuragh says:
December 4, 2018 at 8:50 pm
Hello Karthik,
From INTRADAY perspective for Plotting EMA on 5 min chart I have queries below
1.what are the periods needs to be selected for both the charts so that I could see a crossover
happening.
2. What options needs to be selected for “Field and Type and Offset”
3. Should EMA be used only if there is any trend observed(Up trend or Down Trend) like
today as of 04/12/2018 SUNPHARMA was in downtrend . Please explain this elaborately.
4. What is the difference between Trend and Momentum . Aren’t both the same
Thank you In Advance.
Reply
1) You can start with 9 and 21 EMA on the 5 mins chart, check if this works for you
2) The field is the price. You can ignore the offset
3) EMA is a lagging indicator, it is used to identify the trend after it has gained some
momentum.
4) Yes, both are used interchangeably.
Reply
Anuragh says:
https://zerodha.com/varsity/chapter/moving-averages/ 104/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Anuragh, I’d suggest you change the settings to see which one works for you.
You can always check the rate of at which the returns vary i.e momentum to
figure out if a trend is in place or not.
Dear sir,
I just started learning TA, INDICATORs.in our Zerodha Kite, I didn’t find MA CROSS OVER indicator
in the studies menu. Where it’s available and at what name?
Thanks sir
Reply
You can observe the crossover when you load 2 or more moving averages on the chart.
Reply
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 105/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Sir,
Is there any Module for Mutual Funds? I mean how to choose best performing funds?
Reply
Reply
Reply
Yes, in Kite, load the chart and select Moving average. Now under the dropdown option, select Hull.
Reply
Sir, can you please tell me more about 15*30mins and 5*10mins for intraday I’m confused what is exactly
15 or 5. And also can you tell me the best crossovers to consider while intraday trading?
Reply
It is a 15 min moving average over a 30-minute average. There is nothing like the best crossover for
intraday. You will have to figure out what works for you by trial and error.
Reply
Hi karthi,
Can you let me know how we can keep moving average of 15min and 30min in KITE? I can
see only days i.e. from 1,2, 3, etc.,
Reply
All you need to do is change the frequency to the desired time frame, like 15 or 30
mins. When you load the chart, the first dropdown starting from the left gives you these
https://zerodha.com/varsity/chapter/moving-averages/ 106/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
options.
Reply
Can u help me with displaced moving averages and how to put in kites chart
Reply
Hi karthik,
can you suggest best cross over points for BANK NIFTY OPTIONS TRADING?
Reply
Reply
Hi Karthik,
Greetings! How to do the set up of MAs in Zerodha? I mean how do i select number of days for shorter
and longer MAs for the particular stock ? will the system automatically trigger the ‘Buy’ and ‘Sell’ signals
once appropriate conditions are met? Many thanks
Reply
The settings for long/short MA has to come from your own experimentation. I generally prefer 9
and 21 day EMA. If you are looking for automatic triggers, I’d suggest you look at Streak (available
for free this month) – https://www.streak.tech/
Reply
Hi Karthik,
What time frame we should keep while plotting the graph for the 9X21 EMA / 25×50 EMA for doing
positional trading (time frame of 10 to 15 days).
Thanks,
Manish
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 107/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
manish says:
November 12, 2018 at 11:11 pm
Thanks
Manish
Reply
Yes, Sir.
Reply
manish says:
November 13, 2018 at 11:42 am
Thanks sir.
Hi Karthik,
Moving Average crossovers are mostly lagging indicators. They often cause stop loss to be hit.
What else do you think will give better gauge of the market before moving average.
Reply
Gourav, I personally find MA to be the most veratile system/indicator. The lag is emphasised when
the stock is trending, but then when there is momentum in play, it lets you ride and book healthy
profits.
Reply
Hi Kartik.. I try to follow simple strategy.. Since I am new to Intraday trading, so I have set a target of
profit per day around Rs.2500/- per day and maximum loss of Rs.3000/- per trade and Rs.6000/- max loss
for a day. This means I stop trading for the day if I gain around Rs.2500/- or lose around Rs.6000/-.
https://zerodha.com/varsity/chapter/moving-averages/ 108/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I trade Equity Futures and only in 2-3 stocks because I have been tracking those stocks for a long time and
now I am familiar with them.
Its been a week and I have gained around Rs.16,000/- on a capital of 1 Lakh. Its too early to comment if I
can make this consistently or not. I would like to have your opinion….
Do you think my money management is fine considering the fact that I am a newbie?
Also it would be great if you can suggest what should I do to move ahead from here?
Reply
The risk to reward is not proportionate…in effect, you are risking 6K for a gain of 2.5K. Lets
assume you are have been lucky so far…what if you hit 10 straight loss-making trades in a row?
Reply
Yes. I understand that now.. Also I think it’s just my luck till now. I don’t have a robust
strategy which is backtested.
Can you suggest how can a beginner develop his own strategy..? And will you suggest any
book for that..?
Its just that there are too many strategies and trying and testing each one might not be
possible.
Reply
I understand, Anitesh. Why don’t you start with the time testest ones? Like the MA
crossover or the MACD+Candlestick pattern? You can also check https://streak.tech/
for backtesting your strategies.
Reply
Sir 9*21 for ema which is period and offset is it 9period 21offset or vice-versa
Reply
You can use this at any time period. I personally prefer the EOD time period, even for intraday
trading.
Reply
Sir to take nism certification varsity modules syllabus is enough for it.
Reply
Reply
Hey karthik,
I am new here and it was almost a brain storming session for me to read continiously till this chapter from
the first chapter of this module.. but it was totally worth it. I tried to find those single stick patterns and
analyse them they were of great help. I Also observed multiple candlestick patterns in various stocks and
then they were moving just as you said! And the way you explained these was totally simple as well as
descriptive. So thankyou for that.. clearly you have written that with all your heart so it was sooo hard to
stop reading it further..
Actually i had a query in moving averages as you said one should long when the faster moving average
cuts from below the slower moving average.. so can i do the opposite as when Slower moving average
cuts faster moving average from below can i enter into a short position? I tried to observe it and in infosys
i observed this two times in current month between 1 dec to 5 dec that if i had entered in a short position i
would have incurred a loss.. eventhough the loss is quite less in both cases i.e. almost a rupee difference
per share.. to be noted that i have used 9*21 chart in 15 mins timeframe… so i wanted to know your
opinion about taking a short position in the exact opposite situation when you suggested to go long.. also
please tell me what is EOD time period.. as i cant recall it..
Again Thank a ton for your efforts!!
Reply
Also if i entered in a long position and the faster moving average is way too high than the slower
moving average hence i am in reasonably higher unrealised profits.. and then i saw some dojis or
spinning tops or a hanging man or any other bearish pattern or even i see selling from the smart
money and we know we should trade in the flow where smart money is moving.. but on the other
side the slower moving average has not given any signal to settle the trade yet, should i wait for the
moving averages to cut and provide me a signal to sell..or settle it at the time i see bearish patterns
as if i wait for the faster moving average to come closer or even to cut slower moving average and
when it cuts i will realise relatively lower profits than what i could have booked if i had sold at the
time of getting a comfirmation from those bearish patterns. Also what will be the stoploss trigger in
cross systems.. i think that should be the point where we entered in trade but that can be hit multiple
times in some situations where market is not in complete upwsrd or downward trend. Please Correct
me if i am wrong here.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 110/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
In a sense true, Yash. In such a situation you can even trail your profits to lock in your profits
and ride the wave.
Reply
Thanks for the kind words, Yash. Such encouragement keeps us motivated
Yes, you can short the stock by all means. However, I hope you are aware that you cannot short and
hold the position in the equity market (Spot market). You will have to do this in either the futures
market or the options (buy puts).
Reply
Yes i am aware of the same. Actually i was thinking about going short in intraday Trades.
I am going to start getting in-depth knowledge of f&o soon with CA final SFM so that i can
get exam oriented as well as practical knowledge side by side. Will surely apply these
techniques in that segment. Also i tried to apply supertrend 7,3 along with EMA crossovers
and i found that supertrend was avoiding the trades that EMA crossovers would have
suggested in sideways market. So in such a case i want to know your opinion on which one is
better.. supertrend or EMA crossovers.. i thought why choosing one when you can apply both
simultaneously.. will there be any limitations that i am not aware of if using these two
simultaneously. Also i am having a track on volumes before entering a trade.
Reply
Supertrend uses MAs as a core concept. Traders sware by supertrend, but I’d prefer
good old EMA for its simplicity.
Reply
Sir,
If I choose a 3 minute candle and select 2 EMAs first of period 5 and second of period 10 then will it be a
15 X 30 crossover pattern?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 111/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Dear Karthik Ji
I want to initiate trades based on crossover system that too in Intraday time frame only,so when I should I
initiate trade?
either after particular time frame candle close is above/below crossover or just immediately after
crossover is done?
Can I use 5x 10EMA crossover on 15 mnts time frame or only I should use 9×21 EMA
I read in one of your answers that CS patter should be opt for SL for crossover system ? what is CS
pattern?
Reply
If you are looking at intraday, then you can initiate this based on a simple 9 and 21 day EMA
crossover. You can initiate this as soon as the crossover is done.
Reply
Dear Sir,
How do I use the 15 x 30 minutes crossover on the kite software or app? How should I get the days part
into minutes?
Regards,
Sid
Reply
Also can I use this for understanding stock movement for option trading? Which one should I use?
15×20 MINS? OR SHORTER?
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 112/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Check the 1st drop down on the chart, you can use this to modify the frequency.
Reply
Dear Sir,
Would plz suggest me best strategy for sure shot 30 points in Mcx Gold Intraday??????
Reply
Reply
According to u, what is best strategy to trade gold intraday??? Which EMA corssover
according to u is best for Gold intraday????
Reply
Well, trend following via EMAs certainly help, but may not be the best, Amit.
Reply
Hi, I tried plotting the charts after reading the content here, but i don’t seem to understand what “offset”
stands for in Zerodha?
Reply
Reply
Sir since moving averages are lagging indicators instead of going with full quantity can we go with half
quantity because before crossover there will be already trend will be established so instead of going full
we can go and trade with half quantity right.
Reply
Yes, you certainly can split your cash and manage the trade better.
Reply
CONGRATULATIONS karthik sir for becoming No1 brokerage in India congrats for the whole
zerodha team and nithin.
Reply
Reply
Sir what is market profile and order flow analysis and how important is it I don’t find any material here on
these topics.
Reply
Reply
Dear Karthik,
First all let me congratulate you for becoming India’s number 1 broker, absolutely amazing job.
I can tell you that you guys are the best and nothing can Zerodha’s trading platform.
All said, there is a small issue ( I think, it’s small and should be given attention to ). In your Pi trading
platform you offer Expert Advisory code for Ichimoku Cloud but the indicator itself is not available in the
Pi platform. After many reminders and emails to Zerodha I still get the same reply from you guys to use
Kite for Ichimoku.
https://zerodha.com/varsity/chapter/moving-averages/ 114/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
To be honest when you are planning your trade using a particular strategies/indicator it’s not very
convenient to change platform. You really want to see all the details in one screen so you can make your
trading decision smartly.
Also, I guess Ichimoku is consider a very basic Indicator which is available with almost every trading
platform in the world.
I just hope it not too much of work and by paying little attention to small details you will make many
people happy. I have seen in your Trading Q&A and observed that there are many request for the same.
So, I’ll really appreciate if you can take this matter seriously and try to help us by providing us Ichimoku
cloud in Pi software. At least I can say for myself that I’ll perform better if it is available for us. Once
again please please don’t ignore my request and hopefully you will help me out with this.
Thank you very much indeed for all you do for us. Really appreciated all the time and energy you put in
for us. Please please please don’t disappoint me on this one.
Regards
Ron
Reply
Good to hear from you, Ron. I will pass on this info to the team.
Reply
Hi,
Crossover EMA is explained brilliantly and in easy way. After a long research on crossover EMA, my
doubts are clarified in this article. Before reading this study, i was very confused with respect to which
crossover EMA to be used for short term trading and for long term trading. It will be very helpful for me if
you clarified that which time frame candle should be used for intraday trading.
Thanks.
Reply
Ajay, for intraday, I personally find 9 day EMA over 21 day EMA quite helpful. I’d suggest you
check this and improvise on it.
Reply
Thanks for reply. But which time frame candle should be used for intraday.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 115/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Like I’ve mentioned earlier, you can start with 9×21 and calibrate as you progress.
Reply
on 5 minutes charts??
Reply
Reply
Dear Karthik
EMA crossovers in addition to S/R levels you talked about is mixing of two independent strategies. Would
it not be better if we take every EMA crossover trade without considering S/R levels so that one big
trending trade will overshadow the marginal profits or few minimum losses..because after all we want to
ride the trend and it may easily surpass historical supports and resistances in that case leaving S/R levels
with no utility in bigger picture scenario.
Reply
Sunil, of course it does. In fact, if you decide to follow only EMA, then you should take all signals
hoping for that 1 trade which can compensate for all the tiny losses when the mkts traded sideways.
No point complicating this by looking at S&R.
My suggestion to look at S&R and EMA was from a very short term perspective.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 116/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Of course, you are free to add as many calibration techniques as possible to enhance the
profitability of your system!
Reply
Hello,
Can you please tell me what time frames and crossover EMA’s are ideal for intraday and swing trading. I
am confused a bit.
Thanks in advance.
Reply
I personally prefer EOD time frame. Crossover EMA’s…hmm there is no such thing as ideal
YOu will have to experiment and figure out what works for you.
Reply
Sir I think 9*21 moving average is better than 9*18 MA crossover is it true?
Reply
Not really, what works for you may not work for others. No good or bad MA.
Reply
Today I buy stock of JSW steel and on basis of Bollinger band macd and some 1-2 other indicators.Today
is the bearish market and my stoploss is hit.How can I find my mistake in this trade and I took risk to
reward as 1:2.
Reply
You need to access the overall set up, Akshay. Did it match all the checklist items?
https://zerodha.com/varsity/chapter/moving-averages/ 117/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
we use 9 day * 21 day ema crossover for short term trading and for intraday trading in 5 minute charts
how much candle do u suggest for better results. whether 5*10 minute candle is better or 15*30 minute is
better for intraday trading
Reply
5*10 is ok, make sure you look at, at least the last 5 days charts for this.
Reply
Reply
How as in the technicality of placing the order or the identification of these levels?
Reply
maria says:
May 25, 2019 at 11:47 pm
Reply
In the above chapter, it says that you exit the position when the shorter average(eg. 50 day) turns less than
the longer one(eg. 100 day) . How do we judge the “turn”?
Reply
Also, if we have to wait for the short average to cross with the longer average again but in the opposite
manner of a golden cross (death cross) to exit the position, won’t that lead to missing of the highest price
for exit? I backtested it and many times waiting for the death cross leads to a loss of more than 20 percent.
Even in the example chart in the module. The averages don’t actually cross when the suggested exit point
comes (BPCL).
https://zerodha.com/varsity/chapter/moving-averages/ 118/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Yes, it will. But remember, the MA system is not about getting the timing right..it is about catching
a part of a larger trend.
Reply
what are field,type,offset and underlay in ploting moving average across a chart is there any tutorial to
know in detail about this.
I want to know about 15*30 and 5*10 cross overs
Reply
I’d suggest you ignore the offset bit, it does not really add much value. The rest is explained in the
chapter.
Reply
Can you please explain exactly how to place these moving averages on a chart, say for example 15*30
mins for intraday with all the necessary time frames? I also dont know how to select the number of
candles for a particular chart.
Reply
If you are interested in intraday trading, I’d suggest you look for at least 10-15mins chart. Yes, you
can use 15*30 for intraday with 3-5 days of the intraday chart.
Reply
Dear Karthik Ji
Could pls clarify the below content which was mentioned in your Zerodha varsity in MA chapter ?
“Needless to say, the MA crossover system can also be applied for intraday trading. For instance one
could use the 15 x 30 minutes crossover to identify intraday opportunities. A more aggressive trader could
use 5 x 10 minute crossover”
https://zerodha.com/varsity/chapter/moving-averages/ 119/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
As per the above if i want to trade on 15 x 30 mnts crossover then which MA should I use i.e. 9 x 21 day
on 15 / 30 mnts
or 25 / 50 day for Intraday on 15 /30 mnts or 5 /10 mnts ?
Reply
You need to load 15-minute time frame and overlay on it 9 and 21 EMAs. If this does not work,
then maybe you should try changing the values. The idea is to experiment and calibrate these to
match your risk-reward temperament.
Reply
Dear Karthik ji
Which crossover either 9 x 21 EMA or 5×10 EMA on 1 hr time frame is best crossover for good profits ?
Reply
Reply
Reply
Its explained in the chapter/comments itself, Pankaj. Can you please read through it again? Thanks.
Reply
Hi Karthik ,
I had gone through complete TA and Options Theory for Professional Trading ,among that ,the concept
which have more confidence on Candlestick pattern(15 min time frame ) and EMA (5*10) that trading is
https://zerodha.com/varsity/chapter/moving-averages/ 120/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
possible with these concept .Moreover i am trading for past 6 month based on EMA crossover .
The advice which i required from Pro trade like you ,whether i can take this trading as a carrier for rest of
the life in discipline manner . Right now i am trading in Bank nifty Option
1.If 5 EMA greater or crossover 10 EMA will take CE as position ,This CE position will be squared off
when 5 EMA lesser or crossover 10 EMA
2.If 5 EMA lesser or crossover 10 EMA will take PE as position ,This PE position will be squared off
when 5 EMA greater or crossover 10 EMA
Is any thing want to correct me pls
Reply
The short answer is no. Trading as a full-time career is too risky and unstainable. Only a few
amongst 1000s survive. Do this as a secondary job, but do something which will give you steady
cash flow every month.
Reply
Please let me know if any pre defined function exist for hull moving average. I have find out SMA, EMA
and TMA for moving average screener. But I am unable to code for hull moving average function in
zerodha PI…..pls help me
Reply
Reply
How can I load 21 sma band (high to low) in zerodha kite. Which option I should go?
Reply
Reply
Reply
You can load both the EMAs on the price data, Sujin.
Reply
My doubt is how to calculate Length in MA. Can anyone clear it out for me?
Reply
The length (look back period) I suppose…this depends on your trading style. If you are doing
intraday, then you should be looking at say the 10-minute average. If you are doing an end of the
day, then maybe a 50-day average will help.
Reply
Reply
About?
Reply
Reply
Reply
you said that In case to avoid the sideways market the “MA Cross over should be high “.
Instead can we use ADX Indicator to avoid sideways market
Reply
Yes, ADX too is a momentum indicator, you can use this to identify trending and sideways markets.
Reply
Sir in 10 min EMA & 10 Days EMA i understood that in 10 Days EMA lookback period is of 10 days but
in 10 min EMA the lookback period is of 10 minute candle but for how much time/days?
Reply
Vikas, just like the 10 day EMA, the 10 mins EMA looks at the last days candle to evaluate the 10
min EMA.
Reply
Hi Karthik,
If we want to take the trading decision for intraday on 9 * 21 on 5 minutes chart, Do we need to wait till it
generates 21 five minutes candles (i.e 5*21 =105 minutes)? How to take trading decision in the first one
hour based on 9*21 – 5 minutes candles?
Thanks
Satya.
Reply
Hmm, yes. But then you can always look at the intraday charts, which are continuous.
Reply
Dear Sir,
Thank you so much again for the wonderful modules. Its very simple but very powerful.
I have two doubts here
1. can we do shorting when the short term moving average turns lesser than the longer term moving
https://zerodha.com/varsity/chapter/moving-averages/ 123/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
average also?
2. Can we initiate a trade only with EMA?
Please clarify…
Reply
Reply
Hi Karthik,
Since the average is considered based the previous values also, I have noticed significant difference
between the short term moving average line crossing point and spot price.
If we want to go long based on 9*21 five minutes candle chart for intraday trading, when the short term
moving average line crosses the long term moving average line, we are supposed to initiate the trade, but
the spot price is far higher than the crossing point. Still do we need to initiate the long trade though it is
higher than the crossing line.
Reply
Yes, because the idea here is to trade the moving average and not the spot price directly.
Reply
Hi Karthik,
How to check the intraday charts, if there is any link to go through, please share.
Thanks
Satya.
Reply
Satya, just change teh frequency to either 10 of 15 mins, and thats the intraday chart.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 124/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Karthik,
As moving average cross over system gives the signal once the trend is established, we are already
entering into the trade at higher level than moving average crossing point ( we miss some initial part of
bullish trend), again during sell time, once the bearish trend established we will wait for the crossing point
and again we miss some points from high ( we exit after some days of bearish trend).
Basically we are missing some trend at entry and exit level. Is there any better system to overcome this?
Am I missing some thing here?
Thanks
Satya.
Reply
Anyway, to overcome this, you can overlay other momentum indicators such as MACD, but that
will just start complicating the system.
Reply
Hello,
first of all thanks for this wonderful explanation. I wanted to ask that what should be candlestick pattern
for Ema cross of (25,50).Like i should keep the candle for 1 day or 1 week. Because i dont have time for
intraday buying and selling.I just want to buy on monday a good number of stocks and sell it on maybe
friday or next monday. Like a MID TERM POSITIONAL CALL.
Reply
I’d suggest you look at EOD candle for medium term or swing positions.
Reply
there are arithmatical mistakes in the pdf version of this module,also some charts and topics are not there.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 125/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
but for 9 ema and 21 ema putting 30 min candle is giving me a perfect result . I want to ask what should
be my candle patten and ema cross format for a positional trading like keeping a stock for a week and then
selling it
Reply
Yes, its best if you can hold the position for a few sessions.
Reply
Hi,
What is the best time period for 9*21 EMA for Nifty Intraday. (1,3,5mins)?
Reply
To begin with, you may want to check the 10 min chart for this.
Reply
Dear Karthik,
When I use the moving average line of say, 9 and 21 days, your advice has been to keep the trade till the
21 day line crosses the 9 day line. With this strategy, when I sell the stock, it may not be at the peak, and
some profits maybe lost. Is there any reason it is suggested to keep the trade till the condition is satisfied?
Reply
The thing is that it is tough to capture the entire rally since it involves timing the market. Given this,
even if you manage to capture 50% of the rally, then its job well done. This is what the system helps
you do.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 126/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
And one more thing when the cross-over happens the market is already up or down by a very huge margin.
How to make sure that we are not entering when its a peak of that rally.
Reply
You cannot be sure about that, you will have to take the trades as suggested by the system.
Reply
hello karthik
i am very confused while apply ma crossover on a crude oil or silver bcz if i am using longer EMA than it
does not seems like profitable and if i am using shorter EMA than there is so much trading signals in a
single day so here again a major problem bcz in MA CROSSOVER we are not selecting the trade bt we
must trade so please help me in this condition.
Reply
I’d suggest you continue to use long term average lines and wait for the right opportunity to get into
a trade.
Reply
For intraday as you have mentioned 15 x 30 minutes exponential moving averages. By this, I have to set
the period as 15 in one moving average and 30 in another moving average. so what should be the candles
sticks for it 15 minutes or 10 minutes or any candlesticks based on our needs?
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 127/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Mr Karthik
totally a beiginner in the world of trade.
beginning is reading ur tuorials and opening of acct on zerodha.
can u tell pl if there is any tutorial onusing the zerodha platform and how to open the various MAs, vol etc
u hav covered till now
thanks
Reply
Everything we have has been put up online, here. We don’t have physical classroom sessions.
Reply
Reply
Reply
Mr Karthik
when ive opened a day candle with two EMa cross over (short, long) and then change the candle to
minutes candle, does the EMA cross also change automatically to min or is it reqd to be done manually.
i,m talking abt looking at charts on kite
thanks
Reply
Reply
How minimum can you go with crossover emas in terms of time intervals ? Can it be 5 or 10 seconds also
? And will the same 9 and 21 apply for small and large emas ?
https://zerodha.com/varsity/chapter/moving-averages/ 128/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
Hi Karthik,
Please reply,
are these,
9 day EMA with 21 day EMA –
25 day EMA with 50 day EMA –
50 day EMA with 100 Day EMA –
100 day EMA with 200 day EMA
automatically created in zerodha upon setting some settings or do we have to manually draw this MA
graph or is there any different software available for it?
Regards,
Kiran
Reply
Kiran, you will have to specify this when you load the indicator.
Reply
Hello Team,
Happy New Year.
I am new here and would like to know as to why standard EMAs are used for trading. Say why 9 x 21 day
EMA instead of 8 x 20 day EMA? Is there a calculation behind it ?
Reply
There is no specific reason to choose 9×21 over 8×20, its just a matter of preference and
convenience of using them over the years.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 129/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hello sir,
Thanks for the immediate response.
Can you suggest some books that specifically deal with the indicators and has all the calculation behind it
?
I am sure they are not needed for the trading part, but I would like to learn more about it.
Reply
Hmm, there are no specific books on indicators. However, I remember reading/seeing a slightly
elaborate section on indicators in this book – https://www.amazon.in/Technical-Analysis-Trends-
Robert-Edwards/dp/0814408648
Reply
StochRSI(14,14,E,3)
RSI period =14
Stochastic period =14
Average Type = E
Average Period = 3
Please let me know how to add the following parameter to the chart
Reply
Hi Karthik,
I see there is a moving average type “time series” while adding a moving average indicator.
Can you please explain me about how zerodha calculates that TSMA?
It would be helpful if you could share the formula or related links where i can find the explanation.
I have searched internet but not able to find how TSMA is formed.
Thanks,
Shanmu
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 130/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I’m not sure about this, need to check. By the way we do not compute any of these indicator values.
It either comes from chartIQ or Tradingview.
Reply
Hi
Sometimes when I use the crossovers, there is a late entry. That is the peak has already been reached by
the time the moving average crossover occurs.Next sell of begins.
This sell off continues till the cross over is complete resulting in big losses. So by using a crossover I am
actually entering into a losing trade. It would be great
b) Also what kind of stop loss do you recommend for the crossover strategies. I generally trade daily or
weekly timeframes.
Reply
Jay, this is the nature of the MA system. It makes you trade several average/loss-making trade
before you hit that 1 megatrend trade. The thing is that you will have to take up all the trades and
you cannot pick and choose which one to trade and not to trade…since you’ll never know which
trade would result in the megatrend trade. Having said so,
Reply
Hi,
You are right, I trade 50×120 and usually the megatrend takes care of the losers.
My concern is that the losers are sometimes too big, of course you can never get a loser free trading
system.But you do want to minimise these losses as much as possible.
Can you suggest a stop loss for a moving crossover of 50×100 over daily or weekly timeframes?
Reply
Reply
Hi Karthik,
Thanks for the detailed explanation of each and every concept.
I am a bit confused between mean reversion and momentum strategies. Chart patterns discussed here are
reversal patterns.
My questions are
1) Are reversal patterns part of mean reversion strategies?
2) Can be use moving averages for mean reversion strategies?
Thanks
Reply
1) No, patterns are not related to mean reversion. The indicator Bollinger band is a good example of
mean reversion.
2) No, MA is a momentum indicator, not mean reversion.
Reply
Hi can you tell the combination for intraday trading as i didn’t get the meaning of 15*30 as mentioned
above.
Reply
Reply
What type of view and studies should I set for tracking smart money in stocks ? For eg. Does viewing 30
min chart of a stock for 9 day EMA and 21 day EMA crossover on closing price with 10 day SMA on
volume good enough ?
Reply
You can track the FII and DII inflows for this, Gaurav.
https://zerodha.com/varsity/chapter/moving-averages/ 132/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
I do not see a EMA option on my indicators in the Kite app. How do I put the EMA?
Reply
Reply
Does the moving average system eliminates the need to set target price while trading? As my
understanding of this chapter says that we sell the stock only when exit signal is triggered by the MA
system.
Reply
Vasu, the MA system does not give you a target, however, comes with an in-built SL mechanism.
The system allows you to stay in the trend as long as it lasts.
Reply
Thanks Karthik and kudos to you guys for providing such an awesome material.
Reply
Reply
sir, in 100×200 EMA cross, how to identify buying and selling position, I’m little confused like, EMA
should be 100 and EMA cross should be 200?? please explain.
Reply
If 100 EMA crosses over the 200 EMA, buy. Sell otherwise.
Reply
How do you plot a Smoothed Moving Average on Kite chart? I see the option for Simple moving average,
exponential Moving Average & many others, but not able to find settings for Smoothed Moving Average.
Thanks in advance
Reply
I need to check this. Btw, a MA itself is smoothening out the series, right?
Reply
Dear Sir,
Q1: In the section 13.3 first diagram, it is shown once the MA line is crossed by the CMP (Price fallen
below the MA), but in the diagram, it is mentioned as “Ignore”. Can you please tell me what is the criteria
to ignore such cases?
Q2: In the section 13.4 last diagram, the second buy signal (cross over point to buy), and corresponding
sell signal (cross over point to sell) leads to loss in the trade. Is it to show the intention of the trainer to tell
that there can be loss making trades also Or is it profitable trade. From my understanding it does not look
like profit making trade.
Q3: In Continuation to Q2, can you please explain how to we place trade set up with such MA (cross over
indicators). By Trade setup i mean entry point, exit point and stop loss. If this is already answered in forth
coming chapters please ignore this Q.
Reply
1) I’m unable to spot the ignore bit, can you please tell me which diagram you are referring to?
2) The thing is that you will know if its profit or loss only on hindsight. In real markets, you need to
act as soon as the price crosses over the MA, hence one would have close the trade.
3) The set up is explained in this chapter only no?
https://zerodha.com/varsity/chapter/moving-averages/ 134/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
hello sir,
U said we can use 15*30minutes (MACD) for intraday
MACD settings are limited to days only .
how we can convert it into minutes.
Plz guide
Reply
Reply
How to get “Smoothed Moving Average” on Kite chart? There are many option for Simple moving
average, exponential Moving Average & many others, but not able to find settings for Smoothed Moving
Average.
Please guide
Reply
Reply
Sir,
While analyzing ‘5 min’ chart and moving average period is set to 10. what does it mean?
will it show moving average of 5×10= 50 minutes or 1×10= 10 min.?
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 135/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
How do I get 100 day or 200 day Exponential Moving Average Line on Zerodha – Kite App.
I am able only able to get length and offset option in MA and EMA. Nothing related to period.
Earlier there was option under studies option to change period but now instead of studies we have
indicator with no option to change the period in MA or EMA.
Reply
I think its best if you call the support desk for this, Arjun. Will be hard to explain here.
Reply
Dear Sir,
Could you plz tell suggest some business news sources that would better insight of companies and their
management.
Reply
Reply
Dear Sir,
If we remove a few data points that are highly volatile while calculating the EMA. Does it lead to better
predictability?
Reply
Hmm, it smoothes out the data, but that also means you are tampering the data, which you should
not be.
Reply
Dear Sir,
I am aware of ET, but what is HBT?
https://zerodha.com/varsity/chapter/moving-averages/ 136/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Reply
Hello Karthik,
However, need your help in understanding on what time frame do we have to set the ema to get the
desired results for swing trading, for example setting 9×21 or 25×50.
Thanks in advance!!
Regards,
Suresh.
Reply
For swing trading, I’d suggest you use slightly higher term averages – something line 20 versus 50.
Of course, you can backtest this and verify if its working for you – https://www.streak.tech/
Reply
THANKS
Reply
There is a suggestion that we can use 5 MINUTES EMA for intraday. But how am i supposed to enter
EMA length in minutes…I mean a value of 1 means 1 day right? So how to draw a EMA which shows
data of minutes instead of days?
Reply
Reply
What should i type in the value field of EMA for a 5 minutes moving average line?
Reply
Nothing as such, 5 mins EMA implies you are choosing 5 mins time frame.
Reply
So please guide me
For Intraday which is best crossover ?
9*21 or 15*30
Same
Swing trading which is best ?
For mid term trade which is best ?
For long term which is best ?
Also can we short sell on this crossover.
Reply
Intraday – 9 * 21.
But honestly, I can’t give you the answers for these. You will have to work with your own risk-
reward temperament as arrive at what works for you.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 138/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
1) Yes
2) Yes
3) Yes
4) Yes
Perfect
Reply
Hi Karthik,
Is there ere any training or write-up on how to lay EMAs on a chart?
Reply
There is nothing much to it, you just have to choose price field to overlay.
Reply
I have 2 questions?
Q1) While applying moving averages, does the “PERIOD” in the zerodha software means that we have to
choose number of candles to apply the averages?
Q2) If “PERIOD” does not means number of candles, then How to apply 9 and 21 EMA on a 15 min
candle?
Reply
Reply
If I am using 15 min chart for Intraday, which is the best combination for EMA?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 139/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
FOR INTRADAY
If the market is UP(Green) for the day, should we short sell stocks using Averages (i.e. go against the
market? Or should I buy the stocks using Averages (Going with the market)?
Reply
It is always a good idea to stay with the trend and not against it, unless you are absolutely sure about
what you are doing.
Reply
2) Ch-Moving average
a.which time frame I have to select and how many candlesticks needs to be load?
b.Which type of candle stick I have to use?(e.g. Heikin Ashi, Candle chart,kagi)
c.As you mentioned above, “9 day EMA with 21 day EMA – use this for short term trades ( upto few
trading session)” few trading session means what upto some days,hrs or minis?
Reply
It is best if you ask these question in relevant chapters, will help others as well
Volume –
1) Select the field as volume.
2) Yes
3) Yes
Moving Averages –
1) Depends on your risk and reward temperament
2) Candle works
3) End of day candles
https://zerodha.com/varsity/chapter/moving-averages/ 140/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Needless to say, the MA crossover system can also be applied for intraday trading. For instance one could
use the 15 x 30 minutes crossover to identify intraday opportunities. A more aggressive trader could use 5
x 10 minute crossover.
Sir,
moving avg least value is 1 day ….how can I apply 15 * 30 mins cross over ?
Or is that I have to keep 9*21 days crossover with 15mins time frame ?
confused sir .
U said we can change the setting in chart field ..i m not able to find that chart field?
plz guide
thank u
Reply
You just have to change the time frame to any intraday frequency – 5,10, or 15mins chart.
Reply
While going for a horizon of few weeks, I put EMA studies of 25 days and 50 days. So, for that I need to
keep the frequency of chart as 1 Day, Am I correct with my understanding
Reply
Reply
Hello,
In section 13.3, for the first chart,between B3 & S3 (@highlighted as “ignore”) the current price seems to
be less than the MA. This is an indication to sell right? Is there any reason to ignore ?
Thanks
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 141/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Yes, if the current market price is below the MA, then its a sell. However, it depends on when the
crossover has taken place and how below is the CMP wrt the MA.
Reply
While going for a horizon of few weeks, I put EMA studies of 21 days and 50 days. I am using EOD
Charts.
Now, I am plotting MACD signal line(12,26,9) as well. Can I do that for the same trade?
As the time frame are different for both – EMA has 21 days and 50 days whereas MACD is (12,26,9)
Reply
Yes, this is ok as long as you are looking at EOD charts and thinking of a short term trade. The time
frame is not different, even MACD is plotted on the EOD chart.
Reply
Hello,
My question is regarding 5min*10min crossover.
keeping period as 5days and 10days in EMA on the candlestick chart of the time frame 5min will give the
result right?
Reply
My Question is that if we follow the moving averages crossover for taking a trade, in this scenario what
will be our targets on a particular stock.
For e.g. if 9EMA crosses 21EMA towards above, it is time to take a buy trade.
But what target we need to keep while trading.
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 142/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
hi karthik ,
can u plz tell me how can i ride the trend today in nifty and bank nifty .from 10 am the trend is upwards
.how to identify it at around 10 am or wat is the processs (follow) to ride the trend .beause at 10 am u can
not judge the trend will be upwards .
i have also atttended ur nse webinar(gold) .ur nice and soft spoken always .plz answer .
Reply
Ankit, I’m glad you attended the session, hope you liked it and I hope you will join the session
t’row as well.
As far as the trend is concerned, you have use techniques like MA or MACD and get a sense of
where the market is heading. Of course, you can look at the candlestick patterns also,
Reply
hi karthik.
i applied macd tomorrow but it is giving wrong signals.
yes will join ur session today for sure .(gold)
option strategies from the man itself (karthik) a treat to learn .
ur concepts and method of explaining is really nice and clear
Reply
Reply
hiii sir,
I have doubt regarding combination of indicators,
1. according to you, what would be the best combination of various indicators for intraday trading on
15min chart? suggest me 2-3 indicators. on 15min chart ma cross should be 9*21 or 25*50?
2. and I experienced at the end of the month like in last week market is kinda unpredictable. I am newbie
so should I avoid trading in the last week?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 143/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
hi karthik.
suppose i have taken a long futures position in marico or any another stock futures today.i want to carry
my futures position overnight .
plz tell me how to put the stop loss in it and how to hedge my position (best way )
Reply
You can carry it forward as long as you have the necessary margins. Also, you can hedge long
position with puts
Reply
hi karthik .
if i sell call instead of puts .wat is ur view
Reply
It depends on volatility and the associated premium. If the market is conducive for it then you have
to opt to sell rather than buy.
Reply
hi karthik ,
1. i want to know an average investor should invest directly to stocks or not .
2. if no then plz tell which are instruments are best for him for long term 20 years +
(MF INDEX FUND ETC ) for optimum return of 10 to 15 percent per annum.
ur views plz.
i really like ur quote .index fund has decade old shelf life
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 144/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
hi karthik
u r saying index mutual fund or index etf or mutual fund .plz clarify
u have writen
2. Index MF if you ask me.
Reply
Reply
hi karthik.
1.index mf are actively managed funds or passive managed funds .plz clarify
2.have u written any chapter or article on it .
Reply
1) Passive
2) Will be updated today/tomorrow in the Personal finance module
Reply
Hi Karthick,
Could you please clarify one point? When you say “no. of days” of MA, is it the days or is it the trading
session? I mean, if I choose a daily chart, and if I choose a 100 day MA, then it is avg. of 100 nos. of daily
sessions. But If I choose weekly chart, then, is it avg. of 100 nos. of weekly session or is it avg. of 100
nos. of daily sessions plotted on a weekly chart? Like wise if I choose a 15min chart, then is it avg. of 100
nos. of 15 min session or daily session plotted on 15min chart?
Please clarify.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 145/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
It is the number of the session within the selected frequency. For example, if you choose 100 weeks
MA, then it factors in 100 weeks of data. 100 SMA over 15mins is the simple average of 100 15
minutes candles.
Reply
Understood Thanks!
Reply
Dear Sir, I was reading Varsity and your comments above However I dint understand below :
“For instance one could use the 15 x 30 minutes crossover to identify intraday opportunities. A more
aggressive trader could use 5 x 10 minute crossover”
I selected two EMA. One 9 day and 15 day but how to selectt EMA “15 X 30 Minutues” or “5 X 10 mins”
Where is setting.. I cant find it on Kite. Appreciate your guidance. If possible can you show chart
screenshot.
Thank you.
Reply
There is no special wherein you get to select 9×15 MA. You just have to overlay 9 and 15 EMA on
the chart, once loaded look for crossovers.
Reply
Sir, what do you mean by 15 x 30 minutes or 5 x 10 minute crossover? Are 15 and 30 EMAs that we
should use?
Reply
Crossover is the crisscrossing of the moving averages line. 15×30 minutes means the moving
averages here are the 15 and 30-minute averages. It can be EMA or SMA.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 146/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Sir thanks for clarification. The statement below is little bit confusing. I can see many people have asked
the same query. Appreciate if you can provide more details so every one doubt get cleared. As per below
statement I understand 15 x 30 minutes crossever means I need to select either 15 min candle form chart
or 30 min candle frame chart and select EMA one period 9 and second 21. Please correct me if I am
wrong.
For instance one could use the 15 x 30 minutes crossover to identify intraday opportunities. A more
aggressive trader could use 5 x 10 minute crossover”
Reply
1) The chart can be either 10 mins, 15mins, 30 mins, 1 day, 1 month or 1 year. At any given point it
can be only one of these charts
2) Let us assume I select 15 mins chart here. On this chart, a 9 x 21 EMA means I’m taking the
rolling average for nine fifteen-minute candles and then taking a rolling average of 21 fifteen-
minute candles and plotting two moving averages on 15 minutes chart.
3) The method to calculate 9 and 21 fifteen minute average can either be a simple moving average
or an exponential moving average. I prefer the EMA.
4) Yes, as you said, 5 x 10 is for aggressive traders, 15 x 30 is for less aggressive traders.
5) You buy or sell based on the crossovers as per the logic is explained in the chapter.
Reply
Sir in the last chart the first two crossovers will not be a profitable trade I am I right and then can we add
this moving average system to our checklist as fourth point
Reply
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 147/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Stay safe!
Reply
Reply
Not a problem sir thank you. one more request can you please share some tips for indraday. I know its
very difficult to judge market in intraday. still if you can share some your experience. In varsity, I found
some discussion about Intraday. However there is no separate chapter for Intraday.
Thank you.
Reply
All I can say is, ensure your costs as low, know your plan very well (and stick to it), do not
overtrade, know your stocks well, and finally do not over leverage!
Reply
Reply
Reply
Can you give me some insight on how high length of MA and how difference in the 2 lengths of MA
increases or decreases accuracy in intraday trades.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 148/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
I’m sorry Prajwal, I’m not sure if I understand your query completely. Can you share more context?
Reply
Hi Karthik , Your above explanation is incomplete without specifying the TF ( i.e. the timeframe of the
candle ) .I really do not know what do you mean by 15 X 30 mins ?Why dont you simply clarify what is
the TF and the periods X & 2X .e.g. If 15 mins candle TF is taken then 9 & 21 SMA or EMA is simply
MA of 9 candles of 15 mins TF & 2nd MA of 21 candles of 15 mins TF .pl. correct me if I am wrong.
And also request you clarify this in little details as too much confusion has been created on this.
Reply
Tapas, I think I clarified this in one of the queries above. Anyway, what you have said is correct. By
15 and 30 I mean, a 15 candle and 30 candle average of the candle series which has a 15 minutes
time frame.
Reply
hello sir, can you tell how do i screen stocks for intraday
Reply
If you are new to markets, I’d suggest you stick to the Nifty 50 universe.
Reply
Hi Kartik,
1. In the case of Swing long trades, how can one predict the exit point (faster EMA crossing below slower
EMA) ? Is it even realistic to think so ?
https://zerodha.com/varsity/chapter/moving-averages/ 149/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
2. If not, then does this imply that one has to regularly keep track of the chart during entire multiple
sessions until the selling signal appears ?
Reply
Reply
Understood. Thanks.
Reply
Welcome!
Reply
Hi, I want to know if I could use pi to back test these moving average strategies without having coding
skills ?
One more question: Is it really possible for a system trader to be profitable in long run if he/she blindly
trust that system ?
Reply
Reply
Hey Karthik,
Firstly thanks for this content, it is really helpful.
I’m confused about how can I use the 15 x 30 minutes crossover? Like how can I input the duration in
EMA in minutes? Or you’re just suggesting using 9 days EMA over 21 days EMA (or some other
combination) on 15 minutes candlestick chart?
https://zerodha.com/varsity/chapter/moving-averages/ 150/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Yes, I mean you have to use a 9 and 21, 15 minutes candles. Please check the previous comments,
have clarified this.
Reply
Reply
Hi karthik
Please clarify
Reply
Reply
Hi sir
You told 9*21 is best for intraday but u haven’t specified which time frame
Reply
You can use this across any timeframe, Madhavi. There is no restriction on that.
Reply
In one of the comments you said, moving averages is also a kind of checklist. They don’t need any other
confirming factors.
So, which one is a better checklist: moving averages crossover or price action(S&R and candlestick
patterns) ? And, why ?
Reply
Like I’ve mentioned, candlestick and S&R take precedence because they represent price action, MA
is a system build on the price action. However, I’d prefer MA over another indicator.
Reply
can you enlighten me, why is 50 day ema(black line) in the chart of Bank of Baroda longer than the 100
day ema(short line).
Reply
Thats because the 50 day shows the trend, its more reactive to current prices.
Reply
Hi sir,
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 152/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
The time frame can be any – if I’m looking at 10 mins then a 5*10, implies that it is 5 candles (10
mins duration) average and 10 candles (10 mins duration) average.
Reply
Hi sir
Do we have seperate crossovers that we need to use for different time frames like 5 mins,10 mins and 15
mins ?
Or we can take any cross over like 5*10 ,15*30 or 9*21 and can apply on all time frames like 5 mins 10
mins and hour
Reply
Reply
Reply
You cant comment on the accuracy. In general, higher the time frame i.e. better is the quality of the
signal. So 15*30 is better than 5*10.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 153/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Hi Karthik, I understand that EMA crossover analysis will not work well for choppy market with no
trends. In order to avoid getting into a sideways movement, which candlestick patterns will be good to
look along with this?
Reply
In a sideways market, it is best to look at dow patterns along with things like support and resistance.
These are the best indicators of a breakout or trading within the range if that’s what you are looking
for.
Reply
Hi Karthik, Which time frame chart and EMA Crossover, i should use for swing trade ?
Reply
EOD is best, I’d suggest you start with 9 x 21 and build from there.
Reply
You said;
“ The outlook is bullish when the current market price is greater than the EMA. The outlook turns bearish
when the current market price turns lesser than the EMA”
Which EMA ( time period ) has to be considered, relative to the stock price, to deduce this ?
Sudhir Kochhar
Reply
Selecting the EMA depends on your trading style. If you trade EOD, then maybe start with 9 day
EMA over 21 day EMA. You can improvise on it.
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 154/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Sir, while seeing the charts from the perspective of moving average crossover system does the rule of
EMA being greater or lower than the current market price matters?
Reply
Yes, you need to see the latest price wrt to where the average is. It gives you a perspective on the
trade.
Reply
Please tell how to add Exponential Moving Average in Zerodha kite, i m using the chart, ” ChartIQ” in my
zerodha platform…??
Reply
Please click on studies and select the moving average you need.
Reply
Hi Karthik,
Assuming that I go ahead with the 25-50 EMA Crossover system and let’s say today in the day when 25
day EMA crosses the 50day EMA but the current day is a red candle day? Should one go ahead and still
buy the stock even if it’s a red candle day?
Reply
You should base your buy-sell decision based on candles, MA is an overlay on the price action.
However, I do know traders who only follow MA system, but these are people who have thoroughly
backtested and know the behaviour well.
Reply
Hi Karthik,
https://zerodha.com/varsity/chapter/moving-averages/ 155/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
First of all, I’d like to thank you for the true effort to bring trading to everyone’s reach. This is one of the
most sorted tutorials I’ve ever gone through. Thank you for your patience in answering almost all the
questions for such a long time.
I’ve had few questions regarding the candles, time frames and which mix should be used but it is clear
now. I had one other question regarding the entry and exit points while using the EMA crossovers.
1. I’ve observed that when the short term EMA crosses the long term one, there is usually a very big green
candle. By the time I place the order, I feel that the price has reached its resistance and am confused as to
take the trade or ignore it?
2. Let us assume for SBI, the crossover occurred at 190.5 and the candle is currently at 194. Should I take
the trade at the closing price of the candle or take the trade at market price immediately after the crossover
happens?
Reply
1) This really depends on the situation. Sometimes the trade could be genuine and it makes sense to
ignore the trade, however, if there is a fresh crossover, chances are that the resistance is not
anywhere close by
2) Yes, you should because the philosophy with a MA system is that the trend will sustain through
and the move will be much larger.
Reply
Understood. So, even if we are making losses in the small trades, we just have to keep going and wait for
the rally where we cover everything and come out with some profits. Am I right?
Reply
Reply
Sir,
What time frame for chart will be suitable for 25*50day EMA and 50*100day EMA?
Reply
https://zerodha.com/varsity/chapter/moving-averages/ 156/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
344. TJ says:
July 10, 2020 at 7:40 pm
Reply
If you are looking at 30 mins, then 9 and 21 will reflect the EMA of 9 and 21 candles of 30 mins.
Yes, many trader use these EMA to trade intraday markets.
Reply
Hi
Say I have short sold one stock at 12000 like bosch and I have kept slm order to buy at 12300. I know slm
is market order that gets triggered at my slm price 12300. Say some stupid kept sell order at 12800. though
other orders are around 12300 as per depth, does my order gets executed at 12800. My expectation is to
buy around 12300 to close position.
I got 5000 loss because of this issue because my slm 12300 order got executed at 12800
Reply
Reply
Dear Sir,
please guide me how to write this strategy in pi backtest script.
SHORT SELL : 34EMA LOWER THAN MOVING AVERAGE(20,LOW,SIMPLE,0) AND ADX(13,0)
HIGHER THAN 25
BUY BACK : STOP LOSS: 1 % AND TARGET 1 %
https://zerodha.com/varsity/chapter/moving-averages/ 157/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Reply
Sorry, this is not the right platform for this. I’d suggest you speak to the support desk for this.
Thanks.
Reply
what is the difference between hull moving average and exponential moving average. which one is better.
for option trading i am using 20 and 50 hma cross. is it correct.
Reply
I’ve not really used the Hull Moving average, hence cannot comment on this.
Reply
Hello karthik sir recently i was studying the moving average, but i have a question. i plotted the 50 day
EMA with 100 day but every time i changed the time period the EMA plot also changed a bit. If i take a 1
day chart on kite app the plot is different, if i take 1 month chart then the plot is slightly different. My
question is how do i guess the trade in such conditions. What should be the time period?
Also, what should be time period & EMA for intraday trading when there is constant changes/movement
in the candlestick patterns.
Reply
Isso mesmo, Sanjay. Período de tempo diferente, parcelas diferentes. Você precisa manter um
período de tempo com o qual deseja negociar e projetar negociações em torno disso. Por exemplo,
eu prefiro olhar para os gráficos de EOD e negociar com base nos padrões e indicadores nos
gráficos de EOD.
Resposta
Publicar um comentário
Nome (obrigatório)
Correio (não será publicado) (obrigatório)
Comente
Publicar comentário
https://zerodha.com/varsity/chapter/moving-averages/ 158/160
7/25/2020 Moving Averages – Varsity by Zerodha Varsity by Zerodha
Modules
1. Introduction to Stock Markets
15 chapters
2. Technical Analysis
22 chapters
3. Fundamental Analysis
16 chapters
4. Futures Trading
13 chapters
24 chapters
6. Option Strategies
14 chapters
7 chapters
19 chapters
16 chapters
18 chapters
18 chapters
404 chapters
https://zerodha.com/varsity/chapter/moving-averages/ 160/160