HTF Rejection Blocks (RB) + Alerts EmojiHTF Rejection Blocks (RB) + Alerts Emoji
Version amélioré
Original RB logic by yaweeh, adapted to higher timeframes
Indicadores e estratégias
Adaptive MA SuperTrendAdaptive MA SuperTrend is a new trend following tool designed for more responsive & smoother signal production from the classical SuperTrend indicator.
It works by picking two Moving Averages, that are swapped in their function between being used for the upper base or the lower base, based on the circumstances.
Then it applies either SD or ATR (based on the users preference) to the bases.
This provides smooth, fast trend signals that users can use to enhance their trading/investing strategies.
Enjoy!
Strategy Battle: Lump Sum vs. DCA vs. Dip BuyingSummary This indicator is a "Strategy Battle" simulator designed to answer the ultimate investing question: Is it better to invest immediately, Dollar Cost Average (DCA), or wait for a market crash?
Unlike standard back-testers, this script simulates a realistic "High-Yield Savings" environment. It acknowledges that cash sitting on the sidelines is not dead money—it earns interest (e.g., 3-5%) while waiting for a buying opportunity. This levels the playing field and allows for a fair comparison between being fully invested vs. keeping "dry powder" for a crash.
The script compares 4 distinct strategies simultaneously on your chart, starting with a fresh yearly budget every January 1st.
he 4 Strategies
🔵 Option 1: Lump Sum (The "Set & Forget")
Takes the entire yearly budget and invests it all on the first trading day of the year.
Pros: Maximizes "time in the market."
Cons: vulnerable to buying at immediate peaks.
🟠 Option 2: DCA (The "Steady Earner")
Splits the yearly budget into 12 equal parts.
Invests monthly regardless of price.
The "Fairness" Twist: The money waiting to be spent sits in the cash pile and accumulates interest until it is deployed.
🟢 Option 3: Regression Sniper (The "Math Hunter")
Keeps the entire budget in cash (earning interest).
Watches a dynamic Linear Regression Channel.
Trigger: If the price drops below the channel, it goes "All-In," deploying all accumulated cash and interest immediately to buy the dip.
🔴 Option 4: Manual Sniper (The "Trend Hunter")
Keeps the entire budget in cash (earning interest).
Watches a User-Defined Growth Line (e.g., a straight line growing at 10% per year).
Trigger: If the price drops below this specific valuation line, it goes "All-In."
Detailed Settings & Options
💰 Money Settings
Yearly Budget ($): The amount of fresh capital injected into the simulation every January 1st.
Cash Interest Rate (%): The annual interest rate earned on uninvested cash (compounded monthly). This is crucial for accurately simulating the "opportunity cost" of holding cash.
⚙️ Sniper Settings (Option 3)
Channel Baseline Length: How far back the math looks to determine the "fair value" curve.
Vertical Shift (%): Move the buy zone up or down. Negative numbers (e.g., -5) make the strategy more conservative, waiting for deeper crashes.
Source: Defaults to Low to catch market wicks and intraday crashes.
📈 Manual Line Settings (Option 4)
Start Price ($): The valuation of the asset at the start of the simulation (Jan 1, Start Year).
Yearly Growth (%): The expected "fair" growth rate of the asset (e.g., S&P 500 average is ~10%).
Vertical Shift (%): Slide the manual line up or down to fine-tune your buy signal.
👁️ Visual Settings
Show Buy Price: Displays the exact dollar amount invested and the stock price at the moment of the buy on the chart labels.
Show Lump Sum Markers: Adds a Blue label at the start of every year to visualize the Lump Sum entry.
Show DCA Markers: Adds small Orange labels for every monthly buy.
Ichimoku SSB 0.5% Risk Strategy v6basic strategy Ichimoku, follow trades only risking 0.5% per trade via SL.
Pure for 30min timeframe on SUI (Crypto)
Fractal Wave Hunter [JOAT]
Fractal Wave Hunter - Multi-Method Fractal Detection System
Introduction and Purpose
Fractal Wave Hunter is an open-source overlay indicator that identifies key reversal patterns using multiple fractal detection methods. The core problem this indicator solves is that different fractal methods catch different types of reversals. Williams' classic 5-bar fractal is reliable but slow; Hougaard's 4-bar method is faster but noisier. Using only one method means missing valid signals that the other would catch.
This indicator addresses that by combining both methods plus HOLP/LOHP detection, giving traders a comprehensive view of potential reversal points.
Why These Methods Work Together
Each fractal method has different characteristics:
1. 4-Bar Fractal (Hougaard Method) - Faster detection, identifies momentum shifts when close exceeds recent highs/lows. Best for catching early reversals.
2. Classic 5-Bar Fractal (Williams) - Traditional pivot detection requiring the middle bar to be the highest/lowest of 5 bars. Best for identifying significant swing points.
3. HOLP/LOHP - High of Low Period and Low of High Period signals identify when price makes a new extreme within a defined lookback. Best for trend exhaustion detection.
By combining these methods, traders can:
Use 4-bar fractals for early entry signals
Use 5-bar fractals for confirmation and stop placement
Use HOLP/LOHP for trend exhaustion warnings
How the Detection Works
4-Bar Fractal (Hougaard):
bool fractal4BuyBase = close > high and close > high
bool fractal4SellBase = close < low and close < low
Classic 5-Bar Fractal:
bool fractalHigh = high > high and high > high and high > high and high > high
bool fractalLow = low < low and low < low and low < low and low < low
Signal Types
4B (4-Bar Buy) - Close exceeds high and high - early bullish signal
4S (4-Bar Sell) - Close below low and low - early bearish signal
FH (Fractal High) - Classic 5-bar swing high - confirmed resistance
FL (Fractal Low) - Classic 5-bar swing low - confirmed support
HOLP - High of low period - potential bullish exhaustion
LOHP - Low of high period - potential bearish exhaustion
Dashboard Information
4-Bar Fractal - Count of bullish/bearish 4-bar fractals
Classic Fractal - Count of 5-bar fractal highs/lows
HOLP/LOHP - Reversal signal counts
Total Signals - Combined pattern count
How to Use This Indicator
For Counter-Trend Entries:
1. Wait for 4-bar fractal signal at key support/resistance
2. Confirm with 5-bar fractal forming nearby
3. Enter with stop beyond the fractal point
For Stop Placement:
1. Use 5-bar fractal highs/lows as stop-loss references
2. These represent confirmed swing points that should hold if trend continues
For Trend Analysis:
1. Track swing structure using fractal highs and lows
2. Higher fractal lows = uptrend structure
3. Lower fractal highs = downtrend structure
Input Parameters
Show 4-Bar Fractals (true) - Toggle Hougaard method signals
Show Classic Fractals (true) - Toggle Williams method signals
Show HOLP/LOHP (true) - Toggle exhaustion signals
ATR Filter (false) - Only show signals during volatile conditions
Swing Lines (true) - Connect significant swing points
Timeframe Recommendations
1H-Daily: Best for reliable fractal detection
15m-30m: More signals but higher noise
Weekly: Fewer but more significant fractals
Limitations
5-bar fractals have inherent 2-bar lag (need confirmation)
4-bar fractals can produce false signals in choppy markets
HOLP/LOHP signals work best at trend extremes
Not all fractals lead to significant reversals
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes.
This indicator does not constitute financial advice. Fractal detection does not guarantee reversals. Always use proper risk management.
- Made with passion by officialjackofalltrades
Vol Compression PRO
## Volatility Compression PRO (Fully Fixed)
This indicator is an **options-theory-inspired “volatility compression → expansion” detector**, enhanced for **crypto trading on 4H/1D**. It is designed as a **two-stage system**:
1. **Environment / Setup (1D)**: Detects a volatility-compressed regime where a breakout is more likely.
2. **Trigger (current chart TF, recommended 4H)**: Confirms the breakout using price structure + volatility expansion + (optional) volume.
A major feature of this script is that it **avoids TradingView’s 5000-bar historical limitation** by recommending a **Daily HV (1D) computation mode**, which is stable and not constrained by intraday bar counts.
---
## Core Concept
### Stage A — “Setup” (Daily Environment Filter)
On the **daily timeframe**, the script estimates realized volatility (HV) and produces an **Environment Score (0–100)** that reflects how “compressed” volatility is versus its own history.
A **Setup window** becomes active when:
* `Environment Score >= Setup Threshold`
* Optional “persistence” can keep Setup active for N days after triggering (to avoid edge flicker).
It also calculates a **daily directional bias** (Bull/Bear) using one of two methods:
* **Price vs Daily EMA** (default): bias is bullish if daily close > daily EMA, bearish if below.
* **MACD > 0**: bias is bullish if daily MACD line > 0, bearish if < 0.
This stage answers:
**“Are we in a volatility-compressed regime worth watching, and what is the higher-timeframe bias?”**
---
## HV / Compression Scoring Model
The script computes:
* **Short-term HV**: standard deviation of log returns over a short window
* **Long-term HV**: standard deviation of log returns over a long window
* **HV Percentile**: percentile rank of short HV over a historical lookback
* **Compression Ratio (S/L)**: short HV divided by long HV (`<1` implies compression, `>1` implies expansion)
* **Log-Z Deviation**: Z-score of log(HV) vs its historical distribution (more stable than raw HV Z-score)
Then it builds a **0–100 score** using weighted components:
* Low HV percentile (lower = more compressed)
* Compression ratio below 1 (more compression)
* Negative log-Z deviation (HV below typical)
This produces a single number: **“Explosion Potential (Environment Score)”**.
---
## Stage B — Trigger Logic (Current Chart Timeframe, recommended 4H)
A **Long Trigger** fires only when **all** of the following are true:
1. **Setup is active** (from daily environment score)
2. **Daily bias is bullish**
3. **Donchian breakout UP**
* Close breaks above the **previous bar’s** highest high of the last N bars
* Uses ` ` to avoid same-bar repaint-style lookback issues
4. **Volatility expansion confirmation**, via either:
* **Bollinger Band Width rising** (BBW turns up and exceeds its mean), and/or
* **ATR% rising** (ATR as % of price increases)
5. **Optional volume confirmation**:
* Volume > SMA(volume) × multiplier (if enabled)
A **Short Trigger** mirrors the long logic (requires bearish bias + downside Donchian break), and can be toggled on/off.
This stage answers:
**“Did price actually escape the compression box, and is volatility expanding with it?”**
---
## Two HV Calculation Modes (5000-bar limitation fix)
### 1) **Daily HV (Recommended)**
* Computes HV + Score + Setup on the **daily timeframe using `request.security(...,"D",...)`**
* This avoids intraday needing thousands of bars to represent many days
* Much more stable and reliable for regime detection
### 2) **Adaptive to Chart TF**
* Computes HV on the **current chart timeframe**
* Includes a strict conversion of “days → bars” and clamps lengths to **<= 4800 bars** to avoid the 5000-bar ceiling
* Still less robust on small timeframes, but won’t crash the script
---
## Visualization
* Plots the **Environment Score** as the main line (colored by score level)
* Draws reference lines at 70 / 50 / 30
* Highlights the background when **Setup** is active
* Optional trigger markers:
* **“L”** for long trigger (triangle up)
* **“S”** for short trigger (triangle down)
* A top-right info panel shows:
* HV short/long, HV percentile, compression ratio, log-Z deviation
* Environment score, Setup active status, daily bias
* Breakout status, expansion confirmation, volume confirmation
* Current mode (“1D fixed” vs “Adaptive”)
---
## Alerts
Built-in alert conditions:
* Setup active (compression window)
* Long Trigger
* Short Trigger
---
## Intended Use (Practical)
* Use **1D** to judge whether volatility is compressed and define bias
* Use **4H** to wait for a clean breakout plus expansion confirmation
* Avoid forcing entries during compression without a real breakout (“don’t catch falling knives” logic)
varenleongv1🔑 Core Features
1️⃣ Higher Timeframe Trend Bias
The indicator uses a higher-timeframe EMA to define the overall market direction.
This helps filter out lower-timeframe noise and keeps trades aligned with the bigger picture.
2️⃣ Local Trend Confirmation
Two EMAs (Fast & Mid) with slope analysis confirm short-term momentum.
Trades are only considered when price structure and momentum agree with the higher-timeframe bias.
3️⃣ Market Structure Detection
The indicator automatically identifies:
Higher Highs & Higher Lows (uptrend)
Lower Highs & Lower Lows (downtrend)
This structure-based logic avoids lag and provides realistic trend confirmation instead of reacting to every candle.
4️⃣ Automatic Trendline Drawing
Confirmed swing highs and lows are used to draw:
Rising support lines in uptrends
Falling resistance lines in downtrends
Trendlines are based on confirmed pivots, meaning they do not repaint once formed.
5️⃣ ADX Chop Filter (Optional)
An optional ADX filter helps identify sideways or low-momentum markets.
When ADX is below the chosen threshold, the indicator will classify conditions as chop / no-trend, helping prevent forced trades.
6️⃣ Clear Visual Feedback
Background color highlights the current market state:
Green = Uptrend
Red = Downtrend
Grey = No Trend / Chop
EMAs and trendlines are plotted directly on price for clarity.
Daily Gold Key Levels from X (Intraday - Unified Text Box)Script pulling daily trade ideas and key levels from X Accounts for XAU USD
NIFTY50 EOD Breakout + Breakdown Scannerdeatailed script for eod bs and bd s for all scripts please use effectively
SAT LevelsThis indicator shows the following:
HTF:
- Yearly Range (+ Previous Year) and its Eq Levels
- Quarterly Range (+ Previous Quarter) and its Eq Levels
- Monthly Range (+ Previous Month) and its Eq Levels
- Weekly Range (+ Previous Week) and its Eq Levels
Intraday Levels:
- Yesterday's Range (+ Day Before Yesterday 'DBY') and its Eq Levels
- Premarket Range (4am - 9.29am)
- 1min range (9.30 candle)
- 5min range (9.30-9.34)
- 15min range (9.30-9.44)
SAT Levels - Y/Q/M/W/EQs/IntradayThis indicator shows the following:
HTF:
- Yearly Range (+ Previous Year) and its Eq Levels
- Quarterly Range (+ Previous Quarter) and its Eq Levels
- Monthly Range (+ Previous Month) and its Eq Levels
- Weekly Range (+ Previous Week) and its Eq Levels
Intraday Levels:
- Yesterday's Range (+ Day Before Yesterday 'DBY') and its Eq Levels
- Premarket Range (4am - 9.29am)
- 1min range (9.30 candle)
- 5min range (9.30-9.34)
- 15min range (9.30-9.44)
PAE - Price Action Essential**PAE - Price Action Essential** indicator.
This system is engineered to provide high-fidelity market structure readings, blending moving average harmony with algorithmic volume analysis at critical turning points.
---
## 1. Indicator Philosophy
**PAE** operates under the **"Signal over Noise"** principle. Its goal is to declutter the chart of visual distractions, highlighting only the areas where true confluence exists between price action and institutional effort (volume).
---
## 2. Moving Average Dynamics & Action Zone
The system utilizes a hierarchy of four moving averages to segment market flow:
### A. The Action Zone (Short-Term)
This is generated via a dynamic shading between the **Fast MA (9)** and the **Base MA (20)**.
* **Configuration:** Allows the user to select the calculation type (EMA, SMA, WMA, HMA) for both averages simultaneously.
* **Fast MA Colors:**
* `#a5d6a7` (Soft Green) during ascending values.
* `#faa1a4` (Soft Red) during descending values.
* **Purpose:** The shaded area acts as a "value band." Pullbacks into this zone during defined trends often offer the highest probability entry opportunities.
### B. Structural MAs (Mid & Long-Term)
These averages are fixed to **SMA** type to maintain stability in trend analysis:
* **Medium SMA (40):** Uses vibrant colors (**#3179f5** Blue / **#ffee58** Yellow) to clearly mark the primary direction of the current swing.
* **Slow SMA (200):** Uses pastel tones (**#90bff9** / **#fff9c4**) and a dotted style to define the long-term institutional bias.
---
## 3. Pivot Analysis with Smart Volume
**PAE** identifies fractals (Highs and Lows) and automatically classifies them based on their **Relative Volume** compared to the previous 20 candles.
### Visual Classification by Color
To ensure rapid interpretation, labels are set to **Tiny** size, with color serving as the primary data indicator:
| Pivot Type | Color | Volume Condition | Interpretation |
| --- | --- | --- | --- |
| **Strength (MAX)** | `#ff001e` (Bright Red) | `> 160%` of Avg | High-conviction resistance. |
| **Strength (MIN)** | `#0fa600` (Bright Green) | `> 160%` of Avg | High-conviction support. |
| **Base (MAX)** | `#f1adad` (Soft Rose) | Between `30%` - `160%` | Standard market structure. |
| **Base (MIN)** | `#bee7c0` (Soft Mint) | Between `30%` - `160%` | Standard market structure. |
| **Noise** | `#ffffff` (White 67% Transp.) | `< 30%` of Avg | Weak pivots or lack of interest. |
---
## 4. Contextual Information (Tooltips)
Every Pivot label is interactive. By hovering the cursor over the triangles, the trader obtains precise data:
* **Price:** Indicates the exact **Closing** value of the candle that triggered the pivot (MAX or Min).
* **Vol:** Displays the exact percentage of relative volume. For example, a value of **200%** confirms that the candle had double the average volume, validating the strength of that support or resistance level.
---
## 5. Recommended Configuration Parameters
* **Left/Right Bars (3):** The ideal balance between early detection and swing confirmation.
* **Strength Factor (1.60):** Filters for movements backed by professional intent.
* **Noise Factor (0.30):** Identifies exhaustion or lack of participation.
---
### Operational Summary
The **PAE** helps traders stop guessing. If the price reaches the **Action Zone** (shading) and coincides with a **Strength Pivot** (bright color), the probability of a reaction in favor of the trend is significantly high. It is a precision tool designed for traders seeking absolute clarity in their decision-making process.
Tetris V1 traderglobaltopTetris Indicator is a visual trading tool that displays blocks or zones on the chart to identify market structures, such as impulses, pullbacks, and key price areas. Its purpose is to simplify market analysis, helping traders clearly identify entries, exits, and potential trend continuations.
Trading involves risk. All risk is assumed solely by the operator; the indicator developer is not responsible for any trading losses..
Indicador Tetris es una herramienta de trading visual que muestra bloques o zonas en el gráfico para identificar estructuras del mercado, como impulsos, retrocesos y áreas clave de precio. Su objetivo es simplificar la lectura del mercado, ayudando a detectar entradas, salidas y posibles continuaciones de tendencia de forma clara, con una ema de 120.
RSI Apex: Breakout & DivergenceRSI Apex: Breakout & Divergence System
RSI Apex:突破与背离交易系统
🇬🇧 English Description
RSI Apex is a comprehensive trading system designed to capture both Trend Breakouts and Market Reversals. Unlike traditional RSI indicators that rely solely on fixed levels (70/30), RSI Apex integrates Donchian Channels, Volatility Squeeze, and the Libertus Divergence Algorithm to provide high-probability signals.
🚀 Key Features
Trend Push System (Donchian Breakout):
Detects when RSI momentum is strong enough to push the upper/lower Donchian Channel bands.
Signal: Displays ▲ (Bull) or ▼ (Bear) at levels 20/80.
Libertus Divergence (No-Lag):
Uses a real-time pivot tracking algorithm to identify divergences between Price and RSI without the lag of traditional pivot points.
Signal: Displays "Div" labels at levels 30/70.
Smart Coloring (Extreme Highlight):
Green/Red: Normal Trend.
White (Extreme): When RSI breaches 70 (Overbought) or 30 (Oversold), the line turns bright White. This highlights the most volatile zones where reversals or strong continuations occur.
Volatility Squeeze Filter:
Monitors market volatility. When the Donchian Channel compresses significantly (below historical average), the background turns Purple.
Meaning: "Calm before the storm"—expect a major move soon.
🛠 How to Use
Trend Following: Enter when you see Green/Red RSI lines accompanied by ▲ / ▼ signals. This indicates a "Trend Push."
Reversal Trading: Look for "Div" signals when the RSI line is White (Extreme). This suggests momentum is fading despite price action.
Exit/Take Profit: Watch for the "Weak" label, which appears when RSI falls back into the neutral zone.
Dashboard: Monitor real-time RSI Value, Market State (Bullish/Bearish/Extreme), and Volatility (Squeeze/Expanding) in the bottom-right table.
🇨🇳 中文简介
RSI Apex 是一套旨在捕捉趋势爆发 (Breakout) 和 市场反转 (Reversal) 的综合交易系统。与仅依赖固定 70/30 线的传统 RSI 不同,本指标融合了 唐奇安通道 (Donchian Channels)、波动率挤压 (Squeeze) 以及 Libertus 无滞后背离算法,以提供高胜率的交易信号。
🚀 核心功能
强趋势推动系统 (唐奇安突破):
检测 RSI 动能是否强劲到足以推动唐奇安通道的上轨或下轨扩张。
信号: 在 20/80 轴位置显示 ▲ (多头推动) 或 ▼ (空头推动)。
Libertus 智能背离 (无滞后):
采用实时 Pivot 追踪算法,精准识别价格与 RSI 之间的背离,解决了传统背离指标的滞后问题。
信号: 在 30/70 轴位置显示 "Div" 标签。
智能变色 (极端行情高亮):
绿色/红色: 正常趋势状态。
白色 (White): 极端区域。当 RSI 突破 70 (超买) 或跌破 30 (超卖) 时,线条会强制变为醒目的亮白色,提示此处为变盘/背离高发区。
波动率挤压 (Squeeze) 过滤器:
实时监控市场波动率。当通道宽度显著收窄(低于历史平均水平)时,背景会填充为半透明紫色。
含义: “暴风雨前的宁静”——预示着大行情即将爆发,此时应空仓等待突破方向。
🛠 使用策略
顺势交易 (Trend): 当 RSI 呈现 绿色/红色 并伴随 ▲ / ▼ 信号时进场。这代表动能极强,处于主升/主跌浪。
左侧反转 (Reversal): 重点关注 RSI 线条变为 白色 (Extreme) 时出现的 "Div" 背离信号。这通常意味着价格虽创新高,但动能已耗尽。
止盈/离场: 留意 "Weak" (衰竭) 标签,它出现在 RSI 掉回中间震荡区时。
仪表盘: 右下角面板实时显示 RSI 数值、市场状态 (极值/背离/趋势) 以及波动率状态 (挤压/扩张)。
4 EMA + VWAP + UT Bot + SuperTrend + Daily Pivot Checklist📌 Description
This indicator is a multi-indicator trend confirmation checklist designed to simplify decision-making by combining several widely used technical tools into one clean on-chart dashboard.
The goal of this script is clarity, not complexity — helping traders quickly see market bias, trend strength, and trade direction without switching between multiple indicators.
🔹 Indicators Included
EMA 10 / 20 / 50 / 200
VWAP
UT Bot (ATR-based trailing stop with BUY / SELL signals)
SuperTrend (correct trend color logic)
Daily Pivot Point (today only)
All conditions are displayed in a YES / NO + BUY / SELL checklist panel for fast confirmation.
🔹 How to Use
Follow UT Bot BUY / SELL as the primary direction
Use EMA 200 & SuperTrend for overall trend bias
VWAP and Daily Pivot act as intraday filters
Stronger setups occur when most checklist conditions align
This indicator works best when combined with proper risk management and price action.
👥 Credits / Author Note
This script was conceptualized, tested, and refined by the publisher based on real trading use cases.
The development, logic structuring, and UI optimization were done collaboratively with AI-assisted scripting support to ensure clean code, clarity, and non-repainting behavior.
Final responsibility for trading decisions always remains with the user.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only.
It does not guarantee profits and should not be considered financial advice.
Always trade responsibly.
Mod_capital_trend kanal⚙️ How It Works
1️⃣ Trend Detection
The trend is identified using a Simple Moving Average (SMA) combined with ATR volatility filtering:
Uptrend: Price breaks above SMA + ATR
Downtrend: Price breaks below SMA − ATR
This method avoids false signals and only reacts to strong directional moves.
2️⃣ Dynamic Channel Construction
Once a trend is confirmed, the indicator builds a three-line channel:
Middle Line: Mean price (HL2 smoothed)
Upper Channel: Middle line + (ATR × Channel Width)
Lower Channel: Middle line − (ATR × Channel Width)
The channel automatically expands and contracts based on market volatility.
3️⃣ Smart Trend Switching
When the trend changes:
The previous channel is frozen
A new channel is created in the new direction
Old trend lines are visually de-emphasized (dashed & faded)
This keeps the chart clean and readable, even during market transitions.
4️⃣ Future Price Projection
The indicator calculates the slope of the active trend channel and projects a future price level:
Displays a projected price label at a user-defined future index
Helps visualize trend continuation potential
Useful for planning entries, exits, and targets
🎨 Visual Logic
Green Channel: Bullish trend
Orange Channel: Bearish trend
Solid Lines: Active trend
Dashed Lines: Inactive / previous trend
Automatic Channel Fill: Highlights the price range
All visuals follow a minimal, professional Mod_Capital style.
🧠 Best Use Cases
Trend-following strategies
Dynamic support & resistance
Pullback and continuation trading
Breakout confirmation
Market structure visualization
Manual and discretionary trading
🔧 Customizable Inputs
Trend detection length
Channel width (volatility multiplier)
Future price projection distance
Uptrend & downtrend colors
Works on all markets and timeframes.
✅ Key Advantages
No repainting after trend confirmation
Volatility-adaptive channels
Clean and professional chart design
No unnecessary indicators or signals
Built for serious traders
Portfolio TrackerDescription
The Portfolio Tracker is a utility dashboard designed for traders who need to monitor the performance of a multi-asset portfolio directly from a single chart layout. While TradingView provides excellent charting for individual symbols, tracking the combined Profit & Loss (PnL) of a basket of 20 different securities (stocks, crypto, forex, or indices) usually requires switching tabs, using external spreadsheets, or logging into multiple exchange accounts.
This script solves that problem by allowing users to manually input their position details into a customizable table. It fetches real-time price data for each symbol and calculates the individual and total portfolio performance, including commission costs.
Why This Tool is Useful
This indicator was built to address specific pain points for active traders:
Consolidated View: Instead of checking 20 different charts to see how your positions are doing, you get a single, real-time snapshot of your entire portfolio's health on one screen.
Risk Management: By seeing the "Total PnL" and "Total Investment" in one place, traders can better understand their overall market exposure, rather than focusing on single winning or losing trades.
Flexible Accounting: The ability to switch between "Unit Price" and "Total Cost" inputs accommodates different trading styles—whether you are a scalper entering a single price or an investor averaging down with a specific total capital allocation.
CRITICAL: Input Logic & Warnings
To ensure accurate PnL calculations, users must understand the relationship between Quantity and Cost, especially when using "Total Cost (Manual)" mode.
The Golden Rule: Your Input Cost must always match the Total Quantity entered.
Example Scenario:
Imagine you buy 2 BTC at a price of $90,000 each.
Correct Entry: You must enter Quantity: 2 and Cost: 180000 ($90k x 2).
Result: If BTC drops to $85k, your Portfolio Value is $170k. The script correctly shows a PnL of -$10,000.
Result: If BTC rises to $95k, your Portfolio Value is $190k. The script correctly shows a PnL of +$10,000.
Incorrect Entry: If you enter Quantity: 2 but leave Cost at 90000 (the unit price).
Result: The script thinks you bought 2 BTC for a total of only $90k. It will instantly show a massive, incorrect profit because the math implies you bought 2 coins for the price of 1.
Please double-check your inputs. The script includes a "Sanity Check" feature to help catch these errors, but accurate data entry is the user's responsibility.
Key Features & Benefits
Multi-Asset Tracking (20 Slots): Monitor up to 20 different tickers simultaneously.
Real-Time Valuation: Uses request.security() to fetch the current market price for every symbol in the list. Your PnL updates with every tick of the market.
Flexible Cost Basis Modes:
Auto-Calc Mode: Enter Entry Price and Quantity. (Best for simple, single-entry trades).
Manual Cost Mode: Enter Total Invested Amount. (Best for averaged-down positions).
Advanced Commission Handling: Supports both Global and Individual commission rates. This provides a realistic "Net PnL" by factoring in fees on both the entry (cost basis) and the theoretical exit (current value).
Input Safety ("Sanity Check"): A logic check that compares the user's input against the current market value. If a user switches to "Total Cost" mode but leaves a small "Unit Price" value in the input field, the script flags the row to prevent irrational PnL percentages (e.g., >100,000%).
Clean & Customizable UI: The table can be positioned in 9 different locations, and inputs are hidden from the chart status line to keep the visual workspace clean.
How It Works
The script operates using a systematic loop that processes user inputs through a series of mathematical validations:
Data Acquisition: The script collects all 20 user inputs and utilizes request.security() to fetch the real-time close price for every non-empty symbol in the list.
Cost Basis Calculation:
In Auto-Calc Mode: The script calculates Raw Cost = Quantity * Input Price.
In Manual Mode: The script takes the Input Value directly as the Raw Cost.
"Round-Trip" Commission Modeling:
Entry Cost: Raw Cost * (1 + Commission%) (Fees increase your breakeven).
Exit Value: (Quantity * Current Price) * (1 - Commission%) (Fees reduce your payout).
Net PnL: Exit Value - Entry Cost.
Sanity Check Algorithm: Before displaying data, the script compares the Input Cost against the Gross Market Value (Qty * Price). If the Input Cost is less than a user-defined threshold (default 1%) of the Market Value, it triggers a warning, assuming the user forgot to update the field to a "Total Cost" figure.
Disclaimer
This script is for informational and educational purposes only. It is a tool to assist in tracking hypothetical or real positions based on manual user inputs and standard TradingView data feeds. It should not be relied upon as a primary accounting ledger or tax reporting tool. Past performance is not indicative of future results. Trading involves risk. Always verify your PnL against your actual exchange or broker statements.
MOD_CAPITAL trend Line🔹 MOD_CAPITAL Trend Line Indicator (Professional Tool)
The MOD_CAPITAL Trend Line indicator is a clean and advanced tool designed for traders who focus on market structure, trend direction, and price respect.
This indicator automatically builds valid trend lines using confirmed pivot highs and pivot lows, filtering out weak or broken structures.
Only real, respected trend lines remain on the chart — no noise, no clutter.
⚙️ Key Features
Automatically detects valid bullish and bearish trend lines
Built on pivot high / pivot low logic
Filters false lines by checking price respect
Clean Mod_Capital minimal design
Single color for professional chart clarity
No repainting after confirmation
Works on all markets and timeframes
Perfect for manual trading and confirmation
🎯 Best Used For
Trend confirmation
Breakout & breakdown analysis
Market structure trading
Support & resistance with trend logic
Professional discretionary trading
💡 Why MOD_CAPITAL?
Because clean charts = clear decisions.
No indicators overload.
No unnecessary signals.
Only structure, trend, and discipline.
Pullback Finder CareCA multi-timeframe pullback detection indicator that identifies optimal entry points during trend corrections. It combines daily trend analysis with intraday momentum, volume, and RSI conditions to pinpoint high-probability reversal points when price pulls back against the primary trend direction.
Perfect for traders looking to buy dips in uptrends or sell rallies in downtrends with precise timing and trend confirmation.
Gold Correlation Dashboard (Locked D1)** **
**Gold Intermarket Correlation Dashboard (Locked Timeframe Edition)**
This indicator is a specialized Intermarket Analysis tool designed specifically for XAUUSD (Gold) traders. It monitors 5 key assets that strongly influence Gold's price and provides a real-time bias (Bullish/Bearish) based on their correlation.
**Key Features:**
1. **Locked Timeframe Logic:**
* The dashboard allows you to "Lock" the analysis to a higher timeframe (Default: Daily/D1).
* This means you can trade on lower timeframes (e.g., 5m or 15m) while the dashboard keeps you aligned with the major Daily trend, preventing you from trading against the main flow.
2. **Intermarket Correlations:**
* **DXY (Dollar Index):** Negative Correlation (DXY Down = Gold Bullish).
* **US10Y (Yields):** Negative Correlation (Yields Down = Gold Bullish).
* **USDJPY & USDCHF:** Negative Correlation.
* **VIX:** Positive Correlation (VIX Up = Gold Bullish/Safe Haven).
3. **Smart Scoring System:**
* The script calculates a "Bullish Percentage" (e.g., 80% BUY or 100% BUY) based on how many of these 5 assets align with a Gold Long position.
4. **Strong Alerts:**
* Alerts are triggered only when the three core drivers (DXY, US10Y, USDJPY) align perfectly.
-------------------------------------------------------
** **
**黃金跨市場相關性儀表板 (鎖定週期版)**
這是一個專為黃金 (XAUUSD) 交易者設計的跨市場分析工具。它自動監控 5 個對黃金價格影響最大的資產,並根據相關性提供即時的多空傾向。
**核心功能:**
1. **鎖定時間級別 (Locked Timeframe):**
* 您可以將儀表板的分析數據鎖定在較大級別(預設:D1 日線)。
* 這意味著當您在 5 分鐘或 15 分鐘圖交易時,儀表板依然顯示日線級別的趨勢,幫助您「順大勢、逆小勢」,避免被短線雜訊誤導。
2. **跨市場相關性邏輯:**
* **DXY (美元指數)**:負相關 (美元跌 -> 黃金漲)。
* **US10Y (美債殖利率)**:負相關 (殖利率跌 -> 黃金漲)。
* **USDJPY & USDCHF**:負相關。
* **VIX (恐慌指數)**:正相關 (恐慌升 -> 黃金漲)。
3. **智能評分系統:**
* 系統會計算有多少資產支持黃金上漲,並給出百分比評分 (例如:80% BUY)。
4. **強力警報:**
* 只有當 DXY, US10Y, USDJPY 三大核心指標方向完全一致時,才會觸發強力買入/賣出警報。
BO Rule: Full Suite (Auto-Clean)** **
**BO Rule: Ultimate Breakout & Retest Suite (Body Only + Strict Sequence)**
This is a comprehensive Price Action indicator designed for traders who focus on **Structure Break & Retest** setups. Unlike standard fractal indicators, this script employs a strict "New Price Rule" and "Body-Only" logic to filter out noise, combined with a Multi-Timeframe (MTF) Dashboard and Mobile Alerts.
**Key Logic & Unique Features:**
1. **Classic Levels (Body Only):**
* **Logic:** Resistance is defined by a Green candle followed by a Red candle. Support is Red followed by Green.
* **Precision:** The script strictly uses Candle **Bodies** (Open/Close) to define levels and confirm breakouts. Wicks are ignored to avoid volatility fakeouts.
2. **Strict Sequence (New Price Rule):**
* **Reset Logic:** Once a breakout signal is confirmed, all previous structure levels are immediately invalidated.
* The script only scans for *new* structure levels formed *after* the latest confirmed signal. This ensures you are always trading the most current market structure.
3. **Smart Visualization (Auto-Clean):**
* **Queue System:** To keep your chart clean, the script includes a "Display Limit" feature. It only keeps the most recent N signals (e.g., 20) and automatically deletes the oldest ones.
4. **MTF Dashboard & Conflicts:**
* Includes a bottom-right dashboard showing trend directions across 5 user-defined timeframes.
* Displays "Conflict" lines if different timeframes show opposing signals on the same bar.
5. **Filter Duplicates:**
* Option to show only **Trend Reversals** (Buy -> Sell -> Buy) by hiding consecutive signals in the same direction.
6. **Mobile Notifications:**
* Supports custom alerts for specific timeframe reversals, designed to push notifications directly to the TradingView App.
**How to Trade:**
* **Green Dashed Line:** Bullish Confirmation (Body Breakout + Retest).
* **Red Dashed Line:** Bearish Confirmation (Body Breakdown + Retest).
* **Dashboard:** ▲ = Bullish Trend, ▼ = Bearish Trend.
-------------------------------------------------------
** **
**BO Rule: 經典水平突破回踩策略 (實體判斷 + 嚴格序列 + 自動清理)**
這是一個專為裸K交易者 (Price Action) 設計的完整突破回踩系統。它採用了嚴格的「新價格規則」與「僅看實體」邏輯,並整合了多週期儀表板與手機通知功能。
**核心邏輯與獨特功能:**
1. **經典水平 (僅看實體 Body Only):**
* **定義:** 阻力位由「綠K接紅K」形成;支撐位由「紅K接綠K」形成。
* **過濾:** 系統僅使用 K棒實體 (收盤/開盤) 來定義水平與判斷突破,完全忽略影線 (Wicks),有效避免假突破。
2. **新價格規則 (嚴格序列):**
* **重置機制:** 採用「最新優先」原則。一旦當前訊號確認,之前所有的舊結構水平立即作廢。系統只會尋找在「最新訊號之後」形成的新水平,確保交易邏輯符合當下的市場結構。
3. **智能顯示 (自動清理):**
* **佇列系統:** 為了保持圖表整潔,您可以設定「保留最近 N 個訊號」。系統會自動刪除最舊的線段,避免圖表充滿歷史線條。
4. **多週期 (MTF) 儀表板:**
* 右下角面板可同時監控 5 個不同時間級別的趨勢狀態。
* 若不同週期在同一根 K 棒出現相反訊號,會標記為「衝突」。
5. **過濾重複訊號:**
* 可勾選「只顯示反轉」。若當前是多頭,系統會隱藏後續的多頭訊號,直到出現空頭訊號為止 (呈現:多 -> 空 -> 多)。
6. **手機 App 通知:**
* 支援針對特定週期的反轉訊號發送推播通知。
**使用說明:**
* **綠色虛線**:多頭確認 (實體突破 + 回踩)。
* **紅色虛線**:空頭確認 (實體跌破 + 回踩)。
* **儀表板**:▲ = 多頭趨勢,▼ = 空頭趨勢。






















