OPEN-SOURCE SCRIPT

A1 Value Turn Triple Mode v2.3 (Swing + Crypto)

371
# A1 Value Turn Triple Mode v2.3 — Swing + Crypto

## Overview

The A1 Value Turn is a multi-layer confluence indicator designed to identify high-probability mean reversion entries on quality stocks and crypto assets that have pulled back significantly from their 52-week highs. It combines value band detection, moving average proximity, RSI momentum, volume confirmation, sector rotation, and IV rank filtering into a single signal system with a built-in 3-leg exit ladder.

Built for swing traders and options traders targeting 60–90 DTE calls or verticals on A-grade companies trading at a discount.

---

## How It Works

### 4-Layer Signal Gate
A full signal only fires when ALL four conditions align:

1. **Value Band** — Price is 40–60% (or 60–80% in Deep mode) below its 52-week high
2. **MA Proximity** — Price is within a configurable % of the 200-period SMA
3. **RSI Turn** — RSI is within the mode-specific range AND curling upward from the prior bar
4. **Volume Surge** — Current volume is at least 1.3x the 20-day average

Plus two optional confirmation layers:
- **Sector ETF confirmation** — The selected sector ETF RSI is also curling up and price is above its 50 MA
- **IV Rank filter** — Historical volatility rank is below your threshold, ensuring you are not overpaying for options premium

---

## Three Modes

| Mode | Value Band | RSI Range | Vol Mult | Target 1 |
|---|---|---|---|---|
| 40–60% off High (Swing) | 40–60% below 52W high | 40–70 | 1.3x | +20% |
| 60–80% off High (Deep) | 60–80% below 52W high | 35–70 | 1.3x | +35% |
| Crypto-Linked | Any | 25–75 | 1.1x | +50% |

---

## 3-Leg Exit Ladder

Every signal automatically calculates three exit targets with live R:R ratios:

- **Target 1** — Mode-specific % gain from entry (scale out 1/3)
- **Target 2** — 2x Target 1 (scale out 1/3)
- **Target 3** — The actual 52-week high (full recovery, scale out final 1/3)

Each target plots as a dashed horizontal line anchored to the signal bar. The ATR-based stop loss plots simultaneously so you know your risk before you enter.

---

## Signal States on the Chart

| Shape | Color | Meaning |
|---|---|---|
| Large triangle below bar | Mode color (aqua/orange/purple) | All layers confirmed — entry signal |
| Small triangle below bar | Faded orange | Stock + sector ready, IV rank too high — wait |
| Small triangle below bar | Faded gray | Stock + IV ready, sector not confirmed — wait |
| Gold circle above bar | Yellow | Bullish RSI divergence confluence bonus |
| Bar background tint | Mode color | Full signal bar highlight |

---

## Signal Label

Each confirmed signal prints a label showing:
- Entry price
- Target 1, 2, and 3 with % gain and R:R ratio per leg
- ATR stop loss price
- HV Rank % and current VIX reading
- Sector ETF RSI
- % off 52-week high, RSI, and volume ratio

---

## IV Rank Filter (New in v2.3)

Since TradingView does not provide live options IV data in Pine Script, this indicator uses Historical Volatility Rank — the annualized standard deviation of daily log returns measured against its own 52-week high and low range. HV Rank and IV move together closely enough that HV Rank is the standard professional proxy used in Pine-based systems.

A separate VIX macro threshold adds a second layer — if the market fear index is above your set level, signals are suppressed regardless of individual stock HV.

When IV is too high, a pending orange triangle fires with a label showing exactly what threshold to wait for.

---

## Inputs

### Core Settings
- Lookback for 52W High (bars)
- Long MA Length
- RSI Length
- Max % Distance from MA
- Mode selection

### Display
- Show/hide table, labels, stop line, Target 2, Target 3
- ATR Length and Multiplier for stop calculation

### IV Rank Filter
- Enable/disable IV filter
- Max HV Rank % (default 50)
- Enable/disable VIX threshold
- Max VIX level (default 25)

### Sector Rotation
- Enable/disable sector confirmation
- Sector ETF ticker (XLK, XLV, XLF, XLY, etc.)
- Sector ETF MA length

---

## Alerts

Four alert conditions built in:
1. **Full Signal** — All layers confirmed, ready to enter
2. **Pending IV** — Stock and sector ready, waiting for IV to cool
3. **Pending Sector** — Stock and IV ready, waiting for sector confirmation
4. **Max Confluence** — Full signal AND bullish RSI divergence

---

## Recommended Use

1. Run a Finviz scan each morning filtering for large caps 40–80% off their 52-week high with above-average volume
2. Open each candidate in TradingView with this indicator applied
3. Set your sector ETF to match the stock's sector
4. Wait for a full signal (large colored triangle)
5. Use the label to size your 60–90 DTE options position using the printed R:R ratios
6. Scale out 1/3 at each target

Best results on daily timeframe. Works on weekly for longer-horizon setups.

---

## Notes

- This indicator is for educational and informational purposes
- Past signals do not guarantee future results
- Always use proper position sizing and risk management
- HV Rank is a proxy for IV, not actual options implied volatility

---

*Built by MOR Trading Systems*

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.