Module 2 Technical Analysis

Chapter 15

Indicators (Part 2)

446

M2-Ch15-title

15.1 Moving Average Convergence and Divergence (MACD)

The Moving Average Convergence and Divergence (MACD) indicator was developed by Gerald Appel in the late seventies. Traders consider MACD as the grand old daddy of indicators. Though invented in the seventies, MACD is still considered as one of the most reliable indicators by momentum traders.

As the name suggests, MACD is all about the convergence and divergence of the two moving averages. Convergence occurs when the two moving averages move towards each other, and a divergence occurs when the moving averages move away from each other.

A standard MACD is calculated using a 12 day EMA and a 26 day EMA. Please note, both the EMA’s are based on the closing prices.We subtract the 26 EMA from the 12 day EMA, to estimate the convergence and divergence (CD) value. A simple line graph of this is often referred to as the ‘MACD Line’.  Let us go through the math first and then figure out the applications of MACD.

Date Close 12 Day EMA 26 Day EMA MACD Line
1-Jan-14 6302
2-Jan-14 6221
3-Jan-14 6211
6-Jan-14 6191
7-Jan-14 6162
8-Jan-14 6175
9-Jan-14 6168
10-Jan-14 6171
13-Jan-14 6273
14-Jan-14 6242
15-Jan-14 6321
16-Jan-14 6319
17-Jan-14 6262 6230
20-Jan-14 6304 6226
21-Jan-14 6314 6233
22-Jan-14 6339 6242
23-Jan-14 6346 6254
24-Jan-14 6267 6269
27-Jan-14 6136 6277
28-Jan-14 6126 6274
29-Jan-14 6120 6271
30-Jan-14 6074 6258
31-Jan-14 6090 6244
3-Feb-14 6002 6225
4-Feb-14 6001 6198
5-Feb-14 6022 6176
6-Feb-14 6036 6153 6198 -45
7-Feb-14 6063 6130 6188 -58
10-Feb-14 6053 6107 6182 -75
11-Feb-14 6063 6083 6176 -94
12-Feb-14 6084 6066 6171 -106
13-Feb-14 6001 6061 6168 -107

Let us go through the table starting from left:

  1. We have the dates, starting from 1st Jan 2014
  2. Next to the dates we have the closing price of Nifty
  3. We leave the first 12 data points (closing price of Nifty) to calculate the 12 day EMA
  4. We then leave the first 26 data points to calculate the 26 day EMA
  5. Once we have both 12 and 26 day EMA running parallel to each other (6th Feb 2014) we calculate the MACD value
  6. MACD value = [12 day EMA – 26 day EMA]. For example on 6th Feb 2014, 12 day EMA was 6153, and 26 day EMA was 6198, hence the MACD would be 6153-6198 = – 45

When we calculate the MACD value over a series of 12 and 26 day EMAs and plot it as a line graph, we get the MACD line, which oscillates above and below the central line.

Date Close 12 Day EMA 26 Day EMA MACD Line
1-Jan-14 6302
2-Jan-14 6221
3-Jan-14 6211
6-Jan-14 6191
7-Jan-14 6162
8-Jan-14 6175
9-Jan-14 6168
10-Jan-14 6171
13-Jan-14 6273
14-Jan-14 6242
15-Jan-14 6321
16-Jan-14 6319
17-Jan-14 6262 6230
20-Jan-14 6304 6226
21-Jan-14 6314 6233
22-Jan-14 6339 6242
23-Jan-14 6346 6254
24-Jan-14 6267 6269
27-Jan-14 6136 6277
28-Jan-14 6126 6274
29-Jan-14 6120 6271
30-Jan-14 6074 6258
31-Jan-14 6090 6244
3-Feb-14 6002 6225
4-Feb-14 6001 6198
5-Feb-14 6022 6176
6-Feb-14 6036 6153 6198 -45
7-Feb-14 6063 6130 6188 -58
10-Feb-14 6053 6107 6182 -75
11-Feb-14 6063 6083 6176 -94
12-Feb-14 6084 6066 6171 -106
13-Feb-14 6001 6061 6168 -107
14-Feb-14 6048 6051 6161 -111
17-Feb-14 6073 6045 6157 -112
18-Feb-14 6127 6045 6153 -108
19-Feb-14 6153 6048 6147 -100
20-Feb-14 6091 6060 6144 -84
21-Feb-14 6155 6068 6135 -67
24-Feb-14 6186 6079 6129 -50
25-Feb-14 6200 6092 6126 -34
26-Feb-14 6239 6103 6122 -19
28-Feb-14 6277 6118 6119 -1
3-Mar-14 6221 6136 6117 20
4-Mar-14 6298 6148 6112 36
5-Mar-14 6329 6172 6113 59
6-Mar-14 6401 6196 6121 75
7-Mar-14 6527 6223 6131 92
10-Mar-14 6537 6256 6147 110
11-Mar-14 6512 6288 6165 124
12-Mar-14 6517 6324 6181 143
13-Mar-14 6493 6354 6201 153
14-Mar-14 6504 6380 6220 160

Given the MACD value, lets try and find the answer for few obvious questions:

  1. What does a negative MACD value indicate?
  2. What does a positive MACD value indicate?
  3. What does the magnitude of the MACD value actually mean? As in, what information does a -90 MACD  convey versus a – 30 MACD ?

The sign associated with the MACD just indicates the direction of the stock’s move. For example if the 12 Day EMA is 6380, and 26 Day EMA is 6220 then the MACD value is +160. Now, under what circumstance do you think the 12 day EMA will be greater than the 26 day EMA? Well, we had looked into this in the moving average chapter. The shorter term average will generally be higher than the longer term only when the stock price is trending upwards. Also, do remember, the shorter term average will always be more reactive to the current market price than the longer term average. Hence a positive sign tells us that there is positive momentum in the stock, and the stock is drifting upwards. The higher the momentum, the higher is the magnitude. For example, +160 indicate a positive trend which is stronger than +120.

However, while dealing with the magnitude, always remember the price of the stock influences the magnitude. For example, higher the underlying price such as Bank Nifty, naturally, the higher will be the magnitude of the MACD.

When the MACD is negative, it means the 12 day EMA is lower than the 26 day EMA. Therefore the momentum is negative. Higher the magnitude of the MACD, the more strength in the downward trend.

The difference between the two moving averages is called the MACD spread. The spread decreases when the momentum mellows down and increases when the momentum increases. To visualize convergence and the divergence traders usually plot the chart of the MACD value, often referred to as the MACD line.

The following is the MACD line chart of Nifty for data points starting from 1st Jan 2014 to 18th Aug 2014.

M2-Ch15-Chart1

As you can see the MACD line oscillates over a central zero line. This is also called the ‘Center line’. The basic interpretation of the MACD indicator is that:

  1. When the MACD Line crosses the center line from the negative territory to positive territory, it means there is divergence between the two averages. This is a sign of increasing bullish momentum; therefore one should look at buying opportunities. From the chart above, we can see this panning out around 27th Feb
  2. When the MACD line crosses the center line from positive territory to the negative territory it means there is convergence between the two averages. This is a sign of increasing bearish momentum; therefore one should look at selling opportunities. As you can see, there were two instance during which the MACD almost turned negative (8th May, and 24th July) but the MACD just stopped at the zero line and reversed directions

Traders generally argue that while waiting for the MACD line to crossover the center line a bulk of the move would already be done and perhaps it would be late to enter a trade.  To overcome this, there is an improvisation over this basic MACD line. The improvisation comes in the form of an additional MACD component which is the 9 day signal line. A 9 day signal line is a exponential moving average (EMA) of the MACD line. If you think about this, we now have two lines:

  1. A MACD line
  2. A 9 day EMA of the MACD line, also called the signal line

With these two lines, a trader can follow a simple 2 line crossover strategy as discussed in the moving averages chapter, and no longer wait for the center line cross over.

  1. The sentiment is bullish when the  MACD line crosses the 9 day EMA wherein MACD line is greater than the 9 day EMA. When this happens, the trader should look at buying opportunities
  2. The sentiment is bearish when the MACD line crosses below the 9 day EMA wherein the MACD line is lesser than the 9 day EMA. When this happens, the trader should look at selling opportunities

The chart below plots the MACD indicator on Asian Paints Limited. You can see the MACD indicator below the price chart.

M2-Ch15-Chart2

The indicator uses standard parameters of MACD:

  1. 12 day EMA of closing prices
  2. 26 day EMA of closing prices
  3. MACD line (12D EMA – 26D EMA) represented by the black line
  4. 9 day EMA of the MACD line represented by the red line

The vertical lines on the chart highlight the crossover points on the chart where a signal to either buy or sell has originated.

For example, the first vertical line starting from left points to a crossover where the MACD line lies below the signal line (9 day EMA) lies and suggests a short trade.

The 2nd vertical line from left, points to a crossover where the MACD line lies above the signal line, hence one should look at buying opportunity. So on and so forth.

Please note, at the core of the MACD system, are moving averages. Hence the MACD indicator has similar properties like that of a moving average system. They work quite well when there is a strong trend and are not too useful when the markets are moving sideways. You can notice this between the 1st two line starting from left.

Needless to say, the MACD parameters are not set in stone. One is free to change the 12 day, and 26 day EMA to whatever time frame one prefers. I personally like to use the MACD in its original form, as introduced by Gerald Appel.

15.2 – The Bollinger Bands

Introduced by John Bollinger in the 1980s, Bollinger bands (BB) is perhaps one of the most useful indicators used in technical analysis. BB are used to determine overbought and oversold levels, where a trader will try to sell when the price reaches the top of the band and will execute a buy when the price reaches the bottom of the band.

The BB has 3 components:

  1. Middle line which is The 20 day simple moving average of the closing prices
  2. An upper band – this is the +2 standard deviation of the middle line
  3. A lower band – this is the -2 standard deviation of the middle line

The standard deviation (SD) is a statistical concept; which measures the variance of a particular variable from its average. In finance, the standard deviation of the stock price represents the volatility of a stock. For example, if the standard deviation of a stock is 12%, it is as good as saying that the volatility of the stock is 12%.

In BB, the standard deviation is applied on the 20 day SMA. The upper band indicates the +2 SD. By using a +2 SD, we simply multiply the SD by 2, and add it to the average.

For example if the 20 day SMA is 7800, and the SD is 75 (or 0.96%), then the +2 SD would be 7800 + (75*2) = 7950. Likewise, a -2 SD indicates we multiply the SD by 2, and subtract it from the average. 7800 – (2*75) = 7650.

We now have the components of the BB:

  1. 20 day SMA = 7800
  2. Upper band = 7950
  3. Lower band = 7650

Statistically speaking, the current market price should hover around the average price of 7800. However, if the current market price is around 7950, then it is considered expensive with respect to the average, hence one should look at shorting opportunities with an expectation that the price will scale back to its average price.

Therefore the trade would be to sell at 7950, with a target of 7800.

Likewise if the current market price is around 7650, it is considered cheap with respect to the average prices, and hence one should look at buying opportunities with and expectation that the prices will scale back to its average price.

Therefore the trade would be to buy at 7650, with a target of 7800.

The upper and lower bands act as a trigger to initiate a trade.

The following is the chart of BPCL Limited,

M2-Ch15-Chart3

The central black line is the 20 day SMA. The two red lines placed above and below the black like are the +2 SD, and -2SD. The idea is to short the stock when the price touches the upper band with an expectation that it will revert to average. Likewise one can go long when the price touches the lower band with an expectation it will revert to the average.

I have highlighted using a down arrow all the sell signals BB generated, while most of the signals worked quite well, there was a phase when the price stuck to the upper band. In fact the price continued to drift higher, and therefore even the upper band expanded. This is called an envelope expansion.

The BB’s upper and lower band together forms an envelope. The envelope expands, whenever the price drifts in a particular direction indicating a strong momentum. The BB signal fails when there is an envelope expansion. This leads us to an important conclusion; BB works well in sideways markets, and fails in a trending market.

Personally whenever, I use BB I expect the trade to start working in my favor almost immediately. If it does not, I start validating the possibility of an envelope expansion.

15.3 – Other Indicators

There are numerous other technical indicators, and the list is endless. The question is, should you know all these indicators to be a successful trader? The answer is a simple no. Technical indicators are good to know, but they by no means should be your main tool of analysis.

