[TehThomas] - ICT Premium & Discount - ICT Premium & Discount: Script Overview
This TradingView script is designed to visualize the ICT (Inner Circle Trader) Premium & Discount Concept by dynamically identifying the key price zones within a specified lookback period. It highlights the Premium Zone, Discount Zone, and Equilibrium Level, helping traders assess where price is trading in relation to historical highs and lows.
How the Script Works
1. Lookback Period Calculation
The script scans the last X bars (user-defined lookback period) to find the highest high and lowest low during that time.
This helps establish a reference range for determining whether the current price is trading in a premium (overbought) or discount (oversold) area.
2. Equilibrium Level
The equilibrium is simply the midpoint between the highest high and the lowest low within the lookback period.
This level serves as a fair value price where price often reacts or consolidates.
3. Drawing the Premium & Discount Zones
The script creates two distinct zones:
Premium Zone (above equilibrium): Price is considered expensive.
Discount Zone (below equilibrium): Price is considered cheap.
These zones are displayed using colored boxes (red for premium, green for discount).
4. Equilibrium Line & Labels
A dashed equilibrium line is plotted at the midpoint to give a visual reference.
Labels for Premium, Discount, and Equilibrium are added to help traders quickly identify these levels.
Settings You Can Change
The script includes multiple input parameters that allow customization:
1. Lookback Period (lookback)
Default: 50 bars
Defines how many past candles to analyze for the highest high and lowest low.
A larger lookback provides a broader market structure, while a smaller one captures short-term moves.
Premium Zone Color (premium_color)
Default: Red (80% transparency)
You can modify this to change how the premium zone appears on the chart.
Discount Zone Color (discount_color)
Default: Green (80% transparency)
Allows customization of the discount zone’s color.
Extend Boxes Right (extend_right)
Default: 15 bars
Defines how far the premium and discount boxes extend into the future for better visibility.
Why This Script is Useful
Identifies High-Probability Trade Zones.
Traders can use the Premium & Discount zones to find optimal trade entries based on ICT concepts.
Buy in the Discount Zone and sell in the Premium Zone when confluence aligns.
Enhances Smart Money Concepts (SMC) Trading
ICT traders look for liquidity sweeps, fair value gaps, and order blocks.
Combining these with premium & discount levels increases trade accuracy.
Works on Any Timeframe & Asset
The script is effective across forex, crypto, stocks, and indices on multiple timeframes.
How to Use the ICT Premium & Discount Concept in Trading
Find the Range
Apply the script to your chart and check the premium and discount levels.
Ensure you are using a relevant lookback period (e.g., 50 bars for intraday, 100+ for higher timeframes).
Wait for Price to Enter a Key Zone
Long Trades: Look for bullish confirmations (e.g., liquidity grabs, order blocks) in the Discount Zone.
Short Trades: Seek bearish setups in the Premium Zone where price is expensive.
Use the Equilibrium as a Reaction Zone
Price often bounces off or retests equilibrium before making a directional move.
Consider it as a dynamic support/resistance level.
Combine with Other ICT Concepts
Fair Value Gaps (FVGs): Look for price inefficiencies inside premium/discount zones.
Liquidity Sweeps: Watch for stop hunts and false breakouts before entering trades.
Order Blocks (OBs): Use smart money footprints to refine your entries.
Final Thoughts
This script is a powerful tool for ICT traders looking to refine their premium & discount analysis. By visually separating the market into premium (overbought) and discount (oversold) zones, traders can make more informed, high-probability trading decisions.
Sentiment
Stock Sector ETF with IndicatorsThe Stock Sector ETF with Indicators is a versatile tool designed to track the performance of sector-specific ETFs relative to the current asset. It automatically identifies the sector of the underlying symbol and displays the corresponding ETF’s price action alongside key technical indicators. This helps traders analyze sector trends and correlations in real time.
---
Key Features
Automatic Sector Detection:
Fetches the sector of the current asset (e.g., "Technology" for AAPL).
Maps the sector to a user-defined ETF (default: SPDR sector ETFs) .
Technical Indicators:
Simple Moving Average (SMA): Tracks the ETF’s trend.
Bollinger Bands: Highlights volatility and potential reversals.
Donchian High (52-Week High): Identifies long-term resistance levels.
Customizable Inputs:
Adjust indicator parameters (length, visibility).
Override default ETFs for specific sectors.
Informative Table:
Displays the current sector and ETF symbol in the bottom-right corner.
---
Input Settings
SMA Settings
SMA Length: Period for calculating the Simple Moving Average (default: 200).
Show SMA: Toggle visibility of the SMA line.
Bollinger Bands Settings
BB Length: Period for Bollinger Bands calculation (default: 20).
BB Multiplier: Standard deviation multiplier (default: 2.0).
Show Bollinger Bands: Toggle visibility of the bands.
Donchian High (52-Week High)
Daily High Length: Days used to calculate the high (default: 252, approx. 1 year).
Show High: Toggle visibility of the 52-week high line.
Sector Selections
Customize ETFs for each sector (e.g., replace XLU with another utilities ETF).
---
Example Use Cases
Trend Analysis: Compare a stock’s price action to its sector ETF’s SMA for trend confirmation.
Volatility Signals: Use Bollinger Bands to spot ETF price squeezes or breakouts.
Sector Strength: Monitor if the ETF is approaching its 52-week high to gauge sector momentum.
Enjoy tracking sector trends with ease! 🚀
Market Trend Scanner [Afnan]This Market Strength Scanner indicator is designed to provide traders with a clear and concise overview of market trends using a single table. It helps you quickly determine which sectors and indices are strong, weak, or choppy, allowing you to make informed trading decisions with ease.
How This Indicator Helps You:
✅ Identify Strong Sectors & Indices
🔹By analyzing this table, you can instantly see which sectors and indices are performing well.
🔹Focus on stocks within strong sectors to find high-probability buying opportunities.
✅ Avoid Weak or Choppy Markets
🔹The indicator highlights bearish or consolidating sectors, helping you avoid poor trading conditions.
🔹Stay away from sectors that are weak or moving sideways to reduce unnecessary risks.
✅ Understand Market Sentiment in Seconds
🔹If most sectors are bullish, the market is in an uptrend—giving you confidence to take long positions.
🔹If the majority are bearish, the market is weak, signaling caution.
🔹A mix of bullish and bearish sectors indicates a choppy market, warning you to avoid trading or adjust your strategy.
✅ Powered by 4 Customizable EMAs
🔹The indicator uses 4 Exponential Moving Averages (EMAs) to determine trends for each sector and index.
🔹These EMAs are fully modifiable, allowing you to adjust them based on your preferred strategy.
✅ Covers 25 Major Indices (Fully Customizable)
🔹By default, the indicator tracks 25 key indices, giving you a broad market perspective.
🔹You can customize the list to focus on the indices that matter most to you.
Why Use This Indicator?
🔹 Saves Time – No need to analyze multiple charts manually. The table gives you everything at a glance.
🔹 Improves Trade Selection – Focus only on strong sectors for better trade accuracy.
🔹 Works in All Market Conditions – Whether the market is trending or consolidating, this tool keeps you informed.
🔹 Fully Customizable – Adjust the EMAs and indices according to your trading preferences.
With just this one powerful indicator, you get a complete market overview, helping you align your trades with the current trend effortlessly! 🚀
Pearson Correlation CoefficientDescription: The Pearson Correlation Coefficient measures the strength and direction of the linear relationship between two data series. Its value ranges from -1 to +1, where:
+1 indicates a perfect positive linear correlation: as one asset increases, the other asset increases proportionally.
0 indicates no linear correlation: variations in one asset have no relation to variations in the other asset.
-1 indicates a perfect negative linear correlation: as one asset increases, the other asset decreases proportionally.
This measure is widely used in technical analysis to assess the degree of correlation between two financial assets. The "Pearson Correlation (Manual Compare)" indicator allows users to manually select two assets and visually display their correlation relationship on a chart.
Features:
Correlation Period: The time period used for calculating the correlation can be adjusted (default: 50).
Comparison Asset: Users can select a secondary asset for comparison.
Visual Plots: The chart includes reference lines for perfect correlations (+1 and -1) and strong correlations (+0.7 and -0.7).
Alerts: Set alerts for when the correlation exceeds certain threshold values (e.g., +0.7 for strong positive correlation).
How to Select the Second Asset:
Primary Asset Selection: The primary asset is the one you select for viewing on the chart. This can be done by simply opening the chart for the desired asset.
Secondary Asset Selection: To select the secondary asset for comparison, use the input field labeled "Comparison Asset" in the script settings. You can manually enter the ticker symbol of the secondary asset you want to compare with the primary asset.
This indicator is ideal for traders looking to identify relationships and correlations between different financial assets to make informed trading decisions.
Equal Highs and Lows - [TEH]This script is a powerful tool for identifying and visualizing equal highs and lows in the market. It offers traders a way to spot potential support and resistance levels, which can be crucial for making informed trading decisions.
Key Features:
Equal High and Low Detection: The script scans a user-defined lookback period to find price levels where highs or lows are equal to the current bar's high or low.
Customizable Appearance:
Line colors for highs and lows
Line width and style (solid, dashed, or dotted)
Option to extend lines to the right of the chart
Dynamic Line Management:
The script automatically removes lines when price breaches them, keeping the chart clean and relevant.
Text Labels:
Optional text labels can be added to the lines, with customizable text, color, and size.
Functions and Usage:
Main Functions:
findAndDrawEqualHighs(): Identifies equal highs and draws lines connecting them.
findAndDrawEqualLows(): Identifies equal lows and draws lines connecting them.
checkAndRemoveBreachedLines(): Removes lines and labels when price breaks through them.
Analysis Applications:
Support and Resistance Identification: The lines drawn by the script highlight potential support (for lows) and resistance (for highs) levels5.
Trend Analysis: Multiple equal highs or lows can indicate the strength of a trend. Consecutive higher lows might suggest an uptrend, while consecutive lower highs could indicate a downtrend.
Breakout Detection:
When price breaks through a line, it could signal a potential trend change or continuation.
Range Trading:
Identifying equal highs and lows can help traders spot ranging markets and potential boundaries for range-based strategies.
Risk Management:
The lines can be used as reference points for setting stop-loss orders or take-profit targets.
Customization and Flexibility:
The script offers extensive customization options, allowing traders to tailor the indicator to their specific needs and visual preferences. This flexibility makes it suitable for various trading styles and timeframes.
By providing a clear visual representation of equal highs and lows, this script enhances a trader's ability to analyze market structure and make more informed decisions. It's a valuable addition to any trader's toolkit, especially those focusing on technical analysis and price action trading.
Percentage Retracement from ATH█ OVERVIEW
The Percentage Retracement from ATH indicator is a dynamic trading utility designed to help traders gauge market pullbacks from the peak price. By calculating key retracement levels based on the All-Time High (ATH) and user‑defined percentage inputs, it offers clear visual cues to assist in identifying potential support and resistance zones.
█ KEY FEATURES
Custom Date — Use a custom start date so the indicator only considers specified price action.
Retracement Calculation — Determines ATH and calculates levels based on user‑defined percentages (0% to –100%).
Visual Customisation — Plots configurable horizontal lines and labels showing retracement percentages and prices.
Time Filtering — Uses time filtering to base levels on the desired data period.
█ PURPOSE
Assist traders in visualising the depth of price retracements from recent or historical peaks.
Identify critical zones where the market may find support or resistance after reaching an ATH.
Facilitate more informed entry and exit decisions by clearly demarcating retracement levels on the chart.
█ IDEAL USERS
Swing Traders — Looking to exploit pullbacks following strong upward moves.
Technical Analysts — Interested in pinpointing key retracement levels as potential reversal or continuation points.
Price Action Traders — Focused on the nuances of market peaks and subsequent corrections.
Strategy Developers — Keen to backtest and refine approaches centred on retracement dynamics.
Crypto Fear and GreedThe Crypto Fear and Greed indicator is a custom Pine Script (version 6) indicator designed to measure market sentiment in the cryptocurrency market. It combines three main components: volatility, momentum, and volume, to create a composite score ranging from 0 to 100.
Interpretation
- 0-20: Extreme Fear** - The market is in a state of panic, potentially indicating a buying opportunity for contrarian investors.
- 20-40 : Fear** - Investors are cautious, but not panicking.
- 40-60: Neutral** - The market sentiment is balanced.
- 60-80: Greed** - Investors are becoming optimistic, potentially indicating overbought conditions.
- 80-100: Extreme Greed** - The market is euphoric, potentially indicating a selling opportunity for contrarian investors.
Limitations
1. The indicator uses the TOTAL3 cryptocurrency market cap data, which may not perfectly represent individual cryptocurrency movements.
2. Historical data limitations may affect the accuracy of the volume component, especially when first applying the indicator to a chart.
3. The indicator is based on technical factors and does not account for fundamental or external market influences.
Percent Change HistogramThis indicator shows you percent changes in a super visual way using a color-coded histogram.
Here's how the colors work:
🟩 Dark green = percent change is growing stronger
🟢 Light green = still positive but losing steam
🟥 Dark red = getting more negative
🔴 Light red = negative but improving
The cool part? You can set any lookback period you want. For example:
24 periods on 1H chart = last 24 hours
30 periods on daily = last month
7 periods on daily = last week
Pro tip: You're not locked to your chart's timeframe! Want to see monthly changes while trading on 5min?
No problem.
You can even stack multiple indicators to watch different intervals simultaneously (daily, weekly, monthly) - super helpful for multi-timeframe analysis.
Perfect for spotting momentum shifts across different timeframes without switching between charts.
VIX Differential(Melon)Simple indy that measures the difference between VIX9D and VIX to try assessing short-term market sentiment. I've liked this recently as a big clue for market bottom reversals.
Auto-Adjusting Kalman Filter by TenozenNew year, new indicator! Auto-Adjusting Kalman Filter is an indicator designed to provide an adaptive approach to trend analysis. Using the Kalman Filter (a recursive algorithm used in signal processing), this algo dynamically adjusts to market conditions, offering traders a reliable way to identify trends and manage risk! In other words, it's a remaster of my previous indicator, Kalman Filter by Tenozen.
What's the difference with the previous indicator (Kalman Filter by Tenozen)?
The indicator adjusts its parameters (Q and R) in real-time using the Average True Range (ATR) as a measure of market volatility. This ensures the filter remains responsive during high-volatility periods and smooth during low-volatility conditions, optimizing its performance across different market environments.
The filter resets on a user-defined timeframe, aligning its calculations with dominant trends and reducing sensitivity to short-term noise. This helps maintain consistency with the broader market structure.
A confidence metric, derived from the deviation of price from the Kalman filter line (measured in ATR multiples), is visualized as a heatmap:
Green : Bullish confidence (higher values indicate stronger trends).
Red : Bearish confidence (higher values indicate stronger trends).
Gray : Neutral zone (low confidence, suggesting caution).
This provides a clear, objective measure of trend strength.
How it works?
The Kalman Filter estimates the "true" price by filtering out market noise. It operates in two steps, that is, prediction and update. Prediction is about projection the current state (price) forward. Update is about adjusting the prediction based on the latest price data. The filter's parameters (Q and R) are scaled using normalized ATR, ensuring adaptibility to changing market conditions. So it means that, Q (Process Noise) increases during high volatility, making the filter more responsive to price changes and R (Measurement Noise) increases during low volatility, smoothing out the filter to avoid overreacting to minor fluctuations. Also, the trend confidence is calculated based on the deviation of price from the Kalman filter line, measured in ATR multiples, this provides a quantifiable measure of trend strength, helping traders assess market conditions objectively.
How to use?
Use the Kalman Filter line to identify the prevailing trend direction. Trade in alignment with the filter's slope for higher-probability setups.
Look for pullbacks toward the Kalman Filter line during strong trends (high confidence zones)
Utilize the dynamic stop-loss and take-profit levels to manage risk and lock in profits
Confidence Heatmap provides an objective measure of market sentiment, helping traders avoid low-confidence (neutral) zones and focus on high-probability opportunities
Guess that's it! I hope this indicator helps! Let me know if you guys got some feedback! Ciao!
EMA Crossover with 50 EMA Filter50-period EMA: We added the 50-period EMA as the filterEMA variable.
Buy and Sell Conditions: The buy signal is generated only if the 8-period and 16-period EMAs both cross above each other and are above the 50-period EMA. Similarly, the sell signal is generated when the 8-period and 16-period EMAs cross below each other and are below the 50-period EMA.
Plotting: The 50-period EMA is also plotted on the chart (in orange).
This strategy will ensure that the buy signals are only triggered when the trend is considered "bullish" (both EMAs above the 50 EMA) and sell signals when the trend is "bearish" (both EMAs below the 50 EMA).
You can set up alerts for both buy and sell conditions using the alertcondition() function.
Let me know if you need further adjustments!
NOTE :- Applicable only for banknifty
CandelaCharts - ICT Daily Profiles Go (DPG)📝 Overview
The ICT Daily Profiles by CandelaCharts, inspired by ICT teachings, offer a pattern-driven approach to trading by identifying and analyzing the key highs and lows of intraday sessions.
This toolkit automatically highlights these ICT Daily Profiles on your charts, allowing traders to efficiently identify critical zones for analysis and informed decision-making.
Whether you're an experienced trader or just starting out, ICT Daily Profiles deliver actionable frameworks to deepen your understanding of price behavior and enhance your intraday trading performance.
📦 Features
The ICT Daily Profiles toolkit provides a robust suite of features tailored to improve trading accuracy and support informed decision-making. Its key highlights include:
Daily Profiles
Advanced Styling
Scanner
The indicator supports the following profiles:
Session I High Session II Low Bearish
Session I High Session III Low Bearish
Session II High Session III Low Bearish
Session III High Session IV Low Bearish
Session I Low Session II High Bullish
Session I Low Session III High Bullish
Session II Low Session III High Bullish
Session III Low Session IV High Bullish
⚙️ Settings
Sessions: Controls how many sessions you want to see.
History: Controls how many profiles are displayed on the chart.
Timeframe Limit: Sets the timeframe up to which profiles will be drawn.
Show OHLC Lines: Display the lines for OHLC.
Show Profile Line: Display the Daily Profile line.
Use NY Midnight Open: Controls from where a profile will start detection.
Open: Style for Open line.
High: Style for High line.
Low: Style for Low line.
Midline: Style for Profile Midline.
Label: Controls the position of the Daily Profile name.
Scanner: Display the Scanner
⚡️ Showcase
ICT (Inner Circle Trader) daily profile templates are analytical models that classify and outline common price action patterns observed throughout a trading day.
ICT Daily Profiles
Scanner
📒 Usage
The ICT Daily Profiles indicator aims to give traders a clear and actionable view of the Daily Previous, Current, and Future Profiles. This enables them to analyze market structure, predict price movements, and align their trading strategies with higher time-frame trends.
Load the indicator on the chart
Enable Scanner
See the Predicted Profiles list
Predicted Profiles represent all potential scenarios for the current day, generated by a profile detection algorithm.
By visualizing potential outcomes through Predicted Profiles, the ICT Daily Profiles indicator provides traders with a strategic edge, allowing them to remain flexible, prepared, and aligned with the most probable market movements.
🚨 Alerts
The indicator does not provide any alerts!
🔹 Notes
ICT Daily Profiles
pbs.twimg.com
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Global Relevant Events MarkerThe Global Relevant Events Marker script is designed to mark significant global events on a chart, such as economic crises or major geopolitical events. It uses vertical lines to indicate the exact dates of these events and places labels (optional) near the lines to provide a description of the event.
Trend with ADX/EMA - Buy & Sell SignalsThis script is designed to help traders make buy and sell decisions based on trend analysis using two key methods: ADX (Average Directional Index) and EMA (Exponential Moving Averages). Here's a breakdown in simple terms:
What Does It Do?
Identifies the Trend's Strength and Direction:
Uses the ADX indicator to determine how strong the trend is.
Compares two lines (DI+ and DI−) to identify whether the trend is moving up or down.
Generates Buy and Sell Signals:
Uses two EMAs (a fast one and a slow one) to check when the price crosses key levels, signaling a possible buy or sell opportunity.
Plots visual indicators (arrows and labels) for easy interpretation.
Color-Codes the Chart:
Highlights the background in green when the trend is bullish (uptrend).
Highlights the background in red when the trend is bearish (downtrend).
Alerts the User:
Creates alerts when specific conditions for buying or selling are met.
Key Components:
1. ADX (Trend Strength & Direction)
What is ADX?
ADX measures how strong the trend is (not the direction). Higher ADX means a stronger trend.
It also calculates two lines:
DI+: Measures upward movement strength.
DI−: Measures downward movement strength.
How It Works in the Script:
If DI+ is greater than DI−, it’s a bullish trend (upward).
If DI− is greater than DI+, it’s a bearish trend (downward).
The background turns green for an uptrend and red for a downtrend.
2. EMA (Buy and Sell Decisions)
What is EMA?
EMA is a moving average that gives more weight to recent prices. It’s used to smooth out price fluctuations.
How It Works in the Script:
The script calculates two EMAs:
Fast EMA (short-term average): Reacts quickly to price changes.
Slow EMA (long-term average): Reacts slower and shows overall trends.
When the Fast EMA crosses above the Slow EMA, it’s a signal to Buy.
When the Fast EMA crosses below the Slow EMA, it’s a signal to Sell.
These signals are marked on the chart as "Buy" and "Sell" labels.
3. Buy and Sell Alerts
The script sets up alerts for the user:
Buy Alert: When a crossover indicates a bullish signal.
Sell Alert: When a crossunder indicates a bearish signal.
Visual Elements on the Chart:
Background Colors:
Green: When the DI+ line indicates an uptrend.
Red: When the DI− line indicates a downtrend.
EMA Lines:
Green Line: Fast EMA.
Red Line: Slow EMA.
Buy/Sell Labels:
"Buy" label: Shown when the Fast EMA crosses above the Slow EMA.
"Sell" label: Shown when the Fast EMA crosses below the Slow EMA.
Why Use This Script?
Trend Analysis: Helps you quickly identify the strength and direction of the market trend.
Buy/Sell Signals: Gives clear signals to enter or exit trades based on trend and EMA crossovers.
Custom Alerts: Ensures you never miss a trading opportunity by notifying you when conditions are met.
Visual Simplicity: Makes it easy to interpret trading signals with color-coded backgrounds and labeled arrows.
Emergent Rays - NovaTheMachineEmergent Rays
An emergent ray is a refracted ray of light that exits a medium or channel. Emergent rays can be created when light passes through a prism, glass slab, or mirror
This visual indicator has been designed to aid in developing psychological understanding of price action. Many traders often struggle with developing strategy that they can act on, repeatedly. The difference between gambling and trading successfully comes down to following a plan, that you have tested and determined to be profitable over the long term.
Some traders experience anxiety when trading trends, trying to time a reversal, or entering a trade based on emotions and are unsure where they should place a stop - if they bother to place one at all.
I developed this indicator to help traders practice responsible trading practices and develop discipline. When applied to a chart an array of light rays will be plotted, similarly to those that are emitted from light passing through a medium such as a prism. These rays are a series of EMAs high & low values, filled with an assigned color.
The indicator does not suggest an entry or exit, it allows for freedom of user interpretation, however - when in a trending market you may notice that the rays are tested multiple times when the market is trending in the same direction. When trading trends it makes sense to enter at the discounted value (pullbacks) and exit on extensions. There are two main reasons for this; first is manage risk, second is to profit from a successful trade.
To practice discipline and remove emotions from trading, one must be willing to accept the outcome of a trade - regardless of whether it was profitable or not, based on their strategy.
The visual gradient of the rays signifies the pullback to stoploss risk. As price expands it is clear to see that the distance from red to blue rays increases, which means entering a trade on a touch of the red ray requires a larger stoploss than entering a pullback to the green or blue rays. When price closes on the opposite side of a ray from where it was trending - we accept the trend may have ended and must wait for the next trend cycle. If the price action is range bound we will notice the rays melting together to create a grey ray that signifies this is not the best place to be trading any type of trend following strategy.
Using this indicator in an uptrend (price expansion upwards), we look to enter long positions of retests (pullbacks) into the rays - with a stoploss set below the lowest rays; as we do not believe the uptrend is over until the trend has been broken.
Using this indicator in a downtrend (price expansion downwards), we look to enter short positions of retests (pullbacks) into the rays - with a stoploss set below the lowest rays; as we do not believe the uptrend is over until the trend has been broken.
When price is range bound or consolidating, we do not enter trades; wait for clear trend to be established.
By practicing discipline, we are able to overcome the emotions involved with trading, remove hesitation, and trade our plans more confidently through appropriate risk management and radical acceptance.
Net Unrealized Profit Loss | JeffreyTimmermansNet Unrealized Profit Loss (NUPL)
The "Net Unrealized Profit Loss" (NUPL) indicator is a highly regarded tool for assessing Bitcoin investor sentiment by analyzing the relationship between Market Value and Realized Value. This Pine Script implementation, developed by Jeffrey Timmermans, includes additional features such as dynamic labels, alerts, and thresholds with color-coded bands, enhancing its usability for traders and analysts.
Core Concepts Behind NUPL
Market Value (MV):
Defined as the current Bitcoin price multiplied by the number of coins in circulation.
Equivalent to market capitalization in traditional finance.
Realized Value (RV):
Calculated by considering the price at which each Bitcoin last moved (e.g., transferred between wallets).
The average price of all these transactions is multiplied by the total coins in circulation.
Net Unrealized Profit Loss (NUPL):
Formula: NUPL = (Market Value − Realized Value) : Market Value × 100
Measures the proportion of paper profits or losses held by investors relative to the market cap.
Significance of NUPL:
Tracks investor sentiment over time.
A high NUPL value indicates that most investors are in profit, often signaling potential market overheating.
A low or negative NUPL suggests pessimism and undervaluation, which may precede market recovery.
How to View the Chart
The NUPL chart uses distinct percentage bands to delineate various market phases. These bands provide context for understanding investor sentiment and market stages:
Extreme Low Values (< 0%): Indicates widespread losses; the market may be near capitulation.
Neutral Value (0%): A balance between profit and loss; often signifies a transition phase.
Slightly High to High Values (> 0% to 50%): Increasing profits suggest growing optimism; early stages of bullish trends.
Extreme High Values (> 75%): Signals overheating; often corresponds to excessive greed, which may precede corrections.
The colored bands visually represent these stages, enabling traders to identify key turning points.
Features of the Script
Querying Data
The indicator uses data from two key sources:
Bitcoin Market Cap (MC1): GLASSNODE:BTC_MARKETCAP
Bitcoin Realized Cap (MCR): COINMETRICS:BTC_MARKETCAPREAL
These values are fetched using the request.security function to ensure daily accuracy, regardless of the chart's timeframe.
Threshold Calculation
The script computes NUPL values dynamically and compares them against historical lows:
Calculated using the ta.lowest function over a 1,000-bar lookback period.
The average of the historical low and the current NUPL value, providing a dynamic baseline.
Value Classification
NUPL is categorized into sentiment levels with corresponding weights:
< Low Threshold: 1 (Extreme Bearish)
Low to 0: 0.75 (Moderate Bearish)
0 to 25: 0.25 (Neutral to Slightly Bullish)
25 to 50: -0.25 (Moderate Bullish)
50 to 75 : -0.75 (Strong Bullish)
> 75: -1 (Extreme Bullish)
Visual Elements
NUPL Line Plot:
The NUPL line is plotted in orange for clear visibility.
Threshold Bands:
Horizontal thresholds ranging from -160 to 160 and are plotted, representing key sentiment levels. Bands are categorized as:
Extreme High/Low Values
Significant High/Low Values
Neutral Values
Fill Colors:
Red Shades (Bearish Sentiment): Above neutral levels.
Green Shades (Bullish Sentiment): Below neutral levels.
The opacity of fills decreases as sentiment moves from extreme to neutral values.
Dynamic Label:
A real-time label displays the current NUPL value and sentiment classification.
Positioned directly on the NUPL line for immediate insight.
Alerts:
The indicator includes two alerts for crossing key thresholds:
NUPL Above 0% Alert: Triggers when NUPL crosses above the neutral value, signaling a shift to positive sentiment.
NUPL Below 0% Alert: Triggers when NUPL crosses below the neutral value, indicating a shift to negative sentiment.
Alerts are configured with alert.freq_once_per_bar to avoid redundancy during intra-bar fluctuations.
Use Cases
Identifying Market Extremes:
Use NUPL levels to pinpoint moments of extreme greed or fear, which often precede market reversals.
Long-Term Strategy:
NUPL trends can assist strategic investors in deciding when to accumulate during pessimistic phases or take profits during euphoria.
Market Sentiment Analysis:
Provides a macro perspective on the prevailing investor sentiment, offering valuable context for trading decisions.
Conclusion
The Net Unrealized Profit Loss (NUPL) indicator combines advanced data processing with intuitive visualization to deliver actionable insights into Bitcoin market sentiment. With its real-time alerts, dynamic labels, and comprehensive banding system, this tool is indispensable for traders and investors seeking to understand and anticipate market movements based on sentiment analysis.
-Jeffrey
Intraday Chaos FilterIntraday trading requires precise tools and strategies to navigate the chaotic fluctuations of the market. The "Intraday Chaos Filter" indicator is designed to provide traders with a systematic approach to managing market noise. This Pine Script™ indicator helps identify potential trend shifts and provides a visual representation of price action, aiding in making informed trading decisions. By focusing on reducing market chaos, it aims to provide a clearer picture of the underlying trend, regardless of the volatility.
At the heart of the indicator lies the multiplier input, a customizable setting that adjusts the sensitivity of the filter. The multiplier directly influences the chaos threshold by determining the percentage deviation allowed before signaling a trend reversal. A higher multiplier results in a less sensitive filter, reducing the number of signals during minor price fluctuations. This flexibility allows traders to adapt the indicator to different trading styles and market conditions, making it versatile for a range of intraday strategies.
The "Intraday Chaos Filter" operates by tracking two key price levels: src1 and src2, representing the highest and lowest prices during a trend. These levels are dynamically adjusted based on the closing price, ensuring that the indicator adapts in real time. The trend direction is determined by comparing the current price against a calculated filter level. When the price crosses the threshold in either direction, it signals a potential trend reversal, marked by a change in candle colors on the chart. Green represents an upward trend, while red signifies a downward trend, making it visually intuitive for traders.
This indicator's simplicity and clarity make it a valuable addition to any trader's toolkit. By focusing on trend direction and filtering out minor fluctuations, it helps traders stay focused on significant market movements. The integration of customizable settings ensures adaptability to various trading preferences, providing both novice and experienced traders with a reliable tool for intraday decision-making. The "Intraday Chaos Filter" offers an effective way to navigate market noise, enabling traders to identify opportunities with confidence.
Codi's Perp-Spot Basis# Perp-Spot Basis Indicator
This indicator calculates the percentage basis between perpetual futures and spot prices for crypto assets. It is inspired by the original concept from **Krugermacro**, with the added improvement of **automatic detection of the asset pairs** based on the current chart symbol. This enhancement makes it faster and easier to apply across different assets without manual configuration.
## How It Works
The indicator compares the perpetual futures price (e.g., `BTCUSDT.P`) to the spot price (e.g., `BTCUSDT`) on Binance. The difference is expressed as a percentage: (Perp - Spot) / Spot * 100
The results are displayed in a color-coded graph:
- **Blue (Positive Basis):** Perpetual futures are trading at a premium, indicating **bullish sentiment** among derivatives traders.
- **Red (Negative Basis):** Perpetual futures are trading at a discount, indicating **bearish sentiment** among derivatives traders.
This percentage basis is a core component in understanding funding rates and derivatives market dynamics. It serves as a faster proxy for funding rates, which typically lag behind real-time price movements.
---
## How to Use It
### General Concept
- **Red (Negative Basis):** Ideal to execute **longs** when derivatives traders are overly bearish.
- **Blue (Positive Basis):** Ideal to execute **shorts** when derivatives traders are overly bullish.
### Pullback Sniping
1. During an **uptrend**:
- If the basis turns **red** temporarily, it can signal an opportunity to **buy the dip**.
2. During a **downtrend**:
- If the basis turns **blue** temporarily, it can signal an opportunity to **sell the rip**.
3. Wait for the basis to **pop back** (higher in uptrend, lower in downtrend) to time entries more effectively—this often coincides with **stop runs** or **liquidations**.
### Intraday Execution
- **When price is falling**:
- If the basis is **red**, the move is derivatives-led (**normal**).
- If the basis is **blue**, spot traders are leading, and perps are offside—wait for **price dumps** before longing.
- **When price is rising**:
- If the basis is **blue**, the move is derivatives-led (**normal**).
- If the basis is **red**, spot traders are leading, and perps are offside—wait for **price pops** before shorting.
### Larger Time Frames
- **Consistently Blue Basis:** Indicates a **bull market** as derivatives traders are bullish over the long term.
- **Consistently Red Basis:** Indicates a **bear market** as derivatives traders are bearish over the long term.
---
## Improvements Over the Original
This version of the Perp-Spot Basis indicator **automatically detects the Binance perpetual futures and spot pairs** based on the current chart symbol. For example:
- If you are viewing `ETHUSDT`, it automatically references `ETHUSDT.P` for the perpetual futures pair and `ETHUSDT` for the spot pair in BINANCE.
Robinhood Crypto Combined Volume Tracker
This indicator provides a comprehensive visualization of the combined trading volume for all cryptocurrency pairs available on Robinhood, tailored to the selected region (USA or Europe). The chart dynamically updates based on your selected region, providing actionable insights into market activity.
Features:
Dynamic Region Selection: Toggle between USA and Europe to display the relevant trading pairs for your region.
Combined Volume Visualization: Aggregates and plots the total trading volume for all selected cryptocurrency pairs.
Dynamic Background: Background color changes based on the selected region for visual clarity.
Real-Time Debug Label: Displays the selected region and current total combined volume on the latest bar.
Color-Coded Chart: Distinct plot colors for USA (blue) and Europe (green) to easily identify the region.
Use Cases:
Market Trends: Monitor total crypto market activity to gauge investor interest and trading momentum in different regions.
Region-Specific Analysis: Compare trading behavior between USA and Europe by switching regions.
Volume Comparisons: Assess market strength by observing changes in combined volume over time.
How to Use:
Select your desired region (USA/Europe) using the "Select Region" dropdown.
View the combined trading volume plot on the chart.
Use the background color and chart plot for quick identification of region-specific data.
Notes:
The combined volume calculation is based on the daily timeframe (D) and updates dynamically.
Ensure the selected region matches your area of interest to get accurate insights.
This indicator is ideal for traders looking to analyze and compare crypto trading activity across regions in a consolidated view.
CandelaCharts - ICT Weekly Profiles Go (WPG) 📝 Overview
The indicator provides a pattern-based approach to the ICT Weekly Profiles, emphasizing a line that marks the Open, High, Low, and Close of the week. This line allows you to instantly visualize and identify the Weekly Profile.
ICT Weekly Profiles are structured conceptual frameworks designed to outline typical patterns of price behavior over the course of a trading week. These profiles serve as analytical tools, offering traders insights into recurring market tendencies and helping them identify potential opportunities and risks.
The toolkit automatically detects and marks these Weekly Profiles on the chart, enabling traders to quickly pinpoint critical zones for analysis and decision-making.
📦 Features
The Block Concepts toolkit offers a comprehensive set of features designed to enhance trading precision and decision-making. Key features include:
Weekly Profiles (8)
Advanced Styling
Scanner
The indicator supports the following profiles:
ICT Weekly Profiles
Classic Tuesday Low Of The Week Bullish
Classic Tuesday High Of The Week Bearish
Wednesday Low Of The Week Bullish
Wednesday High Of The Week Bearish
Consolidation Thursday Reversal Bullish
Consolidation Thursday Reversal Bearish
Consolidation Midweek Rally Bullish
Consolidation Midweek Rally Bearish
⚙️ Settings
History: Controls how many profiles are displayed on the chart.
Timeframe Limit: Sets the timeframe up to which profiles will be drawn.
Show OHLC Lines: Display the lines for OHLC.
Show Profile Line: Display the Weekly Profile line.
Use NY Midnight Open: Controls from where a profile will start detection.
Open: Style for Open line.
High: Style for High line.
Low: Style for Low line.
Midline: Style for Profile Midline.
Label: Controls the position of the Weekly Profile name.
Scanner: Display the Scanner
⚡️ Showcase
ICT (Inner Circle Trader) weekly profile templates are analytical frameworks that categorize and describe typical patterns of price action observed during a trading week.
ICT Weekly Profiles
Scanner
📒 Usage
The primary objective of the ICT Weekly Profiles indicator is to provide traders with a comprehensive and actionable overview of the Weekly Previous, Current, and Future Profile. This allows traders to interpret market structure, anticipate price behavior, and align their trading decisions with higher time-frame trends.
Load the indicator on the chart
Enable Scanner
See the Predicted Profiles list
Predicted Profiles represent all potential scenarios for the current week, generated by a profile detection algorithm.
By visualizing potential outcomes through Predicted Profiles, the ICT Weekly Profiles indicator provides traders with a strategic edge, allowing them to remain flexible, prepared, and aligned with the most probable market movements.
🚨 Alerts
The indicator does not provide any alerts!
🔹 Notes
ICT Weekly Profiles
pbs.twimg.com
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
CandelaCharts - ICT Daily Profiles📝 Overview
The ICT Daily Profiles by CandelaCharts rooted in the ICT teachings represent a pattern-based approach to trading that focuses on identifying and analyzing the key highs and lows of various intraday trading sessions.
The toolkit automatically detects and marks these ICT Daily Profiles on the chart, enabling traders to quickly pinpoint critical zones for analysis and decision-making.
Whether you are a seasoned professional or a developing trader, ICT Daily Profiles provides actionable frameworks to enhance your understanding of price dynamics and improve your intraday trading performance.
📦 Features
The ICT Daily Profiles toolkit offers a comprehensive set of features designed to enhance trading precision and decision-making. Key features include:
Daily Profiles
Advanced Styling
Scanner
The indicator supports the following profiles:
Session I High Session II Low Bearish
Session I High Session III Low Bearish
Session I High Session IV Low Bearish
Session II High Session III Low Bearish
Session II High Session IV Low Bearish
Session III High Session IV Low Bearish
Session I Low Session II High Bullish
Session I Low Session III High Bullish
Session I Low Session IV High Bullish
Session II Low Session III High Bullish
Session II Low Session IV High Bullish
Session III Low Session IV High Bullish
Session I High Session I Low Bearish
Session I Low Session I High Bearish
Session II High Session II Low Bearish
Session II Low Session II High Bearish
Session III High Session III Low Bearish
Session III Low Session III High Bearish
Session IV High Session IV Low Bearish
Session IV Low Session IV High Bearish
⚙️ Settings
Sessions: Controls how many sessions you want to see.
History: Controls how many profiles are displayed on the chart.
Timeframe Limit: Sets the timeframe up to which profiles will be drawn.
Show OHLC Lines: Display the lines for OHLC.
Show Profile Line: Display the Daily Profile line.
Use NY Midnight Open: Controls from where a profile will start detection.
Open: Style for Open line.
High: Style for High line.
Low: Style for Low line.
Midline: Style for Profile Midline.
Label: Controls the position of the Daily Profile name.
Scanner: Display the Scanner
⚡️ Showcase
ICT (Inner Circle Trader) daily profile templates are analytical frameworks that categorize and describe typical patterns of price action observed during a trading day.
ICT Daily Profiles
Scanner
📒 Usage
The ICT Daily Profiles indicator aims to give traders a clear and actionable view of the Daily Previous, Current, and Future Profiles. This enables them to analyze market structure, predict price movements, and align their trading strategies with higher time-frame trends.
Load the indicator on the chart
Enable Scanner
See the Predicted Profiles list
Predicted Profiles represent all potential scenarios for the current day, generated by a profile detection algorithm.
By visualizing potential outcomes through Predicted Profiles, the ICT Daily Profiles indicator provides traders with a strategic edge, allowing them to remain flexible, prepared, and aligned with the most probable market movements.
🚨 Alerts
The indicator does not provide any alerts!
🔹 Notes
ICT Daily Profiles
pbs.twimg.com
⚠️ Disclaimer
These tools are exclusively available on the TradingView platform.
Our charting tools are intended solely for informational and educational purposes and should not be regarded as financial, investment, or trading advice. They are not designed to predict market movements or offer specific recommendations. Users should be aware that past performance is not indicative of future results and should not rely on these tools for financial decisions. By using these charting tools, the purchaser agrees that the seller and creator hold no responsibility for any decisions made based on information provided by the tools. The purchaser assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses or investment outcomes that may result from the use of these products.
By purchasing, the customer acknowledges and accepts that neither the seller nor the creator is liable for any undesired outcomes stemming from the development, sale, or use of these products. Additionally, the purchaser agrees to indemnify the seller from any liability. If invited through the Friends and Family Program, the purchaser understands that any provided discount code applies only to the initial purchase of Candela's subscription. The purchaser is responsible for canceling or requesting cancellation of their subscription if they choose not to continue at the full retail price. In the event the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable.
We do not offer reimbursements, refunds, or chargebacks. Once these Terms are accepted at the time of purchase, no reimbursements, refunds, or chargebacks will be issued under any circumstances.
By continuing to use these charting tools, the user confirms their understanding and acceptance of these Terms as outlined in this disclaimer.
CandelaCharts - ICT Weekly Profiles📝 Overview
The indicator provides a pattern-based approach to the ICT Weekly Profiles, emphasizing a line that marks the Open, High, Low, and Close of the week. This line allows you to instantly visualize and identify the Weekly Profile.
The profile detection relies on the week’s high and low, delivering a clear and concise representation of the weekly profile.
ICT Weekly Profiles are structured conceptual frameworks designed to outline typical patterns of price behavior over the course of a trading week. These profiles serve as analytical tools, offering traders insights into recurring market tendencies and helping them identify potential opportunities and risks.
The ICT Weekly Profiles indicator offers two distinct types of profiles to provide a clearer understanding of weekly price action:
ICT Weekly Profiles
ICT Missing Weekly Profiles
The toolkit automatically detects and marks these ICT Weekly Profiles and ICT Missing Weekly Profiles on the chart, enabling traders to quickly pinpoint critical zones for analysis and decision-making.
📦 Features
The ICT Weekly Profiles toolkit offers a comprehensive set of features designed to enhance trading precision and decision-making. Key features include:
Weekly Profiles
Missing Weekly Profiles
Advanced Styling
Scanner
The indicator supports the following profiles:
ICT Weekly Profiles
Classic Tuesday Low Of The Week Bullish
Classic Tuesday High Of The Week Bearish
Wednesday Low Of The Week Bullish
Wednesday High Of The Week Bearish
Consolidation Thursday Reversal Bullish
Consolidation Thursday Reversal Bearish
Consolidation Midweek Rally Bullish
Consolidation Midweek Rally Bearish
Wednesday Weekly Reversal Bullish
Wednesday Weekly Reversal Bearish
Seek And Destroy Bullish Friday
Seek And Destroy Bearish Friday
ICT Missing Weekly Profiles
Monday Low Tuesday High Bullish
Monday High Tuesday Low Bearish
Monday Low Wednesday High Bullish
Monday High Wednesday Low Bearish
Monday Low Thursday High Bullish
Monday High Thursday Low Bearish
Tuesday Low Wednesday High Bullish
Tuesday High Wednesday Low Bearish
Tuesday Low Friday High Bullish
Tuesday High Friday Low Bearish
Wednesday Low Thursday High Bullish
Wednesday High Thursday Low Bearish
Monday Low Friday High Bullish
Monday Friday Bearish Rally
Monday High/Low Range
Tuesday High/Low Range
Wednesday High/Low Range
Thursday High/Low Range
Friday High/Low Range
⚙️ Settings
History: Controls how many profiles are displayed on the chart.
Timeframe Limit: Sets the timeframe up to which profiles will be drawn.
Show OHLC Lines: Display the lines for OHLC.
Show Profile Line: Display the Weekly Profile line.
Use NY Midnight Open: Controls from where a profile will start detection.
Open: Style for Open line.
High: Style for High line.
Low: Style for Low line.
Midline: Style for Profile Midline.
Label: Controls the position of the Weekly Profile name.
Scanner: Display the Scanner
⚡️ Showcase
ICT (Inner Circle Trader) weekly profile templates are analytical frameworks that categorize and describe typical patterns of price action observed during a trading week.
ICT Weekly Profiles
ICT Missing Weekly Profiles
Scanner
📒 Usage
The primary objective of the ICT Weekly Profiles indicator is to provide traders with a comprehensive and actionable overview of the Weekly Previous, Current, and Future Profile. This allows traders to interpret market structure, anticipate price behavior, and align their trading decisions with higher time-frame trends.
Load the indicator on the chart
Enable Scanner
See the Predicted Profiles list
Predicted Profiles represent all potential scenarios for the current week, generated by a profile detection algorithm.
By visualizing potential outcomes through Predicted Profiles, the ICT Weekly Profiles indicator provides traders with a strategic edge, allowing them to remain flexible, prepared, and aligned with the most probable market movements.
🚨 Alerts
The indicator does not provide any alerts!
🔹 Notes
ICT Weekly Profiles
pbs.twimg.com
ICT Missing Weekly Profiles
pbs.twimg.com
⚠️ Disclaimer
These tools are exclusively available on the TradingView platform.
Our charting tools are intended solely for informational and educational purposes and should not be regarded as financial, investment, or trading advice. They are not designed to predict market movements or offer specific recommendations. Users should be aware that past performance is not indicative of future results and should not rely on these tools for financial decisions. By using these charting tools, the purchaser agrees that the seller and creator hold no responsibility for any decisions made based on information provided by the tools. The purchaser assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses or investment outcomes that may result from the use of these products.
By purchasing, the customer acknowledges and accepts that neither the seller nor the creator is liable for any undesired outcomes stemming from the development, sale, or use of these products. Additionally, the purchaser agrees to indemnify the seller from any liability. If invited through the Friends and Family Program, the purchaser understands that any provided discount code applies only to the initial purchase of Candela's subscription. The purchaser is responsible for canceling or requesting cancellation of their subscription if they choose not to continue at the full retail price. In the event the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable.
We do not offer reimbursements, refunds, or chargebacks. Once these Terms are accepted at the time of purchase, no reimbursements, refunds, or chargebacks will be issued under any circumstances.
By continuing to use these charting tools, the user confirms their understanding and acceptance of these Terms as outlined in this disclaimer.
COT-Index (Trader Sentiment Tracker)The COT Data with Speculator Indices indicator provides insights into market sentiment based on the Commitments of Traders (COT) report. It analyzes and visualizes the positions of different market participants (e.g., large speculators, commercial traders, and nonreportable positions) over a specific period (default: 26 weeks). The indicator calculates indices for each group, ranging from 0 to 100, indicating whether positions are extreme or neutral.
It includes customizable thresholds to highlight bearish (above 80%) and bullish (below 20%) zones, with visual cues (lines and background color changes) to mark market extremes. The indicator also displays the current COT data in a table and provides real-time signals based on the market sentiment, helping traders assess the potential market direction.
Key features:
Displays COT data for large speculators, commercial traders, and nonreportable positions.
Visualizes market extremes with background shading.
Provides real-time sentiment signals.
Customizable thresholds for bullish and bearish signals.
This indicator is useful for traders who want to gauge market sentiment using the COT report and make informed decisions based on trader positioning.