TradeTech Analytics

Nifty 50 spot index · daily, weekly and monthly candles · SMA distance first-cross signals · v1.0.0 · research study 2026-10-27

SMA-distance trend study NO EDGE

When does a Nifty 50 trend start after a close 1 to 5% beyond its 10 or 20-period SMA? Daily, weekly and monthly, 2007 to 2026. 60 signal combinations, 4,163 signals, 4,687 daily candles from 2007-09-17. Daily upward signals at 3% give a sustained uptrend 29%-30% of the time against 20% for days already above the average (modest, present in both halves, statistically weak). Downward signals precede rebounds, not downtrends. 1 of 300 success-rate tests survives correction. Weekly mostly baseline; monthly too few signals.

Verdict

Weak, mostly inconclusive: no threshold is a reliable trend signal

Best-supported: daily close 2-4% above the 10/20-SMA (sustained uptrend 29%-30% vs 20% baseline), but late and only weakly significant; downward signals mark rebounds.

  • Data: Nifty 50 daily OHLC, NSE official end-of-day index files from 2013-01-01 and Yahoo Finance ^NSEI for 2007-09-17 to 2012-12-31; the sources agree to within 0.0005% on 3,382 overlapping days. 4,687 daily, 997 weekly and 229 monthly completed candles; null closes dropped, nothing interpolated.
  • Daily upward signals: a first close ≥3% above the SMA was followed by a sustained uptrend (3% net move over 20 sessions, 70% persistence, no close back below the signal-time SMA) 29% of the time for the 10-SMA and 30% for the 20-SMA, against 20% for every day already above its average and 14% for every day. The improvement is positive in both halves of the history but its lower confidence bound is only about 6 points.
  • It arrives late: before the median ≥3% daily up-signal the index had already risen about 4% in 10 sessions; the next 10 sessions add a median of about 1%. About 29% of 10-SMA signals and 12% of 20-SMA signals close back across the average within 5 sessions.
  • Downward signals do not signal downtrends: the median 10-session return after a ≥3% close below the 10 or 20-SMA was +0.5% and +1.2% (rebounds), and only 18%-21% became sustained downtrends. Short trades after the signal mostly lost money after 0.10% costs.
  • Larger distances mostly identify stretched moves: the sustained-trend rate rises only a few points from 1% to 3-4%, the run-up completed before the signal grows steadily, and forward returns do not rise with the threshold (the 5% cells rest on 13-30 independent episodes).
  • Statistics: 300 tests of success rate against the unconditional baseline, exact binomial, Benjamini-Hochberg at 10%: 1 survives (next-day continuation after the first daily close ≥1% above the 10-day SMA: 64% vs 53%); 0 against the like-for-like baseline. Weekly results are mostly indistinguishable from baseline; monthly combinations have 6-22 signals and no conclusion is supported.
  • Not trading advice and not a strategy: the executable view (next-open entry, 0.10% round trip, no leverage) shows long trades after up-signals earning roughly what a long trade started on any day earned. The report has the heatmaps, comparison charts, event studies, return distributions, annotated examples and the full tables.

Promotion gates

No gates published for this strategy.

Explain the strategy

We asked: if Nifty closes a few percent above its recent average price, does it keep going up? Over 19 years the answer is 'slightly more often than usual, but you usually find out late'. When Nifty closes below its average, it usually bounces rather than keeps falling.

Report

All 60 combinations: signals, sustained-trend rate with interval, success rates and medians against baselines, false breakouts

TimeframeSMADirectionThreshold %SignalsEpisodesSustained trend %CI lowCI highSame-side baseline %All-candle baseline %Success 5Baseline 5Success 10Baseline 10Success 20Baseline 20Median ret 10 %Baseline median 10Median ret 20 %Baseline median 20False breakout %Median candles to cross-backp (10 candles)BH significant (10)
Daily10down128413915.60310.17422.14513.1436.720.4470.4420.4150.430.3940.4030.9240.551.0840.96553.8735.01.0False
Daily10down21869816.30411.94627.17513.1436.720.3980.4420.3870.430.4020.4031.3270.551.6140.96552.1515.00.54False
Daily10down31135617.69912.70633.8213.1436.720.4780.4420.460.430.3630.4030.5280.552.1750.96545.1336.00.289False
Daily10down4583520.6910.04235.89213.1436.720.4480.4420.50.430.3620.4030.2420.552.9870.96539.6556.00.436False
Daily10down5331730.30317.30958.713.1436.720.5150.4420.6360.430.4550.403-1.5460.550.160.96530.3037.50.013False
Daily10up135515725.14122.31336.39620.33413.740.5630.5580.5730.570.6130.5970.7540.550.9950.96542.2546.00.265False
Daily10up218510231.52221.66839.22520.33413.740.60.5580.620.570.6140.5971.0570.551.5740.96530.8117.00.669False
Daily10up3925529.34826.51651.39120.33413.740.6090.5580.6090.570.6090.5971.1790.551.2250.96529.3487.00.092False
Daily10up4503032.021.87454.48720.33413.740.60.5580.660.570.60.5971.7960.551.1020.96528.08.00.619False
Daily10up5241337.529.14376.79420.33413.740.4580.5580.6250.570.5420.5971.1850.550.6850.96529.1678.00.619False
Daily20down122411413.9019.6122.77714.2936.8420.4730.4420.4350.4310.4660.4040.4890.5410.5080.95943.756.00.336False
Daily20down21719319.04813.63930.01814.2936.8420.4560.4420.4470.4310.4290.4040.5990.5410.7790.95931.5797.00.639False
Daily20down31236621.48814.28534.1714.2936.8420.4470.4420.4230.4310.4380.4041.1910.5410.4810.95921.9519.00.582False
Daily20down4814417.28411.15334.50114.2936.8420.3830.4420.4070.4310.3830.4041.1710.5411.3980.95917.2849.00.784False
Daily20down5602916.6677.59834.54914.2936.8420.4170.4420.4330.4310.3330.4041.2680.5413.8940.95918.33311.00.618False
Daily20up125813620.23316.67530.74720.78513.6190.5580.5580.5490.5690.6070.5960.3290.5410.8730.95935.2716.00.88False
Daily20up220511325.85421.61438.1620.78513.6190.590.5580.6290.5690.5760.5961.0210.5410.9140.95917.56110.00.322False
Daily20up31477729.93226.50547.51820.78513.6190.6190.5580.6530.5690.6050.5961.0530.5411.350.95912.24511.00.019False
Daily20up4864926.74416.21140.26320.78513.6190.6280.5580.5580.5690.640.5960.4780.5411.5940.9598.1411.00.609False
Daily20up5502830.017.93350.66120.78513.6190.580.5580.580.5690.580.5960.5540.5410.7280.9596.012.00.857False
Monthly10down11477.1430.025.8848.3333.7380.2860.3260.3080.2330.0770.126.138.38916.71918.86961.5382.00.444False
Monthly10down21477.6921.62337.7368.3333.7380.3080.3260.3330.2330.1670.125.4028.38917.77518.86950.02.51.0False
Monthly10down31467.6921.78840.4168.3333.7380.3080.3260.250.2330.0910.127.4348.38918.83218.86950.02.50.69False
Monthly10down41468.3332.24247.0898.3333.7380.250.3260.1820.2330.00.128.7398.38922.91218.86936.3644.01.0False
Monthly10down510611.1112.56851.3138.3333.7380.1110.3260.00.2330.00.1216.2558.38929.41818.86937.53.50.347False
Monthly10up117817.6477.04745.18634.41628.9720.5880.6740.8240.7671.00.888.0518.38929.2818.86911.7656.01.0False
Monthly10up220830.017.30958.734.41628.9720.650.6740.80.7671.00.888.1388.38927.06118.86910.06.00.476False
Monthly10up322836.36418.48161.35934.41628.9720.5910.6740.8640.7670.90.888.1388.38926.80218.8690.07.00.317False
Monthly10up420740.016.34461.23634.41628.9720.60.6740.850.7670.8890.887.4728.38927.02618.8690.07.00.476False
Monthly10up519747.36817.70964.47834.41628.9720.6320.6740.8420.7670.7650.8812.2638.38923.02318.8690.010.00.47False
Monthly20down1860.00.035.4340.00.490.2860.3220.00.2350.00.12616.298.24739.30618.40850.03.50.347False
Monthly20down2640.0-0.043.4490.00.490.40.3220.00.2350.00.12611.2388.24722.78618.4080.06.01.0False
Monthly20down3740.0-0.043.4490.00.490.00.3220.00.2350.00.1268.6088.24724.76818.4080.05.01.0False
Monthly20down4740.0-0.043.4490.00.490.00.3220.00.2350.00.12615.3998.24723.66418.4080.05.01.0False
Monthly20down5740.0-0.043.4490.00.490.00.3220.00.2350.00.12615.3998.24723.66418.4080.05.01.0False
Monthly20up114835.71413.81260.93834.30232.3530.6430.6780.7860.7651.00.87410.1428.24727.67318.4087.1439.01.0False
Monthly20up215833.33313.81260.93834.30232.3530.60.6780.80.7651.00.8748.028.24727.2218.4086.6677.01.0False
Monthly20up315820.08.17950.25734.30232.3530.5330.6780.7330.7651.00.8747.6598.24726.76818.4086.6675.01.0False
Monthly20up416825.012.6857.63134.30232.3530.5620.6780.8120.7651.00.8747.848.24726.80218.4080.07.01.0False
Monthly20up514821.4298.17950.25734.30232.3530.50.6780.7860.7651.00.8747.4578.24727.25518.4080.05.00.47False
Weekly10down1713320.07.74528.78413.4086.7480.5770.4020.4710.3740.3570.3540.6432.2942.5593.83938.5715.00.357False
Weekly10down2633211.4753.8622.54813.4086.7480.5160.4020.4430.3740.3280.3541.2442.2945.4113.83934.4265.00.26False
Weekly10down3522510.03.2424.21813.4086.7480.490.4020.480.3740.380.3541.4012.2945.4973.83938.04.50.043False
Weekly10down4442311.6285.69931.4913.4086.7480.3720.4020.3490.3740.3490.3543.7472.2947.7953.83941.864.00.334False
Weekly10down5291714.2864.98134.63613.4086.7480.3570.4020.3210.3740.3210.3545.7712.2948.8363.83939.2864.01.0False
Weekly10up1933926.88216.2837.34130.16121.7790.6670.5980.6240.6260.6810.6462.4762.2945.2323.83924.7316.00.366False
Weekly10up2963827.08311.43430.85230.16121.7790.6560.5980.6040.6260.6630.6461.3582.2944.4243.83921.8757.00.237False
Weekly10up3813235.80219.91544.2730.16121.7790.630.5980.6170.6260.6540.6461.8852.2943.7293.83917.2847.00.476False
Weekly10up4622932.25822.98950.83430.16121.7790.5480.5980.6290.6260.5810.6462.5552.2943.1593.83919.3557.00.875False
Weekly10up5442427.27317.95248.56730.16121.7790.5450.5980.6140.6260.6360.6461.7352.2943.1593.83920.4556.01.0False
Weekly20down1462713.3334.9728.06913.3145.8880.5650.3990.4440.3680.40.3480.5342.3895.1894.06531.1116.00.272False
Weekly20down2422414.6341.98122.64613.3145.8880.5240.3990.4880.3680.4390.3480.0392.3892.2274.06524.396.00.171False
Weekly20down3442216.6675.91632.47913.3145.8880.5240.3990.4290.3680.4290.3481.12.3893.4174.06514.2866.00.429False
Weekly20down4391916.2164.16729.95613.3145.8880.5140.3990.4320.3680.3780.3483.4852.3895.5824.06510.8116.50.535False
Weekly20down5351817.6474.53832.12813.3145.8880.4120.3990.2940.3680.2940.3484.6672.3898.0364.06514.7065.00.667False
Weekly20up1512833.33320.63349.02332.38122.9340.6270.6010.7060.6320.7140.6523.0342.3894.1564.06525.495.00.741False
Weekly20up2572836.84224.22352.96832.38122.9340.6670.6010.6670.6320.6550.6523.012.3892.7814.06517.5449.00.871False
Weekly20up3542733.33318.00446.85732.38122.9340.7410.6010.6850.6320.6480.6523.0132.3893.8224.0659.25911.00.493False
Weekly20up4462434.78319.7550.39232.38122.9340.7390.6010.6740.6320.6740.6522.2782.3893.8224.0652.17411.00.284False
Weekly20up5562526.78612.06639.01832.38122.9340.6070.6010.5710.6320.5710.6520.7652.3892.3414.0651.7869.00.727False

