TuxTune - Dynamic Vertical LineVisual aid. The vertical line moves dynamically with the last candle of the selected time frame.
The middle of the line moves with the latest price.
The line range (height) can be set to any value to aid in quickly gauging the size of the candles without having to keep looking at the numbers on the vertical axis to determine how big the candles are.
Line width, color, and distance from the last candle can also be set.
The label can be turned off/on.
Grafik Paternleri
Gabriel's Crypto Cycle Master [Multi-Asset]🧠 Gabriel's Crypto Cycle Master
Gabriel’s Crypto Cycle Master is a comprehensive macro valuation tool designed to identify long-term accumulation and distribution zones for any crypto asset using custom on-chain and price-based models.
🔹 Fully Multi-Asset Support
Manually input full tickers from COINMETRICS, GLASSNODE, or INDEX to track:
Realized Market Cap
On-chain Supply
Total Transaction Volume
USD-denominated Price
🔹 Core Metrics Modeled
This script computes major macroeconomic valuation layers based on widely researched concepts:
Realized Price – Network's cost basis
Top Cap – 35× average historical cap
Delta Top – Gap between Realized Price and Average Cap
CVDD – Cumulative Value Days Destroyed
Terminal Price – Network floor based on age and velocity
Balanced Price – Realized minus Terminal (via regression)
🔹 Advanced Bands for Over/Undervaluation
Around Realized Price, this tool dynamically plots:
Golden Ratio Band (×φ) — "Warm Zone" undervaluation
Euler's e Band (×e) — "Caution Zone" deeper value
Pi Band (×π) — "Overheated" zone when crossed upward
🔹 Built-in Alerts
Alerts fire when:
Price crosses below or above any band
Price drops under Terminal Price
Price recovers above the network floor
🔹 Ideal For
Long-term crypto cycle investors
On-chain analysts
DCA accumulation and distribution timing
Macro-level Bitcoin or ETH valuation zones
⚙️ Setup
Manually enter tickers for Market Cap, Supply, Volume, and Price for your preferred crypto asset.
Adjust CVDD cap (21M for BTC, ~120M for ETH) if analyzing a different coin.
Enable/disable specific valuation layers and alert bands via checkboxes.
Built by OneWallStreetQuant | Dynamic adaptation by Gabriel
Published for educational and cycle analysis use — not financial advice.
Ideal for Daily Charts, since the estimate formula was created on that timeframe.
HTF Candle Overlay with Probability
Visualize Higher Timeframe Candles with Predictive Insights
This tool reconstructs higher-timeframe (HTF) candles using 1-minute bars and overlays them directly on your chart. It includes:
Wick + Body rendering for grouped HTF candles (e.g. 10m, 15m, etc.)
A dynamic label showing the probability of the current HTF candle closing bullish
Real-time updates and smart fading based on candle progress
Configurable colors for fills, outlines, and labels
🔧 Customizable Options:
Candle size (e.g. 10m, 15m)
Body fill and border color
Wick fill and border color
Label text/background color
Whether you're a scalper watching larger structure or a PA trader looking for confluence, this overlay gives you predictive insight where it matters: on the candle that's still forming.
Moving average with different timeThis script allowing you to plot up to 6 different types of moving averages (MAs) on the chart, each with customizable parameters such as type, length, source, color, and timeframe. It also allows you to set different timeframes for each moving average.
Key Features:
Multiple Moving Averages: You can add up to 6 different moving averages to your chart.
Each MA can be one of the following types: SMA, EMA, SMMA (RMA), WMA, or VWMA.
Custom Timeframes: Each moving average can be applied to a specific timeframe, giving you flexibility to compare different periods (e.g., a 50-period moving average on the 1-hour chart and a 200-period moving average on the 4-hour chart).
Customizable Inputs:
Type: Choose between SMA, EMA, SMMA, WMA, or VWMA for each MA.
Source: You can select the price data source (e.g., close, open, high, low).
Length: Set the number of periods (length) for each moving average.
Color: Each moving average can be assigned a specific color.
Timeframe: Customize the timeframe for each moving average individually (e.g., MA1 on 15-minute, MA2 on 1-hour).
User Interface:
The script includes a data window display for each moving average, allowing you to control whether to show each MA and configure its settings directly from the settings menu.
Flexible Use:
Toggle individual moving averages on and off with the show checkbox for each MA.
Customize each MA's parameters without affecting others.
Parameters:
MA Type: You can choose between different moving averages (SMA, EMA, etc.).
Source: Price data used for calculating the moving average (e.g., close, open, etc.).
Length: Defines the period (number of bars) for each moving average.
Color: Change the line color for each moving average for better visualization.
Timeframe: Set a different timeframe for each moving average (e.g., 1-day MA vs. 1-week MA).
Example Use Case:
You might use this indicator to track short-term, medium-term, and long-term trends by adding multiple MAs with different lengths and timeframes. For example:
MA1 (20-period) might be an SMA on a 1-hour chart.
MA2 (50-period) might be an EMA on a 4-hour chart.
MA3 (100-period) might be a WMA on a daily chart.
This setup allows you to visually track the market's behavior across different timeframes and better identify trends, crossovers, and other patterns.
How to Customize:
Show/Hide MAs: Enable or disable each moving average from the input menu.
Modify Parameters: Change the MA type, source, length, and color for each individual moving average.
Timeframes: Set different timeframes for each moving average for more detailed analysis.
With this Moving Average Ribbon, you get a versatile and visually rich tool to aid in technical analysis.
90-Day Beta to BTCOverview:
The 90-Day Beta to BTC indicator measures the volatility of a specific token relative to Bitcoin (BTC) over the past 90 days. Beta is a widely used statistical measure in financial markets that indicates how much a token's price moves in relation to BTC. A higher beta means the token is more volatile compared to BTC, while a lower beta means it is less volatile or moves similarly to BTC.
How It Works:
This indicator calculates the daily logarithmic returns of both the token and Bitcoin, then computes the covariance between their returns and the variance of Bitcoin’s returns. The resulting Beta value reflects the degree to which the token’s price fluctuates relative to Bitcoin's price over the past 90 days.
Beta > 1: The token is more volatile than Bitcoin, showing higher price swings.
Beta = 1: The token moves in lockstep with Bitcoin, exhibiting similar volatility.
Beta < 1: The token is less volatile than Bitcoin, showing smaller price fluctuations.
Beta = 0: The token's price movement is uncorrelated with Bitcoin’s price.
Negative Beta: The token moves opposite to Bitcoin, indicating an inverse relationship.
Use Case:
This indicator is particularly useful for traders or investors looking to identify tokens with high speculative volatility. Tokens with Beta values above 1 are typically high-risk, high-reward assets, often driven by hype, social trends, or market speculation. Conversely, tokens with Beta values below 1 offer a more stable price relationship with Bitcoin, making them less volatile and potentially safer.
In the context of a Trash Token Tournament, tokens with a higher Beta (greater than 1) may be more attractive due to their heightened volatility and potential for larger price swings, making them the “wild cards” of the market.
Visual Representation:
The Beta value is plotted as a line chart beneath the main price chart, offering a visual representation of the token’s volatility relative to Bitcoin over the last 90 days. Spikes in Beta indicate periods of increased volatility, while drops suggest stability.
Volume and Volatility Ratio Indicator-WODI该指标名为“交易量与波动率比例指标-WODI”,主要基于交易量和价格波动率构造一个复合指数,帮助识别市场内可能存在的异常或转折信号。具体实现如下:
用户自定义参数
用户可以设置交易量均线长度(vol_length)、指数的短期与长期均线长度(index_short_length、index_long_length)、均线敏感度(index_magnification)、阈值放大因子(index_threshold_magnification)以及检测K线形态的区间(lookback_bars)。这些参数为后续计算提供了灵活性,允许用户根据不同市场环境自定义指标的敏感度和响应速度。
交易量均线与百分比计算
首先通过 ta.sma 计算指定长度的交易量简单均线(vol_ma)。
接下来,将当前交易量与均线进行比较,计算出当前交易量占均线的百分比(vol_percent),这反映了短期内交易量的相对活跃程度。
波动率的衡量
使用当前K线的最高价和最低价计算振幅,再除以收盘价乘以100得到波动率(volatility),从而反映市场价格波动的幅度。
构建交易量/波动率指数
将交易量百分比与波动率相乘,形成了“交易量/波动率指数”(volatility_index)。该指数能够同时反映市场的交易活跃度和价格波动性,两者的联合作用帮助捕捉市场的“热度”。
计算指标均线与阈值
对交易量/波动率指数分别计算短期均线(index_short_ma)和长期均线(index_long_ma),并通过乘以一个敏感度参数(index_magnification)进行调整。
同时,依据长期均线计算一个阈值(index_threshold),起到过滤噪音的作用。当指数突破该阈值时,可能预示着市场的重要变化。
K线形态与反转模式检测
通过遍历最近几根K线(由lookback_bars控制),指标会检测是否符合一系列预定条件(涉及交易量、价格振幅、K线形态等),以判断是否存在反转模式。若符合条件,则标记为反转模式,从而为潜在的转折点提供提示。
图表展示
最终在独立窗口中绘制多个元素:
指数短均线与长均线:经过敏感度调整后显示,用于分析指数趋势。
交易量/波动率指数:采用阶梯线风格绘制,直观展示指数变化。
阈值线:作为参考水平,便于判断指数是否突破常规范围。
交易量柱状图:当当前交易量高于均线时,通过不同颜色显示;当检测到反转模式时,颜色会进一步强化,帮助用户迅速识别潜在信号。
English Description
This indicator, titled “Volume and Volatility Ratio Indicator - WODI”, is designed to construct a composite index based on trading volume and price volatility, aiding in the identification of abnormal market conditions or potential reversal signals. Its functionality is broken down as follows:
User-Defined Parameters
The indicator allows users to set parameters such as the moving average length for volume (vol_length), the short and long moving average lengths for the index (index_short_length and index_long_length), a sensitivity multiplier (index_magnification), a threshold magnification factor (index_threshold_magnification), and the number of bars for pattern detection (lookback_bars). These parameters provide flexibility to adjust the sensitivity and responsiveness of the indicator based on different market conditions.
Volume Moving Average and Percentage Calculation
A simple moving average (SMA) of volume is computed over the specified length (vol_ma) using the ta.sma function.
The current volume is then compared to its moving average to calculate the volume percentage (vol_percent), reflecting the relative trading intensity in the short term.
Measuring Volatility
Volatility is calculated based on the current bar’s high and low prices, normalized by the closing price and multiplied by 100, which provides a measure of the market’s price fluctuation magnitude.
Constructing the Volume/Volatility Index
The index (volatility_index) is derived by multiplying the volume percentage by the calculated volatility. This composite metric reflects both market activity and price movement, effectively capturing the overall “heat” of the market.
Calculating the Index Moving Averages and Threshold
Two moving averages for the volatility_index are computed: one short-term (index_short_ma) and one long-term (index_long_ma). These are then adjusted by the sensitivity multiplier (index_magnification).
A threshold level (index_threshold) is calculated based on the long-term moving average multiplied by the threshold magnification factor, serving to filter out market noise. When the index exceeds this threshold, it may signal significant market shifts.
Detection of Reversal Patterns
The indicator iterates through the recent bars (as determined by lookback_bars) to check whether a set of predetermined conditions (involving trends in the volatility_index, volume comparisons, price closes, and K-line patterns) are met. If these conditions are satisfied, it flags a reversal pattern, which may serve as a warning for a potential market turnaround.
Visualization on the Chart
The final display includes several elements plotted in a separate indicator window:
The short-term and long-term moving averages of the index (after sensitivity adjustment) which help visualize the trend of the composite index.
The volatility index itself is drawn using a step-line style for clarity.
A threshold line is plotted to provide a reference level against which index movements can be compared.
A volume histogram is also displayed, where bars are colored differently when the current volume exceeds the moving average; the color is further enhanced if a reversal pattern is detected, making it easy for users to quickly spot potential signals.
Candle Pattern Signals - Global Lowest/HighestForex Indicator – Precision Tool for Smarter Trading
Unlock the full potential of your trading strategy with this powerful Forex indicator. Designed to identify high-probability trade setups, it combines real-time price action analysis with advanced technical algorithms. Whether you're a scalper, swing trader, or trend follower, this tool provides clear entry and exit signals to boost your performance. Compatible with all major currency pairs and optimized for MetaTrader 4/5. Take your trading to the next level – trade smarter, not harder.
DC History & Daily Cross CountOkay, here is a technical document for the Pine Script indicator we developed. This can be used as a guide or description when publishing the script on TradingView or elsewhere.
Technical Document: SMA Cross Signals & Static DC History (Death Cross)
Version: 1.0
Date: April 14, 2025
Indicator Name: Specific Static DC History + Live Signals
Pine Script Version: 5
1. Overview
This TradingView indicator is designed to provide traders with visual signals for Simple Moving Average (SMA) crossovers, specifically focusing on the "Death Cross", while also presenting relevant historical context via a static data table and a real-time daily cross counter.
It combines several features:
Plotting of a fast and a slow Simple Moving Average (SMA).
Visual identification and marking of "Death Cross" events (Fast SMA crossing below Slow SMA) directly on the price chart.
A customizable table displaying static, pre-defined historical performance data of the S&P 500 following specific Death Crosses that occurred between 2016 and 2022.
An optional label that counts the total number of SMA crosses (both Golden Crosses and Death Crosses) occurring during the current trading day/session, including extended hours if enabled by the user on their chart.
2. Features
Customizable SMA Lengths: User-defined periods for both the Fast (default 50) and Slow (default 200) SMAs.
Death Cross Signals: Clear visual markers (red triangles above the bar and optional background shading) when the Fast SMA closes below the Slow SMA.
Optional SMA Plotting: Ability to show or hide the SMA lines themselves.
Static Historical Performance Table: Displays fixed historical return data (1 Week, 1 Month, 3 Months, 6 Months, 1 Year) following specific S&P 500 Death Crosses that occurred on 1/11/2016, 12/7/2018, 3/30/2020, and 3/14/2022. Note: This data is static and does not change based on the current chart.
Customizable Table Position: User can select the on-screen corner for the data table.
Daily SMA Cross Counter: Optionally displays a label showing the cumulative number of times the Fast SMA has crossed above (Golden Cross) or below (Death Cross) the Slow SMA during the current trading day/session.
Extended Hours Compatibility: The Daily Cross Counter includes crosses from pre-market and after-hours sessions if the user has "Extended Trading Hours" enabled on their TradingView chart settings.
3. Technical Explanation
SMA Calculation: The script uses the built-in ta.sma(source, length) function, calculating the Simple Moving Average based on the close price of each bar for the user-defined fastLen and slowLen.
Death Cross Detection: A Death Cross is detected using ta.crossunder(fastMA, slowMA). This function returns true on the first bar where the value of fastMA is less than the value of slowMA, after previously being greater than or equal to it. The comparison is based on the calculated SMA values at the close of each bar.
Golden Cross Detection: Similarly, ta.crossover(fastMA, slowMA) is used to detect Golden Crosses for the daily counter.
Visual Signals: The plotshape() function draws a red triangle above the bar where deathCross is true. The bgcolor() function applies a transparent red background to the bar where deathCross is true.
Static Table Data: The historical performance data for the 4 specified dates (Jan 2016 - Mar 2022) is hardcoded into array variables within the script. This data was derived from a prior analysis (based on the initially provided image, source likely Dow Jones Market Data or similar) and is not calculated dynamically from the chart. The script iterates through these arrays and populates a table object on the last bar.
Daily Cross Counter:
A var int dailyCrossCount variable holds the count, ensuring persistence across bars within a day.
ta.change(time("D")) detects the start of a new daily session based on the chart's symbol and session settings. When true, the dailyCrossCount is reset to 0.
On each bar, if either deathCross or goldenCross is true, the dailyCrossCount is incremented.
A label object displays the dailyCrossCount and is updated on the last bar (barstate.islast).
Extended Hours Inclusion: The script inherently uses the data series provided by the chart. If the chart is configured to include Extended Trading Hours (ETH), the close prices used for SMA calculations will reflect ETH data, and crosses occurring during ETH will be detected and counted.
4. Settings (Inputs)
Show Static Data Table (2016-2022) (Checkbox): Toggles the visibility of the table containing the fixed historical performance data. (Default: On)
Table Position (Dropdown): Selects the corner or side of the chart where the static data table will be displayed. (Default: top_right)
Plot 50/200 SMAs (Checkbox): Toggles the visibility of the Fast and Slow SMA lines on the chart. (Default: On)
Fast MA Length (Integer Input): Sets the lookback period for the Fast Simple Moving Average. (Default: 50)
Slow MA Length (Integer Input): Sets the lookback period for the Slow Simple Moving Average. (Default: 200)
Show Daily Cross Count (Checkbox): Toggles the visibility of the label displaying the number of SMA crosses detected during the current day's session. (Default: On)
5. How to Use / Interpretation
Apply the indicator to your desired chart (e.g., SPY, QQQ, /ES).
Use the plotted SMA lines (if enabled) and the red triangle/background signals to identify potential trend changes indicated by Death Crosses based on your chosen MA lengths. Remember that these are lagging indicators.
Refer to the static data table for historical context only. It shows how the S&P 500 performed following specific Death Crosses between 2016 and 2022. This data is fixed and does not predict future performance.
Use the "Today's SMA Crosses" label (if enabled) to gauge the frequency of interaction between the chosen SMAs during the current session. A higher number might indicate choppier conditions or potential shifts on the chart's timeframe.
Important: For the Daily Cross Counter to reflect pre-market/after-hours activity, ensure "Extended Trading Hours" (ETH) is enabled in your TradingView chart settings.
Be aware that the number of crosses detected by the script (based on bar closes) may differ from visual interpretations of lines touching intraday, especially on lower timeframes.
6. Limitations
Static Table Data: The performance data in the table is fixed to the 4 provided historical instances (2016-2022) and is not calculated dynamically or updated. It serves only as a historical reference point.
Lagging Indicators: Moving Averages and their crosses are lagging indicators and may not signal trend changes precisely at tops or bottoms.
Cross Calculation: Crosses are based on the closing price of each bar. Intraday price movements briefly piercing an SMA may not register as a confirmed cross.
Daily Counter Definition: The definition of "Today" depends on the chart's session timing, which might not align perfectly with a calendar day.
Whipsaws: On lower timeframes or during volatile periods, MA crosses can generate frequent signals (whipsaws) which may be less reliable.
7. Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Trading involves significant risk, and past performance (including the historical data presented in the table) is not indicative of future results. Always conduct your own thorough research and consult with a qualified financial advisor before making any trading decisions.
Dynamic Adaptive Moving Average [Alpha Extract]Dynamic Adaptive Moving Average (DAMA) 📊
The Dynamic Adaptive Moving Average (DAMA) indicator is an adaptive technical tool that automatically discovers the optimal moving average period based on forward-looking price behavior. Unlike traditional fixed-length moving averages, this indicator continuously evaluates multiple timeframes to identify which MA length most accurately predicts future price movement, creating a responsive trend line that adapts to changing market conditions.
🔶 CALCULATION
The indicator employs a dynamic optimization algorithm to select the most effective moving average:
• Period Testing: Evaluates MA lengths from 5 to 100 periods to find the optimal timeframe
• Predictive Error: Measures each MA's accuracy by comparing it to the actual price 5 bars in the future
• Trend Weighting: Incorporates Rate of Change (ROC) to give higher priority to trend-following capabilities
• Error Minimization: Selects the MA length with the lowest weighted predictive error
• Smoothing: Applies an exponential smoothing factor (0.2) to prevent erratic changes in the trend line
🔶 DETAILS
Visual Features:
• Adaptive Trend Line: A yellow line representing the smoothed optimal moving average that dynamically adjusts its period
• Color-Coded Fills: Green areas when price is above the optimal MA (bullish), red when price is below (bearish)
• Opacity Gradient: Fill transparency provides visual context for the relationship between price and the trend line
• Real-Time Optimization Display: A table in the top-right corner shows the current optimal MA length
Interpretation:
• Bullish Signal: Price above the yellow DAMA line with green fill indicates upward momentum
• Bearish Signal: Price below the yellow DAMA line with red fill suggests downward pressure
• Trend Changes: Watch for crossovers between price and the DAMA for potential trend shifts
• Optimal Length Changes: Shorter optimal lengths may indicate trending markets, while longer lengths often appear in ranging conditions
🔶 EXAMPLES
The indicator demonstrates:
• Trend Identification: The DAMA hugs price more closely during trends while maintaining enough distance to filter noise
• Dynamic Adaptation: The MA length automatically adjusts shorter during strong trends and longer during consolidations
• Forward-Looking: By optimizing based on future price projection (5 bars), the indicator anticipates price movements better than traditional MAs
• Smooth Transitions: The smoothing algorithm prevents whipsaws while still allowing the MA to adapt to changing conditions
🔶 SETTINGS
Customization Options:
• Min/Max Length: Define the range of MA periods to test (default: 5-100)
• Step Size: Set the increment for testing different MA lengths (default: 1)
• Lookahead: Adjust the number of bars to project ahead for optimization (default: 5)
• Smoothing Factor: Control how quickly the MA adapts to new optimal lengths (default: 0.2)
The Dynamic Adaptive Moving Average (DAMA) indicator offers traders a sophisticated yet intuitive trend-following tool that eliminates the need to manually select MA periods.
Its self-optimizing algorithm continuously identifies the most effective moving average length based on actual price prediction accuracy, making it valuable for various trading strategies across different market environments and timeframes.
Gold Price with Time ShiftOverview
The "Gold Price with Time Shift" indicator allows you to visualize the Gold price (XAUUSD) with a customizable time shift, enabling you to lag or lead the data by a specified number of bars. Whether you're analyzing historical trends or projecting Gold’s price into the future, this indicator provides a flexible tool to align Gold price movements with other market indicators or events.
Features
Customizable Time Shift: Shift the Gold price backward (lag) or forward (lead) by a user-defined number of bars. Positive values lag the data, while negative values project it into the future.
Future Projection: When leading the Gold price (negative time shift), the indicator extends the chart into the future, displaying the last known price as a flat projection for easy comparison.
Daily Timeframe: Fetches Gold price data on a daily timeframe, ensuring consistency for long-term analysis.
User-Friendly Inputs: Easily adjust the Gold ticker and time shift via the settings panel to suit your analysis needs.
Session Highs and Lows IndicatorSession Highs and Lows Indicator
This indicator automatically tracks and displays the High and Low prices for major trading sessions:
London
New York
Asia
New York Close
For each session, it plots:
A label at the highest and lowest price point reached during the session.
A dashed line showing the high and low levels extended to the right (until the current bar), helping traders visualize key support/resistance zones.
You can toggle visibility for each session individually through the settings panel.
Session times are set in GMT+8, but you can adjust them in the code if needed.
Color code:
London: Blue
New York: Red
Asia: Green
New York Close: Orange
All lines and labels are semi-transparent to avoid chart clutter.
Ideal for intraday and session-based trading strategies.
CoffeeShopCrypto High Timeframe Dynamic Order BlocksThis indicator automates the detection of significant order blocks in real time, from higher timeframes (Daily, Weekly, Monthly) and dynamically adapts their zone boundaries to your current chart timeframe regardless of what you change it to. By analyzing market structure across multiple time horizons, it identifies institutional-level supply/demand zones and precisely recalculates their parameters to match your active chart's resolution - whether you're viewing 1-minute or 4-hour candles or even higher.
Key Technical Features:
Multi-Timeframe Analysis: Scans daily/weekly/monthly data to identify the most significant order blocks that influence all lower timeframes
Adaptive Zone Calculation: Automatically recalculates zone boundaries when you change timeframes, maintaining accurate price levels and candle formations specific to your chart
Smart Price Action Filtering: Isolates only the relevant candles that formed each order block within your current timeframe's context
Structural Precision: Adjusts zone width and position based on the actual candle wicks/bodies that created the order block in your active timeframe.
What they look like when calculated instantly.
About Order Blocks (Market Structure Perspective):
Order blocks represent concentrated areas where institutional traders executed significant positions, creating imbalances in market structure.
These zones become:
Bullish Order Blocks: Demand areas where aggressive buying overwhelmed sellers, often appearing as consolidation before strong upward movements.
Bearish Order Blocks: Supply zones where distribution activity preceded substantial downward moves.
How It Works Differently:
The indicator identifies these critical areas by analyzing the relationship between consecutive candles' opens, highs, lows, and closes - particularly focusing on break-of-structure patterns that confirm zone validity.
Traditional order block indicators simply copy higher timeframe zones to lower charts. These common orderblocks are said be found as the candle before the candle that caused a huge market swing. In a break long, you would look backwards to find the first previous bearish candle. The opposite find would be for a break short.
This is a most unreliable method in finding orderblocks and simply is not true.
Zone Extensions. Choose how far into the future you want your zone to go to. There is no wrong number but you don't want to go too far.
This scripts performs true multi-timeframe analysis by:
Detecting the original order block formation conditions on HTFs
Drilling down to find the exact "candle sequence" that created the zone in your current timeframe.
Continuously monitoring for structural breaks that invalidate zones
Automatically adjusting all visual elements when you switch timeframes
Usage Benefits:
Eliminates manual timeframe switching to identify significant zones
Maintains visual consistency when changing chart resolutions
Provides cleaner charts by only showing relevant order blocks
Adapts to any market (Forex, Stocks, Crypto) and any timeframe combination
Breached Zones. The zone becomes invalidated but the Supply or Demand line is still relevant.
Note on Trading:
While this indicator precisely identifies order block locations, trading methodologies using these zones depend on individual strategy preferences. The tool focuses exclusively on accurate technical detection and adaptive visualization across timeframes.
How to Use Them:
As long as you don't have price action breach of a Bullish Zone Demand Floor you can keep using that zone as a bullish orderblock until its Demand Floor has been breached.
This also means you can still use its Demand Floor as a support level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a supply floor left to use as support.
As long as you don't have price action breach of a Bearish Zone Supply Wall you can keep using that zone as a bearish orderblock until its Supply Wall has been breached.
This also means you can still use its Supply Wall as a resistance level while the Zone itself is no longer relevant. This eliminates the orderblock ZONE as being an orderblock and now you only have a resistance level.
Once either has been breached, you would find liquidity behind the zone of the ordreblock. This is where price will seek support or resistance depending on the zone type.
Orderblocks has a BODY and who knew they could be so cute. I mean look at this structure.
This is how they are built and what their levels represent.
Intraday vs Overnight Change TrackerThis indicator tracks a synthetic price path based on either intraday or overnight return behavior, allowing users to analyze which component of daily price movement is contributing more to long-term performance.
***THIS INDICATOR ONLY WORKS ON THE DAILY TIMEFRAME***
Intraday mode compounds price change from market open to close: close / open
Overnight mode compounds price change from previous close to current open: open / close
The user can select one of these two modes using a dropdown input. The synthetic price series starts from the second bar of the chart and compounds forward bar-by-bar using the selected return type. The result is a line that reflects cumulative return based solely on either intraday or overnight activity.
⚙️ Inputs
Synthetic Price Type: Select between "Intraday" or "Overnight" to visualize the respective compounded price series.
📈 Usage Notes
This indicator is intended for visual comparison of intraday vs. overnight price dynamics over time. It can be useful for identifying behavioral patterns, session-based return anomalies, or testing session bias strategies.
Only one synthetic line is shown at a time based on user selection.
If you want to view both intraday and overnight lines, then you can add the indicator twice, which is shown above.
Market Session StrategyMarket Session Strategy Indicator Explanation
This is a TradingView Pine Script indicator called "Market Session Strategy" that monitors different market sessions and generates trading signals based on pattern analysis between sessions. Let me break down how it works:
Core Functionality
The indicator divides the trading day into three sessions:
Pre-Market (7:30 PM - 3:00 AM ET by default)
Regular Market (3:00 AM - 9:30 AM ET by default)
After Hours (9:30 AM - 4:00 PM ET by default)
For each session, it:
Tracks price action (open, high, low, close)
Calculates range percentages
Identifies session bias (bullish or bearish)
Draws visual session boxes on the chart
Generates trading signals based on historical patterns
Signal Generation Methodology
The indicator generates BUY/SELL signals at the beginning of the Regular Market and After Hours sessions using three main strategies:
1. Trend Continuation/Reversal Analysis
The script tracks how often a bullish/bearish trend in one session continues or reverses in the next session. For example:
If pre-market trends historically continue into regular hours 70% of the time and today's pre-market is bullish, it may generate a BUY signal.
If reversals are more common, it may generate a counter-trend signal.
2. Tight Range Breakout Signal
The indicator identifies "tight range" sessions (where price movement is unusually constrained compared to recent averages). A tight range with a bullish bias generates a BUY signal, while a bearish bias generates a SELL signal.
3. Day of Week Pattern Analysis
The script analyzes which days of the week show stronger trend continuation probabilities. If a particular day (like Monday) historically shows strong trend continuation and the threshold is met, it generates a signal accordingly.
Visual Components
The indicator provides several visual elements:
Colored session boxes showing high/low ranges
Signal labels at entry points
Session background colors with high transparency
A comprehensive dashboard showing session status, range percentages, bias, and signals
Performance Tracking
The script tracks trade success by session and day of week, which helps refine future signals. A trade is considered successful if:
A BUY signal is followed by a close higher than open
A SELL signal is followed by a close lower than open
Session extensions [dani]Session Extension
Indicator Description
The Session Extensions indicator is a customizable tool designed to visually represent key price levels during a specified trading session. It calculates and displays the high, low, and midpoints of the session, along with extension levels based on user-defined multipliers. These extensions help traders identify potential support and resistance zones beyond the initial session range.
This indicator is particularly useful for intraday traders who rely on session-based analysis to make informed decisions. It overlays directly on the chart, ensuring seamless integration with price action.
Key Features
Session-Based Analysis : Tracks and highlights key price levels (high, low, midpoint) during a specific trading session.
Customizable Extension Levels : Allows users to define up to six extension levels (both above and below the session range) with unique multipliers, colors, styles, and widths.
Real-Time Updates : Automatically updates during the active session and resets at the start of a new session.
Usage Guidelines
Add the Indicator to Your Chart : Apply the Session Extensions indicator to your chart to visualize key session-based levels.
Intraday Focus : This indicator is optimized for intraday trading. Ensure that the chart's timeframe is set to an intraday interval (e.g., 1-minute, 5-minute).
Session Alignment : Verify that the session time aligns with your trading schedule and timezone. Misalignment may result in incorrect session detection. (This indicator use America - New York timezone)
Avoid Overcrowding : While the indicator supports multiple extension levels, enabling too many levels simultaneously may clutter the chart. Use discretion when configuring extension levels.
Customize Line Styles and Colors : Tailor the appearance of lines and labels to align with your trading style. Use solid, dashed, or dotted lines, and choose colors that enhance visibility without cluttering the chart.
Combine with Other Tools : Pair this indicator with other technical analysis tools (e.g., moving averages, volume profiles) to enhance decision-making.
Disclaimer & Chat
The Session Extensions indicator is intended for educational and analytical purposes only. It does not provide financial advice or guarantee trading success. Users are responsible for verifying the accuracy of session times and ensuring proper configuration before using the indicator in live trading. This indicator is not a trading signal generator.
Thank you for choosing this indicator! I hope it becomes a valuable part of your trading toolkit. Remember, trading is a journey, and having the right tools can make all the difference. Whether you're a seasoned trader or just starting out, this indicator is designed to help you stay organized and focused on what matters most—price action. Happy trading, and may your charts be ever in your favor! 😊
From, Dani.
Stockbee 4% DaysStockbee 4% / -4% identifier. Helps with depicting mom bursts in either direction. I find it particularily helpful when I am looking to determine tightness and quality of a consolidation. You don't want more than one -4% day in a quality consolidation before a breakout.
H4 Cross + LTF Candle Alignment (Short Lines)H4 Cross + LTF Candle Alignment (Short Lines)
This indicator identifies potential trade opportunities by combining two key conditions:
The current H4 candle crosses above or below the previous H4 candle's high or low.
On a lower timeframe (like 5 minutes), the price shows two consecutive candles moving in the same direction (bullish for long, bearish for short).
Once these conditions align, a short entry line is drawn on the chart and an alert is triggered, providing an early signal for potential price movements. Perfect for traders looking to capture trend continuation with a clear visual marker and timely alerts.
Daily Borders with Weekday Labels[fitfatq]Indicator Overview
This indicator displays daily vertical border lines and the previous day’s weekday label on intraday charts (i.e., charts with a timeframe lower than Daily). It draws a vertical line at the start of each new trading day and places a label displaying the previous day’s weekday (e.g., Monday) at the horizontal midpoint between the previous and the current day. Users can customize various visual aspects such as the separator line style and width, label style, text color, and text size. Additionally, the indicator offers an option to fix the label’s Y coordinate at a specified price level to prevent it from being overlapped by candlesticks.
Parameter Details
Use Fixed Weekday Label Y Coordinate
Type: Boolean
Default: false
Description: When enabled, the weekday label’s vertical position will be fixed at a specified price level (see next parameter). Otherwise, the label’s Y position is determined dynamically (typically based on the current bar’s low minus 3 ticks).
Fixed Weekday Label Y Coordinate (price)
Type: Float
Default: 130.0
Description:
This parameter sets the fixed price level at which the weekday label will be displayed if the "Use Fixed Weekday Label Y Coordinate" option is enabled. Please input a value that corresponds to your chart’s price scale (e.g., 130.50). Note: In charts with high price levels (for example, stocks trading at 3000 or above), it is recommended to set this value to 3000 or above. The higher the value, the closer the label will appear to the candlesticks.
Separator Line Style
Type: String (Options: "Solid", "Dotted", "Dashed")
Default: "Dotted"
Description: Specifies the style of the vertical separator line drawn at the start of each new day. "Solid" displays a continuous line, "Dotted" shows a dotted line, and "Dashed" provides a dashed line.
Separator Line Width
Type: Integer
Default: 1
Description: Determines the thickness of the separator line. A higher number results in a thicker line; the minimum value is 1.
Label Style
Type: String (Options: "None", "Label Up", "Label Down", "Label Left", "Label Right", "Label Center")
Default: "None"
Description: Sets the built-in style for the weekday label. "None" means no background or border (plain text only), while other options apply predefined visual effects.
Text Color
Type: Color
Default: Black
Description: Determines the text color of the weekday label.
Label Text Size
Type: String (Options: "Tiny", "Small", "Normal", "Large", "Huge")
Default: "Normal"
Description: Specifies the text size of the weekday label. Adjust according to preference to ensure the label is readable.
Usage Summary
How It Works:
The indicator detects the start of a new trading day using a change in the daily timeframe (via ta.change(time("D"))). When a new day begins, it draws a vertical separator line at the first bar of that day. If previous day data is available, the indicator calculates the horizontal midpoint between the start of the previous day and the current day and displays the previous day’s weekday label at that position. If the fixed Y coordinate option is enabled, the label is drawn at the specified price level; otherwise, it is positioned relative to the current bar’s low.
Customization:
Users can adjust all visual aspects, including the line style and width as well as the label style, text color, and text size. The fixed Y coordinate option allows the label’s vertical position to remain constant, which helps prevent overlapping with price bars.
Chart Requirement:
This indicator only operates on intraday charts (timeframes lower than Daily) and will not display on Daily or higher timeframe charts.
License
This indicator is released under the Mozilla Public License 2.0. Please credit the original author (fitfatq) when using or sharing this script.
Scalper's Fractal Cloud with RSI + VWAP + MACD (Fixed)Scalper’s Fractal Confluence Dashboard
1. Purpose of the Indicator
This TradingView indicator script provides a high-confluence setup for scalping and day trading. It blends momentum indicators (RSI, MACD), trend bias tools (EMA Cloud, VWAP), and structure (fractal swings, gap zones) to help confirm precise entries and exits.
2. Components of the Indicator
- EMA Cloud (50 & 200 EMA): Trend bias – green means bullish, red means bearish. Avoid longs under red cloud.
- VWAP: Institutional volume anchor. Ideal entries are pullbacks to VWAP in direction of trend.
- Gap Zones: Shows open-air zones (white space) where price can move fast. Used to anticipate momentum moves.
- ZigZag Swings: Marks structural pivots (highs/lows) – useful for stop placement and range anticipation.
- MACD Histogram: Shows bullish or bearish momentum via background color.
- RSI: Overbought (>70) or oversold (<30) warnings. Good for exits or countertrend reversion plays.
- EMA Spread Label: Quick view of momentum strength. Wide spread = strong trend.
3. Scalping Entry Checklist
Before entering a trade, confirm these conditions:
• • Bias: EMA cloud color supports trade direction
• • Price is above/below VWAP (confirming institutional flow)
• • MACD histogram matches direction (green for long, red for short)
• • RSI not at extreme (unless you’re fading trend)
• • If entering gap zone, expect fast move
• • Recent swing high/low nearby for target or stop
4. Risk & Sizing Guidelines
Risk 1–2% of account per trade. Place stop below recent swing low (for longs) or high (for shorts). Use fractional sizing near VWAP or white space zones for scalping reversals.
5. Daily Trade Journal Template
- Date:
- Ticker:
- Setup Type (VWAP pullback, Gap Break, EMA reversion):
- Entry Time:
- Bias (Green/Red Cloud):
- RSI Level / MACD Reading:
- Stop Loss:
- Target:
- Result (P/L):
- What I Did Well:
- What Needs Work:
Supply & Demand Histogram and Lines [BerlinCode42]Happy Trade,
This is a Supply & Demand Histogram—also referred to as a Heatmap—that highlights key S&D levels on the chart. Unlike traditional approaches that use volume, this script identifies specific chart patterns and evaluates them to generate the Supply & Demand Histogram. It analyzes the Supply and the Demand separately.
The script is equipped with trade signals for external use (Indicator on Indicator) and is fully compatible with my strategy template script. This allows you to easily create backtests and combine it with other indicators to build a custom strategy.
Intro
Calculation of the Supply & Demand Histogram
Usage and Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
1. Calculation of the Supply & Demand Histogram
Initially, the total price range—spanning from the absolute minimum to the absolute maximum observed price—is discretized into 10,000 equally sized intervals. For each interval, the algorithm performs the following:
It detects chart patterns that typically emerge in zones of varying volatility, categorizing them accordingly. Each identified pattern is assigned a individual weight based on its structural parameters, such as amplitude or slope. Lets call them Structural Weights. These weighted occurrences are then aggregated per interval, resulting in a quantitative representation of supply and demand pressure across the price spectrum, visualized as a histogram.
This pattern-based methodology facilitates the quantitative estimation of supply and demand zones without reliance on volume metrics.
2. Usage and Settings Menu
Initially, the user can configure the granularity of the price segmentation used in the Supply & Demand Histogram. This is achieved by enabling the 'Show Price Range' option, as illustrated in Image 1. Activating this feature overlays a gray-shaded region on the chart, visually representing the defined price range.
Image 1
The vertical position of this range can be adjusted using the 'Price Range Offset' parameter, while the interval widths are modifiable via the 'Step Factor' setting. It is critical to ensure that the specified range encapsulates the entirety of historical and anticipated price movements; failure to do so may result in calculation errors if price action extends beyond the defined bounds. Nevertheless, the default Step Factor has been conservatively chosen to accommodate most price dynamics.
Due to performance considerations, the indicator does not render all 10,000 discrete intervals comprising the full histogram. Instead, it selectively displays a subset of 100 intervals centered around the most recent price."
Once the price range has been configured, disable the “Show Price Range” option again in order to display the Supply & Demand Histogram.
Subsequently, users can fine-tune the histogram computation via two key settings, shown in Image 2:
Volume Count – This option allows selection between a pattern-based structural weighting method and a traditional volume-based approach for histogram construction. The structural method estimates significance through pattern characteristics rather than traded volume.
Supply + Demand – This toggle determines whether Supply and Demand levels are calculated and displayed independently or merged into a unified histogram. If one subscribes to the principle that a breached Supply zone can transform into a Demand zone (and vice versa), enabling this option will reflect that assumption by aggregating both into a single composite structure.
Image 2
Once this setup is complete, the Supply & Demand Histogram along with its most significant price levels will be visualized on the chart. Users can further refine the display settings to tailor the visual output.
In the settings menu, refer to the section illustrated in Image 3. There, you can adjust the number of displayed price levels by increasing or decreasing the S&D Line Filter percentage. A lower percentage results in fewer, more prominent levels being shown, while a higher percentage includes more levels.
The S&D histogram itself can also be hidden if desired.
Image 3
This indicator supports external integration via Indicator on Indicator Functionality or alerts. Specifically, when a price level is either touched or broken, an alert can be triggered. To visually identify where such alerts would occur, enable Show Alert Labels, which marks the respective bars on the chart.
If you want to import the trade signals into a Backtest or Strategy Template script, simply use the two signal outputs: "Break Signals" and "Touch Signals".
A value of zero indicates that no touching or breaking event is occurring.
A positive value signifies that a supply level has been touched or broken.
A negative value indicates a demand level interaction.
The absolute value of each signal corresponds to the price level of the respective Supply or Demand line.
The colors used to represent Supply and Demand levels can be customized to your preference.
Additionally, a Time and Session Filter has been added. This feature allows you to exclude specific time periods and dates from the analysis, enabling a better understanding of which trading times and market sessions are responsible for the formation of particular Supply & Demand levels.
To activate the filter, check the leftmost checkbox, then define the desired Date, Time, and Session parameters accordingly as shown in image 4.
Image 4
3. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Supply & Demand Histogram is its pattern-based calculation methodology. This approach enables the estimation of Supply and Demand levels even for assets that do not provide volume data. Additionally, it allows for separate computation of Supply and Demand. That means a broken Demand level does not necessarily convert into a Supply level, and vice versa.
This script is closed-source and invite-only to support and compensate for months long development work.
4. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
Now it’s your turn!
ICT Judas + Silver Bullet🔰 ICT Judas + Silver Bullet Indicator (SMC-based)
Built for Prop Firm and High Win Rate Intraday Traders
This indicator identifies key institutional setups from Inner Circle Trader (ICT) and Smart Money Concepts (SMC) strategies, optimized for XAUUSD, EURUSD, and other high-volume pairs on the 5-minute chart.
📌 Core Features:
✅ Asian Range Box (02:00–08:00 SGT) – used as manipulation anchor
✅ London Killzone (14:00–16:00 SGT) – Judas Swing detection
✅ New York Killzone (22:30–23:30 SGT) – Silver Bullet setups
✅ Automatic Fair Value Gap (FVG) detection
✅ Liquidity sweep detection based on 20-bar EQH/EQL
✅ Entry + Stop Loss + Take Profit visualization with adjustable RR
✅ Alerts for Judas and Silver setups
✅ Perfect for prop firm scalping and intraday swing logic
🛠️ How It Works:
- Judas Swing: triggers when liquidity above the Asian high is swept during London Killzone
- Silver Bullet: triggers when liquidity below recent lows is swept during NY Killzone
- Entry shown via circle, SL and TP lines based on user-defined RR and stop-loss pip distance
- Designed to be paired with SMC/ICT OB/FVG confirmation entries
⚙️ Settings:
- Adjustable session times
- Toggle FVG display
- Set RR and SL pips to match prop firm rules
- Compatible with alert webhooks for Telegram
🕰️ Note:
All times are fixed to **SGT (GMT+8)**. If you're in another timezone, adjust your TradingView timezone accordingly or update the session inputs manually during Daylight Saving Time changes.
🔔 Alert-Ready:
Use alerts for live signals and pair with webhooks for automation.
🔍 Recommended Pairings:
XAUUSD, EURUSD, GBPUSD, NAS100 on M5 chart
📈 Win Rate Potential:
Backtested with high-probability setups aligned with prop firm daily goals. Best used with strict discipline and 1-2 setups per day.
—
Built with ❤️ by a trader, for traders looking for precision-based executions using ICT logic.
BankNifty-15min Intraday-High Risk-R-AlgoAI-Final Copy// This script is for educational and informational purposes only.
// It does not constitute financial or investment advice.
// Trading involves substantial risk and may not be suitable for all investors.
// Always do your own research or consult with a licensed financial advisor
// before making any trading or investment decisions.
// The author is not responsible for any losses incurred using this script.
⚡ Overview:
This script is a technical indicator designed for intraday trading on the Bank Nifty future chart using the 15-minute timeframe. It uses a combination of normalized buy and sell pressure along with a Hull Moving Average (HMA) smoothing method and volume-based normalization to detect potential buy and sell signals.
💡 Main Concept:
Buy and Sell Pressure Calculation:
The script calculates:
bp (Buy Pressure): close - low
sp (Sell Pressure): high - close
These values are smoothed using a custom Hull Moving Average (HMA) function, designed to reduce lag and react quicker to price changes compared to traditional moving averages.
📊 Normalized Signals:
Buy and Sell pressures are normalized against their HMA smoothed values.
Volume normalization is also applied to adjust for the effect of market activity on the pressure signals.
📌 Signal Logic:
A Buy Signal is generated when:
Only one signal per day is allowed to avoid signal spamming.
A Sell Signal is generated under the opposite conditions:
One sell signal per day.
🧾 Visual Output:
When a signal is triggered, the script:
Draws a horizontal line at the signal price (with labels like BUY @ or SELL @).
Plots triangle markers on the chart to highlight buy (green) or sell (red) signals.
Deletes or extends lines at the end of each day to maintain visual clarity.
📈 Additional Features:
EMA 50 & EMA 200:
Plots two common Exponential Moving Averages (50-period and 200-period) for trend visualization.
⚠️ Important Notes:
This script is meant for educational and research purposes only.
It is designed for high-risk intraday trading.
Signals are based on historical behavior and should not be treated as financial advice.
No stop-loss or take-profit logic is included — traders should manage risk independently.
✅ Summary:
This indicator offers a simple visual and quantitative approach to spot potential intraday turning points for Bank Nifty future on a 15-minute chart, with clear buy and sell markers. It combines volume, price pressure, and moving average smoothing to filter out random price movements.
FT-RSISummary of the Custom RSI Indicator Script (For Futu Niuniu Platform):
This Pine Script code implements a triple-period RSI indicator with horizontal reference lines (70, 50, 30) for technical analysis on the Futu Niuniu trading platform.
Key Features:
Multi-period RSI Calculation:
Computes three RSI values using 9, 14, and 22-period lengths to capture short-term, standard, and smoothed momentum signals.
Utilizes the Relative Moving Average (RMA) method for RSI calculation (ta.rma function).
Horizontal Reference Bands:
Upper Band (70): Red dotted line (semi-transparent) to identify overbought conditions.
Middle Band (50): Green dotted line as the neutral equilibrium level.
Lower Band (30): Blue dotted line (semi-transparent) to highlight oversold zones.
Visual Customization:
Distinct colors for each RSI line:
RSI (9): Orange (#F79A00)
RSI (14): Green (#49B50D)
RSI (22): Blue (#5188FF)
All lines have a thickness of 2 pixels for clear visibility.
Platform Compatibility:
This script is designed for Futu Niuniu’s charting system, leveraging Pine Script syntax adaptations supported by the platform. The horizontal bands and multi-period RSI logic help traders analyze trend strength and potential reversal points efficiently.
Note: Ensure Futu Niuniu’s scripting environment supports ta.rma and hline functions for proper execution.