Session important reference linesThis indicator automatically plots crucial price reference points for the Regular Trading Hours (RTH) session, including Yesterday's High/Low/Close, Session Open, Midpoint, and the Initial Balance (IB) range with its 2x extension .
In the example above the lines are:
Dotted green - Today's open price
Dashed yellow - Today's mid line
Solid yellow - Initial Balance high/low
Dotted yellow - Initial Balance extension
Dotted dark green - Previous session high
Dotted dark red - Previous session low
Dotted orange - Previous session close
Chỉ báo và chiến lược
EMA CrossEMA Cross indicator is a multi-EMA indicator that saves indicator quota when you need several EMAs.
ADX_RDADX_RD - Average Directional Index (Ryan DeBraal)
This script plots a refined version of the **ADX (Average Directional Index)**,
used to measure trend strength regardless of trend direction. It includes
custom smoothing, modified DM (Directional Movement) logic, dynamic coloring,
and a built-in 20-level threshold.
FEATURES
- Calculates +DI, –DI, and ADX using standard Wilder smoothing (RMA).
- Signal color turns **white** when ADX < 20 (low-trend or choppy conditions).
- Signal color turns **blue** when ADX >= 20 (trend strengthening).
- Horizontal dotted reference line at **20**, a widely used threshold:
ADX < 20 → weak or ranging market
ADX > 20 → strengthening trend
- Works on all timeframes, supports custom smoothing lengths.
PURPOSE
This indicator helps identify when a market is trending vs when it is flat.
It does not indicate direction by itself — only the strength of the move —
making it ideal for confirming breakout setups, trend-following entries,
and filtering out low-probability trades during chop.
,,,//@version=5
indicator(title='Moving Average Exponential', shorttitle='EMA', overlay=true, timeframe='')
len = input.int(6, minval=1, title='Length')
len1 = input.int(13, minval=1, title='Length')
len2 = input.int(24, minval=1, title='Length')
len3 = input.int(55, minval=1, title='Length')
src = input(close, title='Source')
offset = input.int(title='Offset', defval=0, minval=-500, maxval=500)
out = ta.ema(src, len)
out1 = ta.ema(src, len1)
out2 = ta.ema(src, len2)
out3 = ta.ema(src, len3)
plot(out, title='EMA', color=color.new(color.yellow, 0), offset=offset)
plot(out1, title='EMA1', color=color.new(color.blue, 0), offset=offset)
plot(out2, title='EMA2', color=color.new(color.red, 0), offset=offset)
plot(out3, title='EMA2', color=color.new(#19e82a, 0), offset=offset)
Market Regime & Bias Assistant [Prototype v1.1]
Market Regime & Bias Assistant
### **Overview**
The **Market Regime & Bias Assistant** is an all-in-one trend filtration and trading system designed to keep traders on the right side of the market. Instead of relying on a single moving average, this indicator combines **ADX (Trend Strength)**, **Multi-Timeframe EMAs**, **RSI**, and **Volume Spread Analysis (VSA)** concepts to generate a quantitative "Confidence Score" for the current market bias.
It automatically adapts its settings based on your timeframe (Intraday vs. Swing) and provides clear visual cues via background shading, candle coloring, and a data panel.
---
### **Key Features**
* **Auto-Adaptive Modes:** Automatically switches between "Intraday" and "Swing" settings based on your timeframe.
* *Intraday:* Uses faster EMAs (Aggressive 9/30 or Conservative 20/50) and VWAP.
* *Swing:* Uses standard 20/50 EMAs with 200/800 long-term context moving averages.
* **Market Regime Detection:** Identifies if the market is in a **Trend (Bull/Bear)** or a **Range (Neutral)** using a combination of ADX thresholds and EMA alignment.
* **Confidence Scoring (0-100):** A proprietary algorithm that scores the quality of the trend based on RSI alignment, Volume confirmation, and Long-term EMA context.
* **Vector Volume Candles:** Color-coded candles to highlight institutional activity (High Volume) vs. Climactic Volume (Exhaustion).
* **Pullback Signals:** "L" and "S" markers indicating high-probability entries after a pullback into the EMA value zone.
* **Data Dashboard:** A bottom-right panel displaying the current Mode, Regime, Bias, and quantitative Confidence Score.
---
### **How to Read the Visuals**
#### **1. Background Colors (The Regime)**
* **Green Background:** Confirmed **Bullish Trend**. Only look for Longs.
* **Red Background:** Confirmed **Bearish Trend**. Only look for Shorts.
* **Gray Background:** **Neutral / Range**. The market is chopping or consolidating. Stand aside or trade strictly mean-reversion.
#### **2. Candle Colors (Vector Volume)**
* **Green/Red Borders:** Normal volume.
* **Blue / Fuchsia:** **High Volume (1.2x Average)**. Indicates institutional interest or a breakout.
* **Lime / Bright Red:** **Climactic Volume (1.8x Average)**. Indicates potential exhaustion or a stopping volume event.
#### **3. The EMAs**
* **Fast/Slow Lines:** Show the immediate trend direction.
* **Gray/White Lines:** The 200 and 800 EMAs. These act as major support/resistance levels and define the "Big Picture" bias.
* **Lime Line (Intraday Only):** The VWAP (Volume Weighted Average Price).
---
### **How to Use This Indicator**
**Step 1: Check the Regime**
Look at the background color and the Dashboard panel. Is the Trend Strength "Strong" or "Very Strong"?
* *Rule:* Do not take trend-following trades if the Regime is "Range/Neutral."
**Step 2: Check the Confidence**
The dashboard calculates a score from 0 to 100.
* **High Confidence (>67):** All systems go. Alignment of RSI, Volume, and Trend.
* **Medium Confidence (34-66):** Caution warranted. Usually implies divergence in RSI or low volume.
* **Low Confidence (<34):** The trend is weak or failing.
**Step 3: Wait for the Setup (The Arrows)**
The indicator looks for pullbacks into the "Value Zone" (the space between the Fast and Slow EMA).
* **Triangle Up (L):** Appears when price pulls back into the zone during a Bull trend, then bounces out with volume confirmation.
* **Triangle Down (S):** Appears when price rallies into the zone during a Bear trend, then rejects lower.
---
### **Settings & Customization**
* **Mode:** Default is "Auto," but you can force "Intraday" or "Swing" manually.
* **Intraday Style:** Choose between "Aggressive" (9 EMA / 30 EMA) for scalping or "Conservative" (20 EMA / 50 EMA) for day trading.
* **ADX Threshold:** Adjusts how strict the trend filter is (Default: 20).
* **Visual Toggles:** Turn off/on the Panel, Background shading, or Vector candles to clean up your chart.
### **Alerts**
This script comes with built-in alert conditions for:
1. **Bullish Regime Start**
2. **Bearish Regime Start**
3. **High-Confidence Setup Detected**
BTC Price Prediction Model [Global PMI]🇨🇳 中文说明 (Chinese Version)
1. 简介
本指标由 GW Capital 使用 Gemini Vibe Coding 技术制作。利用先进的 AI 编程能力,将复杂的宏观经济模型重构为可执行的交易工具。
2. 致谢
特别感谢模型原作者 Marty Kendall。他对这一算法的研究奠定了基础,揭示了比特币价格与宏观经济因素之间的深层联系。
3. 模型原理与公式
该模型基于四大宏观经济支柱计算比特币的“公允价值”。它假设比特币的价格是全球流动性、网络安全性、风险偏好和经济周期的函数。
模型公式
$$\ln(BTC) = \alpha + (1 + \beta \cdot PMI_{z}) \times $$
全球流动性 (M2): 美、中、欧、日四大经济体的 M2 总量(折算为美元)。代表可流入资产的法币资金池。
网络安全性 (Hashrate): 比特币全网算力,代表网络的物理安全性和实用价值。
风险偏好 (S&P 500): 作为全球风险情绪的代理指标。
经济周期 (PMI Z-Score): 美国制造业 PMI 用于根据商业周期(扩张 vs 收缩)来放大或抑制估值。
4. 指标用法
指标会在图表上绘制 公允价值 (白线) 以及基于统计偏差 (Z-Score) 的四条情绪带。
情绪区间
🚨 极度贪婪 (红色区域): 价格 > +0.3 标准差。历史上通常预示市场顶部或情绪过热。
⚠️ 一般贪婪 (橙色区域): 价格 > +0.15 标准差。多头动能强劲,但需谨慎。
⚖️ 公允价值 (白线): 基于宏观数据的理论“正确”价格。
😨 一般恐惧 (青色区域): 价格 < -0.15 标准差。进入低估区域。
💎 极度恐惧 (绿色区域): 价格 < -0.3 标准差。历史上通常是代际级别的买入机会。
情绪评分 (0-100)
100: 极度贪婪 (顶部)
50: 公允价值
0: 极度恐惧 (底部)
5. 使用建议
周期: 仅限日线 (1D) 或周线 (1W)。
原因: 底层数据源(M2, PMI)是月度更新的。标普500和算力是日度更新的。在日内图表(如15分钟、1小时、4小时)上使用此指标没有任何意义,因为基本面数据不会变化得那么快。
长期视角: 这是一个宏观周期指标,旨在识别数月甚至数年的周期顶部和底部,而非用于日内交易。
6. 免责声明
本指标仅供教育和参考使用,不构成任何财务建议。该模型依赖于历史相关性,未来可能不再适用。所有交易均涉及风险。GW Capital 及制作者不对任何交易损失承担责任。
🇺🇸 English Guide (英文说明)
1. Introduction
This indicator was created by GW Capital using Gemini Vibe Coding technology. It leverages advanced AI coding capabilities to reconstruct complex macroeconomic models into actionable trading tools.
2. Credits
Special thanks to the original model author, Marty Kendall. His research into the correlation between Bitcoin's price and macroeconomic factors lays the foundation for this algorithm.
3. Model Principles & Formula
This model calculates the "Fair Value" of Bitcoin based on four key macroeconomic pillars. It assumes that Bitcoin's price is a function of Global Liquidity, Network Security, Risk Appetite, and the Economic Cycle.
The Formula
$$\ln(BTC) = \alpha + (1 + \beta \cdot PMI_{z}) \times $$
Global Liquidity (M2): Sum of M2 supply from US, China, Eurozone, and Japan (converted to USD). Represents the pool of fiat money available to flow into assets.
Network Security (Hashrate): Bitcoin's hashrate, representing the physical security and utility of the network.
Risk Appetite (S&P 500): Used as a proxy for global risk sentiment.
Economic Cycle (PMI Z-Score): US Manufacturing PMI is used to amplify or dampen the valuation based on where we are in the business cycle (Expansion vs. Contraction).
4. How to Use
The indicator plots the Fair Value (White Line) and four sentiment bands based on statistical deviation (Z-Score).
Sentiment Zones
🚨 Extreme Greed (Red Zone): Price > +0.3 StdDev. Historically indicates a market top or overheated sentiment.
⚠️ Greed (Orange Zone): Price > +0.15 StdDev. Bullish momentum is strong but caution is advised.
⚖️ Fair Value (White Line): The theoretical "correct" price based on macro data.
😨 Fear (Teal Zone): Price < -0.15 StdDev. Undervalued territory.
💎 Extreme Fear (Green Zone): Price < -0.3 StdDev. Historically a generational buying opportunity.
Sentiment Score (0-100)
100: Maximum Greed (Top)
50: Fair Value
0: Maximum Fear (Bottom)
5. Usage Recommendations
Timeframe: Daily (1D) or Weekly (1W) ONLY.
Reason: The underlying data sources (M2, PMI) are updated monthly. The S&P 500 and Hashrate are daily. Using this indicator on intraday charts (e.g., 15m, 1h, 4h) adds no value because the fundamental data does not change that fast.
Long-Term View: This is a macro-cycle indicator designed for identifying cycle tops and bottoms over months and years, not for day trading.
6. Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. The model relies on historical correlations which may not hold true in the future. All trading involves risk. GW Capital and the creators assume no responsibility for any trading losses.
S&P Options Patterns Detector (6-20 Candles)Pattern detector for S&P options. Detects alerts for bullish or bearish signals for any stock in S&P 500
SessionThemeTokensLibrary "SessionThemeTokens"
Theme tokens to use in session indicator
bias_color(code)
Maps bias score to corresponding theme color
Parameters:
code (int) : Bias code as integer: +2 (Strong Bullish), +1 (Bullish), 0 (Neutral), -1 (Bearish), -2 (Strong Bearish)
Returns: Color value from the theme palette corresponding to the bias score
DCA Ladder CalculatorThis script is a DCA (Dollar-Cost Averaging) Ladder Calculator with Risk & Leverage Management baked in.
It’s designed for both LONG and SHORT positions, and helps you:
🎯 Strategically scale into positions across multiple entry points
🔐 Control risk exposure via defined capital allocation
⚖️ Utilize leverage responsibly — for efficiency, not destruction
🧮 Visualize risk, stop loss level, and entry distribution
🔁 Adapt to trend reversals or key zones, especially when combined with reversal indicators or higher timeframe signals
🧠 How It Works
This tool takes a capital allocation approach to building a ladder of positions:
1. You define:
- Portfolio value
- Risk per trade (as %)
- Leverage
- Number of DCA levels
- Entry multiplier (e.g. 1x, 2x, 4x...)
2. The script then:
- Calculates total margin to risk = Portfolio × Risk %
- Calculates total leveraged position size = Margin × Leverage
- Distributes entries according to exponential weights (1x, 2x, 4x...), totaling 7 for 3 levels
- Calculates per-entry:
- Entry price (based on price zone spacing)
- Multiplier
- Exact margin per entry
- Leverage per entry (margin × leverage)
- Computes:
- Average entry price (margin-weighted)
- Approximate stop loss level based on recent ATR and price structure
- % drawdown to SL
- Total margin and position size
3. Displays all this in a clean on-chart table.
📈 How to Use It
1. Apply the indicator to a chart (default: 1D — ideal for clean zones).
2. Configure your:
- Portfolio Value (total trading capital)
- Risk per Trade (%) (your acceptable loss)
- Leverage (exchange or strategy-based)
- DCA Levels (e.g. 3 = anchor + 2 entries)
- Multiplier (typically 2.0 for doubling)
3. Choose LONG or SHORT mode depending on direction.
4. The table will show:
- Entry price ladder
- Margin used per entry
- Total position size
- Approx. stop loss (where your full risk is defined)
Use in conjunction with price action, S/R zones, trendline breaks, volume divergence, or reversal indicators.
✅ Best Practices for Using This Tool
- Leverage is a tool, not a weapon. Use it to scale smartly — not recklessly.
- Use fewer, higher-conviction entries. Don’t blindly ladder; combine with price structure and signals.
- Stick to your risk percent. Never risk more than you can afford to lose. Let this calculator enforce discipline.
- Combine with other confirmation tools, like RSI divergence, momentum shifts, OB zones, etc.
- Avoid martingale-style over-exposure. This is not a gambling tool — it’s for capital efficiency.
🛡️ What This Tool Does NOT Do
- This is not a trade signal indicator.
- It does not place trades or auto-manage positions.
- It does not replace personal responsibility or strategy — it's a tool to help apply structure.
⚠️ Disclaimer
This script is for educational and informational purposes only.
It does not constitute financial advice, nor is it a recommendation to buy or sell any financial instrument.
Always consult a licensed financial advisor before making investment decisions.
Use of leverage involves high risk and can lead to substantial losses.
The author and publisher assume no liability for any trading losses resulting from use of this script.
Sessions_LibraryLibrary "Sessions_Library"
in_session(spec)
Parameters:
spec (SessionSpec)
session_started(spec)
Parameters:
spec (SessionSpec)
session_ended(spec)
Parameters:
spec (SessionSpec)
is_hugging(aHi, aLo, bHi, bLo, inclusive)
Parameters:
aHi (float)
aLo (float)
bHi (float)
bLo (float)
inclusive (bool)
make(name, startHour, startMin, endHour, endMin)
Parameters:
name (string)
startHour (int)
startMin (int)
endHour (int)
endMin (int)
asia()
london()
newyork()
SessionSpec
Fields:
name (series string)
startMin (series int)
endMin (series int)
UM VIX30/VIX Regime & Volatility Roll Yield
SUMMARY
A front-of-the-curve volatility indicator that compares spot VIX to a synthetic 30-day VIX (VIX30) built from VX1/VX2 futures, revealing early volatility pressure, regime shifts, and roll-yield transitions. Ideal for timing long/short volatility trades in VXX, UVXY, SVIX, and VIX futures.
DESCRIPTION
This indicator compares spot VIX to a synthetic 30-day constant-maturity volatility estimate (“VIX30”) built from VX1 and VX2 futures. The VIX30/VIX Ratio reveals short-term volatility pressure and regime shifts that traditional VX1/VX2 roll-yield alone often misses.
VIX30 is constructed using true calendar-day interpolation between VX1 and VX2, with VX1% and VX2% showing the real-time weights behind the 30-day volatility anchor. The table displays the volatility regime, the VX1/VX2 weights, spot-term roll yield (VIX30/VIX), and futures-term roll yield (VX2/VX1), giving a complete, front-of-the-curve perspective on volatility dynamics.
Use this to spot early volatility expansions, collapsing contango, and regime transitions that influence VXX, UVXY, SVIX, VX options, and VIX futures.
HOW IT WORKS
The script calculates the exact calendar days to expiration for the front two VIX futures. It then applies linear interpolation to blend VX1 and VX2 into a 30-day constant-maturity synthetic volatility measure (“VIX30”). Comparing VIX30 to spot VIX produces the VIX30/VIX Ratio, which highlights short-term volatility pressure and regime direction. A full term-structure table summarizes regime, VX1%/VX2% weights, and both spot-term and futures-term roll yields.
DEFAULT SETTINGS
VX1! and VX2! are used by default for front-month and second-month futures. These may be manually overridden if TradingView rolls contracts early. The default timeframe is 30 minutes, and the VIX30/VIX Ratio uses a 21-period EMA for regime smoothing. The historical threshold is set to 1.08, reflecting the long-run average relationship between VIX30 and VIX.
SUGGESTED USES
• Identify early volatility expansions before they appear in VX1/VX2 roll yield.
• Confirm contango/backwardation shifts with front-of-curve context.
• Time long/short volatility trades in VXX, UVXY, SVIX, and VX options.
• Monitor regime transitions (Low → Cautionary → High) to anticipate trend inflections.
• Combine with price action, Nadaraya-Watson trends, or MA color-flip systems for higher-confidence entries.
• MA red → green flips may signal opportunities to short volatility or increase equity exposure.
• MA green → red flips may signal opportunities to go long volatility, reduce equity exposure, or take short-equity positions.
ALERTS
Alerts trigger when the ratio crosses above or below the historical threshold or when the moving-average slope flips direction. A green flip signals rising volatility pressure; a red flip signals fading or collapsing volatility. These alert conditions can be used to automate long/short volatility bias shifts or trade-entry notifications.
FURTHER HINTS
• Increasing orange/red in the table suggests an emerging higher-volatility environment.
• SVIX (inverse volatility ETF) can trend strongly when volatility decays; on a 6-hour chart, MA green flips often align with attractive short-volatility opportunities.
• For long-volatility trades, consider shrinking to a 30-minute chart and watching for MA green → red flips as early entry cues.
• Experiment with different timeframes and smoothing lengths to match your trading style.
• Higher VIX30/VIX and VX2/VX1 roll yields generally imply faster decay in VXX, UVXY, and UVIX — or stronger upside momentum in SVIX.
• The author likes the 6-hour chart for short vol, and the 30-minute chart for long vol. Long vol trades are fast and furious so you want to be quick.
THE_BiasLib_publicLibrary "THE_BiasLib_public"
Bias calculation library for T.H.E. indicator pack.
Provides consistent higher-timeframe bias signals (Weekly, Daily, 4H, 15m)
and a risk adjustment engine based on multi-timeframe alignment.
Used by the Bias Panel indicator and Zone Advisor, but can be imported
into any script that needs access to the same bias logic.
Altcoin Relative Macro StrengthAltcoin Relative Macro Strength
Overview
The Altcoin Relative Macro Strength indicator measures the altcoin market's price performance relative to global macroeconomic conditions. By comparing TOTAL3ES (total altcoin market capitalization excluding Bitcoin, Ethereum and stable coins) against a composite macro trend, the indicator identifies periods of relative overvaluation and undervaluation.
Methodology
Global Macro Trend Calculation:
The macro trend synthesizes three primary components:
- ISM PMI – A proxy for the business cycle phase
- Global Liquidity – An aggregate measure of major central bank balance sheets and broad money supply
- IWM (Russell 2000) – Small-cap equity exposure, reflecting risk-on/risk-off market sentiment
Global Liquidity is calculated as:
Fed Balance Sheet - Reverse Repo - Treasury General Account + U.S. M2 + China M2
The final Global Macro Trend is:
ISM PMI × Global Liquidity × IWM
Theoretical Framework:
The global macro trend integrates liquidity expansion/contraction with business cycle dynamics and small-cap equity performance. The inclusion of IWM reflects altcoins' tendency to behave as high-beta risk assets, exhibiting sensitivity similar to small-cap equities. This composite exhibits strong directional correlation with altcoin market movements, capturing the risk-on/risk-off dynamics that drive altcoin performance.
Interpretation
Primary Signal:
The histogram displays the rolling percentage change of TOTAL3ES relative to the global macro trend (default: 21-period average). Positive divergence indicates altcoins are outperforming macro conditions; negative divergence suggests underperformance relative to the underlying economic and risk environment.
Data Tables:
Alts/Macro Change – Percentage deviation of the altcoin market's average value from the Global Macro Trend's average over the specified period
Macro Trend – Directional assessment of the macro trend based on slope and trend agreement:
🔵 BULLISH ▲ – Positive slope with upward trend
⚪ NEUTRAL → – Slope and trend direction disagree
🟣 BEARISH ▼ – Negative slope with downward trend
Macro Slope – Percentage rate of change in the global macro trend
Altcoin Valuation – Relative valuation category based on TOTAL3/Macro deviation:
🟢 Extreme Discount / Deep Discount / Discount
🟡 Fair Value
🔴 Premium / Large Premium / Extreme Premium
TOTAL3ES Mcap – Current total altcoin market capitalization (in billions)
Visual Components:
📊 Histogram: Alts/Macro Change
🟢 Green = Positive deviation (altcoins outperforming)
🔴 Red = Negative deviation (altcoins underperforming)
📈 Macro Slope Line
Color-coded to match trend assessment
Scaled for visibility (adjustable in settings)
Application
This indicator is designed to identify mean reversion opportunities by highlighting periods when the altcoin market materially diverges from fundamental macro and risk conditions. Extreme positive values may indicate overvaluation; extreme negative values may signal undervaluation relative to the prevailing economic and risk appetite backdrop.
Strategy Considerations:
- Identify extremes: Look for periods when the histogram reaches elevated positive or negative levels
- Assess valuation: Use the Altcoin Valuation reading to gauge relative over/undervaluation
Confirm with risk sentiment: Check whether macro conditions and risk appetite support or contradict current price levels
- Mean reversion: Consider that significant deviations from trend historically tend to revert
Note: This indicator identifies relative valuation based on macro conditions and risk sentiment—it does not predict price direction or timing.
Settings
Lookback Period – 21 bars (default) – Number of bars for calculating rolling averages
Macro Slope Scale – 3.0 (default) – Multiplier for macro slope line visibility
Daily Pivots (17:00 OHLC)These pivots are based on OHLC of previous 17:00 CT day (Futures reopen). If it doesn't look right try to click three dots on indicator and select "pin to right scale".
Daily Settlement High LowThis script extends a line from the high and low of the 14:59:30 CT Candle which is the CME daily settlement window for the SP500 and Emini500. Only works on the 30 second chart.
CharisTrend Indicatorthis trading indicator uses the following parameters EMA LOW (25 34 89 110 355 and 480) SMA(14 and 28) and Supertrend(14 3) for trading analysis and BUY/SELL Signals when the trade aligns.
SDFADE nuvolébasic script to signal mean reversions and alert fades when stretched to +/-2.5VWAP Standard Deviation
VWAP 1SD 2SD yasurferThis custom intraday indicator is designed to provide a detailed understanding of market equilibrium, volatility expansion, and trend structure by combining Session VWAP, Standard Deviation bands, and multi-timeframe EMAs. The script calculates cumulative volume-weighted price data throughout the trading day and automatically resets at the start of each new session. This ensures that the Session VWAP reflects only current-day trading activity, making it highly relevant for scalpers, day traders, and intraday swing setups.
The ±2 Standard Deviation bands illustrate where price is statistically stretched. These zones often act as areas of exhaustion, liquidity grabs, or potential momentum continuation points. By tracking variance around VWAP, the indicator helps traders quickly identify whether price is trading within a normal distribution or pushing into extreme territory.
A dynamic label displays the real-time percentage distance from VWAP, allowing traders to assess how far price has deviated from fair value. This is particularly useful for identifying overextended moves, mean-reversion opportunities, or breakout conditions.
The addition of EMA 50, EMA 200, and EMA 325 provides structural trend context—helping traders evaluate higher-timeframe alignment and potential confluence with VWAP levels. Overall, this indicator enhances clarity, timing, and decision-making by blending statistical tools with traditional trend analysis.
EMA Signals + HTF S/R + Diagonal (5-15m)Описание на русском
Скрипт строит две экспоненциальные скользящие средние (быструю и медленную EMA), а также SMA20 и SMA50, и использует их для генерации пошаговых сигналов входа. При пересечении EMA9 и EMA12 вверх выше SMA20 под свечой появляется зелёный круг, а когда после этого обе EMA оказываются выше SMA50, под ценой появляется плашка LONG; аналогично при пересечении вниз ниже SMA20 рисуется красный круг над свечой, и после ухода EMA под SMA50 формируется плашка SHORT.
Горизонтальные зоны поддержки и сопротивления вычисляются по пивотам старшего таймфрейма (по умолчанию 1 час) через request.security, каждая зона рисуется прямоугольником на графике и сопровождается подписью с ценой уровня и текущим количеством касаний ценой (Touches: N), которое считается на активном ТФ. Дополнительно скрипт строит одну диагональную линию поддержки: она протягивается от последнего ключевого минимума (pivot low с заданной «силой») к текущей цене и динамически обновляется при появлении нового важного минимума, рядом с линией отображается подпись Trend.
Description in English
This script combines EMA‑based signals, dynamic higher‑timeframe support/resistance zones, and a diagonal trendline from the latest key swing low. It plots two exponential moving averages (fast and slow EMA) along with SMA20 and SMA50, and uses them to create step‑by‑step entry signals: when EMA9 crosses above EMA12 while both are above SMA20, a green circle is shown below the bar, and once both EMAs move above SMA50 after that, a LONG label is printed below price; conversely, when EMA9 crosses below EMA12 while both are below SMA20, a red circle appears above the bar, and after both EMAs move below SMA50, a SHORT label is displayed above price.
Horizontal support and resistance zones are derived from pivot highs and lows on a higher timeframe (1‑hour by default) using request.security; each zone is drawn as a rectangle on the chart and annotated with the level price and the current number of touches by price (Touches: N), counted on the active timeframe. In addition, the script plots a single diagonal support line from the most recent key swing low (pivot low with configurable strength) towards the current price, updating it whenever a new important low appears, and shows a small “Trend” label near this line
Daily Range Zones: PDH/PDL with SL/TPThis indicator automatically plots the previous day's High and Low levels and projects dynamic Stop Loss (SL) and Take Profit (TP) zones based on the daily range percentage.
It is designed for traders focusing on daily range breakouts or mean reversion strategies around the Previous Day High (PDH) and Previous Day Low (PDL).
Key Features:
Level 0 & 1: Visualizes the exact High and Low of the reference timeframe (Daily).
Inner Zone (Orange): Calculated inside the range. Acts as a buffer for Stop Loss placement or entry zones for mean reversion.
Outer Zone (Purple): Calculated outside the range (extension). Acts as a primary Take Profit target for breakout trades.
Settings:
Fully customizable percentages for inner and outer zones.
Option to toggle between current day or previous day data.
Works on any timeframe (intraday charts recommended).




















