CM_Donchian Channels V5NOTE: this indicator was created by @ChrisMoody. I found it really useful, so I upgraded it from v3 to v5
This Indicator replicates the Donchian Channels, but with Alerts Capability
You can set up an alert for when the price breaks above the upper band or when the price breaks below the lower band
It will display respectively a green upward arrow or a red downward arrow
It is possible to change the length of the Indicator
Original Post:
指标和策略
ICT PDA - Gold & BTC (QuickScalp Bias/FVG/OB/OTE + Alerts)What this script does
This indicator implements a complete ICT Price Delivery Algorithm (PDA) workflow tailored for XAUUSD and BTCUSD. It combines HTF bias, OTE zones, Fair Value Gaps, Order Blocks, micro-BOS confirmation, and liquidity references into a single, cohesive tool with early and final alerts. The script is not a mashup for cosmetic plotting; each component feeds the next decision step.
Why this is original/useful
Symbol-aware impulse filter: A dynamic displacement threshold kTune adapts to Gold/BTC volatility (body/ATR vs. per-symbol factor), reducing noise on fast markets without hiding signals.
Scalping preset: “Quick Clean” mode limits drawings to the most recent bars and keeps only the latest FVG/OB zones for a clear chart.
Three display modes: Full, Clean, and Signals-Only to match analysis vs. execution.
Actionable alerts: Early heads-up when price enters OTE in the HTF bias direction, and Final alerts once mitigation + micro-break confirm the setup.
How it works (high-level logic)
HTF Bias: Uses request.security() on a user-selected timeframe (e.g., 240m) and EMA filter. Bias = close above/below HTF EMA.
Dealing Range & OTE: Recent swing high/low (pivot length configurable) define the range; OTE (62–79%) boxes are drawn contextually for up/down ranges.
Displacement: A candle’s body/ATR must exceed kTune and break short-term structure (displacement up/down).
FVG: 3-bar imbalance (bull: low > high ; bear: high < low ). Latest gaps are tracked and extended.
Order Blocks: Last opposite candle prior to a qualifying displacement that breaks recent highs/lows; zones are drawn and extended.
Entry & Alerts:
Long: Bullish bias + price inside buy-OTE + mitigation of a bullish FVG or OB + micro BOS up → “PDA Long (Final)”.
Short: Bearish bias + price inside sell-OTE + mitigation of a bearish FVG or OB + micro BOS down → “PDA Short (Final)”.
Early Alerts: Trigger as soon as price enters OTE in the direction of the active bias.
Inputs & controls (key ones)
Bias (HTF): timeframe minutes, EMA length.
Structure: ATR length, Impulse Threshold (Body/ATR), swing pivot length, OB look-back.
OTE/FVG/OB/LP toggles: show/hide components.
Auto-Tune: per-symbol factors for Gold/BTC + manual tweak.
Display/Performance: View Mode, keep-N latest FVG/OB, limit drawings to last N bars.
Recommended usage (scalping)
Timeframes: Execute on M1–M5 with HTF bias from 120–240m.
Defaults (starting point): ATR=14, Impulse Threshold≈1.6; Gold factor≈1.05, BTC factor≈0.90; Keep FVG/OB=2; last 200–300 bars; View Mode=Clean.
Workflow: Wait for OTE in bias direction → see mitigation (FVG/OB) → confirm with micro BOS → manage risk to nearest liquidity (prev-day H/L or recent swing).
Alerts available
“PDA Early Long/Short”
“PDA Long (Final)” / “PDA Short (Final)”
Attach alerts on “Any alert() function call” or the listed conditions.
Chart & screenshots
Please include symbol and timeframe on screenshots. The on-chart HUD shows the script name and state to help reviewers understand context.
Limitations / notes
This is a discretionary framework. Signals can cluster during news or extreme volatility; use your own risk management. No guarantee of profitability.
Changelog (brief)
v1.2 QuickScalp: added Quick Clean preset, safer array handling, symbol-aware impulse tuning, display modes.
------------------------------
ملخص عربي:
المؤشر يطبق تسلسل PDA عملي للذهب والبتكوين: تحيز من فريم أعلى، مناطق OTE، فجوات FVG، بلوكات أوامر OB، وتأكيد micro-BOS، مع تنبيهات مبكرة ونهائية. تمت إضافة وضع “Quick Clean” لتقليل العناصر على الشارت وحساسية إزاحة تتكيّف مع الأصل. للاستخدام كسكالب: نفّذ على M1–M5 مع تحيز 120–240 دقيقة، وابدأ من الإعدادات المقترحة بالأعلى. هذا إطار سلوكي وليس توصية مالية.
VIX SPY FOREX Commodities BitcoinCompilation of market data as of 10/18 showing correlations between corresponding sectors.
Position Size ToolPosition Size Tool
What it does:
Shows a small on-chart table that converts per-ticker dollar amounts into share counts (shares = amount ÷ current price) for up to 4 configurable tickers.
Inputs (indicator settings)
Ticker 1–4 — select the symbol (TradingView will show the exchange-qualified form like BATS:TQQQ in the settings).
Ticker N $ Amount — dollar amount to convert into shares for that ticker.
Show Ticker N — toggle each row on/off.
Table Text Color — color of the table text.
Table Position — screen location (Top/ Middle/ Bottom × Left/Center/Right).
Font Size — Small / Medium / Large.
Show Empty Top Row — optional spacer row.
What the table displays
Left column: the ticker symbol only (the script strips the exchange prefix for display, so BATS:TQQQ appears as TQQQ in the table).
Right column: the calculated share count, formatted to two decimal places (or "—" if price is not available or zero).
Table updates on the chart’s timeframe using live/last bar prices.
How to use
Add the indicator to a chart.
Open the indicator’s settings panel.
In Ticker 1–4, type/select the symbols you want (you may see the exchange prefix there; that’s TradingView’s UI).
Enter the dollar amounts for each ticker.
Use Show Ticker N to hide/show rows.
Adjust text color, font size, and table position as desired.
Notes
The settings field will always show the exchange-qualified symbol (TradingView behavior); the script strips the exchange only for the on-chart display.
If the selected symbol has no price data on the chart/timeframe, the table shows "—".
Shares are computed as amt ÷ current close from the requested symbol and timeframe.
Example of how to use this tool:
Monitor an index and execute trades on leveraged derivative products. This tool will determine the quantity of shares that can be purchased with a pre-determined dollar amount. Ex: Monitor SPX for entry/exit signals and execute trades on UPRO/SPXU/SPXL/SPXS.
Input a ticker and a dollar amount for position size, shares that can be purchased will be calculated based on the current asset price.
This tool can be helpful for those that use multiple platforms simultaneously to monitor and execute trades.
Live Volume TickerGives current real-time volume of tick movements denoted in the timeframe of the current candle.
Multi-Timeframe Stochastic (4x Konfiguracja + Schodki)Skrypt stoch z wielu TF można sobie ustawiać pod siebie.
Long/Short Ratio Aggregated (Lite)Description — Long/Short Ratio Aggregated (Lite)
This indicator provides a cross-exchange, open-interest-weighted aggregation of the Long/Short Ratio (LSR) for the cryptocurrency asset currently on your chart. It is designed to unify fragmented derivatives positioning data from multiple major exchanges into a single normalized signal that more accurately reflects real market sentiment and positioning bias across platforms.
Concept and Originality
Traditional Long/Short Ratio indicators are exchange-specific. They show how many traders are long versus short, but only within the scope of one venue (e.g., Binance or Bybit). This makes them incomplete and often misleading for directional bias analysis, since different exchanges host different participant profiles, levels of leverage, and quote-currency exposures.
This script addresses that limitation by:
Aggregating LSR data across multiple exchanges (Binance and Bybit).
Weighting each ratio by Open Interest (OI) — ensuring exchanges with higher open positions contribute proportionally more to the overall sentiment.
Normalizing all contract types (USDT, USDC, and USD-margined) into a consistent base-currency format.
This step corrects for structural differences between coin- and stablecoin-margined instruments, producing a true like-for-like comparison.
The result is a globalized Long/Short Ratio, normalized by exposure and liquidity, suitable for multi-venue orderflow estimation and directional bias assessment.
Note for moderators: I know there are already other scripts out there, but they may not support Open Interest Weighting or the same number of pairs. They also might not support proper normalization like in my script.
Calculation Methodology
For each supported exchange and contract type:
The script retrieves the latest Long/Short Ratio (LSR) and Open Interest (OI) values.
OI is used as the weighting factor, creating a proportional representation of positioning volume.
Values denominated in USD are normalized into base currency using close-price adjustment.
The final value is computed as:
Weighted LSR = (Σ (LSRᵢ × OIᵢ)) / (Σ OIᵢ)
This ensures that if, for example, Binance has twice the open interest of Bybit, its LSR contributes twice as much to the total weighted sentiment.
Interpretation
Value > 1.0 → Market participants are net-long (bullish bias).
Value < 1.0 → Market participants are net-short (bearish bias).
Strength of deviation from 1.0 indicates positioning imbalance magnitude.
Because the ratio is OI-weighted, large players or heavily margined exchanges influence the output proportionally more than smaller, low-volume venues — making this metric a better reflection of true market positioning rather than isolated retail sentiment.
Usage and Applications
Use this indicator as a component in:
Orderflow and sentiment confirmation, alongside price action and volume.
Funding rate correlation studies.
Intraday reversals or exhaustion zones, when combined with volatility or OI delta metrics.
Overlaying or combining this indicator with open interest change, cumulative volume delta, or funding rate divergence allows traders to build a high-resolution understanding of positioning shifts and crowd behavior.
Notes
The “Lite” version is optimized for execution and accessibility, focusing on accuracy while staying within Pine Script’s computational limits.
Exchange data availability may vary by symbol; unsupported pairs automatically return na and are automatically not included in the weighted calculation.
In summary:
This indicator transforms fragmented, exchange-specific Long/Short Ratio into a unified, OI-weighted global sentiment measure — a foundational tool for traders seeking to quantify derivative-side orderflow bias with cross-venue accuracy.
ANF Bottom Watch + Retail Sector Alert (v6) Detect when ANF crosses above its 50-day moving average (technical recovery signal).
Show visual + alert when RSI recovers above 40 (momentum bottom confirmation).
Track peer strength (URBN, LULU, TPR, GPS) — if 3+ peers are trading above their own 50-day MA, the script flags a sector rotation (bullish context).
Give a “Bottom Watch Active” label when all three signals align.
VWAP&EMA 10/20/60/120his script is a clean and straightforward technical analysis tool designed to provide traders with a clear view of market trends and key price levels by overlaying five essential moving averages onto your chart:
Volume Weighted Average Price (VWAP)
Four (4) Exponential Moving Averages (EMAs) at lengths 10, 20, 60, and 120.
By combining these indicators, traders can quickly assess short-term momentum, medium-term trends, and long-term direction, all while referencing the volume-weighted average price as a key benchmark for institutional activity.
Features & Components
This indicator plots five distinct lines on your chart, each color-coded for easy identification:
VWAP (Volume Weighted Average Price)
Plot: Plotted as a bright blue line.
Purpose: The VWAP represents the true average price of an asset for the day (or session), weighted by volume. It is a critical level for many day traders and institutions.
Prices above VWAP are often considered bullish.
Prices below VWAP are often considered bearish.
It frequently acts as a dynamic level of support or resistance.
EMA 10 (Short-Term Momentum)
Plot: Plotted as a green line.
Purpose: This is the fastest-moving average, reflecting the most recent price action and short-term momentum.
EMA 20 (Short-Term Trend)
Plot: Plotted as a red line.
Purpose: Often used in conjunction with the EMA 10, this average helps confirm the immediate trend. Crossovers between the 10 and 20 EMAs can signal potential entry or exit points.
EMA 60 (Medium-Term Trend)
Plot: Plotted as an orange line.
Purpose: This average provides a clearer picture of the medium-term trend, filtering out much of the short-term noise. It often serves as a significant dynamic support or resistance level.
EMA 120 (Long-Term Trend)
Plot: Plotted as a purple line.
Purpose: This is the slowest-moving average in the script, defining the major underlying trend. As long as the price remains above the EMA 120, the long-term bias is generally considered bullish, and vice-versa.
How to Use This Indicator
This indicator is versatile and can be adapted to various trading strategies:
Trend Confirmation: Use the alignment of the EMAs to determine the trend.
Strong Bullish Trend: Price > EMA 10 > EMA 20 > EMA 60 > EMA 120.
Strong Bearish Trend: Price < EMA 10 < EMA 20 < EMA 60 < EMA 120.
Dynamic Support & Resistance: Watch how the price reacts to each of the five lines. In an uptrend, the EMAs and VWAP will often act as "bounces" or support levels for pullbacks. In a downtrend, they will act as resistance.
Entry & Exit Signals (Crossovers):
A bullish crossover (e.g., EMA 10 crossing above EMA 20) can signal buying interest.
A bearish crossover (e.g., EMA 10 crossing below EMA 20) can signal selling pressure.
VWAP Confluence: Pay special attention to areas where an EMA (like the 20 or 60) crosses or travels close to the VWAP. This "confluence" can create a very strong and significant price level. For example, if the price pulls back to the VWAP and also finds support at the EMA 60, it can be a high-probability trade setup.
Moving Average Trend Strategy V4.1 — Revised Version (Selectable✅ **Version Notes (V4.0)**
| Feature | Description |
| --------------------------------------- | -------------------------------------------------------- |
| 🧠 **Moving Average Type Options** | Choose from EMA / SMA / HMA / WMA |
| 🧱 **Take-Profit / Stop-Loss Switches** | Can be enabled or disabled independently |
| ⚙️ **Add Position Function** | Can be enabled or disabled independently |
| 🔁 **Add Position Signal Source** | Selectable between MA Crossover / MACD / RCI / RSI |
| 💹 **Adjustable Parameters** | All periods and percentages are customizable in settings |
---
✅ **Update Summary:**
| Function | Description |
| -------------------------------------- | --------------------------------------------------------------------- |
| **MA Type Selection** | Choose EMA / SMA / HMA / WMA in chart settings |
| **Take-Profit / Stop-Loss Percentage** | Configurable in the “Take-Profit & Stop-Loss” group |
| **Add / Reduce Position Percentage** | Adjustable separately in the “Add/Reduce Position” group |
| **MA Periods** | Customizable in the “Moving Average Parameters” section |
| **Code Structure** | Logic unchanged — only parameterization and selection functions added |
---
### **Strategy Recommendations:**
* **Trending Market:** Prefer EMA trend tracking or SAR indicators
* **Range-Bound Market:** Use ATR-based volatility stop-loss
* **Before Major Events:** Consider option hedging
* **Algorithmic Trading:** Recommend ATR + partial take-profit combination strategy
---
### **Key Parameter Optimization Logic:**
* Backtest different **ATR multipliers** (2–3× ATR)
* Test **EMA periods** (10–50 periods)
* Optimize **partial take-profit ratios**
* Adjust **maximum drawdown tolerance** (typically 30–50% of profit)
---
### **Risk Control Tips:**
* Avoid overly tight stop-losses that trigger too frequently
* During strong trends, consider widening take-profit targets
* Confirm trend continuation with **volume analysis**
* Adjust parameters based on **timeframe** (e.g., Daily vs Hourly)
---
### **Practical Example (Forex: EUR/USD):**
* **Entry:** Go long on breakout above 1.1200
* **Initial Stop-Loss:** 1.1150 (50 pips)
* **When profit reaches 1.1300:**
* Close 50% of position
* Move stop-loss to 1.1250 (lock in 50 pips profit)
* **When price rises to 1.1350:**
* Move stop-loss to 1.1300 (lock in 100 pips profit)
* **Final Outcome:**
* Price retraces to 1.1300, triggering take-profit
This method secured over **80% of trend profits** during the 2023 EUR rebound, capturing **23% more profit** compared to fixed take-profit strategies (based on backtest results).
EMA 3 Lines✅ JP
1つのインジケーター枠内に3本のEMA(短期・中期・長期)を表示します。
初期設定では 8(青)/50(赤)/200(緑)の期間が適用されます。
設定画面から期間・ラインカラー・太さを自由にカスタマイズできます。
✅ EN
This indicator displays three EMAs (short-term, mid-term, and long-term) within a single indicator window.
By default, the EMA periods are set to 8 (blue), 50 (red), and 200 (green).
You can freely customize the EMA lengths, line colors, and line thickness from the settings panel.
PPI Inflation Monitor (Change YoY & MoM)📊 PPI Inflation Monitor - Leading Inflation Indicator
The Producer Price Index (PPI) measures wholesale/producer-level prices and serves as a critical leading indicator for consumer inflation trends. This tool helps you anticipate CPI movements and identify corporate margin pressures before they show up in earnings.
🎯 KEY FEATURES:
- Dual Perspective Analysis:
- Year-over-Year (YoY): Histogram bars showing annual producer price inflation
- Month-over-Month (MoM): Line overlay showing monthly wholesale price changes
- Visual Reference System:
- Dashed line at 2% (typical target for producer price inflation)
- Dotted line at 0.17% (equivalent monthly target)
- Color-coded bars: Red above target, Green below target
- Real-Time Data Table:
- Current PPI Index value
- YoY inflation rate with color coding
- MoM inflation rate with color coding
- Deviation from target level
- Automated Alerts:
- YoY crosses above/below target
- MoM crosses above/below target
- Early warning system for inflation trends
📈 WHY PPI IS YOUR EARLY WARNING SYSTEM:
PPI typically leads CPI by 1-3 months because:
- Producers face cost increases first
- These costs are eventually passed to consumers
- Shows whether companies can maintain pricing power
Rising PPI with stable CPI = Margin compression → Bearish for stocks
Rising PPI followed by rising CPI = Broad inflation → Fed hawkishness incoming
Falling PPI = Disinflationary trend starting → Positive for risk assets
🔍 TRADING APPLICATIONS:
1. Lead Time Advantage: Position before CPI confirms PPI trends
2. Sector Rotation: High PPI = favor companies with pricing power
3. Margin Analysis: PPI-CPI divergence = margin pressure/expansion signals
4. Fed Anticipation: PPI acceleration = Fed likely to turn hawkish soon
💡 STRATEGIC USE CASES:
- Value vs. Growth: Rising PPI favors value stocks with pricing power
- Commodities: PPI often correlates with commodity price trends
- Small Caps: More vulnerable to input cost increases (high PPI = cautious)
- Corporate Earnings: Anticipate margin pressure before quarterly reports
🔄 COMBINE WITH:
- CPI: Confirm if producer costs reach consumers
- PCE: Validate Fed's preferred inflation metric response
- Fed Funds Rate: Assess if Fed is behind/ahead of curve
📊 DATA SOURCE:
Official PPI data from FRED (Federal Reserve Economic Data), updated monthly when new data releases occur.
🎨 CUSTOMIZATION:
Fully customizable:
- Toggle YoY/MoM displays
- Adjust reference target levels
- Customize colors
- Show/hide absolute PPI values
Perfect for: Macro traders, fundamental analysts, earnings traders, and investors seeking early inflation signals before they appear in consumer prices.
⚡ Remember: PPI leads CPI. Use this advantage to position ahead of the crowd.
Moyennes Mobiles Pertinentes ema21vert ma50 bleue ma200 rougeUtilisez sur un même script un indicateur avec plusieurs moyennes mobiles servant de supports
Smart BUY/SELL Pop IndicatorSmart BUY/SELL Indicator
This indicator shows BUY and SELL labels directly on your TradingView chart. Green labels indicate potential upward moves, and red labels indicate potential downward moves.
How it works
It uses two moving averages: a fast (9-period) and a slow (21-period). A BUY signal appears when the fast MA crosses above the slow MA, and a SELL signal appears when it crosses below.
Why it’s useful
It gives a visual guide for entry and exit points without alert messages. Accuracy can improve by adding filters like RSI or MACD.
RSI Oversold/Overbought + SMA Crossover Strategymy first strat, to share with my friends, hope you all enjoy
SMA 10/20 Weekly on all timeframeHere are SMA 10/20 Weekly to see the underlying weekly trend across all timeframes
Buy Sell Signals MKSConditions for Buying is Current candle a0 LOW = OPEN, b) Has a smaller wick than the previous cabndle size. Size here means high minus low of previous candle. More importantly Buy signal is genarated if the prious candle or series of candles were red. Condition for Sell signal is completely opposite of Buy signal. Buy signal will appear only after a Sell signal was generated earlier and vice versa for Sell signal. Signals are generated on a 5 minute timeframe. Idea is solely concieived by me.
Disclaimer: Just donot blindly take trades based on signals. Analyse the chart pattern, price action on different time frames of your own...
Jensen Alpha RS🧠 Jensen Alpha RS (J-Alpha RS)
Jensen Alpha RS is a quantitative performance evaluation tool designed to compare multiple assets against a benchmark using Jensen’s Alpha — a classic risk-adjusted return metric from modern portfolio theory.
It helps identify which assets have outperformed their benchmark on a risk-adjusted basis and ranks them in real time, with optional gating and visual tools. 📊
✨ Key Features
• 🧩 Multi-Asset Comparison: Evaluate up to four assets simultaneously.
• 🔀 Adaptive Benchmarking: TOTALES mode uses CRYPTOCAP:TOTALES (total crypto market cap ex-stablecoins). Dynamic mode automatically selects the strongest benchmark among BTC, ETH, and TOTALES based on rolling momentum.
• 📐 Jensen’s Alpha Calculation: Uses rolling covariance, variance, and beta to estimate α, showing how much each asset outperformed its benchmark.
• 📈 Z-Score & Consistency Metrics: Z-Score highlights statistical deviations in alpha; Consistency % shows how often α has been positive over a chosen window.
• 🚦 Trend & Zero Gates: Optional filters that require assets to be above EMA (trend) and/or have α > 0 for confirmation.
• 🏆 Leaders Board Table: Displays α, Z, Rank, Consistency %, and Gate ✓/✗ for all assets in a clear visual layout.
• 🔔 Dynamic Alerts: Get notified whenever the top alpha leader changes on confirmed (non-repainting) data.
• 🎨 Visual Enhancements: Smooth α with an SMA or color bars by the current top-performing asset.
🧭 Typical Use Cases
• 🔄 Portfolio Rotation & Relative Strength: Identify which assets consistently outperform their benchmark to optimize capital allocation.
• 🧮 Alpha Persistence Analysis: Gauge whether a trend’s performance advantage is statistically sustainable.
• 🌐 Market Regime Insight: Observe how asset leadership rotates as benchmarks shift across market cycles.
⚙️ Inputs Overview
• 📝 Assets (1–4): Select up to four tickers for evaluation.
• 🧭 Benchmark Mode: Choose between static TOTALES or Dynamic auto-selection.
• 📏 Alpha Settings: Adjustable lookback, smoothing, and consistency windows.
• 🚦 Gates: Optional trend and alpha filters to refine results.
• 🖥️ Display: Enable/disable table and customize colors.
• 🔔 Alerts: Toggle notifications on leadership changes.
🔎 Formula Basis
Jensen’s Alpha (α) is estimated as:
α = E − β × E
where β = Cov(Ra, Rb) / Var(Rb), and Ra/Rb represent asset and benchmark returns, respectively.
A positive α indicates outperformance relative to the risk-adjusted benchmark expectation. ✅
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is NOT a signal. 🚫📉
It does not constitute financial advice, trading signals, or investment recommendations. 💬
The author is not responsible for any financial losses or trading decisions made based on this indicator. 🙏
Always perform your own analysis and use proper risk management. 🛡️
MFT Supply/Demand — Top2 (Opacity by Strength, Minimal Labels)Script Overview — “MFT Supply/Demand — Top 2 (Opacity by Strength, Minimal Labels)”
This multi–timeframe (MTF) Pine Script indicator automatically detects and displays the strongest supply and demand zones across selected higher (HTF), mid (MTF), and lower (LTF) timeframes.
It dynamically identifies large-body, high-volume candles (and optional order-block breakouts) that signal institutional activity, then plots only the two strongest supply zones above the current price and two strongest demand zones below the current price — keeping the chart clean and focused.
Strong Engulfing Scalping qgm engulfing detector. If no time to find engulfing my strategy found engulfing alert u through notification
ETH Smart Money Order Blocks Detector derek
This script helps identify potential Order Blocks (institutional price zones) on the chart based on Breaks of Structure (BOS).
It automatically highlights demand zones (green blocks) and supply zones (red blocks), making it easier to read institutional market flow.
Ideal for traders using Smart Money Concepts (SMC) or market structure analysis.
Compatible with any asset and timeframe.
🔹 Bullish OB = potential buy entry zone
🔹 Bearish OB = potential sell or resistance zone
Author: Derek 🧠💹
Supertrend Opposite Band Line Onlywhen super trend changes Trend , its important to wait for crossing the Price line of opposite Band so i have written this script . this will help you Traders for sure