OPEN-SOURCE SCRIPT

UTS CORE + BOS + CHOCH – RR/TP/SL

162
📊 Indicator Working Principle

### 🔹 1. BOS (Break of Structure)

* **Definition:** Occurs when the price breaks the previous swing high or swing low level.
* **Interpretation:**

* If the last high is broken upwards → **Bullish BOS** (confirmation of uptrend).
* If the last low is broken downwards → **Bearish BOS** (confirmation of downtrend).

---

### 🔹 2. CHOCH (Change of Character)

* **Definition:** Indicates a trend reversal.
* **Interpretation:**

* In an uptrend, if the last low is broken downwards → **CHOCH↓** (start of downtrend).
* In a downtrend, if the last high is broken upwards → **CHOCH↑** (start of uptrend).
* **Chart:** Blue “CHOCH↑” labels on the chart mark trend reversals.

---

### 🔹 3. FVG (Fair Value Gap)

* **Definition:** A price gap formed between 3 candles.
* **Logic:**

* If the low of one candle stays above the high of the candle two bars back, a gap is created.
* Price tends to return to these gaps to “fill” them.
* **Chart:** The indicator highlights these gaps automatically (green/purple lines).

---

### 🔹 4. Signal Generation (BUY / SELL)

* A valid BOS or CHOCH confirmation + presence of FVG → **signal is triggered.**
* **Rules:**

* Upward break → **BUY signal**
* Downward break → **SELL signal**
* **Chart:** Red “SELL” and green “BUY” labels represent these trade signals.

---

### 🔹 5. RR – TP/SL Management

* When a trade is opened, the indicator automatically calculates **Entry, Stop Loss (SL), and Take Profits (TP1, TP2, TP3).**
* **Risk/Reward ratios:**

* TP1 = 1R
* TP2 = 2R
* TP3 = 3R
* If TP1 is hit and “Breakeven” option is enabled → SL moves to entry (risk-free trade).

---

👉 In short: this indicator tracks **market structure (BOS/CHOCH)**, detects **imbalances (FVG)**, and combines them with **risk/reward management (TP/SL)** to give you a ready-made trade


Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.