OPEN-SOURCE SCRIPT

Range Trading Entry Signals (Trend Considered)

644
# Range Market Entry Signal Indicator Guide

## Overview
This indicator is a custom TradingView indicator designed to identify effective entry points in range-bound (sideways) markets. It primarily uses RSI (Relative Strength Index) and visually displays range upper and lower bounds to provide counter-trend trading opportunities.

## Key Features

### 1. Range Identification Function
- **Range Upper/Lower Lines**: Automatically identifies ranges based on the highest and lowest values over a specified period (default 50 periods)
- **70% Line Display**: Shows positions at 30% from the top and bottom of the range, providing more precise entry points

### 2. RSI-Based Signal Generation
- **Buy Signal**: Triggered when RSI reverses after falling below the oversold line (default 30)
- **Sell Signal**: Triggered when RSI reverses after rising above the overbought line (default 80)

### 3. Moving Average Filter (Optional)
- Uses 20-period simple moving average as an auxiliary indicator
- Filtering function that considers trend direction

### 4. Information Display Table
- Current RSI value
- Range upper and lower bound values
- Moving average value
- Supports real-time market condition assessment

## Configuration Parameters

| Parameter | Default Value | Description |
|-----------|---------------|-------------|
| RSI Period | 14 | Period used for RSI calculation |
| RSI Oversold Line | 30 | Threshold for buy signals |
| RSI Overbought Line | 80 | Threshold for sell signals |
| Moving Average Period | 20 | Period for auxiliary moving average |
| Range Detection Period | 50 | Period for calculating range upper/lower bounds |
| Use Moving Average Filter | True | Enable/disable moving average filter |

## Entry Strategies and Usage Examples

### Basic Entry Methods

#### 🟢 Buy Entry
**Conditions**:
- RSI recovers above 31 after falling below 30
- (Optional) Current price is above the 20-period moving average

**Example**:
```
1. Price moves near the range lower bound
2. RSI drops to 28
3. Next candle shows RSI rising to 32 → Buy signal generated
4. Enter near the range lower 70% line
```

#### 🔴 Sell Entry
**Conditions**:
- RSI falls below 79 after rising above 80
- (Optional) Current price is below the 20-period moving average

**Example**:
```
1. Price moves near the range upper bound
2. RSI rises to 82
3. Next candle shows RSI falling to 78 → Sell signal generated
4. Enter near the range upper 70% line
```

### Profit-Taking Strategies

#### Pattern 1: Take Profit at Opposite Range Side
- **Long Positions**: Take profit at range upper bound or upper 70% line
- **Short Positions**: Take profit at range lower bound or lower 70% line

#### Pattern 2: Take Profit on RSI Reversal
- **Long Positions**: When RSI reaches 70-80 levels
- **Short Positions**: When RSI reaches 20-30 levels

#### Pattern 3: Take Profit on Moving Average Cross
- Partial profit-taking when price crosses the moving average in the opposite direction

### Risk Management

#### Stop Loss Placement
- **Long Positions**: Clear break below the range lower bound
- **Short Positions**: Clear break above the range upper bound

#### Position Size Adjustment
- Adjust position size according to range height (upper bound - lower bound)
- Larger positions for narrow ranges, smaller positions for wide ranges

## Optimal Market Conditions

### Suitable Markets
✅ **Range-bound (sideways) markets**
✅ **Markets with moderate volatility**
✅ **Markets with clear support and resistance levels**

### Markets to Avoid
❌ **Strong trending markets**
❌ **Extremely low volatility markets**
❌ **Before and after major economic announcements**

## Practical Usage Tips

### 1. Timeframe Selection
- **Day Trading**: 5-minute to 1-hour charts
- **Swing Trading**: 4-hour to daily charts

### 2. Combination with Other Indicators
- **Bollinger Bands**: Confirm range validity
- **MACD**: Assess trend strength
- **Volume**: Improve signal reliability

### 3. Important Considerations
- Don't rely on a single indicator; use multiple confirmation factors
- Adjust parameters according to changing market conditions
- Backtest historical performance before applying to live trading

## Summary
This indicator is a specialized tool for counter-trend strategies in range-bound markets. By combining RSI reversal signals with range lines, it can help identify efficient entry points. However, the key to success lies in correctly assessing market conditions and using appropriate risk management techniques in conjunction with the indicator.

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.