Rules and parameters

Rules

  1. Signal: distance = (close − SMA)/SMA × 100, SMA includes the signal candle; first candle at or beyond ±T% (T = 1…5) after a candle inside the threshold; SMA 10 or 20 of the same timeframe; completed candles only.
  2. Repeats only after the distance has been back inside the threshold; nested thresholds are counted separately; confidence intervals use non-overlapping signals per horizon.
  3. Sustained trend: net move ≥ 3% / 4% / 6% (daily / weekly / monthly) over a 20 / 10 / 6-candle window, ≥70% of forward closes beyond the signal close, no close on the wrong side of the signal-time SMA.
  4. Alternatives: loose, strict, half and double windows. Context: onset, confirmation, mixed; overextended = at or above the expanding 90th percentile of |distance|.
  5. Executable view: entry at the next open (2013+), exit at the close of candle t+h or the open after a close back across the SMA, 0.10% round-trip cost.

Parameters

data
Nifty 50 spot; NSE official 2013-01-01+, Yahoo ^NSEI 2007-09-17 to 2012-12-31
candles
4,687 daily, 997 weekly, 229 monthly (completed only)
horizons
1, 3, 5, 10, 20 candles
baseline
all candles, and all candles already on the signal side of the SMA
statistics
Wilson and bootstrap 95% intervals; exact binomial test; Benjamini-Hochberg 10%
specification
research/smatrend/STUDY_SMATREND.md (fixed before the first signal was counted)
report
docs/nifty-sma-trend-study.html

Instrument

Descriptive study of the index; executable view = next-open entry, 0.10% round-trip cost · capital ₹0

Known limitations

Logs and raw data

Downloads appear once a data window is loaded.

Files are plain CSV so results can be re-computed independently. Trade dates are IST sessions; returns are net of modelled costs and slippage.