OPEN-SOURCE SCRIPT
Current State: Overbought/Oversold + Trend KAPIL GOYAL

This Pine Script calculates the RSI (Relative Strength Index) and compares it against preset thresholds to classify the market as Deep/Moderate/Mild Oversold or Deep/Moderate/Mild Overbought. It also checks whether the current price is above or below the 50-day moving average to define the trend as Uptrend or Downtrend. The script then combines both signals into one clean, real-time text output—like “Moderate Oversold + Uptrend”—displayed in a small table at the chart corner. It’s designed to give a quick, clutter-free snapshot of the current market state without plotting multiple indicators.
How to use:
Apply this indicator to any chart (e.g., Tesla on TradingView). It will show one line of text describing the current condition based on RSI and trend. Use it for quick decision cues:
“Oversold + Uptrend” suggests potential accumulation or rebound zones.
“Overbought + Downtrend” warns of exhaustion or profit-taking zones.
Combine it with your entry/exit strategy—like your 30DMA/50DMA rule or momentum filters—to confirm timing rather than act alone.
How to use:
Apply this indicator to any chart (e.g., Tesla on TradingView). It will show one line of text describing the current condition based on RSI and trend. Use it for quick decision cues:
“Oversold + Uptrend” suggests potential accumulation or rebound zones.
“Overbought + Downtrend” warns of exhaustion or profit-taking zones.
Combine it with your entry/exit strategy—like your 30DMA/50DMA rule or momentum filters—to confirm timing rather than act alone.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.