OPEN-SOURCE SCRIPT
CAN SLIM Market Direction Monitor (India)

How to use it
Open TradingView โ load NSE:NIFTY on Daily timeframe.
Pine Editor (bottom panel) โ paste contents โ Save โ Add to chart.
Cross-check on BSE:SENSEX and your sectoral indices.
What it computes
Distribution Days โ full (โฅ0.2% down on rising vol) and stalling (0.5x weight). Auto-expires after 25 sessions or on a 5% rally from the DD's intraday low.
Follow-Through Day โ Day 4โ13 of a rally attempt with โฅ1.5% gain on rising volume.
Phase โ Green / Yellow / Red driven by DD count and price-vs-MA structure (the framework's logic, not just one trigger).
Weinstein Stage โ 1โ4 from the 30-week SMA and its slope.
Dashboard โ phase, DD count, % vs 50/200 DMA, drawdown from 60-day high, MA structure, stage, rally-day counter, and posture text.
Alerts โ DD, stalling, FTD, and zone transitions.
Caveats to keep in mind
DD logic requires volume. Some sectoral indices on TradingView lack volume โ the script flags this on-chart. Use NSE:NIFTY as the primary tape.
Breadth metrics (% of Nifty 500 above 50/200-DMA) and FII/DII flows aren't in Pine's data โ those still need to be brought in manually per the project's output protocol.
FTD detection is mechanical; always confirm the rally context (genuine correction preceding it) before treating the signal as actionable.
Open TradingView โ load NSE:NIFTY on Daily timeframe.
Pine Editor (bottom panel) โ paste contents โ Save โ Add to chart.
Cross-check on BSE:SENSEX and your sectoral indices.
What it computes
Distribution Days โ full (โฅ0.2% down on rising vol) and stalling (0.5x weight). Auto-expires after 25 sessions or on a 5% rally from the DD's intraday low.
Follow-Through Day โ Day 4โ13 of a rally attempt with โฅ1.5% gain on rising volume.
Phase โ Green / Yellow / Red driven by DD count and price-vs-MA structure (the framework's logic, not just one trigger).
Weinstein Stage โ 1โ4 from the 30-week SMA and its slope.
Dashboard โ phase, DD count, % vs 50/200 DMA, drawdown from 60-day high, MA structure, stage, rally-day counter, and posture text.
Alerts โ DD, stalling, FTD, and zone transitions.
Caveats to keep in mind
DD logic requires volume. Some sectoral indices on TradingView lack volume โ the script flags this on-chart. Use NSE:NIFTY as the primary tape.
Breadth metrics (% of Nifty 500 above 50/200-DMA) and FII/DII flows aren't in Pine's data โ those still need to be brought in manually per the project's output protocol.
FTD detection is mechanical; always confirm the rally context (genuine correction preceding it) before treating the signal as actionable.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.