20/50 Moving Average Crossover on HDFC Bank
₹1,00,000 invested on 2016-11-17 would be worth
₹1,01,780Just holding HDFCBANK.NS: ₹2,92,588
- Profit ₹1,780
- Holding made ₹1,90,807 more
- Only 28 trades: a first look
- Total return
- +1.8%
- holding +193%
- Win rate
- 32%
- 9 won · 19 lost
- Trades
- 28
- small sample
- Max drawdown
- -43%
- -₹73,509
- Profit factor
- 1.14
- won ÷ lost
- Test period
- -8%
- holding +12%
The verdict
Does the 20/50 moving average crossover work on HDFC Bank? Over 2016-11-17 to 2026-11-17 buying when the 20-day average crossed above the 50-day average and selling when it crossed back below returned +2%, against +193% for simply holding HDFC Bank. It made 28…
Right now: In a trade as of the 2026-11-17 close.
The rules
- 1Market: HDFC Bank (HDFCBANK.NS), daily bars, long only
- 2Enter when the 20-day average crosses above the 50-day average
- 3Exit when the 20-day average falls back below the 50-day average
- 4Signals on the close, filled at the next open
Growth over 10 years
The strategy against simply holding HDFCBANK.NS, drawdown underneath. Everything after “Test period” was held back when the rules were judged.
Where the profit and loss came from
₹1,00,000 from 2016-11-17 to 2026-11-17, after fees and slippage. Trailed holding HDFCBANK.NS by ₹1,90,807.
- Net profit
- +₹1,780
- +2%
- Total won (winning trades)
- +₹91,603
- 9 trades
- Total lost (losing trades)
- −₹89,823
- 19 trades
- Win rate
- 32%
- 9 won · 19 lost
- Average win
- +9.0%
- per winning trade
- Average loss
- -3.8%
- per losing trade
- Best trade
- +₹33,882
- +27.4%
- Worst trade
- −₹15,756
- -11.4%
- Biggest fall from a high
- −₹73,509
- the worst point you would have sat through
- Average time in a trade
- 69 days
Hypothetical: the whole amount goes into each trade and profits are reinvested. Taxes and brokerage minimums are not included. Not advice.
Did it hold up on unseen data?
- Return
- -8.3%
- Buy & hold
- +12.2%
- Max drawdown
- -19.9%
- Win rate
- 25%
- Profit factor
- 0.78
- Sharpe
- -0.11
- Trades
- 8
Costs: 5 bps fee and 5 bps slippage per side. Signals on the close, filled at the next open, long only. Run on 2026-11-18T12:46:07.275Z with delayed daily prices. How backtests are run.
Strategy checks
How this idea holds up against the checks that separate skill from luck.
- 1passes
- 3watch
- 3fails
- 4your call
Coin toss
Watch32% wins vs 29% needed
Positive, but within the range luck alone can produce on this many trades.
Outlier dependence
FailsWithout best 3: -35.8%
Remove the single best trade and the result turns negative.
Big-move days
Passes17% of gains on the top 5% days
Gains are not concentrated on the market’s wildest days. (A proxy: we do not yet use an events calendar.)
Time in market
Your call53%
Invested a meaningful share of the time.
Sample size
Watch28 trades
Too few trades for the statistics to mean much.
Versus buy and hold
Watch2% vs 193%
Holding the same instrument did better, with no work.
Biggest drawdown
Fails-43.2%
Could you watch 43% of your account vanish and still follow the rules? Measured on closing prices, so intraday dips are not included.
Recovery time
Fails5.8 years
Longest stretch below a previous high, and it is still below one now.
Winning vs losing days
Your call51% of active days up
679 up days and 665 down days while invested.
Losing streaks
Your call5 trades, 8 days
The longest run of consecutive losers. Expect at least this again, and ask if you could keep going.
Day of week
Your callBest Wed 1.4%, worst Tue -1.5%
Average trade return by the weekday you entered. Small samples mislead, so treat differences as a question, not an answer.
Session timing, passive-index comparison and intraday drawdown are not measured yet.
Common questions
What traders usually ask about this strategy, answered from this backtest by AlphaEdgeCheck.
Does the 20/50 Moving Average Crossover on HDFC Bank make money?
Over 10 years of daily prices, ₹1,00,000 became ₹1,01,780 (+2%) after 0.05% fees and 0.05% slippage per side. So it made money, but simply holding HDFCBANK.NS would have turned the same amount into ₹2,92,588.
Is the 20/50 Moving Average Crossover on HDFC Bank better than buy and hold?
No. It ended ₹1,90,807 behind simply holding HDFCBANK.NS.
How many trades did it make, and is that enough?
28 trades in 10 years, 9 winners and 19 losers. Under 30 trades the win rate and profit factor swing a lot with each trade, so treat this as a first look.
What was the worst loss?
The worst single trade lost ₹15,756 (−11%). The biggest fall from a previous high was ₹73,509 (−43%), and the longest losing streak was 5 trades in a row.
How much money does testing it first save?
With ₹1,00,000, trading it instead of holding would have left you ₹1,90,807 behind. The backtest showed that for free.
How did it do on data it was not fitted to?
We judge rules on the first 70% of the history and hold the last 30% back. In that held-out test period it returned −8% against +12% for holding. It passed 1 of 11 checks overall.
Can I use the 20/50 Moving Average Crossover on HDFC Bank with my broker?
Pick your broker in the section above and sign up for the beta, and we will email you the script for it when it is ready. It is research and education only: we do not connect to brokers or place orders, so check your broker's rules before automating anything.
Beta members
Get this strategy for your broker
Pick your broker or platform and sign up for the beta. We will email you the 20/50 Moving Average Crossover on HDFC Bank script for it. Research and education only: check your broker's rules before automating anything.
India
US and global
Platforms
Research, not advice. Results are hypothetical, use simplified assumptions and delayed daily prices. Past performance does not indicate future results. Risk disclosure.