PROTECTED SOURCE SCRIPT
Mis à jour

Reddington Trading Bot Adaptive Signals

171
# Reddington Trading Bot Adaptive Signals — mashup disclosure & user guide

## What it is

**Reddington Trading Bot Adaptive Signals** is a **manual trading** overlay that aggregates multiple entry logics (Supertrend, Bollinger, MACD, Counter-Trend, Scalp) behind a single, adaptive filter stack (EMA trend, ADX strength, ATR regime, volume, RSI band, sessions, candle confirmation).
When a setup passes all gates, the script **marks the bar** with a label (e.g., `ST Long ####`) and plots **Entry / SL / TP / Half-TP** reference lines for discretionary execution.

> This is an **indicator**, not an autostrategy. It does not place orders or manage positions.

---

## Mashup disclosure — what’s combined and why

This script is a **mashup** designed to reduce false positives by requiring **confluence** across trend, momentum, volatility, and liquidity:

* **Trend filter (EMAs)** — `ema_short > ema_long` for longs and vice versa for shorts.
*Why:* prevents fighting the dominant direction.
* **Supertrend direction** — uses `ta.supertrend()` to pick continuation states.
*Why:* captures impulse while controlling whipsaw.
* **Bollinger context** — upper/lower band interaction for breakout/overshoot logic.
*Why:* detects expansion and extreme deviations.
* **MACD cross (12/26/9)** — confirms momentum turns with `ta.macd`.
*Why:* times transitions into continuation.
* **RSI band** — between configurable overbought/oversold levels.
*Why:* avoids chasing exhaustion.
* **ADX strength (manual DI+/DI− → DX → RMA)** — trend quality gate.
*Why:* filters out chop when trend quality is weak.
* **ATR regime window** — ATR between low/high multiples of its baseline.
*Why:* trades when volatility is “tradable”, not too thin or too wild.
* **Volume filter** — volume ≥ SMA(volume, N).
*Why:* favors liquid conditions and cleaner ticks.
* **Session gate (Asia/EU/US)** — run only in chosen UTC windows.
*Why:* aligns with hours of depth, fewer fake breaks.
* **Candle confirmation** — simple **bar-over-bar**/**bar-under-bar** check.
*Why:* a last safety check to avoid immediate reversals.

The **strength** of the mashup is that each module covers a blind spot of the others, so a signal only prints when *trend + momentum + volatility + liquidity* line up.

---

## Non-repaint & timing notes

* The script **does not** use `request.security()`; all logic is computed on the active chart TF with standard Pine series semantics.
* Conditions can evolve **intra-bar**. For conservative usage, **confirm on bar close** before executing.
* Plotted levels (Entry/SL/TP/Half-TP) are reference guides; fills depend on your execution and venue slippage.

---

## Inputs (concise)

* **Supertrend multiplier**; **ADX threshold**; ATR low/high multiples; **RSI overbought/oversold**.
* **Sessions**: enable/disable Asia, Europe, America (UTC).
* Internal periods are **auto-scaled** from a 300-sec base via `timeframe.in_seconds()`, adapting the signal windows to your chart TF.

---

## Entry families (built-in)

* **ST (Supertrend continuation)**
Long: ST up + EMA short>long + below BB upper + ADX>th + volume/ATR/RSI ok + candle confirm + session.
Short: symmetric.
* **BB (Bollinger context)**
Long: close > BB upper + quality gates; Short: close < BB lower + quality gates.
* **MACD (momentum cross)**
Cross up/down with quality gates and candle confirm.
* **CT (Counter-trend poke)**
Long: close < BB lower with distance to middle > 1% and RSI<50; Short: mirror.
*Use sparingly; relies on strong quality gates to avoid catching knives.*
* **SC (Scalp EMA5/EMA10 cross)**
With mid-RSI, ADX>20, and all quality gates.

**Position state** is tracked internally (series vars) so that once in a trade, the script monitors **SL**, **Half-TP**, and **TP** hits and prints corresponding labels.

---

## On-chart visuals

* **Entry/SL/TP/Half-TP** lines (cross style), visible **only while a position is tracked**.
* **Bar labels** on entry (`<logic> Long/Short ####`), on SL/TP/Half events.
* A small **session/ticker/TF tag** on the last bar.

---

## How to trade it (suggested checklist)

1. **Wait for the label** (e.g., `ST Long …`) and check that all quality filters are green (they are enforced inside the code).
2. Execute **at your discretion** (market/limit); the script’s **Entry** level is the reference (close or your own limit).
3. Place **SL/TP** according to the printed levels; optionally scale at **Half-TP**.
4. Prefer **bar-close confirmation** on faster TFs to reduce intra-bar noise.
5. Respect your own risk rules (position sizing, max daily loss, news filter).

---

## Recommended timeframes & markets

* Designed for **intraday** use (e.g., **5m–15m**) where volume and sessions matter.
* Works on crypto perpetuals/spot and liquid FX/CFD symbols; threshold tuning may be required per venue.

---

## Limitations & tips

* It’s **one** layer of confirmation; don’t force trades in flat liquidity or into major news.
* CT/Scalp entries are more sensitive to noise; if you prefer higher selectivity, raise **ADX threshold** and narrow **ATR window**.
* Because conditions can change **within a bar**, **alerts** are best set to trigger **on bar close** if you add `alertcondition()` hooks (not included in this base).

---

## Disclaimer

This script is for **educational purposes only** and does **not** constitute financial advice, investment recommendation, solicitation, or an offer to buy/sell any instrument. Trading involves risk; past results do not guarantee future performance. You are solely responsible for your trading decisions and outcomes.
Notes de version
Added a feature to enable alerts.
Position entry logic has been slightly improved.

Notes de version
What changed

Wick-based exits: TP/SL/Half-TP are now evaluated on high/low (intrabar wicks) instead of close:

tp2_hit: long → high >= tp; short → low <= tp

sl_hit: long → low <= sl; short → high >= sl

tp1_hit: long → high >= half_tp; short → low <= half_tp

BE on TP1: On the first Half-TP touch, the stop is moved to break-even (entry). A “SL → BE” label is printed.

Alerts extended: Programmatic alerts now cover TP/SL/Half-TP and explicitly notify about the SL→BE move (when alert_on_TP_SL is enabled). Entry alerts unchanged.

Labels & visuals: Added labels for TP, SL, Half-TP and the BE move; existing level plots (Entry/SL/TP/Half-TP) preserved.

Safety tweaks: Avoided variable shadowing (hour → hour_) and kept safe divisions where applicable.

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.