Risk Contract Table by Soothing TradesDescription:
Risk Contract Table by Soothing Trades
This script provides an intuitive table that displays the calculated risk in dollars for various contract sizes based on the size of the last closed candle.
It is designed to help traders quickly assess their risk exposure based on the most recent price movement.
Key Features:
Automatic and Manual Tick Value Calculation: Automatically fetches the tick value for your instrument.
You can also override it with a manual input using a convenient checkbox.
Customizable Contract Sizes: Easily input your preferred contract sizes.
The script dynamically adjusts the table headers and risk calculations based on your inputs.
Real-Time Updates:
The table updates with each new candle close, ensuring that your risk calculations are always based on the latest candle size.
User-Friendly Display: The table is displayed directly on your chart with customizable colors for both text and background, making it easy to match your chart’s theme.
How to Use:
Tick Value: By default, the script uses the automatic tick value.
To manually set the tick value, check the "Use Manual Tick Value" box and enter your desired value.
Contract Sizes: You can input the number of contracts for each category (5ct, 10ct, 15ct, 17ct). The script calculates and displays the risk for each contract size based on the tick movement of the last closed candle only.
Real-Time Calculations: Risk calculations are updated only after the candle is closed, so there are no misleading values during live market activity.
Customization Options:
Manual Tick Value Override: Use a custom tick value by enabling the "Use Manual Tick Value" option.
Custom Contract Sizes: Input your desired contract sizes, and the table headers and risk calculations will update accordingly.
Color Customization: Customize the text and background colors to fit your chart’s aesthetic.
How It Works:
The script calculates the tick movement from the last closed candle and multiplies it by the specified tick value and the number of contracts.
You can choose to use the default automatic tick value or manually input your own.
A table appears on the chart showing the risk for different contract sizes based solely on the size of the last candle, providing a quick snapshot of potential exposure from the most recent price movement.
This script is ideal for traders who want to keep a quick and accurate overview of their potential risk exposure based on the size of the most recent price action.
Whether you are scalping, day trading, or holding positions overnight, this tool by Soothing Trades will help you stay informed and make better trading decisions.
Happy Trading!
- use at own risk, for education and test purpose only.
Developed by Soothing Trades
Волатильность
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.
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.
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.
Standard Deviation based Upper Lower RangeThis script makes use of historical data for finding the standard deviation on daily returns. Based on the mean and standard deviation, the upper and lower range for the stock is shown upto 2x standard deviation. These bounds can be treated as volatility range for the next n trading sessions. This volatility is based on historical data. Users can change the lookback historical period, and can also set the time period (days) for upcoming trading sessions.
This indicator can be useful in determining stoploss and target levels along with the traditional support/resistance levels. It can also be useful in option trading where one needs to determine a range beyond which it is safe to sell an option.
A range of 1 SD has around 65% to 68% probability that it will not be breached. A range of 2 SD has around 95% probability that it will not be breached.
The indicator is based on Normal distribution theory. In future editions, I envision to also calculate the skewness and kurtosis so that we can determine if a stock is properly following Normal Distribution theory. That may further favor the calculated range.
Time based Insights [Digit23]Description:
The NSE Trading Time Insights indicator is a powerful tool designed for traders on the National Stock Exchange (NSE) of India. It provides a comprehensive overview of different trading sessions throughout the day, offering valuable insights into market characteristics and potential trading strategies for each time period.
Key Features:
1. Dynamic Session Display: The indicator automatically detects the current trading session and highlights it in the table.
2. Customizable Table: Users can choose to display either a full table showing all sessions or focus on the current session only.
3. User-Editable Content: Time ranges, session characteristics, and trading insights are fully customizable by the user.
4. Visual Customization: Table position and color scheme can be adjusted to suit individual preferences.
5. Market Status Indicator: Clearly shows when the market is closed.
Sessions Covered:
1. Opening Bell
2. Mid-Morning
3. Lunch Hour
4. Early Afternoon
5. Power Hour
For each session, the indicator displays:
- Time Range
- Session Name
- Market Characteristics
- Trading Insights
Customization Options:
- Table Position: Choose from top-left, top-right, bottom-left, or bottom-right of the chart.
- Color Scheme: Customize colors for header, cells, highlighting, and market closed status.
- Session Details: Edit time ranges, characteristics, and trading insights for each session.
Usage:
This indicator is particularly useful for:
1. New traders learning about intraday market dynamics on the NSE.
2. Experienced traders looking for a quick reference of session characteristics.
3. Traders developing or refining time-based trading strategies.
4. Anyone seeking to understand the typical flow of the trading day on the NSE.
Note:
The indicator uses the chart's time to determine the current session. Ensure your chart is set to the correct time zone for accurate results.
Disclaimer:
This indicator is for informational purposes only. The provided insights and characteristics are general in nature and may not reflect current market conditions. Always conduct your own analysis and risk assessment before making trading decisions.
Dynamic Resistance and Support LinesThis script is designed to dynamically plot support and resistance lines based on full-dollar and half-dollar price levels relative to the close price on a chart. The script is particularly useful for day traders and scalpers, as it helps visualize key psychological price levels that often act as support and resistance zones in volatile and fast-moving markets in real time.
Key Features:
Dynamic Resistance and Support Levels:
Full-dollar levels: These are calculated by rounding the close price to the nearest full dollar and then extending the levels by adding and subtracting increments of 1 (e.g., $1, $2, $3).
Half-dollar levels: These are calculated by adding and subtracting 0.5 increments to the nearest full-dollar price, providing additional reference points. The historical full-dollar levels remain where support and resistance may have occurred in the past.
Extend Lines:
You can toggle whether the support and resistance lines are extended to the right, left, or both directions. This allows flexibility in projecting potential future areas of support or resistance.
Custom Line Extension:
The user can set the number of bars (or time periods) that the support and resistance lines will extend, giving control over how long the levels remain on the chart.
Color-Coded Lines:
Red lines represent full-dollar resistance and support levels.
Blue lines represent half-dollar levels, making it easy to differentiate between key psychological price zones.
Line Flexibility:
The script allows the lines to extend both left and right on the chart, making it useful for analyzing historical price action or projecting future price movements. The number of bars for extension is customizable, allowing for tailored setups.
Nearest Full Dollar Plot:
The nearest full-dollar price level is plotted as a yellow circle on the chart. This serves as a quick visual cue for traders to monitor price proximity to critical levels.
Benefits in Day Trading, Scalping, and Volatile Markets:
Visualizing Key Psychological Levels:
Full-dollar and half-dollar price levels often act as psychological barriers for traders. This script helps traders easily identify these levels, which are important in both fast-moving markets and during sideways consolidation.
Improved Decision-Making:
By automatically drawing these support and resistance levels, the script helps day traders and scalpers make quicker and more informed decisions, especially in volatile markets where every second counts.
Adaptability to Market Conditions:
The flexibility of extending lines based on trader preferences allows the user to adapt the script to various market conditions, such as high volatility or trend-based trading, providing a clear view of potential breakout or reversal areas.
Better Risk Management:
Having predefined support and resistance levels helps traders better manage risk, as these levels can act as logical areas for setting stop losses or taking profits.
This script is especially valuable for traders looking to capitalize on quick market movements or identify key entry and exit points during market volatility.
H-Infinity Volatility Filter [QuantAlgo]Introducing the H-Infinity Volatility Filter by QuantAlgo 📈💫
Enhance your trading/investing strategy with the H-Infinity Volatility Filter , a powerful tool designed to filter out market noise and identify clear trend signals in volatile conditions. By applying an advanced H∞ filtering process, this indicator assists traders and investors in navigating uncertain market conditions with improved clarity and precision.
🌟 Key Features:
🛠 Customizable Noise Parameters: Adjust worst-case noise and disturbance settings to tailor the filter to various market conditions. This flexibility helps you adapt the indicator to handle different levels of market volatility and disruptions.
⚡️ Dynamic Trend Detection: The filter identifies uptrends and downtrends based on the filtered price data, allowing you to quickly spot potential shifts in the market direction.
🎨 Color-Coded Visuals: Easily differentiate between bullish and bearish trends with customizable color settings. The indicator colors the chart’s candles according to the detected trend for immediate clarity.
🔔 Custom Alerts: Set alerts for trend changes, so you’re instantly informed when the market transitions from bullish to bearish or vice versa. Stay updated without constantly monitoring the charts.
📈 How to Use:
✅ Add the Indicator: Add the H-Infinity Volatility Filter to your favourites and apply it to your chart. Customize the noise and disturbance parameters to match the volatility of the asset you are trading/investing. This allows you to optimize the filter for your specific strategy.
👀 Monitor Trend Shifts: Watch for clear visual signals as the filter detects uptrends or downtrends. The color-coded candles and line plots help you quickly assess market conditions and potential reversals.
🔔 Set Alerts: Configure alerts to notify you when the trend changes, allowing you to react quickly to potential market shifts without needing to manually track price movements.
🌟 How It Works and Academic Background:
The H-Infinity Volatility Filter is built on the foundations of H∞ (H-infinity) control theory , a mathematical framework originating from the field of engineering and control systems. Developed in the 1980s by notable engineers such as George Zames and John C. Doyle , this theory was designed to help systems perform optimally under uncertain and noisy conditions. H∞ control focuses on minimizing the worst-case effects of disturbances and noise, making it a powerful tool for managing uncertainty in complex environments.
In financial markets, where unpredictable price fluctuations and noise often obscure meaningful trends, this same concept can be applied to price data to filter out short-term volatility. The H-Infinity Volatility Filter adopts this approach, allowing traders and investors to better identify potential trends by reducing the impact of random price movements. Instead of focusing on precise market predictions, the filter increases the probability of highlighting significant trends by smoothing out market noise.
This indicator works by processing historical price data through an H∞ filter that continuously adjusts based on worst-case noise levels and disturbances. By considering several past states, it estimates the current price trend while accounting for potential external disruptions that might influence price behavior. Parameters like "worst-case noise" and "disturbance" are user-configurable, allowing traders to adapt the filter to different market conditions. For example, in highly volatile markets, these parameters can be adjusted to manage larger price swings, while in more stable markets, they can be fine-tuned for smoother trend detection.
The H-Infinity Volatility Filter also incorporates a dynamic trend detection system that classifies price movements as bullish or bearish. It uses color-coded candles and plots—green for bullish trends and red for bearish trends—to provide clear visual cues for market direction. This helps traders and investors quickly interpret the trend and act on potential signals. While the indicator doesn’t guarantee accuracy in trend prediction, it significantly reduces the likelihood of false signals by focusing on meaningful price changes rather than random fluctuations.
How It Can Be Applied to Trading/Investing:
By applying the principles of H∞ control theory to financial markets, the H-Infinity Volatility Filter provides traders and investors with a sophisticated tool that manages uncertainty more effectively. Its design makes it suitable for use in a wide range of markets—whether in fast-moving, volatile environments or calmer conditions.
The indicator is versatile and can be used in both short-term trading and medium to long-term investing strategies. Traders can tune the filter to align with their specific risk tolerance, asset class, and market conditions, making it an ideal tool for reducing the effects of market noise while increasing the probability of detecting reliable trend signals.
For investors, the filter can help in identifying medium to long-term trends by filtering out short-term price swings and focusing on the broader market direction. Whether applied to stocks, forex, commodities, or cryptocurrencies, the H-Infinity Volatility Filter helps traders and investors interpret market behavior with more confidence by offering a more refined view of price movements through its noise reduction techniques.
Disclaimer:
The H-Infinity Volatility Filter is designed to assist in market analysis by filtering out noise and volatility. It should not be used as the sole tool for making trading or investment decisions. Always incorporate other forms of analysis and risk management strategies. No statements or signals from this indicator or us should be considered financial advice. Past performance is not indicative of future results.
Enhanced High-Low Difference IndicatorEnhanced High-Low Difference Indicator
The "Enhanced High-Low Difference Indicator" is a powerful tool that highlights market volatility by tracking the difference between the high and low prices of a bar. Key features include:
Customizable Threshold: Set your own threshold for the high-low difference to filter out minor fluctuations.
Visual Highlights: Bars that exceed the threshold are highlighted with customizable color and opacity settings for easy identification.
Optional Labels: Display the exact high-low difference on the bars when the threshold is exceeded, with fully customizable label color and size.
High-Low Difference Line: Optionally plot a line that tracks the high-low difference of each bar for visual reference.
Alerts: Receive real-time alerts when the high-low difference exceeds your specified threshold.
Threshold Reference Line: Plot the threshold value as a horizontal reference line on the chart.
This indicator is ideal for traders looking to identify volatility spikes and make informed trading decisions based on price action.
Options Series - P_SAR And Supertrend
The provided PineScript combines two well-known indicators—Parabolic SAR (P_SAR) and Supertrend—to create a comprehensive trading tool. Here are some powerful insights and the importance of this script:
⭐ 1. Supertrend Indicator:
What it does: The Supertrend indicator is based on the Average True Range (ATR) and is used to identify trend direction. When the price is above the Supertrend line, it suggests an uptrend, and when below, a downtrend.
Insights:
Trend Following: By adjusting the ATR length (atrPeriod) and the multiplier (factor), you can fine-tune the sensitivity of the Supertrend. A smaller ATR or factor results in more frequent trend changes, whereas larger values make the indicator more robust but slower to react.
Trend Visualization: The script highlights trends with the help of green and red lines, offering a clear visual cue for traders. The uptrend is filled with a translucent green and the downtrend with red, allowing quick identification of market momentum.
⭐ 2. Parabolic SAR (P_SAR):
What it does: The Parabolic SAR is a time/price-based indicator that helps identify potential reversals in the market. The dots (SAR) follow the price and move closer to it as the trend progresses.
Insights:
Trailing Stops: This is commonly used by traders to trail stop losses, as the SAR moves closer to price as the trend strengthens.
Combining with Supertrend: The SAR dots in this script act as an additional confirmation for trend direction. For instance, when the price is above both the SAR and Supertrend, it strongly suggests an uptrend.
⭐ 3. Bar Coloring Based on Trend Confirmation:
What it does: The script calculates conditions based on whether the price is above or below both the Supertrend and SAR values.
Insights:
Bullish/Bearish Confirmation: The combination of these two indicators provides a stronger confirmation of trend direction compared to using either one alone. For example:
Green Bars: If the price is above both the Supertrend and SAR, it signals a strong uptrend (bullish).
Red Bars: If the price is below both, it suggests a strong downtrend (bearish).
Visual Alerts: The candle colors are adjusted based on these conditions, providing a quick visual alert for traders to take action.
⭐ 4. Importance of Using Both Supertrend and P_SAR:
Multiple Confirmations: Combining the Supertrend and Parabolic SAR increases the accuracy of trend-following strategies. Each indicator has its strengths: Supertrend is good for identifying the overall trend, while the SAR excels at identifying potential reversals.
Risk Management: This script can help you not only identify trends but also manage your positions more effectively. The Parabolic SAR, for example, can serve as a dynamic stop-loss level, while the Supertrend can help you stay in trades longer by smoothing out noise in the market.
⭐ 5. Customizable Inputs:
Adaptability: The user can adjust the ATR period, factor, start, increment, and maximum values, tailoring the script to different market conditions and timeframes. This flexibility is essential, as each asset class or market may require different parameter settings.
⭐ 6. Practical Application in Trading:
Entry and Exit Signals: The script can be used to generate entry and exit signals. For instance:
Buy Signal: When the bar turns green (price is above Supertrend and SAR), it could be a signal to go long.
Sell Signal: When the bar turns red (price is below Supertrend and SAR), it could be a signal to go short or exit a long position.
Stop-Loss Placement: The Parabolic SAR dots can act as trailing stop-loss levels, helping traders lock in profits as trends progress.
Trend Continuation vs. Reversal: The Supertrend provides a broader view of the trend, while the Parabolic SAR provides pinpoint entry/exit signals for reversals.
🚀 Conclusion:
This script is a robust combination of trend-following and reversal indicators, making it a versatile tool for traders. The dual confirmation from Supertrend and Parabolic SAR reduces false signals, and the color-coded bars provide quick insights into market conditions. When used properly, this can greatly improve your ability to catch trends early, exit at the right moment, and manage risk effectively.
Indicator 10**Indicator 10** is a sophisticated technical analysis tool designed for use on trading platforms that support Pine Script (version 5). This indicator is primarily focused on analyzing price movements over different timeframes, incorporating elements of ZigZag analysis, Fibonacci levels, and historical price range calculations. Below is a detailed description of its features and functionalities:
#### Key Features:
1. **Input Variables:**
- **Year_calc:** Specifies the number of years to consider for historical price range calculations.
- **Size_fibo:** Defines the size of the Fibonacci levels in points.
- **Dig:** Represents the minimum tick size for the instrument being analyzed.
- **ZigZag Parameters:**
- **Period (zigzag_len):** The length of the ZigZag indicator.
- **Depth (zigzag_depth):** The depth percentage for the ZigZag indicator.
- **Display Count (zigzag_hist):** The number of ZigZag points to display.
- **Font Size (font_size):** The size of the font used for labels.
2. **Historical Price Range Calculation:**
- The indicator calculates the average weekly and monthly price ranges over the specified number of years (`Year_calc`).
- These ranges are used to adjust the Fibonacci levels dynamically based on historical volatility.
3. **ZigZag Analysis:**
- The indicator employs a custom ZigZag function to identify significant price swings on different timeframes (H4, D1, W1).
- The ZigZag points are stored in arrays, allowing for the visualization of recent price swings.
4. **Fibonacci Adjustment:**
- The Fibonacci levels are adjusted based on the historical price ranges (`W1_Val`, `MN1_Val`, `D1_Val`).
- These adjusted levels are used to draw support and resistance lines on the chart.
5. **Visualization:**
- The indicator draws lines and labels on the chart to represent the ZigZag points and adjusted Fibonacci levels.
- Different colors are used to distinguish between upward and downward trends.
6. **Dynamic Updates:**
- The indicator continuously updates the ZigZag points and Fibonacci levels as new price data becomes available.
- It ensures that only the most recent ZigZag points are displayed, maintaining a clean and relevant chart.
#### How It Works:
1. **Initialization:**
- The indicator initializes variables for storing historical price ranges and ZigZag points.
- It sets the start date for historical calculations based on the current year minus the specified number of years (`Year_calc`).
2. **Historical Data Retrieval:**
- The indicator retrieves weekly and monthly high and low prices for the specified period.
- It calculates the total price range and the average range for each timeframe.
3. **ZigZag Calculation:**
- The custom ZigZag function identifies local highs and lows based on the specified period and depth.
- These points are stored in arrays for later visualization.
4. **Fibonacci Adjustment:**
- The Fibonacci levels are adjusted based on the historical price ranges and the specified Fibonacci size.
- These adjusted levels are used to draw lines on the chart.
5. **Visualization:**
- The indicator draws lines connecting ZigZag points and labels indicating the direction of the trend.
- It ensures that only the most recent ZigZag points are displayed, maintaining a clean and relevant chart.
6. **Continuous Updates:**
- The indicator continuously updates the ZigZag points and Fibonacci levels as new price data becomes available.
- It ensures that only the most recent ZigZag points are displayed, maintaining a clean and relevant chart.
#### Conclusion:
**Indicator 10** is a powerful tool for traders who rely on historical price analysis, ZigZag patterns, and Fibonacci levels to make trading decisions. Its dynamic and adaptive nature ensures that the chart remains relevant and useful, providing traders with a clear view of recent price movements and potential support/resistance levels.
Gaps Trend [ChartPrime]The Gaps Trend - ChartPrime indicator is designed to detect Fair Value Gaps (FVGs) in the market and apply a trailing stop mechanism based on those gaps. It identifies both bullish and bearish gaps and provides traders with a way to manage trades dynamically as gaps appear. The indicator visually highlights gaps and uses the detected momentum to assess trend direction, helping traders identify price imbalances caused by strong buy or sell pressure.
⯁ KEY FEATURES & HOW TO USE
⯌ Fair Value Gap (FVG) Detection :
The indicator automatically detects both bullish and bearish FVGs, identifying gaps between candle highs and lows. Bullish gaps are shown in green, and bearish gaps in purple. These gaps indicate price imbalances driven by strong momentum, such as when there is significant buying or selling pressure.
Use : Traders can use FVG detection to identify periods of high price momentum, offering insight into potential continuation or exhaustion of trends.
⯌ Trailing Stop Feature Based on FVGs :
A core feature of this indicator is the trailing stop mechanism, which adjusts dynamically based on the identified FVGs. When a bullish gap is detected, the trailing stop is placed below the price to capture upward momentum, while bearish gaps result in a trailing stop placed above the price. This feature helps traders stay in trends while protecting profits as the price moves.
Use : The trailing stop follows the momentum of the price, ensuring that traders can stay in profitable trades during strong trends and exit when the momentum shifts.
bullish set up
bearish set up
⯌ Trend Direction Indication :
The indicator colors the chart according to the current trend direction based on the position of the price relative to the trailing stop. Green indicates an uptrend (bullish gap), while purple shows a downtrend (bearish gap). This provides traders with a quick visual assessment of trend direction based on the presence of gaps.
Use : Traders can monitor the chart's color to stay aligned with the market’s trend, staying long during green phases and short during purple ones.
⯌ Gap Size Filtering :
Each detected gap is assigned a numerical ranking based on its size, with larger gaps having higher rankings. The gap size filter allows traders to only display gaps that meet a minimum size threshold, focusing on the most impactful gaps in terms of price movement.
Use : Traders can use the filter to focus on gaps of a certain size, filtering out smaller, less significant gaps. The numerical ranking helps identify the largest and most influential gaps for decision-making.
⯌ FVG Level Visualization :
The indicator can display dashed lines marking the levels of previously filled FVGs. These levels represent areas where price once experienced a gap and later filled it. Monitoring these levels can provide traders with key reference points for potential reactions in price.
Use : Traders can use these gap levels to track where price has filled gaps and potentially use these levels as zones for entry, exit, or assessing market behavior.
⯁ USER INPUTS
Filter Gaps : Adjust the size threshold to filter gaps by their size ranking.
Show Gap Levels : Toggle the display of dashed lines at filled FVG levels.
Enable Trailing Stop : Activate or deactivate the trailing stop feature based on FVGs.
Trailing Stop Length : Set the number of bars used to calculate the trailing stop.
Bullish/Bearish Colors : Customize the colors representing bullish and bearish gaps.
⯁ CONCLUSION
The Gaps Trend indicator combines Fair Value Gap detection with a dynamic trailing stop feature to help traders manage trades during periods of high price momentum. By detecting gaps caused by strong buy or sell pressure and applying adaptive stops, the indicator provides a powerful tool for riding trends and managing risk. The additional ability to filter gaps by size and visualize previously filled gaps enhances its utility for both trend-following and risk management strategies.
Amplitude [Anan]The Amplitude indicator calculates and visualizes both the amplitude and cumulative amplitude of price movements, providing traders with insights into price volatility and trend strength. By distinguishing between positive and negative amplitude movements, this indicator aids in identifying bullish and bearish sentiments, potential reversal points, and confirming trend directions.
█ Main Formulas
‣ Amplitude = High - Low
‣ Cumulative Amplitude = sum of Amplitude over the specified lookback period
‣ Percentage Amplitude = (Amplitude / Open) × 100%
High: Candle high (or highest high when lookback > 1)
Low: Candle low (or lowest low when lookback > 1)
Open: Open price of the first candle in the lookback period
█ Key Features
✦Dual Amplitude Calculations:
Amplitude: Reflects price range and direction over a short-term period.
Cumulative Amplitude: Aggregates amplitude over a longer period for broader trend analysis.
✦Customizable Parameters: Adjust lookback periods, smoothing options, moving averages and Alerts.
✦Direction Separation: Distinguish between positive and negative amplitude movements to identify market sentiment.
✦Flexible Visualization: Customizable colors and plot styles for enhanced chart readability.
✦Alert System: Generate signals based on amplitude direction and moving average crossovers
█ How to Use and Interpret
✦Understanding Amplitude and Cumulative Amplitude:
‣Amplitude: Measures the price range (high - low) over a specified short-term period.
‣Cumulative Amplitude: Aggregates amplitude over a defined longer-term period.
‣Percentage Representation: shows amplitude relative to the open price from `amp_length` bars ago, providing a normalized view.
‣Interpretation:
Large Amplitude Values: Indicate high volatility.
Small Amplitude Values: Indicate low volatility.
✦Trend Identification:
‣Uptrend: Consistently positive amplitudes and upward-moving averages.
‣Downtrend: Consistently negative amplitudes and downward-moving averages.
✦Overbought/Oversold Conditions:
‣High Positive Amplitude: May indicate overbought conditions and potential reversals.
‣High Negative Amplitude: May indicate oversold conditions and potential reversals.
✦Volatility Analysis:
‣High Amplitude Values: Suggest increased market volatility.
‣Low Amplitude Values: Suggest reduced market volatility.
✦Signal Confirmation:
‣Moving Average Crossovers: Confirm the strength and direction of trends, aiding in informed trading decisions.
✦Trading Strategies:
‣ Breakout Trading: Large increases in amplitude can signal potential breakouts.
‣ Mean Reversion: Extreme amplitude values may indicate upcoming price corrections.
‣ Volatility-Based Strategies: Adjust position sizes or trading frequency based on amplitude magnitudes.
‣ Multi-Timeframe Analysis: Compare amplitudes across different timeframes for a comprehensive market view.
█ Customization Tips
‣ Lookback Periods: Experiment with different periods to suit your trading style and asset characteristics.
‣ Smoothing Settings: Adjust to balance responsiveness and noise reduction.
‣ Percentage Amplitude: Use for normalized comparisons across different price levels.
Large Candle Detector (6-Candle Comparison)This indicator identifies large price candles that are bigger than the previous six candles, helping traders spot potential breakout or reversal signals. By highlighting significant candles compared to recent price action, it provides insights into key moments of increased volatility or momentum shifts in the market.
Magic Order Blocks [MW]Add a slim design, minimalist view of the most relevant higher and lower order blocks to your chart. Use our novel method of filtering that uses both the the number of consecutive bullish or bearish candles that follow the order block, and the number of ATRs that the asset’s price changed following the order block. View just the order blocks above and below the current price, or view the backgrounds for each and every one. And, if you're up to it, dig into a comprehensive view of the data for each order block candle.
Settings:
General Settings
Minimum # of Consecutive Bars Following Order Block
Show Bullish Order Blocks Below / Hide Last Bullish Block
Show Bearish Order Blocks Above / Hide Last Bearish Block
Use ATR Filter - Select # of ATRs Below
Closest Order Block is Followed by This Many ATRs
Preferences
Right Offset of Indicator Label
Show Mid-Line from Recent Order Block Indicator Label
Use ATRs Instead of Consecutive Candles in Label Indicator
Show Timestamp of Recent Order Block
Show Large Order Block Detail Labels
Show Small Order Block Labels
Background Settings
Show Background for Recent Order Block Indicator Label
# of Backgrounds to Show Before Now
Show All Bullish Order Block Backgrounds
Show All Bearish Order Block Backgrounds
Calculations
This indicator creates a matrix of each order block that is followed by the user-specified number of consecutive bullish or bearish candles. The data can be further filtered by the number of ATRs that the price moves after the order block - also user-defined. The most recent bearish order block above the current price takes arrays from the initial filtered matrix of arrays, filters once more by the “mid-price” of the order block (the average between the order block candle high and low) and selects the last element from this order block matrix. The same follows for the latest bearish order block above the current price.
How to Use
An order block refers to a price range or zone on a chart where large institutional orders have been placed, causing a significant shift in market direction. These zones are crucial because they often indicate areas of strong buying or selling interest, which can lead to future support or resistance levels. Traders use order blocks to identify potential points of market reversal or continuation.
The Magic Order Blocks default view shows the most recent overhead bearish order block above the current price, and the most recent bullish order block below. These can presumably act as support or resistance levels, because they reflect the last price where a significant price move occurred. “Significant” meaning that the order block candle was followed by many consecutive bullish or bearish candles. Based on the user-defined settings, it can also mean that price moved multiples of the asset's average true range (ATR). More consecutive candles means that the duration of the move lasted a long time. A higher ATR move indicates that the price moved impulsively in one direction.
The default view also shows a label to the right of the current price that provides the price level, the time stamp of the order block (optional), and a sequence of bars that show the significance of the level. By default, these bars represent the number of ATRs that price rose or fell following the order block, but they can be toggled to show the number of consecutive bullish or bearish candles that followed the order block.
Although the default view provides the zones that are most relevant to the current price, past order block candles can also be identified visually with labels as well with translucent backgrounds color-coded for bullish or bearish bias. Overlapping backgrounds can identify an area that has been repeatedly been an area of support or resistance.
A detailed view of each order block can also be viewed the includes the following data points:
Bar Index
Timestamp
Consecutive Accumulated Volume
Consecutive Bars
Price Change over Consecutive Bars
Price/Volume Ratio Over Consecutive Bars
Mid Price of Order Block
High Price of Order Block
Low Price of Order Block
ATRs over Consecutive Bars
- Other Usage Notes and Limitations:
The calculations used only provide an estimated relationship or a close approximation, and are not exact.
It's important for traders to be aware of the limitations of any indicator and to use them as part of a broader, well-rounded trading strategy that includes risk management, fundamental analysis, and other tools that can help with reducing false signals, determining trend direction, and providing additional confirmation for a trade decision. Diversifying strategies and not relying solely on one type of indicator or analysis can help mitigate some of these risks.
Things to keep in mind. Longer timeframes don’t necessarily have a as many consecutive candle drops or gains as with shorter timeframes, so be sure to adjust your settings when moving to 1 hour, 1 day, or 1 week timeframes from 1 minute, 5 minute, or 15 minute timeframes.
Connors VIX Reversal III invented by Dave LandryThis strategy is based on trading signals derived from the behavior of the Volatility Index (VIX) relative to its 10-day moving average. The rules are split into buying and selling conditions:
Buy Conditions:
The VIX low must be above its 10-day moving average.
The VIX must close at least 10% above its 10-day moving average.
If both conditions are met, a buy signal is generated at the market's close.
Sell Conditions:
The VIX high must be below its 10-day moving average.
The VIX must close at least 10% below its 10-day moving average.
If both conditions are met, a sell signal is generated at the market's close.
Exit Conditions:
For long positions, the strategy exits when the VIX trades intraday below its previous day’s 10-day moving average.
For short positions, the strategy exits when the VIX trades intraday above its previous day’s 10-day moving average.
This strategy is primarily a mean-reversion strategy, where the market is expected to revert to a more normal state after the VIX exhibits extreme behavior (i.e., large deviations from its moving average).
About Dave Landry
Dave Landry is a well-known figure in the world of trading, particularly in technical analysis. He is an author, trader, and educator, best known for his work on swing trading strategies. Landry focuses on trend-following and momentum-based techniques, teaching traders how to capitalize on shorter-term price swings in the market. He has written books like "Dave Landry on Swing Trading" and "The Layman's Guide to Trading Stocks," which emphasize practical, actionable trading strategies.
About Connors Research
Connors Research is a financial research firm known for its quantitative research in financial markets. Founded by Larry Connors, the firm specializes in developing high-probability trading systems based on historical market behavior. Connors’ work is widely respected for its data-driven approach, including systems like the RSI(2) strategy, which focuses on short-term mean reversion. The firm also provides trading education and tools for institutional and retail traders alike, emphasizing strategies that can be backtested and quantified.
Risks of the Strategy
While this strategy may appear to offer promising opportunities to exploit extreme VIX movements, it carries several risks:
Market Volatility: The VIX itself is a measure of market volatility, meaning the strategy can be exposed to sudden and unpredictable market swings. This can result in whipsaws, where positions are opened and closed in rapid succession due to sharp reversals in the VIX.
Overfitting: Strategies based on specific conditions like the VIX closing 10% above or below its moving average can be subject to overfitting, meaning they work well in historical tests but may underperform in live markets. This is a common issue in quantitative trading systems that are not adaptable to changing market conditions .
Mean-Reversion Assumption: The core assumption behind this strategy is that markets will revert to their mean after extreme movements. However, during periods of sustained trends (e.g., market crashes or rallies), this assumption may break down, leading to prolonged drawdowns.
Liquidity and Slippage: Depending on the asset being traded (e.g., S&P 500 futures, ETFs), liquidity issues or slippage could occur when executing trades at market close, particularly in volatile conditions. This could increase costs or worsen trade execution.
Scientific Explanation of the Strategy
The VIX is often referred to as the "fear gauge" because it measures the market's expectations of volatility based on options prices. Research has shown that the VIX tends to spike during periods of market stress and revert to lower levels when conditions stabilize . Mean reversion strategies like this one assume that extreme VIX levels are unsustainable in the long run, which aligns with findings from academic literature on volatility and market behavior.
Studies have found that the VIX is inversely correlated with stock market returns, meaning that higher VIX levels often correspond to lower stock prices and vice versa . By using the VIX’s relationship with its 10-day moving average, this strategy aims to capture reversals in market sentiment. The 10% threshold is designed to identify moments when the VIX is significantly deviating from its norm, signaling a potential reversal.
However, academic research also highlights the limitations of relying on the VIX alone for trading signals. The VIX does not predict market direction, only volatility, meaning that it cannot indicate the magnitude of price movements . Furthermore, extreme VIX levels can persist longer than expected, particularly during financial crises.
In conclusion, while the strategy is grounded in well-established financial principles (e.g., mean reversion and the relationship between volatility and market performance), it carries inherent risks and should be used with caution. Backtesting and careful risk management are essential before applying this strategy in live markets.
Larry Conners Vix Reversal II Strategy (approx.)This Pine Script™ strategy is a modified version of the original Larry Connors VIX Reversal II Strategy, designed for short-term trading in market indices like the S&P 500. The strategy utilizes the Relative Strength Index (RSI) of the VIX (Volatility Index) to identify potential overbought or oversold market conditions. The logic is based on the assumption that extreme levels of market volatility often precede reversals in price.
How the Strategy Works
The strategy calculates the RSI of the VIX using a 25-period lookback window. The RSI is a momentum oscillator that measures the speed and change of price movements. It ranges from 0 to 100 and is often used to identify overbought and oversold conditions in assets.
Overbought Signal: When the RSI of the VIX rises above 61, it signals a potential overbought condition in the market. The strategy looks for a RSI downtick (i.e., when RSI starts to fall after reaching this level) as a trigger to enter a long position.
Oversold Signal: Conversely, when the RSI of the VIX drops below 42, the market is considered oversold. A RSI uptick (i.e., when RSI starts to rise after hitting this level) serves as a signal to enter a short position.
The strategy holds the position for a minimum of 7 days and a maximum of 12 days, after which it exits automatically.
Larry Connors: Background
Larry Connors is a prominent figure in quantitative trading, specializing in short-term market strategies. He is the co-author of several influential books on trading, such as Street Smarts (1995), co-written with Linda Raschke, and How Markets Really Work. Connors' work focuses on developing rules-based systems using volatility indicators like the VIX and oscillators such as RSI to exploit mean-reversion patterns in financial markets.
Risks of the Strategy
While the Larry Connors VIX Reversal II Strategy can capture reversals in volatile market environments, it also carries significant risks:
Over-Optimization: This modified version adjusts RSI levels and holding periods to fit recent market data. If market conditions change, the strategy might no longer be effective, leading to false signals.
Drawdowns in Trending Markets: This is a mean-reversion strategy, designed to profit when markets return to a previous mean. However, in strongly trending markets, especially during extended bull or bear phases, the strategy might generate losses due to early entries or exits.
Volatility Risk: Since this strategy is linked to the VIX, an instrument that reflects market volatility, large spikes in volatility can lead to unexpected, fast-moving market conditions, potentially leading to larger-than-expected losses.
Scientific Literature and Supporting Research
The use of RSI and VIX in trading strategies has been widely discussed in academic research. RSI is one of the most studied momentum oscillators, and numerous studies show that it can capture mean-reversion effects in various markets, including equities and derivatives.
Wong et al. (2003) investigated the effectiveness of technical trading rules such as RSI, finding that it has predictive power in certain market conditions, particularly in mean-reverting markets .
The VIX, often referred to as the “fear index,” reflects market expectations of volatility and has been a focal point in research exploring volatility-based strategies. Whaley (2000) extensively reviewed the predictive power of VIX, noting that extreme VIX readings often correlate with turning points in the stock market .
Modified Version of Original Strategy
This script is a modified version of Larry Connors' original VIX Reversal II strategy. The key differences include:
Adjusted RSI period to 25 (instead of 2 or 4 commonly used in Connors’ other work).
Overbought and oversold levels modified to 61 and 42, respectively.
Specific holding period (7 to 12 days) is predefined to reduce holding risk.
These modifications aim to adapt the strategy to different market environments, potentially enhancing performance under specific volatility conditions. However, as with any system, constant evaluation and testing in live markets are crucial.
References
Wong, W. K., Manzur, M., & Chew, B. K. (2003). How rewarding is technical analysis? Evidence from Singapore stock market. Applied Financial Economics, 13(7), 543-551.
Whaley, R. E. (2000). The investor fear gauge. Journal of Portfolio Management, 26(3), 12-17.
MA OrderBlocks [AlgoAlpha]🟨 HMA OrderBlocks by AlgoAlpha is a powerful tool designed to help traders visualize key pivot zones and order blocks based on the Hull Moving Average (HMA). By dynamically identifying bullish and bearish pivot points, this script provides insights into potential price reversals and trend continuations. With customizable settings, it allows traders to tweak the behavior of the indicator to match their strategies. Plus, it comes packed with built-in alerts for trend changes, making it easier to spot potential trade opportunities.
Key Features :
📊 Trend Detection : Utilizes Hull Moving Average to detect the current trend.
🟢🔴 Bullish & Bearish Zones : Automatically plots bullish and bearish order blocks, using customizable colors for clear visual cues.
🎯 Pivot Points : Detects and marks pivot highs and lows, helping traders spot key price reversals.
🚨 Alerts : Built-in alert system for when the price approaches key bullish or bearish zones, or when the trend changes.
🔨 Customizable MA: Choose from various moving averages (SMA, HMA, EMA, etc.) to suit your strategy.
How to Use :
⭐ Add the Indicator : Add the indicators to favourites by pressing the star icon. Once added, configure settings like the Hull MA period and pivot detection period.
📈 Analyze the Chart : Watch for the plotted order blocks and pivot points to identify possible price action strategies.
🔔 Enable Alerts : Set up alerts to be notified of potential trend reversals or when the price nears a bullish/bearish block.
How It Works :
The script starts by calculating the Hull Moving Average (HMA) based on the user-defined length, which is used to determine the market trend direction. It compares the current HMA value with the previous one to confirm whether the price is trending upwards or downwards. Once a trend change is detected, it plots bullish or bearish order blocks based on recent pivot highs and lows. These zones are extended in real-time as long as they remain invalidated. Zones are invalidated are invalidated when price completely closes through them. If the price gets close to a zone in the opposing direction, a warning system alerts the user that the block may not hold. Additionally, customizable alerts trigger whenever the price trend shifts or the price gets near important bullish/bearish blocks. The script’s logic ensures that order blocks are cleared if price violates them, keeping the chart clean and updated.
Average True Range with Price MAATR with Price Moving Average Indicator
This custom indicator combines the Average True Range (ATR) with a Price Moving Average (MA) to help traders analyze market volatility in percent to the price.
Key Components:
Average True Range (ATR)
Price Moving Average (MA)
ATR/Price in Percent
ATR/Price in Percent
Purpose: This ratio helps traders understand the relative size of the ATR compared to the current price, providing a clearer sense of how significant the volatility is in proportion to the price level.
Calculation: ATR is divided by the current closing price and multiplied by 100 to express it as a percentage. This makes it easier to compare volatility across assets with different price ranges.
Plot: This is plotted as a percentage, making it easier to gauge whether the volatility is proportionally high or low compared to the asset's price.
Usage:
This indicator is designed to help identify the most volatile tokens, making it ideal for configuring a Grid Bot to maximize profit. By focusing on high-volatility assets, traders can capitalize on larger price swings within the grid, increasing the potential for more profitable trades.
Features:
Customizable Smoothing Method: Choose from RMA (Relative Moving Average), SMA (Simple Moving Average), EMA (Exponential Moving Average), or WMA (Weighted Moving Average) for both ATR and the Price Moving Average.
Dual Perspective: The indicator provides both volatility analysis (ATR) and trend analysis (Price MA) in a single view.
Proportional Volatility: The ATR/Price (%) ratio adds a layer of context by showing how volatile the asset is relative to its current price.
Multiple Bollinger Bands + Volatility [AlgoTraderPro]This indicator helps traders visualize price ranges and volatility changes. Designed to assist in identifying potential consolidation zones, the indicator uses multiple layers of Bollinger Bands combined with volatility-based shading. This can help traders spot periods of reduced price movement, which are often followed by breakouts or trend reversals.
█ FEATURES
Multiple Bollinger Bands: Displays up to seven bands with customizable standard deviations, providing a layered view of price range activity.
Volatility Measurement: Tracks changes in Bollinger Band width to display volatility percentage and direction (increasing, decreasing, or neutral).
Volatility Shading: Uses color-coded shading between the outermost bands to indicate changes in volatility, helping to visualize potential consolidation zones.
Customizable Inputs: Modify lookback periods, moving average lengths, and standard deviations for each band to tailor the analysis to your strategy.
Volatility Table: Displays a table on the chart showing real-time volatility data and direction for quick reference.
█ HOW TO USE
Add the Indicator: Apply it to your TradingView chart.
Adjust Settings: Customize the Bollinger Bands’ parameters to suit your trading timeframe and strategy.
Analyze Consolidation Zones: Use the multiple bands and volatility shading to identify areas of reduced price activity, signaling potential breakouts.
Monitor Volatility: Refer to the volatility table to track real-time shifts in market volatility.
Use in Different Markets: Adapt the settings for various assets and timeframes to assess market conditions effectively.
█ NOTES
• The indicator is useful in consolidating markets where price movement is limited, offering insights into potential breakout areas.
• Adjust the settings based on asset and market conditions for optimal results.
Donchian Channel Crosses_AITIndicator Name: Donchian Channel Crosses_AIT
Programming Language: Pine Script (TradingView)
Description
The Donchian Channel Crosses_AIT indicator is designed to provide trading signals based on the crossover of two Donchian Channels with different lookback periods. The indicator uses two channels, Donchian Channel A (default 7-day period) and Donchian Channel B (default 30-day period), to detect upward or downward momentum shifts. The signals are generated when the middle line of Donchian Channel A crosses above or below the middle line of Donchian Channel B.
Components
Donchian Channel A:
Default period: 7 days (modifiable by the user).
Middle Line: Calculated as the average of the highest high and lowest low over the period.
The middle line changes color depending on its position relative to Donchian Channel B.
Green: When Donchian Channel A's middle line is above Donchian Channel B's middle line.
Red: When Donchian Channel A's middle line is below Donchian Channel B's middle line.
Donchian Channel B:
Default period: 30 days (modifiable by the user).
Middle Line: Also calculated as the average of the highest high and lowest low over the period.
Always displayed as a white line with a line thickness of 1.
Long Signal:
Triggered when the middle line of Donchian Channel A crosses above the middle line of Donchian Channel B.
Displayed as a yellow triangle pointing up (L) below the price bar.
Short Signal:
Triggered when the middle line of Donchian Channel A crosses below the middle line of Donchian Channel B.
Displayed as a fuchsia triangle pointing down (S) above the price bar.
Settings
Donchian Channel A:
Default period: 7 days (modifiable via user input).
Middle line changes color based on its relationship to Donchian Channel B.
Donchian Channel B:
Default period: 30 days (modifiable via user input).
Middle line is always white and displayed with a line thickness of 1.
Signal Display:
Long Signal: A yellow "L" triangle is displayed when Donchian Channel A’s middle line crosses above Donchian Channel B’s middle line.
Short Signal: A fuchsia "S" triangle is displayed when Donchian Channel A’s middle line crosses below Donchian Channel B’s middle line.
Signals can be toggled on or off using the "Show Signals" setting.
Usage
Trend Confirmation:
Use this indicator to confirm trend direction by monitoring the relationship between Donchian Channel A and Donchian Channel B.
Uptrend: When Donchian Channel A’s middle line is above Donchian Channel B’s middle line (green line for Donchian A).
Downtrend: When Donchian Channel A’s middle line is below Donchian Channel B’s middle line (red line for Donchian A).
Entry and Exit Signals:
Long Signal: Enter a buy position when Donchian Channel A crosses above Donchian Channel B.
Short Signal: Enter a sell position when Donchian Channel A crosses below Donchian Channel B.
Visual Representation:
The Donchian Channels are drawn on the price chart, with Donchian Channel A dynamically changing color depending on its relative position to Donchian Channel B.