Technical Analysis (Open Varsity)
Charts, Dow theory, trends, support and resistance, breakouts and Fibonacci, candle and chart patterns, gaps, every major indicator with 16 years of NSE backtest results, combining indicators, top-down timeframes, systems, position sizing and discipline.
00Technical analysis (Open Varsity): atlas and routes
The course on one screen: reading charts, trend and levels, candle and chart patterns, indicators with 16 years of NSE backtest numbers, and turning analysis into a risk-managed process. Condensed from OpenAlgo's free Open Varsity course. Educational, not investment advice.
Open Varsity technical analysis topic atlas#
How to use this sheet#
- Start: charts and structure first; every pattern and indicator is a summary of price and volume.
- Check every signal against the baseline: the course's NSE study puts the average Nifty 50 stock's drift at about +1.48% per 20 trading days. A signal that can't beat that has no edge.
- Before a trade: the context checklist, then position size from the stop.
- Going deeper: your own Technical Analysis sheet covers more patterns, Wyckoff and breadth.
The course's honest scoreboard#
| Signal (Nifty 50 stocks, 2010–2026) | Result |
|---|---|
| Any day (baseline drift) | +1.48% over 20 days |
| Golden cross | Higher 60 days later 59% of the time |
| Death cross | Higher 60 days later 66% of the time |
| RSI above 80 | Best 20-day returns of all RSI buckets (+2.2%) |
| 20-day breakout | 56% fall back inside within 5 days |
| Breakout on >1.5× volume | 47% fail |
| MACD bullish cross | 58% positive after 30 days |
Most popular signals barely beat simply holding. The edge in TA is risk control and consistency, not prediction.
Check yourself 2 questions
What's the baseline drift for an average Nifty 50 stock over 20 days?
Show answer
About +1.48%.
How often did 20-day breakouts fall back inside within 5 days?
Show answer
About 56% of the time.
Takeaway Against a baseline drift of about +1.5% per 20 days, most popular signals add little; golden crosses and breakouts underwhelm.
01Getting started: what TA is, charts, candles and timeframes
OpenAlgo Open Varsity · Technical Analysis · chapters 1–4 (what TA is, reading charts, candlestick anatomy, timeframes and scales)
What technical analysis is, and isn't#
- The study of price and volume to tilt the odds and limit losses: probability, not prophecy.
- Three working assumptions (tendencies, not laws): price reflects known information; trends persist until something real changes; crowd behaviour repeats, so patterns recur, though never identically.
- Charts can show trend and its health, mark levels where the crowd reacted before, and show where your idea is wrong. They can't predict tomorrow, guarantee a pattern, or rescue a position with no exit plan.
- The real edge: predefined exits, repeatable rules instead of moods, and avoiding falling knives.
Check yourself 2 questions
Name TA's three working assumptions.
Show answer
Price reflects known information, trends persist until something real changes, and crowd behaviour repeats.
Are those assumptions laws?
Show answer
No, tendencies.
Takeaway TA studies price and volume to tilt the odds and limit losses: probability, not prophecy.
Technical vs fundamental#
| Fundamental | Technical | |
|---|---|---|
| Question | What is it worth? | What is price doing, and will it continue? |
| Studies | The company | Price and volume |
| Horizon | Months to years: what to own | Days to weeks: when to act |
A common pairing: fundamentals build the shortlist, technicals time the entry and exit. Always ask "compared to what?" and test popular claims instead of believing them.
Check yourself 2 questions
Which question does fundamental analysis answer?
Show answer
What is it worth?
How are the two often paired?
Show answer
Fundamentals build the shortlist; technicals time entry and exit.
Takeaway Fundamentals decide what to own; technicals decide when to act.
Chart types#
| Style | Shows | Strength | Weakness |
|---|---|---|---|
| Line | Closes only | Clear direction | Hides the path within each bar |
| Bar (OHLC) | Open, high, low, close | Complete, compact | Slower to scan |
| Candlestick | OHLC plus colour and body | Buyer–seller balance at a glance | Busy on dense charts |
Before forming any view, check three things: which stock, what one bar represents, and the price range from top to bottom. A squeezed axis can make a 1% move look violent.
Check yourself 2 questions
What does a line chart hide?
Show answer
The path within each bar: opens, highs and lows.
Name the three things to check before forming a view.
Show answer
Which stock, what one bar represents, and the price range on the axis.
Takeaway Line shows closes, bars show OHLC, candles add colour and body; check stock, bar period and price range first.
Reading a single candle#
- Colour: close above open (green) or below (red) shows who won that bar. It compares open and close of the same bar, so a gap-down day can still be green.
- Body length: how decisive the win was.
- Wicks: ground traded but not held. A long lower wick means buyers defended lower prices; a long upper wick, sellers defended higher ones.
- Size: judge it against recent bars, never in absolute terms.
- Context: trend, level and volume decide whether it means anything.
A marubozu (all body) is one-sided conviction; a doji (almost no body) is balance. One candle is a whisper, not a signal.
Check yourself 2 questions
Can a gap-down day be a green candle?
Show answer
Yes, if it closes above its own open.
What does a long lower wick mean?
Show answer
Buyers defended lower prices.
Takeaway Colour compares close to open of the same bar, body length shows decisiveness, wicks show ground traded but not held.
Timeframes: direction vs timing#
| Holding period | Trade on | Check direction on |
|---|---|---|
| Intraday | Minutes | Daily |
| Swing (days) | Daily | Weekly |
| Long term | Weekly or monthly | Monthly |
- Decide the holding period first, then the timeframe, never the reverse.
- The higher timeframe sets direction; the lower sets timing. A dip on the hourly inside a daily uptrend is usually just a pullback.
- The course uses daily charts: one decision a day, enough signals to measure, less order-matching noise.
Check yourself 2 questions
A swing trader trades the daily chart. Which chart sets direction?
Show answer
The weekly.
An hourly dip inside a daily uptrend is usually what?
Show answer
A pullback.
Takeaway Pick the holding period first; the higher timeframe sets direction, the lower sets timing.
Scales and chart settings that mislead#
- Linear scale: equal rupee moves take equal height. Log scale: equal percentage moves take equal height. 100→200 and 1,000→2,000 look the same on log (both +100%).
- Use log for long, large-percentage moves and linear for short, tight ranges.
- Truncated axis and auto-scaling exaggerate or shrink identical candles; read the axis numbers first.
- Date window: start at a crash low and anything looks heroic; start at a peak and it looks broken.
- Aggregation: where a week or month is cut can flip a weekly candle's colour.
Check yourself 2 questions
On a log scale, how do 100→200 and 1,000→2,000 compare?
Show answer
They look the same height: both +100%.
When should you use a linear scale?
Show answer
For short, tight ranges.
Takeaway Log scale shows equal percentage moves equally; truncated axes and date windows can exaggerate.
02Structure and levels: Dow theory, trends, support and resistance, breakouts, Fibonacci
OpenAlgo Open Varsity · Technical Analysis · chapters 5–9 (Dow theory, trends and trendlines, support and resistance, channels and breakouts, Fibonacci)
Dow theory: six tenets and three trends#
- Prices already reflect known information.
- Three trends run at once.
- Primary trends move through phases.
- The averages must confirm each other.
- Volume must confirm the trend.
- A trend holds until a clear reversal.
| Trend | Lasts | Role |
|---|---|---|
| Primary | Months to years | Builds or destroys wealth |
| Secondary | Weeks | Retraces about a third to two-thirds of the prior move |
| Minor | Days | Noise; timing only |
Check yourself 2 questions
Name Dow's three trends.
Show answer
Primary (months to years), secondary (weeks), minor (days).
How much does a secondary trend typically retrace?
Show answer
About a third to two-thirds of the prior move.
Takeaway Prices discount news, three trends run at once, averages and volume must confirm, and a trend holds until a clear reversal.
Market cycle and the volume rule#
flowchart TD AC["Accumulation: quiet base"] --> MU["Markup: higher highs and lows"] MU --> DI["Distribution: churning top"] DI --> MD["Markdown: lower highs and lows"] MD --> AC
- Volume should grow with the main trend and fade on counter-moves; thin rallies or heavy declines are warnings, not reversal triggers.
- Phases are clearest in hindsight; don't label them in real time.
Check yourself 2 questions
Which phase follows distribution?
Show answer
Markdown.
What's a warning sign in an uptrend?
Show answer
Thin rallies or heavy declines.
Takeaway Accumulation, markup, distribution, markdown; volume should grow with the trend and fade on counter-moves.
A Dow trend filter vs buy-and-hold#
Rule tested on 48 Nifty 50 stocks over 16 years: hold only while price is above the 200-day average and the 50-day is above the 200-day.
| Trend filter | Buy and hold | |
|---|---|---|
| Median return | ~107% | ~744% |
| Median max drawdown | ~47% | ~56% |
| Beat buy-and-hold | 4 of 48 stocks | — |
| Time out of the market | ~45% | 0% |
Dow-style filters are a risk-management framework, not a profit machine: they trimmed drawdowns but gave up most of the return.
Check yourself 2 questions
How did the 50/200 filter compare with buy-and-hold on returns?
Show answer
About +107% median versus about +744%.
On how many of 48 stocks did the filter beat buy-and-hold?
Show answer
4.
Takeaway A trend filter reduced drawdown a little but sacrificed most of the return; it's risk management, not a profit machine.
Trends and trendlines#
- Name the state first: up (higher highs and lows: buy dips), down (lower highs and lows: don't buy weakness), or sideways (buy the floor, sell the ceiling).
- Trendlines: join rising swing lows (uptrend) or falling swing highs (downtrend). Two points draw it, a third confirms; 3–4 clean touches is ideal, eight means it's tired. Never force or keep redrawing it.
- Angle: a gentle slope can last months; near-vertical is exhaustion risk, not strength. Use a log scale on long charts.
- A trendline break means the angle changed; a broken swing low means the trend changed. Decide on swing points, not lines.
- Dip into a rising 50-day average: +0.67% over the next 10 days, against +0.58% for any uptrend day. Real but tiny.
Check yourself 2 questions
In a downtrend, should you buy weakness?
Show answer
No: lower highs and lows mean don't buy dips.
How many touches make a trendline credible?
Show answer
Two draw it, a third confirms; 3–4 clean touches is ideal.
Takeaway Name the trend state first; trendlines join swing lows or highs, and two points draw, a third confirms.
Pullback or trend change?#
Check yourself 2 questions
The prior higher low breaks. What then?
Show answer
Treat it as a trend change until proven otherwise.
Heavy volume on the dip suggests what?
Show answer
Caution: wait for it to stabilise.
Takeaway Higher low intact, light volume on the dip and an intact higher-timeframe trend say pullback.
Support and resistance#
- Why levels work: traders who profited there buy more, traders who missed it buy the return, and trapped holders sell at breakeven.
- Where levels come from: prior swing highs and lows (most important), round numbers like 500 or 1,000, and long sideways bases.
- Draw zones, not lines: mark the cluster of highs or lows, not the single extreme tick. A practical start: the highest high and lowest low of the last 20 sessions.
- Role reversal: broken resistance tends to become support and vice versa; the retest is usually the cleaner entry.
- Many tests weaken a level: each test absorbs orders. A level hit 13–14 times is a countdown to a break, not a stronger wall.
- Confluence (two independent reasons at one price) makes a zone stronger.
Check yourself 2 questions
Why does broken resistance often become support?
Show answer
Traders who missed it buy the return, and those who profited add more.
Lines or zones?
Show answer
Zones: the cluster of highs or lows, not one extreme tick.
Takeaway Levels work because of trader memory; draw zones from prior swings, round numbers and bases, not single lines.
Ranges, channels and breakouts#
- A range is a sideways box; a channel is the same idea with parallel sloping lines. Markets spend roughly two-thirds of their time sideways.
- Inside a range: buy near support, sell near resistance, avoid the middle, and put the stop just outside the box.
- A close above the upper Bollinger band still averaged about +0.58% over 10 days: touching an edge is not automatically a reversal.
| Breakout test (new 20-day high) | Fakeout rate |
|---|---|
| All breakouts | 56% back inside within 5 sessions |
| On volume above 1.5× average | 47% |
Treat fresh breakouts as guilty until proven innocent: wait for a close beyond the level, then the retest.
Check yourself 2 questions
Where does the stop go on a range trade?
Show answer
Just outside the box.
Roughly what share of the time do markets range?
Show answer
About two-thirds.
Takeaway Markets spend about two-thirds of their time sideways; buy near support, sell near resistance, avoid the middle.
Trading the retest#
flowchart TD
B1["Close beyond the range"] --> B2["Wait for price to return to the level"]
B2 --> B3{{"Old resistance holds as support?"}}
B3 -->|holds| B4["Enter, stop on the far side of the level"]
B3 -->|fails back inside| B5["Fakeout: stand aside"]
classDef dec fill:__DF__,stroke:__DS__,color:__FG__
class B3 decThe retest filters out many failed breakouts and gives a tighter stop than chasing the first breakout candle.
Check yourself 2 questions
Where's the stop on a retest entry?
Show answer
On the far side of the level.
Price falls back inside the range on the retest. What is it?
Show answer
A fakeout: stand aside.
Takeaway Wait for a breakout to return to the level; enter if old resistance holds as support, stand aside if it fails.
Fibonacci: the pullback map#
| Level | Reading |
|---|---|
| 23.6% | Shallow dip in a strong trend |
| 38.2% | First level most traders watch |
| 50% | Not Fibonacci; Dow's halfway level |
| 61.8% | Deepest normal pullback in a healthy trend |
| 78.6% | Last-ditch; beyond it the move is usually broken |
| 127.2%, 161.8%, 261.8% | Extension zones for taking profit |
Check yourself 2 questions
Is 50% a Fibonacci ratio?
Show answer
No. It's Dow's halfway level.
Which levels are used for profit targets?
Show answer
Extensions: 127.2%, 161.8% and 261.8%.
Takeaway 38.2%, 50% and 61.8% are the main pullback levels; beyond 78.6% the move is usually broken.
Fibonacci worked example and rules#
- Swing 553.5 → 1,094.2 (move ≈ 540): 38.2% at 887.7, 50% at 823.9, 61.8% at 760.0. The pullback bottomed near 788, about 57%, inside the 50–61.8% decision zone, then resumed up.
- Into the zone with a turn signal (hammer, engulfing, rising volume): healthy trend. Slicing through 61.8% and still falling: trend may be over.
- Pick the swing points first and let the levels fall where they fall; drawing after deciding to buy is self-deception.
- Confluence that strengthens a level: prior support, a rising 50-day average, a round number, the same level on the weekly chart.
Check yourself 2 questions
Swing 553.5 to 1,094.2: where's the 61.8% level?
Show answer
About 760.
What should you pick before drawing Fibonacci?
Show answer
The swing points.
Takeaway The 50–61.8% zone is the decision zone; a turn signal there means a healthy trend, slicing through 61.8% means it may be over.
03Candlestick patterns and why context decides
OpenAlgo Open Varsity · Technical Analysis · chapters 10–12 (single candles, two- and three-candle tells, patterns in context)
Single candles#
| Candle | Shape | Where it counts | Reading |
|---|---|---|---|
| Doji | Open ≈ close; body under about a tenth of the range | After a long run | Momentum pause, not a reversal call |
| Gravestone / dragonfly doji | Long upper / long lower wick | At resistance / support | Buying / selling rejected |
| Spinning top | Small body (under a third of the range), wicks both sides | After a strong trend | Neither side wins; fuel running low |
| Hammer | Small body on top, lower wick ≥ 2× body | After a decline, at support | Bullish hint |
| Hanging man | Same shape as a hammer | After a rally, at resistance | Bearish warning |
| Shooting star | Small body at bottom, long upper wick | After a rally, at resistance | Bearish hint |
| Inverted hammer | Same shape as a shooting star | After a decline | Tentative bullish |
| Marubozu | All body, little or no wick | Breakouts, trend legs | Conviction that may carry into the next session |
The same shape means opposite things in different places: a long lower wick after a fall is a hammer, after a rally a hanging man. Shape alone never sets direction.
Check yourself 2 questions
What does a doji after a long run signal?
Show answer
A momentum pause, not a reversal call.
Where does a gravestone doji count?
Show answer
At resistance: buying rejected.
Takeaway Doji, spinning tops, hammers and shooting stars signal pauses or rejection, and matter only at the right place.
Two- and three-candle patterns#
| Pattern | Candles | Meaning | Weight |
|---|---|---|---|
| Harami | 2 | Small body inside a big one: momentum stalls | Weak, watch |
| Engulfing | 2 | Second body covers the first: control changes | Moderate |
| Tweezer top / bottom | 2+ | Same high or low rejected twice | Moderate at a level |
| Morning / evening star | 3 | Takeover plus confirmation | Higher |
| Three soldiers / crows | 3 | Strong momentum | Confirms, often late |
More candles demand more agreement, so they carry more weight, but reliability stays modest. One winning example (a bullish engulfing at a swing low followed by +5.7% in 10 sessions) is an illustration, not a base rate.
Check yourself 2 questions
What does an engulfing pattern show?
Show answer
A change of control: the second body covers the first.
How many candles in a morning star?
Show answer
Three.
Takeaway Harami is weak, engulfing moderate, stars stronger; three soldiers or crows confirm momentum.
The three context filters#
| Filter | Strong | Weak |
|---|---|---|
| Level | Support, resistance, prior high or low, round number, Fibonacci level | Open space |
| Trend | With the larger trend, at the end of a pullback | Against an extended trend |
| Volume | Above average | Thin, sleepy session |
A hammer in the middle of nowhere means nothing; the same hammer at support, in an uptrend, on heavy volume is a setup. Counter-trend reversal patterns fail far more often.
Check yourself 2 questions
Name the three context filters.
Show answer
Level, trend and volume.
A hammer at support, in an uptrend, on heavy volume: what is it?
Show answer
A setup.
Takeaway Level, trend and volume turn a candle into a setup; the same hammer in open space means nothing.
Should I act on this candle pattern?#
Check yourself 2 questions
A pattern in open space with no prior level: act?
Show answer
Skip it: noise.
Volume is below average. What then?
Show answer
Downgrade it and wait for the next bar to confirm.
Takeaway Act only at a level marked beforehand, with the trend, on above-average volume, with a clean stop.
Pattern discipline#
- Mark support, resistance and trend on a clean chart before looking for patterns.
- Use a fixed, written definition (for example, hammer lower wick at least 2× the body).
- Count independent reasons: one is weak, three is a setup.
- Define stop and target before entering.
- Log every pattern and outcome; most patterns barely beat the +1.48% per 20 days baseline, and a journal exposes your bias.
Check yourself 2 questions
How many independent reasons make a setup?
Show answer
Three; one is weak.
Why log every pattern and outcome?
Show answer
Most patterns barely beat the baseline drift; the log shows whether yours do.
Takeaway Mark levels first, use written definitions, count independent reasons, define stop and target, and log every pattern.
04Chart patterns: reversals, continuations and gaps
OpenAlgo Open Varsity · Technical Analysis · chapters 13–15 (reversal patterns, continuation patterns, gaps)
Reversal patterns#
| Pattern | Shape | Confirms when |
|---|---|---|
| Head and shoulders top | Middle peak highest; right shoulder below the head | Close below the neckline |
| Inverse head and shoulders | Middle trough lowest | Close above the neckline |
| Double top (M) | Two similar highs | Close below the middle dip |
| Double bottom (W) | Two similar lows | Close above the middle peak |
| Triple top / bottom | Three tests of one level | Break of the level; rarer, slower |
Prerequisites: a clear prior trend to reverse, a defined neckline, and follow-through after the break. Volume is typically heaviest on the left shoulder and head, lighter on the right, and expands on the break.
Check yourself 2 questions
When does a head and shoulders top confirm?
Show answer
On a close below the neckline.
What confirms a double bottom?
Show answer
A close above the middle peak.
Takeaway Head and shoulders and double or triple tops and bottoms confirm only on a close beyond the neckline.
Confirming a reversal, with a worked target#
- Confirm there is a prior trend.
- Draw the neckline before the last leg completes.
- Wait for a decisive close beyond it, not an intraday poke.
- Look for volume expansion; consider entering on the retest.
- Stop just back inside the pattern.
The target is a planning figure for reward against risk, not a promise.
Check yourself 2 questions
Double bottom lows about 1,080, neckline about 1,270. Target?
Show answer
About 1,460 (1,270 + 190).
Is an intraday poke beyond the neckline enough?
Show answer
No. Wait for a decisive close.
Takeaway Prior trend, neckline drawn in advance, a decisive close, volume, then target = neckline ± pattern height.
Continuation patterns#
| Pattern | Shape | Typical lean | Measured move |
|---|---|---|---|
| Bull / bear flag | Small drifting rectangle after a sharp move | With the flagpole | Flagpole height from the breakout |
| Pennant | Small triangle contracting to a point | With the trend | Flagpole height |
| Ascending triangle | Flat top, rising lows | Often up | Widest height |
| Descending triangle | Flat bottom, falling highs | Often down; can break up in an uptrend | Widest height |
| Symmetrical triangle | Lower highs, higher lows | Neutral; the trend guides it | Widest height |
| Rectangle | Flat range inside a trend | Ambiguous while forming | Box height |
Flags and pennants last days to a few weeks. A healthy pause is shallow and orderly, with volume drying up inside and expanding on the break; a deep, accelerating pullback or volume swelling against the trend says reversal instead. If the target is barely larger than the stop distance, skip the trade.
Check yourself 2 questions
How is a flag's target measured?
Show answer
Flagpole height from the breakout.
Which way does an ascending triangle often break?
Show answer
Up.
Takeaway Flags, pennants and triangles usually continue the trend; measured moves use the flagpole or widest height.
Gaps: four types#
| Type | Where | Typical behaviour |
|---|---|---|
| Common | Inside a range | Small, fills quickly |
| Breakaway | Out of a base or pattern | Starts a trend, often doesn't fill |
| Runaway | Mid-trend | Acceleration, near the halfway point |
| Exhaustion | End of an extended move | Final leap, usually fills, then reverses |
Breakaway and exhaustion gaps look identical on the day: the trend's age and the next few sessions tell them apart. An island reversal (bars stranded between two gaps) signals a likely flip.
Check yourself 2 questions
Which gap type usually fills, then reverses?
Show answer
Exhaustion.
How do you tell breakaway from exhaustion on the day?
Show answer
By the trend's age and context; they look identical on the day.
Takeaway Common gaps fill fast, breakaway gaps start trends, runaway gaps accelerate them, exhaustion gaps end them.
Gap statistics and rules#
- Nifty 50 daily: gaps over 2% filled within 20 sessions about 78–79% of the time; gaps over 5% about 71–73%. Bigger gaps fill less often, so fading them is a bet against the odds.
- Heavy volume suggests conviction (breakaway or runaway); light volume suggests a common gap.
- Read every gap with four questions: what news, how big (%), where in the trend, and how much volume.
- Don't chase the open; let the first range form. Treat the previous close and the gap open as levels.
- Size down on gap days: wider stops need smaller positions to keep rupee risk constant.
Check yourself 2 questions
Gaps over 5%: roughly how often filled within 20 sessions?
Show answer
About 71–73%.
Heavy volume on a gap suggests what?
Show answer
Conviction: breakaway or runaway rather than common.
Takeaway Nifty 50 gaps over 2% filled within 20 sessions about 78% of the time; bigger gaps fill less often.
05Indicators: averages, momentum, volatility, volume and trend strength
OpenAlgo Open Varsity · Technical Analysis · chapters 16–24 (moving averages, RSI, MACD, Bollinger and ATR, volume, trend strength, trend tools, combining, toolbox)
Moving averages#
| Length (daily) | Covers | Use |
|---|---|---|
| 20 | About a month | Short-term swing direction |
| 50 | About a quarter | Intermediate trend |
| 200 | About a year | Long-term health |
- SMA weighs every bar equally: calmer, more lag. EMA weighs recent bars more: turns sooner, more false twitches. The lag trade-off can be chosen, never removed.
- Read the slope first (rising, flat, falling), then price versus the line. Slope beats the exact touch.
- A 50-day on a daily chart is not a 50-day on a weekly chart: always state the timeframe.
Check yourself 2 questions
Which average represents about a year?
Show answer
The 200-day.
SMA versus EMA: which reacts sooner?
Show answer
The EMA.
Takeaway The 20, 50 and 200-day averages track month, quarter and year; SMAs are calm and laggy, EMAs turn faster.
Golden and death crosses, tested#
| Signal (Nifty 50, 16 years) | Up after 60 days | Typical 60-day move |
|---|---|---|
| Golden cross (527 cases) | 59% | +2.7% |
| Death cross (529 cases) | 66% | +4.8% |
| Baseline drift | — | ~+4.5% |
- On this data "golden = buy, death = sell" is close to backwards; golden-cross winners often dipped about 7% first.
- A dip to a rising 50-day average gave +0.67% over 10 days against a +0.58% baseline: an edge under 0.1 point.
- Better use: a direction filter (longs only while the 50-day is above a rising 200-day), which mainly cuts drawdowns and time at risk.
Check yourself 2 questions
After a death cross, how often was the stock higher 60 days later?
Show answer
About 66% of the time.
Did golden crosses beat the baseline drift?
Show answer
No: about +2.7% versus a baseline of about +4.5%.
Takeaway On 16 years of Nifty 50 data, death crosses were followed by better 60-day returns than golden crosses.
RSI: momentum, not a buy/sell switch#
- RSI (default 14) compares recent up-move strength with down-move strength on a 0–100 scale; 50 is balance, 70/30 the usual reference lines. It compares a stock only with its own history.
- Shorter lookbacks (7) are faster and noisier; longer (21) are smoother.
- In a range RSI swings between extremes; in an uptrend it tends to hold about 60–80 (a break below 40 is a warning); in a downtrend about 20–40.
| RSI bucket (Nifty 50) | Average next 20 days |
|---|---|
| Any day (baseline) | +1.48% |
| Below 30 | +1.8% |
| 50–70 and 70–80 | +1.4% |
| Above 80 | +2.2% (positive 60% of the time) |
Overbought streaks lasted up to 43 days and oversold up to 44: extremes are states, often of persistent strength, not reversal signals.
Check yourself 2 questions
What RSI range does an uptrend tend to hold?
Show answer
About 60–80.
Which RSI bucket had the best 20-day returns in the course's study?
Show answer
Above 80.
Takeaway RSI measures momentum against a stock's own history; in uptrends it holds about 60–80, and 'overbought' can keep rising.
Divergence and the oscillator family#
- Bearish divergence: price makes a higher high, RSI a lower high. Bullish: price a lower low, RSI a higher low. It can last weeks; use it at extremes near levels, and let a price trigger (broken trendline, reversal candle) time the entry.
- Stochastic: where the close sits in the recent range; above 80 overbought, below 20 oversold.
- Williams %R: an inverted stochastic, 0 to −100.
- CCI: distance from the recent average, unbounded; ±100 marks "stretched".
- Stochastic RSI: a stochastic of RSI; the most sensitive and noisiest.
Five oscillators on the same prices are one opinion repeated, not five confirmations.
Check yourself 2 questions
Define bearish divergence.
Show answer
Price makes a higher high while RSI makes a lower high.
What does stochastic measure?
Show answer
Where the close sits in the recent range.
Takeaway Divergence warns of fading momentum and can last weeks; let a price trigger time the entry.
MACD#
| Reading | Meaning |
|---|---|
| MACD crosses above / below signal | Momentum turning up / down |
| MACD above / below zero | Trend leans up / down |
| Histogram growing | Momentum accelerating |
| Histogram shrinking | Momentum fading: early warning before a cross |
| Divergence | Trend tiring: tighten risk, wait for price |
MACD is in rupees, so compare shapes and crossings, not raw values across stocks.
Check yourself 2 questions
What does a shrinking histogram signal?
Show answer
Momentum fading: an early warning before a cross.
MACD above zero means what?
Show answer
The trend leans up.
Takeaway MACD = EMA12 − EMA26, signal = its 9-period EMA; a shrinking histogram warns before a cross.
MACD crossovers, tested#
- 7,640 bullish crosses on Nifty 50 stocks over 16 years: 58% positive after 30 days; 37% gained more than 5%.
- Filtering for "MACD above zero" did not meaningfully raise the win rate.
- Strong in trends (the histogram flags fatigue early), weak in sideways markets (repeated whipsaw crosses), and always lagging.
- Practical use: confirm the trend with price and averages first, use a bullish cross near support to time a continuation entry, and watch the histogram for fading momentum.
Check yourself 2 questions
Did filtering for MACD above zero raise the win rate?
Show answer
Not meaningfully.
Where does MACD fail?
Show answer
In sideways markets, with repeated whipsaw crosses.
Takeaway Bullish MACD crosses were positive 30 days later only about 58% of the time; strong in trends, whipsaws in ranges.
Volume: relative volume and spikes#
- Spike plus a decisive close: conviction in the close's direction.
- Spike at the end of a long trend: possible climax.
- Spike with a flat close: churn, a draw; not a signal.
- Healthy uptrend: volume swells on up-days and fades on pullbacks. Rallies on shrinking volume or selloffs on rising volume are warnings.
- Volume confirms moves; it doesn't start them.
Check yourself 2 questions
Relative volume of 5 suggests what?
Show answer
A major event.
Volume spike with a flat close: signal?
Show answer
No: churn, a draw.
Takeaway Relative volume = today ÷ 20-day average; spikes with decisive closes show conviction, flat closes show churn.
OBV, MFI, A/D and CMF#
| Tool | Builds | Read |
|---|---|---|
| OBV | Adds volume on up days, subtracts on down days | Ignore the level; check slope and agreement with price |
| MFI | Volume-weighted RSI, 0–100 | Above 80 / below 20 stretched; divergence is its best signal |
| A/D line | Weights volume by where the close sits in the day's range | Close near the high adds most |
| CMF | About 20-day accumulation/distribution oscillator around zero | Above zero: buying pressure dominates |
They all measure the same idea, so pick one you trust. In India, add delivery %: two stocks both up 3% on 4× volume mean different things at 70% delivery (holders accumulating) and 15% (intraday churn).
Check yourself 2 questions
What's MFI?
Show answer
A volume-weighted RSI on a 0–100 scale.
What matters on OBV?
Show answer
Its slope and agreement with price, not its level.
Takeaway Volume indicators show who is behind a move; for OBV, watch slope and agreement, not the level.
Bollinger Bands and ATR#
- Volatility tools measure how much price moves, never which way.
- A squeeze (very low bandwidth, e.g. about 4.7% before one stock's expansion) says a bigger move is due, not its direction.
- Walking the band: strong trends hug an outer band. A close above the upper band still averaged +0.58% over 10 days, so it is strength, not a sell signal.
- ATR sets stops: 2–3× ATR from entry. A stock with ATR ≈ ₹85 (2.8% of price) needs about ₹170 of room at 2×.
Check yourself 2 questions
What is a squeeze?
Show answer
Very low bandwidth: volatility coiled before a move of unknown direction.
How is ATR calculated?
Show answer
The 14-day average of true range.
Takeaway Bollinger bands (20 SMA ± 2 SD) and ATR measure how much price moves, never which way.
Volatility phases and channel tools#
| Phase | Bandwidth / ATR | Implication |
|---|---|---|
| Squeeze | Low and falling | Coiling; move likely, direction unknown |
| Expansion | Rising, wide | Move underway, may be maturing |
| Cooling | Very wide, contracting | Settling back towards balance |
| Tool | Centre | Width from | Answers |
|---|---|---|---|
| Bollinger | 20 SMA | Standard deviation | Is price stretched? |
| Keltner | EMA | ATR multiple | A smoother envelope |
| Donchian | None | N-day high and low (20) | Breakout levels |
| ATR | None | True range | Typical daily move in ₹ |
Use one volatility tool, not the whole set.
Check yourself 2 questions
Low and falling bandwidth implies what?
Show answer
A squeeze: a move is likely, direction unknown.
What sets the width of Keltner channels?
Show answer
An ATR multiple.
Takeaway Squeeze, expansion, cooling; Bollinger uses standard deviation, Keltner uses ATR, Donchian uses highs and lows.
Trend strength: ADX, DMI and Aroon#
- ADX (0–100) measures strength only, not direction: below 20 weak or choppy, above 25 a real trend, rising means gaining force, around 40+ very strong and possibly mature.
- DMI: +DI (upward pressure) above −DI means buyers lead. A +DI cross with ADX above 25 means much more than the same cross with ADX below 20.
- Aroon Up / Down (0–100): how recently a new high or low was made. Up near 100 with Down low is a fresh uptrend; both mid-range is sideways.
- ADX lags, so it is a context filter, never a timing trigger; a very high ADX can mark a stretched trend near its end.
"Direction tells you which way; strength tells you whether to bother."
Check yourself 2 questions
ADX at 30 and rising: what does it tell you?
Show answer
A real trend gaining force, direction unknown from ADX alone.
+DI above −DI means what?
Show answer
Buyers lead.
Takeaway ADX measures strength, not direction: under 20 is weak, over 25 a real trend; DMI shows who leads.
Trend or range? Pick the tactic#
| Strong trend | Choppy range | |
|---|---|---|
| ADX | Above 25 and rising | Below 20 |
| DMI | Lines wide apart | Lines tangled, crossing |
| Aroon | Pinned at an extreme | Drifting mid-range |
| Tactic | Trend tools lead; trail stops | Range tactics at support and resistance; switch trend tools off |
Check yourself 2 questions
ADX below 20 with tangled DMI lines: which tactic?
Show answer
Range tactics at support and resistance.
Strong trend: how do you manage exits?
Show answer
Trail stops and let trend tools lead.
Takeaway ADX above 25 means trend tools and trailing stops; below 20 means range tactics and trend tools off.
Trend tools that sit on price#
| Overlay | How it works | Best in | Fails in |
|---|---|---|---|
| Supertrend | One line an ATR-based distance from price; ratchets behind a rising price | Clean trends; a trailing stop | Ranges: one stock flipped 25 times in two years |
| Parabolic SAR | Dots that tighten towards price; a touch flips it | Steady trends, tight trailing | Ranges (whipsaw) |
| Ichimoku cloud | Above cloud bullish, below bearish, inside undecided | Slow regime context | Price hovering in the cloud |
Check ADX first: above about 25, read the overlay's side and trail the stop with it; below about 20, ignore the flips. Stacking all three is one opinion drawn three ways.
Check yourself 2 questions
Where does Supertrend fail?
Show answer
In ranges: one stock flipped 25 times in two years.
Price above the Ichimoku cloud means?
Show answer
Bullish.
Takeaway Supertrend, Parabolic SAR and Ichimoku work in clean trends and whipsaw in ranges.
Stacking indicators without fooling yourself#
| Family | Question | Job in the plan | Pick one |
|---|---|---|---|
| Trend | Which way? | Filter: no buys unless above a rising long average | 50-day MA, Supertrend |
| Momentum | How strong and fast? | Timing: momentum turning up after a dip | RSI, MACD |
| Volume | Who is behind it? | Conviction: above-average volume | Volume vs 20-day average, OBV |
| Volatility | How much? | Risk: stop distance and size | ATR, bandwidth |
- Name a tool's family before adding it; if you already own that family, skip it. Fill missing families first (usually volume and volatility). Four tools maximum; most charts need one or two.
- If two indicators always fire together, one is clutter. Conflict (trend up, momentum overbought) is information: wait for a pullback.
- Price beats any oscillator: a break of a major level on heavy volume overrules "overbought".
Check yourself 2 questions
Why not use RSI and stochastic together?
Show answer
Both are momentum: the same opinion repeated.
What job does the volatility family do in a plan?
Show answer
Sets stop distance and position size.
Takeaway Pick one indicator per family (trend, momentum, volume, volatility), each with a job in the plan.
A clean chart template#
- Candlesticks: the primary signal.
- Hand-drawn support, resistance and trendlines.
- One trend tool, for example the 50-day average.
- One volume read: bars with a 20-day average, or OBV.
- Optional: one momentum or one volatility tool, not both.
You should be able to state the job of every line on your chart.
Check yourself 2 questions
What's the primary signal on a clean chart?
Show answer
Candlesticks (price).
What test should every line on your chart pass?
Show answer
You can state its job.
Takeaway Candles, hand-drawn levels, one trend tool, one volume read, and optionally one momentum or volatility tool.
The indicator toolbox: seven families#
| Family | Question it answers | Examples |
|---|---|---|
| Trend | Which way is price heading? | Moving averages, Supertrend, ADX, Ichimoku, Parabolic SAR |
| Momentum | How strong and fast is the move? | RSI, MACD, rate of change |
| Volatility | How much is price moving? | Bollinger Bands, ATR, Keltner, Donchian |
| Volume | Who is behind the move? | Volume, OBV, MFI, Chaikin Money Flow, VWAP |
| Oscillators | Is price stretched? | Stochastic, CCI, Williams %R, Stochastic RSI |
| Statistical | What do the numbers say? | Linear regression, correlation, beta, standard deviation |
| Hybrid | Two jobs at once | Supertrend, Ichimoku, ADX, SAR |
OpenAlgo's library has 80+ indicators, but most are variations on a few ideas built from the same past prices and volume. Learn the four everyday questions (which way, how strong, how much, who) and treat the rest as a reference shelf, not a to-do list.
Check yourself 2 questions
Which family answers 'who is behind the move?'
Show answer
Volume.
Name two volatility tools.
Show answer
Any two of: Bollinger Bands, ATR, Keltner, Donchian.
Takeaway Trend, momentum, volatility, volume and more: each family answers a different question.
06From analysis to action: timeframes, systems, risk and discipline
OpenAlgo Open Varsity · Technical Analysis · chapters 25–28 (multiple timeframes, building a strategy, risk management, psychology and next steps)
Top-down: two timeframes, two jobs#
- Never decide from one timeframe. Use two about 4–5× apart (weekly and daily for swing trading): one weekly candle ≈ five daily.
- Weekly = direction: structure (higher highs and lows?), price versus a long average and its slope, major support and resistance.
- Daily = timing: location (a pullback to support or a rising average, not stretched) and a trigger in the direction the weekly allows.
- If they conflict, the larger timeframe wins, which usually means no trade. A 4% two-day drop looks severe on the daily and minor on the weekly.
Check yourself 2 questions
What does the weekly chart decide?
Show answer
Direction: structure, price versus a long average, major levels.
What does the daily chart decide?
Show answer
Timing: location and the trigger.
Takeaway Use two timeframes 4–5× apart: weekly for direction, daily for location and trigger.
The five-step timeframe checklist#
Most setups should fail this checklist. That is the point.
Check yourself 2 questions
Weekly trend is sideways. Buy daily dips?
Show answer
No long trade.
Price is stretched far above support. What now?
Show answer
Wait for a pullback; stretched entries have the weakest odds.
Takeaway Weekly uptrend, room to weekly resistance, daily pullback location, a trigger, and a stop with reward at least 2×.
From setup to system#
| Question | Fixed before trading |
|---|---|
| Context | When is a trade allowed? (trend, timeframe, market mood) |
| Trigger | What exact event enters? |
| Exit | Target or trailing rule when right; stop when wrong |
| Size | How much to commit, from the stop |
- Write the rule so a stranger would take the same trades.
- Backtest across many stocks and years, including costs.
- Read the equity curve and worst drawdown, not just the headline return.
- Resist tuning; prefer few rules and round numbers (50/200, not 47/213), and check on data the rule never saw.
- Decide what you are buying: return, smoothness, or time out of the market.
Check yourself 2 questions
Name the four parts of a system.
Show answer
Context, trigger, exit, size.
How should a system be tested?
Show answer
Backtest across many stocks and years, including costs.
Takeaway Fix context, trigger, exit and size before trading, written so a stranger would take the same trades.
Expectancy beats win rate#
- A 40% win rate is profitable when winners are about twice the losers: cut losers at 1R, let winners run to 2–3R.
- The course's 50/200 trend filter on 48 stocks: +107% median return versus +744% for buy-and-hold, drawdown −47% versus −56%, invested about 55% of the time. Protection from big falls also costs you the sharpest recoveries.
- Be suspicious of a silky-smooth, loss-free backtest; it is usually curve-fitted.
Main card on expectancy and win rate: Risk management → Also in Technical · Technical.
Check yourself 2 questions
40% wins at 2R, 60% losses at 1R. Expectancy per ₹1 risked?
Show answer
+₹0.20.
What makes a low win rate profitable?
Show answer
Winners much larger than losers.
Takeaway A 40% win rate is profitable when winners are about twice losers: cut at 1R, let winners run.
Position size from the stop#
- Put the stop where the trade's reason is invalidated, a little beyond the level, never exactly on it.
- Set the risk budget: 1–2% of capital.
- Check the target is at least about 2× the stop distance; below 1:1, pass.
- Size = budget ÷ (entry − stop). Execute and honour the stop; never widen it.
Main card on position sizing: Risk management → Also in Technical · Futures · Options basics · Options strategies · Algo trading · Stock basics · AmiBroker AFL.
Check yourself 2 questions
Entry 322.8, stop 300, target 380: reward to risk?
Show answer
About 2.5.
Should you ever widen the stop?
Show answer
Never.
Takeaway Stop beyond the invalidation level, risk 1–2%, target at least 2R, size = budget ÷ (entry − stop).
Survival maths#
| Drawdown | Gain needed to recover |
|---|---|
| −10% | +11% |
| −20% | +25% |
| −33% | +50% |
| −50% | +100% |
| −75% | +300% |
| −90% | +900% |
At 1% risk, ten straight losses cost about 10%. At 20% risk, three losses cost about half the account. Risk is the input; position size is the output.
Main card on drawdown recovery: Risk management → Also in Technical · Risk management.
Check yourself 2 questions
Gain needed to recover from −33%?
Show answer
+50%.
At 20% risk per trade, what do three losses do?
Show answer
Cost about half the account.
Takeaway Deep drawdowns need huge gains to recover; at 1% risk ten straight losses cost about 10%.
Emotions and the rules they break#
| Emotion | Rule it breaks | Result |
|---|---|---|
| Fear | Let winners run; honour stops | Small wins, big losses |
| Greed | Fixed 1% risk | A 5% bet means one loss costs five planned losses |
| FOMO | Wait for your entry | Buying after a 6% news gap, where odds are weakest |
| Overtrading | Trade only your setups | Costs erase a thin edge |
| Curve-fitting | Keep rules simple | False confidence |
Most retail losses come from behaviour, not analysis: thin edges minus costs, emotional errors and overtrading usually land below zero. Discipline is learnable; prediction is not.
Check yourself 2 questions
Which emotion breaks 'let winners run'?
Show answer
Fear.
What does overtrading do to a thin edge?
Show answer
Costs erase it.
Takeaway Fear, greed, FOMO, overtrading and curve-fitting each break a specific rule.
Plan, execute, journal#
flowchart TD P["Plan, written while calm"] --> E["Execute only planned setups"] E --> J["Journal every trade"] J --> R["Review the last 20 trades on process"] R --> P
- Plan: instruments, timeframe, setups, exact entry, stop, target and minimum reward-to-risk, 1–2% risk, and conduct rules (daily loss cap, no chasing gaps, no widening stops).
- Journal: setup, reason, stop and target, plan followed (yes or no), emotion.
- Review: grade process, not profit. A winner taken on a whim is still a bad trade.
Check yourself 2 questions
How many trades does the review look at?
Show answer
The last 20, judged on process.
Name two conduct rules for the plan.
Show answer
Any two of: a daily loss cap, no chasing gaps, no widening stops.
Takeaway Plan while calm, execute only planned setups, journal every trade, review the last 20 on process.
The automation path#
flowchart TD W["Write the rules"] --> BT["Backtest over years"] BT --> AN["Paper trade in a sandbox"] AN --> LV["Go live at small size"]
OpenAlgo's analyzer mode is a sandbox that trades with no money at risk. Automation buys consistency, the same rules on good days and bad, not guaranteed profit.
Check yourself 2 questions
What comes between backtesting and going live?
Show answer
Paper trading in a sandbox (OpenAlgo's analyzer mode).
What does automation actually buy?
Show answer
Consistency: the same rules on good days and bad.
Takeaway Write rules, backtest, paper trade in the analyzer sandbox, then go live small; automation buys consistency, not profit.
07Checklists and one-line formulas
Run these before every trade and at every weekly review.
Before the trade#
- Weekly direction allows it; daily location and trigger agree.
- The setup sits at a level marked in advance, with the trend, on above-average volume.
- ADX says trend tools or range tactics, and I'm using the right ones.
- Stop beyond the invalidation level; target at least about 2× the stop.
- Size = 1–2% of capital ÷ (entry − stop).
- No major news or results before the planned exit.
Check yourself 2 questions
What target is required relative to the stop?
Show answer
At least about 2× the stop distance.
How is size computed?
Show answer
1–2% of capital ÷ (entry − stop).
Takeaway Weekly direction, daily location and trigger, a level with trend and volume, the right tactic for ADX, a 2R target, and risk-based size.
Honest-signal checklist#
- Compared with the +1.48% per 20 days baseline, does this signal add anything?
- Is it one tool per family, or the same opinion repeated?
- Has the rule been tested on many stocks and years, with costs?
- Would I take the same trade if I wrote the rule down first?
- Am I chasing a breakout, or waiting for the retest?
Check yourself 2 questions
What baseline must a signal beat?
Show answer
About +1.48% per 20 days.
Chasing a breakout or waiting: which does the checklist favour?
Show answer
Waiting for the retest.
Takeaway Does the signal beat baseline drift, is it one tool per family, was it tested with costs, and are you chasing?
One-line formulas#
Check yourself 2 questions
Gap % formula?
Show answer
(Open − previous close) ÷ previous close × 100.
ATR stop formula?
Show answer
Entry − 2 to 3 × ATR.
Takeaway Shares = risk ÷ (entry − stop); R:R = reward ÷ risk; recovery = 1 ÷ (1 − drawdown) − 1.
About this sheet#
This sheet condenses the free course Technical Analysis from OpenAlgo Open Varsity (28 chapters, 6 modules) into reference cards, written in our own words. Backtest figures are the course's own, on 16 years of daily Nifty 50 data; single-stock examples are illustrations, not evidence. Each section links back to its chapters. Educational, not investment advice. For more patterns, Wyckoff and breadth, see your own Technical Analysis sheet.