Trendanalyse
Stock vs Sector Comparison with HighlightsThis graph is meant as a support to select a stock that is expected to perform better than the sector.
The graph is based on weekly chart. So this is a medium / long term strategy.
How is expected to be used: when the stock has under performed the sector for some time, there is a natural tendence that it will catch up with the sector again. So, for example, if the color change from green to red, you should consider find another stock in the sector. If the stock looses the green color, but is not red yet, you should wait. And vice versa if you start with red. However, life is not that simple, as you can get fake signal. To mitigate this problem, you can adjust the threshold in the input setting, so just go for the signal after x weeks over/underperforming. You also need remember to select the sector in the settings, as the sector is not give automatically when you select the stock.
Below the sectors used:
Sector Name Ticker
S&P 500 (Market Index) SPY
Technology XLK
Financials XLF
Consumer Discretionary XLY
Industrials XLI
Health Care XLV
Consumer Staples XLP
Energy XLE
Utilities XLU
Communication Services XLC
Real Estate XLRE
Materials XLB
Divides company with IndexOverview:
This indicator simplifies the comparison of a stock's performance against a specified index, such as the Nifty 50. By calculating and plotting the ratio between the two, it provides a clear visual representation of relative strength.
Key Features:
-Direct Comparison: Easily compare any stock against a selected index.
-Customizable Index: Choose from a dropdown menu or input a custom index symbol.
-Visual Clarity: Maximizing the chart provides a clear view of the relative performance.
-SMA Overlay: Add a Simple Moving Average (SMA) to identify trends and potential entry/exit
points.
-Customizable Appearance: Adjust background color, text color, and label size for personalized
visualization.
How to Use:
Add the Indicator: Add the indicator to your chart.
Select the Index: Choose the desired index from the dropdown menu or input a custom symbol.
Analyze the Ratio:
-A rising ratio indicates the stock is outperforming the index.
-A falling ratio suggests underperformance.
-The SMA can help identify potential trends and momentum.
Customize the Appearance: Adjust the background color, text color, and label size to suit your preferences.
Benefits:
-Improved Decision Making: Gain insights into a stock's relative strength.
-Faster Analysis: Quickly compare multiple stocks against a benchmark index.
-Enhanced Visualization: Customize the chart for better understanding.
-By leveraging this indicator, you can make informed trading decisions and gain a deeper
understanding of market dynamics.
Accumulation Momentum IndicatorEveryone wants to be in a trend, I think this indicator does a great job at showing that key momentum that traders try and capitalize on everyday. I used a Stochastic Momentum Indicator (SMI) indicator. It's a lot like a slower MACD which allows me to capitalize on changing momentum. My goal was to make an indicator that was able to use a weighted mean of many accumulation/momentum indicators. This would give me a well rounded look to really see what direction the momentum and volume is heading.
I did some research on some of the best Accumulation and Momentum Indicators. I landed on 4.
The Accumulation Distribution line which measures the cumulative flow of money in or out of a security. It helps show how quickly money is going in and out of a commodity. The line moving up quickly indicates fast Accumulation while the A/C line is moving down quickly is shows falling Distribution. This can show the momentum and accumulation of a commodity in short and long term based off of Volume.
The On Balance Volume, OBV is a combination of Price Movement and Volume. If price closes higher then the previous bar volume is added while if the price closes lower volume is subtracted. This gives us an overall tally of whether volume is increasing with price or slowing down the momentum in the direction of the current trend. This gives us the ability to see if volume is supporting the price increasing (beginning/middle of a trend) or price is slowing down even though it is still heading in the direction of the current trend (signaling the end of the current trend).
The Force Index, this indicator measures the overall strength of the price movements. It does this by a calculation of price and volume. The close of the current bar subtracted by the previous multiplied by the volume. The result gives us either strong upward or downward motion. This adds magnitude to the overall movement/momentum of the indicator.
Lastly but most certainly not least is the Momentum indicator, (Price Momentum) a simple indicator that shows you the difference between the current close price and the close price from a specified period ago (Most commonly 14 periods/bars ago). Having this indicator is a must because it shows the speed at which price is accelerating or decelerating.
These 4 indicators together help round out the current volume, price movements, accumulation, and momentum of the current market. Since these indicators all have different scales and calculations I had to Normalize the Values to a 0-100 scale. This gives us 1 line and a much more readable easy to understand indicator. After they were normalized I gave them a weighted average that you can control. So lets say you cared more about the Force Index and the OBV rather then the Momentum and the Accumulation Distribution indicators, you would be able to give them more weight in the overall calculation as well as 0 out those you don't even want involved.
I hope the flexibility and the combination of 4 strong Accumulation Momentum indicators helps you better gauge the direction a commodity might head. The way it's used is when the Accumulation Momentum line is Above 50 buying pressure is stronger then selling pressure. An Accumulation Momentum line Below 50 suggests that distribution is more dominant in the current market. This indicator combines four different methods of analyzing price and volume to give you a single composite momentum score, making it easier to visualize when a commodity is being accumulated or distributed and how quickly this process is happening. It helps you track market sentiment based on both price movement and volume, with a clear, visual representation of buying and selling pressure.
Please let me know what you think and how you think I might be able to improve the script. Enjoy!
Multi-Timeframe Volume-Weighted RSIA multiple timeframe volume-weighted RSI.
Blue Line = Current Time Frame
Orange Line = Select your desired Time Frame
e.g. Blue = Daily, Orange = Weekly
1. Incorporates Market Commitment
Value: By factoring in volume, the volume-weighted RSI captures the intensity of trading activity behind price movements.
Why it’s useful:
Regular RSI measures price momentum but does not differentiate between moves with high or low trading activity.
A volume-weighted RSI assigns greater importance to price changes occurring on high volume, reflecting stronger market conviction.
2. Improved Signal Reliability
Value: Signals generated by a volume-weighted RSI (e.g., overbought or oversold conditions) may be more reliable because they account for the level of trader participation.
Why it’s useful:
Low-volume price movements often result in false signals or "noise."
A volume-weighted RSI helps filter out such noise, reducing the likelihood of false breakouts or fake reversals.
3. Better Divergence Detection
Value: Divergences between price action and the RSI (bullish or bearish divergences) are more meaningful when confirmed by volume.
Why it’s useful:
Regular RSI might show divergence in price momentum, but this divergence might lack substance if the underlying volume is weak.
A volume-weighted RSI ensures that divergence signals align with periods of significant market participation.
4. Enhanced Trend Analysis
Value: Trends supported by strong volume are given more weight, helping traders better identify and follow trends.
Why it’s useful:
Regular RSI might show overbought or oversold signals prematurely during strong trends.
Volume-weighted RSI considers whether trends are backed by significant market activity, helping avoid early exits.
5. More Meaningful Overbought/Oversold Levels
Value: Levels like 70 (overbought) and 30 (oversold) are more credible when supported by volume.
Why it’s useful:
In a regular RSI, overbought or oversold levels might occur on light trading, leading to false reversals.
A volume-weighted RSI ensures these levels are triggered by substantial market participation, increasing their reliability.
Practical Applications:
Trend Confirmation: Use the volume-weighted RSI to confirm whether momentum in a trend is supported by strong participation.
Divergence Spotting: Identify divergences with more confidence by prioritizing those with volume support.
Filtering False Breakouts: Avoid entering trades during weak volume phases by focusing on volume-weighted RSI signals.
Limitations:
Market Type Dependency: Its usefulness may diminish in low-volume assets or markets where volume data is unavailable (e.g., forex).
ICT Candle Block (fadi)ICT Candle Block
When trading using ICT concepts, it is often beneficial to treat consecutive candles of the same color as a single entity. This approach helps traders identify Order Blocks, liquidity voids, and other key trading signals more effectively.
However, in situations where the market becomes choppy or moves slowly, recognizing continuous price movement can be challenging.
The ICT Candle Block indicator addresses these challenges by combining consecutive candles of the same color into a single entity. It redraws the resulting candles, making price visualization much easier and helping traders quickly identify key trading signals.
FVGs and Blocks
In the above snapshot, FVGs/Liquidity Voids, Order Blocks, and Breaker Blocks are easily identified. By analyzing the combined candles, traders can quickly determine the draw on liquidity and potential price targets using ICT concepts.
Unlike traditional higher timeframes that rigidly combine lower timeframe candles based on specific start and stop times, this indicator operates as a "mixed timeframe." It combines all buying and all selling activities into a single candle, regardless of when the transactions started and ended.
Limitations
There are currently TradingView limitations that affect the functionality of this indicator:
TradingView does not have a Candle object; therefore, this indicator relies on using boxes and lines to mimic the candles. This results in wider candles than expected, leading to misalignment with the time axis below (plotcandle is not the answer).
There is a limit on the number of objects that can be drawn on a chart. A maximum of 500 candles has been set.
A rendering issue may cause a sideways box to appear across the chart. This is a display bug in TradingView; scroll to the left until it clears.
Trading the TrendTrading the Trend Indicator by Andrew Abraham (TASC, 1998)
The Trading the Trend indicator, developed by Andrew Abraham, combines volatility and trend-following principles to identify market direction. It uses a 21-period weighted average of the True Range (ATR) to measure volatility and define uptrends and downtrends.
Calculation: The True Range (highest high minus lowest low) is smoothed using a 21-period weighted moving average. This forms the basis for the trend filter, setting dynamic thresholds for trend identification.
Uptrend: Higher highs are confirmed when price stays above the upper threshold, signaling long opportunities.
Downtrend: Lower lows are identified when price stays below the lower threshold, favoring short positions.
This system emphasizes trading only in the direction of the prevailing trend, filtering out market noise and focusing on sustained price movements.
The trendline changes her color. When there is an uptrend the trendline is blue and when the trend is downward the trendline is yellow.
ADX Breakout Strategy█ OVERVIEW
The ADX Breakout strategy leverages the Average Directional Index (ADX) to identify and execute breakout trades within specified trading sessions. Designed for the NQ and ES 30-minute charts, this strategy aims to capture significant price movements while managing risk through predefined stop losses and trade limits.
This strategy was taken from a strategy that was posted on YouTube. I would link the video, but I believe is is "against house rules".
█ CONCEPTS
The strategy is built upon the following key concepts:
ADX Indicator: Utilizes the ADX to gauge the strength of a trend. Trades are initiated when the ADX value is below a certain threshold, indicating potential for trend development.
Trade Session Management: Limits trading to specific hours to align with optimal market activity periods.
Risk Management: Implements a fixed dollar stop loss and restricts the number of trades per session to control exposure.
█ FEATURES
Customizable Stop Loss: Set your preferred stop loss amount to manage risk effectively.
Trade Session Configuration: Define the trading hours to focus on the most active market periods.
Entry Conditions: Enter long positions when the price breaks above the highest close in the lookback window and the ADX indicates potential trend strength.
Trade Limits: Restrict the number of trades per session to maintain disciplined trading.
Automated Exit: Automatically closes all positions at the end of the trading session to avoid overnight risk.
█ HOW TO USE
Configure Inputs :
Stop Loss ($): Set the maximum loss per trade.
Trade Session: Define the active trading hours.
Highest Lookback Window: Specify the number of bars to consider for the highest close.
Apply the Strategy :
Add the ADX Breakout strategy to your chart on TradingView.
Ensure you are using a 30-minute timeframe for optimal performance.
█ LIMITATIONS
Market Conditions: The strategy is optimized for trending markets and may underperform in sideways or highly volatile conditions.
Timeframe Specific: Designed specifically for 30-minute charts; performance may vary on different timeframes.
Single Asset Focus: Primarily tested on NQ and ES instruments; effectiveness on other symbols is not guaranteed.
█ DISCLAIMER
This ADX Breakout strategy is provided for educational and informational purposes only. It is not financial advice and should not be construed as such. Trading involves significant risk, and you may incur substantial losses. Always perform your own analysis and consider your financial situation before using this or any other trading strategy. The source material for this strategy is publicly available in the comments at the beginning of the code script. This strategy has been published openly for anyone to review and verify its methodology and performance.
FRAMA Channel [BigBeluga]This is a trend-following indicator that utilizes the Fractal Adaptive Moving Average (FRAMA) to create a dynamic channel around the price. The FRAMA Channel helps identify uptrends, downtrends, and ranging markets by examining the relationship between the price and the channel's boundaries. It also marks trend changes with arrows, optionally displaying either price values or average volume at these key points.
🔵 IDEA
The core idea behind the FRAMA Channel indicator is to use the fractal nature of markets to adapt to different market conditions. By creating a channel around the FRAMA line, it not only tracks price trends but also adapts its sensitivity based on market volatility. When the price crosses the upper or lower bands of the channel, it signals a potential shift in trend direction. If the price remains within the channel and crosses over the upper or lower bands without a breakout, the market is likely in a ranging phase with low momentum. This adaptive approach makes the FRAMA Channel effective in both trending and ranging market environments.
🔵 KEY FEATURES & USAGE
◉ Dynamic FRAMA Channel with Trend Signals:
The FRAMA Channel uses a fractal-based moving average to create an adaptive channel around the price. When the price crosses above the upper band, it signals an uptrend and plots an upward arrow with the price (or average volume) value. Conversely, when the price crosses below the lower band, it signals a downtrend and marks the point with a downward arrow. This dynamic adaptation to market conditions helps traders identify key trend shifts effectively.
◉ Ranging Market Detection:
If the price remains within the channel, and only the high crosses the upper band or the low crosses the lower band, the indicator identifies a ranging market with low momentum. In this case, the channel turns gray, signaling a neutral trend. This is particularly useful for avoiding false signals during periods of market consolidation.
◉ Color-Coded Candles and Channel Bands:
Candles and channel bands are color-coded to reflect the current trend direction. Green indicates an upward trend, blue shows a downward trend, and gray signals a neutral or ranging market. This visual representation makes it easy to identify the market condition at a glance, helping traders make informed decisions quickly.
◉ Customizable Display of Price or Average Volume:
On trend change signals, the indicator allows users to choose whether to display the price at the point of trend change or the average volume of 10 bars. This flexibility enables traders to focus on the information that is most relevant to their strategy, whether it's the exact price entery or the volume context of the market shift. Displaying the average volume allows to see the strength of the trend change.
Price Data:
Average Volume of points:
🔵 CUSTOMIZATION
Length & Bands Distance: Adjust the length for the FRAMA calculation to control the sensitivity of the channel. A shorter length makes the channel more reactive to price changes, while a longer length smooths it out. The Bands Distance setting determines how far the bands are from the FRAMA line, helping to define the breakout and ranging conditions.
Signals Data: Choose between displaying the price or the average volume on trend change arrows. This allows traders to focus on either the exact price level of trend change or the market volume context.
Color Settings: Customize the colors for upward momentum, downward momentum, and neutral states to suit your charting preferences. You can also toggle whether to color the candles based on the momentum for a clearer visual of the trend direction.
The FRAMA Channel indicator adapts to market conditions, providing a versatile tool for identifying trends and ranging markets with clear visual cues.
Optimized Grid with KNN_2.0Strategy Overview
This strategy, named "Optimized Grid with KNN_2.0," is designed to optimize trading decisions using a combination of grid trading, K-Nearest Neighbors (KNN) algorithm, and a greedy algorithm. The strategy aims to maximize profits by dynamically adjusting entry and exit thresholds based on market conditions and historical data.
Key Components
Grid Trading:
The strategy uses a grid-based approach to place buy and sell orders at predefined price levels. This helps in capturing profits from market fluctuations.
K-Nearest Neighbors (KNN) Algorithm:
The KNN algorithm is used to optimize entry and exit points based on historical price data. It identifies the nearest neighbors (similar price movements) and adjusts the thresholds accordingly.
Greedy Algorithm:
The greedy algorithm is employed to dynamically adjust the stop-loss and take-profit levels. It ensures that the strategy captures maximum profits by adjusting thresholds based on recent price changes.
Detailed Explanation
Grid Trading:
The strategy defines a grid of price levels where buy and sell orders are placed. The openTh and closeTh parameters determine the thresholds for opening and closing positions.
The t3_fast and t3_slow indicators are used to generate trading signals based on the crossover and crossunder of these indicators.
KNN Algorithm:
The KNN algorithm is used to find the nearest neighbors (similar price movements) in the historical data. It calculates the distance between the current price and historical prices to identify the most similar price movements.
The algorithm then adjusts the entry and exit thresholds based on the average change in price of the nearest neighbors.
Greedy Algorithm:
The greedy algorithm dynamically adjusts the stop-loss and take-profit levels based on recent price changes. It ensures that the strategy captures maximum profits by adjusting thresholds in real-time.
The algorithm uses the average_change variable to calculate the average price change of the nearest neighbors and adjusts the thresholds accordingly.
Correlation Confluence Trend IndicatorCorrelation Confluence Trend Indicator
Overview
The Correlation Confluence Trend Indicator combines exponential moving averages (EMAs) and statistical correlation measures to identify high-confidence trend alignments between an asset and a benchmark. By filtering signals through correlation strength, this indicator highlights opportunities when the asset and benchmark move together. In other words, it defines a trend and then uses correlation strength and the trend of a second asset to identify high-confidence trends.
Key Features
Dual EMA Trend Analysis :
Calculates fast and slow EMAs for both the asset and the selected benchmark (e.g., SPY) to identify bullish and bearish trends.
Correlation Strength Filtering :
Evaluates correlation between the asset and benchmark, identifying stronger-than-average relationships based on the mean and standard deviation.
Background Color Coding :
- Green : Strong correlation, both asset and benchmark bullish.
- Aqua : Weak correlation, both asset and benchmark bullish.
- Red : Strong correlation, both asset and benchmark bearish.
- Fuchsia : Weak correlation, both asset and benchmark bearish.
- Orange : Strong correlation, benchmark bullish, asset bearish.
- Yellow : Weak correlation, benchmark bullish, asset bearish.
- Purple : Strong correlation, benchmark bearish, asset bullish.
- Lime : Weak correlation, benchmark bearish, asset bullish.
Visual Trend Indicators :
Plots fast and slow EMAs for the asset, dynamically colored based on aggregate trend signals. The color of this corresponds to the main trend signal.
Inputs
Benchmark Symbol : Symbol of the benchmark asset to compare against.
Fast EMA Length : Period for the fast EMA calculation.
Slow EMA Length : Period for the slow EMA calculation.
Correlation Length : Number of bars for correlation calculation.
Correlation Mean Length : Number of bars for mean and standard deviation calculation.
Std Dev Multiplier : Multiplier for standard deviation to define correlation strength. When the correlation is Std Dev Multiplier standard deviations above the mean, it counts as a strong correlation.
Set Background Color : Toggle background coloring on or off.
Notes
This indicator is primarily designed for trend-following strategies. By combining trend analysis and correlation filtering, it ensures that signals occur during aligned market conditions, reducing false signals.
Before incorporating this indicator into your trading strategy:
Always backtest on historical data to evaluate its performance before committing capital.
Use proper risk management to control position sizes and mitigate potential losses.
Remember that no indicator guarantees success. I'm quite proud of this one, but it's not the holy grail.
TASC 2024.12 Dynamic ADX Histogram█ OVERVIEW
This script introduces a new version of the ADX oscillator, designed by Neil Jon Harrington and featured in the "Revisualizing The ADX Oscillator" article from the December 2024 edition of TASC's Traders' Tips .
█ CONCEPTS
The directional movement index (DMI+ and DMI−) and average directional index (ADX) indicators have long been popular with technical analysts. Developed by J. Welles Wilder in the 1970s, these indicators provide information about the direction and strength of price movements across bars. The DMI+ measures positive price movement, the DMI- measures negative price movement, and the ADX gauges the average strength of price trends. Although these indicators can provide helpful insights into price action and momentum, Neil Jon Harrington argues they are often misunderstood or misapplied.
Harrington's indicator, the Dynamic ADX Histogram (DADX), applies directional information to the ADX based on DMI+ and DMI- values to create a single oscillator centered around 0. The indicator displays the oscillator as a histogram with dynamic colors based on ADX movements and user-defined strength thresholds. The author believes this modification of the ADX and DMI data offers a more intuitive visualization of the information provided by Wilder's calculations.
An additional feature of the DADX is the option to use average (smooth) DMI+ and DMI- values in the oscillator's calculation, which reduces noise and choppiness at the cost of added lag.
█ USAGE
The "ADX Length" input determines the number of bars in the DMI and ADX calculation. The "DMI Smoothing Length" input controls the number of bars in the DMI smoothing calculation. Use a value of 1 for non-smoothed DMI data.
The sign of the DADX indicates the direction of price movements based on the difference between the smoothed DMI+ and DMI- values. The absolute value of the oscillator corresponds to the ADX, representing the trend strength.
The "Low Threshold" and "High Threshold" inputs define the ADX thresholds for categorizing trending, non-trending, and exhaustion states. The low threshold specifies the minimum absolute oscillator value required to indicate a trend, and the high threshold marks the absolute value where trend strength is excessive, possibly suggesting an upcoming consolidation or reversal. The indicator colors the histogram based on these thresholds and changes in the ADX, with brighter colors denoting a strengthening trend and darker colors signaling a weakening trend.
Weighted Average Strength Index (WASI)Weighted Average Strength Index (WASI)
The Weighted Average Strength Index (WASI) is a variation of the standard RSI. It uses the Weighted Moving Average (WMA) instead of the Running Moving Average (RMA), making it more responsive to recent price changes. The hypothesis is that this weighted calculation might better capture momentum shifts, providing traders with more timely insights.
How to Use:
Backtest WASI on your preferred assets and timeframes to evaluate its effectiveness for your strategy.
Use for trend following or mean reversion :
- Overbought/Oversold (OB/OS) levels can signal potential mean-reversion opportunities.
- Midline (50 level) crossovers can be used for trend-following strategies.
- WASI and its moving average (MA) crossovers offer additional trend-following or reversal signals.
Parameters and Their Functions:
WASI Length: Determines the number of periods for WASI calculation. A longer length smooths the indicator but increases lag, while a shorter length makes it more sensitive. (When in doubt, go longer).
Source: The price source for the calculation (e.g., close, open, high, or low).
MA Type: Specifies the type of moving average applied to the WASI (options include SMA, EMA, WMA, HMA, and others).
MA Length: The number of periods for the moving average used on the WASI. Higher will lead to a smoother moving average.
Indicator Features:
Dynamic OB/OS Levels: Default overbought (70) and oversold (30) levels help identify potential reversal zones.
Midline Crossover: WASI crossing above or below the 50 level may indicate a trend shift.
WASI-MA Crossover: Crossovers between WASI and its moving average can signal trend-following or mean-reversion opportunities.
Disclaimer:
This indicator is a tool for analysis and should be used in conjunction with other forms of analysis or confirmation. Past performance does not guarantee future results.
Multi-Timeframe ATRsThis Multi-Timeframe ATR Indicator displays the Average True Range (ATR) values from multiple timeframes on a single chart, allowing traders to assess market volatility across different time periods. The indicator calculates and plots the ATR for the 1-hour, 3-hour, 4-hour, 1-day, and 2-day timeframes, with the option to toggle each timeframe on or off based on user preferences. By visualizing these ATR values, traders can identify potential price movement expectations for various timeframes and better understand how volatility is shifting across the market. This tool is handy for traders who want to gauge volatility over different time periods and incorporate it into their trading strategies.
By evaluating higher timeframes when entering trades, a trader can better understand market conditions. This insight helps the trader make informed decisions about whether to remain in the trade for a longer period.
The indicator is fully customizable, with color-coded plots for each timeframe and optional labels that display the ATR values directly on the chart. It is ideal for traders looking to add volatility insights to their technical analysis without cluttering their charts.
TechniTrend: Volatility and MACD Trend Highlighter🟦 Overview
The "Candle Volatility with Trend Prediction" indicator is a powerful tool designed to identify market volatility based on candle movement relative to average volume while also incorporating trend predictions using the MACD. This indicator is ideal for traders who want to detect volatile market conditions and anticipate potential price movements, leveraging both price changes and volume dynamics.
It not only highlights candles with significant price movements but also integrates a trend analysis based on the MACD (Moving Average Convergence Divergence), allowing traders to gauge whether the market momentum aligns with or diverges from the detected volatility.
🟦 Key Features
🔸Volatility Detection: Identifies candles that exceed normal price fluctuations based on average volume and recent price volatility.
🔸Trend Prediction: Uses the MACD indicator to overlay trend analysis, signaling potential market direction shifts.
🔸Volume-Based Analysis: Integrates customizable moving averages (SMA, EMA, WMA, etc.) of volume, providing a clear visualization of volume trends.
🔸Alert System: Automatically notifies traders of high-volatility situations, aiding in timely decision-making.
🔸Customizability: Includes multiple settings to tailor the indicator to different market conditions and timeframes.
🟦 How It Works
The indicator operates by evaluating the price volatility in relation to average volume and identifying when a candle's volatility surpasses a threshold defined by the user. The key calculations include:
🔸Average Volume Calculation: The user selects the type of moving average (SMA, EMA, etc.) to calculate the average volume over a set period.
🔸Volatility Measurement: The indicator measures the body change (difference between open and close) and the high-low range of each candle. It then calculates recent price volatility using a standard deviation over a user-defined length.
🔸Weighted Index: A unique index is created by dividing price change by average volume and recent volatility.
🔸Highlighting Volatility: If the weighted index exceeds a customizable threshold, the candle is highlighted, indicating potential trading opportunities.
🔸Trend Analysis with MACD: The MACD line and signal line are plotted and adjusted with a user-defined multiplier to visualize trends alongside the volatility signals.
🟦 Recommended Settings
🔸Volume MA Length: A default of 14 periods for the average volume calculation is recommended. Adjust to higher periods for long-term trends and shorter periods for quick trades.
🔸Volatility Threshold Multiplier: Set at 1.2 by default to capture moderately significant movements. Increase for fewer but stronger signals or decrease for more frequent signals.
🔸MACD Settings: Default MACD parameters (12, 26, 9) are suggested. Tweak based on your trading strategy and asset volatility.
🔸MACD Multiplier: Adjust based on how the MACD should visually compare to the average volume. A multiplier of 1 works well for most cases.
🟦 How to Use
🔸Volatile Market Detection:
Look for highlighted candles that suggest a deviation from typical price behavior. These candles often signify an entry point for short-term trades.
🔸Trend Confirmation:
Use the MACD trend analysis to verify if the highlighted volatile candles align with a bullish or bearish trend.
For example, a bullish MACD crossover combined with a highlighted candle suggests a potential uptrend, while a bearish crossover with volatility signals may indicate a downtrend.
🔸Volume-Driven Strategy:
Observe how volume changes impact candle volatility. When volume rises significantly and candles are highlighted, it can suggest strong market moves influenced by big players.
🟦 Best Use Cases
🔸Trend Reversals: Detect potential trend reversals early by spotting divergences between price and MACD within volatile conditions.
🔸Breakout Strategies: Use the indicator to confirm price breakouts with significant volume changes.
🔸Scalping or Day Trading: Customize the indicator for shorter timeframes to capture rapid market movements based on volatility spikes.
🔸Swing Trading: Combine volatility and trend insights to optimize entry and exit points over longer periods.
🟦 Customization Options
🔸Volume-Based Inputs: Choose from SMA, EMA, WMA, and more to define how average volume is calculated.
🔸Threshold Adjustments: Modify the volatility threshold multiplier to increase or decrease sensitivity based on your trading style.
🔸MACD Tuning: Adjust MACD settings and the multiplier for trend visualization tailored to different asset classes and market conditions.
🟦 Indicator Alerts
🔸High Volatility Alerts: Automatically triggered when candles exceed user-defined volatility levels.
🔸Bullish/Bearish Trend Alerts: Alerts are activated when highlighted volatile candles align with bullish or bearish MACD crossovers, making it easier to spot opportunities without constantly monitoring the chart.
🟦 Examples of Use
To better understand how this indicator works, consider the following scenarios:
🔸Example 1: In a strong uptrend, observe how volume surges and volatility highlight candles right before price consolidations, indicating optimal exit points.
🔸Example 2: During a downtrend, see how the MACD aligns with volume-driven volatility, signaling potential short-selling opportunities.
EMAs CrossThis script generates a line that changes color when evaluating the values and intersections of the 7-, 14-, and 42-day exponential averages, indicating possible entry and exit points.
In general, yellow indicates the beginning of an uptrend, green confirms an uptrend, and brown indicates a downtrend.
Using this script together with the RSI can help you make decisions about the best times to enter and exit positions.
The script was created to generate an indicator in a separate window from the main chart, but adding this indicator to the main window can help you visualize and interpret market movements.
Order blocksHi all!
This indicator will show you found order blocks that can be used as supply or demand. It's my take on trying to create good order blocks and I hope it makes sense.
First off I suggest to verify the current trend before using an order block. This can be done in a variety of ways, one way could be to use my other script "Market structure" () which I use and suggest.
You can configure the indicator to behave differently depending on settings. These are the settings available:
• The order blocks created can be found in any higher timeframe defined in "Timeframe"
• The number of active order blocks are defined in "Count". If an order block is found the earliest order block will be replaced
• You can choose the type of order blocks that are found ("Bullish", "Bearish " or "Both") in "Type"
• The old order blocks can be kept if "Keep history" is checked
• Order blocks that are found are not removed when mitigated (entered) but when a new one appears. They can be removed when they are broken by price if "Remove broken zones" are checked
There is also a setting section called "Requirements" that defines what is required for an order block to be created. These are the settings:
• "Take out"
Check this if you want the base of the order block (the candle where the zone is drawn from (high and low)) to have to take out the previous candle (be higher or lower depending if the order block is bullish or bearish).
• "Consecutive rising/falling"
Each following candle in the reaction (the 3 reaction candles) needs to reach higher or lower (depending on bullish or bearish). Check this if you want that to be true.
• "Reaction"
Some sort of reaction is needed from the 3 candles creating the order block. This reaction is based on the value of the Average True Length (ATR) of length 14. You can here define a factor of the value from the ATR that these 3 candles needs to move in price. A higher need for a reaction (higher factor of the ATR) will create lesser zones. You can also choose to show this limit with the checkbox.
• "Fair Value Gap"
The reaction needs to create a gap (imbalance) in price. This gap is known as a "Fair Value Gap" and is created when the last candle's wick does not meet with the base candle's wick. Check this if you want this to be needed.
After these settings you can also choose the colors of the created zones. The ones that are active (called "Zones"), the ones that are replaced ("Replaced zones") and the ones that are broken ("Broken zones") (if this is enabled in "Remove broken zones").
I'm using my library "Touched" to be able to show you labels when the order blocks have a retest, false breakout and breakout. These labels can be hidden if you disable the labels under the style tab in the indicator settings.
The concept of order blocks is widely used among traders and can provide you with good supply or demand zones. I hope that this indicator makes sense.
My todo-list has a few things, but top of that list is adding alerts for zone interactions or creations. Please feel free to say what you want to be coded!
The order blocks in the publication chart are found in weekly timeframe but are shown on the daily timeframe. Other than that the image shows you zones from the default settings (which are based on the daily timeframe).
Best of luck trading!
Bull Bear Candles with Volume ProfileUser Guide for Bull Bear Candles Indicator with Keltner Channels
Author: NellyN
Introduction
This indicator helps identify potential bullish and bearish trends in the market by analyzing buying and selling volume over two configurable timeframes. It calculates the percentage of buying and selling volume and displays the current market condition based on two moving averages for 2 periods.
Key Features
• Volume Analysis : Calculates Buy and Sell Volume for two configurable timeframes (e.g., 5 min, 15 min, 15 min. and 1 hour, etc.) and displays them as percentages.
• Moving Averages : Uses one Moving Average (MA) for two different time periods to identify trends (uptrend when shorter-term MA is above longer-term MA). You can also choose other Moving Average types like SMA, EMA, WMA, RMA, VWMA, or HMA.
• Colored Candles : Candles are colored green for bullish conditions, red for bearish conditions, and gray for neutral conditions.
• Market Condition Labels : Displays labels in table-view indicating the current market condition based on Buy and Sell Volume (Very Bullish, Very Bearish, Bullish/Bearish Retracement, Chop).
• Alerts: Generates alerts for potential buy and sell signals based on indicator conditions (Note: Enable alerts in the indicator settings).
• Visual Signals: Provides visual signals through colored candles and market condition labels in addition to alerts.
Input Parameters
• Source: Close price (default) or Heikin Ashi
• Timeframe: Select the timeframe for price and volume data used in the indicator (e.g., Daily, Hourly).
• Colored Candles On: Enable (True) or disable (False) coloring candles based on market conditions.
• Enable Alerts: Enable (True) or disable (False) alerts for buy/sell signals.
• Length of MA: Sets the length for the MAs used in trend identification (minimum 1).
• Lookback Period Vol. 1 & 2: Define the timeframes used to calculate buying and selling volume and the MA calculation (e.g., 5 min, 15 min).
Understanding the Outputs
• Cloud Fill: The area between two MAs is filled with a color that reflects the trend (green for uptrend, red for downtrend).
• Table: Shows Buy Volume, Sell Volume, Buy Percentage, Sell Percentage, and the current Market Condition Labels. (If you decide to see them uncomment them from the code simply removing the // in front of the code)
• Colored Candles and Market Condition Labels: Look for green candles and bullish labels for potential buying opportunities, and vice versa for red candles and bearish labels.
Bullish green label appears when short-term MA is above long-term MA AND Buy Volume percentage is greater than 50%.
Red cross for exiting long entry appears when we have bearish volume OR bearish crossover of the MA for the 2 periods.
Bearish red label appears when short-term MA is below long-term MA AND Buy Volume percentage is less than 50%.
Green cross for exiting short entry appears when we have bullish volume OR bullish crossover of the MA for the 2 periods.
• Bullish/Bearish Retracement: The moving averages indicate a potential trend reversal, while the Buy Volume percentage suggests a continuation of the prior trend. The candle color may be green, red, or gray depending on the current price position relative to the moving averages.
• Chop (Gray Candle): The moving averages are flat and the Buy Volume percentage is not significantly above or below 50%.
• Buy/Sell Alerts: The indicator generates alerts based on specific conditions, but these should be used in conjunction with other trading strategies and careful risk management.
Important Notes
• This indicator is for informational purposes only and should not be considered financial advice. Back-test the indicator with historical data to understand its performance before using it for live trading.
• Combine this indicator with other technical analysis tools.
3 Confirmation BearThe "3 Confirmation Bear" indicator is designed to help traders identify strong bearish market conditions with three key confirmations:
Price Below EMA15:
The price trading below the 15-period Exponential Moving Average (EMA) signals bearish momentum.
RSI Below a Threshold:
The Relative Strength Index (RSI) is below a user-defined threshold (default: 50), confirming a lack of bullish strength and momentum favoring the downside.
Downtrend Confirmation:
The indicator ensures the market is in a downtrend by checking for lower highs and lower lows over a specified lookback period.
Key Features:
Bearish Signals: Displays a red downward-pointing label above the price bar when all three conditions are met, making bearish setups easy to identify.
Customizable Inputs: Traders can adjust the EMA length, RSI threshold, and downtrend lookback period to suit their specific strategies.
Versatile Application: Ideal for short entries, trend validation, or avoiding long trades during bearish conditions.
How to Use:
Use the "3 Confirmation Bear" indicator to:
Confirm Short Trades: Enter bearish trades when the signal aligns with your strategy.
Validate Trends: Ensure a clear downtrend is present before committing to a position.
Filter Trades: Avoid long positions during bearish momentum.
This indicator simplifies decision-making by focusing on high-probability bearish setups. Perfect for day traders, swing traders, and those seeking clear confirmation before entering a trade.
3 Confirmation Bull This script is designed to help traders identify strong bullish conditions by providing a signal when three key confirmations align:
Price is Above the 15-period EMA:
This shows that the price is trading above a short-term average, a sign of bullish momentum.
RSI is Above a Threshold:
The Relative Strength Index (RSI) is used to measure the strength of price movements. When RSI is above the user-defined threshold (default 50), it indicates bullish momentum and avoids overbought zones.
Price is in an Uptrend:
An uptrend is confirmed when there are both higher highs and higher lows over a specified lookback period. This ensures that the price structure supports upward movement.
Key Features:
Visual Alerts: A green label appears below the price bar whenever all three conditions are met, making it easy to spot trading opportunities.
Customizable Settings: Adjust the EMA length, RSI threshold, and uptrend lookback period to match your trading style or timeframe.
Versatility: Suitable for intraday, swing, or positional trading in trending markets.
How to Use:
This indicator is ideal for traders looking to confirm a bullish setup. Use it to:
Enter Trades: As confirmation for long positions when the signal appears.
Validate Trends: Ensure conditions are favorable before committing to a trade.
Combine with Other Strategies: Enhance your trading system by pairing it with volume analysis, candlestick patterns, or support/resistance levels.
By combining these three confirmations, the script helps traders filter out false signals and focus on higher-probability setups, streamlining their decision-making process.
Previous Day and Current Day High/LowKey Features:
Previous Day High and Low Lines:
Displays the high (PDH) and low (PDL) levels of the previous trading day.
Allows customization of line colors, styles (solid, dashed, or dotted), and widths.
Extends these lines by a specified number of candles into the current day for better visualization.
Current Day High and Low Lines:
Displays the high (CDH) and low (CDL) levels during the current day's regular trading hours.
Customizable line attributes, including color, style, width, and extension length.
Customizable Input Options:
User-configurable settings for both the previous and current day high/low lines, grouped under respective sections for clarity.
Regular trading hours can be defined manually (default is 9:30 AM to 4:00 PM).
Ability to toggle the visibility of the lines for both the previous and current days.
Automatic Reset at the Start of a New Day:
Captures the high and low values of the completed day and resets for the new day.
Deletes old lines and labels to ensure clarity and avoid overlap.
Dynamic Updates:
Updates the current day's high and low lines and labels as new data comes in.
Adjusts previous day lines dynamically based on the user-defined number of candles to extend.
Session-Based Filtering:
Ensures the calculations and updates are restricted to the defined regular trading hours.
Code Logic:
Input Groups: The script uses grouped inputs to allow users to configure settings for previous and current day levels separately.
Line and Label Management: It creates and deletes lines and labels dynamically to prevent clutter and keep the chart organized.
Session Check: Uses the session input to determine if a bar falls within regular trading hours.
High/Low Calculation: Tracks the high and low for both the previous and current days during regular trading hours.
New Day Detection: Identifies the start of a new trading day to update previous day values and reset current day variables.
Applications:
Intraday Trading: Helps traders identify critical support and resistance levels from the previous and current days.
Trend Analysis: Provides visual cues for price movement trends across consecutive days.
Custom Visualization: With extensive customization options, traders can adapt the indicator to suit their trading style and chart aesthetics.
This script is highly configurable, making it versatile for a wide range of trading strategies and styles.
4-Hour Moving AveragesTitle: 4-Hour Moving Averages Indicator
Description:
The "4-Hour Moving Averages" indicator is designed to help traders easily visualize key moving averages derived from the 4-hour timeframe, regardless of the chart interval they are using. This indicator plots four moving averages: a 15-period SMA (Short-Term), a 35-period SMA (Intermediate-Term), an 80-period SMA (Long-Term), and a 130-period SMA (Confirmation).
These moving averages provide a balanced approach for identifying short, medium, and long-term trends, as well as confirming significant market movements. Ideal for swing traders and those looking for clear trend signals, the indicator can be used for various markets, including stocks, forex, and cryptocurrencies.
The 4-hour moving averages overlay directly on the price chart, allowing for easy analysis of current price movements relative to important trend indicators. Use this script to enhance your trading decisions, identify opportunities, and avoid market traps by relying on consistent moving average trends.
Features:
- 15 SMA for Short-Term Trends (in red)
- 35 SMA for Intermediate-Term Trends (in orange)
- 80 SMA for Long-Term Trends (in green)
- 130 SMA for Confirmation (in blue)
Feel free to modify the settings to suit your specific strategy and market conditions.
LiquidFusion SignalPro [CHE] LiquidFusion SignalPro – Indicator Overview
The LiquidFusion SignalPro is a powerful and sophisticated TradingView indicator designed to identify high-quality trade entries and exits. By combining seven unique sub-indicators, it provides comprehensive market analysis, ensuring traders can make informed decisions. This tool is suitable for all market conditions and supports customization to fit individual trading strategies.
Key Components (Sub-Indicators):
1. RPM (Relative Price Momentum):
- Measures cumulative price momentum over a specified period.
- Provides insights into price strength and directional bias.
- Input Customization:
- Source: Data for momentum calculation.
- Period: Length for momentum measurement.
- Resolution: Timeframe for data fetching.
2. BBO (Bull-Bear Oscillator):
- Calculates the strength of bullish or bearish momentum based on price movement and RSI conditions.
- Uses a super-smoothing technique for reliable signals.
- Customizable parameters include the oscillator's period and repainting options.
3. MACD (Moving Average Convergence Divergence):
- A classic momentum indicator for trend direction and strength.
- Provides buy/sell signals based on the crossover of the MACD line and signal line.
- Input Customization:
- Fast/Slow EMA Periods.
- Signal Line Period.
- Resolution and Source Data.
4. RSI (Relative Strength Index):
- Tracks overbought and oversold conditions.
- A key tool to validate trend continuation or reversals.
- Customizable period, resolution, and source.
5. CCI (Commodity Channel Index):
- Measures the deviation of price from its average.
- Useful for identifying cyclical trends.
- Input Customization includes period, resolution, and source.
6. Stochastic Oscillator:
- Indicates momentum by comparing closing prices to a range of highs and lows.
- Includes smoothing factors for %K and %D lines.
- Customizable parameters:
- %K Length and Smoothing.
- Resolution and Repainting Options.
7. Supertrend:
- A trailing stop-and-reverse system for trend-following strategies.
- Excellent for identifying strong trends and potential reversals.
- Inputs include the multiplier factor and period for ATR-like calculations.
Inputs Overview:
The indicator supports extensive customization for each sub-indicator, grouped under intuitive categories:
- Color Settings: Define bullish and bearish plot colors.
- RPM, BBO, MACD, RSI, CCI, Stochastic, and Supertrend Settings: Tailor each sub-indicator's behavior with adjustable parameters.
- UI Options: Toggle features such as bar coloring, indicator names, and plotted candles.
Trade Signals:
- Long Signal:
- All indicators align in a bullish state:
- RPM > 0, MACD > 0, RSI > 50, Stochastic > 50, CCI > 0, BBO > 0, Supertrend below price.
- Plot: Green triangle below the candle.
- Alert: Notifies the trader of a potential long entry.
- Short Signal:
- All indicators align in a bearish state:
- RPM < 0, MACD < 0, RSI < 50, Stochastic < 50, CCI < 0, BBO < 0, Supertrend above price.
- Plot: Red triangle above the candle.
- Alert: Notifies the trader of a potential short entry.
Features:
- Enhanced Visuals: Plots sub-indicator statuses using labels and color-coded shapes for clarity.
- Alerts: Integrated alert conditions for both long and short trades.
- Bar Coloring: Provides overall trend bias with green (bullish), red (bearish), or gray (neutral) bars.
- Customizable Table: Displays the indicator's status in the chart’s top-right corner.
Trading Benefits:
The LiquidFusion SignalPro excels in generating high-quality entries and exits by:
- Reducing noise through multiple indicator alignment.
- Supporting multiple timeframes and resolutions for flexibility.
- Offering customizable inputs for personalized trading strategies.
Use this tool to enhance your market analysis and improve your trading performance.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
This indicator is inspired by the Super 6x Indicators: RSI, MACD, Stochastic, Loxxer, CCI, and Velocity . A special thanks to Loxx for their relentless effort, creativity, and contributions to the TradingView community, which served as a foundation for this work.
Happy trading and best regards
Chervolino