OPEN-SOURCE SCRIPT

Scalping Strategy RSI & ADX

### Description: Scalping Strategy Using RSI & ADX

This Pine Script implements a scalping strategy that leverages the Relative Strength Index (RSI) and the Average Directional Index (ADX) to identify short-term trading opportunities. The strategy is designed for traders who aim to profit from quick price movements in highly volatile markets.

#### Key Components:

1. **RSI (Relative Strength Index):**
- RSI is used to identify overbought and oversold conditions in the market.
- If RSI is below the oversold level (default: 30), the script generates a buy signal.
- If RSI is above the overbought level (default: 70), the script generates a sell signal.

2. **ADX (Average Directional Index):**
- ADX measures the strength of a trend.
- The script only triggers buy or sell signals when ADX is above a specified threshold (default: 25), ensuring trades occur only in strong trending markets.

3. **Combined Logic:**
- A buy condition is met when RSI is below the oversold level and ADX indicates a strong trend.
- A sell condition is met when RSI is above the overbought level and ADX indicates a strong trend.

#### Inputs:

- `RSI Length`: Period for RSI calculation (default: 14).
- `RSI Overbought Level`: Threshold for overbought conditions (default: 70).
- `RSI Oversold Level`: Threshold for oversold conditions (default: 30).
- `ADX Length`: Period for ADX calculation (default: 14).
- `ADX Smoothing`: Smoothing factor for ADX (default: 14).
- `ADX Threshold`: Minimum value for ADX to consider a trend strong (default: 25).

#### Visual Signals:

- Green upward arrows indicate buy signals.
- Red downward arrows indicate sell signals.

#### Strategy Execution:

- The script uses `strategy.entry` to open positions based on the defined conditions.
- It plots RSI and ADX values for additional visual confirmation.

#### How to Use:

1. Apply this script to your TradingView chart.
2. Adjust the input parameters to suit your preferred market and timeframe.
3. Backtest the strategy on historical data to assess its performance.
4. Use in live markets with appropriate risk management measures.

This strategy is ideal for traders who prefer a systematic and rule-based approach to scalping. However, always test and validate the strategy before using it with real funds.

Average Directional Index (ADX)Relative Strength Index (RSI)

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité