Fractal Support and Resistance -shaoThe Fractal Support and Resistance indicator automatically identifies high-probability support and resistance zones based on repeated fractal touches. When a defined number of fractal highs or lows cluster around the same price zone, the indicator plots a clean horizontal level and shaded zone, helping traders visualize structurally important areas where price may react.
Breadth Indicators
IVRS 5.0Unlock smarter trading decisions with IVRS 5.0, a cutting-edge indicator designed for Pine Script users. IVRS 5.0 offers enhanced insights into price action and momentum shifts, giving you early warnings of trend reversals and optimal entry/exit points. Built with the latest algorithmic techniques, this premium tool is ideal for traders seeking both reliability and innovation.
Key Features:
Sophisticated reversal detection logic for timely buy/sell signals.
Dynamic adaptability for all chart timeframes and asset classes.
Clean, customizable visualization to match your trading style.
Optimized performance, ensuring seamless integration into your workflow.
Take your chart analysis to the next level with IVRS 5.0 — elevate your trading with precision and confidence!
Venkat Sir RSI 38Here's a Pine Script (TradingView) code that does the following:
Uses the RSI indicator (Relative Strength Index).
Watches for RSI crossing below level 38 and then crossing above 38.
When RSI crosses above 38 (after having gone below), it plots a green triangle-up symbol above the candle that triggered the cross.
BTC Perp-Spot PremiumBTC Perp‑Spot Premium w/ EMA Cross
This indicator measures the premium or discount between BTC spot prices and perpetual futures across major exchanges. It visualizes real-time sentiment in the derivatives market and identifies potential inflection points by comparing the behavior of spot traders (real demand) and perp traders (speculative positioning).
What It Does
Calculates the premium spread
Shows the percentage difference between perp and spot prices as a color-coded histogram. Blue bars indicate perps trading above spot (aggressive longs), while red bars suggest perps below spot (risk-off or bearish positioning).
7-exchange composite data feed
Uses a robust average of six perpetual futures sources and seven spot market sources across Binance, Bybit, OKX, Coinbase, Bitfinex, Kraken, and Bitstamp for a balanced and high-fidelity view.
EMA crossover signals
Includes a customizable EMA and MA of the premium. Crossovers are visualized with subtle circle markers to signal sentiment shifts—blue for EMA crossing above, red for crossing below.
Zero baseline
A horizontal line at zero makes it easy to identify when perps flip from premium to discount territory and vice versa.
Dynamic stats table
Displays live values for the perp average, spot average, and premium % in a neatly formatted corner table.
Why It's Useful
This tool helps traders:
Monitor market sentiment and speculative aggression
Spot inefficiencies between derivatives and spot markets
Identify early reversal or continuation signals
Track potential liquidation zones or trend exhaustion
Confirm breakouts with perp/spot alignment
Whether you're trading short-term momentum or watching for mean-reverting setups, this premium analysis tool brings deeper context to BTC price action directly on your chart.
Flexi MA Heat ZonesOverview
Flexi MA Heat Zones is a powerful multi-timeframe visualization tool that helps traders easily identify trend strength, direction, and potential zones of confluence using multiple moving averages and dynamic heatmaps. The indicator plots up to three pairs of customizable moving averages, with color-coded heat zones to highlight bullish and bearish conditions at a glance.
Whether you're a trend follower, mean-reversion trader, or looking for visual confirmation zones, this indicator is designed to offer deep insights with high customizability.
⚙️ Key Features
🔄 Supports multiple MA types: Choose from EMA, SMA, WMA, VWMA to suit your strategy.
🎯 Six moving averages: Three MA pairs (MA1-MA2, MA3-MA4, MA5-MA6), each with independent lengths and colors.
🌈 Heatmap Zones: Dynamic fills between MA pairs, changing color based on bullish or bearish alignment.
👁️🗨️ Full customization: Enable/disable any MA pair and its heatmap zone from the settings.
🪞 Transparency controls: Adjust the visibility of heat zones for clarity or stylistic preference.
🎨 Color-coded for clarity: Bullish and bearish colors for each heat zone pair, fully user-configurable.
🧩 Efficient layout: Smart use of grouped inputs for easier configuration and visibility management.
📈 How to Use
Use the MA1–MA2 and MA3–MA4 zones for longer-term trend tracking and confluence analysis.
Use the faster MA5–MA6 zone for short-term micro-trend identification or scalping.
When a faster MA is above the slower one within a pair, the fill turns bullish (user-defined color).
When the faster MA is below the slower one, the fill turns bearish.
Combine with price action or other indicators for entry/exit confirmation.
🧠 Pro Tips
For trend-following strategies, consider using EMA or WMA types.
For mean-reversion or support/resistance zones, SMA and VWMA may offer better zone clarity.
Overlay with RSI, MACD, or custom entry signals for higher confidence setups.
Use different heatmap transparencies to visually separate overlapping MA zones.
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.
smart money conceprt toolkit🧠 Core Principles of Smart Money Concept
1. Market Structure
Higher Highs / Higher Lows in an uptrend.
Lower Highs / Lower Lows in a downtrend.
Structure shifts help identify trend reversals or continuations.
🔄 Key: Look for breaks of structure (BOS) or market structure shifts (MSS) to spot when smart money may be entering.
2. Liquidity
Smart money hunts liquidity before moving price.
Buy-side liquidity: Above recent highs (where stop-losses from short traders sit).
Sell-side liquidity: Below recent lows (stop-losses from long traders).
💧They create traps to grab these stop-losses, called liquidity grabs or stop hunts.
3. Order Blocks
An order block is the last bullish/bearish candle before a sharp move in the opposite direction.
Bullish Order Block: Last bearish candle before strong upward move.
Bearish Order Block: Last bullish candle before strong downward move.
📦 Smart money often returns to these blocks to fill unfilled orders.
4. Fair Value Gap (FVG) / Imbalance
When price moves too fast, it leaves an imbalance (or FVG) between candles.
Price often retraces to fill the gap, which smart money uses for entries.
📉 FVG = space between candle wicks that price didn’t trade through.
5. Mitigation
Smart money revisits previous zones (like OBs or FVGs) to mitigate risk or close positions.
This helps balance their books and is a common reason for retests of OB zones.
6. Liquidity Sweep / Stop Hunt
Price may fake a breakout, sweep highs/lows, then reverse.
This clears out retail stop-losses and provides entries for smart money.
💡Look for Swing Failure Patterns (SFPs) as a sign of liquidity sweep.
7. Entry Techniques
Once all confluences align:
Look for confirmations like:
BOS/MSS
Return to OB
FVG
Strong rejection wicks
Internal structure shift (on lower timeframe)
🔎 Real-World Example:
Let’s say:
Price makes lower lows and lower highs (downtrend).
Then price sweeps a previous low (liquidity grab).
Then it breaks structure upward.
Wait for price to return to bullish order block or FVG.
Enter long trade from that zone.
This is a typical Smart Money Reversal Model.
🧭 Why Use Smart Money Concept?
✅ Precise entries
✅ Follows market movers
✅ Builds logical narrative of price
✅ Works well with multi-timeframe analysis
🛑 Risk & Misuse
Mislabeling OBs or BOS
Chasing trades without waiting for confirmation
Overusing concepts without context
Believing every move is “manipulation”
Day‑trade Long/Short Signalsday trade Long\Short signals idskator
Displays EMA 5, 8, and 13 to track the trend.
Signals LONG when EMA5 crosses above EMA8 and the MACD line is above the signal line.
Signals SHORT when EMA5 crosses below EMA8 and the MACD line is below the signal line.
Squeeze Momentum Indicator With EMAThis is a upgraded verison of the most popular Squeeze Momentum Indicator with highlighted lines on the chart to better show entry and exits.
Also includes arrows for easy visibility.
Can also set up ALERTS easily and you can change the color of the momentum highlighted areas to your preference.
HOW TO USE :
***ENTER/EXIT WHEN***
1.Ema 56 / 112 / 672 lines up
2.WHEN CROSSOVER ABOVE = Highlighted green with arrows means bullish entry or bearish exit.
3.WHEN CROSSOVER DOWN = Highlighted red with arows means bearish entry or bullish exit.
4.Exit when black areas occur
***AVOID TRADING WHEN***
1.Arrows within black areas (Non momentum areas or non-squeeze areas)
2.Arrows not following trend(Down arrow during an upwards EMA trend)
**Caution**
You can decide to hold onto a position if you'd like durin the trend, but look at price action before exiting.
Wave1234 Flip tp Betawave1234 flip tp
A Trend-Following Indicator Powered by Elliott Wave & SMC – Know Where the Price Will Rise, Peak, and Reverse
Wave1234 Flip TP is a technical indicator built on the foundations of Elliott Wave Theory combined with insights from Smart Money Concepts (SMC). It's designed to help traders clearly identify:
✅ Where the price will start rising (precise entry after a confirmed reversal)
✅ Where the rally is likely to end (shows psychological Take Profit zones after Wave 4)
✅ And where the price is most likely to reverse down (based on key structural resistance)
🧠 How It Works:
The core mechanism of Wave1234 Flip TP is simple but powerful.
📈 Once a Buy signal appears — this marks the beginning of a new uptrend (confirmed by structure and reversal patterns).
➡️ From there, the system lets the trend run naturally, tracking the price through its impulsive movement (Wave 1 to 3) and its first meaningful correction (Wave 4).
✅ After Wave 4 forms, the indicator begins tracking potential reversal zones — based on both market psychology and institutional order flow.
🔹 This is when the green TP line appears — a projected take-profit zone where the rally may end.
💥 When price hits this zone and confirms exhaustion, the green TP line turns blue, signaling:
✅ Success – the trend has completed its cycle
🚨 Caution – momentum may reverse soon
This allows traders to exit at strength, or prepare for a potential short when structure shifts again.
หลักการของ Wave1234 Flip TP คือ “ปล่อยให้เทรนด์รันอย่างเป็นธรรมชาติ แล้วไปโฟกัสจุดกลับตัวที่สำคัญที่สุด”
📈 เมื่อเกิดสัญญาณ Buy — นั่นคือจุดเริ่มต้นของเทรนด์ขาขึ้นรอบใหม่ (ยืนยันโดยโครงสร้างราคาและแท่งกลับตัว)
จากนั้นเราจะ ปล่อยให้เทรนด์วิ่งไป โดยไม่ต้องรีบทำอะไร
…รอจนเข้าสู่ช่วงคลื่น 3 → 4 (Wave 3-4)
เพราะนั่นคือช่วงที่ “แรงซื้อเริ่มหมด”
✅ หลังจาก Wave 4 จบลง
อินดิเคเตอร์จะเริ่ม “คาดการณ์จุดกลับตัว” โดยใช้ทั้งพฤติกรรมจิตวิทยาตลาด และระดับราคาเชิงโครงสร้างที่สถาบันมองเห็น
🟩 เส้น TP สีเขียวจะปรากฏขึ้น — นี่คือโซนที่ควร เริ่มทยอยปิดกำไร
📉 และถ้าราคาวิ่ง ชนเส้นนี้จริง พร้อมมีสัญญาณยืนยัน
เส้นเขียวจะ เปลี่ยนเป็นสีฟ้า ทันที
💡 แปลว่า:
เทรนด์รอบนี้ “ไปถึงเป้าหมายแล้ว”
ความเสี่ยงที่จะกลับทิศกำลังสูงขึ้น
ถึงเวลาที่ต้อง “หยุดโลภ แล้วป้องกันกำไร”
Volume in ₹ (Total Traded Value in Crores)vikram dayal volume chart with total traded value in crores
RSI + VWAP Strategy by vipindaskr🔍 This script combines RSI and VWAP for intraday trend-based entries.
✅ *Buy Signal:*
- Price above VWAP
- RSI > 60
- Green background + up triangle shown
❌ *Sell Signal:*
- Price below VWAP
- RSI < 40
- Red background + down triangle shown
📈 Ideal for Nifty 50 intraday traders using 5-minute chart.
Developed by vipindaskr 💻
Astro by Mr Perfect Trader🌌 Astro Algo Indicator – By Mr. Perfect Trader
An Educational Tool to Master Time-Based Trading with Astrology + Algorithms
🔮 What is the Astro Algo Indicator?
The Astro Algo Indicator is a unique educational and analytical tool designed for traders who want to elevate their skills by understanding how astrological timing and algorithmic market analysis come together to predict price action with precision.
This indicator is not just a tool—it’s a trading education system that teaches you to read the cosmic rhythm of the markets and apply that knowledge with technical confirmation.
Crafted by Mr. Perfect Trader, this system is the result of years of backtesting, live trading experience, and deep research into Vedic astrology, Smart Money Concepts (SMC), ORB strategies, and timing cycles that influence real market moves.
🎯 Why This Indicator is Different
Unlike traditional indicators that only use price or volume, Astro Algo combines three worlds:
Astrological Timing (Hora system) – Uses daily planetary hour transitions to identify high-impact time zones.
Algorithmic Market Logic – Identifies entry, exit, and volatility shifts using coded strategies.
Visual Trading Education – Helps you see how time and price align, so you learn while you trade.
This isn’t a black-box robot. This is a transparent, educational system meant to make YOU smarter, faster, and more precise in your trading decisions.
📚 Key Educational Features
✅ 24 Hora Zones Auto-Plotted Daily
Visual vertical lines for each planetary hour (IST), showing time shifts that impact market energy.
✅ ORB (Opening Range Breakout) System Built-In
Understand how early market volatility sets the tone for the day — and how to trade it.
✅ Smart Buy/Sell Signal Zones
Learn to identify trade zones with a confluence of time + price action, using clean logic.
✅ Multi-Asset Compatible
Works on Forex, Gold, Indices (like NASDAQ, US30, NIFTY, BANKNIFTY) and more.
✅ Fully Visual, Beginner Friendly
Ideal for new traders who want to learn while watching, not just blindly follow.
✅ Lifetime Access + Future Updates
5-Min EMA Crossover (5/10)The 5-Minute EMA Crossover (5/10) strategy is a technical trading approach that uses two Exponential Moving Averages (EMAs) on a 5-minute chart to identify potential buy and sell signals based on trend shifts. Here's a description:
EMAs Used:
Fast EMA: 5-period EMA calculated on 5-minute candles. This EMA reacts quickly to recent price changes since it gives more weight to the latest data.
Slow EMA: 10-period EMA calculated on 5-minute candles. It responds more slowly, smoothing out short-term fluctuations.
How the Crossover Works:
A buy signal (long entry) occurs when the 5-period EMA crosses above the 10-period EMA. This suggests that recent price momentum is gaining strength upward, potentially indicating a bullish trend beginning or resuming.
A sell signal (short entry) happens when the 5-period EMA crosses below the 10-period EMA, signaling weakening recent price momentum and a possible bearish trend.
Purpose:
This crossover method helps traders catch short-term trends on a 5-minute timeframe by signaling moments when momentum shifts.
Because EMAs weight recent prices more heavily, the signals tend to be more responsive to fast market moves compared to simple moving averages.
Typical Usage:
Traders apply this to intraday charts (5-minute candles) looking for quick entries and exits.
It is common to use this crossover in combination with other indicators or price action context to reduce false signals.
Example of Signal Application:
When the 5 EMA crosses above the 10 EMA, consider entering a long position.
When the 5 EMA crosses below the 10 EMA, consider exiting longs or entering shorts.
This method leverages short-term momentum shifts visible on the 5-minute timeframe to help take advantage of intraday trends or reversals.
Reversal Signal avec TICK + RSIThis indicator is a potential reversal indicator for SCALPING, don't use it for swing. It's base on TICK and on an overbrought/oversold condition of the RSI. You can play with the setting, typicaly I like my TICK to be over reacting an 800/-800 and my rsi over 20 and 80, but it give not enough signal. So I set the TICK signal at 651/-651 and the RSI at 25/75. This indicator is made for SP500 and Nasdaq, so SPY/QQQ/SPX/ES/NQ should work well. It's the first version of it, so maybe I'll add so more data to it to increase signal and lower false one. For now I've test it on live market yet(26/7/25).
The RSI is Fast(5 period), I like to use it on the 1 or 5 min chart.
Please not that it only work during 9h30am to 4pm EST.(Because of the TICK)
Feel free to try and even comment. Don't be harsh on me, it's my first try!
(Sorry for my 'english' it's not my first language)
FAUCON
تلوين الشموع حسب الحجم (يومي أو متوسط)📊 Indicator Name:
Candle Coloring Based on Volume Change (Flexible Comparison)
🎯 Purpose of the Indicator:
This indicator colors candlesticks based solely on changes in volume, regardless of price direction. It helps traders visualize unusual volume activity and potential accumulation or distribution zones.
It also displays the percentage change in volume above each candle — based on a comparison method chosen by the user.
⚙️ User Inputs:
Comparison Method (Mode):
"Compare with Previous Day":
The volume of the current candle is compared with the volume of the previous candle.
"Compare with Average of N Days":
The volume is compared with a moving average of volume over a number of past days (e.g., 10 days).
Average Length (for mode 2):
Used only when "Compare with Average" is selected.
Defines the number of days over which to calculate the volume average.
Minimum % Change to Show Label:
A threshold that controls when the percentage label appears.
Prevents label clutter for insignificant volume changes.
🎨 Candle Coloring Logic:
Condition Meaning Candle Color
Current volume > reference volume High activity 🟢 Green
Current volume < reference volume Low activity 🔴 Red
Nearly equal volumes Normal ⚪ Gray
🏷️ Volume Change Label:
The indicator displays a percentage change label above the candle.
For example:
If volume increased by 45% → label shows +45.00%.
If the change exceeds ±50%, the label turns yellow to indicate a significant spike.
✅ Key Benefits:
Quickly detects unusual volume activity (e.g., spikes, drops).
Enhances classic price-action analysis with volume context.
Flexible comparison:
Day-to-day for short-term traders.
Moving average for swing and position traders.
Clean, minimalist design with conditional labels.
🔍 Use Case Examples:
🔴 Red candle on price rise → weak rally (low participation).
🟢 Green candle on price drop → potential distribution.
⚪ Gray candles → sideways or stable behavior.
👤 Who Should Use It?
Day traders and scalpers monitoring volume strength.
Technical analysts who focus on volume-price behavior.
Traders who track accumulation/distribution patterns.
Improved Weinstein Stage AnalysisThe code provides an actionable, disciplined, and visually informative implementation of the “Stage Analysis” approach pioneered by Stan Weinstein, with enhancements to modernize, automate, and clarify the methodology for today’s traders using TradingView. It faithfully follows the workflow recommended: identify long-term cycles, confirm with volume and relative strength, and only engage aggressively with the market during the advancing (bullish) stage with all “clues” aligned.
GBPUSD Trendflow sebiforexPsychological Levels Indicator for GBP/USD
This indicator highlights key psychological price levels on the GBP/USD chart. These are round-number levels (such as 1.2500, 1.2600, 1.2700, etc.) that often act as strong support and resistance zones due to the way traders perceive and react to them. Institutional traders and retail traders alike tend to place orders around these whole and half-number price levels, making them significant turning points in the market.
The indicator automatically plots major psychological levels (e.g., every 100 pips) and optionally minor ones (e.g., every 50 or 25 pips), providing a clear visual guide to areas of potential market reaction.
Key Features:
Highlights major round-number levels (e.g., 1.2500, 1.2600, etc.)
Optional minor levels (e.g., 1.2550, 1.2575, etc.)
Works on all timeframes
Helps identify support/resistance zones and confluence areas
Ideal for scalpers, day traders, and swing traders
These levels can help you anticipate potential price reactions, improve trade entries/exits, and increase overall market awareness.
GBPJPY Trendflow forexsebiPsychological Levels Indicator for GBP/JPY
This indicator marks key psychological price levels on the GBP/JPY chart. These are round-number price levels (such as 190.00, 191.00, 192.00, etc.) that often act as significant support and resistance due to their psychological impact on traders. These levels attract attention from both institutional and retail traders, leading to increased order flow and potential market reactions.
The indicator automatically draws major psychological levels (typically every 100 pips) and can optionally show minor levels (e.g., every 50 or 25 pips), helping traders identify key zones of interest with greater clarity.
Key Features:
Plots major psychological levels (e.g., 190.00, 191.00, 192.00)
Optional minor levels (e.g., 190.50, 190.25, etc.)
Compatible with all timeframes
Helps identify areas of support, resistance, and price reaction
Suitable for all trading styles: scalping, intraday, and swing trading
These levels serve as a visual guide for anticipating potential reversals, breakouts, or consolidations around high-probability zones.
FVGs with Entry & SLThe indicator allows identifying the FVG zone, thereby creating a strategy for entering trades.
Test version 1.0 by VC
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.")
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.