Outlier changes alertAn indicator that calculates click (price change), percentage change, and Z-score changes while displaying outliers based on defined ranges.
Outlier Detection:
Mark outliers (for price, percentage, Z-score) based on user-defined thresholds. For example, any price movement exceeding a certain Z-score or percentage change could be marked as an outlier and displayed on chart.
Indicator Overview:
1. Click (Price Change):
Calculate the absolute price change from one period to another (e.g., from the current closing price to the previous closing price).
2. Percentage Change:
Calculate the percentage price change over a specific period, showing how much the price has changed in relative terms compared to the previous price.
3. Z-Score:
Compute the Z-score to standardize the price change relative to its historical average and standard deviation. The Z-score helps in detecting whether a price movement is an outlier or falls within a normal range of volatility.
指标和策略
Hourly Separator + Opening LineThis indicator shows the vertical and horizontal opening lines for the hourly timeframe.
Also has options to choose a different opening time:
- 1 Hour
- 30 Min
- 15 Min
- 10 Min
- 5 Min
China's stock market Limit up / Limit downThe price limit system in China’s stock market is a regulatory measure implemented by the Chinese securities authorities to curb excessive speculation. It refers to the maximum allowable daily price fluctuation of a stock, which cannot exceed a certain percentage of the previous trading day's closing price. For regular stocks, the daily price movement limit is 10%. For stocks under special treatment (ST stocks), the maximum daily price movement is restricted to 5%. There is no price limit on the listing day of newly issued stocks or stocks undergoing a rights issue. This indicator highlights the K-lines (candlesticks) of stocks that have hit the upper or lower price limits with different background colors and lists the recent number of instances of limit-up and limit-down occurrences in a table format.
Custom Time Range HighlighterCustom Time Range Highlighter
This versatile indicator allows traders to highlight specific time ranges on their charts, accommodating users worldwide by supporting customizable UTC offsets. Traders can define two distinct time ranges, setting start and end hours in their local time zone.
A toggle option enables the display of highlights for today only , ensuring focus on current trading conditions.
Ideal for day traders and those following specific market sessions, this tool enhances visibility of active trading periods and aids in effective trade management.
Liquidity Zones [BigBeluga]This indicator is designed to detect liquidity zones on the chart by identifying significant pivot highs and lows filtered by volume strength. It plots these zones as boxes, highlighting areas where liquidity is likely to accumulate. The indicator also draws lines extending from these boxes, marking the levels where price may "grab" this liquidity. The size of these boxes can be dynamic, adjusting based on the volume size, offering a visual representation of market areas where traders might expect significant price reactions.
🔵 IDEA
The idea behind the Liquidity Zones indicator is to help traders identify key market levels where liquidity accumulates. Liquidity zones are areas where there are enough buy or sell orders that can potentially lead to significant price movements. By focusing on pivot points filtered by volume strength, the indicator aims to provide a clearer picture of where large players may have positioned their orders. This insight allows traders to anticipate potential market reactions, such as reversals or breakouts, when the price reaches these zones. The option for dynamic box height further refines the visualization, showing the extent of liquidity based on the volume's intensity.
🔵 KEY FEATURES & USAGE
◉ Volume-Filtered Pivot Highs and Lows:
The indicator scans for pivot highs and lows on the chart, filtering these points based on the volume strength setting (Low, Mid, High). This ensures that only the most significant liquidity zones, backed by notable trading volume, are highlighted. Traders can adjust the filter to focus on different levels of market activity, from small fluctuations to major volume spikes.
Low:
Mid:
High:
◉ Dynamic and Static Liquidity Zones:
Liquidity zones are plotted as boxes around pivot points, with an optional dynamic mode that adjusts the box height based on the normalized volume. This dynamic adjustment reflects the liquidity carried by the volume, making it easier to gauge the significance of each zone. In static mode, the boxes have a fixed height, providing a consistent visual reference for the zones.
◉ Color Intensity Based on Volume:
The indicator adjusts the color intensity of the liquidity zones based on the volume strength. Higher volume zones will be displayed with more intense colors, giving a visual cue to the strength of the liquidity present in that area. This makes it easier to differentiate between zones of varying importance at a glance, allowing traders to quickly identify where the market has the highest concentration of liquidity.
◉ Liquidity Grab Detection and Red Circles:
When the price interacts with a liquidity zone, the indicator detects whether liquidity has been "grabbed" at these levels. If the price moves into a zone and crosses a level, the box label changes to "Liquidity Grabbed," and the line marking the level becomes dashed.
Reversal Points:
The beginning of a trend:
Additionally marks these "liquidity grabs" with red circles, indicating both recent and past liquidity grabs. This feature helps traders identify areas where liquidity has been absorbed by the market, which may signal potential reversals or shifts in market direction.
◉ Dashboard Display:
A dashboard in the upper right corner of the chart provides an overview of the indicator's settings and status. It shows the number of plotted zones, as set in the input settings, and whether the dynamic mode is active. This quick reference helps traders stay informed about the indicator's configuration without needing to open the settings panel.
🔵 CUSTOMIZATION
Length & Zones Amount: Set the length for pivot detection and the maximum number of zones to be displayed on the chart. This allows you to control how many liquidity zones you want to monitor at any given time.
Volume Strength Filter: Adjust the filter to Low, Mid, or High to control the strength of volume required for a pivot to be considered a significant liquidity zone. Higher settings focus on zones with greater volume, indicating stronger liquidity.
Dynamic Distance Mode: Enable or disable the dynamic mode, which adjusts the box height based on the volume size. When dynamic mode is off, the boxes have a fixed height based on the ATR, offering a consistent visualization regardless of the volume size.
The Liquidity Zones indicator is a versatile tool for identifying areas of significant market activity, offering a clear view of where liquidity is likely to reside. By filtering these zones through volume strength and providing dynamic or static visualization options, it equips traders with insights into potential market reaction points, enhancing their ability to anticipate and respond to market movements. The varying color intensity based on volume further aids in quickly recognizing the most critical liquidity zones on the chart.
Info DisplayThis indicator can display the code, time period and current date of the selected commodity in real time in the upper right corner of the screen.
The display size of the 3 display fonts can be adjusted in the options.
Optimized Comprehensive Analysis Table# Enhanced Comprehensive Analysis Table
This advanced indicator provides a holistic view of market sentiment by analyzing multiple technical indicators simultaneously. It's designed to give traders a quick, at-a-glance summary of market conditions across various timeframes and analysis methods.
## Key Features:
- Analyzes 9 popular technical indicators
- Weighted voting system for overall market sentiment
- Customizable indicator weights
- Clear, color-coded table display
## Indicators Analyzed:
1. MACD (Moving Average Convergence Divergence)
2. RSI (Relative Strength Index)
3. Moving Averages (50, 100, 200-period)
4. Stochastic Oscillator
5. Parabolic SAR
6. MFI (Money Flow Index)
7. CCI (Commodity Channel Index)
8. OBV (On Balance Volume)
9. ADX (Average Directional Index)
## How It Works:
Each indicator's signal is calculated and classified as bullish, bearish, or neutral. These signals are then weighted according to user-defined inputs. The weighted votes are summed to determine an overall market sentiment.
## Interpretation:
- The table displays the state of each indicator and the overall market sentiment.
- Green indicates bullish conditions, red bearish, and yellow neutral.
- The "Overall State" row at the bottom provides a quick summary of the combined analysis.
## Customization:
Users can adjust the weight of each indicator to fine-tune the analysis according to their trading strategy or market conditions.
This indicator is ideal for traders who want a comprehensive overview of market conditions without having to monitor multiple indicators separately. It's particularly useful for confirming trade setups, identifying potential trend reversals, and managing risk.
Note: This indicator is meant to be used as part of a broader trading strategy. Always combine with other forms of analysis and proper risk management.
BTC Power of Law x Central Bank LiquidityThis indicator combines Bitcoin's long-term growth model (Power Law) with global central bank liquidity to help identify potential buy and sell signals.
How it works:
Power Law Oscillator: This part of the indicator tracks how far Bitcoin's current price is from its expected long-term growth, based on an exponential model. It helps you see when Bitcoin may be overbought (too expensive) or oversold (cheap) compared to its historical trend.
Central Bank Liquidity: This measures the amount of money injected into the financial system by major central banks (like the Fed or ECB). When more money is printed, asset prices, including Bitcoin, tend to rise. When liquidity dries up, prices often fall.
By combining these two factors, the indicator gives you a more accurate view of Bitcoin's price trends.
How to interpret:
Green Line : Bitcoin is undervalued compared to its long-term growth, and the liquidity environment is supportive. This is typically a buy signal.
Yellow Line: Bitcoin is trading near its expected value, or there's uncertainty due to mixed liquidity conditions. This is a hold signal.
Red Line: Bitcoin is overvalued, or liquidity is tightening. This is a potential sell signal.
Zones:
The background will turn green when Bitcoin is in a buy zone and red when it's in a sell zone, giving you easy-to-read visual cues.
Price Movement > Custom Points with Day of WeekThe code is a TradingView Pine Script indicator designed to track and visualize price movements in a financial market (like stocks or cryptocurrencies) based on a specific point threshold. Here’s a breakdown of its functionality:
Purpose of the Code:
Price Movement Calculation: It calculates the difference between the closing price and the opening price of each bar (or candle) to determine if the price has moved significantly.
Threshold Input: The user can set a threshold (e.g., 500 points) to determine what constitutes a significant movement.
Movement Conditions:
Positive Movement: If the price movement is greater than the threshold, it’s marked as a positive movement.
Negative Movement: If the price movement is less than the negative threshold (i.e., below -500 points), it’s marked as a negative movement.
Day of the Week Identification: The script identifies the day of the week for each bar (Monday through Sunday).
Visual Output:
It plots shapes (like labels) on the chart:
For positive movements, it shows "YES" in green, indicating the movement exceeded the threshold for that day.
For negative movements, it shows "YES" in red, indicating the movement fell below the negative threshold for that day.
Use Cases:
Traders: It helps traders quickly identify days where significant price movements occurred, allowing them to analyze trends and make informed trading decisions.
Market Analysis: The indicator can be used for backtesting strategies based on significant price movements.
Overall, this code serves as a visual tool for analyzing price volatility in a market based on user-defined thresholds and day-based observations. If you have any specific questions or need further clarification about any part of it, feel free to ask!
Higher Time Frame Strat [QuantVue]The Higher Time Frame Strat Indicator is a tool that helps traders visualize and analyze price action from a higher timeframe (HTF) on their current chart. It applies the Strat method, a trading strategy focused on identifying key price action setups by observing how current price bars relate to previous ones. This helps in understanding the market's structure and determining potential trading opportunities based on higher timeframe data.
Key Concepts:
Strat Basics:
Type 1 Bar (Inside Bar): The current bar's high is lower than the previous bar's high, and its low is higher than the previous bar's low. This signifies a consolidation, or indecision, as the price is contained within the previous bar's range.
Type 2 Bar (Directional Bar): The current bar either breaks above the previous bar's high (bullish) or stays above the previous bar's low (bearish), indicating a continuation in the price direction.
Type 3 Bar (Outside Bar): The current bar breaks both above the previous bar's high and below the previous bar's low, showing volatility and a potential reversal.
Higher Timeframe Visualization:
The indicator uses a user-defined higher timeframe (default: 1 hour) and plots the last three higher timeframe candles on the current chart.
Strat Classification:
When a new higher timeframe candle forms, the indicator draws a semi-transparent box around the candle's range (high to low), along with the Strat type label. This provides a visual cue to the trader about the structure of the newly formed candle and how it fits into the overall market movement.
The script classifies each higher timeframe candle as one of the Strat types (1, 2, or 3). Based on the relationship between the current candle and the previous candle's high/low, it assigns a label ("1", "2", or "3"), helping traders quickly identify the price action setup on the higher timeframe.
How to Use the Indicator:
Trend Continuation: Look for Type 2 bars, which indicate a continuation in the current trend. For example, a Type 2 up suggests the price is breaking above the previous high, potentially signaling further upward movement.
Reversals: Type 3 bars show increased volatility, where the price breaks both above and below the previous bar's range. This could indicate a reversal, so be prepared for a potential change in direction.
Consolidation: Inside bars (Type 1) signify a tightening range and can signal the beginning of a breakout once the price moves outside of the previous bar's high or low.
By combining these price action concepts with the visualization of higher timeframe data, traders can potentially get earlier entry and exits as a higher timeframe set up forms.
Demand and Supply Conditions with SignalsIntroduction:
This document outlines a trading strategy that utilizes price action analysis and color signals to make informed trading decisions. The strategy focuses on identifying demand and supply conditions, curve patterns, and generating signals based on historical price data. The colors associated with each condition and signal serve as visual indicators to assist in decision-making.
I. Strategy Overview:
Objective:
The objective of this trading strategy is to identify potential trading opportunities based on price action analysis and color signals.
Key Components:
Demand Condition: A green upward-facing triangle indicates a potential demand condition.
Supply Condition: A red downward-facing triangle indicates a potential supply condition.
Curve Pattern Condition: A blue upward-facing triangle indicates a potential curve pattern condition.
Signal Condition: A yellow upward-facing triangle indicates a potential buy signal.
II. Understanding the Colors:
* Green: Represents the demand condition, which suggests potential buying pressure in the market. A green upward-facing triangle is plotted on the chart when the demand condition is met at a specific candle or bar.
* Red: Represents the supply condition, which suggests potential selling pressure in the market. A red downward-facing triangle is plotted on the chart when the supply condition is met at a specific candle or bar.
* Blue: Represents the curve pattern condition, which suggests the presence of a specific pattern based on price action analysis. A blue upward-facing triangle is plotted on the chart when the curve pattern condition is met at a specific candle or bar.
* Yellow: Represents the signal condition, which is a combination of the demand condition and the curve pattern condition. A yellow upward-facing triangle is plotted on the chart when the signal condition is met at a specific candle or bar, indicating a potential buy signal.
III. Decision-Making Process:
* Demand and Supply Conditions: Identify potential buying opportunities when a green demand condition is present. Consider potential selling opportunities when a red supply condition is present. Use these conditions to assess the overall market sentiment and potential price reversals.
* Curve Patterns: Analyze the presence of blue curve pattern conditions to identify specific price patterns. These patterns can provide additional confirmation for potential trading decisions.
* Signal Condition: Pay attention to the yellow signal condition, which indicates a potential buy signal. Evaluate the overall market context and consider entering a buy position when the signal condition is met.
* Risk Management: Implement proper risk management techniques such as setting stop-loss orders and position sizing to protect against potential losses.
IV. Conclusion:
This trading strategy leverages price action analysis and color signals to identify potential trading opportunities. The colors associated with each condition and signal serve as visual aids to highlight specific points on the chart. It's important to thoroughly backtest and validate the strategy before applying it to real-world trading scenarios. Additionally, always consider market conditions, risk management, and individual trading preferences when making trading decisions.
Disclaimer: Trading involves risks, and this document does not guarantee profitable outcomes. Traders should exercise caution and perform their own due diligence before engaging in any trading activity.
Remember to continually review and adapt your trading strategy based on market conditions and personal experiences to enhance its effectiveness.
TechniTrend: Average VolatilityTechniTrend: Average Volatility
Description:
The "Average Volatility" indicator provides a comprehensive measure of market volatility by offering three different types of volatility calculations: High to Low, Body, and Shadows. The indicator allows users to apply various types of moving averages (SMA, EMA, SMMA, WMA, and VWMA) on these volatility measures, enabling a more flexible approach to trend analysis and volatility tracking.
Key Features:
Customizable Volatility Types:
High to Low: Measures the range between the highest and lowest prices in the selected period.
Body: Measures the absolute difference between the opening and closing prices of each candle (just the body of the candle).
Shadows: Measures the difference between the wicks (shadows) of the candle.
Flexible Moving Averages:
Choose from five different types of moving averages to apply on the calculated volatility:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
SMMA (RMA) (Smoothed Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume-Weighted Moving Average)
Custom Length:
Users can customize the period length for the moving averages through the Length input.
Visualization:
Three separate plots are displayed, each representing the average volatility of a different type:
Blue: High to Low volatility.
Green: Candle body volatility.
Red: Candle shadows volatility.
-------------------------------------------
This indicator offers a versatile and highly customizable tool for analyzing volatility across different components of price movement, and it can be adapted to different trading styles or market conditions.
The Strat Candle State Table (Two Symbols)The Strat Candle State Table (Two Symbols) – Multi-Timeframe Analysis
This advanced indicator is designed for traders who follow The Strat methodology, providing a quick, clear, and actionable view of candle states across two selected symbols and a chosen timeframe. It allows you to seamlessly integrate multi-symbol analysis into your trading, offering real-time insights into price action and market momentum based on **The Strat’s** powerful principles.
What It Does:
For each selected symbol, the indicator retrieves and analyzes the price data for three candles:
- Candle 1 (C1): The third candle from the current one.
- Candle 2 (C2): The candle directly before the current one (previous candle).
- Current Candle (CC): The live candle, which is still forming.
Using this information, it plots the Scenario 1 (Inside Bar), Scenario 2 (Directional), and **Scenario 3 (Outside Bar)** states for each candle, color-coding them to help you quickly assess market conditions and price action.
Strat Candle States:
- Scenario 1 (Inside Bar): The candle stays within the high and low of the previous candle (indicating consolidation or indecision).
- Scenario 2 (Directional)* The candle breaks either the high (2-up) or low (2-down) of the previous candle, indicating potential continuation in that direction.
- Scenario 3 (Outside Bar): The candle breaks both the high and low of the previous candle, signaling increased volatility and a potential reversal.
Customizable Color Scheme:
The default colors follow these settings (but can be changed to your preference):
- 1U (Inside and Up): Yellow (indicating an inside bar that closed higher).
- 1D (Inside and Down): Orange (indicating an inside bar that closed lower).
- 2U (Two Up): Green if the candle closes higher, Red if the candle closes lower (conflict).
- 2D (Two Down): Red if the candle closes lower, Green if the candle closes higher (conflict).
- 3U (Three Up): Lighter Purple.
- 3D (Three Down): Darker Purple/Magenta.
Each state is dynamically updated based on the actual price action and whether the candle closes above or below the open. Conflict candles (like a 2-up closing red or 2-down closing green) are highlighted, making it easier to spot potential reversals or weakness in the trend.
Timeframe Flexibility:
You can overlay this indicator on any chart regardless of the timeframe. The key is to select the timeframe you want the indicator to plot for when setting up. Whether you're working on a 5-minute chart, daily, or even weekly, the indicator will analyze the candles according to the selected timeframe, giving you the versatility to adapt it to various trading strategies.
Powerful Use Cases:
1. Multi-Symbol Analysis in Real-Time: The Strat Candle State Table displays the candle states for two symbols at once, helping you track multiple instruments without switching charts. This is extremely useful when monitoring correlated assets like SPY and QQQ, or sector-related pairs such as DIA and IWM
2. Seamless Top-Down View: By analyzing the three most recent candles (C1, C2, and the current candle), the indicator allows you to maintain a top-down perspective on price action, spotting setups early and tracking candle state changes across different symbols and timeframes.
3. Enhanced Conflict Detection: The background shading automatically adjusts for conflict candles, such as a 2-up that closes red or a 2-down that closes green. This provides a quick visual cue to warn you when the current trend may be weakening or reversing.
4. Trade Execution Precision: With this table providing constant feedback on price action and candle state, traders can more easily time their entries and exits, whether they are looking for reversals or continuations
5. Focus on Timeframe Continuity: Use this indicator to stay in alignment with The Strat's Timeframe Continuity, ensuring you are trading in the direction of the most aligned candles, across both symbols. This allows for more precise trade management and higher-probability setups.
6. Customizable to Your Strategy: Change the color coding and candle states to match your personal preferences or trading strategy, making this indicator adaptable to your specific needs.
Most Powerful Use Case – Simultaneous Break Detection:
The Strat Candle State Table shines in setups where simultaneous breaks are being monitored across multiple symbols. For example, if both symbols trigger a 2-up or 3-up at the same time, this confirms that momentum is flowing in the same direction for multiple instruments, giving you stronger trade conviction.
By seeing real-time data for two key symbols, you can ensure that you're catching simultaneous breaks, where multiple instruments are signaling the same move. This can be especially effective in index-based trading, where the strength or weakness of multiple sectors or assets must align for a higher probability of success
Previous Day High, Low, and Midpointshows yesterdays high low and midpoint elimainating the need to use the fib tool every day
E9 ASIA Session
*note: Upon updating the script the conversion from V4 to v5 has lost the weekend extended lines and now prints an asia session for each day. It is recommended (esp for crypto) to extend these lines across the weekend like in the chart example above.
The E9 Asia Session Indicator is a valuable tool for traders aiming to track and analyze the Asia trading session on financial charts. This indicator provides insights into price behavior during the Asia session, which is crucial for making informed trading decisions. Here's an overview of its key functionalities and uses:
1. Session Highs and Lows
Purpose:
The indicator calculates and plots the high and low of the Asia session.
It helps identify key levels of support and resistance established during this trading period.
Importance:
These levels can act as significant reference points for future price movements.
Price action that occurs near these levels often provides clues about potential breakouts or reversals.
2. Session Background Color
Purpose:
The indicator can shade the background of the chart during the Asia session.
Importance:
This visual cue helps quickly identify the session's timeframe, enhancing the trader’s ability to observe price behavior within this specific period.
It aids in distinguishing between different trading sessions and understanding their influence on price action.
3. Start of Session Marker
Purpose:
A visual marker (such as a circle) is plotted at the beginning of each Asia session.
Importance:
This marker helps traders visually pinpoint the start of the session, making it easier to analyze how the price reacts from the session's opening.
4. End of Session Marker
Purpose:
A marker is plotted at the end of the Asia session, indicating where the session closes.
Importance:
This marker is useful for tracking the end of the session and observing price behavior around this critical juncture.
It helps in analyzing whether the session's high or low gets revisited or broken in subsequent sessions.
Practical Uses:
Strategic Planning: Traders can use the plotted high and low levels to set their trading strategies, stop-loss orders, and profit targets.
Market Analysis: Understanding how price interacts with the Asia session’s high and low levels can provide insights into market sentiment and potential price movements.
By incorporating the E9 Asia Session Indicator into your trading toolkit, you can gain a deeper understanding of the Asia session's impact on price dynamics, enhancing your overall trading strategy and decision-making process.
Disclaimer: The information contained in this article does not constitute financial advice or a solicitation to buy or sell any securities. All investments involve risk, and past performance does not guarantee future results. Always evaluate your financial circumstances and investment objectives before making trading decisions.
Gaussian SWMA For LoopGaussian SWMA For Loop Indicator
The "Gaussian SWMA For Loop" is a sophisticated indicator designed to identify potential trading opportunities by combining a Gaussian-weighted moving average (WMA) with a simple moving average (SMA), enhanced by a loop-based scoring system. This indicator is tailored for traders looking to capture trends and reversals with a refined approach, making use of advanced filtering techniques and custom thresholds for signal generation.
Key Features:
1. Gaussian Weighted Moving Average (WMA):
The indicator starts by applying a Gaussian filter to the input price data (default is the closing price). The Gaussian filter smooths the data by applying weights according to a Gaussian distribution, determined by the Gaussian Sigma parameter. This results in a smooth, noise-reduced WMA, which is more responsive to significant price movements while ignoring minor fluctuations.
2. Simple Moving Average (SMA) on Smoothed Data:
After the data is smoothed using the Gaussian filter, an SMA is calculated over this smoothed data. The length of this SMA can be adjusted via the SMA Length input, allowing users to control the level of additional smoothing applied to the already filtered data.
3. Loop-Based Scoring System:
Range Analysis: The core feature of this indicator is the loop-based scoring system. It evaluates the filtered SMA by comparing its current value to previous values over a specified range, defined by the From and To parameters.
Score Calculation: The loop iterates through each value within the defined range and adjusts a score based on whether the current filtered SMA is higher or lower than its historical values. This score is a measure of the trend's strength and direction.
Thresholds for Signal Generation: Users can define custom thresholds for long (Long Threshold) and short (Short Threshold) signals. The score is compared against these thresholds to generate buy and sell signals.
4. Signal Generation:
Buy Signal (L): Triggered when the score exceeds the user-defined Long Threshold.
Sell Signal (S): Triggered when the score falls below the Short Threshold.
5. Visual Enhancements:
The indicator plots the filtered SMA on the chart, with the line and bar colors changing based on the buy and sell signals:
Teal (color.rgb(0, 255, 187)) for a buy signal.
Magenta (color.rgb(255, 0, 157)) for a sell signal.
Gray for a neutral condition.
Additionally, the fill between the current and previous SMA values is colored based on the signal, providing a clear visual cue for trend direction and strength.
6. Alert Conditions:
The indicator includes customizable alerts that notify the user when a buy or sell signal is generated:
Long Alert: Notifies when a buy signal is triggered.
Short Alert: Notifies when a sell signal is triggered.
Configurable Inputs:
Main Group:
WMA Length (length): Sets the length of the Gaussian-weighted moving average.
SMA Length (len): Specifies the period for the SMA applied to the Gaussian-smoothed data.
Source (src): The price data used for calculations (default is the closing price).
Gaussian Sigma (sigma): Determines the standard deviation of the Gaussian distribution, influencing the smoothing effect.
For Loop Group:
From (a): The starting point for the loop-based score analysis.
To (b): The endpoint for the loop-based score analysis.
Threshold Group:
Long Threshold (threshold_L): Defines the score threshold above which a buy signal is triggered.
Short Threshold (threshold_S): Defines the score threshold below which a sell signal is triggered.
Practical Use:
This indicator is ideal for traders who want to identify trends and potential reversals with precision. The combination of Gaussian smoothing, SMA, and the loop-based scoring system offers a robust method to filter out noise and focus on significant market moves. The customizable thresholds and alert system further enhance its utility, making it a powerful tool for both manual and automated trading strategies.
Note: As with any trading indicator, it's recommended to backtest the "Gaussian SWMA For Loop" under various market conditions and use it in conjunction with other analysis techniques to confirm signals before making trading decisions.
Options Series - Explode BB⭐ Bullish Zone:
⭐ Bearish Zone:
⭐ Neutral Zone:
The provided script integrates Bollinger Bands with different lengths (20 and 200 periods) and applies customized candle coloring based on certain conditions. Here's a breakdown of its importance and insights:
⭐ 1. Dual Bollinger Bands (BBs):
Bollinger Bands (BB) with 20-period length:
This is the standard setting for Bollinger Bands, with a 20-period simple moving average (SMA) as the central line and upper/lower bands derived from the standard deviation.
These bands are used to identify volatility. Wider bands indicate higher volatility, while narrower bands indicate low volatility.
200-period BB:
This is a longer-term indicator providing insight into the overall trend and long-term volatility.
The 200-period bands filter out noise and offer a "macro" view of price movements compared to the 20-period bands, which focus on short-term price actions.
⭐ 2. Overlay of Bollinger Bands and SMA:
The script plots the Bollinger Bands along with the SMA (Simple Moving Average) of the 200-period BB. This gives traders both a short-term (20-period) and long-term (200-period) perspective, which is valuable for detecting major trend shifts or key support and resistance zones.
Using multiple time frames (20-period for short-term and 200-period for long-term) can help traders spot both immediate opportunities and overarching trends.
⭐ 3. Candle Coloring Based on Key Conditions:
Bullish Signal (GreenFluroscent): When the price closes above the upper 200-period Bollinger Band, the candle turns green, indicating a potential bullish breakout.
Bearish Signal (RedFluroscent): If the price closes below the lower 200-period Bollinger Band, the candle turns red, suggesting a bearish breakout.
Neutral or Uncertain Market: Candles are gray when the price remains between the upper and lower bands, indicating a lack of a strong directional bias.
This color-coded visualization allows traders to quickly assess market sentiment based on the Bollinger Bands' extremes.
⭐ 4. Strategic Importance of the Setup:
Multi-timeframe Analysis: Combining short-term (20-period) and long-term (200-period) Bollinger Bands enables traders to assess the market's overall volatility and trend strength. The longer-term bands act as a reference for broader trend direction, while the shorter-term bands can signal shorter-term pullbacks or entry/exit points.
Breakout Identification: By color-coding the candles when prices cross either the upper or lower 200-period bands, the script makes it easier to spot potential breakouts. This can be particularly helpful in trading strategies that rely on volatility expansions or trend-following tactics.
⭐ 5. Customization and Flexibility:
Custom Colors: The script uses distinct fluorescent green and red colors to highlight key bullish and bearish conditions, providing clear visual cues.
Simplicity with Flexibility: Despite its simplicity, the script leaves room for customization, allowing traders to adjust the Bollinger Band multipliers or apply different conditions to candle coloring for more nuanced setups.
This script enhances standard Bollinger Band usage by introducing multi-timeframe analysis, breakout signals, and visual cues for trend strength, making it a powerful tool for both trend-following and mean-reversion strategies.
🚀 Conclusion:
This script effectively simplifies volatility analysis by visually marking bullish, bearish, and neutral zones, making it a robust tool for identifying trade opportunities across multiple timeframes. Its dual-band approach ensures both trend-following and mean-reversion strategies are supported.
GAP Momentum Oscillator
This function calculates GAP Momentum, a measure of momentum based on the gaps between opening and closing prices over several periods.
Gaps are calculated for defined periods (here, by default, 14 periods). It determines :
UpGaps: the sum of positive gaps, i.e. openings that are higher than the previous period's close.
DnGaps: the sum of negative gaps, i.e. openings below the previous period's close.
It then calculates the GAP Momentum as the ratio between the sum of the up gaps and the sum of the down gaps, multiplied by 100. If the total of the down gaps is zero, the ratio takes a default value of 1 to avoid division by zero.
Birdies [LuxAlgo]The Birdies indicator uses a unique technique to provide support/resistance curves based on a circle connecting the last swing high/low.
A specific, customizable part of this circle acts as a curve of interest, which can trigger visual breakout signals.
🔶 USAGE
The script projects a bird-like pattern when a valid Swing point is found. Multiple customization options are included.
🔹 Trend & Support/Resistance Tool
The color fill patterns and the wing boundaries can give insights into the current trend direction as well as serve as potential support/resistance areas.
In the example above, "Birdies" coincide with pullback and support/resistance zones.
🔹 Swing Length & Buffer
Besides the "Swing Length", with higher values returning longer-term Swing Levels, the script's behavior can be fine-tuned with filters ("Settings" - "Validation").
🔹 Validation
To minimize clutter, three filters are included:
Minimum X-Distance: The minimum amount of bars between subsequent Swings
Minimum Y-Distance: The minimum amount of bars between subsequent Swings
Buffer (Multiple of ATR)
The "Minimum X/Y-Distance" creates a zone where a new Swing is considered invalid. Only when the Swing is out of the zone, can it be considered valid.
In other words, in the example above, a Swing High can only be valid when enough bars/time have passed, and the difference between the last Swing and the previous is more than the ATR multiplied by the "Minimum Y-Distance" factor.
The "Buffer" creates a line above/below the "Birdy", derived from the measured ATR at the conception of the "Birdy" multiplied with a factor ("Buffer").
When the closing price crosses the "Birdy", it must also surpass this buffer line to produce a valid signal, lowering the risk of clutter as a result.
🔶 DETAILS
Birdies are derived from a circle that connects two Swing points. The left-wing curve originates from the most recent "Swing point" to the last value on the circle before crossing its midline. The mirror image of the left wing creates the right wing.
Enabling "Origine" will draw a line from the last Swing to the first.
🔹 Style
The publication includes a style setting with four options.
The first, "Birdy," shows a bird-like shape derived from a circle connecting the last Swing High and Swing Low.
The second option holds everything from the first option but connects both wingtips, providing potential horizontal levels of interest.
When setting "Birdy" to "None", the visual breakout signals will not defer from previous settings, but the focus is shifted towards the fill color, which can help detect potential trend shift.
A fourth setting, "Left Wing", will only show the left part of the "Birdy" pattern, removing the right part from the equation. This will change the visual breakout signals, providing alternative signals.
🔶 SETTINGS
Swing Length: The period used for swing detection, with higher values returning longer-term Swing Levels.
🔹 Validation
Minimum X-Distance: The minimum amount of bars between subsequent Swings
Minimum Y-Distance: The minimum amount of bars between subsequent Swings
Buffer (Multiple of ATR)
🔹 Style
Bullish Patterns: Enable / color
Bearish Patterns: Enable / color
Buffer Zone: Show / Color
Color Fill: Show color fill between two Birdies (if available)
Origine: Show the line between both Swing Points
🔹 Calculation
Calculated Bars: Allows the usage of fewer bars for performance/speed improvement
E9 MACD
The E9 MACD (Moving Average Convergence Divergence) indicator is a powerful tool used in technical analysis to help traders identify potential buy and sell signals based on price action. It is designed to provide clear visual cues and alerts for trading decisions. Here’s how it applies to price action and its key functionalities:
Key Features and Functionality
MACD Line and Signal Line:
MACD Line: Represents the difference between a fast and a slow moving average of the price. It helps in identifying the momentum of the price movement.
Signal Line: A smoothed average of the MACD Line, used to generate trading signals when the MACD Line crosses above or below it.
Histogram: The histogram shows the difference between the MACD Line and the Signal Line. It visually represents the strength of the trend, with positive values indicating bullish momentum and negative values indicating bearish momentum.
Trend Coloring:
Uptrend: When the MACD Line is above the Signal Line, the bars can be colored green to indicate a potential buying opportunity.
Downtrend: When the MACD Line is below the Signal Line, the bars can be colored red to signal a potential selling opportunity.
Timeframe Flexibility:
The E9 MACD can be adjusted to different timeframes, allowing traders to analyze short-term or long-term trends based on their trading strategy. This flexibility helps in tailoring the indicator’s analysis to different market conditions.
Visual Alerts and Highlights:
The indicator includes options to highlight price bars and background colors when significant crossovers occur, making it easier to spot key trading signals.
Circles can be plotted on the MACD Line to indicate cross events, enhancing visual clarity.
Customizable Appearance:
Traders can customize the appearance of the MACD Line, Signal Line, and Histogram, including color and line width, to suit their personal preferences and improve readability.
Alerts for Trading Signals:
The E9 MACD can generate alerts for crossovers of the MACD Line and Signal Line, helping traders stay informed of potential trading opportunities even when they are not actively monitoring the charts.
Application in Trading
The E9 MACD is particularly useful for:
Identifying potential entry and exit points based on the crossing of the MACD Line and Signal Line.
Gauging the strength of the current trend through the histogram.
Adjusting to different timeframes to align the indicator with various trading strategies, from day trading to long-term investing.
By providing clear visual indicators and alerts, the E9 MACD helps traders make more informed decisions and better understand the momentum and direction of price movements.
China's stock market volume ratio1. Introduction to Volume Ratio:
In China's stock market, the volume ratio is an indicator used to measure relative trading volume. It compares the average volume per minute after the market opens to the average volume per minute over the past five trading days.
2. Application of Volume Ratio:
When there is a sudden surge in volume, the volume ratio chart will show a sharp upward break, indicating an increase in trading volume (initial market movements can be disregarded). Conversely, when volume contracts, the volume ratio will move downward.
If the volume ratio is greater than 1, it indicates that the average trading volume per minute for the current day is higher than the average over the past five days, signifying increased trading activity.
If the volume ratio is less than 1, it means that today's trading volume is lower than the average of the past five days, indicating decreased trading activity.
3. Volume Ratio Calculation:
The formula for calculating the volume ratio is:
Volume Ratio=Current Total Volume/(Average Volume per Minute over the Last 5 Days * Accumulated Market Open Time (in minutes))
Essa's Indicator 2.0Essa's Indicator V2: Beginner's Guide
This custom TradingView indicator has been designed to help you identify key trading opportunities based on session highs/lows, volatility, and moving averages. Below is a breakdown of the main features:
1. Exponential Moving Averages (EMAs)
Fast EMA (Blue Line): Tracks the short-term market trend (default: 9-period EMA).
Slow EMA (Red Line): Tracks the longer-term market trend (default: 21-period EMA).
You can turn on/off the EMAs using the "Show EMAs" option in the settings.
EMAs help smooth out price action and give a clearer picture of trends. A crossover of the fast EMA above the slow EMA can signal an upward trend, while the reverse may indicate a downward trend.
2. Session Highs and Lows
The indicator tracks price highs and lows for three major trading sessions:
London Session (Red): Highlighted in red. Active between 08:00 and 17:00 (LDN timezone) or 03:00 and 12:00 (NY timezone).
New York Session (Blue): Highlighted in blue. Active between 12:00 and 21:00 (LDN timezone) or 07:00 and 16:00 (NY timezone).
Asia Session (Yellow): Highlighted in yellow. Active between 22:00 and 08:00 (LDN timezone) or 18:00 and 03:00 (NY timezone).
Highs and lows for each session are plotted on the chart as lines. Breakouts from these levels can signal important trading opportunities:
London High/Low: Red lines.
New York High/Low: Blue lines.
Asia High/Low: Yellow lines.
The background color also changes depending on the active session:
London: Light red background.
New York: Light blue background.
Asia: Light yellow background.
3. Breakout Alerts
You can set alerts when the price breaks above or below session highs/lows:
Break Above London High: Alert triggered when the price crosses the London session high.
Break Below London Low: Alert triggered when the price falls below the London session low.
Similar alerts exist for the New York and Asia sessions as well.
4. Volatility-Adjusted EMA
The EMAs in this indicator are adjusted based on volatility (ATR - Average True Range). This allows the EMAs to respond to market conditions more dynamically, giving you more accurate trend readings in volatile markets.
5. ZigZag Feature (Optional)
You can enable the ZigZag feature to help visualize the price action's highs and lows:
ZigZag Lines: Highlight major peaks and troughs in price movements, helping you spot trends more easily.
This is helpful for identifying reversals or trend continuations.
6. Fractal Markers
This indicator uses fractals to mark potential turning points in the market:
Green Triangles (Above the Price): Indicate up fractals (potential reversal points where the price could move upwards).
Red Triangles (Below the Price): Indicate down fractals (potential reversal points where the price could move downwards).
Fractals can be a helpful confirmation tool when identifying entry and exit points.
7. Custom Timezone Options
You can choose between London (LDN) and New York (NY) timezones in the settings to adapt the session times to your trading location. This ensures the session high/low markers are displayed correctly for your trading region.
By default, the New York (NY) timezone is enabled for FXCM charts in the UK.
For BTC charts, you will need to switch to the appropriate time zone manually.
Thanks
Essa
E9 Shark-32 PatternUnderstanding the Shark-32 Pattern and its Trading Applications
The Shark-32 Pattern is a bearish technical trading formation used to predict market reversals or trend continuations. It highlights a downward move followed by a corrective rally, signaling a potential resumption of the downtrend. Here’s a breakdown of how it works:
What is the Shark-32 Pattern?
The Shark-32 pattern is a five-wave structure typically observed in bearish markets:
Wave 0 to X: A significant price decline starts the pattern.
Wave X to A: A correction pushes the price slightly upward.
Wave A to B: The price drops again but doesn’t reach the initial low.
Wave B to C: A final sharp decline concludes the pattern.
Once Wave C is formed, it suggests that the market will continue to move downward, presenting a potential selling or shorting opportunity.
Using the Pattern in Trading
This pattern is valuable for traders seeking high-probability bearish setups. The goal is to capitalize on the continuation of a downtrend following the corrective rally (X to A). Identifying the Shark-32 pattern helps anticipate the next wave of selling pressure.
Trading Setup
Identify a Shark-32 pattern.
If the price closes above the pattern's high, buy at the open the next day.
If the price closes below the pattern's low, short at the open the next day.
Sell/cover when the price moves 7% in the direction of the breakout.
Close the trade for a loss if the price moves 7% in the opposite direction.
For example, in a bull market after an upward breakout from a Shark-32, the net gain was $69.55. The method won 56% of the time with 5,218 winning trades and an average gain of $714.07. Conversely, 44% of trades were losers, with an average loss of $747.33. The average holding period was 26 calendar days.
The gains and losses were closely aligned with the 7% threshold set for this test.
Key Target Levels
To enhance the strategy, use dotted projection lines as target levels:
Upper Target: Drawn above the high of the corrective rally (Wave A). If the price breaks above this line, it may signal further upward movement, indicating a potentially weaker downtrend.
Lower Target: Positioned below the low of Wave C, providing a target for bearish trades.
These lines help determine future price targets and assist in setting take-profit or stop-loss levels.
Trading the Breakout
Look for breakouts once the Shark-32 pattern is identified:
Upward Breakout: If the price closes above the green line (high from two bars ago), it indicates a potential reversal to the upside.
Downward Breakout: If the price breaks below the red line (low from two bars ago), it confirms the bearish continuation.
Breakouts allow traders to adjust their positions based on market shifts.
Trading Tips
Continuation: The Shark-32 pattern acts as a continuation 60% of the time, confirming the ongoing trend.
Breakout Confirmation: Wait for the price to close above or below the pattern’s key levels before entering a trade.
Trade with the Trend: Since the Shark-32 is a continuation pattern, expect the breakout to align with the inbound price trend.
Symmetry: Patterns with symmetry often perform better. For more insights, refer to detailed trading literature.
Half-Staff: The Shark-32 can form midway in a trend, similar to flags and pennants.
Shark-32: Trading Performance
Based on an analysis of 23,369 trades, the following performance metrics were observed:
Bull Market with Upward Breakout: The average net profit was $69.55. This method won 56% of the time, with winning trades averaging $714.07. Losing trades, which constituted 44% of the total, had an average loss of $747.33. The average holding period was 26 calendar days.
Bull Market with Downward Breakout: The average net loss was $(76.36). This method won 43% of the time, with winning trades averaging $753.56. Losing trades, which constituted 57% of the total, had an average loss of $706.32. The average holding period was 23 calendar days.
Bear Market with Upward Breakout: The average net loss was $(89.13). This method won 46% of the time, with winning trades averaging $710.77. Losing trades, which constituted 54% of the total, had an average loss of $756.97. The average holding period was 16 calendar days.
Bear Market with Downward Breakout: The average net profit was $65.17. This method won 52% of the time, with winning trades averaging $781.62. Losing trades, which constituted 48% of the total, had an average loss of $722.41. The average holding period was 13 calendar days.