EMA 9/21/150/200Fully customize 4 different EMA levels to your liking. EMA value is based on close source.
Indicators and strategies
Hidden Demand and Supply Histogram with ColorsColor Coding:
Green Bars: Represent hidden demand (buyers stepping in).
Red Bars: Represent hidden supply (sellers stepping in).
Gray Bars: Represent neutral conditions (no hidden demand or supply detected).
DCSessionStatsOHLC_v1.0DCSessionStatsOHLC_v1.0
© dc_77 | Pine Script™ v6 | Licensed under Mozilla Public License 2.0
This indicator overlays customizable session-based OHLC (Open, High, Low, Close) statistics on your TradingView chart. It tracks price action within user-defined sessions, calculates average manipulation and distribution levels based on historical data, and visually projects these levels with lines and labels. Additionally, it provides a session count table to monitor bullish and bearish sessions.
Key Features:
Session Customization: Define session time (e.g., "0000-1600") and time zone (e.g., UTC, America/New_York). Analyze up to 20 historical sessions.
Anchor Line: Displays a vertical line at session start with customizable style, color, and optional label.
Session Open Line: Plots a horizontal line at the session’s opening price with adjustable appearance and label.
Manipulation Levels: Calculates and projects average price extensions (high/low relative to open) for manipulative moves, shown as horizontal lines with labels.
Distribution Levels: Displays average price ranges (high/low beyond open) for distribution phases, with customizable lines and labels.
Visual Flexibility: Adjust line styles (solid, dashed, dotted), colors, widths, label sizes, and projection offsets (bars beyond session start).
Session Stats Table: Optional table showing counts of bullish (close > open) and bearish (close < open) sessions, with configurable position and size.
How It Works:
Tracks OHLC data within each session and identifies session start/end based on the specified time range.
Computes averages for manipulation (e.g., low below open in bullish sessions) and distribution (e.g., high above open) levels from past sessions.
Projects these levels forward as horizontal lines, extending them by a user-defined offset for easy reference.
Updates a table with real-time bullish/bearish session counts.
Use Case:
Ideal for traders analyzing intraday or custom session behavior, identifying key price levels, and gauging market sentiment over time.
Toggle individual elements on/off and fine-tune visuals to suit your trading style.
Volume Candles with Volume VerificationThe Volume Candle Verification is suppose to work like this, in the settings color 1 is high buying pressure, color 2 is low buying pressure, color 3 is equal, color 4 is high sellling pressure, color 5 is low selling pressure
Luma Signals - Demand IndexLuma Signals - Demand Index
The Luma Signals Demand Index measures the buying and selling pressure in the market by analyzing price movements and volume dynamics. It utilizes real-time market data to identify potential trends and reversals at an early stage.
Key Features:
✔ Identifies Market Phases – Detects demand imbalances caused by buying or selling pressure
✔ Smoothed Line for Better Analysis – Includes a smoothed line for improved trend confirmation
✔ Zero-Line as a Reference – Helps interpret trend shifts effectively
✔ Live Market Data – Based on real-time price and volume changes
👉 Designed for precise order flow analysis and better trading decisions.
LineReg Candles with Hma filterOverview
Purpose:
The indicator creates “LinReg Candles” by recalculating OHLC values using linear regression (to smooth out noise) and overlays additional features such as a customizable signal line and an HMA (Hull Moving Average) filter for trend detection. It also plots buy/sell signals and supports alerts.
Customization:
Users can adjust settings for signal smoothing (choosing SMA, EMA, or WMA), HMA periods (preset for Scalping/Intraday or custom values), linear regression length, colors, display options, and alert messages. Inputs are organized into groups for clarity.
Input Definitions
Signal Settings:
signal_length and smoothingType define the period and method used to smooth the close price, creating a signal line.
HMA Filter Settings:
A dropdown (t_type) lets you choose between Scalping, Intraday, or Custom. Based on this, three HMA periods (hma1, hma2, hma3) are set either to fixed values or user-defined custom inputs.
LinReg Settings:
Users can toggle linear regression for OHLC values (lin_reg) and set its period (linreg_length) to reduce price noise.
Color and Display Settings:
These control the colors for buy/sell candles, default bullish/bearish candles, markers, and background highlighting. Display toggles decide whether to show the background, signal line, HMA filter, and the recalculated candles.
Alert and Plot Customization:
Alerts can be enabled with custom messages. Additionally, line width and transparency for the plotted signal and HMA lines are adjustable.
Function Definitions
calcOHLC Function:
Computes OHLC values using linear regression if enabled. Otherwise, it returns the raw price values. This helps in reducing noise.
calcSignalLine Function:
Applies the chosen moving average (SMA, EMA, or WMA) to smooth the recalculated close values and generate a signal line.
getBaseCandleColor Function:
Determines the candle’s base color. It assigns buy/sell colors if specific crossover conditions are met; if not, it defaults to bullish (green) or bearish (red) based on the open/close relationship.
HMA Filter Calculations
HMA Computation:
The script calculates three HMAs (ma1, ma2, ma3) for different periods.
Trend Determination:
It sets a bullish condition (bcn) when ma3 is lower than both ma1 and ma2 with ma1 above ma2. Conversely, a bearish condition (scn) is set when ma3 is higher and the order of the HMAs indicates a downtrend.
Color Coding:
The HMA filter line color changes dynamically (green for bullish, red for bearish) based on these conditions.
Main Calculations
LinReg Candles:
Using the calcOHLC function, the script calculates the new open, high, low, and close values that reduce price noise.
Signal Line:
The signal line is computed on the basis of the smoothed close values using the selected moving average.
Buy/Sell Conditions:
Initial conditions are determined by checking if the recalculated close price crosses over (buy) or under (sell) the signal line.
The base candle color is then adjusted: if the HMA filter confirms the trend (bullish for buy or bearish for sell), the respective buy/sell colors are enforced.
A change in candle color compared to the previous bar triggers a buy or sell signal.
Plotting and Alerts
Visual Elements:
Background: Highlights the chart with a custom color when buy or sell conditions are met.
HMA Filter Line: Plotted (if enabled) with the dynamic color determined earlier.
Candles: The recalculated LinReg candles are drawn with colors based on the combined conditions.
Signal Line: Plotted over the candles with adjustable transparency and width.
Markers: Buy and sell markers are added to visually indicate signal points on the chart.
Alerts:
Alert conditions are set to trigger with predefined messages when a buy or sell signal is generated.
Modularity & Flexibility:
The code is structured with modular functions and clear grouping of inputs, making it highly customizable and user-friendly for open-source TradingView users.
Important how to track the real price on chart:
Locate the Chart Type Menu:
At the top of your TradingView chart, you’ll see a button showing the current chart type (likely a candlestick icon).
Select “Line” from the Dropdown:
Click that button and choose “Line” in the dropdown menu. This changes the main chart to a line chart of the real price.
Screenshots:
Liquidity Grab [crypticmaster]Test Strat Liquidity Grab by CrypticMaster.
How It Works
Liquidity Zones: The script identifies recent highs and lows using the ta.highest and ta.lowest functions.
Liquidity Grab Detection: It detects when price breaks a recent high/low and then reverses (closes below/above the high/low).
Confirmation: A simple moving average (SMA) crossover is used to confirm the reversal.
Signals: Buy/sell signals are generated when the conditions are met.
Heikin Ashi Option: You can toggle Heikin Ashi candles for smoother price action analysis.
RSI Overbought & Oversold Alert aesrsi overbought or oversold triggers
rsi overbought or oversold triggers
rsi overbought or oversold triggers
rsi overbought or oversold triggers
rsi overbought or oversold triggers
HMA 56 Price Below Scannerit look for a green HMA 56 period. If price is below the green HMA 56, the background will highlight blue.
RSI Deviation OscillatorThis Oscillator measures the %B of the RSI with a length of 14 Periods . This means: the current position of the RSI relative to its 20-period Simple Moving Average. Values above 1 are above the upper Bollinger Band (2 StdDev) and can be considered overbought, values below 0 are below the Lower Bollinger Band and can be considered oversold.
⚠️ Important info: ⚠️
Do not use the indicator on its own. No indicator is magic. Only use in confluence with other price action methods.
✅ Recommendations: ✅
Use the Indicator for Exits, not Entries.
Keep BB length at 20, or:
10 for quick info on where the price currently stands
50 for the bigger picture and less noise
Works best with:
Support & Resistance Levels
Bollinger Bands on the Chart
Combination with the Standard RSI
HH & HL Trend Change Signalsusing 30 minutes time frame use higher high and higher low strategy create a script when the trend change
Breakout Trend Follower freeFree for all users/for Trading bots/ ALWAYS DYOR before use
Strategy: Enter long when recent swing high breaks out, using recent swing low as stop level. Move stops up as higher lows print to act
as trailing stops. Ride trend as long as it is there and the higher lows aren't breached.
Conditions/Variables
1. Manually configure which dates to back test
2. Can add a filter to only take setups that are above (or below for shorts) user-defined moving average(s) (helps avoid trading counter trend)
3. Can ignore signals that are too extended and not consolidating enough based on ADR and/or RSI.
4. Color background of trades - helps to easily see at a glance if the strategy should be long or not.
// @HannSo1o TG
// @singoslab CIS Comunity in TG
DWMQY CPRBy Dalli Ravi Teja Reddy
This script implements the Central Pivot Range (CPR) for different timeframes, including Daily, Weekly, Monthly, Quarterly, and Yearly CPR levels. It is based on the methodology described at PivotBoss and helps traders identify key support and resistance zones for potential trading opportunities.
Features:
✅ Calculates CPR levels (Pivot, Top Central, and Bottom Central) for multiple timeframes
✅ Allows users to select how many historical CPR levels to display
✅ Supports intraday, daily, weekly, monthly, and yearly chart analysis
✅ Provides clear visual representation with color-coded pivot ranges
Usage:
The Pivot (PP) acts as a reference point for price movement
The Top Central (TC) and Bottom Central (BC) define the trading range
A narrow CPR may indicate potential breakout zones
A wide CPR suggests consolidation or range-bound movements
This indicator is ideal for traders looking to analyze price action across different timeframes using CPR as a guiding tool. 🚀
Combined EMA Score & Moving Averages Indicatorfinal ema score calculation with moving avg Combined EMA Score & Moving Averages IndicatorCombined EMA Score & Moving Averages IndicatorCombined EMA Score & Moving Averages IndicatorCombined EMA Score & Moving Averages IndicatorCombined EMA Score & Moving Averages IndicatorCombined EMA Score & Moving Averages Indicator
SuperTrend + Relative Volume (Kernel Optimized)Introducing our new KDE Optimized Supertrend + Relative Volume Indicator!
This innovative indicator combines the power of the Supertrend indicator along with Relative Volume. It utilizes the Kernel Density Estimation (KDE) to estimate the probability of a candlestick marking a significant trend break or reversal.
❓How to Interpret the KDE %:
The KDE % is a crucial metric that reflects the likelihood that the current candlestick represents a true break in the SuperTrend line, supported by an increase in relative volume. It estimates the probability of a trend shift or continuation based on historical SuperTrend breaks and volume patterns:
Low KDE %: A lower probability that the current break is significant. Price action is less likely to reverse, and the trend may continue.
Moderate KDE - High KDE %: An increased possibility that a trend reversal or consolidation could occur. Traders should start watching for confirmation signals.
📌How Does It Work?
The SuperTrend indicator uses the Average True Range (ATR) to determine the direction of the trend and identifies when the price crosses the SuperTrend line, signaling a potential trend reversal. Here's how the KDE Optimized SuperTrend Indicator works:
SuperTrend Calculation: The SuperTrend indicator is calculated, and when the price breaks above (bullish) or below (bearish) the SuperTrend line, it is logged as a significant event.
Relative Volume: For each break in the SuperTrend line, we calculate the relative volume (current volume vs. the average volume over a defined period). High relative volume can suggest stronger confirmation of the trend break.
KDE Array Calculation: KDE is applied to the break points and relative volume data:
Define the KDE options: Bandwidth, Number of Steps, and Array Range (Array Max - Array Min).
Create a density range array using the defined number of steps, corresponding to potential break points.
Apply a Gaussian kernel function to the break points and volume data to estimate the likelihood of the trend break being significant.
KDE Value and Signal Generation: The KDE array is updated as each break occurs. The KDE % is calculated for the breakout candlestick, representing the likelihood of the trend break being significant. If the KDE value exceeds the defined activation threshold, a darker bullish or bearish arrow is plotted after bar confirmation. If the KDE value falls below the threshold, a more transparent arrow is drawn, indicating a possible but lower probability break.
⚙️Settings:
SuperTrend Settings:
ATR Length: The period over which the Average True Range (ATR) is calculated.
Multiplier: The multiplier applied to the ATR to determine the SuperTrend threshold.
KDE Settings:
Bandwidth: Determines the smoothness of the KDE function and the width of the influence of each break point.
Number of Bins (Steps): Defines the precision of the KDE algorithm, with higher values offering more detailed calculations.
KDE Threshold %: The level at which relative volume is considered significant for confirming a break.
Relative Volume Length: The number of historic candles used in calculating KDE %
WIG20 Total Value-Weighted VolumeThis Pine Script creates a custom indicator for TradingView that calculates and visualizes the total "value-weighted volume" of the 20 stocks in the WIG20 index (a major Polish stock market index). Here's a breakdown of what it does:
Functionality:
Stock Selection:
The script allows you to input the ticker symbols for the 20 stocks that make up the WIG20 index (e.g., "PKO" for PKO Bank Polski, "PKN" for PKN Orlen, etc.). These are customizable via input fields, so you can adjust them to match the current WIG20 constituents.
Data Retrieval:
For each of the 20 stocks, it fetches two pieces of data from the current chart timeframe (e.g., daily, hourly):
Volume: The number of shares traded (e.g., v01 for the first stock).
Average Price: The midpoint price of the candle, calculated as (open + close) / 2 (e.g., p01 for the first stock). This represents a typical price for that period.
Value-Weighted Volume Calculation:
For each stock, it multiplies the volume by its average price (e.g., vw01 = v01 * p01). This converts the raw volume (in shares) into a monetary value (e.g., in Polish złoty, PLN, assuming the prices are in PLN).
The result, called "value-weighted volume," reflects the total monetary amount traded for each stock rather than just the number of shares.
Total Value-Weighted Volume:
It sums the value-weighted volumes of all 20 stocks into a single value, totalValueVolume. This represents the combined monetary trading activity across the WIG20 index for each time period (e.g., each candle on the chart).
Statistical Analysis:
The script calculates a rolling mean and standard deviation of the totalValueVolume over a user-defined lookback period (default is 20 bars, adjustable via input).
It then computes a "3-sigma" threshold, which is the mean plus three times the standard deviation. This threshold identifies unusually high trading activity (statistically significant outliers).
Candle Direction:
It checks whether the current candle on the chart (e.g., the WIG20 index itself) is bullish or bearish:
Bullish: If the close price is higher than the open price (close > open).
Bearish: If the close price is lower than the open price (close < open).
Color-Coded Visualization:
The totalValueVolume is plotted as a histogram on the chart with dynamic colors:
Blue: If the value-weighted volume is below the 3-sigma threshold (normal trading activity).
Green: If the value-weighted volume exceeds the 3-sigma threshold and the candle is bullish (indicating unusually high buying activity).
Red: If the value-weighted volume exceeds the 3-sigma threshold and the candle is bearish (indicating unusually high selling activity).
Purpose:
What It Shows: The indicator highlights the total monetary trading volume across the WIG20 stocks, adjusted for each stock’s price, and flags periods of exceptional activity (above 3 sigma) with colors that indicate market direction (bullish or bearish).
Use Case: Traders or analysts might use this to:
Identify significant market events where trading volume spikes (e.g., news-driven moves).
Assess whether those spikes align with bullish (green) or bearish (red) sentiment, based on the WIG20 index’s price movement.
Compare monetary trading activity across different periods, rather than just share volume, which gives more weight to higher-priced stocks.
Key Features:
Customizable: You can tweak the stock symbols and lookback period to fit your needs.
Statistical Insight: The 3-sigma rule helps spot outliers in trading activity.
Visual Clarity: The histogram’s color changes make it easy to see when volume spikes occur and whether they’re tied to upward or downward price moves.
Example Output:
On a daily WIG20 chart, if one day’s total value-weighted volume is exceptionally high (above 3 sigma) and the WIG20 closes higher than it opened, the histogram bar for that day turns green. If it closes lower, it turns red. Otherwise, it stays blue.
In essence, this script transforms raw volume data into a price-adjusted, statistically informed indicator that visually emphasizes significant trading events with directional context!
G-VIDYA | QuantEdgeBIntroducing G-VIDYA by QuantEdgeB
____
🔹 Overview
The G-VIDYA | QuantEdgeB is a dynamic trend-following indicator that enhances market trend detection using Gaussian smoothing and an adaptive Variable Index Dynamic Average (VIDYA). It is designed to reduce noise, improve responsiveness, and adapt to volatility, making it a powerful tool for traders looking to capture long-term trends efficiently.
By integrating ATR-based filtering, the indicator creates a dynamic support and resistance band around VIDYA, allowing for more accurate trend confirmations. Additionally, traders have the option to enable trade labels for clearer visual signals.
This indicator is well-suited for medium to long-term trend traders, combining mathematical precision with market adaptability for robust trading strategies.
_____
🚀 Key Features
1. Gaussian Smoothing → Reduces market noise and smoothens price action.
2. VIDYA Adaptive Calculation → Adjusts dynamically based on market volatility.
3. ATR-Based Filtering → Creates a volatility-driven range around VIDYA.
4. Dynamic Trend Confirmation → Identifies bullish and bearish momentum shifts.
5. Trade Labels (Optional) → Can display Long/Cash labels on chart for better clarity.
6. Customizable Color Modes → Offers multiple visual themes for personalized experience.
7. Automated Alerts → Sends buy/sell alerts for crossover trend changes.
_____
📊 How It Works
1. Gaussian Smoothing is applied to the closing price to remove noise and improve signal clarity.
2. VIDYA Calculation dynamically adjusts to price movements, making it more reactive during high-volatility periods and stable in low-volatility environments.
3. ATR-Based Filtering establishes a dynamic range (Upper & Lower ATR Bands) around VIDYA:
- If price breaks above the upper ATR band, it signals a potential long trend.
- If price breaks below the lower ATR band, it signals a potential short trend.
4. The indicator assigns color-coded candles based on trend direction:
- Bullish Trend → Blue/Green (Uptrend)
- Bearish Trend → Red/Maroon (Downtrend)
5. Labels & Alerts (Optional)
- Users can activate Long/Cash labels to mark buy/sell opportunities.
- Built-in alerts trigger automatic notifications when trend direction changes.
_____
🎨 Visual Representation
- VIDYA Line → A smooth, trend-following line that dynamically adjusts to market conditions.
- Upper & Lower ATR Bands → Establishes a volatility-based corridor around VIDYA.
- Bar Coloring → Candles change color according to the detected trend.
- Long/Short Labels (Optional) → Displays trade entry/exit signals (can be enabled/disabled).
- Alerts → Generates trade notifications based on trend reversals.
______
⚙️ Default Settings
- Gaussian Smoothing
- Length: 4
- Sigma: 2.0
- VIDYA Settings
- VIDYA Length: 46
- Standard Deviation Length: 28
- ATR Settings
- ATR Length: 14
- ATR Multiplier: 1.3
____
💡 Who Should Use It?
✅ Trend Traders → Those who rely on medium-to-long-term trends for trading decisions.
✅ Swing Traders → Ideal for traders who want to capture trend reversals and ride momentum.
✅ Quantitative Analysts → Provides statistically driven smoothing and adaptive trend detection.
✅ Risk-Averse Traders → ATR filtering helps manage market volatility effectively.
_____
Conclusion
The G-VIDYA | QuantEdgeB is an advanced trend-following indicator that combines Gaussian smoothing, adaptive VIDYA filtering, and ATR-based dynamic trend analysis to deliver robust and reliable trade signals.
✅ Key Takeaways
📌 Adaptive & Dynamic: Adjusts to market conditions, making it effective for trend-following strategies.
📌 Noise Reduction: Gaussian smoothing helps filter out short-term fluctuations, improving signal clarity.
📌 Volatility Awareness: ATR-based filtering ensures better handling of market swings and trend reversals.
By blending mathematical precision and quantitative market analysis, G-VIDYA | QuantEdgeB offers a powerful edge in trend trading strategies.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
BigFoot v1I used Price Action and Breakout to write this indicator, based on how it works:
- When the price runs sufficiently, a price frame (sideway) will be formed.
- To determine cumulative or distributed sideway prices based on volume and calculate buy (green dot) and short (red dot) signals.
- Works best in h1 frame and with Gold, BTC (other financial products not verified)
I am supporting this indicator for free. If you use it well, please support me with the ref link below bingx.com
Thank you very much
VIDYA For-Loop | QuantEdgeB Introducing VIDYA For-Loop by QuantEdgeB
Overview
The VIDYA For-Loop indicator by QuantEdgeB is a dynamic trend-following tool that leverages Variable Index Dynamic Average (VIDYA) along with a rolling loop function to assess trend strength and direction. By utilizing adaptive smoothing and a recursive loop for threshold evaluation, this indicator provides a more responsive and robust signal framework for traders.
______
Key Components & Features
📌 VIDYA (Variable Index Dynamic Average)
- Adaptive Moving Average that adjusts its responsiveness based on market volatility.
- Uses a dynamic smoothing constant based on standard deviations.
- Allows for better trend detection compared to static moving averages.
📌 Loop Function (Rolling Calculation)
- A for-loop algorithm continuously compares VIDYA values over a defined lookback range.
- Measures the number of times price trends higher or lower within the rolling window.
- Generates a momentum-based score that helps quantify trend persistence.
📌 Trend Signal Calculation
- A long signal is triggered when the loop score exceeds the upper threshold.
- A short signal is triggered when the loop score falls below the lower threshold.
- The result is a clear directional bias that adapts to changing market conditions.
______
How It Works in Trading
✅ Detects Trend Strength – By measuring cumulative movements within a window.
✅ Filters Noise – Uses adaptive smoothing to avoid whipsaws.
✅ Dynamic Thresholds – Enables customized entry & exit conditions.
✅ Color-Coded Candles – Provides visual clarity for traders.
______
Visual Representation
Trend Signals:
🔵 Blue Candles – Strong Uptrend
🔴 Red Candles – Strong Downtrend
Thresholds:
📈 Long Threshold – Upper bound for bullish confirmation.
📉 Short Threshold – Lower bound for bearish confirmation.
Labels & Annotations (Optional):
✅ Long & Short Labels can be turned on or off for trade signal clarity.
📊 Display of entry & exit points based on loop calculations.
______
Settings:
VIDYA Length: 2 → Number of bars for VIDYA calculation.
SD Length: 5 → Standard deviation length for VIDYA calculation.
Source: Close → Defines the input data source (Close price).
Start Loop: 1 → Initial lookback period for the loop function.
End Loop: 60 → Maximum lookback range for trend scoring.
Long Threshold: 40 → Upper bound for a long signal.
Short Threshold: 10 → Lower bound for a short signal.
Extra Plots: True → Enables additional moving averages for visualization.
______
Conclusion
The VIDYA For-Loop by QuantEdgeB is a next-gen adaptive trend filter that combines dynamic smoothing with recursive trend evaluation, making it an invaluable tool for traders seeking precision and consistency in their strategies.
🔹 Who should use VIDYA For Loop :
📊 Trend-Following Traders – Helps identify sustained trends.
⚡ Momentum Traders – Captures strong price swings.
🚀 Algorithmic & Systematic Trading – Ideal for automated entries & exits.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.