FVGs with Entry & SLThe indicator allows identifying the FVG zone, thereby creating a strategy for entering trades.
Test version 1.0 by VC
Breadth Indicators
RSI WMA VWMA Divergence Indicator//@version=6
indicator(title="RSI WMA VWMA Divergence Indicator", shorttitle="Osc Div", format=format.price, precision=2)
oscType = input.string("RSI", "Oscillator Type", options = , group="General Settings")
// RSI Settings
rsiGroup = "RSI Settings"
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group=rsiGroup)
rsiSourceInput = input.source(close, "Source", group=rsiGroup)
// WMA VWMA
wma9 = ta.wma(close, 9)
vwma3 = ta.vwma(close, 3)
useVWMA = input.bool(true, "Use VWMA3 for Divergence (when WMA9 + VWMA3 mode)", group="WMA Settings")
// Oscillator selection
rsi = ta.rsi(rsiSourceInput, rsiLengthInput) // Calculate RSI always, but use conditionally
osc = oscType == "RSI" ? rsi : useVWMA ? vwma3 : wma9
// RSI plots (conditional)
isRSI = oscType == "RSI"
rsiPlot = plot(isRSI ? rsi : na, "RSI", color=isRSI ? #7E57C2 : na)
rsiUpperBand = hline(isRSI ? 70 : na, "RSI Upper Band", color=isRSI ? #787B86 : na)
midline = hline(isRSI ? 50 : na, "RSI Middle Band", color=isRSI ? color.new(#787B86, 50) : na)
rsiLowerBand = hline(isRSI ? 30 : na, "RSI Lower Band", color=isRSI ? #787B86 : na)
fill(rsiUpperBand, rsiLowerBand, color=isRSI ? color.rgb(126, 87, 194, 90) : na, title="RSI Background Fill")
midLinePlot = plot(isRSI ? 50 : na, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = isRSI ? color.new(color.green, 0) : na, bottom_color = isRSI ? color.new(color.green, 100) : na, title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = isRSI ? color.new(color.red, 100) : na, bottom_color = isRSI ? color.new(color.red, 0) : na, title = "Oversold Gradient Fill")
// WMA VWMA plots
plot(oscType != "RSI" ? wma9 : na, "WMA9", color=oscType != "RSI" ? color.blue : na)
plot(oscType != "RSI" ? vwma3 : na, "VWMA3", color=oscType != "RSI" ? color.orange : na)
// Smoothing MA inputs (only for RSI)
GRP = "Smoothing (RSI only)"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("SMA", "Type", options = , group = GRP, display = display.data_window)
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window)
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window)
enableMA = maTypeInput != "None" and oscType == "RSI"
isBB = maTypeInput == "SMA + Bollinger Bands" and oscType == "RSI"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(rsi, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(rsi, maLengthInput) * bbMultInput : na
plot(smoothingMA, "RSI-based MA", color=enableMA ? color.yellow : na, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(isBB ? smoothingMA + smoothingStDev : na, title = "Upper Bollinger Band", color=isBB ? color.green : na, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(isBB ? smoothingMA - smoothingStDev : na, title = "Lower Bollinger Band", color=isBB ? color.green : na, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
// Divergence Settings
divGroup = "Divergence Settings"
calculateDivergence = input.bool(true, title="Calculate Divergence", group=divGroup, tooltip = "Calculating divergences is needed in order for divergence alerts to fire.")
lookbackLeft = input.int(5, "Pivot Lookback Left", minval=1, group=divGroup)
lookbackRight = input.int(5, "Pivot Lookback Right", minval=1, group=divGroup)
rangeLower = input.int(5, "Min Range for Divergence", minval=0, group=divGroup)
rangeUpper = input.int(60, "Max Range for Divergence", minval=1, group=divGroup)
showHidden = input.bool(true, "Show Hidden Divergences", group=divGroup)
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
bool plFound = false
bool phFound = false
bool bullCond = false
bool bearCond = false
bool hiddenBullCond = false
bool hiddenBearCond = false
float oscLBR = na
float lowLBR = na
float highLBR = na
float prevPlOsc = na
float prevPlLow = na
float prevPhOsc = na
float prevPhHigh = na
if calculateDivergence
plFound := not na(ta.pivotlow(osc, lookbackLeft, lookbackRight))
phFound := not na(ta.pivothigh(osc, lookbackLeft, lookbackRight))
oscLBR := osc
lowLBR := low
highLBR := high
prevPlOsc := ta.valuewhen(plFound, oscLBR, 1)
prevPlLow := ta.valuewhen(plFound, lowLBR, 1)
prevPhOsc := ta.valuewhen(phFound, oscLBR, 1)
prevPhHigh := ta.valuewhen(phFound, highLBR, 1)
// Regular Bullish
oscHL = oscLBR > prevPlOsc and _inRange(plFound )
priceLL = lowLBR < prevPlLow
bullCond := priceLL and oscHL and plFound
// Regular Bearish
oscLL = oscLBR < prevPhOsc and _inRange(phFound )
priceHH = highLBR > prevPhHigh
bearCond := priceHH and oscLL and phFound
// Hidden Bullish
oscLL_hidden = oscLBR < prevPlOsc and _inRange(plFound )
priceHL = lowLBR > prevPlLow
hiddenBullCond := priceHL and oscLL_hidden and plFound and showHidden
// Hidden Bearish
oscHH_hidden = oscLBR > prevPhOsc and _inRange(phFound )
priceLH = highLBR < prevPhHigh
hiddenBearCond := priceLH and oscHH_hidden and phFound and showHidden
// Plot divergences (lines and labels on pane)
if bullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2)
label.new(bar_index , oscLBR, "R Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if bearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2)
label.new(bar_index , oscLBR, "R Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
if hiddenBullCond
leftBar = ta.valuewhen(plFound, bar_index , 1)
line.new(leftBar, prevPlOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bullColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bull", style=label.style_label_up, color=noneColor, textcolor=textColor)
if hiddenBearCond
leftBar = ta.valuewhen(phFound, bar_index , 1)
line.new(leftBar, prevPhOsc, bar_index , oscLBR, xloc=xloc.bar_index, color=bearColor, width=2, style=line.style_dashed)
label.new(bar_index , oscLBR, "H Bear", style=label.style_label_down, color=noneColor, textcolor=textColor)
// Alert conditions
alertcondition(bullCond, title="Regular Bullish Divergence", message="Found a new Regular Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(bearCond, title="Regular Bearish Divergence", message="Found a new Regular Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBullCond, title="Hidden Bullish Divergence", message="Found a new Hidden Bullish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
alertcondition(hiddenBearCond, title="Hidden Bearish Divergence", message="Found a new Hidden Bearish Divergence, Pivot Lookback Right number of bars to the left of the current bar.")
Intraday Trend Pro📈 Intraday Trend Pro — Multi-Timeframe Smart Indicator
Unlock precision in your intraday trading with Intraday Trend Pro, a powerful and versatile indicator built for serious traders. This tool is designed to:
✅ Identify the True Intraday Trend
Quickly and clearly spot bullish or bearish trends using a refined algorithm that filters out noise and false signals.
✅ Smart Entry & Stop Loss Suggestions
The script dynamically suggests optimal entry points and protective stop-loss levels, helping you manage risk and improve trade timing.
✅ Multi-Timeframe Analysis (MTF)
Enable the optional MTF mode to blend higher timeframes with the current chart for a more reliable signal confirmation, enhancing your confidence before entering a trade.
✅ Works Seamlessly Across Assets
Whether you’re trading indices like BankNifty, commodities like XAU/USD, or high-volume stocks, this indicator adjusts to deliver actionable insights.
✅ Customization Made Easy
Input controls allow you to fine-tune the trend settings, select timeframes, and adapt to your unique strategy—whether scalping or holding through the day.
Use Cases:
Confirming trend strength before entering trades
Determining accurate support/resistance for SL placement
Avoiding sideways markets and false breakouts
Aligning trades with higher timeframe momentum
Ideal For:
Intraday traders and scalpers looking for a clean, accurate, and multi-timeframe-aware tool to improve consistency.
15m Scalping StrategyThis indicator is designed for short-term intraday trading (scalping) on the 15-minute chart. It helps identify high-probability buy and sell signals using fast-moving averages and momentum confirmation.
Up/Down Volume with Table (High Contrast)Up/Down Volume with Table (High Contrast) — Script Summary & User Guide
Purpose of the Script
This TradingView indicator, Up/Down Volume with Table (High Contrast), visually separates and quantifies up-volume and down-volume for each bar, providing both a color-coded histogram and a dynamic table summarizing the last five bars. The indicator helps traders quickly assess buying and selling pressure, recent volume shifts, and their relationship to price changes, all in a highly readable format.
Key Features
Up/Down Volume Columns:
Green columns represent volume on bars where price closed higher than the previous bar (up volume).
Red columns represent volume on bars where price closed lower than the previous bar (down volume).
Delta Line:
Plots the net difference between up and down volume for each bar.
Green when up-volume exceeds down-volume; red when down-volume dominates.
Interactive Table:
Displays the last five bars, showing up-volume, down-volume, delta, and close price.
Color-coding for quick interpretation.
Table position, decimal places, and timeframe are all user-configurable.
Custom Timeframe Support:
Calculate all values on the chart’s timeframe or a custom timeframe of your choice (e.g., daily, hourly).
High-Contrast Design:
Table and plot colors are chosen for maximum clarity and accessibility.
User Inputs & Configuration
Use custom timeframe:
Toggle between the chart’s timeframe and a user-specified timeframe.
Custom timeframe:
Set the timeframe for calculations if custom mode is enabled (e.g., "D" for daily, "60" for 60 minutes).
Decimal Places:
Choose how many decimal places to display in the table.
Table Location:
Select where the table appears on your chart (e.g., Bottom Right, Top Left, etc.).
How to Use
Add the Script to Your Chart:
Copy and paste the code into a new Pine Script indicator on TradingView.
Add the indicator to your chart.
Configure Inputs:
Open the indicator settings.
Adjust the timeframe, decimal places, and table location as desired.
Read the Table:
The table appears on your chart (location is user-selectable) and displays the following for the last five bars:
Bar: "Now" for the current bar, then "Bar -1", "Bar -2", etc. for previous bars.
Up Vol: Volume on bars where price closed higher than previous bar, shown in black text.
Down Vol: Volume on bars where price closed lower than previous bar, shown in black text.
Delta: Up Vol minus Down Vol, colored green for positive, red for negative, black for zero.
Close: Closing price for each bar, colored green if price increased from previous bar, red if decreased, black if unchanged.
Interpret the Histogram and Lines:
Green Columns:
Represent up-volume. Tall columns indicate strong buying volume.
Red Columns:
Represent down-volume. Tall columns indicate strong selling volume.
Delta Line:
Plotted as a line (not a column), colored green for positive values (more up-volume), red for negative (more down-volume).
Large positive or negative spikes may indicate strong buying or selling pressure, respectively.
How to Interpret the Table
Column Meaning Color Coding
Bar "Now" (current bar), "Bar -1" (previous bar), etc. Black text
Up Vol Volume for bars with higher closes than previous bar Black text
Down Vol Volume for bars with lower closes than previous bar Black text
Delta Up Vol - Down Vol. Green if positive, red if negative, black if zero Green/Red/Black
Close Closing price for the bar. Green if price increased, red if decreased, black if unchanged Green/Red/Black
Green Delta: Indicates net buying pressure for that bar.
Red Delta: Indicates net selling pressure for that bar.
Close Price Color:
Green: Price increased from previous bar.
Red: Price decreased.
Black: No change.
Practical Trading Insights
Consistently Green Delta (Histogram & Table):
Sustained buying pressure; may indicate bullish sentiment or accumulation.
Consistently Red Delta:
Sustained selling pressure; may indicate bearish sentiment or distribution.
Large Up/Down Volume Spikes:
Big green or red columns can signal strong market activity or potential reversals if they occur at trend extremes.
Delta Flipping Colors:
Rapid alternation between green and red deltas may indicate a choppy or indecisive market.
Close Price Color in Table:
Use as a quick confirmation of whether volume surges are pushing price in the expected direction.
Troubleshooting & Notes
No Volume Data Error:
If your symbol doesn’t provide volume data (e.g., some indices or synthetic assets), the script will display an error.
Custom Timeframe:
If using a custom timeframe, ensure your chart supports it and that there is enough data for meaningful calculations.
High-Contrast Table:
Designed for clarity and accessibility, but you can adjust colors in the code if needed for your personal preferences.
Summary Table Legend
Bar Up Vol Down Vol Delta Close
Now ... ... ... ...
Bar-1 ... ... ... ...
... ... ... ... ...
Colors reflect the meaning as described above.
In Summary
This indicator visually and numerically breaks down buying and selling volume, helping you spot shifts in market sentiment, volume surges, and price/volume divergences at a glance.
Use the table for precise recent data, the histogram for overall flow, and the color cues for instant market context.
SENTIMENTSENTIMENT Indicator – User Guide
Summary
The SENTIMENT indicator provides a quick visual reference for current and recent market sentiment. It compares the closing price to a custom sentiment value, which is the average of the 100-period (default) simple moving averages (SMA) of the high and low prices. The indicator displays this information in a color-coded table and plots the difference between price and sentiment as a line on your chart.
How to Use
1. Table Overview
The table appears on your chart in your chosen position.
It displays four rows: the current bar (“Now”) and the previous three bars (“Bar -1”, “Bar -2”, “Bar -3”).
Each row shows:
The bar label (The current bar is live and active, constantly changing)
The closing price for that bar
The difference between the closing price and the sentiment value for that bar
The sentiment difference is color-coded:
Green: Price is above sentiment (bullish)
Red: Price is below sentiment (bearish)
2. Chart Plot
The indicator plots a line showing the difference between the current price and the sentiment value.
When the line is above zero: price is above sentiment (bullish).
When the line is below zero: price is below sentiment (bearish).
3. Settings
Number of Lookback Bars: Adjusts the SMA period for sentiment calculation (default is 100).
Table Position: Choose where to display the table on your chart (e.g., Top Left, Bottom Right).
How to Interpret
Green values in the table or a plot above zero suggest bullish sentiment.
Red values in the table or a plot below zero suggest bearish sentiment.
Use this indicator to quickly assess if the market is trading above or below its recent average sentiment level.
Tips
You can combine the SENTIMENT indicator with other tools or signals for more robust trading decisions.
Adjust the lookback period to suit your trading timeframe and style.
High-Mid-Low 200 Day and Buy Levels and labels
Volume-Scaled PVR with Dynamic Buy Levels (ETF investing Visual Aid)
Description
This indicator is designed primarily for exchange-traded fund (ETF) traders and investors who seek a broad, visual tool to assist in identifying favorable buy and sell regions based on key price levels in relation to High and Lows of the ETF.
Key Features
Lookback Reference Levels:
Automatically identifies and plots key price levels within a user-defined lookback period:
Period High: Highest price in the lookback window.
Period Low: Lowest price in the lookback window.
Mid-Line: Midpoint between the period high and low.
Detailed Percentage Labels:
Displays percentage distances from the current price to the period high, period low, and their respective most recent occurrences, along with bar-counts for context, allowing quick assessment of price positioning relative to significant recent highs and lows.
Dynamic Buy-Level Lines for Multiple ETFs:
Supports a configurable list of ETF tickers with predefined buy price levels. When charting one of these ETFs, a horizontal line and label mark the specified buy price level, serving as a visual reminder or guide for entries.
Lightweight and Visual:
Designed to overlay directly on price charts with minimal clutter, providing clean and insightful visual references to inform buy-low and sell-high decisions.
How It Helps You
Offers broad, contextual cues to guide "buy low, sell high" strategies on ETFs by visualizing:
Where price currently stands within recent high/low ranges.
Specific buy price levels personalized for tracked ETFs as a check before committing.
Flexible lookback parameters allow tuning sensitivity to your preferred timeframes and trading style.
Usage Notes
Customize the list of ETFs and associated buy prices within the script via arrays to suit your watchlist. (Make a working copy to update Arrays, ensure pair matching).
Best applied on daily or higher timeframes for clearer trend dynamics.
This is a visual aid and should be combined with your own analysis and risk management techniques and other standard/established indicators.
Day Trading Buy/Sell (EMA+RSI+VWAP)This is designed for quick day trading signals but still filters out some noise.
FG_Index v1.5.3 Pro (Multi-Asset Time4H) === FG_Index 4H Sentiment Indicator ===
// 多品种4小时情绪评分指标,适用于黄金、比特币、美股、原油等。
// 分数范围 0~100:
// - score > 70:贪婪,考虑减仓
// - score < 30:恐慌,关注低吸
// - score > 80:极度贪婪,注意风险
// - score < 20:极度恐慌,可能超卖
// 建议搭配趋势/结构指标一起使用
// 图表自动显示主因子解释,辅助判断情绪来源
//
// === English Usage ===
// FG_Index is a 4H sentiment score indicator for multi-assets (Gold, BTC, SPX, Oil, etc.).
// Score scale: 0–100
// - score > 70: Greed – consider reducing positions
// - score < 30: Fear – potential buy zone
// - score > 80: Extreme greed – risk warning
// - score < 20: Extreme fear – may be oversold
// Recommended to use with trend/structure filters
// Top factor contributions are displayed on chart
Volume MA Breakout T3 [Teyo69]🧭 Overview
Volume MA Breakout T3 highlights volume bars that exceed a dynamic moving average threshold. It helps traders visually identify volume breakouts—periods of significant buying or selling pressure—based on user-selected MA methods (SMA, EMA, DEMA).
🔍 Features
Volume Highlighting: Green bars indicate volume breakout above the MA; red bars otherwise.
Custom MA Options: Choose between SMA, EMA, or Double EMA for volume smoothing.
Dynamic Threshold: The moving average line adjusts based on user-defined length and method.
⚙️ Configuration
Length: Number of bars used for the moving average calculation (default: 14).
Method: Type of moving average to use:
"SMA" - Simple Moving Average
"EMA" - Exponential Moving Average
"Double EMA" - Double Exponential Moving Average
📈 How to Use
Apply to any chart to visualize volume behavior relative to its MA.
Look for green bars: These suggest volume is breaking out above its recent average—potential signal of momentum.
Red bars indicate normal/subdued volume.
⚠️ Limitations
Does not provide directional bias—use with price action or trend confirmation tools.
Works best with additional context (e.g., support/resistance, candle formations).
🧠 Advanced Tips
Use shorter MAs (e.g., 5–10) in volatile markets for more responsive signals.
Combine with OBV, MFI, or accumulation indicators for confluence.
📌 Notes
This is a volume-based filter, not a signal generator.
Useful for breakout traders and volume profile enthusiasts.
📜 Disclaimer
This script is for educational purposes only. Always test in a simulated environment before live trading. Not financial advice.
Nifty 50 Gainers Losers Table
How it Works
1. Dropdown List Selection
allows for dynamic interaction, making it flexible and user-friendly.
Scripts added to list as per Their Weightage Allocated in Nifty_50 Index.
Switch Lists Option: to Check Complete List of 50 ( List is Splitted Because of Restriction to use of 40)
Use the dropdown to switch between "Main 40" and "Remaining 10" lists dynamically.
2. Interpret Values
User Setting to Show Hide Column : Unchanged
Gainers (Green): Number of stocks that closed higher than the previous day.
Losers (Red): Number of stocks that closed lower.
Unchanged (Gray): No change in close from the previous day.
3. Compact Table Display :
User Setting to show Hide Table & Table Position As per Need (TOP,Bottom,Middle Etc)
is smartly placed and keeps the layout clean and readable.
4. User Input to Set Text Size. you can change Text Size as per Need.
✅ How to Use This Indicator Effectively
🔹 Step-by-Step User Flow:
Add to Chart
Apply this indicator to any chart—ideally NIFTY or NIFTY FUTURES (to keep contextually relevant).
Use in Decision Making
Use this internally as a market breadth tool.
If Gainers >> Losers, the market is strong/bullish.
If Losers >> Gainers, the market is weak/bearish.
If balanced, market is range-bound or sector-specific moves dominate.
Horizontal Grid from Base PriceSupport & Resistance Indicator function
This inductor is designed to analyze the "resistance line" according to the principle of mother fish technique, with the main purpose of:
• Measure the price swing cycle (Price Swing Cycle)
• analyze the standings of a candle to catch the tempo of the trade
• Used as a decision sponsor in conjunction with Price Action and key zones.
⸻
🛠️ Main features
1. Create Automatic Resistance Boundary
• Based on the open price level of the Day (Initial Session Open) bar.
• It's the main reference point for building a price framework.
2. Set the distance around the resistance line.
• like 100 dots/200 dots/custom
• Provides systematic price tracking (Cycle).
3. Number of lines can be set.
• For example, show 3 lines or more of the top-bottom lines as needed.
4. Customize the color and style of the line.
• The line color can be changed, the line will be in dotted line format according to the user's style.
• Day/night support (Dark/Light Theme)
5. Support for use in conjunction with mother fish techniques.
• Use the line as a base to observe whether the "candle stand above or below the line".
• It is used to help see the behavior of "standing", "loosing", or "flow" of prices on the defensive/resistance line.
6. The default is available immediately.
• The default is based on the current Day bar opening price.
• Round distance, e.g. 200 points, top and bottom, with 3 levels of performance
Supply/Demand Zones - Fixed v3 (Cross YES Only)This Pine Script indicator creates Supply/Demand Zones with specific filtering criteria for TradingView. Here's a comprehensive description:
Supply/Demand Zones -(Cross YES Only)
Core Functionality
Session-Based Analysis: Identifies and visualizes price ranges during user-defined time sessions
Cross Validation Filter: Only displays zones when the "Cross" condition is met (Open and Close prices cross the mid-range level)
Real-Time Monitoring: Tracks price action during active sessions and creates zones after session completion
Key Features
Time Range Configuration
Customizable session hours (start/end time with minute precision)
Timezone support (default: Europe/Bucharest)
Flexible scheduling for different trading sessions
Visual Elements
Range Border: Dotted outline showing the full session range (High to Low)
Key Levels: Horizontal lines for High, Low, and Mid-range levels
Sub-Range Zones: Shaded areas showing Open and Close price zones
Percentage Labels: Display the percentage of range occupied by Open/Close zones
Active Session Background: Blue background highlighting during active sessions
Smart Filtering System
Cross Condition: Only creates zones when:
Open < Mid AND Close > Mid (bullish cross), OR
Open > Mid AND Close < Mid (bearish cross)
This filter ensures only significant price movements that cross the session's midpoint are highlighted
Customization Options
Display Controls: Toggle visibility for borders, lines, zones, and labels
Color Schemes: Full color customization for all elements
Transparency Settings: Adjustable transparency for zone fills
Text Styling: Configurable label colors and information display
Technical Specifications
Maximum capacity: 500 boxes, 500 lines, 200 labels
Overlay indicator (draws directly on price chart)
Bar-time based positioning for accurate historical placement
Use Cases
Supply/Demand Trading: Identify key price levels where institutions may have interest
Session Analysis: Understand price behavior during specific trading hours
Breakout Detection: Focus on sessions where price crosses significant levels
Support/Resistance: Use range levels for future trade planning
What Makes It Unique
The "Cross YES Only" filter ensures that only meaningful price sessions are highlighted - those where the market shows directional bias by crossing from one side of the range to the other, indicating potential institutional interest or significant market sentiment shifts.
THF Crossover and Trend Signals Golden & Death Cross with VolumeScript Overview:
This Pine Script is designed to assist traders in identifying key buy/sell signals and major trend changes on the chart using Exponential Moving Averages (EMA) and Simple Moving Averages (SMA), as well as visualizing Golden Cross and Death Cross events. The script also includes a volume indicator to highlight the volume trading activity in relation to the price movements.
Key Features:
1. Moving Averages:
EMA 21: Exponential Moving Average over a 21-period, shown in green.
EMA 50: Exponential Moving Average over a 50-period, shown in yellow.
SMA 50: Simple Moving Average over a 50-period, shown in red.
SMA 200: Simple Moving Average over a 200-period, shown in blue.
2. Signals:
Buy Signal: Generated when EMA 21 crosses above SMA 50, indicating a potential upward trend. Displayed with a green label below the price bar.
Sell Signal: Generated when EMA 21 crosses below SMA 50, indicating a potential downward trend. Displayed with a red label above the price bar.
3. Golden Cross (Bullish Trend):
A Golden Cross occurs when EMA 50 crosses above SMA 200, which often signals the start of a long-term upward trend. The signal is displayed with a yellow label below the price bar.
4. Death Cross (Bearish Trend):
A Death Cross occurs when EMA 50 crosses below SMA 200, which often signals the start of a long-term downward trend. The signal is displayed with a blue label above the price bar.
5. Volume Indicator:
The volume is plotted as colored columns. Green indicates higher volume than the 20-period moving average, and red indicates lower volume.
A Volume Moving Average (SMA 20) is also plotted to compare volume changes over time.
How the Script Works:
1. The EMA and SMA lines are plotted on the chart, providing a visual representation of the short- and long-term trends.
2. Buy/Sell signals are triggered based on the crossover between EMA 21 and SMA 50, helping to identify potential entry and exit points.
3. The Golden Cross and Death Cross indicators highlight major trend reversals based on the crossover between EMA 50 and SMA 200, providing clear visual cues for long-term trend changes.
4. Volume is displayed alongside price movements, offering insight into the strength or weakness of a trend.
Key Customizations:
Moving Average Periods: Users can modify the lengths of the EMAs and SMAs for customized analysis.
Volume Moving Average Period: The script allows for adjustment of the volume moving average period to suit different market conditions.
Signal Visibility: The size and color of the buy, sell, Golden Cross, and Death Cross signals can be easily customized to make them more prominent on the chart.
Conclusion:
This script is ideal for traders looking to combine price action with volume analysis, using key technical indicators such as EMA, SMA, Golden Cross, and Death Cross to make informed decisions in trending markets.
---
This explanation covers all aspects of the script and provides a clear understanding of its functionality, which is helpful for sharing the script or using it as an educational resource.
Black ArrowExpected Move Levels - Closer Prices
This script calculates and displays the expected move based on Implied Volatility (IV) and Days to Expiration (DTE). It helps traders visualize potential price movement ranges over a defined period using historical close price.
🔹 Key Features:
Customizable IV and DTE inputs
Displays 2 green levels above price and 2 red levels below, representing half and full expected move
Mid-lines between base price and first green/red level
Each level is labeled with its price value
Lines are drawn short and don't extend through the full chart for clarity
📘 Formula:
Expected Move = Price × IV × √(DTE / 365)
Use this tool to estimate market volatility zones and potential price targets without relying on traditional indicators.
High Volume Buyers/Sellers+High Volume Buyers/Sellers+
This indicator helps traders spot bars where unusually high or extreme volume occurs, indicating strong buying or selling pressure.
How it works:
Calculates a volume moving average (SMA) over a user-defined period.
Marks bars where the current volume exceeds:
High Volume Multiplier → small green circle (bullish) or red circle (bearish).
Extreme Volume Multiplier → small green up-triangle (bullish) or red down-triangle (bearish).
Settings:
Volume MA Period → Number of bars used to calculate the average volume.
High Volume Multiplier → Threshold to define high volume.
Extreme Volume Multiplier → Threshold to define extreme volume.
Show Extreme Volume Signals → Option to enable or disable extreme volume markers.
Usage tips:
Apply this indicator on a clean chart to visually highlight momentum bursts or exhaustion points.
It works well for both intraday and swing trading strategies where volume confirmation matters.
⚠ Note: This script only displays on-chart markers and does not plot any lines or indicators.
Bollinger Bottom + Middle Lines with Inline TextThis script visualizes key Bollinger Band levels based on two different SMAs (20 & 50 periods), with clear labeling and a smart price table.
🔸 Features:
Draws lower and middle Bollinger Band lines for both SMA(20) and SMA(50)
Inline text at the end of each line instead of default labels (cleaner view)
A dynamic table in the top-right corner, sorted from highest to lowest level
Color-coded rows:
▪️ Orange → BB20 Mid & BB20 Lower
▪️ Green → BB50 Mid & BB50 Lower
Auto-updates each bar without cluttering the chart
✅ Ideal for identifying technical accumulation zones
✅ Suitable for investors using scaling-in strategies or mean-reversion logic
Turtle Trading System + ATR Trailing StopIndicator Description: Turtle ATR Trailing Stop
The **Turtle ATR Trailing Stop** is a technical indicator designed to enhance the classic Turtle Trading System by incorporating a dynamic trailing stop based on the Average True Range (ATR). This indicator is ideal for traders seeking to manage risk and lock in profits on both long and short positions in trending markets.
Key Features:
- Turtle Trading Levels: Calculates the 20-day highest high and lowest low to identify potential breakout points, a core principle of the Turtle Trading System.
- ATR-Based Trailing Stop: Utilizes a trailing stop that adjusts dynamically based on a multiple of the ATR (default multiplier: 2.0), providing a volatility-adjusted exit mechanism.
- Position Flexibility: Supports both long and short positions, with the trailing stop positioned below the highest price for long trades and above the lowest price for short trades.
- Smooth Updates: The trailing stop updates on each bar, ensuring a more responsive adjustment to price movements, rather than only on new highs or lows.
- Reset Mechanism: Automatically resets the trailing stop when the price deviates significantly (configurable threshold, default 0.1%), adapting to major trend reversals.
- Alerts: Includes customizable alerts that trigger when the price reaches the trailing stop level, notifying traders of potential exit points.
- Debugging Tools: Features an on-chart debug table displaying ATR, Close, Highest Price, Lowest Price, Potential Stop, and Trailing Stop values for real-time analysis.
How It Works:
- For **Long Positions**: The trailing stop starts below the initial close price (minus 2*ATR) and moves up as the highest price increases, locking in profits while trailing at a fixed ATR distance.
- For **Short Positions**: The trailing stop starts above the initial close price (plus 2*ATR) and moves down as the lowest price decreases, protecting against upward price movements.
- The stop resets if the price falls (for long) or rises (for short) beyond the set threshold, ensuring adaptability to new market conditions.
Customization:
- Period Settings: Adjust the length for highs/lows (default 20) and ATR period (default 14).
- ATR Multiplier: Modify the distance of the trailing stop (default 2.0).
- Reset Threshold: Fine-tune the percentage at which the stop resets (default 0.1%).
- Position Type: Switch between "Long" and "Short" modes via input settings.
Usage:
Apply this indicator to any chart in TradingView, set your preferred parameters, and monitor the trailing stop line (yellow) alongside the Turtle highs (red) and lows (blue). Use the debug table to validate calculations and set alerts to stay informed of stop triggers.
This indicator combines the trend-following strength of the Turtle System with a flexible, ATR-based stop-loss strategy, making it a powerful tool for both manual and automated trading strategies.
Intraday vs Overnight OBV🔍 Purpose
This indicator provides a volume-weighted cumulative flow model that mimics On-Balance Volume (OBV) logic but splits the volume impact into intraday vs. overnight sessions. It allows traders to track how volume contributes to price movement in each session and identify whether buying/selling pressure is stronger during or outside of regular trading hours.
This indicator attempts to alleviate some of the downfalls of the standard OBV indicator, which only looks at total volume and total direction. The price of stocks generally behaves extremely differently during market hours and outside market hours, and many of the large moves happen outside of regular market hours on low volume.
⚙️ Core Features
1) OBV-style calculation:
If price increases → volume is added to the OBV stream.
If price decreases → volume is subtracted.
If price is flat → OBV remains unchanged.
2) Session splitting:
Intraday session: movement from today's open to close.
Overnight session: movement from yesterday’s close to today’s open.
Volume is split proportionally between these two periods based on user input.
3) Four visualization modes:
"Intraday" — plots only OBV from intraday price movement.
"Overnight" — plots only OBV from overnight price movement.
"Aggregate" — plots the sum of intraday and overnight OBV for a holistic view.
"Both Intraday and Overnight" — plots intraday and overnight OBV separately on the same chart.
📐 Inputs
1) Synthetic OBV Type:
"Intraday" — Show OBV from open to close only.
"Overnight" — Show OBV from prior close to today's open only.
"Aggregate" — Show a single line combining both.
"Both Intraday and Overnight" — Show both lines on the same chart.
2) Estimated Overnight Volume %:
Percentage of total daily volume assumed to occur during extended hours.
The rest is allocated to regular session (intraday).
Default: 20% overnight, 80% intraday.
🧮 How It Works
Volume Splitting:
Total bar volume is split into overnight Volume and intraday Volume:
Intraday change is the difference between today’s close and open.
Overnight change is the difference between today’s open and yesterday’s close.
Session OBV Calculations:
OBV is incremented/decremented by the session's allocated volume, depending on whether the session’s price change was positive or negative.
Aggregate OBV:
Combines both session deltas for a holistic volume flow view.
📊 Interpretation
Rising OBV (any stream) suggests accumulation; falling OBV suggests distribution.
Divergences between price and OBV lines (especially overnight vs. intraday) can reveal where hidden buying/selling is occurring.
Comparing intraday vs overnight OBV can help:
Spot whether institutional demand is building off-hours.
Detect retail vs. institutional behavior (retail trades often dominate intraday; institutional may prefer after-hours).
💡 Use Cases
Identify whether overnight gaps are supported by overnight volume momentum.
Detect accumulation in low-volume overnight sessions.
Compare intraday and overnight strength during earnings season or news events.
Complement traditional OBV by seeing session-based breakdowns.
Crypto Breadth | AlphaNatt\ Crypto Breadth | AlphaNatt\
A dynamic, visually modern market breadth indicator designed to track the strength of the top 40 cryptocurrencies by measuring how many are trading above their respective 50-day moving averages. Built with precision, branding consistency, and UI enhancements for fast interpretation.
\ 📊 What This Script Does\
* Aggregates the performance of \ 40 major cryptocurrencies\ on Binance
* Calculates a \ breadth score (0.00–1.00)\ based on how many tokens are above their moving averages
* Smooths the breadth with optional averaging
* Displays the result as a \ dynamic, color-coded line\ with aesthetic glow and gradient fill
* Provides automatic \ background zones\ for extreme bullish/bearish conditions
* Includes \ alerts\ for key threshold crossovers
* Highlights current values in an \ information panel\
\ 🧠 How It Works\
* Pulls real-time `close` prices for 40 coins (e.g., XRP, BNB, SOL, DOGE, PEPE, RENDER, etc.)
* Compares each coin's price to its 50-day SMA (adjustable)
* Assigns a binary score:
• 1 if the coin is above its MA
• 0 if it’s below
* Aggregates all results and divides by 40 to produce a normalized \ breadth percentage\
\ 🎨 Visual Design Features\
* Smooth blue-to-pink \ color gradient\ matching the AlphaNatt brand
* Soft \ glow effects\ on the main line for enhanced legibility
* Beautiful \ multi-stop fill gradient\ with 16 transition zones
* Optional \ background shading\ when extreme sentiment is detected:
• Bullish zone if breadth > 80%
• Bearish zone if breadth < 20%
\ ⚙️ User Inputs\
* \ Moving Average Length\ – Number of periods to calculate each coin’s SMA
* \ Smoothing Length\ – Smooths the final breadth value
* \ Show Background Zones\ – Toggle extreme sentiment overlays
* \ Show Gradient Fill\ – Toggle the modern multicolor area fill
\ 🛠️ Utility Table (Top Right)\
* Displays live breadth percentage
* Shows how many coins (e.g., 27/40) are currently above their MA
\ 🔔 Alerts Included\
* \ Breadth crosses above 50%\ → Bullish signal
* \ Breadth crosses below 50%\ → Bearish signal
* \ Breadth > 80%\ → Strong bullish trend
* \ Breadth < 20%\ → Strong bearish trend
\ 📈 Best Used For\
* Gauging overall market strength or weakness
* Timing trend transitions in the crypto market
* Confirming trend-based strategies with broad market support
* Visual dashboard in macro dashboards or strategy overlays
\ ✅ Designed For\
* Swing traders
* Quantitative investors
* Market structure analysts
* Anyone seeking a macro view of crypto performance
Note: Not financial advise
Delta Volume Movement TrackerOverview
This Pine Script, titled "Delta Volume Movement Tracker," is a sophisticated volume analysis tool designed to run in a separate pane below the main price chart. Its primary purpose is to dissect market activity by analyzing volume data from a lower timeframe to provide a clearer picture of the real buying and selling pressure behind price movements.
The core concept is to look at the volume delta (up-tick volume minus down-tick volume) from a faster timeframe (e.g., 1-minute) and correlate it with the price action on the current chart. This allows the indicator to distinguish between different market scenarios, such as strong, confirmed buying versus selling pressure that occurs even as the price rises.
Key Components
1. Lower Timeframe Volume Delta
The script's engine is the ta.requestUpAndDownVolume() function. It pulls detailed volume data from a user-specified lower timeframe. This provides a high-resolution view of the order flow. From this, it calculates the delta, which is the net difference between buying and selling volume.
Positive Delta: More volume occurred on up-ticks than down-ticks, suggesting buying pressure.
Negative Delta: More volume occurred on down-ticks than up-ticks, suggesting selling pressure.
2. Categorizing Price and Volume Interaction
The script intelligently categorizes market action by looking at both the direction of the price change and the sign of the volume delta. This creates four distinct conditions:
Strong Buying (upPositiveDelta): Price is moving up, AND the volume delta is positive. This is a confirmation signal, indicating that the upward price move is supported by aggressive buying.
Selling into Strength (upNegativeDelta): Price is moving up, BUT the volume delta is negative. This is a divergence, suggesting that despite the price rise, larger players may be distributing or selling into the rally.
Buying into Weakness (downPositiveDelta): Price is moving down, BUT the volume delta is positive. This is also a divergence, suggesting that buyers are stepping in to absorb the selling pressure, potentially indicating a bottom.
Strong Selling (downNegativeDelta): Price is moving down, AND the volume delta is negative. This is a confirmation signal, indicating that the downward price move is supported by aggressive selling.
3. Price-Weighted Summation
Instead of just counting the occurrences, the script calculates a rolling sum for each category over a lookbackPeriod. Crucially, it weights these values by the close price, effectively measuring the monetary value of the flow in each category. This gives more significance to volume that occurs at higher price levels.
How It Appears on the Chart
The indicator plots the two most powerful confirmation signals as columns to make them easy to interpret:
Green Columns (upBuySum): Represents the cumulative, price-weighted value of "Strong Buying." Taller green bars indicate significant and sustained buying pressure.
Red Columns (downSellSum): Represents the cumulative, price-weighted value of "Strong Selling." Taller red bars indicate significant and sustained selling pressure.
EMA Lines: Smooth exponential moving averages of both the buying and selling plots are overlaid to help identify the prevailing trend in order flow.
Filled Zones: The areas beneath the zero line and the plotted columns are filled with color, making it easy to visually gauge the magnitude of buying or selling pressure at a glance.
In summary, this indicator provides a nuanced view of market dynamics, helping traders see beyond simple price action to understand the strength and conviction of the buyers and sellers driving the trend.
AD Line of S&P SectorsAdvance-Decline Line of S&P 500 Sectors
This indicator tracks the breadth strength of the S&P 500 by combining an unweighted Advance-Decline (A/D) Line and a market-cap weighted A/D Histogram across all 11 major S&P sectors.
Key Features
Sector A/D Histogram: Measures sector breadth based on whether each sector advanced or declined, then weights it by its current estimated market cap share.
Unweighted A/D Line: Smooth average of sectors equally weighted, giving an alternative breadth view that’s less biased by large sectors.
Top Weighted Stocks Tracker: Tracks the daily percentage change of the top 10 highest-weighted S&P 500 stocks, scaled by their index weights, and overlays them as a background area plot.
Zero Crossovers: Histogram and line crossing zero can help highlight broadening strength or weakness.
Customizable Sector Weights: Sector weights can be adjusted in the settings. It is recommended to review and update these periodically to reflect changes in S&P sector allocations.
Repaint Option: Uses a user-selectable repaint mode for flexible bar update logic.
How to Use
Trend Confirmation: When the weighted histogram and unweighted line are above zero together, it indicates broad sector strength; below zero suggests broad weakness.
Neutral Zone: Values between +0.5 and -0.5 (or your custom thresholds) may imply a ranging market or slower movement.
Top Names Context: The top-weighted stocks area shows how much the index’s largest components are pulling the market up or down, relative to the broader sector breadth.
⚠️ Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. Always do your own research and consult with a qualified financial professional before making trading decisions. Use at your own risk.