OPEN-SOURCE SCRIPT

Prop Algo

283
Prop Algo — MTF Trend + Signals + SMC Toolkit

**What it is**
Prop Algo is a multi-tool trading assistant that blends trend following, contrarian timing, and Smart Money Concepts (SMC). It plots clean buy/sell labels, paints candles by momentum state, maps TP/SL levels automatically, shows a compact **Smart Panel** (dashboard), and draws **auto-trendlines**, **trend clouds**, and **institutional zones** (OB/BB/MB). It’s built to help discretionary traders make faster, rules-based decisions without drowning in settings.

---

Core Signals

* **Buy / Strong Buy** and **Sell / Strong Sell** labels driven by:

* **Supertrend** cross + confirmation stack (MACD slope, HMA(55) impulse, EMA150/EMA250 bias, channel direction).
* Optional **Contrarian Mode** via RSI “trend shifter” (fast/slow crossover with guardrails).
* Optional **High-Volume Filter** and **Consolidation Filter** (ADX).
* Optional **Trend Cloud Filter** (Smooth / Scalping / Scalping+ / Swing).
* **Trend Scalper preset** (5/9/21 EMA on HA-smoothed price) with color-filled momentum bands.

---

Risk & Trade Management

* **Dynamic TP/SL** visuals: entry, stop, and **TP1/TP2/TP3** auto-projections.
* **ATR or %-based trailing stop** (toggle).
* **RSI-based TP markers** (cross levels for staged exits).
* Optional **market structure swings** (HH/HL/LH/LL labels).



Dashboard

A one-glance status block showing:

* **MTF bias:** 5m, 15m, 30m, 1h, 4h (green/red tiles based on 200-EMA state).
* **Market State:** Trending / Ranging / Inactive (TVR proxy).
* **Volatility %** (ATR/StdDev normalization).
* **Institutional Activity** (volume filter).
* **Current Session** (Sydney/Tokyo/London/New York).
* **Trend Pressure** (EMA9 slope: Bullish / Bearish / Flat).

---

Smart Money Concepts

* **Automated BoS** (Break of Structure) labeling.
* **Order Blocks:** Bu-OB / Be-OB with extend-right boxes.
* **Break Blocks / Mitigation Blocks:** Bu-BB / Be-BB and Bu-MB / Be-MB.
* **Auto maintenance:** zones extend, alert when price enters, and optionally delete when invalidated.
* **Minimal ZigZag** backbone (length-driven pivots) with Fib-based confirmation logic.



Trend Cloud & Candle Heatmap

* **Trend Cloud:** Smooth / Scalping / Scalping+ / Swing; optional EMA150/EMA250 fill for higher-timeframe bias.
* **MACD heatmap candles:** multi-tier green/red/yellow body coloring based on MACD and histogram progression.



Auto Trendlines

* **Regression-style channel** from WMA/SMA blend with **±RMSE envelopes**, extended to the right for developing support/resistance rails.



Inputs

* **Signal Mode / Filters:** Trending, Contrarian, High Volume, Strong-only, and Cloud filters.
* **Sensitivity / Tuner:** Supertrend factor & length, Reversal Dot tuner.
* **Risk Management:** Use % or ATR, TP multipliers (TP1/2/3), Trailing SL toggle.
* **Market Structure:** Show swings, swing length.
* **Dashboard:** On/off, position, size.
* **Sessions:** Auto detection (Sydney/Tokyo/London/New York).

*(Default “Presets” is **All Signals**; you can still use the “Trend Scalper” subset by enabling the dedicated view inside the script.)*



Alerts

* **Normal Buy / Strong Buy**
* **Normal Sell / Strong Sell**
* **Stop-Loss Crossed**
* **Target 1 / Target 2 / Target 3 Crossed**
* **Cloud Turned Bullish / Bearish**
* **MSB (Market Structure Break)**

> Tip: set alerts on “Once Per Bar Close” for cleaner signals.


How to Use

1. **Pick a mode:** start with **Trending Signals [Mode]** + **Smooth Cloud** for swing/position, or **Scalping/Scalping+** for intraday.
2. **Confirm bias:** glance at the **MTF tiles** and **Trend Pressure**. Trade in alignment or deliberately fade (Contrarian Mode) with tight risk.
3. **Plan risk:** use the auto **Entry/SL/TP** lines; enable **Trailing SL** if you prefer dynamic exits.
4. **Watch zones:** when price enters **OB/BB/MB** boxes, expect reactions; combine with signal labels for confluence.
5. **Respect structure:** BoS prints are context—don’t fight fresh structure without a plan.



Best Practices

* Works on **crypto, indices, FX, commodities, stocks**.
* Timeframes: from **5m** up to **4H/1D**. Lower TFs benefit from Cloud filters or Strong-only mode.
* Avoid over-stacking filters at first; add filters only if you need fewer, higher-quality signals.



Notes & Limits

* This is **not** a standalone “autopilot.” It’s a **decision support** system.
* Past performance ≠ future results. Always test on **replay** and **paper** first.
* No financial advice. Manage risk like a professional.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.