OPEN-SOURCE SCRIPT
Güncellendi

Prism

376
Prism : Integrated Trend Flow & Structural Risk Engine**

**Prism ** is a high-precision trend-following system designed to filter market noise and provide institutional-grade trade management. By combining **Guppy Multiple Moving Average (GMMA)** logic with **Dynamic Structural Walls** and an **Automated Entry Advice Engine**, it offers a comprehensive solution for traders who prioritize confluence over guesswork.

### **Core Logic: The Triple-Filter Approach**
Prism PRO doesn't just look at price; it analyzes the "fabric" of the market through three distinct layers:

1. **The Ribbon Stack (Sentiment & Flow):** Utilizing 12 EMA layers, the script identifies when short-term sentiment (the fast group) is perfectly aligned with long-term capital flow (the slow group). Signals only fire when the trend is "stacked" and healthy.
2. **Momentum Confirmation:** A built-in RSI filter ensures that signals are only triggered when momentum is on your side (RSI > 50$ for Longs, RSI < 50$ for Shorts), preventing "drift" entries in low-volatility environments.
3. **Structural Wall Confluence:** This is the heart of the system. The script identifies the nearest **Auto-Fibonacci level** and compares it with the **EMA 12**. It selects the strongest level to create a "Structural Wall," which serves as the basis for the **Advised Stop Loss**.

### **Key Features**
* **Dynamic Entry Advice Engine:** The dashboard provides real-time feedback. It labels entries as **IDEAL**, **LATE**, or **OVEREXTENDED** based on the price's deviation from the EMA 12 and the live Reward-to-Risk (R/R) ratio.
* **Frozen State Persistence:** Unlike standard indicators that reset when a trend breaks, Prism PRO "freezes" your trade data (Entry, Stop, Target). If the ribbon stack breaks while you are in a trade, the dashboard keeps showing your last valid levels (marked with an `*`) so you can monitor your exit.
* **Ratchet Trailing Stop:** An ATR-based trailing stop that only moves in a favorable direction, protecting your capital as the trade progresses.
* **Fibo-Compression Alerts:** The dashboard monitors the distance between the current price and major Fibonacci levels. If the price is too close to a major level, it triggers a **⚠️ Warning**, alerting you to potential reversal zones or "compression" before a breakout.

### **The Dashboard Breakdown**
* **System Mode:** Instant visual of current trend bias.
* **Risk Metrics:** Live ATR volatility and percentage-based risk/reward calculations.
* **Final Call:** A "Engine Status" indicator showing the strength of the current flow.
* **Entry Advice:** Direct instructions (e.g., "Wait Pullback" or "Monitor Open Position").

### **How to Use**
1. **The Setup:** Look for a **BUY** or **SELL** label.
2. **The Filter:** Check the **Entry Advice**. If it says "OVEREXTENDED," wait for a pullback to the ribbon.
3. **Risk Management:** Use the **Advised Stop** or the **Trailing Stop** provided on the dashboard to manage your exit.
4. **Targeting:** The script plots a 1:2 R/R target by default, which is automatically cross-referenced with the nearest Fibonacci level for higher probability.

---
Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial or investment advice. Trading financial markets involves significant risk of loss. Past performance is not indicative of future results. Always perform your own due diligence and consult with a professional financial advisor before making any investment decisions. The author assumes no responsibility for any financial losses incurred through the use of this script.


Sürüm Notları
1. Unified Exit Logic (Binary System)
We removed the chaotic cluster of specific exit labels (Target, Trail Stop, Initial Stop) and replaced them with a strict, minimalist binary system: BUY and SELL.

2. Invisible Triggers
The "SELL" label now acts as a universal exit command. It triggers automatically under any of the following conditions:

Price hits the target (Profit Taken).

Price hits the trailing stop (Profit Taken).

Price hits the initial stop (Loss Cut).

The Guppy EMA trend structure completely breaks before hitting any levels (Early Exit).

3. Dynamic Alerts for Bots & Notifications
While the chart remains perfectly clean with just BUY/SELL labels, the backend alert() system handles the complex data. It sends the exact exit reason and the precise execution price directly to your TradingView notifications or your connected trading bot (e.g., "Prism: SELL! Reason: Trailing Stop Hit. Price: 245.5").

4. User Interface Control
All static horizontal lines (stops/targets) are now subdued "ghost lines" so they don't block the price action. Furthermore, a "Visual Settings" menu was added, allowing you to independently toggle the visibility of the BUY and SELL labels on the chart.

The system is now highly optimized for both visual manual analysis and automated bot integration.
Sürüm Notları
**Release Note: Version 2.0 - Fully Custom Ribbon & Structural Fix**

This update brings significant improvements to the flexibility and structural integrity of the Prism indicator.

**What's New & Fixed:**

* **🛠️ Structural Logic Fix:** Addressed an anomaly in the Long EMA Ribbon where the "Long EMA 3 (Base)" defaulted to a lower value (25) than its preceding EMAs, causing a visual and mathematical "knot" in the trend flow. It has been corrected to a default of 40, ensuring a smooth, sequential trend progression (30, 35, 40, 45, 50, 60).
* **⚙️ Fully Customizable EMA Ribbon:** The EMA periods are no longer hardcoded! You now have total control over the engine. All 12 EMA lengths (6 Short-term, 6 Long-term) can be fully customized directly from the indicator settings to fit your specific trading style, asset volatility, or custom sequences (like Fibonacci).
* **🗂️ Improved Settings UI:** The input menu has been reorganized into clean "Short EMAs" and "Long EMAs" groups, making it much easier to tweak your ribbon structure without clutter.

The core momentum logic, structural wall analysis, and dynamic risk management systems remain unchanged and fully operational.
Sürüm Notları
Adjusted to use sma 5 8 13
Sürüm Notları
changed SMA EMA colors for visibility
Sürüm Notları
Adjusted colors to be unique
Sürüm Notları
added fib 0.886 and neg fibo lvls

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.