PROTECTED SOURCE SCRIPT
Manipulation Candle

# 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.
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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.