PROTECTED SOURCE SCRIPT

Manipulation Candle

39
# Manipulation Candle Indicator

This Pine Script™ indicator is designed to detect and highlight "Manipulation Candles" (MC) on the current chart and across multiple higher timeframes (3m, 5m, 10m). It also plots session high, low, and 50% levels.

## Features

### 1. Session High/Low Lines
- Plots lines for the High, Low, and Mid (50%) price levels of a user-defined trading session.
- **Inputs**: Start Time, End Time (default 09:30 - 10:30 NY time).
- Includes a background fill between the high and low lines.

### 2. Manipulation Candle (MC) Detection
Detects specific reversal patterns known as Manipulation Candles:
- **Bullish MC**: Current Low < Previous Low AND Close > Previous High.
- **Bearish MC**: Current High > Previous High AND Close < Previous Low.
- **Visuals**: Highlights the candle bar color on the chart (User-configurable colors).
- **Session Filter**: Only detects MCs within a specific "Search Session" (default 10:00 - 11:00 NY time).

### 3. Multi-Timeframe (MTF) Detection
Monitors higher timeframes for confirmed Manipulation Candles and places labels on the chart.
- **Supported Timeframes**: 3m, 5m, 10m.
- **Labels**: Places a label at the high (Bearish) or low (Bullish) of the confirmed candle.
- **Context**: Detects confirmed closed candles from the higher timeframe.

### 4. Alerts
- **Real-time Alerts**: Triggers alerts when an MC is detected on the current chart (Once per bar close).
- **Alert Conditions**: `Bullish MC Alert` and `Bearish MC Alert` available for creating specific alerts in TradingView.

## Settings

### Session Settings
- **Start Time (HHMM)**: Start of the initial balance/session range (default "0930").
- **End Time (HHMM)**: End of the initial balance/session range (default "1030").

### Visual Settings
- **Line Colors**: Customize High (Green), Low (Red), and 50% (White) lines.
- **Background Fill**: Adjust color and transparency.

### Manipulation Candle Settings
- **MC Search Session**: Time range to scan for Manipulation Candles (default "1000-1100").
- **Timeframe Toggles**: Enable/Disable detection for 3m, 5m, and 10m.
- **Colors**: Customize Bullish (Yellow) and Bearish (Purple) colors.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.