I have personally met many aspiring traders who spend a lot of time, and energy learning different indicators, but this in the long run is futile. The working knowledge of few basic indicators, such as the ones discussed in this module are sufficient.

15.4 – The Checklist

In the previous chapters, we started building a checklist that acts as a guiding force behind the trader’s decision to buy or sell. It is time to revisit that checklist.

The indicators act as tool which the traders can use to confirm their trading decisions, it is worthwhile to check what the indicators are conveying before placing a buy or a sell order. While the dependence on indicators is not as much S&R, volumes or candlestick patterns, it is always good to know what the basic indicators are suggesting. For this reason, I would recommend adding indicators in the checklist, but with a twist to it. I will explain the twist in a bit, but before that let us reproduce the updated checklist.

  1. The stock should form a recognizable candlestick pattern
  2. S&R should confirm to the trade. The stoploss price should be around S&R
    1. For a long trade, the low of the pattern should be around the support
    2. For a short trade, the high of the pattern should be around the resistance
  3. Volumes should confirm
    1. Ensure above average volumes on both buy and sell day
    2. Low volumes are not encouraging, hence do feel free to hesitate while taking trade where the volumes are low
  4. Indicators should confirm
    1. Scale the size higher if the confirm
    2. If they don’t confirm, go ahead with the original plan

The sub bullet points under indicators are where the twist lies.

Now, hypothetically imagine a situation where you are looking at opportunity to buy shares of Karnataka Bank Limited. On a particular day, Karnataka Bank has formed a bullish hammer, assume everything ticks on the checklist:

  1. Bullish hammer is a recognizable candlestick pattern
  2. The low of the bullish hammer also coincides with the support
  3. The volumes are above average
  4. There is also an MACD crossover (signal line turns greater than the MACD line)

With all four checklist points being ticked off I would be very glad to buy Karnataka Bank. Hence I place an order to buy, let us say for 500 shares.

However, imagine a situation where the first 3 checklist conditions are met but the 4th condition (indicators should confirm) is not satisfied. What do you think I should do?

I would still go ahead and buy, but instead of 500 shares, I’d probably buy 300 shares.

This should hopefully convey to you how I tend to (and advocate) the use of indicators.

When Indicators confirm, I increase my bet size, but when Indicators don’t confirm I still go ahead with my decision to buy, but I scale down my bet size.

However I would not do this with the first three checklist points. For example, if the low of the bullish hammer does not coincide in and around the support, then I’ll really reconsider my plan to buy the stock; in fact I may skip the opportunity, and look for another opportunity.

But I do not treat the indicators with the same conviction. It is always good to know what indicators convey, but I don’t base my decisions on that. If the indicators confirm, I increase the bet size, if they don’t, I still go ahead with my original game plan.


Key takeaways from this chapter

  1. A MACD is a trend following system
  2. MACD consists of a 12 Day, 26 day EMA
  3. MACD line is 12d EMA – 26d EMA
  4. Signal line is the 9 day SMA of the MACD line
  5. A crossover strategy can be applied between MACD Line, and the signal line
  6. The Bollinger band captures the volatility. It has a 20 day average, a +2 SD, and a -2 SD
  7. One can short when the current price is at +2SD with an expectation that the price reverts to the average
  8. One can go long when the current price is at -2SD with an expectation that the price reverts to the average
  9. BB works well in a sideways market. In a trending market the BB’s envelope expands, and generates many false signals
  10. Indicators are good to know, but it should not be treated as the single source for decision making.

