Buyside & Sellside Liquidity and FOMO & PANİK]We Added Advanced Features to LuxAlgo’s Buy-Side and Sell-Side Liquidity Indicator
Buy-Side and Sell-Side Liquidity (Liquidity Hunt) indicators are an important tool for understanding market maker manipulations and analyzing price movements in high-volume areas. This indicator from LuxAlgo allows users to better evaluate the market’s liquidity flow. However, we have made some strategic improvements and additions to further enhance the functionality of this powerful tool.
---
Features We Added to the Indicator
1. Liquidity Threshold and Analysis by Time Frames
The user can analyze liquidity movements in different time frames by determining short, medium and long-term periods.
Thanks to the Liquidity Threshold (%) parameter, long (buy) and short (sell) levels are determined according to price change rates.
Volume threshold controls are applied for each period and only high volume movements are taken into account.
2. Detection of Long and Short Liquidity Zones
Buy-Side (Long) Liquidity Zones: Long entry levels below the price are determined and reaction signals are created when the price reaches this level.
Sell-Side (Short) Liquidity Zones: Short entry levels above the price are determined and the levels are visualized on the chart.
These zones are used to detect market maker manipulations in places where liquidity traps may occur.
3. Coloring of High Volume Candles
With volume analysis, high volume candles are marked with different colors to observe the dynamics of price movements more clearly.
For example, candles exceeding volume threshold levels are highlighted with distinct colors such as white, yellow or blue.
4. Analysis of Wick and Volume-Based Long/Short Traps
Long trap and short trap traps are detected based on the length ratios of candle shadows (wick), ATR (Average True Range) and volume change.
These traps are clearly marked on the chart and supported by market psychology signals such as FOMO (fear of missing out) and Panic to the user.
5. Proximity to Liquidity Zones and Alarm Systems
We have added an algorithm that measures how close the price is to the specified liquidity zones. In this way:
Price movements that are less than 2% away from the upper liquidity zone are analyzed.
The same methodology is used for proximity to the middle liquidity zone and lower liquidity zone.
The user is warned when a long trap or short trap occurs with the alarm system.
---
FOMO and Panic Algorithm
These updates include additional parameters to analyze investor psychology:
FOMO (Fear of Missing Out):
A FOMO signal is generated when the RSI level is high, the price is near the upper or middle liquidity zones, and sudden price/volume increases are seen.
This signal allows the investor to avoid making unconscious purchases.
Panic:
A panic signal is triggered when the RSI level is low, the price is near the lower or middle liquidity zones, and sudden decreases are seen.
This is designed to prevent investors from selling hastily.
---
Benefits of the Developments
1. Prevention of Manipulations:
Price movements are analyzed according to liquidity zones, aiming to protect investors against market maker manipulations.
2. Stronger Strategy with Reaction Levels:
Visualization of long and short liquidity zones provides more reliable signals in trading strategies.
3. Understanding Psychological Barriers:
The impact of investor behavior on the market is better analyzed with FOMO and Panic signals.
4. Advanced Filtering Based on Volume and Volatility:
Volume and volatility analysis minimizes false signals.
---
Conclusion
With these updates, LuxAlgo’s original Buy-Side & Sell-Side Liquidity indicator has been made a more powerful tool. Users can make more informed trades by identifying important levels that market makers may target. Combining multiple variables such as volume, liquidity, RSI and psychological barriers, this system provides a more robust analysis, especially in the cryptocurrency market.
Hacim
VWEMA v2Volume Weighted Exponential Moving Average
Adding more weight to volume.
Adjust the 20/75 according to your preferred timeframe. It seems okay for the 1h chart.
Added alerts options.
Indicates volume spikes and drops.
Works best in tandem with both daily and weekly VWAPs, and Volume Profile.
6-Month VWAPTESTING TESTING!!!
This script calculates a 6-month rolling Volume Weighted Average Price (VWAP), offering traders a dynamic view of price trends based on recent market activity. The indicator updates continuously, recalculating VWAP using data from the past 6 months, providing an adaptable perspective as time progresses.
Key Features:
Time Range Setting: The script calculates the starting point for VWAP as 6 months before the current time.
Cumulative Calculation: It progressively accumulates volume and volume-weighted prices within the 6-month window.
Conditional Handling: If there is insufficient volume data, the VWAP will return na to prevent errors.
Chart Display: The final VWAP is displayed on the price chart as a blue line.
Volume Delta Filtered Overlay v1.1 by RamtraderbookVolume Delta Filtered Overlay v1.1 by Ramtraderbook
This indicator visually displays the volume delta directly on the price chart using colored circles. Its main goal is to highlight significant changes in the volume delta, categorizing them by direction and magnitude.
How It Works
1. Volume Delta Calculation
- Measures the difference between buying and selling volume on a lower time frame.
2. Threshold Filter
- Only displays data if the delta exceeds a minimum threshold set by the user.
3. Colors by Direction
- Bullish color: If the delta is positive (more buying).
- Bearish color: If the delta is negative (more selling).
4. Circle Placement
- Circles are placed above the candle for a positive delta and below the candle for a negative delta.
Customizable Inputs
- Delta Threshold: Defines the minimum delta value that will be plotted.
- Customizable Colors: Allows you to set different colors for positive and negative delta circles.
- **Lower Time Frame**: Scans data on a lower time frame for greater accuracy.
Important Note on Data
TradingView does not handle market depth data such as order book information. The volume delta calculation is an approximation based on the asset’s volume and price behavior. This means it does not precisely reflect the actual flow of buy or sell orders in the market, but rather an estimate derived from available data.
Conclusion
The **Volume Delta Filtered Overlay v1.1 by Ramtraderbook** is a visual tool that helps quickly identify significant buy or sell volume movements, making it ideal for strategies that rely on order flow analysis. However, it is recommended to combine it with other tools for a more comprehensive analysis.
Volume Delta Filtered v1.1 by RamtraderbookIndicator Explanation: Volume Delta_RTB (Filtered)
General Description
The Volume Delta_RTB (Filtered) indicator is designed to analyze the volume delta of a financial asset and highlight only significant changes based on a configured threshold. This indicator is useful for detecting moments when buying volume exceeds selling volume (or vice versa), providing a clear view of market pressure.
What is Volume Delta?
Volume delta measures the difference between buying and selling volume over a given time period. A positive delta indicates that buying prevails over selling, while a negative delta indicates the opposite.
Indicator Inputs
The indicator has several customizable parameters to suit the user’s needs:
1. Volume Delta Threshold
- Allows you to set a minimum volume delta value.
- Only indicator values that exceed this absolute delta threshold will be displayed.
- Default value: 100,000.
2. Use of a Lower Time Frame
- Option to analyze data from a lower time frame than the main chart.
Operating Logic
1. Selection of the Lower Time Frame
- The indicator scans data from a lower time frame to accurately calculate the volume delta.
- By default, it automatically selects an appropriate lower time frame, though it can be set manually.
2. Calculation of Volume Delta
- Using the `ta.requestVolumeDelta` function, the indicator calculates:
- Volume delta at the start of the period (`openVolume`).
- Maximum delta (`maxVolume`).
- Minimum delta (`minVolume`).
- Last recorded delta (`lastVolume`).
3. Filtering Values
- If the absolute value of `lastVolume` (the last volume delta) is below the configured threshold (`deltaThreshold`), the data will not be displayed on the chart.
- This allows the indicator to highlight only significant movements, avoiding unnecessary noise.
4. Visualization
- Volume delta is represented by candles to facilitate interpretation:
- Yellow candles for positive delta (buying prevails).
- Pink candles for negative delta (selling prevails).
- A horizontal line at `0` serves as a reference.
- Colors can be configured as needed.
5. Data Validation
- If the data provider does not provide volume information for the asset, the indicator will display an error message.
Indicator Advantages
- Efficient Filtering: Focus on the most relevant movements in terms of volume, ignoring small or insignificant values.
- Adaptable: Offers customization options for both the delta threshold and the time frame.
- Clear Visualization: Colored candles make it easier to spot dominant buying or selling trends.
NOTE:
- Estimated Delta Data: Since TradingView does not have access to market depth data or an exact breakdown of buying and selling volume, the delta calculations are approximations based on price and volume behavior.
- Data Provider Dependency: Some assets or instruments may not have volume information available, limiting the indicator’s use.
Volume Weighted Exponential Moving Average (VWEMA)Trying to add some features to VWMA.
Some low/high volume signals + alerts.
Average ATR & Average Volume TableProvides a comparison (above or below average) of the current Average True Range (ATR) with the ATR values from the previous 13 periods at the same point in time, offering insight into the average range over the past 13 sessions. Additionally, it includes the current trading volume alongside the average volume for the previous 13 periods during the same time frame offering insight into the average volume over the past 13 sessions.
SINAL EMA/RSI/VOL + EMA com TimeframeMédias Moveis 9,14,21,200
Sinais RSI sobrecomprado e sobrevendido
Sinal candle dobro de Volume
FTD & DD AnalyzerFTD & DD Analyzer
A comprehensive tool for identifying Follow-Through Days (FTDs) and Distribution Days (DDs) to analyze market conditions and potential trend changes, based on William J. O'Neil's proven methodology.
About the Methodology
This indicator implements the market analysis techniques developed by William J. O'Neil, founder of Investor's Business Daily and author of "How to Make Money in Stocks." O'Neil's research, spanning market data back to the 1880s, has successfully identified major market turns throughout history. His FTD and DD concepts remain crucial tools for institutional investors and serious traders.
Overview
This indicator helps traders identify two critical market conditions:
Distribution Days (DDs) - days of institutional selling pressure
Follow-Through Days (FTDs) - confirmation of potential market bottoms and new uptrends
The combination of these signals provides valuable insight into market health and potential trend changes.
Key Features
Distribution Day detection with customizable criteria
Follow-Through Day identification based on classical methodology
Market bottom detection using EMA analysis
Dynamic warning system for accumulated Distribution Days
Visual alerts with customizable labels
Advanced debug mode for detailed analysis
Flexible display options for different trading styles
Distribution Days Analysis
What is a Distribution Day?
A Distribution Day occurs when:
The price closes lower by a specified percentage (default -0.2%)
Volume is higher than the previous day
DD Settings
Price Threshold: Minimum price decline to qualify (default -0.2%)
Lookback Period: Number of days to analyze for DD accumulation (default 25)
Warning Levels:
First warning at 4 DDs
Severe warning (SOS - Sign of Strength) at 6 DDs
Display Options:
Show/hide DD count
Show/hide DD labels
Choose between showing all DDs or only within lookback period
Follow-Through Day Detection
What is a Follow-Through Day?
Following O'Neil's research, a Follow-Through Day confirms a potential market bottom when:
Occurs between day 4 and 13 after a bottom formation (optimal: days 4-7)
Shows significant price gain (default 1.5%)
Accompanied by higher volume than the previous day
Key Statistics:
FTDs followed by distribution on days 1-2 fail 95% of the time
Distribution on day 3 leads to 70% failure rate
Later distribution (days 4-5) shows only 30% failure rate
FTD Settings
Minimum Price Gain: Required percentage gain (default 1.5%)
Valid Window: Day 4 to Day 13 after bottom
Quality Rating:
🚀 for FTDs occurring within 7 days (historically most reliable)
⭐ for later FTDs
Market Bottom Detection
The indicator uses a sophisticated approach to identify potential market bottoms:
EMA Analysis:
Tracks 8 and 21-period EMAs
Monitors EMA alignment and momentum
Customizable tolerance levels
Price Action:
Looks for lower lows within specified lookback period
Confirms bottom with subsequent price action
Reset mechanism to prevent false signals
Visual Indicators
Label Types
📉 Distribution Days
⬇️ Market Bottoms
🚀/⭐ Follow-Through Days
⚠️ DD Warning Levels
Customization Options
Label size: Tiny, Small, Normal, Large
Label style: Default, Arrows, Triangles
Background colors for different signals
Dynamic positioning using ATR multiplier
Practical Usage
1. Monitor DD Accumulation:
Watch for increasing number of Distribution Days
Pay attention to warning levels (4 and 6 DDs)
Consider reducing exposure when warnings appear
2. Bottom Recognition:
Look for potential bottom formations
Monitor EMA alignment and price action
Wait for confirmation signals
3. FTD Confirmation:
Track days after potential bottom
Watch for strong price/volume action in valid window
Note FTD quality rating for additional context
Alert System
Built-in alerts for:
New Distribution Days
Follow-Through Day signals
High DD accumulation warnings
Tips for Best Results
Use multiple timeframes for confirmation
Combine with other market health indicators
Pay attention to sector rotation and market leadership
Monitor volume patterns for confirmation
Consider market context and external factors
Technical Notes
The indicator uses advanced array handling for DD tracking
Dynamic calculations ensure accurate signal generation
Debug mode available for detailed analysis
Optimized for real-time and historical analysis
Additional Information
Compatible with all markets and timeframes
Best suited for daily charts
Regular updates and maintenance
Based on O'Neil's time-tested market analysis principles
Conclusion
The FTD & DD Analyzer provides a systematic approach to market analysis, combining O'Neil's proven methodologies with modern technical analysis. It helps traders identify potential market turns while monitoring institutional participation through volume analysis.
Remember that no indicator is perfect - always use in conjunction with other analysis tools and proper risk management.
EMA Fib Strategy### Description of the **EMA Fib Strategy** Script
This Pine Script defines an **Exponential Moving Average (EMA) Fibonacci Strategy**, a technical analysis tool that incorporates EMAs and Fibonacci retracement levels for trend and trade analysis. Here's a breakdown of its components and functionality:
### **Core Components**
#### **1. Inputs for EMA Calculations**
- **Short EMA (`emaShort`)**: A fast-moving average with a default period of 9, used for quick trend detection.
- **Long EMA (`emaLong`)**: A slower-moving average with a default period of 20, used for broader trend identification.
- **Trend EMA (`emaTrend`)**: A long-term moving average with a default period of 50, used to determine the overall market trend.
#### **2. EMA Calculations**
- The script calculates the Exponential Moving Averages for the closing prices:
- `emaShortValue`: Short EMA value.
- `emaLongValue`: Long EMA value.
- `emaTrendValue`: Trend EMA value.
### **Fibonacci Retracement Levels**
- **Fib 50% (`fib50`)**: Represents a 50% retracement level, often used to identify potential support/resistance zones.
- **Fib 70% (`fib70`)**: Represents a 70% retracement level, another key zone for possible price reversals.
> Note: These levels are inputs and currently not calculated dynamically based on price extremes. Manual adjustments may be require
### **Entry Conditions**
- **Bullish Crossover (`bullishCrossover`)**:
- Occurs when the `emaShortValue` crosses above the `emaLongValue`, signaling a potential upward trend.
- **Bearish Crossover (`bearishCrossover`)**:
- Occurs when the `emaShortValue` crosses below the `emaLongValue`, signaling a potential downward trend.
### **Visualization**
1. **Plotting EMAs:**
- `Short EMA`: Blue line.
- `Long EMA`: Red line.
- `Trend EMA`: Green line.
- These lines provide a visual representation of the market's short-term, medium-term, and long-term trends.
2. **Background Highlights:**
- **Green (Transparent)**: Indicates a bullish crossover, where the short EMA crosses above the long EMA.
- **Red (Transparent)**: Indicates a bearish crossover, where the short EMA crosses below the long EMA.
### **Strategy Logic (Optional)**
If used as a trading strategy, the script can generate trade signals:
- **Buy Signal**: Triggered when a bullish crossover occurs.
- **Close Signal**: Triggered when a bearish crossover occurs.
To enable strategy functionality, uncomment the following lines:
```pinescript
strategy.entry("Buy", strategy.long, when=bullishCrossover)
strategy.close("Buy", when=bearishCrossover)
```
### **Use Cases**
- **Traders and Analysts**: Use this script to identify trends, potential reversals, and support/resistance zones.
- **Backtesting Strategies**: Analyze how the EMA crossovers align with historical price action.
- **Trade Confirmation**: Combine with other indicators or patterns to confirm trades.
**Limitations**
- **Static Fibonacci Levels**: These levels are not dynamically calculated. Users must manually adjust them based on current price swings.
- **Lags in Moving Averages**: Like all EMA-based strategies, there may be a lag in detecting rapid market changes.
- **Additional Filters Needed**: For practical use, other filters or conditions (like volume or RSI) may enhance the strategy.
Wyckoff Method with Volume, RSI, EMA & FibonacciWyckoff Method with Volume, RSI, EMA & Fibonacci
Description: This indicator is based on the Wyckoff Method, a technical analysis approach designed to identify phases of accumulation and distribution in the market. It combines volume analysis, RSI (Relative Strength Index), EMA (Exponential Moving Averages), and Fibonacci retracement levels to generate buy/sell signals and dynamically calculate take-profit (TP) and stop-loss (SL) levels.
Purpose: The indicator aims to:
1. Detect key phases in the Wyckoff Method, including:
o Preliminary Support (PS) - Initial signs of buying interest.
o Selling Climax (SC) - Panic selling absorbed by institutional investors.
o Automatic Rally (AR) - Rebound following the selling climax.
o Secondary Test (ST) - Testing supply absorption.
o Sign of Strength (SOS) - Confirmation of bullish momentum.
o Last Point of Support (LPS) - Final retest of support before trend continuation.
2. Provide entry signals (buy/sell) based on:
o EMA crossovers to determine bullish or bearish trends.
o RSI levels to detect overbought and oversold conditions.
o Fibonacci retracement levels (50% and 61.8%) to highlight potential reversal zones.
3. Offer risk management tools:
o Automatically calculate stop-loss (SL) based on a percentage risk input.
o Compute take-profit (TP) using a specified risk-reward ratio.
Features:
1. Volume Analysis:
o Uses a Volume Moving Average (VolMA) to identify spikes in trading activity, signaling market interest.
2. Dynamic Fibonacci Levels:
o Plots 50% and 61.8% retracement levels to assist in identifying areas of price reaction.
3. EMA Crossovers:
o Tracks trend direction using 50 EMA and 200 EMA for confirmation of bullish or bearish setups.
4. RSI Confluence:
o Identifies overbought (>70) and oversold (<30) zones for added signal confirmation.
5. Wyckoff Phase Markers:
o Marks critical points in the accumulation/distribution phases for visualization.
6. Dynamic SL and TP Levels:
o Visualizes risk-management levels directly on the chart for ease of interpretation.
How to Use the Indicator:
1. Buy Signals:
o Appear when the EMA crossover is bullish, RSI is oversold, and price is above the 61.8% Fibonacci retracement.
2. Sell Signals:
o Appear when the EMA crossover is bearish, RSI is overbought, and price is below the 50% Fibonacci retracement.
3. Risk Management:
o Adjust the Risk-Reward Ratio and Stop-Loss % in settings to suit your trading strategy.
o Review plotted SL/TP lines for placement before execution.
4. Confirm Phases:
o Monitor Wyckoff markers (PS, SC, AR, ST, SOS, LPS) to align signals with phases.
Limitations:
• The indicator should be used in conjunction with multi-timeframe analysis and fundamental research for greater accuracy.
• Signals may lag in extremely volatile markets; manual validation of patterns is recommended.
Best Practices:
1. Apply the indicator to higher timeframes for trends and lower timeframes for entries.
2. Use additional tools such as support/resistance levels, trendlines, and candlestick patterns for confirmation.
3. Adjust indicator inputs based on market conditions and asset volatility.
This indicator is a powerful tool for traders looking to identify Wyckoff patterns, incorporate technical confluence, and manage risk effectively.
Long and Short Signal ArrowsIndicator to Show entry points for Long or Short trades and potential exit points based on moving averages and VWAP
VPSA-VTDDear Sir/Madam,
I am pleased to present the next iteration of my indicator concept, which, in my opinion, serves as a highly useful tool for analyzing markets using the Volume Spread Analysis (VSA) method or the Wyckoff methodology.
The VPSA (Volume-Price Spread Analysis), the latest version in the family of scripts I’ve developed, appears to perform its task effectively. The combination of visualizing normalized data alongside their significance, achieved through the application of Z-Score standardization, proved to be a sound solution. Therefore, I decided to take it a step further and expand my project with a complementary approach to the existing one.
Theory
At the outset, I want to acknowledge that I’m aware of the existence of other probabilistic models used in financial markets, which may describe these phenomena more accurately. However, in line with Occam's Razor, I aimed to maintain simplicity in the analysis and interpretation of the concepts below. For this reason, I focused on describing the data using the Gaussian distribution.
The data I read from the chart — primarily the closing price, the high-low price difference (spread), and volume — exhibit cyclical patterns. These cycles are described by Wyckoff's methodology, while VSA complements and presents them from a different perspective. I will refrain from explaining these methods in depth due to their complexity and broad scope. What matters is that within these cycles, various events occur, described by candles or bars in distinct ways, characterized by different spreads and volumes. When observing the chart, I notice periods of lower volatility, often accompanied by lower volumes, as well as periods of high volatility and significant volumes. It’s important to find harmony within this apparent chaos. I think that chart interpretation cannot happen without considering the broader context, but the more variables I include in the analytical process, the more challenges arise. For instance, how can I determine if something is large (wide) or small (narrow)? For elements like volume or spread, my script provides a partial answer to this question. Now, let’s get to the point.
Technical Overview
The first technique I applied is Min-Max Normalization. With its help, the script adjusts volume and spread values to a range between 0 and 1. This allows for a comparable bar chart, where a wide bar represents volume, and a narrow one represents spread. Without normalization, visually comparing values that differ by several orders of magnitude would be inconvenient. If the indicator shows that one bar has a unit spread value while another has half that value, it means the first bar is twice as large. The ratio is preserved.
The second technique I used is Z-Score Standardization. This concept is based on the normal distribution, characterized by variables such as the mean and standard deviation, which measures data dispersion around the mean. The Z-Score indicates how many standard deviations a given value deviates from the population mean. The higher the Z-Score, the more the examined object deviates from the mean. If an object has a Z-Score of 3, it falls within 0.1% of the population, making it a rare occurrence or even an anomaly. In the context of chart analysis, such strong deviations are events like climaxes, which often signal the end of a trend, though not always. In my script, I assigned specific colors to frequently occurring Z-Score values:
Below 1 – Blue
Above 1 – Green
Above 2 – Red
Above 3 – Fuchsia
These colors are applied to both spread and volume, allowing for quick visual interpretation of data.
Volume Trend Detector (VTD)
The above forms the foundation of VPSA. However, I have extended the script with a Volume Trend Detector (VTD). The idea is that when I consider market structure - by market structure, I mean the overall chart, support and resistance levels, candles, and patterns typical of spread and volume analysis as well as Wyckoff patterns - I look for price ranges where there is a lack of supply, demand, or clues left behind by Smart Money or the market's enigmatic identity known as the Composite Man. This is essential because, as these clues and behaviors of market participants — expressed through the chart’s dynamics - reflect the actions, decisions, and emotions of all players. These behaviors can help interpret the bull-bear battle and estimate the probability of their next moves, which is one of the key factors for a trader relying on technical analysis to make a trade decision.
I enhanced the script with a Volume Trend Detector, which operates in two modes:
Step-by-Step Logic
The detector identifies expected volume dynamics. For instance, when looking for signs of a lack of bullish interest, I focus on setups with decreasing volatility and volume, particularly for bullish candles. These setups are referred to as No Demand patterns, according to Tom Williams' methodology.
Simple Moving Average (SMA)
The detector can also operate based on a simple moving average, helping to identify systematic trends in declining volume, indicating potential imbalances in market forces.
I’ve designed the program to allow the selection of candle types and volume characteristics to which the script will pay particular attention and notify me of specific market conditions.
Advantages and Disadvantages
Advantages:
Unified visualization of normalized spread and volume, saving time and improving efficiency.
The use of Z-Score as a consistent and repeatable relative mechanism for marking examined values.
The use of colors in visualization as a reference to Z-Score values.
The possibility to set up a continuous alert system that monitors the market in real time.
The use of EMA (Exponential Moving Average) as a moving average for Z-Score.
The goal of these features is to save my time, which is the only truly invaluable resource.
Disadvantages:
The assumption that the data follows a normal distribution, which may lead to inaccurate interpretations.
A fixed analysis period, which may not be perfectly suited to changing market conditions.
The use of EMA as a moving average for Z-Score, listed both as an advantage and a disadvantage depending on market context.
I have included comments within the code to explain the logic behind each part. For those who seek detailed mathematical formulas, I invite you to explore the code itself.
Defining Program Parameters:
Numerical Conditions:
VPSA Period for Analysis – The number of candles analyzed.
Normalized Spread Alert Threshold – The expected normalized spread value; defines how large or small the spread should be, with a range of 0-1.00.
Normalized Volume Alert Threshold – The expected normalized volume value; defines how large or small the volume should be, with a range of 0-1.00.
Spread Z-SCORE Alert Threshold – The Z-SCORE value for the spread; determines how much the spread deviates from the average, with a range of 0-4 (a higher value can be entered, but from a logical standpoint, exceeding 4 is unnecessary).
Volume Z-SCORE Alert Threshold – The Z-SCORE value for volume; determines how much the volume deviates from the average, with a range of 0-4 (the same logical note as above applies).
Logical Conditions:
Logical conditions describe whether the expected value should be less than or equal to or greater than or equal to the numerical condition.
All four parameters accept two possibilities and are analogous to the numerical conditions.
Volume Trend Detector:
Volume Trend Detector Period for Analysis – The analysis period, indicating the number of candles examined.
Method of Trend Determination – The method used to determine the trend. Possible values: Step by Step or SMA.
Trend Direction – The expected trend direction. Possible values: Upward or Downward.
Candle Type – The type of candle taken into account. Possible values: Bullish, Bearish, or Any.
The last available setting is the option to enable a joint alert for VPSA and VTD.
When enabled, VPSA will trigger on the last closed candle, regardless of the VTD analysis period.
Example Use Cases (Labels Visible in the Script Window Indicate Triggered Alerts):
The provided labels in the chart window mark where specific conditions were met and alerts were triggered.
Summary and Reflections
The program I present is a strong tool in the ongoing "game" with the Composite Man.
However, it requires familiarity and understanding of the underlying methodologies to fully utilize its potential.
Of course, like any technical analysis tool, it is not without flaws. There is no indicator that serves as a perfect Grail, accurately signaling Buy or Sell in every case.
I would like to thank those who have read through my thoughts to the end and are willing to take a closer look at my work by using this script.
If you encounter any errors or have suggestions for improvement, please feel free to contact me.
I wish you good health and accurately interpreted market structures, leading to successful trades!
CatTheTrader
Binance Perp Premium/DiscountThis TradingView Pine Script indicator calculates and displays the premium or discount percentage between a cryptocurrency's spot price and its corresponding perpetual futures (perp) price on Binance. It automatically detects whether the current chart symbol represents a spot or perp market by checking for the ".P" suffix. The script then retrieves the closing prices for both the spot and perp symbols using the request.security function. If valid data is available for both markets, it computes the premium or discount as a percentage and visualizes this difference as a histogram below the main chart. Green bars indicate a premium (perp price above spot), while red bars signify a discount (perp price below spot). The indicator includes error handling to display 'n/a' when data for the required symbols is unavailable, ensuring robustness across various chart applications.
Daily Volume Tracker with Percentage ComparisonThis script displays key daily volume metrics directly on your chart, helping traders analyze trading activity with ease. By default, it shows the Daily Volume, but additional metrics such as Yesterday's Volume, Average Volume, and Daily Volume % can be enabled as needed through input options.
Key Features:
Daily Volume: Displays the total volume traded so far for the current day.
Yesterday's Volume: Shows the total volume traded in the previous day (optional).
Average Volume: Displays the average daily volume over a customizable period (optional).
Daily Volume %: Calculates and displays the percentage of the current day's volume compared to the average daily volume (optional).
Customizable Display: Enable or disable metrics based on your preference.
Intraday Option: Choose to hide the table on timeframes ≥ 1D for a cleaner chart.
How to Use:
Add the script to your chart.
By default, only the Daily Volume % is shown.
Use the input options to enable additional metrics or customize the average calculation period.
This script is perfect for intraday and swing traders looking to gauge market participation and compare current volume trends against historical averages.
Volume 2x Average This script helps traders identify stocks or instruments experiencing unusually high trading volume compared to their average volume over a user-defined period. The key features include:
1. Volume 2x Average Filter:
Highlights bars where the current volume is greater than twice the average volume for the selected period.
2. Dynamic Average Period:
Allows users to specify the period for calculating the average volume (e.g., 1 day, 5 days, etc.).
3. Color-Coded Bars:
• Green Bars: Indicate bullish candlesticks where the closing price is higher than the
opening price.
• Red Bars: Indicate bearish candlesticks where the closing price is lower than the
opening price.
4. Optional Bar Visibility:
Users can toggle the visibility of the highlighted volume bars, providing flexibility for clean chart analysis.
5. Average Volume Line:
Plots the average volume as a blue line for reference.
Use Case:
This script is ideal for traders looking to identify potential breakouts, reversals, or key market movements driven by significant volume spikes. By dynamically adjusting the average period and toggling bar visibility, users can tailor the script to fit various trading strategies and timeframes.
Inputs:
1. Show 2x Volume Bars:
• Toggle to enable or disable the display of the highlighted volume bars.
2. Average Volume Period:
• Specify the number of periods (e.g., 1 for 1 day, 5 for 5 days) to calculate the average
volume.
Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Use it alongside your analysis and trading strategy.
BullBear with Volume-Percentile TP - Strategy [presentTrading] Happy New Year, everyone! I hope we have a fantastic year ahead.
It's been a while since I published an open script, but it's time to return.
This strategy introduces an indicator called Bull Bear Power, combined with an advanced take-profit system, which is the main innovative and educational aspect of this script. I hope all of you find some useful insights here. Welcome to engage in meaningful exchanges. This is a versatile tool suitable for both novice and experienced traders.
█ Introduction and How it is Different
Unlike traditional strategies that rely solely on price or volume indicators, this approach combines Bull Bear Power (BBP) with volume percentile analysis to identify optimal entry and exit points. It features a dynamic take-profit mechanism based on ATR (Average True Range) multipliers adjusted by volume and percentile factors, ensuring adaptability to diverse market conditions. This multifaceted strategy not only improves signal accuracy but also optimizes risk management, distinguishing it from conventional trading methods.
BTCUSD 6hr performance
Disable the visualization of Bull Bear Power (BBP) to clearly view the Z-Score.
█ Strategy, How it Works: Detailed Explanation
The BBP Strategy with Volume-Percentile TP utilizes several interconnected components to analyze market data and generate trading signals. Here's an overview with essential equations:
🔶 Core Indicators and Calculations
1. Exponential Moving Average (EMA):
- **Purpose:** Smoothens price data to identify trends.
- **Formula:**
EMA_t = (Close_t * (2 / (lengthInput + 1))) + (EMA_(t-1) * (1 - (2 / (lengthInput + 1))))
- Usage: Baseline for Bull and Bear Power.
2. Bull and Bear Power:
- Bull Power: `BullPower = High_t - EMA_t`
- Bear Power: `BearPower = Low_t - EMA_t`
- BBP:** `BBP = BullPower + BearPower`
- Interpretation: Positive BBP indicates bullish strength, negative indicates bearish.
3. Z-Score Calculation:
- Purpose: Normalizes BBP to assess deviation from the mean.
- Formula:
Z-Score = (BBP_t - bbp_mean) / bbp_std
- Components:
- `bbp_mean` = SMA of BBP over `zLength` periods.
- `bbp_std` = Standard deviation of BBP over `zLength` periods.
- Usage: Identifies overbought or oversold conditions based on thresholds.
🔶 Volume Analysis
1. Volume Moving Average (`vol_sma`):
vol_sma = (Volume_1 + Volume_2 + ... + Volume_vol_period) / vol_period
2. Volume Multiplier (`vol_mult`):
vol_mult = Current Volume / vol_sma
- Thresholds:
- High Volume: `vol_mult > 2.0`
- Medium Volume: `1.5 < vol_mult ≤ 2.0`
- Low Volume: `1.0 < vol_mult ≤ 1.5`
🔶 Percentile Analysis
1. Percentile Calculation (`calcPercentile`):
Percentile = (Number of values ≤ Current Value / perc_period) * 100
2. Thresholds:
- High Percentile: >90%
- Medium Percentile: >80%
- Low Percentile: >70%
🔶 Dynamic Take-Profit Mechanism
1. ATR-Based Targets:
TP1 Price = Entry Price ± (ATR * atrMult1 * TP_Factor)
TP2 Price = Entry Price ± (ATR * atrMult2 * TP_Factor)
TP3 Price = Entry Price ± (ATR * atrMult3 * TP_Factor)
- ATR Calculation:
ATR_t = (True Range_1 + True Range_2 + ... + True Range_baseAtrLength) / baseAtrLength
2. Adjustment Factors:
TP_Factor = (vol_score + price_score) / 2
- **vol_score** and **price_score** are based on current volume and price percentiles.
Local performance
🔶 Entry and Exit Logic
1. Long Entry: If Z-Score crosses above 1.618, then Enter Long.
2. Short Entry: If Z-Score crosses below -1.618, then Enter Short.
3. Exiting Positions:
If Long and Z-Score crosses below 0:
Exit Long
If Short and Z-Score crosses above 0:
Exit Short
4. Take-Profit Execution:
- Set multiple exit orders at dynamically calculated TP levels based on ATR and adjusted by `TP_Factor`.
█ Trade Direction
The strategy determines trade direction using the Z-Score from the BBP indicator:
- Long Positions:
- Condition: Z-Score crosses above 1.618.
- Short Positions:
- Condition: Z-Score crosses below -1.618.
- Exiting Trades:
- Long Exit: Z-Score drops below 0.
- Short Exit: Z-Score rises above 0.
This approach aligns trades with prevailing market trends, increasing the likelihood of successful outcomes.
█ Usage
Implementing the BBP Strategy with Volume-Percentile TP in TradingView involves:
1. Adding the Strategy:
- Copy the Pine Script code.
- Paste it into TradingView's Pine Editor.
- Save and apply the strategy to your chart.
2. Configuring Settings:
- Adjust parameters like EMA length, Z-Score thresholds, ATR multipliers, volume periods, and percentile settings to match your trading preferences and asset behavior.
3. Backtesting:
- Use TradingView’s backtesting tools to evaluate historical performance.
- Analyze metrics such as profit factor, drawdown, and win rate.
4. Optimization:
- Fine-tune parameters based on backtesting results.
- Test across different assets and timeframes to enhance adaptability.
5. Deployment:
- Apply the strategy in a live trading environment.
- Continuously monitor and adjust settings as market conditions change.
█ Default Settings
The BBP Strategy with Volume-Percentile TP includes default parameters designed for balanced performance across various markets. Understanding these settings and their impact is essential for optimizing strategy performance:
Bull Bear Power Settings:
- EMA Length (`lengthInput`): 21
- **Effect:** Balances sensitivity and trend identification; shorter lengths respond quicker but may generate false signals.
- Z-Score Length (`zLength`): 252
- **Effect:** Long period for stable mean and standard deviation, reducing false signals but less responsive to recent changes.
- Z-Score Threshold (`zThreshold`): 1.618
- **Effect:** Higher threshold filters out weaker signals, focusing on significant market moves.
Take Profit Settings:
- Use Take Profit (`useTP`): Enabled (`true`)
- **Effect:** Activates dynamic profit-taking, enhancing profitability and risk management.
- ATR Period (`baseAtrLength`): 20
- **Effect:** Shorter period for sensitive volatility measurement, allowing tighter profit targets.
- ATR Multipliers:
- **Effect:** Define conservative to aggressive profit targets based on volatility.
- Position Sizes:
- **Effect:** Diversifies profit-taking across multiple levels, balancing risk and reward.
Volume Analysis Settings:
- Volume MA Period (`vol_period`): 100
- **Effect:** Longer period for stable volume average, reducing the impact of short-term spikes.
- Volume Multipliers:
- **Effect:** Determines volume conditions affecting take-profit adjustments.
- Volume Factors:
- **Effect:** Adjusts ATR multipliers based on volume strength.
Percentile Analysis Settings:
- Percentile Period (`perc_period`): 100
- **Effect:** Balances historical context with responsiveness to recent data.
- Percentile Thresholds:
- **Effect:** Defines price and volume percentile levels influencing take-profit adjustments.
- Percentile Factors:
- **Effect:** Modulates ATR multipliers based on price percentile strength.
Impact on Performance:
- EMA Length: Shorter EMAs increase sensitivity but may cause more false signals; longer EMAs provide stability but react slower to market changes.
- Z-Score Parameters:*Longer Z-Score periods create more stable signals, while higher thresholds reduce trade frequency but increase signal reliability.
- ATR Multipliers and Position Sizes: Higher multipliers allow for larger profit targets with increased risk, while diversified position sizes help in securing profits at multiple levels.
- Volume and Percentile Settings: These adjustments ensure that take-profit targets adapt to current market conditions, enhancing flexibility and performance across different volatility environments.
- Commission and Slippage: Accurate settings prevent overestimation of profitability and ensure the strategy remains viable after accounting for trading costs.
Conclusion
The BBP Strategy with Volume-Percentile TP offers a robust framework by combining BBP indicators with volume and percentile analyses. Its dynamic take-profit mechanism, tailored through ATR adjustments, ensures that traders can effectively capture profits while managing risks in varying market conditions.
Trend Heuristics (+Signals)Trend Heuristics - Enhanced Rolling VWAP with Smart Signals
This indicator is an enhanced version of the Rolling VWAP (RVWAP) concept, originally based on PineCoders' ConditionalAverages library. It combines volume-weighted average price analysis with advanced signal detection for both sweeps and breakouts.
Core Features
1. Rolling VWAP System
- Implements a dynamic rolling VWAP that adapts to different timeframes
- Includes standard deviation bands for volatility measurement
- Offers flexible time period settings (fixed or auto-adjusting)
- Provides customizable visual elements including bands and fills
2. Dual Signal System
Sweep Signals
Detects high-probability reversal points with these conditions:
- Bullish Sweep:
- Opens above upper band
- Tests below upper band (low)
- Closes above upper band
- Shows stronger lower wick
- Closes above previous high
- Has favorable close position (upper 50% of candle)
- Bearish Sweep:
- Opens below lower band
- Tests above lower band (high)
- Closes below lower band
- Shows stronger upper wick
- Closes below previous low
- Has favorable close position (lower 50% of candle)
Breakout Signals
Identifies potential trend changes with these conditions:
- Bullish Breakout:
- Opens below VWAP
- Closes above upper band
- Indicates strong momentum shift upward
- Bearish Breakout:
- Opens above VWAP
- Closes below lower band
- Indicates strong momentum shift downward
Technical Details
Base Components
- Built upon PineCoders' ConditionalAverages library
- Incorporates custom alert system via CustomAlertLib
- Uses standard deviation for band calculations
Customization Options
- Adjustable standard deviation multiplier
- Flexible time period settings
- Independent controls for sweep and breakout signals
- Customizable visual elements (colors, sizes, positions)
- Custom alert message formatting
Use Cases
1. Trend Following:
- Use VWAP as dynamic support/resistance
- Monitor breakout signals for trend changes
2. Mean Reversion:
- Use sweep signals for counter-trend opportunities
- Standard deviation bands for range identification
3. Volume Analysis:
- VWAP provides volume-weighted price levels
- Helps identify significant price levels
Notes
- Best performed on liquid instruments with consistent volume
- Most effective on timeframes from 1hours to 4 hours and 1D, anything greater isn't very good
- Recommended to use in conjunction with other technical analysis tools
- Signals can be filtered based on higher timeframe trends
Credits
- Original Rolling VWAP concept by PineCoders
Distribution & Follow-Through Day MarkerMarks D or F on candles based on IBD rule.
Distribution day: The loss must be at least -0.2%; the volume is higher than prior trading day.
Follow through day: The gain must be at least 1.2%; the volume is higher than prior trading day.
Dashed DMI by Cryptos RocketThe Directional Movement Index (DMI) is a well-known indicator in technical analysis, created by J. Welles Wilder. It is designed to identify the strength of a trend in a given market, providing traders with insights into both the direction and momentum of price movements. This script is a custom implementation of the DMI that plots the ADX (Average Directional Index), +DI (Positive Directional Indicator), and -DI (Negative Directional Indicator).
Dashed DMI Key Features:
1. Directional Movement Indicators:
- The ADX line, shown in orange, helps determine the strength of the trend without indicating its direction. Values above 25 suggest a strong trend, while values below 20 indicate a weak trend.
- The +DI line, shown in green, measures the strength of upward movement in the price. It identifies if the market is experiencing a strong uptrend.
- The -DI line, shown in red, measures the strength of downward price movement. It signals when there is a strong downtrend.
2. Customizable Dashed Line:
- The script includes a customizable dashed line, which represents a critical level on the chart that traders can use as a reference. The dashed line is adjustable through the script’s settings, allowing the trader to set a desired level, color, style, and thickness. The default level is set to 30, a common threshold in trend-following systems, but users can change it according to their preferences.
- The dashed line’s transparency and visibility can be toggled using the input settings, making it adaptable to different trading strategies or visual preferences.
3. Alerts:
- The script provides customizable alert conditions based on the relationship between the ADX, +DI, and -DI lines with the dashed line. These alerts include:
- When ADX crosses above or below the dashed line, signaling a shift in trend strength.
- When +DI or -DI cross the dashed line, indicating a change in the trend's directionality (bullish or bearish).
- Alerts for crossovers (when one line crosses another) and crossunders (when one line falls below another), which provide key entry or exit signals for traders.
4. Customizable Visual Parameters:
- The script is designed with flexibility in mind. The user can modify the line styles, thickness, and colors. The ADX is plotted in orange with a thickness of 2, the +DI is plotted in green, and the -DI is plotted in red. These lines’ thicknesses can be customized, ensuring that they remain visible regardless of the timeframe or chart zoom level.
- The script also provides options to adjust the dashed line’s color and style (solid, dotted, or dashed), enabling a fully customized charting experience that suits individual preferences.
Understanding the Components of the DMI
1. ADX (Average Directional Index):
The ADX is a smoothed version of the difference between the +DI and -DI lines, used to measure the strength of a trend. It does not provide any directional indication but simply quantifies whether the trend is strong or weak.
- Strength Indicators: A rising ADX indicates a strengthening trend, while a falling ADX signals weakening trend strength. Traders often consider an ADX reading above 25 as an indication of a strong trend, either up or down, and readings below 20 as suggesting a lack of trend or a sideways market.
- The ADX is plotted in the script using an orange color, making it easy for traders to distinguish it from the directional lines.
2. +DI (Positive Directional Indicator):
The +DI line measures the strength of upward price movement. It rises when the market’s upward movement is stronger than its downward movement.
- A rising +DI is a signal that the market is moving in a bullish direction. When +DI crosses above the -DI, it can indicate the start of an uptrend.
- The +DI is plotted in green, representing bullish momentum.
3. -DI (Negative Directional Indicator):
The -DI line tracks the strength of downward price movement. It rises when the market’s downward movement is stronger than its upward movement.
- A rising -DI suggests bearish momentum, and when the -DI crosses above the +DI, it can signal the beginning of a downtrend.
- The -DI is plotted in red, symbolizing bearish momentum.
Customizable Inputs and Settings
This DMI script allows traders to adjust several parameters based on their preferences:
- ADX Smoothing (lensig): This setting controls the smoothing of the ADX line, with values ranging from 1 to 50. A larger smoothing value can help reduce noise in the ADX and make trends clearer, while a smaller value reacts more quickly to price changes.
- DI Length (len): This input controls the period used for calculating the +DI and -DI lines. A shorter period results in a more sensitive indicator, whereas a longer period produces smoother, more stable signals.
- Dashed Line Settings: Traders can choose to show or hide the dashed line and can adjust its level, color, thickness, and style. This customization allows traders to adapt the indicator to their specific strategies and charting preferences.
Alerts and Signals
With the alert conditions set up in the script, traders can receive notifications when critical events occur, such as:
- ADX Crossing Above/Below the Dashed Line: This is typically a signal of an emerging trend.
- +DI and -DI Crossovers and Crossunders: These are valuable signals for identifying potential entry and exit points in trending markets.
Conclusion
This custom DMI Pine Script provides traders with a powerful tool to analyze market trends in real-time. By visualizing the ADX, +DI, and -DI indicators with customizable inputs, this script enables traders to gauge the strength and direction of a trend and make informed decisions about their trading strategies. The ability to set alerts based on specific conditions adds another layer of automation, ensuring that traders never miss an important signal. The script’s flexibility allows it to be adapted for various trading styles and market conditions, making it an invaluable addition to any trader’s toolkit.