Session VWAPsThis indicator plots volume-weighted average price (VWAP) lines for three major trading sessions: Tokyo, London, and New York. Each VWAP resets at the start of its session and tracks the average price weighted by volume during that window. You can choose the exact session times, turn individual sessions on or off, and optionally extend each VWAP line until the end of the trading day.
It’s designed to give you a clear view of how price is behaving relative to session-specific value areas. This can help in identifying session overlaps, shifts in price control, or whether price is holding above or below a particular session’s average. The indicator supports futures-style day rollovers and works across markets.
Indicators and strategies
National Financial Conditions Index (NFCI)This is one of the most important macro indicators in my trading arsenal due to its reliability across different market regimes. I'm excited to share this with the TradingView community because this Federal Reserve data is not only completely free but extraordinarily useful for portfolio management and risk assessment.
**Important Disclaimers**: Be aware that some NFCI components are updated only monthly but carry significant weighting in the composite index. Additionally, the Fed occasionally revises historical NFCI data, so historical backtests should be interpreted with some caution. Nevertheless, this remains a crucial leading indicator for financial stress conditions.
---
## What is the National Financial Conditions Index?
The National Financial Conditions Index (NFCI) is a comprehensive measure of financial stress and liquidity conditions developed by the Federal Reserve Bank of Chicago. This indicator synthesizes over 100 financial market variables into a single, interpretable metric that captures the overall state of financial conditions in the United States (Brave & Butters, 2011).
**Key Principle**: When the NFCI is positive, financial conditions are tighter than average; when negative, conditions are looser than average. Values above +1.0 historically coincide with financial crises, while values below -1.0 often signal bubble-like conditions.
## Scientific Foundation & Research
The NFCI methodology is grounded in extensive academic research:
### Core Research Foundation
- **Brave, S., & Butters, R. A. (2011)**. "Monitoring financial stability: A financial conditions index approach." *Economic Perspectives*, 35(1), 22-43.
- **Hatzius, J., Hooper, P., Mishkin, F. S., Schoenholtz, K. L., & Watson, M. W. (2010)**. "Financial conditions indexes: A fresh look after the financial crisis." *US Monetary Policy Forum Report*, No. 23.
- **Kliesen, K. L., Owyang, M. T., & Vermann, E. K. (2012)**. "Disentangling diverse measures: A survey of financial stress indexes." *Federal Reserve Bank of St. Louis Review*, 94(5), 369-397.
### Methodological Validation
The NFCI employs Principal Component Analysis (PCA) to extract common factors from financial market data, following the methodology established by **English, W. B., Tsatsaronis, K., & Zoli, E. (2005)** in "Assessing the predictive power of measures of financial conditions for macroeconomic variables." The index has been validated through extensive academic research (Koop & Korobilis, 2014).
## NFCI Components Explained
This indicator provides access to all five official NFCI variants:
### 1. **Main NFCI**
The primary composite index incorporating all financial market sectors. This serves as the main signal for portfolio allocation decisions.
### 2. **Adjusted NFCI (ANFCI)**
Removes the influence of credit market disruptions to focus on non-credit financial stress. Particularly useful during banking crises when credit markets may be impaired but other financial conditions remain stable.
### 3. **Credit Sub-Index**
Isolates credit market conditions including corporate bond spreads, commercial paper rates, and bank lending standards. Important for assessing corporate financing stress.
### 4. **Leverage Sub-Index**
Measures systemic leverage through margin requirements, dealer financing, and institutional leverage metrics. Useful for identifying leverage-driven market stress.
### 5. **Risk Sub-Index**
Captures market-based risk measures including volatility, correlation, and tail risk indicators. Provides indication of risk appetite shifts.
## Practical Trading Applications
### Portfolio Allocation Framework
Based on the academic research, the NFCI can be used for portfolio positioning:
**Risk-On Positioning (NFCI declining):**
- Consider increasing equity exposure
- Reduce defensive positions
- Evaluate growth-oriented sectors
**Risk-Off Positioning (NFCI rising):**
- Consider reducing equity exposure
- Increase defensive positioning
- Favor large-cap, dividend-paying stocks
### Academic Validation
According to **Oet, M. V., Eiben, R., Bianco, T., Gramlich, D., & Ong, S. J. (2011)** in "The financial stress index: Identification of systemic risk conditions," financial conditions indices like the NFCI provide early warning capabilities for systemic risk conditions.
**Illing, M., & Liu, Y. (2006)** demonstrated in "Measuring financial stress in a developed country: An application to Canada" that composite financial stress measures can be useful for predicting economic downturns.
## Advanced Features of This Implementation
### Dynamic Background Coloring
- **Green backgrounds**: Risk-On conditions - potentially favorable for equity investment
- **Red backgrounds**: Risk-Off conditions - time for defensive positioning
- **Intensity varies**: Based on deviation from trend for nuanced risk assessment
### Professional Dashboard
Real-time analytics table showing:
- Current NFCI level and interpretation (TIGHT/LOOSE/NEUTRAL)
- Individual sub-index readings
- Change analysis
- Portfolio guidance (Risk On/Risk Off)
### Alert System
Professional-grade alerts for:
- Risk regime changes
- Extreme stress conditions (NFCI > 1.0)
- Bubble risk warnings (NFCI < -1.0)
- Major trend reversals
## Optimal Usage Guidelines
### Best Timeframes
- **Daily charts**: Recommended for intermediate-term positioning
- **Weekly charts**: Suitable for longer-term portfolio allocation
- **Intraday**: Less effective due to weekly update frequency
### Complementary Indicators
For enhanced analysis, combine NFCI signals with:
- **VIX levels**: Confirm stress readings
- **Credit spreads**: Validate credit sub-index signals
- **Moving averages**: Determine overall market trend context
- **Economic surprise indices**: Gauge fundamental backdrop
### Position Sizing Considerations
- **Extreme readings** (|NFCI| > 1.0): Consider higher conviction positioning
- **Moderate readings** (|NFCI| 0.3-1.0): Standard position sizing
- **Neutral readings** (|NFCI| < 0.3): Consider reduced conviction
## Important Limitations & Considerations
### Data Frequency Issues
**Critical Warning**: While the main NFCI updates weekly (typically Wednesdays), some underlying components update monthly. Corporate bond indices and commercial paper rates, which carry significant weight, may cause delayed reactions to current market conditions.
**Component Update Schedule:**
- **Weekly Updates**: Main NFCI composite, most equity volatility measures
- **Monthly Updates**: Corporate bond spreads, commercial paper rates
- **Quarterly Updates**: Banking sector surveys
- **Impact**: Significant portion of index weight may lag current conditions
### Historical Revisions
The Federal Reserve occasionally revises NFCI historical data as new information becomes available or methodologies are refined. This means backtesting results should be interpreted cautiously, and the indicator works best for forward-looking analysis rather than precise historical replication.
### Market Regime Dependency
The NFCI effectiveness may vary across different market regimes. During extended sideways markets or regime transitions, signals may be less reliable. Consider combining with trend-following indicators for optimal results.
**Bottom Line**: Use NFCI for medium-term portfolio positioning guidance. Trust the directional signals while remaining aware of data revision risks and update frequency limitations. This indicator is particularly valuable during periods of financial stress when reliable guidance is most needed.
---
**Data Source**: Federal Reserve Bank of Chicago
**Update Frequency**: Weekly (typically Wednesdays)
**Historical Coverage**: 1973-present
**Cost**: Free (public Fed data)
*This indicator is for educational and analytical purposes. Always conduct your own research and risk assessment before making investment decisions.*
## References
Brave, S., & Butters, R. A. (2011). Monitoring financial stability: A financial conditions index approach. *Economic Perspectives*, 35(1), 22-43.
English, W. B., Tsatsaronis, K., & Zoli, E. (2005). Assessing the predictive power of measures of financial conditions for macroeconomic variables. *BIS Papers*, 22, 228-252.
Hatzius, J., Hooper, P., Mishkin, F. S., Schoenholtz, K. L., & Watson, M. W. (2010). Financial conditions indexes: A fresh look after the financial crisis. *US Monetary Policy Forum Report*, No. 23.
Illing, M., & Liu, Y. (2006). Measuring financial stress in a developed country: An application to Canada. *Bank of Canada Working Paper*, 2006-02.
Kliesen, K. L., Owyang, M. T., & Vermann, E. K. (2012). Disentangling diverse measures: A survey of financial stress indexes. *Federal Reserve Bank of St. Louis Review*, 94(5), 369-397.
Koop, G., & Korobilis, D. (2014). A new index of financial conditions. *European Economic Review*, 71, 101-116.
Oet, M. V., Eiben, R., Bianco, T., Gramlich, D., & Ong, S. J. (2011). The financial stress index: Identification of systemic risk conditions. *Federal Reserve Bank of Cleveland Working Paper*, 11-30.
Recent Pullback Percentage//@version=5
indicator("Recent Pullback Percentage", shorttitle="Pullback %", format=format.percent)
// 定義回顧期間
lookbackPeriod = input.int(60, title="Lookback Period")
// 找到近期最高價
highestHigh = ta.highest(high, lookbackPeriod)
// 計算回檔百分比
pullbackPercent = ((close - highestHigh) / highestHigh)
plot(pullbackPercent, title="Pullback Percentage")
Belev Echad IndicatorSmart Indicator showing SMA (20, 50, 100, 200), ATR, RSI values as well as the respected company's name as a watermark for educational purposes in Belev Echad.
CPR by myBiniyogThis is a clean, professional CPR (Central Pivot Range) + Pivot Points indicator built using Pine Script v6.
🔹 What it plots:
• Central Pivot Range (Pivot, TC, BC)
• Daily, Weekly, and Monthly pivot levels
• Classic Support (S1, S2, S3) and Resistance (R1, R2, R3)
🔹 Customization:
• Enable/disable CPR or pivot levels separately
• Toggle weekly and monthly pivot visibility
• Color-coded: Blue for CPR, Green for supports, Red for resistances
• Weekly levels are plotted as crosses, monthly as circles
🔹 Trading Ideas:
• Narrow CPR suggests breakout potential
• Price above CPR = bullish bias, below CPR = bearish
• Use pivot levels for intraday support/resistance reference
🎯 Ideal for intraday, swing, and positional traders looking to track dynamic support-resistance zones using CPR-based logic.
Built with ❤️ by **myBiniyog**
⚠️ For educational use only. This indicator does not provide buy/sell signals or investment advice.
BG 3:00 / 2:00 Candle High/Low LinesBG 3:00 Candle High/Low Lines
This indicator highlights the high and low of the 1-hour candle exactly at 3:00 AM Bulgarian local time (EET/EEST). Horizontal lines are drawn at these levels and extended 5 hours forward, providing clear visualization of key daily levels.
Key Features:
Automatically adjusts for Bulgarian local time, including daylight saving time changes.
Marks only the 3:00 AM candle on the 1-hour chart for a clean and focused view.
Allows customizable colors for the high and low lines separately.
Lines extend 5 hours ahead to aid in tracking important support and resistance levels.
Ideal for traders analyzing the Bulgarian market or anyone interested in monitoring the 3:00 AM Europe/Sofia time frame.
Use this tool to identify crucial price levels aligned with Bulgarian time and enhance your intraday trading strategy.
RSI + Fibonacci Bollinger BandsIn the current context of the cryptocurrency market, the search for effective trading strategies has become an imperative for investors. In this regard, developing completely new and innovative scripts in TradingView, with a high probability of profit, represents a stimulating challenge. The following is a proposed strategy that, while it may integrate existing elements of the TradingView ecosystem, establishes a distinctive and avant-garde approach to analyzing the price of Bitcoin against Tether (USDT).
The essence of this script lies in the combination of analytical tools that are not usually joined in common practice. One can start from traditional indicators, such as Bollinger Bands and the Relative Strength Index (RSI), but their implementation must be revisited to obtain an unprecedented result. Instead of using these indicators conventionally, it is suggested to create an adaptive divergence indicator that not only detects overbought or oversold conditions, but also adjusts its parameters based on the recent volatility of the market.
The proposal focuses on a system that uses a 50-period exponential moving average as a baseline, combined with Bollinger Bands to establish support and resistance levels. However, instead of simply observing the breaking of these bands, buy and sell signals would be implemented based on corroborations from the volatility-adjusted RSI. This approach would allow capturing trend changes more efficiently and with minimal delay in the execution of orders.
In addition, an alert system could be included that notifies the trader of divergences between the price and the RSI, which could increase the chances of anticipating crucial movements in the market. The implementation of this functionality would be carried out through the use of Pine Script version 6, which would guarantee optimized and modern code.
In conclusion, the creation of an innovative script for analyzing the price of Bitcoin against USDT in TradingView should focus on the development of synergistic strategies that transcend conventional methods. The combination of well-established indicators, adapted to the dynamic conditions of the market, can offer traders a valuable tool in their arsenal. Innovation, in this area, is essential to adapt to a constantly changing environment and maximize profit opportunities.
Weekend Trap
Weekend Trap Indicator
A comprehensive weekend range analysis tool designed to identify and track low-liquidity weekend price movements with advanced market maker detection.
What is the Weekend Trap?
The Weekend Trap refers to price ranges established during low-liquidity weekend periods (Saturday 5:00 AM to Monday 5:00 AM Perth time) when institutional trading is minimal.
Key Features
📊 Weekend Range Detection
Automatically identifies weekend periods based on Perth timezone
Creates visual rectangles showing weekend high/low ranges
Displays 50% midline for key pivot levels
Configurable range cutoff (default: Sunday 3:00 PM)
🎯 Advanced Market Maker Detection
PVSRA-style volume analysis for institutional activity identification
4-color coding system:
🟢 Lime: 200% Bull volume (Peak volume + bullish candle)
🔴 Red: 200% Bear volume (Peak volume + bearish candle)
🔵 Blue: 150% Bull volume (Rising volume + bullish candle)
🟣 Fuchsia: 150% Bear volume (Rising volume + bearish candle)
Weighted volume calculation for better peak detection
Circles positioned above bars for clear visualization
📈 Range Analytics
Clean range labels showing:
Absolute price range
Percentage movement
Historical analysis with configurable lookback period
Current weekend tracking with real-time updates
Settings Overview
Core Settings
Weeks to Backtest (1-52): Number of completed weekends to display
Show Weekend Trap Rectangles: Toggle rectangle visibility
Use Wicks for Rectangle Height: Include wicks vs. body-only ranges
Sunday Range Cutoff Hour: When to stop updating weekend range
Visual Customization
Rectangle colors and borders
Market maker marker sizes (tiny to large)
PVSRA color scheme for different volume levels
Label display options
Market Maker Detection
Automatic PVSRA analysis during weekend periods
150% threshold: Volume ≥ 150% of 10-period average
200% threshold: Volume ≥ 200% of average OR weighted volume peak
Real-time detection with immediate visual feedback
How to Use
Add to your chart (works on any timeframe, recommended: 1H-4H)
Set your preferred lookback period (default: 4 weeks)
Observe weekend ranges and note market maker activity
Monitor volume spikes indicated by colored circles
Analysis Applications
Weekend Range Analysis
Identify price ranges during low-liquidity periods
Track historical weekend price movements
Analyze range size and frequency patterns
Market Maker Detection
Identify institutional accumulation/distribution
Spot manipulation during low-liquidity periods
Analyze volume patterns and anomalies
Historical Pattern Recognition
Weekend range comparison across multiple periods
Multiple timeframe analysis capability
Volume pattern identification
Technical Details
Timezone: Australia/Perth (GMT+8)
Weekend Period: Saturday 5:00 AM → Monday 5:00 AM
Volume Analysis: 10-period moving average baseline
Weighted Volume: Volume × (High - Low) for peak detection
Object Management: Automatic cleanup based on lookback period
Best Practices
Use on liquid markets (major forex pairs, crypto, indices)
Adjust lookback period based on analysis timeframe
Monitor during Asia-Pacific trading hours for best results
Consider fundamental events that may affect weekend gaps
Credits
Volume analysis inspired by PVSRA (Price Volume Spread Range Analysis) methodology for institutional activity detection.
This indicator is designed for educational and analysis purposes.
SuperPerformance_V1.24SuperPerformance V1.24 - Advanced Performance Analysis Indicator
🎯 CORE FEATURES
📊 Performance Analysis
• Stock vs Index comparison across 6 timeframes (1D to 200D)
• Conviction scoring system (Perfect/Solid/Good/Ok/Weak/Poor)
• Real-time outperformance tracking with ✓/✗ indicators
🏢 Sector Analysis
• Top 5 sector ranking with live performance data
• 10 Indian market sectors tracking (PHARMA, TECH, FINANCE, etc.)
• Automatic sector identification for current stock
📈 Technical Tools
• Triple Moving Averages (SMA/EMA/WMA/HMA)
• Distance from MA analysis with percentage/spread calculations
• Enhanced hover tooltips showing distance info
🔔 Smart Alerts
• Dynamic Circuit Breakers (20%/10%/5%/2%) that adapt to volatility
• Extreme distance alerts when price deviates significantly from MA
🎨 Visual Interface
• 4 customizable tables: Stock Performance, Sector Performance, Distance Analysis, Sector Display
• Dark/Light themes with professional styling
• Flexible positioning - place tables anywhere on chart
• Mini mode for compact display
⚡ Advanced Features
• Real-time data from 10+ Indian indices
• Granular controls - show/hide any columns or rows
• Multiple tooltip methods (Labels/Data Window)
• Professional color coding for quick analysis
🎯 PERFECT FOR:
Indian stock traders, sector rotation analysis, performance monitoring, and technical analysis with institutional-grade features.
📌 KEY BENEFITS:
✅ Multi-timeframe performance tracking
✅ Sector rotation insights
✅ Advanced moving average analysis
✅ Professional-grade visualization
✅ Customizable alerts and notifications
✅ Indian market focus with NSE data integration
🔧 TECHNICAL SPECIFICATIONS:
• Pine Script v5 compatible
• Overlay indicator
• Real-time data processing
• Memory optimized
• Multi-security data support
• Professional color schemes
Previous Day OHLC + Open MarkerPrevious Day OHLC + Open Marker
This indicator is designed to help traders quickly identify the most important price levels from the previous trading session and today’s open. It provides a clean and configurable overlay of the previous day’s OHLC (Open, High, Low, Close) along with the current day's opening price, making it easy to spot price reactions, liquidity sweeps, and confluence zones.
📌 Key Features
✅ Previous Day OHLC Lines
Plots horizontal lines for High (H), Low (L), Open (O), and Close (C) from the previous session
Each line is independently toggleable
Fully customizable in color, transparency, and thickness
✅ Today's Session Open (DO)
Marks the current day's opening price
Helps identify directional bias, trend/momentum shifts, or mean-reversion points
✅ Minimalist Labels for Clarity
Text-only labels like H, L, O, C, and DO — no bulky label boxes
Color-matched to each line for visual simplicity
Optional display to keep charts clean
✅ Session-Based Highlight Zone
Optionally highlights the area between the previous day’s High and Low with a shaded box
Useful for identifying the day’s value area or range breakouts
✅ Smart Alerts
Receive alerts when price crosses any of the levels: PDH, PDL, PDO, PDC, or Today’s Open
Helps you catch key interactions without watching the chart constantly
🧠 Ideal For
Intraday traders using VWAP, order blocks, or liquidity concepts
Swing traders who want to see how current price relates to prior structure
Scalpers looking for clean levels to enter fades, reversals, or breakouts
Anyone applying institutional trading concepts (PDH/PDL sweeps, FVGs, BPRs, etc.)
⚙️ Customization Options
Toggle each level (H/L/O/C/DO) individually
Show or hide labels and highlight zone
Customize color, line thickness, and transparency
Clean layout — no line extensions across the entire chart
🧼 Design Philosophy
This script was created for clarity, speed, and minimalism. It avoids clutter while preserving all the crucial context price action traders need. Labels are informative but unobtrusive, and alerts help automate level tracking.
🛠 Built with Pine Script v5
🔔 Alerts Included
📊 Optimized for both intraday and swing trading
📦 Lightweight and modular by design
Custom MA 5-Line Tool (Fully Adjustable)功能 說明
週期可調 每條線的天數可自訂(3、5、8、13、21 或其他)
可切換類型 可選擇 SMA 或 EMA
線條顏色粗細 每條線都可設定顏色與粗細
顯示控制 可選擇是否顯示每條均線
Feature Description
Custom Periods MA periods (default: 3, 5, 8, 13, 21) can be manually adjusted
Type Selection Choose between SMA or EMA for each line individually
Visibility Control Enable or disable any moving average line
Color & Thickness Settings Customize the color and line width for each MA
day trading check indicatorDay Trading Check Indicator
By Trades per Minute · Creator: Trader Malik
Overview
The Day Trading Check Indicator is an on‐chart status panel that gives you a quick “go/no-go” snapshot of four key metrics—MACD, VWAP, Float, and Bearish Sell-Off—directly in TradingView’s top-right corner. It’s designed for fast decision-making during high-velocity intraday sessions, letting you instantly see whether each metric is “bullish” (green) or “bearish” (red), plus live float data.
What It Shows
Column Description
Metric The name of each metric: MACD, VWAP, Float, Bearish Sell-Off
Status/Value A color-coded status (“GREEN”/“RED” or “YES”/“NO”) or the float value formatted in K/M/B
Metrics & Calculations
MACD (1-Minute)
Calculation: Standard MACD using EMA (12) – EMA (26) with a 9-period signal line, all fetched from the 1-minute timeframe via request.security().
Status:
GREEN if MACD ≥ Signal
RED if MACD < Signal
VWAP (Session-Anchored)
Calculation: Built-in session VWAP (ta.vwap(close)) resets each new trading session.
Status:
GREEN if current price ≥ VWAP
RED if current price < VWAP
Float
Calculation: Retrieves syminfo.shares_outstanding_float (total float), then scales it into thousands (K), millions (M), or billions (B), e.g. “12.3 M.”
Display: Always shown as the absolute float value, white on semi-transparent black.
Bearish Sell-Off
Calculation: Checks the last five 1-minute bars for any “high-volume down” candle (volume above its 20-bar SMA and close < open).
Status:
YES if at least one such bar occurred in the past 5 minutes
NO otherwise
Key Features
Dynamic Table: Automatically shows only the metrics you enable via the Display Options group.
Size Selector: Choose Small, Medium, or Large text for easy visibility.
Clean Styling: Distinct header row with custom background, consistent row shading, centered status text, and a subtle gray border.
Lightweight Overlay: No cluttering plots—just a concise status panel in the corner.
Published by Trader Malik / Trades per Minute
Version: Pine Script v5
Samrat Directional Movement Index with Mediun to track ADX Samrat Directional Movement Index with Mediun to track ADX has a mediun line added for better tracking of ADX and +DI an -DI for traders.Feedback welcome
CPR by myBiniyog“CPR by myBiniyog” plots Central Pivot Range (CPR) and Daily Pivot Points (R1, R2, S1, S2) using clean and intuitive circle markers on price charts. Ideal for intraday traders who rely on key support and resistance zones.
🔹 **CPR Levels**:
- TC (Top Central)
- Pivot
- BC (Bottom Central)
🔹 **Daily Pivot Points**:
- R1 & R2 (Resistance Zones)
- S1 & S2 (Support Zones)
The CPR is based on previous day's OHLC data and can help traders predict:
- Narrow CPR = potential breakout day
- Wide CPR = potential sideways movement
The indicator auto-plots these levels as circles on intraday timeframes (like 5-min or 15-min charts). It's designed to be visually clean and fast to read.
Built in Pine Script v5. Open-source. Free for educational use.
Best suited for Nifty, Bank Nifty, stocks, crypto and forex traders who prefer CPR-based systems.
Made by: myBiniyog
ICT All in One by GtraderICT All-in-One by GTrader – Description
This indicator is designed for traders who follow ICT or Smart Money Concepts. It helps you visualize key market sessions, time-based price levels, and structured macro behaviors in one clean and customizable tool.
The Killzone feature automatically draws session boxes for Asia, London, and New York (including AM, Lunch, and PM sessions). Each box can show the session name, high and low pivots, and can be customized with different colors, transparency levels, and labels.
You can also add horizontal lines at important times like the daily open or New York open. Up to five session open lines can be defined, each with customizable styles, colors, and optional text labels.
In addition, the indicator lets you display vertical time markers. These lines help you track key intraday moments such as killzone entries or important session changes. You can enable up to four of these, each with its own settings.
One of the most powerful features is the macro session tracker. This creates boxes during specific time windows where price action is monitored. It automatically draws the top and bottom price levels during that session and updates them live. It supports up to five macros and works best on lower timeframes like 1-minute, 3-minute, and 5-minute charts.
The entire script respects your selected timezone, so all sessions and times are adjusted accordingly. Everything is customizable—from label sizes and colors to how many days of drawings are shown on your chart.
This script is ideal for traders who rely on time-of-day behavior, structured price action, and ICT methodologies.
Custom Multiple SMAsThe Custom Breakout Indicator provides visual guidance for identifying entry and exit signals within the BreakoutCatcher strategy. It consists of a fan of multiple Simple Moving Averages (SMAs) that make current market conditions visually accessible:
Flat, tightly clustered fan → Market is consolidating
First candle closing outside the fan → Potential entry signal (breakout)
Wide, rapidly expanding fan → Market is overheated, avoid entries
Additionally, the indicator displays a yellow trendline (EMA 100) as an overarching trend filter:
Price above EMA 100 → Consider only long signals
Price below EMA 100 → Consider only short signals
🔗 Part of the BreakoutCatcher strategy – available at: www.twn-trading.com
✔️ Fully functional on all timeframes
Trend+Volume Divergence + Order Block Detector
The best in TF 5M
The script combines an order block detector (inspired by LuxAlgo) with a trend and volume divergence entry system.
The first part identifies both bullish and bearish order blocks based on volume pivots. These are typically zones where price has shown a high probability of reversal or strong reaction.
The order block algorithm uses recent volume pivots to detect likely institutional trading zones, marking them with colored boxes (green for bullish, red for bearish).
Bullish order blocks form when the price shows a volume-based pivot to the downside, suggesting possible accumulation at support.
Bearish order blocks appear at volume pivots to the upside, indicating likely distribution or resistance.
The script removes (“mitigates”) these order blocks when price action confirms that the zone is no longer respected.
Average (midpoint) order block levels are drawn as dashed or dotted lines based on your settings for visualization.
Whenever a new order block forms or is mitigated, alert conditions can be triggered.
The trend entry system computes and plots an Exponential Moving Average (EMA, default length 21) on the chart for basic trend detection.
A trend shift is detected when price crosses the EMA (from below is bullish, from above is bearish).
Additional confirmation for trade entries is provided by simple volume divergence logic:
Bullish if price is down but current volume exceeds prior volume.
Bearish if price is up but current volume is lower than the previous bar.
Large BUY (aqua up-triangle) and SELL (fuchsia down-triangle) arrows mark optimal entry points where both trend change and volume divergence are detected together.
Smaller triangles (‘Buy?’ or ‘Sell?’) are plotted where only a trend crossover is detected without supporting volume divergence.
The background color of the chart changes according to trend direction: green when price is above the EMA, red when below.
All major signals (order blocks and entry conditions) can generate alerts for automated or manual trade notifications.
The script is fully configurable via input parameters for block length, visualization style, EMA length, and mitigation settings.
The logic is suitable for scalping and short-term trading, especially on assets like gold (XAUUSD), but can be applied to any instrument or timeframe.
The script relies solely on built-in Pine functions and does not require external libraries or premium data.
The marked order blocks visually help traders identify zones with high probability of rejection or breakout.
By combining institutional-level order flows (via order block logic) with individual supply-demand signals (trend and volume divergence), the script aims to give robust entry ideas with clear visual cues on the chart.
Optimal Trend Change & Volume Divergence Entries
This TradingView Pine Script combines two technical analysis elements: trend change detection via EMA and volume divergence. The core of the script is the Exponential Moving Average (EMA) with a length of 21, which is plotted on the price chart. When the closing price crosses above the EMA21, a possible bullish trend change is identified. Conversely, when the closing price crosses below the EMA21, a bearish trend change is signaled. To avoid false entries, the script introduces a candlestick confirmation, requiring a green candle for bullish signals and a red one for bearish signals.
Volume divergence is integrated to provide additional context to the trend change. Bullish volume divergence occurs when the price registers a lower close than the previous bar, but the volume increases, suggesting waning selling pressure and a potential reversal. Bearish volume divergence is recognized when the price closes higher than the previous bar, but the volume declines, indicating possible exhaustion of buying strength. Only when both a trend change and the appropriate volume divergence signal occur on the same candle is a main entry generated.
The script visualizes these optimal buy entries with a large aqua upward arrow and optimal sell entries with a large fuchsia downward arrow. These arrows make it easy for traders to spot high-probability setups on the chart. When only a trend change is detected without volume divergence, the script plots smaller green or red arrows as additional context but marks them as less optimal entries.
The background color of the chart subtly changes to green for trending up and red for trending down, which helps the user quickly assess the prevailing market bias. Alerts can be set for the optimal entries, so traders do not need to monitor the chart constantly. The volume divergence logic in this version is kept classic and straightforward for reliability and speed. This approach looks for immediate (bar-to-bar) divergences instead of more complex, multi-bar patterns.
By requiring both a trend change and volume divergence, the script aims to reduce false signals and highlight stronger opportunities. The EMA21 offers a dynamic support/resistance level, enhancing decision-making for both scalpers and short-term traders. Volume divergence confirms whether a trend change is likely genuine or just a pullback.
Even in ranging conditions, the extra confirmation of volume trends helps filter out mediocre trades. With easily customizable inputs such as EMA length, traders can adapt the script to different instruments and timeframes. Placing visual markers and background changes directly on the price chart aids fast, intuitive trading decisions.
The script is lightweight and runs smoothly on most TradingView accounts. The customizable alerts give traders flexibility in their strategy execution. Advanced users can extend the script with more complex divergence conditions if needed. Overall, this script helps traders to identify and act on high-probability trend reversal setups, especially valuable for gold (XAUUSD) scalping.
Gold SCALP XAUUSD (SMA200/PSAR/ADX/ATR/Arrows)
This script is a custom scalping indicator designed for XAUUSD (gold) trading, suitable for low timeframes such as 1-minute or 5-minute charts.
It combines several proven technical analysis tools: the 200-period Simple Moving Average (SMA), Parabolic SAR (PSAR), Average Directional Index (ADX), and Average True Range (ATR).
The script first calculates the 200-period SMA to determine the overall market trend – above the SMA is bullish, below is bearish.
The PSAR indicator is included to pinpoint short-term reversal points and precise breakout moments.
ADX is calculated manually within the script to measure the strength of the prevailing trend; only strong trends trigger signals.
ATR is used to dynamically set take-profit and stop-loss levels, adapting to current volatility.
A buy signal is generated when the close price crosses above the PSAR, price is above the 200 SMA (bullish environment), and ADX indicates a strong trend above the threshold.
A sell signal appears when the close crosses below the PSAR, price is below SMA 200, and ADX confirms a strong bearish trend.
Arrows are plotted on the chart for every valid buy or sell signal, making trade entries visually clear.
Take-profit and stop-loss levels are plotted as crosses above or below the entry, calculated as multiples of ATR.
The background color subtly changes to green or red, indicating whether the market is bullish or bearish per trend filter.
Users can quickly evaluate trend conditions and momentum at a glance using these color cues.
Parameters for SMA, PSAR, ADX, ATR, and profit/stop levels can be manually adjusted to fit the user’s risk and trading style.
ADX and DI (Directional Indicators) are calculated from price action, not with a built-in, and the code follows the standard ADX mathematical formula.
Signals appear only when the trend is strong, avoiding sideways or choppy movements and helping filter out false positives.
The script does not open or close trades automatically; it is strictly an informational and visual trading tool.
All the plots, shapes, and backgrounds are intended to increase clarity and make decision-making quick during scalping.
The code is written in Pine Script v5, fully compatible with TradingView charts.
It is especially useful for traders looking to capture quick moves but needing strict technical filtering for their scalping approach.
Combining dynamic and static volatility, directional, and trend-following tools helps maximize probability and reduce whipsaw trades.
The modular design enables further customization, such as adding more timeframes or integrating with alerts, based on user preference.
Point CounterPoint counting based on current or specific bar and designated target. When multiple target are required, this makes everyone's life easier.
Multi-Timeframe EMA50 Overlaythis is EMA50 WD41, means EMA50 weekly, daily, 4h, 1h in one time frame.
So you don't need to check EMA50 every time frame.
When EMA50 daily under EMA50 4h, and 1h i can say it's bullish trend, especially when you see weekly EMA50 under all EMA50.
it's work for bearish trend also, when EMA50 daily above EMA50 4h, and 1h i can say the trend is bearish, espesially when you see weekly EMA50 is above every EMA50.
this indicator help you to understand market is in bullish or bearish trend! happy trading!
Angled Gann Time-Price Squares with S/RThis is a Pine Script indicator that implements Angled Gann Time-Price Squares based on W.D. Gann's trading theory. Here's what it does:
Core Functionality
Detects pivot highs and lows using a configurable lookback period
Creates angled squares by connecting pivot points to current price action when specific geometric conditions are met
Validates square formation by checking if the price movement follows proper Gann angles (typically 45°, 135°, etc.) within a tolerance range
Key Features
Real-time square tracking: Shows both completed squares and forming squares in progress
Support/Resistance levels: Automatically generates S/R lines from:
Square edge extensions
Diagonal extensions (pivot centers)
Quarter/half levels within squares (25%, 50%, 75%)
Visual feedback: Color-coded squares (green for up, red for down, orange for forming)
Projection lines: Predicts where squares might complete based on Gann angle theory
Gann Theory Application
The indicator follows Gann's principle that time and price move in geometric harmony. It looks for price movements that form perfect squares when plotted on a chart, where the diagonal of the square represents the natural flow of price and time at specific angles.
The generated support/resistance levels are particularly valuable because they're based on completed geometric patterns rather than just horizontal price levels, making them potentially more significant according to Gann methodology.