OPEN-SOURCE SCRIPT

Vishnu's Magics

**Vishnu's Magics** is a powerful RSI (Relative Strength Index) indicator designed to enhance trading strategies through effective divergence detection and alerting features. This indicator provides the following key functionalities:

1. **RSI Calculation**: Calculates the RSI over a customizable length, allowing traders to identify overbought and oversold conditions.

2. **Customizable Bands**: Users can set multiple upper and lower bands to define different overbought and oversold levels, facilitating precise trading decisions.

3. **Divergence Detection**: The indicator identifies both bullish and bearish divergences by comparing price action with RSI movements. It highlights these divergences on the chart, helping traders anticipate potential reversals.

4. **Visual Alerts**: When divergences are detected, the indicator visually marks the points on the chart with labeled shapes ("Bull" for bullish divergence and "Bear" for bearish divergence) and changes the background color to indicate the condition.

5. **Alert System**: Users can set alerts for significant events, such as crossing specified bands or detecting divergences, ensuring timely notifications for trading opportunities.

6. **Custom Line Values**: Traders can edit the values for the divergence lines, providing flexibility to tailor the indicator according to their trading strategies.

Overall, **Vishnu's Magics** serves as an intuitive tool for traders looking to leverage RSI analysis and divergence strategies for informed trading decisions.
Chart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer