Volume Pressure Gauge + Volume %Volume Pressure Gauge and Volume Percentage Indicator – Pine Script Guide
This indicator provides a simplified, real-time visualization of both volume pressure (buy vs. sell activity) and today’s trading volume in comparison to historical averages. It is designed to help traders assess whether buyers or sellers dominate the current session and whether today’s volume is significant relative to recent behaviour.
________________________________________
Key Functional Segments
1. Inputs and Configuration
Users can configure the length of the Simple Moving Average (SMA) used to calculate average volume, set the position of the gauge table on the chart, and toggle the visibility of the volume pressure display. This allows flexibility in integrating the tool with various trading styles and chart layouts.
2. Volume Data Calculations
The indicator calculates three key volume metrics:
• volToday: The current day’s volume.
• volAvg: The average volume over the user-defined SMA period (default is 20 bars).
• volPct: The current volume as a percentage of the average.
This enables traders to quickly recognize whether current trading activity is above or below normal, which can be a precursor to potential trend strength or weakness.
3. Volume Pressure Calculation
The script estimates buying and selling pressure based on price movement and volume. It distributes volume into upward (buy) and downward (sell) segments and expresses them as percentages of the total volume. This gives an immediate sense of whether bulls or bears are more active in the current session.
4. Visual Representation (Progress Bars)
The indicator renders a simplified visual gauge using horizontal bar segments (pseudo-bars) to reflect the proportion of buy and sell pressure. The length of each bar correlates with the strength of pressure from buyers or sellers, helping users assess dominance without analyzing candlestick behavior in depth.
5. Table Display
A compact table is drawn on the chart showing:
• Buy pressure percentage and corresponding bar.
• Sell pressure percentage and corresponding bar.
• Volume percentage compared to the recent average.
This format makes it easy to evaluate volume dynamics at a glance, without cluttering the price chart or relying on separate overlays.
________________________________________
How Traders Benefit from This Indicator
• Momentum Shift Detection: Early signs of trend reversal can be observed when volume pressure flips direction.
• Breakout Validation: High volume combined with dominant pressure supports the credibility of breakout moves.
• False Move Avoidance: If price moves on low volume or mixed pressure, traders can avoid low-probability entries.
• Market Context Awareness: Users can assess whether a day is behaving normally in terms of participation or is unusually quiet or aggressive.
________________________________________
Basic Usage Guide
1. Add the script to your TradingView chart and set your preferred SMA length for volume comparison.
2. Customize the table’s position using the X and Y settings for clarity and alignment.
3. Interpret the outputs:
o A higher red bar indicates dominant sell pressure.
o A higher green bar indicates dominant buy pressure.
o Volume % above 100% suggests above-average activity, while values below 100% may imply low conviction.
4. Apply to trading decisions:
o High buy pressure and high volume may indicate a strong long opportunity.
o High sell pressure and high volume may support short setups.
o Low volume or conflicting signals may call for caution.
5. Combine with other tools such as trend indicators, support/resistance zones, or price action patterns for more reliable trade setups.
________________________________________
Practical Example
• Sell Pressure: 70% → Suggests strong seller control; potential for short setups.
• Buy Pressure: 30% → Weak buying interest; long trades may carry risk.
• Volume Percentage: 120% → Indicates a surge in participation; movement may have greater validity.
________________________________________
Tips for New Traders
• Use this indicator as a confirmation tool rather than a standalone strategy.
• Begin on higher timeframes (4-hour or daily) to develop familiarity.
• Compare multiple examples to identify reliable patterns over time.
• Always incorporate proper risk management, including stop losses.
________________________________________
Disclaimer from aiTrendview
This indicator is intended solely for educational and informational use. It does not constitute investment advice, trade signals, or financial recommendations. aiTrendview and its affiliates are not liable for any trading losses incurred through use of this tool. All trading involves risk. Past performance of any indicator does not guarantee future results. Users should conduct independent research and consult with a certified financial advisor before making any trading decisions.
Volume
Game Theory Trading StrategyGame Theory Trading Strategy: Explanation and Working Logic
This Pine Script (version 5) code implements a trading strategy named "Game Theory Trading Strategy" in TradingView. Unlike the previous indicator, this is a full-fledged strategy with automated entry/exit rules, risk management, and backtesting capabilities. It uses Game Theory principles to analyze market behavior, focusing on herd behavior, institutional flows, liquidity traps, and Nash equilibrium to generate buy (long) and sell (short) signals. Below, I'll explain the strategy's purpose, working logic, key components, and usage tips in detail.
1. General Description
Purpose: The strategy identifies high-probability trading opportunities by combining Game Theory concepts (herd behavior, contrarian signals, Nash equilibrium) with technical analysis (RSI, volume, momentum). It aims to exploit market inefficiencies caused by retail herd behavior, institutional flows, and liquidity traps. The strategy is designed for automated trading with defined risk management (stop-loss/take-profit) and position sizing based on market conditions.
Key Features:
Herd Behavior Detection: Identifies retail panic buying/selling using RSI and volume spikes.
Liquidity Traps: Detects stop-loss hunting zones where price breaks recent highs/lows but reverses.
Institutional Flow Analysis: Tracks high-volume institutional activity via Accumulation/Distribution and volume spikes.
Nash Equilibrium: Uses statistical price bands to assess whether the market is in equilibrium or deviated (overbought/oversold).
Risk Management: Configurable stop-loss (SL) and take-profit (TP) percentages, dynamic position sizing based on Game Theory (minimax principle).
Visualization: Displays Nash bands, signals, background colors, and two tables (Game Theory status and backtest results).
Backtesting: Tracks performance metrics like win rate, profit factor, max drawdown, and Sharpe ratio.
Strategy Settings:
Initial capital: $10,000.
Pyramiding: Up to 3 positions.
Position size: 10% of equity (default_qty_value=10).
Configurable inputs for RSI, volume, liquidity, institutional flow, Nash equilibrium, and risk management.
Warning: This is a strategy, not just an indicator. It executes trades automatically in TradingView's Strategy Tester. Always backtest thoroughly and use proper risk management before live trading.
2. Working Logic (Step by Step)
The strategy processes each bar (candle) to generate signals, manage positions, and update performance metrics. Here's how it works:
a. Input Parameters
The inputs are grouped for clarity:
Herd Behavior (🐑):
RSI Period (14): For overbought/oversold detection.
Volume MA Period (20): To calculate average volume for spike detection.
Herd Threshold (2.0): Volume multiplier for detecting herd activity.
Liquidity Analysis (💧):
Liquidity Lookback (50): Bars to check for recent highs/lows.
Liquidity Sensitivity (1.5): Volume multiplier for trap detection.
Institutional Flow (🏦):
Institutional Volume Multiplier (2.5): For detecting large volume spikes.
Institutional MA Period (21): For Accumulation/Distribution smoothing.
Nash Equilibrium (⚖️):
Nash Period (100): For calculating price mean and standard deviation.
Nash Deviation (0.02): Multiplier for equilibrium bands.
Risk Management (🛡️):
Use Stop-Loss (true): Enables SL at 2% below/above entry price.
Use Take-Profit (true): Enables TP at 5% above/below entry price.
b. Herd Behavior Detection
RSI (14): Checks for extreme conditions:
Overbought: RSI > 70 (potential herd buying).
Oversold: RSI < 30 (potential herd selling).
Volume Spike: Volume > SMA(20) x 2.0 (herd_threshold).
Momentum: Price change over 10 bars (close - close ) compared to its SMA(20).
Herd Signals:
Herd Buying: RSI > 70 + volume spike + positive momentum = Retail buying frenzy (red background).
Herd Selling: RSI < 30 + volume spike + negative momentum = Retail selling panic (green background).
c. Liquidity Trap Detection
Recent Highs/Lows: Calculated over 50 bars (liquidity_lookback).
Psychological Levels: Nearest round numbers (e.g., $100, $110) as potential stop-loss zones.
Trap Conditions:
Up Trap: Price breaks recent high, closes below it, with a volume spike (volume > SMA x 1.5).
Down Trap: Price breaks recent low, closes above it, with a volume spike.
Visualization: Traps are marked with small red/green crosses above/below bars.
d. Institutional Flow Analysis
Volume Check: Volume > SMA(20) x 2.5 (inst_volume_mult) = Institutional activity.
Accumulation/Distribution (AD):
Formula: ((close - low) - (high - close)) / (high - low) * volume, cumulated over time.
Smoothed with SMA(21) (inst_ma_length).
Accumulation: AD > MA + high volume = Institutions buying.
Distribution: AD < MA + high volume = Institutions selling.
Smart Money Index: (close - open) / (high - low) * volume, smoothed with SMA(20). Positive = Smart money buying.
e. Nash Equilibrium
Calculation:
Price mean: SMA(100) (nash_period).
Standard deviation: stdev(100).
Upper Nash: Mean + StdDev x 0.02 (nash_deviation).
Lower Nash: Mean - StdDev x 0.02.
Conditions:
Near Equilibrium: Price between upper and lower Nash bands (stable market).
Above Nash: Price > upper band (overbought, sell potential).
Below Nash: Price < lower band (oversold, buy potential).
Visualization: Orange line (mean), red/green lines (upper/lower bands).
f. Game Theory Signals
The strategy generates three types of signals, combined into long/short triggers:
Contrarian Signals:
Buy: Herd selling + (accumulation or down trap) = Go against retail panic.
Sell: Herd buying + (distribution or up trap).
Momentum Signals:
Buy: Below Nash + positive smart money + no herd buying.
Sell: Above Nash + negative smart money + no herd selling.
Nash Reversion Signals:
Buy: Below Nash + rising close (close > close ) + volume > MA.
Sell: Above Nash + falling close + volume > MA.
Final Signals:
Long Signal: Contrarian buy OR momentum buy OR Nash reversion buy.
Short Signal: Contrarian sell OR momentum sell OR Nash reversion sell.
g. Position Management
Position Sizing (Minimax Principle):
Default: 1.0 (10% of equity).
In Nash equilibrium: Reduced to 0.5 (conservative).
During institutional volume: Increased to 1.5 (aggressive).
Entries:
Long: If long_signal is true and no existing long position (strategy.position_size <= 0).
Short: If short_signal is true and no existing short position (strategy.position_size >= 0).
Exits:
Stop-Loss: If use_sl=true, set at 2% below/above entry price.
Take-Profit: If use_tp=true, set at 5% above/below entry price.
Pyramiding: Up to 3 concurrent positions allowed.
h. Visualization
Nash Bands: Orange (mean), red (upper), green (lower).
Background Colors:
Herd buying: Red (90% transparency).
Herd selling: Green.
Institutional volume: Blue.
Signals:
Contrarian buy/sell: Green/red triangles below/above bars.
Liquidity traps: Red/green crosses above/below bars.
Tables:
Game Theory Table (Top-Right):
Herd Behavior: Buying frenzy, selling panic, or normal.
Institutional Flow: Accumulation, distribution, or neutral.
Nash Equilibrium: In equilibrium, above, or below.
Liquidity Status: Trap detected or safe.
Position Suggestion: Long (green), Short (red), or Wait (gray).
Backtest Table (Bottom-Right):
Total Trades: Number of closed trades.
Win Rate: Percentage of winning trades.
Net Profit/Loss: In USD, colored green/red.
Profit Factor: Gross profit / gross loss.
Max Drawdown: Peak-to-trough equity drop (%).
Win/Loss Trades: Number of winning/losing trades.
Risk/Reward Ratio: Simplified Sharpe ratio (returns / drawdown).
Avg Win/Loss Ratio: Average win per trade / average loss per trade.
Last Update: Current time.
i. Backtesting Metrics
Tracks:
Total trades, winning/losing trades.
Win rate (%).
Net profit ($).
Profit factor (gross profit / gross loss).
Max drawdown (%).
Simplified Sharpe ratio (returns / drawdown).
Average win/loss ratio.
Updates metrics on each closed trade.
Displays a label on the last bar with backtest period, total trades, win rate, and net profit.
j. Alerts
No explicit alertconditions defined, but you can add them for long_signal and short_signal (e.g., alertcondition(long_signal, "GT Long Entry", "Long Signal Detected!")).
Use TradingView's alert system with Strategy Tester outputs.
3. Usage Tips
Timeframe: Best for H1-D1 timeframes. Shorter frames (M1-M15) may produce noisy signals.
Settings:
Risk Management: Adjust sl_percent (e.g., 1% for volatile markets) and tp_percent (e.g., 3% for scalping).
Herd Threshold: Increase to 2.5 for stricter herd detection in choppy markets.
Liquidity Lookback: Reduce to 20 for faster markets (e.g., crypto).
Nash Period: Increase to 200 for longer-term analysis.
Backtesting:
Use TradingView's Strategy Tester to evaluate performance.
Check win rate (>50%), profit factor (>1.5), and max drawdown (<20%) for viability.
Test on different assets/timeframes to ensure robustness.
Live Trading:
Start with a demo account.
Combine with other indicators (e.g., EMAs, support/resistance) for confirmation.
Monitor liquidity traps and institutional flow for context.
Risk Management:
Always use SL/TP to limit losses.
Adjust position_size for risk tolerance (e.g., 5% of equity for conservative trading).
Avoid over-leveraging (pyramiding=3 can amplify risk).
Troubleshooting:
If no trades are executed, check signal conditions (e.g., lower herd_threshold or liquidity_sensitivity).
Ensure sufficient historical data for Nash and liquidity calculations.
If tables overlap, adjust position.top_right/bottom_right coordinates.
4. Key Differences from the Previous Indicator
Indicator vs. Strategy: The previous code was an indicator (VP + Game Theory Integrated Strategy) focused on visualization and alerts. This is a strategy with automated entries/exits and backtesting.
Volume Profile: Absent in this strategy, making it lighter but less focused on high-volume zones.
Wick Analysis: Not included here, unlike the previous indicator's heavy reliance on wick patterns.
Backtesting: This strategy includes detailed performance metrics and a backtest table, absent in the indicator.
Simpler Signals: Focuses on Game Theory signals (contrarian, momentum, Nash reversion) without the "Power/Ultra Power" hierarchy.
Risk Management: Explicit SL/TP and dynamic position sizing, not present in the indicator.
5. Conclusion
The "Game Theory Trading Strategy" is a sophisticated system leveraging herd behavior, institutional flows, liquidity traps, and Nash equilibrium to trade market inefficiencies. It’s designed for traders who understand Game Theory principles and want automated execution with robust risk management. However, it requires thorough backtesting and parameter optimization for specific markets (e.g., forex, crypto, stocks). The backtest table and visual aids make it easy to monitor performance, but always combine with other analysis tools and proper capital management.
If you need help with backtesting, adding alerts, or optimizing parameters, let me know!
Accumulation Phase DetectorClean Accumulation Phase Indicator — Description
This TradingView indicator visually identifies the Accumulation Phase in price action, based on the Wyckoff methodology and volume-price analysis. The Accumulation Phase is where insiders or "smart money" gradually build positions before a significant price breakout.
Key Features:
Range Detection: The indicator calculates a price range over a configurable period (Range Length). It marks this range on the chart with red horizontal lines representing support and resistance.
Volume Spike Identification: It detects unusually high volume relative to the average volume over the same period (Volume Spike Multiplier). These spikes highlight potential insider buying activity.
Accumulation Phase Highlighting: When price action remains within the detected range and volume spikes occur, the indicator considers the market to be in an accumulation phase. Volume bars during this phase are colored blue for easy visualization.
Campaign Start & End Labels: The indicator places a "Campaign starts" label at the beginning of the accumulation phase and a "Campaign ends - warehouse full" label when the accumulation ends. This mimics the idea that insiders fill their “warehouses” before a breakout.
Breakout Detection: Once accumulation ends, the indicator monitors for a price breakout above the resistance level and places a "Breakout" label at the breakout bar.
How to Use:
Adjust the Range Length and Volume Spike Multiplier inputs to suit the timeframe and instrument you’re analyzing.
Watch for the blue volume bars within the red range lines to identify the accumulation phase.
Use the campaign labels to identify when the phase starts and ends.
Watch for the breakout label as a potential entry signal.
Simple VWAPPlots a simple Volume Weighted Average Price (VWAP) line with a thicker style for better visibility on the chart
Volume Based Analysis V 1.00
Volume Based Analysis V1.00 – Multi-Scenario Buyer/Seller Power & Volume Pressure Indicator
Description:
1. Overview
The Volume Based Analysis V1.00 indicator is a comprehensive tool for analyzing market dynamics using Buyer Power, Seller Power, and Volume Pressure scenarios. It detects 12 configurable scenarios combining volume-based calculations with price action to highlight potential bullish or bearish conditions.
When used in conjunction with other technical tools such as Ichimoku, Bollinger Bands, and trendline analysis, traders can gain a deeper and more reliable understanding of the market context surrounding each signal.
2. Key Features
12 Configurable Scenarios covering Buyer/Seller Power convergence, divergence, and dominance
Advanced Volume Pressure Analysis detecting when both buy/sell volumes exceed averages
Global Lookback System ensuring consistency across all calculations
Dominance Peak Module for identifying strongest buyer/seller dominance at structural pivots
Real-time Signal Statistics Table showing bullish/bearish counts and volume metrics
Fully customizable inputs (SMA lengths, multipliers, timeframes)
Visual chart markers (S01 to S12) for clear on-chart identification
3. Usage Guide
Enable/Disable Scenarios: Choose which signals to display based on your trading strategy
Fine-tune Parameters: Adjust SMA lengths, multipliers, and lookback periods to fit your market and timeframe
Timeframe Control: Use custom lower timeframes for refined up/down volume calculations
Combine with Other Indicators:
Ichimoku: Confirm volume-based bullish signals with cloud breakouts or trend confirmation
Bollinger Bands: Validate divergence/convergence signals with overbought/oversold zones
Trendlines: Spot high-probability signals at breakout or retest points
Signal Tables & Peaks: Read buy/sell volume dominance at a glance, and activate the Dominance Peak Module to highlight key turning points.
4. Example Scenarios & Suggested Images
Image #1 – S01 Bullish Convergence Above Zero
S01 activated, Buyer Power > 0, both buyer power slope & price slope positive, above-average buy volume. Show S01 ↑ marker below bar.
Image #2 – Combined with Ichimoku
Display a bullish scenario where price breaks above Ichimoku cloud while S01 or S09 bullish signal is active. Highlight both the volume-based marker and Ichimoku cloud breakout.
Image #3 – Combined with Bollinger Bands & Trendlines
Show a bearish S10 signal at the upper Bollinger Band near a descending trendline resistance. Highlight the confluence of the volume pressure signal with the band touch and trendline rejection.
Image #4 – Dominance Peak Module
Pivot low with green ▲ Bull Peak and pivot high with red ▼ Bear Peak, showing strong dominance counts.
Image #5 – Statistics Table in Action
Bottom-left table showing buy/sell volume, averages, and bullish/bearish counts during an active market phase.
5. Feedback & Collaboration
Your feedback and suggestions are welcome — they help improve and refine this system. If you discover interesting use cases or have ideas for new features, please share them in the script’s comments section on TradingView.
6. Disclaimer
This script is for educational purposes only. It is not financial advice. Past performance does not guarantee future results. Always do your own analysis before making trading decisions.
Tip: Use this tool alongside trend confirmation indicators for the most robust signal interpretation.
NightWatch 24/5 [theUltimator5]NightWatch 24/5 is a comprehensive indicator designed to seamlessly display both regular and overnight trading (BOATS exchange) into a single chart. Current TV limitations don't allow both overnight trading and regular exchanges to appear on the same chart due to timeframe visibility settings. We can either select between RTH (Regular Trading Hours) or ETH (Extended Trading Hours). There is no option to show 24 hour charts when looking at a stock. This indicator attempts to solve this issue.
Please read the entire description thoroughly because this indicator takes a little bit of setup to work properly!
---IMPORTANT-- -
This indicator MUST be used over a liquid cryptocurrency chart, like Bitcoin. It requires access to something that trades 24/7 and has volume data for all periods. Bitcoin on Coinbase is the best option. Please select Bitcoin as your main ticker before adding this indicator to the chart.
-------------------
This indicator combines the price of both the regular trading hours and the overnight trading to create a single price line and volume candles. You can select view settings to either overlay the price on the chart, or have it below the chart. Volume can be toggled on or off as well.
Default settings:
Ticker = GME
Overlay Candles on Main Chart = true
Display Data = Both Price and Volume
Show Status Table = true
Here is an explanation for each of these settings:
Ticker - Type in the ticker you want to track overnight and intraday data for
Overlay Candles on Main chart - This will push the price candles onto the main chart area instead of below it. Volume candles will remain in their own separate pane below. This is useful if you want to track both price and volume without adding the indicator twice.
Display Data - This determines what data to show. Volume, price, or both volume and price.
Show Status Table - This toggles on or off the table that shows the ticker name, current session, and the price (change) of the ticker since the most recent daily close.
If you overlay the price onto the chart, the price of the stock you are looking at will likely be a VERY different price than the crypto it is overlaying against. There are a couple workarounds. You can either zoom into the chart around the price of the stock you are looking at (time consuming), or you can go into your object tree and drag the indicator up into the main chart area. This will overlay the price onto the crypto while maintaining it's own unique y-axis.
After you move the indicator up, you can add the indicator back a second time, then change the settings to only show the volume candles. You can then toggle off the table on one of the two so you don't see duplicate tables. This is the setting I am showing in my chart above. The indicator is added twice with the price being pulled up into the same window as Bitcoin, then a second instance below showing just volume.
--LIMITATIONS--
Since the indicator requires the use of a 24 hour market ticker like Bitcoin, it DOES NOT display extended hours data. The price and volume data STOPS at 16:00 EST then resumes back up at 20:00 EST when BOATS opens. At 04:00, the price and volume then stops until 09:30, when the regular trading hours begin. This causes a flat line in the price during those periods. Unfortunately, there is no current workaround to this issue.
If Bitcoin becomes illiquid (or whatever crypto you choose), it will only populate data for the ticker you want if there is data available for that crypto at the same time period. A gap in Bitcoin volume will show a gap in trade activity for your ticker.
SwingSignal RSI Overlay AdvancedSwingSignal RSI Overlay Advanced
By BFAS
This advanced indicator leverages the Relative Strength Index (RSI) to pinpoint critical market reversal points by highlighting key swing levels with intuitive visual markers.
Key Features:
Detects overbought and oversold levels with customizable RSI period and threshold settings.
Visually marks swing points:
Red star (HH) for Higher Highs.
Yellow star (LH) for Lower Highs.
Blue star (HL) for Higher Lows.
Green star (LL) for Lower Lows.
Connects swings with lines, aiding in the analysis of market structure.
Optimized for use on the main chart (overlay), tracking candles in real time.
This indicator provides robust visual support for traders aiming to identify price patterns related to RSI momentum, facilitating entry and exit decisions based on clear swing signals.
NAS100 and gold Smart Scalping Strategy PRO [Enhanced v2]It works on both Gold, Platinum and USTEC100. Profit factor between 6-9. Great Profit making with risk management
Ultimate Scalping Strategy v2Strategy Overview
This is a versatile scalping strategy designed primarily for low timeframes (like 1-min, 3-min, or 5-min charts). Its core logic is based on a classic EMA (Exponential Moving Average) crossover system, which is then filtered by the VWAP (Volume-Weighted Average Price) to confirm the trade's direction in alignment with the market's current intraday sentiment.
The strategy is highly customizable, allowing traders to add layers of confirmation, control trade direction, and manage exits with precision.
Core Strategy Logic
The strategy's entry signals are generated when two primary conditions are met simultaneously:
Momentum Shift (EMA Crossover): It looks for a crossover between a fast EMA (default length 9) and a slow EMA (default length 21).
Buy Signal: The fast EMA crosses above the slow EMA, indicating a potential shift to bullish momentum.
Sell Signal: The fast EMA crosses below the slow EMA, indicating a potential shift to bearish momentum.
Trend/Sentiment Filter (VWAP): The crossover signal is only considered valid if the price is on the "correct" side of the VWAP.
For a Buy Signal: The price must be trading above the VWAP. This confirms that, on average, buyers are in control for the day.
For a Sell Signal: The price must be trading below the VWAP. This confirms that sellers are generally in control.
Confirmation Filters (Optional)
To increase the reliability of the signals and reduce false entries, the strategy includes two optional confirmation filters:
Price Action Filter (Engulfing Candle): If enabled (Use Price Action), the entry signal is only valid if the crossover candle is also an "engulfing" candle.
A Bullish Engulfing candle is a large green candle that completely "engulfs" the body of the previous smaller red candle, signaling strong buying pressure.
A Bearish Engulfing candle is a large red candle that engulfs the previous smaller green candle, signaling strong selling pressure.
Volume Filter (Volume Spike): If enabled (Use Volume Confirmation), the entry signal must be accompanied by a surge in volume. This is confirmed if the volume of the entry candle is greater than its recent moving average (default 20 periods). This ensures the move has strong participation behind it.
Exit Strategy
A position can be closed in one of three ways, creating a comprehensive exit plan:
Stop Loss (SL): A fixed stop loss is set at a level determined by a multiple of the Average True Range (ATR). For example, a 1.5 multiplier places the stop 1.5 times the current ATR value away from the entry price. This makes the stop dynamic, adapting to market volatility.
Take Profit (TP): A fixed take profit is also set using an ATR multiplier. By setting the TP multiplier higher than the SL multiplier (e.g., 2.0 for TP vs. 1.5 for SL), the strategy aims for a positive risk-to-reward ratio on each trade.
Exit on Opposite Signal (Reversal): If enabled, an open position will be closed automatically if a valid entry signal in the opposite direction appears. For example, if you are in a long trade and a valid short signal occurs, the strategy will exit the long position immediately. This feature turns the strategy into more of a reversal system.
Key Features & Customization
Trade Direction Control: You can enable or disable long and short trades independently using the Allow Longs and Allow Shorts toggles. This is useful for trading in harmony with a higher-timeframe trend (e.g., only allowing longs in a bull market).
Visual Plots: The strategy plots the Fast EMA, Slow EMA, and VWAP on the chart for easy visualization of the setup. It also plots up/down arrows to mark where valid buy and sell signals occurred.
Dynamic SL/TP Line Plotting: A standout feature is that the strategy automatically draws the exact Stop Loss and Take Profit price lines on the chart for every active trade. These lines appear when a trade is entered and disappear as soon as it is closed, providing a clear visual of your risk and reward targets.
Alerts: The script includes built-in alertcondition calls. This allows you to create alerts in TradingView that can notify you on your phone or execute trades automatically via a webhook when a long or short signal is generated.
M3EDGE™ Relative Volume (RVOL)Relative Volume (RVOL) compares the current volume to its historical average.
🎯 Goal: Spot abnormal flows and anticipate impulsive moves.
🔍 M3EDGE™ Key Reading:
• RVOL > 2.0 → Likely institutional activity.
• RVOL > 1.5 → Heightened surveillance: potential move building.
• Price falling + high RVOL → Stealth accumulation / sell-side absorption.
• Price rising + high RVOL → Confirmed breakout with real flows.
💡 In the M3EDGE™ method, RVOL filters out false signals and validates setups by aligning flow + structure + momentum.
Applied to ETFs or stocks, it reveals what price action alone won’t show
Relative Volume SpikeThis indicator lets you know when a wick has 2x (default value) more volume than the average.
Previous Day Liquidity ZonesThis indicator is designed for intraday liquidity-based trading strategies and helps traders identify high-probability reversal or breakout zones based on smart money concepts.
It automatically plots the:
🟥 Previous Day High Zone – potential buy-side liquidity trap
🟩 Previous Day Low Zone – potential sell-side liquidity trap
🟧 Previous Day Close Zone – potential rebalancing or indecision zone
These levels are critical areas where institutional stop-hunting, reversals, and fake breakouts often occur.
🎯 How to Use
Use this indicator on 1-minute or 5-minute charts for stocks, indices (like NIFTY, BANKNIFTY), or forex.
Watch for price entering these zones during live market hours.
Combine with price action confirmation:
Rejection wicks
Engulfing candles
Change of character (CHoCH) or BOS
Fair Value Gaps (FVG)
First 5-minute candle (9:15 AM in Indian market) is highlighted for breakout setups.
🧠 Smart Money Logic
These zones mimic the logic used by institutions to:
Trigger retail stop-losses
Reverse market direction near liquidity pools
Trap breakout traders around session extremes
⚙️ Features
Configurable zone width (%)
Visual fill zones with subtle shading
Support for all assets and timeframes
Highlights first candle of day to assist with pre-trade bias
✅ Ideal For:
Smart money traders
ICT / Wyckoff / SMC followers
Breakout trap or reversal strategy users
Anyone who trades key session levels
⚠️ Disclaimer
This is an informational tool. Always use confirmation and sound risk management before executing any trade.
Lot Size Calculator(Mastersinnifty)Description
This indicator provides a real-time lot size and share quantity calculator directly on your chart. It helps traders quickly determine position sizing based on available capital, unit price, and lot size—without the need for external tools.
How It Works
The script calculates:
The number of lots you can trade based on your capital, unit price, and specified lot size.
The equivalent number of shares that can be bought for the given amount.
Displays the result in a clean on-chart table that can be repositioned.
Inputs
Amount – Total capital available for trade (in currency units).
Price per unit – Entry price per single share or contract.
Lot Size – Number of units per lot.
Table Position – Selectable location on the chart for the display table (Top Right, Top Left, Bottom Right, Bottom Left, Middle).
Use Case
Ideal for intraday and positional traders who want to:
Avoid manual calculations while placing trades.
Quickly adjust position size based on price fluctuations.
Ensure consistent risk management practices.
Disclaimer
This is a utility tool intended to assist with trade size calculation. It does not provide buy/sell signals or investment advice. Always validate results and consult your risk management strategy before placing trades.
10-Bar Breakout + Volume + Adjustable Target(Mastersinnifty)Description
This indicator identifies potential breakout opportunities from short-term price congestion zones, confirmed with volume. It dynamically highlights breakout signals and plots corresponding price targets using adjustable parameters.
How It Works
Calculates the highest high and lowest low over the past N bars (default: 10) to define a congestion range.
Confirms a breakout only if volume exceeds the average (SMA or EMA) by a user-defined multiplier.
Plots arrows for Buy or Sell signals based on breakout direction.
Sets a price target using a configurable multiple of the congestion range.
Highlights breakout bars with subtle background colors.
Optionally displays the calculated volume threshold for reference.
Inputs
Congestion Bar Count : Number of bars to define the congestion range.
Volume Multiplier : Volume must exceed this multiple of average volume.
Volume MA Type : Select between SMA or EMA for volume calculation.
Target Multiplier : Controls how far the price target is from the breakout level.
Use Case
Identify high-probability breakout opportunities with volume confirmation.
Set dynamic price targets based on recent market structure.
Avoid entries during low-volume or false breakout conditions.
Disclaimer
This script is for educational and analytical purposes only. Use appropriate risk management and test any strategy thoroughly before using it in live trading.
Trend Strength Index [Alpha Extract]The Trend Strength Index leverages Volume Weighted Moving Average (VWMA) and Average True Range (ATR) to quantify trend intensity in cryptocurrency markets, particularly Bitcoin. The combination of VWMA and ATR is particularly powerful because VWMA provides a more accurate representation of the market's true average price by weighting periods of higher trading volume more heavily—capturing genuine momentum driven by increased participation rather than treating all price action equally, which is crucial in volatile assets like Bitcoin where volume spikes often signal institutional interest or market shifts.
Meanwhile, ATR normalizes this measurement for volatility, ensuring that trend strength readings remain comparable across different market conditions; without ATR's adjustment, raw price deviations from the mean could appear artificially inflated during high-volatility periods (like during news events or liquidations) or understated in low-volatility sideways markets, leading to misleading signals. Together, they create a volatility-adjusted, volume-sensitive metric that reliably distinguishes between meaningful trend developments and noise.
This indicator measures the normalized distance between price and its volume-weighted mean, providing a clear visualization of trend strength while accounting for market volatility. It helps traders identify periods of strong directional movement versus consolidation, with color-coded gradients for intuitive interpretation.
🔶 CALCULATION
The indicator processes price data through these analytical stages:
Volume Weighted Moving Average: Computes a smoothed average weighted by trading volume
Volatility Normalization: Uses ATR to account for market volatility
Distance Measurement: Calculates absolute deviation between current price and VWMA
Strength Normalization: Divides price deviation by ATR for a volatility-adjusted metric
Formula:
VWMA = Volume-Weighted Moving Average of Close over specified length
ATR = Average True Range over specified length
Price Distance = |Close - VWMA|
Trend Strength = Price Distance / ATR
🔶 DETAILS Visual Features:
VWMA Line: Blue line overlay on the price chart representing the volume-weighted mean
Trend Strength Area: Histogram-style area plot with dynamic color gradient (red for weak trends, transitioning through orange and yellow to green for strong trends)
Threshold Line: Horizontal red line at the customizable Trend Enter level
Background Highlight: Subtle green background when trend strength exceeds the enter threshold for strong trend visualization
Alert System: Triggers notifications for strong trend detection
Interpretation:
0-Weak (Red): Minimal trend strength, potential consolidation or ranging market
Mid-Range (Orange/Yellow): Building momentum, watch for breakout potential
At/Above Enter Threshold (Green): Strong trend conditions, potential for continued directional moves
Threshold Crossing: Trend strength crossing above the enter level signals increasing conviction in the current direction
Color Transitions: Gradual shifts from warm (red/orange) to cool (green) tones indicate strengthening trends
🔶 EXAMPLES
Strong Trend Entry: When trend strength crosses above the enter threshold (e.g., 1.2), it identifies the onset of a powerful move where price deviates significantly from the mean.
Example: During a rally, trend strength rising from yellow (around 1.0) to green (1.2+) often precedes sustained upward momentum, providing entry opportunities for trend followers.
Consolidation Detection: Low trend strength values in red shades (below 0.5) highlight periods of low volatility and mean reversion potential.
Example: After a sharp sell-off, persistent red values signal a likely sideways phase, allowing traders to avoid whipsaws and wait for orange/yellow transitions as a precursor to recovery.
Volatility-Adjusted Pullbacks: In volatile markets, the ATR component ensures trend strength remains accurate; a dip back to yellow from green during minor corrections can indicate healthy pullbacks within a strong trend.
Example: Trend strength briefly falling to yellow levels (e.g., 0.8-1.1) after hitting green provides profit-taking signals without invalidating the overall bullish bias if the VWMA holds as support.
Threshold Alert Integration: The alert condition combines strength value with the enter threshold for timely notifications.
Example: Receiving a "Strong Trend Detected" alert when the area plot turns green helps confirm Bitcoin's breakout from consolidation, aligning with increased volume for higher-probability trades.
🔶 SETTINGS
Customization Options:
Lengths: VWMA length (default 14), ATR length (default 14)
Thresholds: Trend enter (default 1.2, step 0.1), trend exit (default 1.15, for potential future signal enhancements)
Visuals: Automatic color scaling with red at 0, transitioning to green at/above enter threshold
Alert Conditions: Strong trend detection (when strength > enter)
The Trend Strength Index equips traders with a robust, easy-to-interpret tool for gauging trend intensity in volatile markets like Bitcoin. By normalizing price deviations against volatility, it delivers reliable signals for identifying high-momentum opportunities while the gradient coloring and alerts facilitate quick assessments in both trending and choppy conditions.
Square-root Decay Volume ProfileThis indicator displays a custom price profile that mimics a volume profile using occurrence-based weighting rather than actual volume. It counts how often the selected price source (e.g., close) falls within each price bin over a lookback period. What makes it unique is the use of square-root time decay: more recent price occurrences are given greater importance, while older data is discounted proportionally to the inverse square root of its age.
Each bin's relative weight is visualized as a horizontal bar aligned to the right edge of the chart, showing where price has "spent time" more recently. This allows traders to identify areas of interest, balance zones, and potential support/resistance levels based on decayed price density.
Key Features:
Square-root decay weighting favors recent price action
Adjustable lookback period, bin count, and histogram width
Works with any price source (close, hl2, etc.)
Plots boxes directly on the chart for clear visualization
This tool is especially useful for discretionary traders seeking a price-centric alternative to traditional volume profiles, with an added emphasis on recency.
4 Anchored VWAPs This indicator shows 4 periods of Anchored VWAPs according to specific dates the user chose.
TOT Strategy, The ORB Titan (Configurable)This is a strategy script adapted from Deniscr 's indicator script found here:
All feedback welcome!
Zero Lag Moving AverageThis indicator is a trend detection tool that highlights significant momentum shifts with reduced lag. It uses two smoothed moving averages—fast and medium ZLEMAs—optionally enhanced with a Kalman filter to reduce noise. The indicator defines a bullish trend when the price is above both ZLEMAs, and bearish when it is below both. Rather than signaling every crossover, it focuses on trend changes, triggering buy or sell signals only when the trend flips (e.g., from bearish to bullish) and confirms those shifts with two filters: rising volume (above the 20-bar average) and a strong trend based on the ADX indicator. Visual features include optional candle coloring to reflect trend direction and signal markers (triangles) plotted only during a user-defined trading session. This setup helps traders act only on confirmed, high-quality momentum shifts, reducing false positives in low-volume or ranging markets.
SMC TimingThis indicator (“SMC Timing”) visually marks the exact moments when the market typically experiences large liquidity injections—moments that often trigger strong directional moves. By plotting dashed vertical lines and labels at key session boundaries and news events (Frankfurt open, London open, EU mid-session pause, Pre-US, US open, 14:30 U.S. news releases, 15:00 breakout window, and the London close), it draws your attention to the times when stop-runs and institutional orders tend to pile into the market.
Traders can use these timing zones to:
Anticipate liquidity sweeps where smart-money often liquidates weak positions or hunts stops.
Plan higher-probability entries just before or directly after these injections, reducing slippage and improving execution.
Improve win-rate consistency by aligning your trades with the natural ebb and flow of institutional flow rather than fading it.
With customizable session toggles, a “today-only” filter, and a small vertical offset to keep markers clear of price bars, this tool seamlessly integrates into any chart. Positioning yourself around these highlighted times helps you capture the bulk of intraday moves and avoids getting caught in low-liquidity chop.
Buy Sell Sniper Entry Background (based on EP Script by RedK)
Is this one of the most precise Buy Sell Indicators?
Only you can tell!
Based on the EP script by RedK EVEREX this indicator will color your background directly in your chart. Clean, easy, simple.
I did not alter any of their logic, nothing.
Looking for an even more precise entry option?
How about combining it with my first Background Indicator based on Williams Alligator.
The Candle coloring is based on this TUE ADX script
Happy Sniper Trading!
Adaptive Market Profile – Auto Detect & Dynamic Activity ZonesAdaptive Market Profile is an advanced indicator that automatically detects and displays the most relevant trend channel and market profile for any asset and timeframe. Unlike standard regression channel tools, this script uses a fully adaptive approach to identify the optimal period, providing you with the channel that best fits the current market dynamics. The calculation is based on maximizing the statistical significance of the trend using Pearson’s R coefficient, ensuring that the most relevant trend is always selected.
Within the selected channel, the indicator generates a dynamic market profile, breaking the price range into configurable zones and displaying the most active areas based on volume or the number of touches. This allows you to instantly identify high-activity price levels and potential support/resistance zones. The “most active lines” are plotted in real-time and always stay parallel to the channel, dynamically adapting to market structure.
Key features:
- Automatic detection of the optimal regression period: The script scans a wide range of lengths and selects the channel that statistically represents the strongest trend.
- Dynamic market profile: Visualizes the distribution of volume or price touches inside the trend channel, with customizable section count.
- Most active zones: Highlights the most traded or touched price levels as dynamic, parallel lines for precise support/resistance reading.
- Manual override: Optionally, users can select their own channel period for full control.
- Supports both linear and logarithmic charts: Simple toggle to match your chart scaling.
Use cases:
- Trend following and channel trading strategies.
- Quick identification of dynamic support/resistance and liquidity zones.
- Objective selection of the most statistically significant trend channel, without manual guesswork.
- Suitable for all assets and timeframes (crypto, stocks, forex, futures).
Originality:
This script goes beyond basic regression channels by integrating dynamic profile analysis and fully adaptive period detection, offering a comprehensive tool for modern technical analysts. The combination of trend detection, market profile, and activity zone mapping is unique and not available in TradingView built-ins.
Instructions:
Add Adaptive Market Profile to your chart. By default, the script automatically detects the optimal channel period and displays the corresponding regression channel with dynamic profile and activity zones. If you prefer manual control, disable “Auto trend channel period” and set your preferred period. Adjust profile settings as needed for your asset and timeframe.
For questions, suggestions, or further customization, contact Julien Eche (@Julien_Eche) directly on TradingView.