Volume Comparison with Buyer/Seller PressureTHIS indicator is well-structured and provides a comprehensive way to analyze volume alongside buyer and seller pressure. This indicator helps traders analyze volume dynamics in the stock or cryptocurrency market while simultaneously assessing buyer and seller pressure. Its use case revolves around identifying strong buying or selling activity, neutral conditions, and volume trends over different time periods. Below is a breakdown of how to use this indicator:
This Pine Script indicator helps traders analyze volume dynamics in the stock or cryptocurrency market while simultaneously assessing buyer and seller pressure. Its use case revolves around identifying strong buying or selling activity, neutral conditions, and volume trends over different time periods. Below is a breakdown of how to use this indicator:
Key Features and Use Case
Volume-Based Insights:
Displays daily volume and compares it to the 3-day, 5-day, 10-day, and 20-day moving averages of volume. Helps traders identify days with unusual volume spikes relative to historical averages, signaling potential reversals or breakouts.
Buyer and Seller Pressure:
Measures buyer pressure: how much the closing price dominates the trading range of the day.
Measures seller pressure: how much the opening price dominates the trading range of the day.
Highlights areas where buying or selling pressure is particularly strong (≥ 0.75).
Background Signals:
Green Background: Strong buyer pressure (indicative of potential upward momentum).
Red Background: Strong seller pressure (indicative of potential downward momentum).
Gray Background: Neutral market conditions (neither buying nor selling dominance).
Alerts:
Alerts traders when:
Strong buying signals are detected.
Strong selling signals are detected.
The market is neutral, with neither buyers nor sellers in control.
Decision-Making Aid:
Combines volume analysis with price action (buyer/seller pressure) to help traders identify:
Potential breakout opportunities.
Reversal points.
Neutral zones where a trader might avoid trading due to indecision in the market.
How to Use It in Trading:------->
Add the Indicator:
Apply this Indicator to your Trading View chart to start visualizing the buyer/seller pressure and volume averages.
Interpret Volume Trends:
Look for days when daily volume significantly exceeds the 3-day, 5-day, 10-day, or 20-day average.
These could indicate:
A breakout when aligned with strong buyer pressure.
A sell-off when aligned with strong seller pressure.
React to Background Colors:
* Green Background (Strong Buyer Pressure):
Suggests buyers are dominating the market, and upward momentum is likely.
Use this signal to consider buying opportunities, especially if volume is above average.
* Red Background (Strong Seller Pressure):
Indicates sellers are in control, and prices might fall.
Use this signal to consider selling or shorting opportunities.
* Gray Background (Neutral Market):
Reflects indecision; avoid entering trades during these periods unless other signals support a strategy.
Volume Confirmation:
Combine volume analysis with buyer/seller pressure to confirm trends.
Example: A high daily volume with strong buyer pressure signals a high-probability uptrend.
Set Alerts:
Enable alerts to receive real-time notifications when the market generates strong buy/sell signals or enters a neutral zone.
Who Can Benefit:
* Day Traders: Quickly assess intraday market dynamics and volume trends.
* Swing Traders: Identify breakout opportunities or reversal points based on strong buyer/seller pressure.
* Volume Analysts: Compare historical volume averages to current conditions for deeper insights.
Limitations:
Does not guarantee success—should be combined with other technical indicators or strategies.
In low-volume markets, signals may produce false positives or unreliable results.
Assumes traders have basic knowledge of price action and volume analysis.
By integrating this indicator into your strategy, you gain a powerful tool to analyze buyer/seller dominance alongside volume trends, improving your market timing and trade execution.
The Buyer and Seller Pressure components in this indicator provide crucial insights into the market's sentiment and momentum by analyzing the price action relative to the trading volume. Here's how they are used:
1. Buyer Pressure:
Formula:
Buyer Pressure = (Close − Open) / (High − Low )
Interpretation:
* A high buyer pressure (≥ 0.75) indicates strong bullish sentiment, where the price closes much higher than it opened, and the range (high-low) is sufficiently wide.
* It identifies periods of aggressive buying, often signaling potential bullish trends or confirming upward momentum.
2. Seller Pressure:
Formula:
Seller Pressure = (Close − Open ) / (High -Low )
Interpretation:
*A high seller pressure (≥ 0.75) suggests strong bearish sentiment, where the price closes much lower than it opened, within a wide range.
*It helps identify periods of aggressive selling, signaling potential bearish trends or downward momentum.
Purpose in the Indicator:
1. Market Sentiment Analysis:
* Buyer Pressure and Seller Pressure allow traders to gauge market sentiment—whether buyers or sellers dominate a particular time frame.
* This helps in identifying trend reversals or confirmations.
2. Decision-Making Framework:
* The indicator uses thresholds (default 0.75) to classify the market into:
* Strong Buy Signal: When buyer pressure is dominant.
* Strong Sell Signal: When seller pressure is dominant.
* Neutral Signal: When neither buyer nor seller pressure dominates.
*This classification provides a straightforward decision-making tool for traders.
Risk Management:
*By identifying periods of strong buying or selling, traders can avoid entering trades in highly volatile or one-sided markets, which helps reduce risk.
Volume Confirmation:
*Integrating volume data with buyer/seller pressure helps confirm trends. For example:
*High buyer pressure accompanied by higher-than-average volume strengthens the bullish signal.
*Similarly, high seller pressure with higher-than-average volume confirms bearish signals.
Trade Timing:
*The indicator highlights conditions of potential entry (strong buy) or exit (strong sell), allowing traders to time their trades better based on real-time market activity.
Use Case:
*Example:
*Suppose the indicator shows Buyer Pressure = 0.85 with daily volume above the 3-day average. This combination suggests strong bullish activity with momentum, signaling a buy opportunity.
*Conversely, if Seller Pressure = 0.80 with volume above the 5-day average, it signals strong bearish momentum, ideal for selling or shorting.
This indicator combines buyer/seller pressure with volume dynamics, making it valuable for short-term and intraday traders looking for precise market entries and exits.
The background color in this indicator plays an important visual role in helping traders quickly identify the market sentiment based on buyer and seller pressure. It provides a dynamic, color-coded background that changes depending on the strength of the market's buying or selling activity.
Here's how it works:
Background Color Logic:
1. Green Background (Strong Buy Signal):
*Condition: The background turns green when buyer pressure is greater than or equal to 0.75 (strong buying pressure).
*Interpretation: A green background indicates that there is significant bullish sentiment in the market, with strong buying activity. Traders can interpret this as an environment conducive to buying or holding long positions.
*Visual Effect: This helps to quickly spot bullish market conditions, reinforcing potential entry signals for buyers.
2.Red Background (Strong Sell Signal):
*Condition: The background turns red when seller pressure is greater than or equal to 0.75 (strong selling pressure).
*Interpretation: A red background indicates that the market is dominated by selling, showing strong bearish sentiment. Traders can consider this as a signal to sell or short the asset.
*Visual Effect: The red background highlights moments when the market is heavily selling, prompting traders to either exit long positions or take short positions.
Gray Background (Neutral/Indecision Zone):
Condition: The background turns gray when neither buyer nor seller pressure exceeds 0.75. This means the market is neutral, with no dominant bullish or bearish sentiment.
Interpretation: A gray background suggests market indecision or balance between buyers and sellers. It can indicate periods of consolidation or sideways movement where no strong trend is forming.
Visual Effect: The gray background helps traders avoid entering trades when the market lacks a clear direction or when the sentiment is neutral, reducing risk during indecisive times.
Practical Use:
Instant Visual Confirmation:
*Traders can use the background color as an instant confirmation of the market’s sentiment. For instance, if the background turns green, traders might feel more confident in making a long (buy) trade.
*If the background turns red, it serves as a strong visual cue to short or exit a long position.
Helps with Trade Timing:
*The background color can be used in conjunction with other indicators and volume data to time entries and exits more effectively. For example:
*A green background with strong volume indicates a strong trend that could justify a buy.
*A red background with a significant volume surge signals strong selling pressure, which could prompt a sell.
Simplifies Market Analysis:
*For traders who prefer visual cues over complex analysis, the background color simplifies market conditions. Instead of focusing on individual numbers or values, the color-coded background gives them a quick, intuitive view of the market sentiment.
Summary:
* Green background = Strong buying pressure (bullish sentiment)
* Red background = Strong selling pressure (bearish sentiment)
* Gray background = Neutral market (indecision or balance between buyers and sellers)
This background color functionality helps traders stay aware of the prevailing market sentiment at a glance, providing an intuitive way to guide trading decisions.
Индикаторы и стратегии
Golden Time ErfanThe "Golden Time" Indicator is a custom-built TradingView tool designed to assist traders by highlighting two critical trading time windows: the New York session open and a specific strategy-based time known as Golden Time.
FON60DK by leventsahThe strategy generates buy and sell signals using the Tillson T3 and TOTT (Twin Optimized Trend Tracker) indicators. Additionally, the Williams %R indicator is used to filter the signals. Below is an explanation of the main components of the code:
1. Input Parameters:
Tillson T3 and TOTT parameters: Separate parameters are defined for both buy (AL) and sell (SAT) conditions. These parameters control the sensitivity and behavior of the indicators.
Williams %R period: The period for the Williams %R indicator is set to determine overbought and oversold levels.
2. Tillson T3 Calculation:
The Tillson T3 indicator is a smoothed moving average that uses an exponential moving average (EMA) with additional smoothing. The formula calculates a weighted average of multiple EMAs to produce a smoother line.
The t3 function computes the Tillson T3 value based on the close price and the input parameters.
3. TOTT Calculation (Twin Optimized Trend Tracker):
The TOTT indicator is a trend-following tool that adjusts its sensitivity based on market conditions. It uses a combination of price action and a volatility coefficient to determine trend direction.
The Var_Func function calculates the TOTT value, which is then used to derive the OTT (Optimized Trend Tracker) levels for both buy and sell conditions.
4. Williams %R Calculation:
Williams %R is a momentum oscillator that measures overbought and oversold levels. It is calculated using the highest high and lowest low over a specified period.
5. Buy and Sell Conditions:
Buy Condition: A buy signal is generated when the Tillson T3 value crosses above the TOTT upper band (OTTup) and the Williams %R is above -20 (indicating an oversold condition).
Sell Condition: A sell signal is generated when the Tillson T3 value crosses below the TOTT lower band (OTTdnS) and the Williams %R is above -70 (used to close long positions).
6. Strategy Execution:
The strategy.entry function is used to open a long position when the buy condition is met.
The strategy.close function is used to close the long position when the sell condition is met.
7. Visualization:
The bars on the chart are colored green when a long position is open.
The Tillson T3, TOTT upper band (OTTup), and TOTT lower band (OTTdn) are plotted on the chart for both buy and sell conditions.
8. Plots:
The Tillson T3 values for buy and sell conditions are plotted in blue.
The TOTT upper and lower bands are plotted in green and red, respectively, for both buy and sell conditions.
Summary:
This strategy combines trend-following indicators (Tillson T3 and TOTT) with a momentum oscillator (Williams %R) to generate buy and sell signals. The use of separate parameters for buy and sell conditions allows for fine-tuning the strategy based on market behavior. The visual elements, such as colored bars and plotted indicators, help traders quickly identify signals and trends on the chart.
Enhanced VFI Buyer/Seller PressureThe "Enhanced VFI Buyer/Seller Pressure" indicator serves multiple roles in technical analysis and trading decision-making. Here's an overview of its purpose and functionality:
1. Understanding Market Dynamics
* Buyer Pressure: Indicates how strongly buyers are influencing the price movement during a specific period.
* Seller Pressure: Reflects the intensity of selling activity and its impact on price movement.
Helps assess the balance of power between buyers and sellers.
2. Identifying Key Trading Signals
* Strong Buy Signal: Triggered when buyer pressure exceeds the threshold, suggesting strong upward momentum and a potential opportunity to buy.
* Strong Sell Signal: Triggered when seller pressure exceeds the threshold, indicating strong downward momentum and a potential opportunity to sell.
* Neutral Zone: Represents periods of indecision, where neither buyers nor sellers dominate, often leading to consolidation or reduced volatility.
3. Visualizing Volume Flow Index (VFI)
VFI: Measures the money flow in and out of the market, factoring in both price and volume dynamics.
Helps identify bullish or bearish trends through crossovers:
* VFI Crossover EMA: Signals a bullish shift.
* VFI Crossunder EMA: Signals a bearish shift.
4. Supporting Decision-Making
Histogram Visualization: Provides an easy-to-read representation of buyer and seller pressure over time.
Faded bars indicate weak pressure, discouraging action during periods of low market activity.
Background Color Dynamics: Offers immediate visual cues for prevailing market conditions:
* Green for strong buy signals.
* Red for strong sell signals.
* Gray for neutral conditions.
Zero Line: Acts as a baseline to differentiate positive and negative pressure, simplifying interpretation.
5. Alerts for Automation
Configurable alerts ensure traders are notified when:
Buyer or seller pressure exceeds predefined thresholds.
VFI crosses above or below the EMA, indicating potential trend changes.
Use Cases in Trading:
Momentum Trading: Identify when momentum strongly favors buyers or sellers.
Trend Confirmation: Use VFI crossover signals to confirm the direction of a trend.
Risk Management: Avoid trading in neutral or low-pressure zones where market direction is uncertain.
Volume-Driven Analysis: Leverage VFI to gauge the impact of volume on price trends, especially in high-volatility markets.
This indicator combines price action, volume analysis, and trend identification to provide a comprehensive tool for traders seeking an edge in market analysis.
Adaptive Momentum Cycle Oscillator (AMCO)1. Concept and Foundation
The Adaptive Momentum Cycle Oscillator (AMCO) is an advanced indicator designed to dynamically adjust to varying market conditions while identifying price cycles and trends. It combines momentum and volatility into a single, oscillating signal that helps traders detect turning points in price movements. By incorporating adaptive periods and trend filtering, AMCO ensures relevance across different asset classes and timeframes. This innovation bridges the gap between traditional oscillators and trending indicators, providing a comprehensive tool for both cycle identification and trend confirmation.
2. Dynamic Adaptation to Market Conditions
A standout feature of AMCO is its ability to adapt its sensitivity based on market volatility. Using the ATR (Average True Range) as a measure of current volatility, AMCO adjusts its calculation periods dynamically. During periods of high volatility, it extends its lookback periods to smooth out noise and avoid false signals. Conversely, in low-volatility environments, it shortens its periods to remain responsive to smaller price fluctuations. This adaptability ensures that AMCO remains effective and reliable in both trending and ranging markets.
3. Trend Awareness and Directional Weighting
AMCO integrates a trend filter based on a long-term moving average, such as SMA(200), to align its signals with the broader market direction. This filter ensures that buy signals are prioritized during uptrends and sell signals during downtrends, reducing counter-trend trades. Additionally, a directional weighting mechanism amplifies momentum signals that align with the prevailing trend. This dual-layer approach significantly enhances the accuracy of signals, making AMCO especially useful in markets with clear directional bias.
4. Normalized Visualization for Clarity
The AMCO includes a normalized histogram that provides a clear visual representation of momentum strength relative to recent volatility. By dividing the raw AMCO value by the ATR, the histogram ensures consistency across assets with varying price ranges and volatility levels. Positive bars indicate bullish momentum, while negative bars signify bearish momentum. This intuitive visualization makes it easier for traders to interpret market dynamics and act on actionable signals, regardless of asset type or timeframe.
5. Practical and Actionable Signals
AMCO generates practical signals based on zero-line crossovers, allowing traders to easily identify shifts between bullish and bearish cycles. Positive values above the zero line suggest upward momentum, signaling potential buying opportunities, while negative values below the zero line indicate downward momentum, signaling potential sell opportunities. By combining adaptive behavior, trend filtering, and momentum-strength normalization, AMCO offers traders a robust framework for navigating complex markets with confidence. Its versatility makes it suitable for scalping, swing trading, and even longer-term investing.
Momentum Cycle Oscillator (MCO)1. Concept and Inspiration
The Momentum Cycle Oscillator (MCO) is a unique indicator designed to combine volatility and momentum into a unified tool for identifying market cycles. Traditional indicators often isolate either momentum (e.g., RSI) or volatility (e.g., Bollinger Bands), but the MCO bridges the gap by synthesizing these dimensions into one oscillating signal. By measuring price acceleration (momentum) and range consistency (volatility), the MCO aims to detect when a price cycle is shifting from contraction to expansion or vice versa, signaling potential trend reversals or continuations. Its zero-centered design provides a clear demarcation between bullish and bearish cycles.
2. Mathematical Structure
The MCO is built on two foundational components: the volatility factor and the momentum factor. The volatility factor quantifies the price range over a defined period, highlighting market consistency and expansion. Meanwhile, the momentum factor assesses the rate of change in smoothed closing prices, revealing directional acceleration. These two factors are multiplied to create the raw MCO value, which is further smoothed to reduce noise and improve readability. The resulting oscillator fluctuates around zero, with positive values indicating upward cycles and negative values signaling downward cycles.
3. Practical Applications
The MCO excels in identifying cycle turning points, where the market transitions from a bearish phase to a bullish phase or vice versa. Traders can use the zero line as a reference: a crossover from below to above zero suggests a potential buy signal, while a crossover from above to below zero indicates a sell signal. The MCO’s unique blend of volatility and momentum also helps detect shifts in trend strength, making it valuable in both trending and ranging markets. Its histogram visualization further aids traders by emphasizing the magnitude and direction of market momentum.
4. Innovative Features
What sets the MCO apart is its ability to adapt dynamically to market conditions. By fusing two dimensions of market behavior—volatility and momentum—it provides a holistic view of price action. Unlike traditional indicators that rely heavily on recursion (e.g., EMA), the MCO’s straightforward calculation reduces lag, ensuring timely signals. Furthermore, its use of normalized components allows it to function effectively across diverse assets and timeframes without extensive parameter tuning. This makes it particularly versatile for both intraday traders and long-term investors.
5. Limitations and Potential
While the MCO is robust, it is not immune to challenges. In highly choppy or low-volume markets, the indicator may generate false signals, as volatility and momentum can be erratic. Additionally, its performance depends on proper parameter calibration, with periods requiring adjustment to align with the asset’s behavior. However, its creative approach to combining volatility and momentum offers immense potential for refinement and customization. With proper backtesting and optimization, the MCO could become a staple tool for traders seeking a comprehensive yet simple way to interpret market cycles.
JJ Open High and Open Low FinderThis script identifies candles where the open price matches the high price (Open High) and where the open price matches the low price (Open Low). It highlights these candles with labels directly on the chart, making it easy for traders to spot these conditions in real-time.
Features :
- Red "OH" label below candles for Open High.
- Green "OL" label above candles for Open Low.
Use this tool to enhance your trading insights.
** Disclaimer **: This script is for educational purposes only and should not be considered financial advice.
Outside Bar Strategy % (Alessio)Outside Bar Strategy %
This strategy is based on identifying Outside Bars, which occur when the current bar's high is higher than the previous bar's high and its low is lower than the previous bar's low. The strategy enters trades in the direction of the Outside Bar, offering a powerful way to capture price moves following a strong price expansion.
Key Features:
Long and Short Entries: The strategy enters a Long trade when the Outside Bar closes bullish (current close > open), and a Short trade when the Outside Bar closes bearish (current close < open).
Customizable Entry Levels: The entry point is calculated based on a customizable percentage of the Outside Bar's range, allowing flexibility for traders to fine-tune their entries at 50% or 70% of the bar's range.
Stop Loss (SL) and Take Profit (TP):
Stop Loss (SL) is automatically placed at the Outside Bar's low for Long trades and at its high for Short trades.
Take Profit (TP) is calculated as a percentage of the Outside Bar's range, with customizable settings for take-profit levels.
Visual Indicators:
Entry, Stop Loss, and Take Profit levels are plotted as lines on the chart, with customizable colors and widths for easy identification.
Labels are placed on the chart to indicate whether the trade is Long or Short, positioned above or below the Outside Bar's candlestick.
Alerts: Users can enable alerts to receive notifications when a trade is triggered, including details such as entry points and stop loss levels.
Strategy Parameters:
Entry Percentage: Set the entry level as a percentage of the Outside Bar's range (e.g., 50%, 70%).
Take Profit Percentage: Customize the Take Profit level as a percentage of the Outside Bar's range.
Customizable Colors and Line Widths: Adjust the colors and thickness of the entry, stop loss, and take profit lines to fit your preferences.
Alerts: Enable alerts to be notified when a trade is executed or when the entry level is reached.
This strategy is ideal for traders who want to capitalize on significant price moves after a breakout, with clear risk management through Stop Loss and Take Profit levels. The customizable features make it suitable for various market conditions and trading styles.
Adaptive Moving Averagewhat is the purpose of the indicator?
When short-length moving averages are used as trailing stops, they cause exiting the trade too early. Keeping the length value too high will result in exiting the transaction too late and losing most of the profits earned. I aimed to prevent this problem with this indicator.
what is "Adaptive Moving Average"?
it is a moving average that can change its length on each candle depending on the selected source.
what it does?
The indicator first finds the average lengths of the existing candles and defines different distances accordingly. When the moving average drawn by the indicator enters the area defined as "far" by the indicator, the indicator reduces the length of the moving average, preventing it from moving too far from the price, and continues to do so at different rates until the moving average gets close enough to the price. If the moving average gets close enough to the price, it starts to increase the length of the average and thus the adaptation continues.
how it does it?
Since the change of each trading pair is different in percentage terms, I chose to base the average height of the candles instead of using constant percentage values to define the concept of "far". While doing this, I used a weighted moving average so that the system could quickly adapt to the latest changes (you can see it on line 17). After calculating what percentage of the moving average this value is, I caused the length of the moving average to change in each bar depending on the multiples of this percentage value that the price moved away from the average (look at line 20, 21 and 22). Finally, I created a new moving average using this new length value I obtained.
how to use it?
Although the indicator chooses its own length, we have some inputs to customize it. First of all, we can choose which source we will use the moving average on. The "source" input allows us to use it with other indicators.
"max length" and "min length" determine the maximum and minimum value that the length of the moving average can take.
Apart from this, there are options for you to add a standard moving average to the chart so that you can compare the adaptive moving average, and bollinger band channels that you can use to create different strategies.
This indicator was developed due to the need for a more sophisticated trailing stop, but once you understand how it works, it is completely up to you to combine it with other indicators and create different strategies.
[blackcat] L2 BullBear OscillatorOVERVIEW
The " L2 BullBear Oscillator" is a custom trading indicator for TradingView that helps traders identify market trends, potential tops and bottoms, and the strength of trends using various moving averages and price relationships.
FEATURES
Calculates a base oscillator based on the close price relative to the highest and lowest prices over the past 60 periods.
Smoothes the oscillator using exponential moving averages (EMAs).
Determines market strength through relative strength indicators and moving averages.
Identifies potential tops and strong support levels based on specific conditions involving oscillators and price actions.
Plots several signals to help traders make informed decisions.
HOW TO USE
Install the script on your TradingView chart.
Customize the settings in the "Inputs" section:
Set the periods for the short-term and long-term EMAs.
Set the periods for the three SMAs used in calculations.
Interpret the plots:
BullBear Signal (Fuchsia Line): Indicates the overall market trend. Uptrends suggest buying opportunities, while downtrends suggest selling.
Decreasing BullBear Signal (Aqua Line): Highlights periods when the trend is weakening or turning bearish, signaling possible selling opportunities.
Potential Top Condition (Yellow Plot): Signals possible trend reversals from bullish to bearish, indicating times to consider taking profits or preparing for a downtrend.
High Price Condition (Yellow Plot): Indicates strong bullish momentum but also potentially overbought conditions, which might precede a correction.
Earning Condition (Red Line): Possibly signifies strong bullish signals, indicating good times to enter long positions.
Strong Support Condition (White Arrows): Signals potential bottoms or support levels, indicating buying opportunities.
Start Hiding Condition (Fuchsia Plot): Might indicate times to exit positions or reduce exposure due to unfavorable market conditions.
ALGORITHMS
Moving Averages:
Simple Moving Averages (SMAs): Used to calculate averages of price data over specified periods.
Exponential Moving Averages (EMAs): Used to give more weight to recent prices, making the moving averages more responsive to new data.
Oscillator Calculation:
The base oscillator is calculated based on the close price's position within the highest and lowest prices over 60 periods, normalized to a 0-100 scale.
This oscillator is then smoothed using EMAs to reduce noise and make trends more visible.
Relative Strength Indicator:
Calculated based on the close price's position within the highest and lowest prices over 20 periods, also normalized to a 0-100 scale.
This is smoothed using SMAs to get a more stable signal.
Condition Checks:
Various conditions are checked to identify potential tops, strong support, and other market states based on the relationships between these indicators and price actions.
LIMITATIONS
The script is based on historical data and does not guarantee future performance.
It is recommended to use the script in conjunction with other analysis tools.
The effectiveness of the strategy may vary depending on the market conditions and asset being traded.
NOTES
The script is designed for educational purposes and should not be considered financial advice.
Users are encouraged to backtest the strategy on a demo account before applying it to live trades.
THANKS
Special thanks to the TradingView community for their support and feedback.
Outside Bar Scanner (Alessio)Outside Bar Scanner
Description:
The Outside Bar Scanner is a powerful indicator designed to automatically detect outside bars (or outside candles) on any timeframe. This tool is perfect for traders who want to quickly spot reversal or trend continuation opportunities based on one of the most significant patterns in technical analysis.
Key Features:
Automatic Detection of Outside Bars:
Identifies and marks bullish (long) and bearish (short) outside bars directly on the chart.
Each outside bar is highlighted with a label and an icon for clear visibility.
Previous Candle High and Low Lines:
Draws two horizontal lines indicating the high and low of the candle preceding the outside bar.
These lines help you quickly identify key support and resistance levels.
Built-In Alerts:
Receive real-time notifications whenever a new outside bar is detected, so you’ll never miss a trading opportunity.
How to Use:
Add the indicator to your chart and let it automatically detect outside bars, marking key high and low levels.
Use the alerts to get notified whenever a new outside bar forms.
Combine this indicator with other strategies or technical tools to enhance your analysis.
Perfect For:
Traders operating in any market (forex, stocks, cryptocurrencies, indices).
Short-term, medium-term, or long-term traders, as it works seamlessly across all timeframes.
Anyone looking to simplify their technical analysis and respond quickly to market signals.
Note: This indicator is a support tool and does not provide direct trading signals. It is recommended to combine it with other analyses for well-informed decision-making.
Candles Volume HeatMap [BigBeluga]Candles Volume HeatMap
The Candle Volume HeatMap indicator is a unique and advanced tool that visualizes lower timeframe volume activity within higher timeframe candles, offering traders a granular perspective on volume distribution.
⚠️Important note: before using the indicator, it is necessary to apply it to the candles
🔵Key Features:
Volume HeatMap Visualization: The indicator breaks down each higher timeframe candle into 10 equal vertical segments (boxes) based on its high-to-low range. Each box represents a lower timeframe candle's volume activity, with more intense colors indicating stronger volume levels.
Lower Timeframe Integration: Automatically uses a timeframe 10x lower than the current chart. For example, on a 10-hour chart, it uses 1-hour candles to extract volume data.
POC (Point of Control): The highest volume box within each candle is marked with the volume value. The indicator also plots a horizontal POC line at the level of this box, highlighting significant areas of price interest. The POC line is removed once the price crosses it, ensuring the chart stays clean.
Delta Display (Optional): Traders can enable the Delta feature to analyze buyer vs. seller activity within each higher timeframe candle.
Delta is calculated by summing 10 lower timeframe candles: a bullish candle adds to buyers, while a bearish candle adds to sellers. Displays the net Delta percentage: positive values (white) indicate buyer dominance, while negative values (red) indicate seller dominance.
Dynamic Volume Scaling: The highest volume value in each candle is displayed inside its respective box, providing quick insights into critical price-volume levels.
🔵How It Works:
For each higher timeframe candle, the indicator analyzes 10 lower timeframe candles and maps their volume into 10 segments (boxes) between the high and low of the current candle.
The intensity of each box's color corresponds to the relative volume of the lower timeframe candle it represents.
The POC highlights the price level with the highest concentration of volume, aiding in identifying potential support/resistance zones.
Delta analysis offers additional insights into market sentiment by breaking down buyer and seller activity in each candle.
🔵Use Cases:
Spotting key volume areas within higher timeframe candles to identify support and resistance levels.
Analyzing volume concentration for potential breakout or reversal zones.
Leveraging Delta analysis to gauge market sentiment and confirm volume-based trends.
This indicator is ideal for traders seeking to combine volume analysis with price action, offering precise insights into volume distribution and market dynamics.
Breakout StrategyThe strategy aims to capture upward price movements (breakouts) by observing when the price exceeds a predefined range, known as the Donchian Channel, while also ensuring trading volume supports the move.
When Does It Open a Long Trade?
The strategy opens a long trade (buy position) when both of these conditions are met:
1. Price Breaks Above the Upper Band
- The current closing price is higher than the Upper Band of the Donchian Channel.
- This indicates a potential breakout, signaling upward momentum.
2. High Volume Confirmation
- The current trading volume is greater than 1.9 times the average volume over the Donchian Channel's length.
- This ensures the breakout is backed by significant market activity, reducing the chance of false signals.
Only when both conditions are true, the strategy will execute a long entry.
When Does It Close the Trade?
The strategy closes the long trade (exits the position) when:
1. Price Falls Below the Middle Band
- The closing price drops below the Middle Band of the Donchian Channel.
- This acts as a reversal signal, suggesting the upward momentum has weakened, and it’s time to exit the trade.
Wick Strategy AnalyzerOverview
This indicator analyzes candle wick patterns and evaluates their outcomes over a user-definable range (default is 1 year). Labels are rendered on the chart to mark events that meet the specified wick condition.
Features
Customizable Bar Range - users can specify the range of bars to include in the analysis. Default is 365 bars back from the most recent bar (bar 0)
Visual Indicators - labels are rendered to mark conditions & outcomes.
Wick Condition Met - an Orange label below the wick candle displaying the wick’s percentage size.
Outcome Labels - rendered above the candle after wick condition met candles
P (Green): Pass
F (Red): Fail
N (Navy): Neutral
I (Blue): Indicates the current candle has not yet closed, so the outcome is undetermined.
Input Parameters
Wick Threshold - minimum wick size required to qualify as a wick condition.
Success Margin - Defines the margin for classifying outcomes as Pass, Fail, or Neutral. E.g., a success margin of 0.01 requires the next candle's close to exceed the wick candle's close by 1% in order to be a Pass.
Bar Offset Start - starting offset from the last bar for analysis. A value of -1 will include all bars.
Bar Offset End - ending offset from the last bar for analysis. Bars outside this range are excluded.
Example Scenario
Goal: Analyze how candles with a wick size of at least 3.5% perform within a success margin of 1% over the past 540 days.
Setup:
Set Wick Threshold to 0.035
Set Success Margin to 0.01
Set Bar Range Start to 0
Set Bar Range End to 540.
Expected Output
Candles with a wick of at least 3.5% are labeled.
Outcome labels (P, F, or N) indicate performance.
Trend Reversal Probability [Algoalpha]Introducing Trend Reversal Probability by AlgoAlpha – a powerful indicator that estimates the likelihood of trend reversals based on an advanced custom oscillator and duration-based statistics. Designed for traders who want to stay ahead of potential market shifts, this indicator provides actionable insights into trend momentum and reversal probabilities.
Key Features :
🔧 Custom Oscillator Calculation: Combines a dual SMA strategy with a proprietary RSI-like calculation to detect market direction and strength.
📊 Probability Levels & Visualization: Plots average signal durations and their statistical deviations (±1, ±2, ±3 SD) on the chart for clear visual guidance.
🎨 Dynamic Color Customization: Choose your preferred colors for upward and downward trends, ensuring a personalized chart view.
📈 Signal Duration Metrics: Tracks and displays signal durations with columns representing key percentages (80%, 60%, 40%, and 20%).
🔔 Alerts for High Probability Events: Set alerts for significant reversal probabilities (above 84% and 98% or below 14%) to capture key trading moments.
How to Use :
Add the Indicator: Add Trend Reversal Probability to your favorites by clicking the star icon.
Market Analysis: Use the plotted probability levels (average duration and ±SD bands) to identify overextended trends and potential reversals. Use the color of the duration counter to identify the current trend.
Leverage Alerts: Enable alerts to stay informed of high or extreme reversal probabilities without constant chart monitoring.
How It Works :
The indicator begins by calculating a custom oscillator using short and long simple moving averages (SMA) of the midpoint price. A proprietary RSI-like formula then transforms these values to estimate trend direction and momentum. The duration between trend reversals is tracked and averaged, with standard deviations plotted to provide probabilistic guidance on trend longevity. Additionally, the indicator incorporates a cumulative probability function to estimate the likelihood of a trend reversal, displaying the result in a data table for easy reference. When probability levels cross key thresholds, alerts are triggered, helping traders take timely action.
Volume EquilibriumThe intent behind this indicator is to provide comprehensive information relating to volume compared to multiple timeframes. This indicator allows one to see what the market 'theoretically' sees as 'fair-value' whilst also allowing one to gauge where the price of a stock is headed.
Volume Equilibrium
The main indicator finds the difference between buying volume and selling volume, under the basic presumption that more buying volume indicates greater bullish sentiment and vice versa.
Buying Volume = volume when close price is higher than open price.
Selling Volume = volume when close price is lower than open price.
Volume Balance = Cumulative Buying Volume − Cumulative Selling Volume
Volume Balance is then expressed as a percentage by dividing by total volume
This indicator is composed of three different lengths of the same indicator. Short, Mid, and Long term representations of Volume Equilibrium. The difference between the mid and long term are highlighted so to make it easy to see where volume is going relative to a longer time frame.
HOW TO USE:
At 0 ---> Equilibrium ---> Equal Buying/Selling Volume
Above 0 ---> More buying Volume
Below 0 ---> More selling Volume
Using theory, it is assumed that the price is at a 'fair-value' when the buying/selling volume is at 0. This is of course relative to the respective timeframe of your choosing. More weight given to larger timeframes.
Volume Histogram
It is a basic volume chart that represents the total volume though has highlighted bars so to indicate buying(green) and selling(red) volume. This allows one to see what the indicator is based off of.
Open-Close Oscillator(not needed)
Calculates the average open-close for a selected timeframe and then provides the current closing price relative to that average open-close. Very simply put, values below 0 indicate bearish and values above 0 generally indicate bullishness. This indicator is for a quick reference of price action relative to volume.
Another way to use this indicator, though unique, is to analyze the separate open-close lines themselves. Using the open-close bands, bullishness is defined as increasing closing prices and bearish as decreasing closing prices. So, in regard to this indicator, bear sessions can be indicated by the opening line being below the closing line and bull sessions as the opening line being above. Use the 'flip' of these lines to your advantage, they are very helpful at capturing long continuous sentiment.
This indicator is composed of great information though I still think it best to use many different indicators to help you with your trades.
NOTE: Be aware of what we are trying to analyze, Volume. This means that one should also look out for divergences to capture early indications of reversals. This indicator can be leveraged greatly.
SW monthly Gann Days**Script Description:**
The script you are looking at is based on the work of W.D. Gann, a famous trader and market analyst in the early 20th century, known for his use of geometry, astrology, and numerology in market analysis. Gann believed that certain days in the market had significant importance, and he observed that markets often exhibited significant price moves around specific dates. These dates were typically associated with cyclical patterns in price movements, and Gann referred to these as "Gann Days."
In this script, we have focused on highlighting certain days of the month that Gann believed to have an influence on market behavior. The specific days in question are the **6th to 7th**, **9th to 10th**, **14th to 15th**, **19th to 20th**, **23rd to 24th**, and **29th to 31st** of each month. These ranges are based on Gann’s theory that there are recurring time cycles in the market that cause turning points or critical price movements to occur around certain days of the month.
### **Why Gann Used These Days:**
1. **Mathematical and Astrological Cycles:**
Gann believed that markets were influenced by natural cycles, and that certain dates (or combinations of dates) played a critical role in the price movements. These specific days are part of his broader theory of "time cycles" where the market would often change direction, reverse, or exhibit significant volatility on particular days. Gann's research was based on both mathematical principles and astrological observations, leading him to assign importance to these days.
2. **Gann's Universal Timing Theory:**
According to Gann, financial markets operate in a universe governed by geometric and astrological principles. These cycles repeat themselves over time, and specific days in a given month correspond to key turning points within these repeating cycles. Gann found that the 6th to 7th, 9th to 10th, 14th to 15th, 19th to 20th, 23rd to 24th, and 29th to 31st often marked significant changes in the market, making them particularly important for traders to watch.
3. **Market Psychology and Sentiment:**
These specific days likely correspond to key moments where market participants tend to react in predictable ways, influenced by past market behavior on similar dates. For example, news events or scheduled economic reports might fall within these time windows, causing the market to respond in a particular way. Gann's method involves using these cyclical patterns to predict turning points in market prices, enabling traders to anticipate when the market might make a reversal or face a significant shift in direction.
4. **Turning Points:**
Gann believed that markets often reversed or encountered critical points around specific dates. This is why he considered certain days more important than others. By identifying and focusing on these days, traders can better anticipate the market’s movement and make more informed trading decisions.
5. **Numerology:**
Gann also utilized numerology in his trading system, believing that numbers, and particularly certain key numbers, had significance in predicting market movements. The days selected in this script may correspond to numerological patterns that Gann identified in his analysis of the markets, such as recurring numbers in his astrological and geometric systems.
### **Purpose of the Script:**
This script highlights these "Gann Days" within a trading chart for 2024 and 2025. The color-coding or background highlighting is intended to draw attention to these dates, so traders can observe the potential for significant market movements during these times. By identifying these specific dates, traders following Gann's theories may gain insights into possible turning points, corrections, or key price movements based on the market's historical behavior around these days.
Overall, Gann’s use of specific days was based on his deep belief in the cyclical nature of the market and his attempt to tie those cycles to the natural laws of time, geometry, and astrology. By focusing on these dates, Gann aimed to give traders an edge in predicting significant market events and price shifts.
Volume Spike IndicatorThe Volume Spike Indicator is designed to identify significant volume spikes in the market. This tool helps traders recognize unusual trading activity, which may indicate potential reversals, breakouts, or increased volatility. The indicator uses a simple moving average (SMA) of volume over a specified period and highlights bars where the current volume exceeds a multiple of this average.
Features:
Volume SMA Calculation:
The indicator calculates the SMA of volume over a customizable period (default: 20 bars).
Spike Multiplier:
A threshold multiplier (default: 4) determines what qualifies as a "spike."
Spikes occur when the current volume is greater than the SMA multiplied by this threshold.
Visual Alerts:
If a spike is detected, a red cross ( Cross ) and X-shape ( X-Cross ) are plotted above the corresponding bar for easy identification.
How to Use:
Spot High-Activity Areas:
Use this indicator to find points of unusually high trading activity, which can signify key levels or moments of interest in the market.
Adjust Settings for Sensitivity:
Length : Change the SMA period to match your trading timeframe.
Spike Multiplier : Lower values detect smaller spikes; higher values focus on extreme events.
Combine with Other Indicators:
This tool works best when combined with price action analysis, support/resistance levels, or trend indicators to confirm trading signals.
Customization Options:
Length: Number of bars for SMA calculation (default: 20).
Spike Multiplier: Threshold for defining volume spikes (default: 4).
This indicator is suitable for traders looking to enhance their analysis by identifying abnormal market activity.
[Sapphire] JetStream (SWMA + Laguerre Filter)A Dynamic Fusion of Sine Weighted Moving Average and Laguerre Filter
The JetStream Indicator is a versatile tool that combines the Sine Weighted Moving Average (SWMA) and the Laguerre Filter. This can be used to dynamically visualize price movements overtime.
Core Components:
Sine Weighted Moving Average (SWMA):
The SWMA applies sine-weighted coefficients to recent price values, producing a responsive moving average that adapts to market conditions.
The plotted SWMA line changes its color based on directional movement:
Cyan: Upward trend.
Gray: Downward trend.
The sensitivity of the SWMA is controlled via the SWMA Length input, allowing users to fine-tune its responsiveness to price changes.
Laguerre Filter:
The Laguerre Filter uses recursive smoothing techniques to extract meaningful trends while minimizing lag.
The filter line dynamically changes color:
Blue: Upward momentum.
White: Downward momentum.
The Laguerre Alpha parameter adjusts the filter's smoothing intensity, giving users control over its reaction to price fluctuations.
Bar Repainting:
The bar coloring feature adds another layer of visualization by dynamically altering bar colors based on the interaction between the SWMA and Laguerre Filter:
White: Both SWMA and Laguerre Filter are trending upward.
Teal: Both SWMA and Laguerre Filter are trending downward.
Cyan: Divergence between the two (one trending upward, the other downward).
Midnight Open RangeMidnight Open Range with Breakouts & Targets
This indicator helps traders identify and analyze the Midnight Open Range (12:00 AM to 12:30 AM ET) for potential trading opportunities. Key features include:
1. Automatic detection and plotting of the Midnight Open Range
2. Display of multiple historical ranges (customizable)
3. Breakout signals for range violations
4. Multiple target levels based on the range size
5. Customizable colors and styles for easy visual analysis
Perfect for traders looking to capitalize on overnight price action and early morning trends. Ideal for forex, futures, and 24-hour markets.
Note: For best results, use on lower timeframes (5-minute or less) with 24-hour chart data.
Enhanced VIP-like IndicatorSettings Breakdown Tutorial: Optimizing a Trading Strategy
This guide explains the key trading strategy settings and how to customize them based on your trading style and goals. Each parameter is essential for tailoring the strategy to market conditions and your risk appetite.
1. Short Moving Average Length (Default: 9)
• Purpose: Tracks short-term trends using a small number of candles.
• Settings Tips:
• Smaller Values (e.g., 9): Quickly react to price changes, useful for fast-moving markets.
• Larger Values (e.g., 12-15): Generate smoother signals for less volatile trades.
2. Long Moving Average Length (Default: 21)
• Purpose: Identifies long-term trends.
• Settings Tips:
• Higher Values (e.g., 50): Spot broader trends at the expense of slower signals.
• Trend Analysis: The interaction of short and long MAs helps determine bullish or bearish trends (e.g., bullish when short MA crosses above long MA).
3. Higher Timeframe MA Length (Default: 200)
• Purpose: Filters long-term trends on a higher timeframe (e.g., daily).
• Settings Tips:
• 200 Periods: Standard for defining bullish (price above) or bearish (price below) markets.
• Adjustable: Use 100 for faster responses or stick with 200 for reliability.
4. Higher Timeframe (Default: 1 Day)
• Purpose: Defines the timeframe for the higher moving average.
• Settings Tips:
• Shorter Timeframes (e.g., 4 Hours): More frequent trading signals.
• Daily Timeframe: Best for swing trading and identifying macro trends.
5. RSI Length (Default: 14)
• Purpose: Measures momentum over a specific number of candles.
• Settings Tips:
• Lower Values (e.g., 7): More sensitive to price changes, ideal for quick trades.
• Higher Values (e.g., 20): Smooth signals for more stable markets.
6. RSI Overbought (70) and Oversold (30) Levels
• Purpose: Marks thresholds for overbought and oversold conditions.
• Settings Tips:
• Stricter Levels (e.g., 80/20): Fewer, higher-quality signals.
• Looser Levels (e.g., 65/35): More frequent signals, suitable for active trading.
7. Pivot Left Bars (5) and Pivot Right Bars (5)
• Purpose: Confirms pivot points (support/resistance) based on surrounding candles.
• Settings Tips:
• Higher Values (e.g., 10): Stronger but less frequent pivot points.
• Lower Values: More responsive, for traders seeking quick pivots.
8. Take Profit Percentage (Default: 2%)
• Purpose: Defines the profit level to exit trades.
• Settings Tips:
• Higher Values (e.g., 5%): For swing traders holding positions longer.
• Lower Values (e.g., 1%): For scalpers focusing on quick trades.
9. Minimum Volume (Default: 1,000,000)
• Purpose: Ensures sufficient liquidity for trading.
• Settings Tips:
• Lower Values: For lower-volume markets.
• Higher Values: Reduces risk in high-liquidity assets.
10. Stop Loss Percentage (Default: 1%)
• Purpose: Sets the maximum acceptable loss per trade.
• Settings Tips:
• Lower Values (e.g., 0.5%): Reduces risk, suited for conservative trading.
• Higher Values (e.g., 2%): Allows more price fluctuation, ideal for volatile markets.
11. Entry Conditions
• Options:
• MA Crossover & RSI: Combines trend-following and momentum for well-rounded signals.
• Pivot Breakout: Focuses on support/resistance breakouts for high-impact trades.
• Settings Tips:
• Trend-Following Traders: Use MA Crossover & RSI.
12. Exit Conditions
• Options:
• Opposite Signal: Exits when the trade’s opposite condition occurs (e.g., bullish to bearish).
• Fixed Take Profit/Stop Loss: Exits based on predefined profit/loss thresholds.
• Settings Tips:
• Opposite Signal: Ideal for trend-following strategies.
Summary
Customizing these settings aligns the strategy with your trading goals. Test configurations in a demo environment before live trading to refine the approach and optimize results. Always balance profit potential with risk management.
• Fixed Levels: Better for strict risk management.
• Breakout Traders: Opt for Pivot Breakout.
Leverage Aware Trade OptimizerWelcome to the Leverage-Aware Trade Optimizer (LATO)! I’m thrilled to have you exploring this dynamic algorithm! LATO combines advanced market oscillation tracking, leverage-aware trade optimization, and real-time market analysis to help you make smarter, more informed trading decisions. Whether you're just starting or you’re an experienced trader, LATO provides powerful tools and insights to enhance your strategies. LATO is here to support you in optimizing your trades with precision, so feel free to dive in and explore all the features. Let’s make your trading experience as effective and rewarding as possible. Safe trading!
Leverage-Aware Trade Optimizer (LATO)
Short Title: LATO
Category: Trading Tools / Technical Analysis
Overview
The Leverage-Aware Trade Optimizer (LATO) is a powerful algorithm designed to track and analyze market oscillations, identify reversal zones, and provide dynamic trading levels for optimal decision-making. With built-in risk management features, LATO enhances traders’ ability to make well-informed decisions based on a comprehensive range of market indicators, including price oscillations, probabilities, and leverage-related risks.
Key Features
Comprehensive Market Oscillation Tracking: LATO utilizes advanced indicators such as the Indexed Position Oscillator (IPO), Candle Relative Percentage (CRP), and Oscillating Range Indicator (ORI) to track price fluctuations and detect key market oscillations, providing a detailed view of price movements.
Dynamic Price Levels for Trading Decisions: The script calculates critical price levels such as WAP, WBP, XAP, and XBP. These weighted and expanded prices help identify potential support and resistance zones for accurate trade entries and exits.
Reversal Detection and Trend Identification: LATO is designed to recognize top and bottom reversal zones using user-defined thresholds (e.g., upper_reversal, lower_reversal). The algorithm signals potential trend changes with event markers such as UP, DOWN, UIP, and DIP, enabling traders to anticipate market reversals.
Risk and Leverage Mapping: By estimating liquidation levels for various leverage values (5x, 10x, 20x, etc.), LATO assists in risk management, helping traders visualize leverage exposure and optimize their trades according to risk tolerance.
Integrated Visualization and Event Labels: LATO enhances visual analysis by plotting key levels, trend lines, and event markers on the chart. Custom labels summarize critical values, including SOD (Sell Odds), BOD (Buy Odds), ORI (Oscillating Range Indicator), and PVI (Price Volatility Index), offering a quick, actionable summary for traders.
User Inputs
Orders Deviation (order_deviation): Controls the deviation for calculating trade levels.
Top Reversal (upper_reversal): Sets the threshold for the upper reversal zone.
Bottom Reversal (lower_reversal): Sets the threshold for the lower reversal zone.
How It Works
LATO tracks market oscillations through the Indexed Position Oscillator (IPO) and Candle Relative Percentage (CRP), dynamically adjusting as the market fluctuates. The algorithm then identifies key levels using weighted prices (e.g., WAP, WBP) and generates reversal signals based on defined thresholds.
Once the Leverage-Aware Trade Optimizer (LATO) is applied to a chart, it automatically calculates dynamic support and resistance levels and identifies potential buying or selling opportunities. The script also plots liquidation zones based on different leverage levels and visualizes these areas through color-coded lines.
Use Case Scenarios
Trend Reversal Detection: Identify when the market is likely to reverse based on the ORI and price action.
Dynamic Price Levels: Use the weighted price levels and trend lines to pinpoint entry/exit points.
Leverage Risk Management: Monitor liquidation levels and use them for managing risk while trading with leverage.
Oscillation Tracking: Track key oscillations for detecting overbought or oversold conditions.
Alert Setup for LATO
You can set up alerts based on the key conditions like UP, DOWN, UIP, and DIP, as well as specific market movements.
Down Trend Alert (DOWN): Alerts when there’s a downtrend, triggered by a crossover of WBP and BL5, with specific conditions for ORI and SOD.
Up Trend Alert (UP): Alerts when there’s an uptrend, triggered by a crossunder of WAP and SL5, with ORI below -0.5.
Upper Reversal Alert (UIP): Alerts when ORI crosses below the lower_reversal threshold.
Downward Reversal Alert (DIP): Alerts when ORI crosses above the upper_reversal threshold.
Conclusion
The Leverage-Aware Trade Optimizer (LATO) is a comprehensive trading tool designed for traders seeking to optimize their trade entries and exits. By combining multiple indicators, dynamic price levels, and reversal zone detection, LATO offers an advanced approach to market analysis and decision-making. Whether you’re trading with leverage or simply looking for trend confirmation, LATO provides the insights you need to maximize your trading potential.
Notes
This script is designed to be used on any time frame.
Adjust the order_deviation parameter based on the asset volatility you are trading.
The reversal thresholds (upper and lower) should be fine-tuned depending on market conditions.
20-34 Dual Dot Alerts OnlyPine Script that uses dual Donchian Channels (20-period and 34-period) and places tiny blue dots above candles when the highest price touches any upper Donchian Channel and below candles when the lowest price touches any lower Donchian Channel, without displaying the channels themselves, you can use the code.
### Explanation of the Code:
1. **Indicator Declaration**: The script is named "Dual Donchian Channels Dots Only" and overlays on the price chart.
2. **Input for Lengths**: Users can set lengths for two Donchian Channels (20 and 34 periods).
3. **Calculating Bands**: The upper and lower bands are calculated using `ta.highest` and `ta.lowest` functions over the specified periods.
4. **Touch Conditions**:
- `upperTouch`: Checks if the highest price of the current candle touches either of the upper bands.
- `lowerTouch`: Checks if the lowest price of the current candle touches either of the lower bands.
5. **Plotting Dots**:
- A tiny blue dot is plotted above bars where `upperTouch` is true.
- A tiny blue dot is plotted below bars where `lowerTouch` is true.
### How to Use:
1. Copy this script into TradingView’s Pine Script editor.
2. Save it and add it to your chart.
3. You will see tiny blue dots appear above or below candles based on whether they touch any of the upper or lower Donchian Bands.
This setup provides a clear visual indication of price interactions with both Donchian Channels while keeping the chart uncluttered by hiding the channel lines.