446 comments

  1. Nitesh sharma says:

    Hi Karthik
    Wanted to understand fast and slow stochastic and where they are used

    • Karthik Rangappa says:

      The indicator is best used while trading intra day. I will probably include a write on this sometime soon.

      • Nitesh sharma says:

        Thanks will be waiting for the same but its working awesomly well for intraday for few points profit in options but i really fail to understand why this news channels and advisory keep fooling people and when the best way to learn TA is keep it simple Thanks for all your efforts

        • Karthik Rangappa says:

          You said it, the best way to learn TA is by keeping it really simple and not complicating it with many lines and indicators.

          We have tried to do the same in Varsity 🙂

          • Arunava says:

            Learning TA seems simple because of the way you presented the information to us. I have been going though your tutorial for last two days and I never felt bored even for a single moment, things have been explained in a very very simple way but in great detail backed by practical experiences. Thanking you won’t be sufficient to express my gratitude to you for writing such a wonderful tutorial.

          • Karthik Rangappa says:

            Arunava, thank you so much for the kind words. Words like these encourage us to write more meaningful content. Happy learning 🙂

        • Saurabh says:

          Hi Nitesh,

          Mind if I ask how are you using stochastics on options? For example what is the candle duration you are using and the details of the stochastic parameters?

      • Sachin Kanchan says:

        MACD with 9 day SMA crossover/ MACD SIGNAL example for Asian paints seems wrong.
        The red line might be for MACD line and black for MACD SIGNAL.
        please look into this.

        • Karthik Rangappa says:

          Thanks, I’m aware of this. Its just that I’ve not been able to rectify it yet. Will do shortly.

          • AK says:

            I think the MACD/signal line confusion still remains (30/09/2016). “The sentiment is bullish when the 9 day SMA crosses over the MACD Line wherein the 9 day SMA is greater than the MACD line. When this happens, the trader should look at buying opportunities” . This is in fact a bearish sentiment. Please clarify.

            While changing the above, could you avoid using crosses over in both bullish and bearish scenarios? It creates confusion in newbies like me. Crosses over can be used in bullish sentiment whereas crosses under can be used in bearish sentiment. Or simply could you say that ” When the MACD line (generally black) goes above the signal line, then it indicates a bullish sentiment” or something like that. Thanks.

          • Karthik Rangappa says:

            I understand there is a confusion here, will fix it as soon as possible.

          • Neha says:

            Please fix this.

          • pritesh says:

            Karthik, please fix this.

          • Sandesh says:

            I hope the interpretation of MACD crossover as per universal standards is :-

            MACD()>MACDSIGNAL() —– Bullish
            MACD()<MACDSIGNAL() —– Bearish

            I hope this issue is automatically resolved when TV is implemented in kite. But, the same issue is still persisting in PI. Be aware. Actually, PI has many other indicators having different interpretation issues.

            I hope ZERODHA will follow international standards and provide with indicators in its original forms as designed by respective inventors along with with their true interpretation.

            Happy trading….

          • Karthik Rangappa says:

            Getting this checked, Sandesh.

        • black is MACD line and pink is signal line.Just believe it and go ahead my friend.

      • Bhushan Jani says:

        What chart do we have to plot to analyze indicators and EMA? Because all parameter values changes when we select min, day, month and year chart.

  2. Ashutosh Raje says:

    I wanted to work on overbought-oversold indicators.Now rsi and cci have been here for too long….How do I get better confirmations and reversals?I am sure we need to keep up with latest indicators….as these have been here for ages.Is there anything new I can work on?

    • Karthik Rangappa says:

      Well, I agree it has been around for a while. But disqualifying it based on time factor may not be a great idea. Having said that, I have not come across anything new that looks promising 🙂

    • Nitesh sharma says:

      Hi Ashutosh all this indicators are there from along time and promise all this will be there till eternity and the ones mentioned in varsity are the chosen best ones with a great record and tested, don’t look for new ones practice more with old ones and promise you will never know you will become a master trader

  3. jagadeesh says:

    In the intraday chart, RSI is never touching the oversold region. Can i add a SMA and check the crossover for bullish and bearish confirmation??
    Thanks in advance.. 🙂

    • Karthik Rangappa says:

      No in fact what you can do is estimate the level upto which the RSI increases (on intra day basis) and based on this you can re calibrate the oversold and overbought levels.

      • jagadeesh says:

        Thank you so much for your reply. 🙂
        Do you mean that i need to change the oversold and overbought regions regularly on intraday basis?? I read somewhere that the rsi oscillates between 45 and 100 in uptrend and between 65 and 0 in downtrend. How far it is true? Hope im not bugging you with my doubts. 😀
        Thanks in advance.

        • Karthik Rangappa says:

          Not regularly, but you need to understand what levels work for which stock. For example a level of 40 and 60 may work extremely well for Infy while at the same time 30 and 70 may work for TCS. So the point is to identify this metrics.

          Btw, you are not bugging me, you are just contributing significantly towards making the community more vibrant. Please keep the comments queries coming 🙂

  4. HAWWA says:

    Sir,
    Is there any calculated formula where we can predict the proper closing. If yes, how to calculate?. If no, then how do some people predict in crowd index?

  5. Harshad Salvi says:

    Excellent to say the least…
    Really now understand the application of BBs.
    One request .. Would you please include in your tutorial Stochastics & their applications soon?

    • Karthik Rangappa says:

      Thanks, I’m glad you found this useful 🙂

      Will include a chapter on Stochastics sometime soon.

      • Harshad Salvi says:

        Adani Ent. seems to be trading sideways for considerable time. I found the formation on chart perfectly suited for application of BBs.
        Do you agree? Hope i am not embarrassing you by asking this

        • Karthik Rangappa says:

          Lol, why would you embarrass me :). This platform is meant to ask question and learn from one another.
          Btw, you are perfectly right with Adani Ent. It is at the lower SD..which advocates a long position. But do make sure other things on the checklist confirm. Good luck.

  6. raj says:

    karthik ji, kindly discuss elaborately on ADX in Varsity, thank you

  7. Teja says:

    Hi Karthik
    i am in confusion regarding one of the examples mentioned in the above chapter. its this paragraph to be precise
    “For example, the first vertical line starting from left points to a crossover where the MACD signal (9 day SMA) lies below the MACD line and hence one should look for a selling opportunity. The 2nd vertical line from left, points to a crossover where the MACD signal line lies above the MACD line, hence one should look at buying opportunity.”
    this is a paragraph explaining the improvised MACD with the example of asian paints graph. my doubt is the in the graph at the first vertical from the left the cross over occurs the MACD signal(red line) actually goes above the MACD line(black line), but the in the above paragraph quoted from the chapter it mentioned that the MACD signal lies below the MACD line which is contrary to what’s seen in the graph. Hope you have understood my query and let me know where i am going wrong.

    • Karthik Rangappa says:

      Wow! Thanks for pointing this, your observation is correct. I need to make this correction.

      • civils.aditya says:

        Hi Karthik, I was about to send the query exactly same as that of Teja and just noticed this comment. Is the correction is not made or is it just my understanding gap.

        • Karthik Rangappa says:

          Oops I;ve missed this completely. I will look into it shortly.

          • Gaurav says:

            Hi Karthik,
            I am still not clear about MACD line and MACD signal example of Asian Paints. The correction has been made on it or not? As I am still confused about it.
            Thanks!

          • Karthik Rangappa says:

            Gaurav – I will review the entire write up MACD on priority, can you please check back in 2 days? Thanks so much for your patience.

          • GokulaZerodha says:

            Hi Karthik,
            Was the correction made in MACD?
            And also I bit confused here that how can a signal line (which is fast and more reactive than MACD) actually lie below MACD when the trend is up? this seems quite opposite to EMA. 9 SMA (Signal Line) should move over MACD when the trend is up since 9 SMA is recent and should be fast and more reactive than MACD. Please correct me if I’m wrong. I can understand all other concepts quite easily but getting confused here.

          • Karthik Rangappa says:

            My bad, I;m yet to make the necessary corrections. Will do as soon as possible.

          • Swaminathan Jayaraman says:

            I am having an excellent learning through Varsity. Thank you very much.
            But I still have the MACD signal vs the MACD line cross over doubt in this article. After reading all the comments, I understood there is/was an issue and I am not able to get to whether it has been solved or not. Can you please elaborate here as to when is a bullish crossover and a bearish one?
            If the Signal line (9day) (red) crosses over the MACD line (black, 12 and 26) (ie) after crossing, the red is now above black -> does this denote bullish/bearish.. From what I expect it to be is ‘Bullish’, but what has been mentioned is ‘bearish’. Can you please elaborate and let me know if my understanding is correct or not. Thanks.

          • Karthik Rangappa says:

            Happy learning!

            There was an issue, which has been rectified. I’d suggest you give it another read 🙂

      • Sandesh says:

        I would be glad if you also include ELDER FORCE INDEX in your varsity.

        I insist on including this just as I entered a wrong trade and had booked loss due to Force Index being plotted upside down on PI.

        For an example, please open KITE and PI simultaneously and plot FI on both platforms. You will be shocked….

  8. t rama says:

    Dear Sir,

    thanks a lot for your worthy articles on FA & TA, I have a doubt on the cross overs of MACD and signal line. in some books it indicates that bullish cross over is when MACD line cross over Signal line. where in the above chapter it is in reverse. Pl. clarify.

    Thanks/Regards

    • Karthik Rangappa says:

      Signal line is a 9 day average line whereas the MACD takes the difference between 12 & 26 day average. Hence the signal line is more reactive to the daily price moves and therefore generates the trigger to either buy or sell.

      • Teja says:

        hi karthik are you sure the signal line is more reactive to the change in prices. i think the macd is more reactive since it the differance and signal is the average its comparatively less reactive to the same change.

  9. GURU says:

    Hi Karthik,
    Most sources like books and wikipedia say that a bullish signal is when MACD line moves over the signal line. Here it is mentioned the other way round. Could you please clarify?

  10. R.P. Hans says:

    Dear Sir,
    The upper and lower bands act as a trigger to initiate a trade. Here is it not important that which candle stck is touching the which band. Bullish band touching upper or lower band or bearish band touching the lower band then it is more strong signal then bullish band is touching the lower band. Also its body which is touching the band or even shadow touching the band or crossing the band, same will have same meaning or it gives some sense of strong or weak signal. Please clarify these variable if they are of concerned.
    Thanks

    • Karthik Rangappa says:

      The bollinger band is a volatility, it effective to initiate short trades. I would be happy to see a bullish candle at the lower end of the band while initiating a bullish position. Similarly at the top end I would be happy to see a bearish candle before initiating a short position.

  11. Azgar says:

    Hi All,
    Is there eny one can explain for loding indicator pi Terminal

  12. girish says:

    dear karthik sir..
    here i’m sending bearish macd indicator, stock gravita india ltd. corrected 80 level to 31.
    thank you sir.

  13. girish says:

    dear karthik sir…
    For example if the 20 day SMA is 7800, and the SD is 75 (or 0.96%), then the +2 SD would be 7800 + (75*2) = 7950. Likewise, a -2 SD indicates we multiply the SD by 2, and subtract it from the average. 7800 – (2*75) = 7650.(karthik sir how to calculate sd 75, bit confuse…thank you sir)

  14. DR1184 says:

    hi Sir,
    confusion abt MACD and signal line crossover would be cleared iff one considers “MACD line” itself being some scrip, and it has its own 9-DMA as usual. we then follow standard method of trading of using MA only.
    (
    stock close above it’s n-DMA => long
    stock close below it’s n-DMA => short
    )
    i wonder , if we can add one more signal line to MACD line (say 21-DMA) and follow 9/21 MA Crossover system to reduce lag?

    * how can we add custom indicators (which will have its own graph akin to std indicator viz MACD ) in “Pi” ?

    thanks,
    Rajesh

  15. Sathish J says:

    karthik, You are doing something which is more than EXCELLENT and your courses are Awesome.
    Please help me with Intraday Charts Provider who feed market data real time(without 5 or 10 mins Lag). Any Provider will do and i can pay for good service also. I am going to use it for Intraday Trading, Swing Trading, Futures and Options.

    • Karthik Rangappa says:

      Thanks for the encouraging words Sathish – in fact it is not just me there is a small team involved in bringing this content forward on Varsity.

      Why dont you opt for Zerodha Pi? Pi has all the features you are asking for. In fact all the charts that I have posted in Technical Analysis module is from Pi. Check out http://www.zerodha.com/pi .

  16. SUBCLT says:

    Dear sir
    Could you kindly explain which parameters in the stochastic oscillators is best suitable for intraday trading?( particularly in Nifty option and Nifty future)

  17. yogesh says:

    Please elaborate higher the momentum, the higher is the magnitude.Also give detail about momentum n magnitude in basic way mean.

    • Karthik Rangappa says:

      Higher the momentum the greater is the spread between the two averages and hence higher is the magnitude of the difference between the two averages.

  18. tramadevi says:

    Dear sir,
    Which indicators(any two) we need to look for sideways and trend markets. for example as stated Bollinger bands works well when market is sideways .

    Regards

  19. tramadevi says:

    sir,
    can I look for RSI instead of stochastic.

    Regards

  20. tramadevi says:

    Sir,
    while observing different stocks for Bollinger Brands all most all of them followed Bollinger theory. Iam not understood how is it works in side ways markets only.

    Thanks & Regards

    • Karthik Rangappa says:

      BB works on a statistical framework. BB especially works well when the stock is in a sideways trend – for the simple reason that it follows the principle of mean reversion.

  21. Mukul says:

    Dear KARTHIK,

    Thanks for such great explanation, your courses are awesome. Here I am attaching chart of Apollo Tyres kindly confirm the pattern. As per my observation it should be Tripple bottom. Kindly reply

  22. Raghavendra says:

    Hi Karthik,
    What are the consequences of a Triple Bottom or a Triple Top?. I hear people talking about these but don’t understand what would happen after the occurrence of one. And how much can we depend on such an occurrence?.

  23. NARSIMHA says:

    sir,its totally confusing,somewebsites say if MACD LINE CROSSES BUY if

  24. NARSIMHA says:

    sir,its totally confusing,somewebsites say if MACD LINE CROSSES SIGNAL LINE BUY if MACD LINE FALLS BELOW SIGNAL LINE SELL U SAY OPPOSITE

  25. NARSIMHA says:

    sir,its totally confusing,somewebsites say if MACD LINE CROSSES SIGNAL LINE BUY if MACD LINE FALLS BELOW SIGNAL LINE SELL U SAY OPPOSITE WHICH TO FOLLOW, WHY,WHEN,HOW,PLS EXPLAIN DETAILLY.

  26. NARSIMHA says:

    SIR,THERE IS HUGE DIFF IN WHAT U SAY (MACD)&WEBSITES SUCH AS INVESTOPEDIA,STOCK CHARTS,ONLINE TRADING CONCEPTS CHECE&CORRECT IF IAM WRONG

  27. vikas ahlawat says:

    karthik ji

    Can you please tell me what is the meaning of volume candle color red and green.

    thanks&regards
    vikas

    • Karthik Rangappa says:

      Volume as such does not have a colour code…but traders usually associate the volume colour with the price. If the price has gone up, then volume bar is green and if price has come down the volume bar is red.

      • GokulaZerodha says:

        Hi Karthik, But I can see for some days the candle is green but the volume is red for the same day and vice versa.

        • Karthik Rangappa says:

          Ah, this depends on the software really. Volume can turn red if the previous day’s volume is higher than current day’s volume.

  28. SARATH says:

    karthik,
    when i try to back test an error message is shown please explain

  29. Naitik says:

    Hi Karthik,

    You made an excellent introduction to all the fundamental indicators. I would always take care of my decision using all your TA.

    But i think there will be confusion in all traders mind that ” What should be best time frame to view this indicators?”, i personally have problem in this.

    Can you make some tutorial as Suitable Time frame one need to watch for all the above mentioned indicators for Short, Med, and Long trade.

    • Karthik Rangappa says:

      Thanks for the suggestion Naitik – just to give you a quick heads up – check out stochastic for intraday, EMA for long term trades, RSI and BB for swing trading. Please note this is just a suggestion, do your due diligence before you act upon it.

  30. Gaurav says:

    The Module on TA is really great. It is so beautifully explained. Thanks a lot Karthik and team. Bravo! 🙂

  31. tramadevi says:

    SIR,
    WHAT IS MONEY FLOW INDEX, HOW IT WORKS, IS IT WORTH LOOKING FOR SHORTS AND LONGS.

  32. tramadevi says:

    sir,
    Which stochastic indicator is to be followed Fast or Slow.

    regards

  33. tramadevi says:

    sir,
    Which stochastic indicator is to be followed Fast or Slow.

    regards

  34. romi says:

    Hi Karthik,

    as I have seen the graph u included on MACD and 9day SMA, I saw buying interest when MACD>9 day SMA and vice versa.
    the same I saw in GM Breweries case also. but u have written it opposite. please confirm

  35. aehsan4004 says:

    question regarding back testing :-

    i am back-testing an indicator on PI , it shows consistent profits on 2 day , 10 day , 20 day run .
    when i run for 30 days , it shows loss .
    when i run for 40 days , it again shows profit .

    i want to use this indicator for pure intraday trading only .

    what points should i consider before finalizing a strategy and going ahead with full automation ?

    • Karthik Rangappa says:

      I can only give you few pointers here, but please be aware that there are many variables that you need to consider –

      1) Leverage required – if the indicator you have is highly leveraged the think twice
      2) Risk to Reward ratio
      3) Frequency of trade signals
      4) Number of profitable trades to loss making ones
      5) Profitability per trade
      6) Drawdown

      Etc.

  36. aehsan4004 says:

    1) i really did not understand “leveraged indicator ” ,kindly explain .
    i used the indicator on commodity futures , i use simple NRML leverage even when i am aware i will close position within the day itself , just to control against excessive leverage . i am not aware about what exactly u mean when u say ” indicator leverage” .

    2) risk to reward ratio , how to check this via back testing , i backtested simple long-short , without any kind of exit parameters .

    3) frequency is 3-6 on a day per futures script .

    4) generally profitable are higher than losers .

    5) profitability per trade , how to check this ?

    6) what exactly is ” drawdown “?

    • aehsan4004 says:

      hello , any answers for these above mentioned queries ?

    • Karthik Rangappa says:

      1) If the strategy requires you to use excessive leverage – for example buy futures + sell options simultaneously then the position is highly leverage. This is what I mean
      2) For you buy @ 100, with target of 110 and SL of 95, then you are risking 5 for an expectation of 10…risk to reward is 1:2…which is good. However if your strategy gives you a risk to reward of 1:1 then it may not be that great…you are risking 1 for a reward of 1.
      3) This seems ok
      4) Ok
      5) Divide the over all profit by total number of trades …you will get profitability per trade
      6) Drawdown is a measure of how much the profitability has declined from its highest point. For example if my overall profitability Is currently at 10K…but historically it was at 22K, then the drawdown is 12K. Higher the drawdown, the more volatility the strategy is.

  37. Akshay says:

    Dear sir ,
    Thank you for this .. i’m a newbie .. i wanted to know if the macd is more sensitive or the Moving average crossover system . I knogw that macd is a derivative of moving averages .
    Thank you

  38. Sooraj J Mishra says:

    Dear Karthik Sir,
    I do intraday trading in options and in order to judge the trend in nifty, I use google finance nifty 2 min chart.. I want to know that which EMA period is good for intraday trend judgement? 10, 20 or 40? similarly which period is good for RSI? 10 20 or 40??
    Regards & Thanks in advance….as I know you will answer…!!!

    • Karthik Rangappa says:

      Sooraj – why are you depending on Google for intraday charts when you have super fast streaming via Kite – https://kite.zerodha.com/ .

      EMA – my personal preference is 9 and 21. RSI – 20 over sold and 80 for over bought.

      • aehsan4004 says:

        1) i am still unaware on what exactly is scanner on PI and how to use it ?

        2) can we use this EMA+RSI combo for long period stock holding also ?

        3) is it possible to fix this strategy on PI scanner & and scan stocks which give this signal ?

      • Sooraj J Mishra says:

        Actually I am not allowed to carry my personal laptop where I go to work……I just use NEST Mobile Application for trading and use google finance chart in Public PC to view nifty chart. I cannot take risk to log in in public place thats why I dont use kite….
        although I have PI software (indeed superb & useful….) that I am able to use only once in a month….!!!

        • Karthik Rangappa says:

          You can use Kite on your mobile, works like a charm 🙂

          • Sooraj J Mishra says:

            That’s a good idea….!!
            I do scalping in Option Premiums and use Bolinger Bond, RSI and EMA for technical analysis.
            am I doing right Sir? I earn approx Rs 2500 daily (except one big loss Rs 27000…!!).
            What according to you best technical indicators for premiums in nifty as they vary a lot….??

          • aehsan4004 says:

            may i ask what trading capital you use for making 2500 daily ?

          • Karthik Rangappa says:

            As long as you have method to madness you are good 🙂

            Also, there is nothing like best technical indicator as each one has its own merits and demerits.

  39. Sooraj Jogendra Mishra says:

    I have around 90000 in my capital. I buy premium on dips whenever RSI is below 20 then sell when premium moves 3 to 4 points….
    I am new in the market so I don’t go for positional trade as It has already cost me heavy loss in the very beginning.

    • aehsan4004 says:

      RSI below 20 on the premium itself or the underlying ?
      even i do only intraday 🙂

    • aehsan4004 says:

      1) RSI below 20 on the premium itself or the underlying ?
      2) JUST THIS ALONE , nothing else ?
      instead of selling it off after a 3-4 point up move , why don’t u simply place a stop-loss and wait if any more profit possible ?

      even i do only intraday 🙂

      • Sooraj Jogendra Mishra says:

        RSI in Nifty Chart only…
        I combine Bollinger Bolls with RSI or EMA with RSI when both triggers buy then I buy premiums…
        I am new so I donot go for much right now…but I will do as you are saying but it will take some time…!!!

        • aehsan4004 says:

          do you trade ITM , ATM or OTM options ?
          in this strategy do u calculate option greeks ? or you don’t consider B&S calculator at all ?

          i am very thankful , that you are openly discussing your personal trading strategy with me , thanks a ton 🙂

          • Sooraj Jogendra Mishra says:

            In the beginning of the series I trade in slightly OTM (at least 10 trading sessions say…) later I trade only in ITM as it has more delta( kartik sir tought us…!!!
            and dont say thanx as We Zerodha is a Family….!!!

          • Karthik Rangappa says:

            Happy to read this Sooraj 🙂

        • Karthik Rangappa says:

          Good luck Sooraj!

  40. Sooraj J Mishra says:

    Thanks Karthik Sir for your support…!!!
    Please do add Chapter on Put Call Ratio to define market trend…..only you can explain it in simple & easy to understand language..

    Regards,

  41. aehsan4004 says:

    besides the massive volume surge , what other indicators gave a signal for the massive bullish surge today ?
    i have to say i am waiting eagerly for the currency – commodity module 🙂

  42. SreeVee78 says:

    Hi Nithin,

    Posting it in here as you advised “Your answers would be of help to many TRADERS like me”

    With lots of indicator options to choose from Pi, i have so far tried
    1) Q stick,
    2) Bollinger bands
    3) Elder bull power
    4) Elder thermometer (seems good enough except that it shows the trend only after it peaked/dropped, aint)
    after starting my trades in Z ..

    The above are apart from what i use normally like
    1) Candle stick patterns,
    2) Wedges (rising and falling)
    3) Volume price indexes –> balance b/w buy and sell volumes
    4) RSI along with bull/bear sticks (Jap/Ham)

    which have helped arrive at good guesses.

    But i do find that for the below reasons, some of them are not able to give a clear signal on buy

    1) despite the q stick showing 3 or 3 and above on crude sometimes, the actual trend is correction for volatility being the KILLER.

    Unable to go with conviction, that it’s okay to buy based on climbing slope shown as the sell volumes remain Extremely volatile, it happened yday on copper in the eve, even on crude for a while

    –> is it okay to use, as it’s misleading in cases like above.

    2) B Bands/other averages/band only suggest the avg that can be a safe but can’t be a good bet to realize good enuf profits after all taxes charges by SEBI, Exch & govt,
    “ONLY POSITIVE” being “Zerodha’s RETAIL FRIENDLY Brokerage”..

    —> following THESE indicators only lead to very minimal profits most times. This doesn’t mean a MEAN profit is not respected, but then again as all of us would agree, some more killers by Govt.,

    to take care of despite huge risks taken to earn them, no solace from them though they advocate all to invest/trade 😉

    3) In your RICH trading experience,what’s the best indicator to use among SO MANY GOOD Ones (given in Pi) to make a near accurate buy/sell call at any point

    4) On shorting, Wedge along with RSI (i try to pick by 70-75 ranges as 80 is not possible always), proxime bear sticks have been helpful but during volatilite volumes every min, unable to judge
    For i love the famous words, “Shorting is the trade for Profits” most ttrying times , if one is sure about the TREND 😀

    Pls enlighten!

    Thanks for your time to read this, your availability to reply to trivial doubts from clients, willing to share thoughts, inputs despite being a HIGHLY SUCCESSFUL CEO of a terrific Enterprise!

    Regards,
    Sri RAM

    PS: Trading had never been such a delight before using PI (π)

    • Karthik Rangappa says:

      Thanks for posting this, I’m sure readers here will benefit!

      • SREEVEE78 says:

        Thank You Nithin/Karthik for this wonderful blog and excellent articles , awaiting your answers on the above.

        Sri RAM

        • Karthik Rangappa says:

          Ram read through your entire comment and i get a feeling your problem could be with time frames. Sometimes simple indicators like moving averages give great results. Super trend seems to be performing really well in these volatile markets. I would suggest you increase the time frame, lower the number of trades to capture larger profits.

  43. Sushant y says:

    Dear Karthik ,
    I was reading the comments thinking it will solve my confusion. but I found that many people have same confusion as of me about MACD and 9 Day SMA signal. You still haven’t changed the content of MACD and 9 day SMA signal. there is confusion regarding what you are saying and what digram is showing. Please do the correction as you have promised to do it in earlier comments.

    and Please Reply

    Thanks,

    • Karthik Rangappa says:

      Sushant, I’m sorry about the delay..its just that I’m caught with the 2 modules on Options. Will probably re write the whole of MACD chapter sometime soon (week or 2) to make things clear. Meanwhile we will be putting up a supplementary notes in TA module by today/tomorrow which will contain quick notes about 10 indicators.

  44. chandana says:

    Hi Karthik,
    Please define about MACD histogram.How is it different from MACD?Is the former indicator helpful for day trading when plotted in 1 min chart?

    • Karthik Rangappa says:

      I plan to re write MACD chapter altogether, I will include the histogram piece in the new article. I’d suggest you to please wait for few more days. Thanks.

  45. how to read Rain Bow indicator

  46. Shafeeq says:

    Greetings Sir,
    I am a newbie, striving to be a trader !
    First of all let me tell you, Varsity course is the most comprehensive, well structured & a detailed course especially for a newbies like me. I have not come across such a course even after googling a lot on the web. I believe, Varsity stands out in the crowd!!!
    Truly respect your efforts and endeavor for providing such a fruitful learning for all of us.

    I have been seriously following the course, chapter by chapter and by the grace of God, it was easy to digest until now.

    I have a small question for you sir, that your have stressed on a point in this lesson that the low of the candlestick should be around the support price for a long position. My specific queries regarding this are :
    1. Why it is so important for the low & support to match?
    2. What if the low is way below the support level? and
    3. What if the low is quite above the support level?
    Please suggest and guide, What should I infer or draw conclusions in these situation& What should be my action plan on these trade !!!

    Regards.

    • Karthik Rangappa says:

      Shafeeq, thanks for the kind words and encouragements. Words like this encourage us to do better and better 🙂

      1) If the low and Support coincide, then it gives us the confidence that the support level held on and therefore market made a low at support.
      2) Then the support becomes the resistance. Remember support and resistance are interchangeable based on the last traded price of the stock.
      3) I’d personally be a bit uncomfortable taking long positions when support is still far from low, it gives a feeling that the market could fall further.

  47. Shafeeq says:

    Hi Karthik Sir,
    A little confused in MACD & Signal line crossovers when to go long & short.
    Can you please explain in brief ?

  48. sudarshan says:

    sir,
    excellent work……
    i have 1 query
    i m new & interested intraday trading
    1]which time frame is good for most successful intraday
    2] is their S&R line developed automatically in pi
    3] what details about scanner in pi
    4]whether backtest use for intraday
    waiting for your reply

  49. Ayush Goel says:

    Hi,
    I have been confused a lot by your chart of asian paints in the MACD line and the 9 day SMA of MACD line.
    I believe that you have explained the strategy to follow in chart wrongly.
    I think some modification is to be made to the below paragraph :-

    With these two lines, a trader can follow a simple 2 line crossover strategy as discussed in the moving averages chapter, and no longer wait for the zero line cross over.

    1. The sentiment is bullish when the 9 day SMA crosses over the MACD Line wherein the 9 day SMA is greater than the MACD line. When this happens, the trader should look at buying opportunities
    2. The sentiment is bearish when the 9 day SMA crosses over the MACD line wherein the 9 day SMA is lesser than the MACD line. When this happens, the trader should look at selling opportunities

    Furthur I think that there has been an error on page 62 point 4 of the checklist, the point written is as follows :-
    4. There is also an MACD crossover (signal line turns greater than the MACD line)
    In the bracket it should be written that the MACD line turns greater than the signal line for bullish pattern.

    I have been very much confused with this whole MACD line and 9 days SMA of MACD line pattern and would like to know weather I’m thinking right over here or there has been a understanding problem by me. Please help me out here. Thanks.

    • Karthik Rangappa says:

      Ayush – There has been some confusion with MACD chapter. Mistake is from my side…and unfortunately I’ve not been able to put up the correct stuff as I’ve been busy with few other things. Will do this as soon as I can.

      • Ayush Goel says:

        Yeah, reading all the above comments I became sure that I’m not the only one with the confusion in MACD Chapter.
        I just want to make sure that the bullish pattern through MACD line and 9 day EMA of MACD is formed when the MACD line turns greater than the signal line ?
        Thanks for your reply and waiting for the updated MACD chapter.

  50. ganesh says:

    Hi Karthik, from pure intraday trade persepective if i use 12EMA, 26EMA, 9SMA MACD or 20 SMA Bollinger band indicator, then what is ideal intraday chart for checking 1st and 2nd checklist point which you have highlighed in module. Because 1minute, 5 minute or 10 minute chart candlesticks will be different at a particular time.

  51. Sameer Jadhwar says:

    Which data do you choose to select the support and resistance for intraday trading

  52. Amit says:

    D/Sir,
    as per above tutorials, bullish scenarios occure when EMA9 (signal line) crosses and become more that EMA21. However in expert advisor while coding but script is mentioned as.:
    EMA(CLOSE,9)REF(OPEN,1) AND
    REF(CLOSE,2)< REF(OPEN,2) AND
    REF(OPEN,1)REF(OPEN,2)

    Kindly clarify the same sir.. 🙂

  53. prabakaranbs says:

    How can we find the envelope expands? Is there any specific range to be maintained between top and bottom lines to ensure the market is sideways?

  54. madhuri says:

    Hi Kartik,
    Thanks for your wonderful lessons i am slowly getting the hang of the game.
    I notice an error In the MACD example of Asian paints i think the Pink line should be MACD line and the black line as signal line if i go by your explanation.Pls correct me if i’m wrong.Thanks

  55. Sanjay says:

    In between the 2 vertical lines in MACD chart for Asian Paints, there are several instances of the MACD crossover (on both sides)… looks like these are false signals… is there any way we can identify which is a false signal and which is a true one?

    • Karthik Rangappa says:

      Its a tough call, especially when you start off… you will get a sense of this when you practice many trade set ups with MACD.

  56. Sudheer says:

    5X13 EMA with ADX and RSI combo seems to be working for me to earn consistent decent profits intra day basis.Thanks for all the great explanation provided here.

  57. Deepak Goyal RD2640 says:

    Thanks a ton Karthik for the beautiful explanation of all this. I have two things:

    1st query is about MACD. After introducing the 9 day SMA signal, we are totally ignoring the negative and positive territory aspect of MACD (i.e. above or below level 0), but the Kite application MACD study still shows the territory. Does it signifies anything standard if the crossover is being made in positive or negative territory.

    And the 2nd thing is about the update portion of MACD 🙂 now the time has come for this :). Please update the part of the chapter with this:

    1. The sentiment is bullish when the MACD Line crosses over upside the 9 day SMA signal line as MACD Line is more reactive to current prices as signal line is an average of MACD points itself. When this happens, the trader should look at buying opportunities.

    2. The sentiment is bearish when the MACD Line crosses over downside the 9 day SMA signal line. When this happens, the trader should look at selling opportunities.

    AND A SMALL PORTION OF EXAMPLE:

    For example, the first vertical line starting from left points to a crossover where the MACD Line crosses downside the signal line (red one) and hence one should look for a selling opportunity. The 2nd vertical line from left, points to a crossover where the MACD line (black one) crossed upside the signal line, hence one should look at buying opportunity.

    Thanks Sir

    • Karthik Rangappa says:

      We cannot change the way this appears on Kite simply because we have integrated 3rd party charting engine within Kite. I understand MACD needs an update, will surely do this once the ongoing module on commodities is done.

      By the way, thanks for the kind words 🙂

  58. Akash parkar says:

    how can i install my additional custom indicator on pi?

  59. Dhinakaran says:

    Karthik, I was going the NSE TAME charts and found this – “Most common signal is MACD crossing over the signal line. A buy signal is generated when MACD crosses up through the signal line, where as a sell signal is generated when it crosses down through the signal line”. This is exactly opposite what is give here (Buy signal is when the 9 day SMA crosses over MACD). Could you please confirm which one is correct ?

  60. sammandar khan says:

    The sentiment is bullish when the 9 day SMA crosses over the MACD Line wherein the 9 day SMA is greater than the MACD line. When this happens, the trader should look at buying opportunities
    The sentiment is bearish when the 9 day SMA crosses over the MACD line wherein the 9 day SMA is lesser than the MACD line. When this happens, the trader should look at selling opportunities

    The chart below plots the MACD indicator on Asian Paints Limited. You can see the MACD indicator below the price chart.

    M2-Ch15-Chart2

    The indicator uses standard parameters of MACD:

    12 day EMA of closing prices
    26 day EMA of closing prices
    MACD line (12D EMA – 26D EMA) represented by the black line
    9 day SMA of the MACD line represented by the red line

    The vertical lines on the chart highlight the crossover points on the chart where a signal to either buy or sell has originated.

    For example, the first vertical line starting from left points to a crossover where the MACD signal (9 day SMA) lies below the MACD line and hence one should look for a selling opportunity. The 2nd vertical line from left, points to a crossover where the MACD signal line lies above the MACD line, hence one should look at buying opportunity.

    Sir I have just doubt while understanding the chart and theory together as you wrote the 9 day SMA(red line) is greater than MACD line(black line) then it is a buying signal where in the chart the red line is greater from black line where it is showing sell signal.
    What is the exact thing can you please clear?

    • Karthik Rangappa says:

      Sammandar, I’m just about to finish the commodities module, once this is done, I’ll fix the MACD chapter. It high on my priority. Request you to wait for few more days. Thanks.

  61. Prakhar Srivastava says:

    The sentiment is bullish when the 9 day SMA crosses over the MACD Line wherein the 9 day SMA is greater than the MACD line.
    however Sir when you were discussing on graph at first vertical line from left signal line(red) moves over MACD(black), so that would be the case of long opportunity but there you stated we should look for shorting stock
    Arent these 2 statements contradicting?
    For the first vertical line also MACD is less than signal after crossover

  62. […] You can even use the ATR bands as an alternate to the Bollinger Band trading system. You can read more about the Bollinger Band (section 15.2) […]

  63. Akash says:

    I think there is a mistake in above MACD LINE and MACD SIGNAL example,
    In first vertical line from left MACD signal is above of MACD line, one should look at buying stock and in second vertical line from left MACD Signal is below MACD line, one should look at shorting opportunity,
    If i am wrong correct me, because i am bit confused after watching the graph second time?

    • Karthik Rangappa says:

      I have inadvertently messed up the MACD section. I’ve been intending to fix it for a long time now 🙂

  64. BOB_THE_TRADER says:

    Hello Nitin,

    If i want to combine two or more indicators and generate a customized indicator or if i want to generate an indicator(a graphical representation like other indicators not just an alert to signal buy or sell) using a code how do i do it?? in PI and at the same time have access to my indicator in KITE as well??

  65. BOB_THE_TRADER says:

    Hello Zeordha,

    Can you please create an indicator for the below logic:

    x = LTP

    y = number of time periods ago

    T1 = +1
    if x >= x – (y+1) periods
    else -1

    T2 = +1
    if x >= x – (y+2) period
    else -1

    T3 = +1
    if x >= x – (y+3) period
    else -1

    T4 = +1
    if x >= x – (y+4) period
    else -1

    T5 = +1
    if x >= x – (y+5) period
    else -1

    T6 = +1
    if x >= x – (y+6) periods
    else -1

    T7 = +1
    if x >= x – (y+7) period
    else -1

    T8 = +1
    if x >= x – (y+8) period
    else -1

    T9 = +1
    if x >= x – (y+9) period
    else -1

    T10 = +1
    if x >= x – (y+10) period
    else -1
    Value = SUM(T1:T10)

    so the indicator would always swing between +10 to -10

    Request you to please please suggest how to code this indicator in PI….

  66. Manish Agarwal says:

    Topic: Bollinger Bands (BB) (B.Bands) VS Simple Moving Average (SMA)

    Hello, I have become a regular reader of zerodha now..

    I was looking at a chart and plotted 20 day MA and a Bollinger Band and I was caught by surprise that they both are based on Moving average but the interpretation to initiate a trade are opposite. BB says, If stock price trade above the MA line (near or above the +2 SD) then we should look for shorting opportunities, but the SMA line says look for buying opportunities in such a situation. So, how to deal with this?

    One solution I could think of is:
    If a stock is trading above the SMA line but below the upper band of BB we should look for buying till it hits the upper band of BB.

    Please suggest if I am thinking correctly.

    • Karthik Rangappa says:

      BB is an indicator for the mean reversion strategy, works very well for short term trades. MA is best suited for slightly longish time frame trades.

  67. pushkar says:

    1.) what if the volumes, S&R levels and indicators confirm a long or short position but there is no evident candle stick pattern then should we take the position? similarly if candle pattern is there with S&R levels and indicators confirming a long or short position but without volume then what ?
    2.) while the volume crosses the average volume of last 10 days most of the price action has already taken place. so do while taking the position do we assume that the same price trend will continue ?
    3.) what is one indicator says yes and other says no? eg the current price is at the -2SD of the BB and RSI value tells that the stock is overbought, then what?

    • Karthik Rangappa says:

      1) I would not take it. For me, CS pattern (which is the price action) would matter the most. I may at time turn a blind eye to volumes…but this really depends on many other factors. Like the overall sentiment in the markets/sector/stock etc.

      2) Yes, that is the premise of TA

      3) This is bound to happen. You will have to go with the indicator that you trust the most. When I say trust, it has to be by means of rigors back testing.

  68. I am interested to use Keltner Channel indicator in kite with settings 20 EMA and ATR 1 to be used in 5 or 15 minutes chart. But I find in your settings you have given period as 50 and shift as 5. Does it mean EMA and ATR respectively which I can change as 20 EMA and ATR as 1 as per my requirement. please clarify.

  69. Hima Pallela says:

    Hello,

    So if MACD line crossed the signal line( MACD line above the Signal line) then we consider it as a Bullish and consider it as a buying opportunity. Is my understanding correct? Example Ashok leyland on 25th May, MACD line crossed the signal line.
    And also is there any way to scan these stocks where MACD line crossed the signal line.
    Please clarify.

    Regards,
    Hima Pallela

  70. deepal56 says:

    I wasted 3 days in understanding the MACD and SMA combination, I thought there is something wrong in me but after reading the comment section I got it clarified.
    At last, I want to thanks Zerodha Team for providing us with quality products and that too at no cost.

  71. ZQ0852 says:

    Dear Sir,
    I have some queries:
    1. As you said MACD is an upgraded and more reliable version of MA crossover, then should we discard the moving average as indicator and learn the MA only as a core concept to understand other indicators, or, the MA crossover still have some advantages and reliability over MACD?
    2. What does the BB mean when the price around 20 SMA, should we consider it as neutral and neglect it or it also have sth to say?
    3.Say we are looking the indicators (MACD, RSI, OR BB) for intraday with 10 min chart, in this case should we wait for the 9, 20 or 14 candlestick to appear for that particular day or we should include the previous days 10 min intraday charts for using indicators?

    My concern here is that if we should also include the previous day chart, will the indicators not give false signal incase there is sth important news about the stock (as most of the candles are taken from previous days chart for calculation)?

    Regards

    • ZQ0852 says:

      Dear sir,
      One more thing I want to ask “Can we use the +2 and -2 values to reinforce our S&R points i.e. can we take a side view on these values to decide our TARGET and SL
      Regards

    • Karthik Rangappa says:

      1) Although MA forms the core of MACD, I like MA for its simplicity. Its like samsung vs motorola…end of they day, they all use sony camera lens.
      2) BB should be read wrt to the standard deviations and not really with the averages
      3) You can probably take the previous day’s value…but I’d prefer to look at present day’s data

  72. ashishsantikari says:

    Hello,
    I have just started my trading experience. Being an amateur, I have made losses on intraday too much which put me to learn and practice before investing my hard earned money. I would advise newbie’s to go through varsity at least 3 times to get a good understanding of trading.

    Now, coming to my question, I have some doubt while applying TA.
    Today (21st July,17), Reliance made headlines after AGM. And that caused the company’s share to grow 3.67%.
    Now for a newbie trader like me, I was applying my learning and the checklist posted at the end of this chapter to decide whether is this a good time to buy shares or not. Today’s candlestick was bullish marubuzo. RSI level is closed to overbought(75.87). Average Volume(10 points) is also way high than average which confirms buyers at every price point. Now S&R(using Pivot Points) tells me a different view and the closing price has crossed RL1 and RL2. Even MACD and (EMA 25 & EMA 25) indicates that the stock is good for purchase point of view.

    Q1) What can be the possible outcome of the situation?
    Q2) What is the difference between MACD and moving average crossover system?

    • Karthik Rangappa says:

      I’m happy you are learning through Varsity 🙂

      1) When a stock has strong fundamental news, please do not use TA. FA over rules TA around corporate events
      2) MACD uses another round of averaging…whereas a simple crossover system does now.

  73. Parth shah says:

    i would like to know abt the ichimoku indicator ! i cant add it in the PI scanner ! ive seen the formula on algos and strategies but it doesnt get added in the scanner !

  74. venu says:

    how to set MACD line in kite please advice

  75. kunal says:

    if i want to become an investor and invest for long term do i still need to learn technical analysis

  76. kunal says:

    what is Convergence and Divergence??

    • Karthik Rangappa says:

      Convergence in terms of moving averages is when two averages meet and divergence is when the two moving averages move apart.

      • kunal says:

        but how come the two averages there can be only one average

      • DIVYA SANGHVI says:

        Hello Karthik,
        Thank you for your efforts.
        Can you please help me with the below doubt?
        Conversion and diversion as explained in this chapter:
        ‘When the MACD Line crosses the center line from the negative territory to positive territory, it means there is divergence between the two averages. This is a sign of increasing bullish momentum; therefore one should look at buying opportunities. From the chart above, we can see this panning out around 27th Feb
        When the MACD line crosses the center line from positive territory to the negative territory it means there is convergence between the two averages. This is a sign of increasing bearish momentum; therefore one should look at selling opportunities. As you can see, there were two instance during which the MACD almost turned negative (8th May, and 24th July) but the MACD just stopped at the zero line and reversed directions’

        When the MACD is at/around the zero line, it means that the two EMAs have no difference. -> Should not this be considered as ‘Conversion’?
        When the MACD line goes over/under the zero line -> The variation between the 2 EMAs is increasing -> Should not this be considered as ‘Diversion’?

        • Karthik Rangappa says:

          When the MACD is at/around the zero line, it means that the two EMAs have no difference. -> Should not this be considered as ‘Conversion’? and the other query you posted – If the MACD is around the zero line, that means that there is no trend. Perhaps the stock is moving sideways. Hence no point trading on MACD.

  77. Raghuram says:

    Dear Karthik,
    I may be wrong but i do not digest indicator input period being in days. For example, for MACD we r using 12 & 26 days EMA and 9 days EMA for signal line. I think this is fair for long term or positional. But for intraday it should be in hours and minutes because everyday is different. If i want to enter at 12 pm what is the use of above periods, i should be able to plot data from 9:15 am onwards so that i get an indication for that day only. Same doubt for all such indicators. Please reply as I said I may be wrong. Thanks.

    • Karthik Rangappa says:

      Yes, in case of intrday you need to load this on 5 or 10 mins charts. The the timeframe frequency will automatically refer to intraday data.

  78. Debjyoti says:

    Which one is a better indicator among MACD and moving average crossover ?

  79. venkatpai says:

    Can you give us (stochastic RSI ) indicator in kite.

    Currently only stochastic indicator is available

    Thanks

    • Karthik Rangappa says:

      Will look into this, thanks.

      • Girish says:

        did u looking into this???
        stochastic RSI on Zerodha

      • Girish says:

        did u look into this???
        availability of stochastic RSI on Zerodha.. its thr on investing.com for free!!! we r paying u 🙂

        • Karthik Rangappa says:

          Girish, the charting engine on Kite and Pi is from a 3rd party. Will pass on the request to include stochastic RSI, hopefully, they should accommodate this.
          By the way, the only thing you are paying for is brokerage, that too if you are doing intraday or derivatives. Everything else is free, including Varsity 🙂

  80. ak says:

    pls provide full stochastic on kite,
    tx

    • Karthik Rangappa says:

      We have that on Kite already. Goto studies and look for it.

      • Vinay says:

        Hello Karthik,

        Its wonderful and worth appreciating the efforts put in the development of Pi and Kite so far.

        In Kite there is only one Stochastic and another is Stochastic Momentum.

        Appreciate if you let the user set the %K, %D and Period values according to his/her preference rather than just allowing the user to enter period.

        Each setting gives different result that suits his/her trading style/strategy.

        Currently, user can change only period value, while %k and %D values are unknown !!! and cannot be changed.

        Thus, kindly do the needful so that user can use his/her own values for period, %k and %D – there by making this full stochastic.

        • Karthik Rangappa says:

          I understand Vinay, hopefully, this will be fixed soon.

          • Srenath R says:

            I think, this is not fixed yet Mr. Rangappa. It would be so useful and helpful, if you let your customers set the %K and %D values on ‘Stochastics’ indicator.

  81. V Vivek says:

    Hi Kartik,
    In some websites, the value of divergence is given. What does this indicate ?

  82. Nevil Gandhi says:

    Hi Zerodha,

    Please add Elder Impulse System indicator in PI. It is available in Kite, but I prefer trading on Pi.

    Thank you in advance.

  83. raghuram says:

    Hi Karthik,
    RSI indicator shows in range of 40-60 even if the stocks are at 52 week high or all time high. What could be the reason? I have noticed for many stocks and hence raising this issue.

  84. Akshay Goyal says:

    So, I have a doubt about the Bollinger Bands. Say, I want to change the MA type from 20 SMA to 10 EMA… How would the calculations of the bands get carried out then ??

    • Karthik Rangappa says:

      Instead of calculating the standard deviation of 20 SAM, the indicator would calculate for the 10 days EMA. Everything else would be the same. Also, you will end up getting a lot more signals to trade with 10 EMA, but please be aware, lot more does not necessarily mean quality.

      • Akshay Goyal says:

        Good evening Karthik,

        Firstly, thank you for the prompt response and advise.
        Secondly, while you are calculating the Bollinger Bands on the SMA, you would be calculating the standard deviation of the last 20 close values.
        When you get to EMA, what you be calculating the standard deviations on ?

        For example (pseudo code) on Today’s NIFTY-
        a = [10291.45, 10295.0, 10297.05, 10292.6, 10291.3, 10290.0, 10288.45, 10290.2, 10289.7, 10290.95, 10292.8, 10290.75, 10290.4, 10290.7, 10293.65, 10298.25, 10296.0, 10298.6, 10302.1, 10302.8, 10302.5, 10305.1, 10306.05, 10302.25, 10295.6, 10294.2, 10291.9, 10296.5, 10297.05, 10296.2, 10303.35, 10304.65, 10308.95, 10310.55, 10306.6, 10300.0, 10302.85, 10301.1, 10299.5, 10298.7, 10299.85, 10302.1, 10303.4, 10302.35, 10304.45, 10302.2, 10303.65, 10305.35, 10307.7, 10313.9, 10313.95, 10317.1, 10319.15, 10321.5, 10319.3, 10320.65, 10322.2, 10322.3, 10323.6, 10325.2]

        standard_deviation(a) // This is the Standard Deviation for the SMA or in other words, the width of the bands.

        However, this would not be the same calculations for EMA.
        Even if you look at the Kite app, both the width and the location of the EMA Bollinger Bands are different from the width and the location of the SMA Bollinger Bands.

        Could you please confirm ?

        Thanking you in advance,
        Akshay C Goyal

  85. Saify says:

    Hi Karthik,

    Hope you are doing good.

    While reading through the above comments, one of the user “Sooraj J Mishra” had wrote that he was buying premium.
    Being a novice, this is confusing me. I would appreciate if you could tell me what he meant when he said he was buying premium?
    As far as your other chapters are concern, you have taught us these below stuff :

    Call Option (Buy)
    Put Option (Sell)
    Call Option (Sell)
    Put Option (Buy)

    Could you confirm what exactly is buying premium.

    Thanks

    • Karthik Rangappa says:

      Ah, I think he meant to say that he has bought an option by paying the premium. Either a buy call or buy put 🙂

      • Saify says:

        Thanks !

        Could you confirm, both call option & put option buy, can only be exercised on the expiration date ?

        If yes, I am failing to understand the difference between the two. why use one over the other ? Pls help.

        • Saify says:

          Hi Karthik,

          Please confirm when buying CE only for gaining from selling basis on high premium, is the premium only the thing to watch ? What i meant is out of all the values such as strike price, underlying value etc. the value to watch is premium ? Since i would be squaring off most of the time.
          If yes, can we check realtime premium value on kite/pi ?

        • Karthik Rangappa says:

          Yes, that is because they are European in nature. Have you read the module on Options? If yes, I’d suggest you take a look at this – https://zerodha.com/varsity/module/option-theory/

  86. Saify says:

    Thanks Karthik for the help !!

    Candidly speaking, as far as Zerodha’s services are concerned, Varsity is one of the best and the best part of Varsity is you.

    Just one more question though, how to check realtime premium value of options ?

    • Karthik Rangappa says:

      Thanks for the kind words, Saify. I’ll take that compliment on behalf of all my 900+ colleagues 🙂

      You can see the real-time premium value on kite itself. Just load the option on your Marketwatch and check out the trades on a real-time basis.

  87. Manoj Sharma says:

    Hi Everyone, I have been studying TA from Zeordha’s Varsity section.
    Under indicators (MACD) section, it says, IF SIGNAL (SMA 9) LINE IS ABOVE THE MACD (12-26), ONE SHOULD TAKE LONG POSITION AND IF SIGNAL LINE IS BELOW MACD, ONE SHOULD TAKE SHORT POSITION.”

    When I matched the SIGNAL LINE AND MACD CROSSOVER, it did not coincide with the price behavior. That is, Signal line above MACD line but stock was not in uptrend. It moved sideways. I understand that MACD is a trend indicator but how do I know that the crossover will result in trend or whipsaws.

    Please help

    • Karthik Rangappa says:

      Any indicator which incorporates moving averages cannot really avoid whipsaws, this is the inherent drawback of averages and there is no way you will know beforehand if a move will transform into a trend or die down as a whipsaw.

      • Manoj Sharma says:

        Understandably so karthik, but JSW Steel behaved totally opposite to what Indicators suggest, I mean, even if Signal Line was above MACD Line the stock was in downtrend.

        How do I deal with it? Despite studying the indicators, i am unable to get clarity on a stock.

        • Karthik Rangappa says:

          Manoj, this is not surprising at all. Hence my dependence on indicators is quite low. I prefer to look at the candlestick pattern to make trading decisions and the indicators only sort of confirming the decision. I’ve stated this on the checklist as well.

          • Manoj Sharma says:

            Yes. You have mentioned it in the book. But there are multiple instances where without any recognizable pattern formation the scrip has moved up. Am I expecting a lot out of indicators?
            What should i do to enhance my understanding and to increase my knowledge of Technical Analysis.
            Kindly Guide

          • Karthik Rangappa says:

            Look for the pattern and volumes, I’d also suggest you pay more attention to support and resistance. Don’t spend too much time one indicators.

  88. Manoj Sharma says:

    There are cases when stock moves up without reaching the support or vice versa. If I look for pattern and S&R I will miss out on many opportunities. Isn’t it?
    I have another query, how do I screen stocks for trading? I tend to stick to a particular set of stocks present in my market watch.

    • Karthik Rangappa says:

      Yes, remember TA only enhances the odds. No guarantees here. That is, in fact, a great approach. I stick to Nifty 50 🙂

  89. Manoj Sharma says:

    Cool. Thanks a lot karthik. Really happy to get one to one response from you. This would definitely prompt me to get more users to zerodha. 🙂

  90. Pushkar says:

    Hey Karthik,

    In section 15.4, while mentioning the 4 checklist for buying position in KBL, the 4th point mentions MACD crossover.It is mentioned as signal line crossing over macd line. I think it needs to be macd line crossing over signal line. Please check. Correct me if I am wrong.

    Thanks!

  91. Meet Shah says:

    Hi,
    Can any one share the methodolgy used to calculate Stochastic in excel

    Thanks

  92. sriram sharma says:

    Hi,Thanks for nice chapter……is zerodha has super trend ,DMA indicator..in kite ?

  93. chidambaram says:

    Hi Sir,
    You have explained that,in Bollinger bands , if the price touches the Upper or lower band then it is expected to move to average.But my doubt is, what if the CMP is above the Upper band/ CMP is below the lower band (mean if the price has breached the bands),still is it expected to return to average or it would drift the same direction?

    • Karthik Rangappa says:

      There is only a possibility of the price reverting to mean. In fact, some traders even expect the price to increase or move in the same direction when the price hits the upper/lower bands.

      • chidambaram says:

        Hi Sir,
        1. What if the price had already CROSSED the upper/Lower BB.Still the price will revert to mean or will continue the same direction?It was explained in the chapter that if the price touches the upper/Lower band there is a possibility to revert to mean.Does the same applies if the price had CROSSED the bands too? Because in Average true range band,you have mentioned that “If the stock price PENETRATES either the upper or lower envelop, then the expectation is that the stock price will CONTINUE to move in the same direction. For example if the stock price has penetrated above the upper envelop, the expectation is that the stock will continue to move higher” and you have also said that “ATR bands can be used as an alternate to the Bollinger Band trading system”.
        2. In the technical analysis module you have explained about the trend reversal candlestick pattern.Can you give some insight on trend continuation candlestick patterns and explain them in detail (in a separate chapter) as you did for trend reversal patterns?

        • 1.Once the stock crosses the upper/lower band, it forms an envelope expansion, it is more likely to continue with the trend it is in and unlikely to fall back to the mean. Average True Range bands work almost like BB and essentially can be taken as a Buy/Sell signal once the stock crosses the bands
          2. The reason not a lot of trend continuation patterns are covered as don’t help in picking a trade, however, you could use S&R and moving averages to identify the strength of a continuing trend

  94. chidambaram says:

    Hi Sir,
    One more doubt regarding BB.
    Should we need to validate the checklist points before we initiate the trade based on BB like candlestick pattern,volume ,R&S,etc or when the price touches the BB ,we can simply initiate a trade (without validating checklist),with the expectation that price will revert to average?
    Why i ask this is whenever the price touches the BB , I find that price returns to Avg price very quickly ,that when i wait for the (15 mins )candlestick patterns and all other checklist points to confirm, i miss the movement entirely.

  95. invest_novice says:

    It is mentioned as 9-day EMA of MACD in the chapter and as 9-day SMA in the Key takeaways. I guess EMA is correct since it has been mentioned in multiple places. Am I correct?

  96. invest_novice says:

    I didn’t understand the convergence and divergence of the MACD line. Convergence means when the difference between the two MA reduces. Divergence means the difference increases. So going by this definition when MACD line comes closer to 0(irrespective of whether it comes from + or – side) it is convergence while if it goes away from 0 it is divergence. But in the explanation it is mentioned as if the MACD line crosses 0 from above(goes from + to -) it is convergence while if it crosses it from below(from – to +) it is divergence.

    • invest_novice says:

      The location of this discrepancy is just below the very first MACD line plot.

      • invest_novice says:

        The exact lines are

        As you can see the MACD line oscillates over a central zero line. This is also called the ‘Center line’. The basic interpretation of the MACD indicator is that:

        1. When the MACD Line crosses the center line from the negative territory to positive territory, it means there is divergence between the two averages. This is a sign of increasing bullish momentum; therefore one should look at buying opportunities. From the chart above, we can see this panning out around 27th Feb
        2. When the MACD line crosses the center line from positive territory to the negative territory it means there is convergence between the two averages. This is a sign of increasing bearish momentum; therefore one should look at selling opportunities. As you can see, there were two instance during which the MACD almost turned negative (8th May, and 24th July) but the MACD just stopped at the zero line and reversed directions

        In the above two points the terms convergence and divergence can be dropped.

      • Karthik Rangappa says:

        Noted.

    • Karthik Rangappa says:

      Agreed, thanks for pointing this out. Will do the changes. Basically, the crossover from -ve to +ve area indicates bullish momentum and the crossover from +ve to -ve indicates bearish momentum.

  97. Shashank Jhajharia says:

    Am not getting EMA is calculated here. I checked with the formula and figures are not matching.

    Can anyone share the EMA formula derivation ?

  98. Sampath says:

    What is the difference between the person who trade using candle stick pattern along with indicators and the person who trade solely depending on MACD, RSI, and volumes?

  99. shweta says:

    Hi..can you please clear my confusion .I am confused when should we look for buying opportunity when signal line( 9 day EMA) should be above the MACD line or below.There is contradiction in your explanation part and in your last stated example.

  100. Dhananjay Chaudhari says:

    “However, while dealing with the magnitude, always remember the price of the stock influences the magnitude. For example, higher the underlying price such as Bank Nifty, naturally, the higher will be the magnitude of the MACD.”

    Sir, i did not understand this point. can you please explain?

    • Karthik Rangappa says:

      This means to say that the MACD value is also dependent on the stock price, for example, MACD for Ashok Leyland could be 19, but for Bank Nifty, it could be 190.

      • Dhananjay Chaudhari says:

        If the macd line is at 5 and the 9 day ema line is at 7, does that mean their is more volatility in the stock? Also, how to identify momentum stocks? Please explain sir..

        • Karthik Rangappa says:

          Since they are almost around the same value, I’d assume there is a sideways moment in the stock. Does not really indicate volatility.

          • Dhananjay Chaudhari says:

            Sir, how should we identify momentum in a stock? Does it need ithe research at NSE as well rather than charts. Am asking this because momentum generates more profit than plain market. So curious to know!
            Thank you ?

          • Karthik Rangappa says:

            You can always check few momentum indicators like MA, ADX, +DI etc. These indicators helps you identify and quantify momentum.

  101. mahesh says:

    Single candlestick patterns are not working in intraday trading.
    1min/5min/10min candles which candles works best for intraday trading?
    Which candlestick patterns work best for intraday trading?

  102. Dhananjay Chaudhari says:

    Sir, How should we apply min crossover MA? As the input takes value for days and not for hours or mins? A bit confused..

    • Dhananjay Chaudhari says:

      Also, i want your suggestions on this analysis..

      IDBI BANK EOD CHART 01/03/2018
      The candle has formed bullish marubozu at 80.25. The volume is at 65150780 shares for the day. I was unable to plot the S&R. The Bullish marubozu has formed after the formation of flag pattern in the stock for 3 consecutive days. The indicators, RSI is near Overbought at 62.33, MACD has a magnitude of 3.68 and the ADX is at 36.21.
      Is this the right approach to look at the stock technically. I had an urge to qualify this from you though I have already went long. Many a times i a unable to plot S&R is their any simple idea to do so?

      • Karthik Rangappa says:

        Well, it does look like a long trade but I’d kind of hesitate because of the long SL here. But anyway, good luck, hope it turns out to be a profitable trade. 🙂

        Also, as long as you have a thesis backing your trade, you should be confident. Trouble is when you trade without knowing anything.

    • Karthik Rangappa says:

      You can overlay the MA on the minute chart and that should suffice.

  103. Vedant Chanani says:

    Hi why no one is answering the support number
    I have opened a account recently and the experience is not good

    Please call me on 9930052883

  104. Anand says:

    sir
    what is smart money flow indicator & how to calculate it ?

  105. chidambaram says:

    HI Sir,
    If the RSI or Bollinger band show a bullish sign (say RSI less than 30 or price at -2 SD line of bollinger band) but the candle pattern formed is a bearish maruboza pattern and all other checklist coincide with candle pattern ,except the indicator( which is in contradictory to candle pattern and other checklist item) ,then what to be done in this case?
    1.Go by the candle pattern and other checklist and sell the stock.
    2.Go by the indicator and buy the stock as it is oversold/overreacted.
    3.Simply avoid the trade since indicator and candle pattern (along with other checklist) is contradicting to each other.
    Also explain the thought process behind your choice.

    • chidambaram says:

      ” if RSI or Bollinger band showing a bullish sign (say RSI less than 30 or price at -2 SD line of bollinger band) but the candle pattern formed is a bearish maruboza pattern and all other checklist coincide with candle pattern.”
      kindly explain what does this scenario indicate.

    • Karthik Rangappa says:

      1) Go by the CS pattern
      2) No, pay more attention to CS
      3) This is also a possibility

      Indicators are only supplementary, dont pay too much attention to it.

  106. RAJAN . A.T. says:

    Sir,
    I am a newbie, Please explain how the shorting is to be done in Kite?
    Regards
    Rajan A.T.

  107. RAJAN . A.T. says:

    Sir,
    Thanks for your reply as follows Do check this video here – https://www.youtube.com/watch?v=sbRnbq99pfI&index=5&list=PLkxTRam6E2V-okv6gwQlt6dLTsn0v6CD1
    This video shows How to place order on Stoploss basis.
    Where as my query was “I am a newbie, Please explain how the shorting order is to be done in Kite?”
    Regards

    Please revert back

    Thanks and regards
    Rajan A.T.

  108. Guru says:

    Hi Karthik,

    You and your team are doing tremendous job in empowering us in stock market. I struggled a lot in understanding the concepts of stock trading until I came across varsity. The content presented here is easy to understand. You know how we feel when we are sailing in the ocean full of water but actually looking for a bottle of water to drink and after nauticles of journey we actually saw not just an island but an island with full of coconut trees. That is an over abundant joy. And I’m feeling it for the past few months since I started with varsity modules. I’m so happy reading these modules and wondering how I missed it all this time.

    Thanks to you and your team I started stock trading. To me the word thanks here is equivalent to the size of a tennis ball in front of the size of Sun. My deep respects to your and your team.

    I have a question, is there any way on pi platform or any other website I can identify everyday a list of stocks that are promising (I.e., stocks that formed identifiable patterns, or confirming some indicators) upon which we can apply the TA and decide trade. I’m asking this question as there are hundreds of companies in the market and I can’t look at every company to apply the TA check list due to time constraint.

    Thanks so much for your efforts and to Zerodha ?

    Kind regards,
    Guru

    • Karthik Rangappa says:

      Wow! Thank you so much for all the kind words, Guru. Comments like these help up stay motivated and deliver better content 🙂

      Coming to your query – I’d suggest you start with studying Nifty 50 charts on a regular basis. I know this is time consuming and painful, but this helps in the longer run. It helps you get better and better with charts. If this does not work for you, then I’d suggest you look for a screening software like this – https://screener.smallcase.com/welcome

  109. Nishant Sharma says:

    Hi Karthik,

    Thanks for the useful content. Indeed helpful in making informed decisions. Just wanted to know your take on investing strategy for higher returns in short-term and long-term – value investing or canslim.

    Thanks

  110. Nishant Sharma says:

    Thanks for the useful content. Indeed helpful in making informed decisions. Just wanted to know your take on investing strategy for higher returns in short-term and long-term – value investing or canslim.

    Thanks

  111. RAJAN . A.T. says:

    sir,
    Thanks for your outstanding effort to improve the financial litracy of common man. This Varsity has helped me a lot & improved my confidence in terms of trading activity. Actually I have been facing loss so far . ( Investment 4000/- Profit 2380/- & loss 6100/- ) ,
    Still I want to carry on, for which I want your support and help.
    I have been going through the commends under the chapter 19, Finale , of TA, where I found following text :-
    ” The higher the percent of deliverable quantity to traded quantity the better- What it means and how to see.”
    In kite under market watch one can see the TBQ & TBS . But How one can access to the deliverable quantity & traded quantity? Please explain sir,
    Thanks & regards,
    Rajan. A. T.

    • Karthik Rangappa says:

      I’m glad you liked the contents here, Ranjan.

      Deliverable quantity means the number of shares which were taken for delivery into DEMAT. So higher the number of people taking this, then higher is the long-term interest in the stock and therefore gives a bullish perspective.

      • RAJAN . A.T. says:

        Sir,
        Thanks for your reply,
        But my query was “How one can access to the deliverable quantity & traded quantity? ”
        I mean from where I can collect these data ? – deliverable quantity & traded quantity –
        I assume TBQ & TSQ are not ” deliverable quantity & traded quantity ”
        Please explain sir,

        Thanks & Regards

        Rajan A. T.

        • Karthik Rangappa says:

          You can download the bhav copy from NSE – https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm this has all the details.

        • RAJAN . A.T. says:

          Thanks for your kind reply sir,
          As a newbie myself, how can I identify these ( ” deliverable quantity & traded quantity ” ) from the opened site as per the given link?
          More over, During the trading attempt do we have to put in additional time to find out these data?
          What prompt me to do this task is mentioned below.
          I have been going through the commends under the chapter 19, Finale , of TA, where I found following text :-
          ” The higher the percent of deliverable quantity to traded quantity the better- do this commend has any thing to do with the success of a trade? If the answer is “Yes” then there may be an easy method to find out this relevant data during the trading.In case the answer is ” NO ” I am sorry to disturb you.

          Seems I failed to express my self regarding this query. Sorry for wasting your valuable time and effort.

          Thanks

          Rajan A.T.

          • Karthik Rangappa says:

            You will have to download the Bhav Copy in CSV format and in that report, you will see the deliverable quantity. Don’t worry, you are not disturbing you with these queries 🙂

  112. Laukik Desai says:

    Hi Karthik,
    This is some amazing work you guys have done here.Don’t think any other broker would provide such immense information and guidance for free.
    Would be happy to see you to make it to the top position from the current 3rd in the upcoming years.

    I do have a question on the checklists though.

    1.When you say ‘There should be a recognization pattern formed’ as the first candlestick pattern ,would you also considered Doji and spinning Top as one ,as they show uncertainty ?
    2.If a Doji/Spinning top is formed while also other parameters of the checklist(Vol,S&R and indicator) suggest to take a trade ,in your opinion would you suggest to go ahead with the trade.
    3.And in a situation where all points of the checklist meet the critirion except the S&R one ,would you suggest to take the trade ?

  113. Guru says:

    Hi Karthik,

    I have gone through simple moving average (SMA) lesson and Bollinger bands (BB) lesson that is present here.

    Pasted below the excerpts from both the lessons and I’m bit confused on the position to take when the current market price (CMP)is above the moving average.

    Because, BB lesson suggests ‘sell’ when the CMP is above average price with the expectation that it eventually comes down to its average price and SMA suggests ‘buy’ with the understanding that traders are optimistic and willing to buy above its average price.

    I know it is ultimately to my conviction to take a position on the trade but wondering how to interpret these two conflicting messages from these two indicators which are based on moving averages. Can you please help clarifying it?

    Excerpt from simple moving average lesson –

    The moving average can be used to identify buying and selling opportunities with its own merit. When the stock price trades above its average price, it means the traders are willing to buy the stock at a price higher than its average price. This means the traders are optimistic about the stock price going higher. Therefore one should look at buying opportunities

    Excerpt from Bollinger bands lesson –

    If the current market price is around the upper Bollinger band range (I.e., when the stocks trades above its average price) , then it is considered expensive with respect to the average, hence one should look at shorting opportunities with an expectation that the price will scale back to its average price.

    Kind Regards,
    Guru

    • Karthik Rangappa says:

      Guru, although these two are based on averages, BB differs in the maths involved. BB tells us to what extent the prices have shot up or gone down wrt to the average price. The expectation is that it will retrace back to averages. MA, on the other hand, gives you a sense of how the trend is emerging.

      Yes, I understand the confusion, but this how the indicators work. It is up to you to learn the nuances and apply them where you think it makes sense.

  114. Hina says:

    Sir are there any free softwares which can enable us to perform TA on stocks ?

    • Karthik Rangappa says:

      If you have an account with Zerodha, then check out the charts in Kite, it has all the tools and utilities you’d need for TA.

  115. HHLAKSHMI says:

    Chart is not updating in my kite.

  116. Jay Arya says:

    Hi Karthik,

    In the MACD section, it is mentioned “The sentiment is bullish when the MACD line crosses the 9 day EMA wherein MACD line is greater than the 9 day EMA. When this happens, the trader should look at buying opportunities”.

    However, in the Karnataka Bank checklist example, it says “There is also an MACD crossover (signal line turns greater than the MACD line)” as a buying opportunity.

    Are these not contradictory?

    Regards
    Jay

    • Karthik Rangappa says:

      Let me check this, Jaya. But MACD line = signal line.

    • Varun says:

      You are right jay!
      it should be when “MACD line turns greater than the signal line”

      I could see in the comments above, that this concept has confused to a lot of people.

      what people are missing is, signal line is EMA of MACD not price, hence it will always be less reactive to price and smoothen out changes in MACD line.

  117. Jay Arya says:

    Hi Karthik

    Is there any way we can get Fibonacci levels in Kite charts?

    Regards
    Jay

  118. Vijay says:

    Can u please include MACD Histogram?

  119. Rahul says:

    Nicely written, much kudos to you for all this hard work, time and effort put into this. I read options first but then it was so nicely written that i went back and started from the introduction itself. Thanks a lot !

  120. Nirmal says:

    Hi Karthik,
    I would like to know the formula for calculating Stochastics Momentum Index (SMI). I have list of OLHC of an instrument with timestamp. Could you please help with steps?
    I looked into few sites, not very helpful. Am getting wrong results than what kite chart shows.

  121. abhilash says:

    hi Karthik,

    Really great tutorials for you .. , never felt bored while reading.
    thank you for your efforts.

  122. Ameya says:

    Hi Karthik,

    Thank you for such a quality literature for newbies like me.
    Request you to quench my following queries,
    1) Good combination of Indicators most suitable for Intraday trading. (e.g. X indicator works best in conjunction with Y indicator)
    2) During Option trading the premium generally fluctuates a lot on either side, in such scenario,
    a) How to put a SL ?
    b) How to ensure risk to reward is 1:2 ?
    Lesser the SL, more the probability of hitting the SL before the target.
    Higher the SL, risk to reward ratio increases.

    FYI : I buy CE/PE for intraday. I need to work on risk management of my trades.

    I would be grateful to have your suggestion on the same.

    Thank you.
    Ameya

    • Karthik Rangappa says:

      1) I personally prefer Moving Averages to check the trend, Bollinger bands for volatility, and ATR for setting stops. All these with candlestick patterns for price action.
      2) For options, SL is ideally based on the spot prices. Same goes for Risk Reward

      Also, I’m not a big fan of trading options on a intraday basis. I’d rather do futures.

  123. Dipak says:

    Thanks Karthik for superb blog.
    Could you please tell,,
    1) When we say MACD indicator,
    Does it include MACD line only (12 EMA -26 EMA ),Or it also includes 9 day EMA line of MACD line along with MACD line ?

    2) Which one would you use for swing trading , trading for 2-7 days,
    9×21 EMA cross over ,or MACD ?

    Thanks.

    • Karthik Rangappa says:

      I usually refer to the entire MACD system which includes the 12, 26, and the signal line.

      I prefer the simple crossover system over any indicator, including the MADC indicator.

  124. Ajinkya Sawrikar says:

    Karthik what if the MACD and the signal lines are below the center line and the MACD is below the signal line, lets say MACD = -06 and signal line = -0.5. Basically there is a negative momentum right ? So do we have to see whether it is above the signal line or not ?

    • Karthik Rangappa says:

      Yes, above the signal line indicates bullishness. Are you trying to apply this on Kwality? If yes, I’d suggest you don’t apply this on it for reasons stated in the previous comment.

      • Ajinkya Sawrikar says:

        No I’m not applying it to kwality but my concern is that the MACD line is already below the centre line so why should I see if it is above/below the signal line ? If it has negative momentum it means that it is bearish right ?

  125. Pankaj Jain says:

    I have recently started learning technical analysis and find modules here really helpful. Must say great effort!
    2 Queries as of now:
    1) Is there any way in Kite that I can go directly to any day chart – say 5 minutes chart on 26th Sept last year? I couldn’t find
    2) Is Kite provide real time feed? I think it’s a bit delayed may be 3-4 seconds, is it?
    Thanks in anticipation

    • Karthik Rangappa says:

      Thanks, Pankaj.

      1) For now, you cannot go directly to the date you are looking for, guess you will have to scroll to the date
      2) Yes, feeds are real-time on Kite. It not delayed.

      • Pankaj Jain says:

        How am I supposed to go to that date manually? If I put in monthly chart and go there, the moment I change time frame to 10-15 minutes, it kicks me back to the current day.
        I hope, you are not suggesting to set time frame to 10 minutes first and then keep going backwards for a lifetime to reach there.
        Please suggest how it works, I repeat, I am new to trading and might not have understood your solution properly.
        Also please incorporate the feature of going to a particular date directly for convenience!

        • Pankaj, currently the only way to go back to a previous date on a lower timeframe is to scroll back, which is inconvenient.
          Will pass this on the development team if they can find a fix to it.

          • Pankaj Jain says:

            Yes, Please. It’s probably more important than what you guys have thought I guess. Coz any newbie who is trying to learn through books and videos would like to see the setup on his/her screen. That’s the best way to learn I feel. And that’s what you guys are not providing. I am surprised how this has not been highlighted to you earlier or you have ignored it for such a long time.

  126. Dipak says:

    Thanks Karthik for wonderful blog,
    Could you please tell, which indicator would you prefer for swing trading (for 2 to 7 days) between these 2,
    Stochastic or RSI ?
    Why ,if you could tell ?
    Thanks.

    • Karthik Rangappa says:

      Certainly not, Stochastics, as I find it more suitable for intraday trade. I’m not a big fan of RSI either. I’d stick to good old moving averages, I like it for its simplicity.

  127. Pankaj Jain says:

    Hi Karthik,
    Why can we only open selected stocks from already pooped out chart in Kite. Very limited options are there.
    Now if I want to open any chart, I have to first add it to my watch list and then pop out chart from there. Very inconvenient!

  128. Dan says:

    Hi Karthik,

    Is the Stoch RSI indicator not available on Kite?

    Thanks

  129. Jose says:

    Hi
    I am using MACDHistogram in my Pi chart but if i select a color as green the all the historam bars are showing as green but I saw some of the chart software it is showing red and green like in the volume bars. What should I do to get that way

  130. nikhil joshi says:

    Hello Karthik sir
    what are the moving averages used in Rainbow moving average indicator and please give the formula for its calculation.

  131. Ayush says:

    Hi Karthik,

    The literature presented has been of great help to novices like me, who aspire to know about the markets with no prior knowledge at all. Just a small query on this chapter – The example on Karnataka Bank at the very end says that the momentum turns bullish when the signal line crosses the MACD line. However, going by the theory above, the MACD line should cross the signal line to create a bullish momentum. Would be very helpful if you could put some light on this.

    • Karthik Rangappa says:

      The signal line is the 9 day average of the MACD line, Ayush. So we take cues from the signal line and not really the MACD line. MACD line can lead to many false signals especially when the stock is moving sideways.

  132. Siddhant Kapadia says:

    Hi

    In your above example just after the checklist there is a point “signal line turns greater than the MACD line”. Is this correct in a bullish scenario? Just want to clear my confusion.

    Regards,
    Sid

  133. Praneeth says:

    While Illustrating example for MACD , i think you have not calculated the EMA. Instead , you took a 26 day SMA and a 12 SMA to calculate the MACD ? . Please clarify.

  134. Shrey Jain says:

    As per the Moving Average chapter, the shorter MA

  135. Shrey Jain says:

    As per the Moving Average chapter, the Shorter MA shall be above the Longer MA in order to convey a bullish trend because it is more reactive. So isn’t the 9 day EMA, the shorter MA in the Asian Paint example?
    But your explanation says otherwise above.
    Could you please clarify?

  136. Daniel says:

    My question is with regard to BB. Sir, based on your personal experience is BB more effective in 15-30 minutes candles or EOD Candles? in other words is it effective in intraday or swing trades?

  137. Mohasin says:

    Hi Karthik, is there any software or Mobile App for BSE or NSE which provides all the candle stick patterns data (i mean to ask alerts) and all the indicators where we can customize to set the indicator between the time periods.

    By the way , nice documentation 👍

    -Mohasin

  138. Chirag I Sharma says:

    Hi, I have primarily been doing my TA at http://www.investing.com and there the Stochastic indicator has 1. Period 2. SmoothK 3. SmoothD

    So I use 14 period and 3 smoothK and 3 smoothD. I understand Zerodha’s default smoothD is 3 (they told me on Twitter) but where do I put the smoothK data ‘cos on the indicator settings, there’s only ‘Period’ option.

  139. Anuragh says:

    Hello Karthick,

    Regarding Bollinger bands (BB) I have few queries with respect to Intraday Trading
    1. While plotting for BB , what should we mention for A) Period B) Standard deviations C) Moving Average Type
    2. What chart type should be used for intraday perspective while using BB like 5 min or 10 min or 15 min
    3. Can Crossover EMA and BB used at the same time , if yes then I have tried using it and it gives a very confusing picture on the charts like too many lines going up and down
    Thank you in advance

    • Karthik Rangappa says:

      1) Period = 14 days, Standard deviation can be either 2 or 3, I prefer 3, MA should be EMA.
      2) 10mins or higher
      3) Not really, cause BB kind of factors in the EMA. Using both crossover and BB may lead to confusion.

  140. P. Govindia says:

    Hello there,

    In the MACD crossover explanation it is stated that “the sentiment is bullish when the MACD line crosses the 9 day EMA wherein MACD line is greater than the 9 day EMA”.

    While in the hypothetical example of Karnataka Bank (checklist verification) it states that the signal is bullish as the “signal line turns greater than the MACD line”

    Kindly let me know if I am not able to understand properly of that is a typo error in the case of Karnataka Bank

    Best Regards,

    PG

  141. Sumeet Chavan says:

    Hey karthik.. first of all thanks a lot. Your modules are awesome and it has became very easy to study about the indian markets. Hats off to you…….Well, my question is = If i have studied a stock completely( candles, volumes and indicators). And i know that it will move up the next day, but after the markets close and a negative news regarding the stock appears. For ex. A sudden problem in the company management or the resignation of the CEO which indicates a negative news for the stock. So should i still buy the stock owing to the analysis done or should i avoid it???.

    • Karthik Rangappa says:

      Sumeet, the thumb rule is that the fundamentals precede the technicals. So in the event of any fundamental news, ignore the technical patterns.

  142. Pranay says:

    Hello sir, i have a doubt in MACD

    You have mentioned the sentiment is bullish when the MACD line crosses the 9 day EMA where MACD line is grater than the 9 day EMA.

    But in check list in the example of buying karnataka bank limited, the fourth checklist

    There is also an MACD crossover(single line turns grater than the MACD line).

    I am bit confused please tell me sir, thank q

    regards

  143. Maaz Khan says:

    Hi Karthik,

    As a swing trader, can I use the Bollinger Bands as a proxy for support and resistance levels?

  144. RC says:

    Hi,

    Is there a indicator for comparing the script with the index, like the relative strength comparator, could one be developed by your team.

    Thanks,
    RC

  145. Ashutosh Jain says:

    Hi Karthik
    Thanks again for all this knowledge that you are sharing with us for free! No words can be enough. I have learned all about technical analysis on Zerodha Varsity and earned the certificate on your app 🙂

    Now I am going through all the comments to may be learn something more.

    I have one query. I have heard quite a bit about Market Profile. Will you be covering them in future? Can we expect Zerodha to introduce Market Profile in Kite in near future?
    If not, where can I learn about it?

    Thanks!

  146. Raghav says:

    I would like to thank Team Varsity for 10 times via different comments because of the reason being you guys have made it so simple and crystal clear!! Many thanks for the Hard Work!!

Reply to: Anuragh