Fractal & Entropy Market Dynamics with Mexican Hat WaveletThis indicator combines fractal analysis, entropy, and wavelet theory to model market dynamics using a customized approach. It integrates advanced mathematical techniques to assess the complexity and structure of price action, while also incorporating volume and price volatility.
Key Concepts and Features:
Volume-Weighted Price:
The script calculates a volume-adjusted price using a moving average of volume to give more weight to periods with higher volume. This allows the indicator to account for the impact of trading volume on price movements, enhancing its sensitivity to significant price shifts.
Mexican Hat Wavelet Approximation:
The script employs the Mexican Hat Wavelet, a mathematical tool that approximates price movements based on the Laplacian of the price series. This helps capture localized oscillations in price, acting as a filter to highlight certain price dynamics over the specified length. This wavelet is commonly used to identify key inflection points and trends in financial data.
Fractal Dimension Calculation:
The fractal dimension is calculated to quantify the market's complexity. It measures how price moves between intervals, with higher values indicating chaotic or more volatile market behavior. This dimension captures the self-similarity in price movements across different time frames, a key feature of fractals.
Shannon Entropy Calculation:
Shannon Entropy is used to measure the randomness or uncertainty in the price action. It calculates the degree of unpredictability based on the price changes, providing insight into the market's informational efficiency. Higher entropy indicates more randomness, while lower entropy suggests more predictable trends.
Custom Normalization:
The script includes a custom normalization function that processes the composite score (derived from fractal dimension and entropy). This normalization helps scale the values into a consistent range, making it easier to interpret the output. The smoothing factor and RSI-based approach ensure that the normalized value reacts smoothly to the changes in market dynamics.
Composite Score:
The composite score is a weighted combination of the fractal dimension and entropy. This score aims to provide a holistic view of the market by combining the structural complexity (fractal) and randomness (entropy) into one unified metric.
Plotting and Visuals:
The indicator plots the normalized composite score on a scale where a baseline of 50 is provided for reference. The resulting plot helps traders visualize market dynamics, with the score fluctuating based on changes in the market's fractal dimension and entropy. A score above or below the baseline of 50 indicates potential market shifts.
Use Case:
The "Enhanced Fractal and Entropy Market Dynamics with Mexican Hat Wavelet" is useful for traders looking to identify market conditions where there is a balance between price structure and randomness. By integrating wavelets, fractals, and entropy, the indicator can provide insights into market complexity, helping traders recognize potential trend reversals, periods of consolidation, or increased volatility. This can be particularly effective for those employing swing trading or trend-following strategies
指标和策略
Macros ICT KillZones [TradingFinder] Times & Price Trading Setup🔵 Introduction
ICT Macros, developed by Michael Huddleston, also known as ICT (Inner Circle Trader), is a powerful trading tool designed to help traders identify the best trading opportunities during key time intervals like the London and New York trading sessions.
For traders aiming to capitalize on market volatility, liquidity shifts, and Fair Value Gaps (FVG), understanding and using these critical time zones can significantly improve trading outcomes.
In today’s highly competitive financial markets, identifying the moments when the market is seeking buy-side or sell-side liquidity, or filling price imbalances, is essential for maximizing profitability.
The ICT Macros indicator is built on the renowned ICT time and price theory, which enables traders to track and leverage key market dynamics such as breaks of highs and lows, imbalances, and liquidity hunts.
This indicator automatically detects crucial market times and optimizes strategies for traders by highlighting the specific moments when price movements are most likely to occur. A standout feature of ICT Macros is its automatic adjustment for Daylight Saving Time (DST), ensuring that traders remain synced with the correct session times.
This means you can rely on accurate market timing without the need for manual updates, allowing you to focus on capturing profitable trades during critical timeframes.
🔵 How to Use
The ICT Macros indicator helps you capitalize on trading opportunities during key market moments, particularly when the market is breaking highs or lows, filling Fair Value Gaps (FVG), or addressing imbalances. This indicator is particularly beneficial for traders who seek to identify liquidity, market volatility, and price imbalances.
🟣 Sessions
London Sessions
London Macro 1 :
UTC Time : 06:33 to 07:00
New York Time : 02:33 to 03:00
London Macro 2 :
UTC Time : 08:03 to 08:30
New York Time : 04:03 to 04:30
New York Sessions
New York Macro AM 1 :
UTC Time : 12:50 to 13:10
New York Time : 08:50 to 09:10
New York Macro AM 2 :
UTC Time : 13:50 to 14:10
New York Time : 09:50 to 10:10
New York Macro AM 3 :
UTC Time : 14:50 to 15:10
New York Time : 10:50 to 11:10
New York Lunch Macro :
UTC Time : 15:50 to 16:10
New York Time : 11:50 to 12:10
New York PM Macro :
UTC Time : 17:10 to 17:40
New York Time : 13:10 to 13:40
New York Last Hour Macro :
UTC Time : 19:15 to 19:45
New York Time : 15:15 to 15:45
These time intervals adjust automatically based on Daylight Saving Time (DST), helping traders to enter or exit trades during key market moments when price volatility is high.
Below are the main applications of this tool and how to incorporate it into your trading strategies :
🟣 Combining ICT Macros with Trading Strategies
The ICT Macros indicator can easily be used in conjunction with various trading strategies. Two well-known strategies that can be combined with this indicator include:
ICT 2022 Trading Model : This model is designed based on identifying market liquidity, structural price changes, and Fair Value Gaps (FVG). By using ICT Macros, you can identify the key time intervals when the market is seeking liquidity, filling imbalances, or breaking through important highs and lows, allowing you to enter or exit trades at the right moment.
Silver Bullet Strategy : This strategy, which is built around liquidity hunting and rapid price movements, can work more accurately with the help of ICT Macros. The indicator pinpoints precise liquidity times, helping traders take advantage of market shifts caused by filling Fair Value Gaps or correcting imbalances.
🟣 Capitalizing on Price Volatility During Key Times
Large market algorithms often seek liquidity or fill Fair Value Gaps (FVG) during the intervals marked by ICT Macros. These periods are when price volatility increases, and traders can use these moments to enter or exit trades.
For example, if sell-side liquidity is drained and the market fills an imbalance, the price might move toward buy-side liquidity. By identifying these moments, which may also involve breaking a previous high or low, you can leverage rapid market fluctuations to your advantage.
🟣 Identifying Liquidity and Price Imbalances
One of the important uses of ICT Macros is identifying points where the market is seeking liquidity and correcting imbalances. You can determine high or low liquidity levels in the market before each ICT Macro, as well as Fair Value Gaps (FVG) and price imbalances that need to be filled, using them to adjust your trading strategy. This capability allows you to manage trades based on liquidity shifts or imbalance corrections without needing a bias toward a specific direction.
🔵 Settings
The ICT Macros indicator offers various customization options, allowing users to tailor it to their specific needs. Below are the main settings:
Time Zone Mode : You can select one of the following options to define how time is displayed:
UTC : For traders who need to work with Universal Time.
Session Local Time : The local time corresponding to the London or New York markets.
Your Time Zone : You can specify your own time zone (e.g., "UTC-4:00").
Your Time Zone : If you choose "Your Time Zone," you can set your specific time zone. By default, this is set to UTC-4:00.
Show Range Time : This option allows you to display the time range of each session on the chart. If enabled, the exact start and end times of each interval are shown.
Show or Hide Time Ranges : Toggle on/off for visual clarity depending on user preference.
Custom Colors : Set distinct colors for each session, allowing users to personalize their chart based on their trading style.These settings allow you to adjust the key time intervals of each trading session to your preference and customize the time format according to your own needs.
🔵 Conclusion
The ICT Macros indicator is a powerful tool for traders, helping them to identify key time intervals where the market seeks liquidity or fills Fair Value Gaps (FVG), corrects imbalances, and breaks highs or lows. This tool is especially valuable for traders using liquidity-based strategies such as ICT 2022 or Silver Bullet.
One of the key features of this indicator is its support for Daylight Saving Time (DST), ensuring you are always in sync with the correct trading session timings without manual adjustments. This is particularly beneficial for traders operating across different time zones.
With ICT Macros, you can capitalize on crucial market opportunities during sensitive times, take advantage of imbalances, and enhance your trading strategies based on market volatility, liquidity shifts, and Fair Value Gaps.
DualTrend [CHE]DualTrend Indicator for TradingView
Overview
Introducing the DualTrend indicator, a powerful tool designed to enhance your trading strategies on TradingView. Inspired by the renowned HalfTrend Indicator developed by everget, DualTrend combines dual amplitude settings to provide clearer trend signals and more precise entry and exit points. Whether you're a beginner or an experienced trader, this indicator is crafted to assist you in making informed trading decisions with greater confidence.
Key Features
- Dual Amplitude Settings
- Fast Amplitude: Configurable to quickly respond to market changes, ideal for short-term trading.
- Slow Amplitude: Smoother and less sensitive, perfect for identifying long-term trends.
- Channel Deviation Control
- Customize the channel deviation to adjust the sensitivity of the trend lines based on market volatility.
- Visual Trade Signals
- Buy Signals: Indicated by green upward-pointing triangles below the price bars.
- Sell Signals: Indicated by red downward-pointing triangles above the price bars.
- Easily distinguishable signals to streamline your trading decisions.
- Customizable Alerts
- Set up alerts for buy and sell signals to stay informed in real-time, ensuring you never miss an opportunity.
- Clear Trend Lines
- Fast HalfTrend Line: Plotted in blue for quick trend identification.
- Slow HalfTrend Line: Plotted in orange for long-term trend analysis.
- User-Friendly Inputs
- Adjustable parameters to tailor the indicator to your specific trading style and market conditions.
How It Works
The DualTrend indicator calculates two HalfTrend lines based on different amplitude settings—Fast and Slow. These lines represent potential support and resistance levels derived from the average true range (ATR) and simple moving averages (SMA).
- Trend Detection:
- When the Fast HalfTrend line crosses above the Slow HalfTrend line, a Buy Signal is generated.
- Conversely, when the Fast HalfTrend line crosses below the Slow HalfTrend line, a Sell Signal is triggered.
- Adaptive Channels:
- The indicator dynamically adjusts the channels around the trend lines using ATR-based deviations, providing a responsive measure to market volatility.
Why Choose DualTrend ?
- Inspired by Excellence: Built upon the foundational principles of the HalfTrend Indicator by everget, DualTrend offers enhanced functionality and flexibility.
- Versatile Application: Suitable for various financial instruments, including stocks, forex, commodities, and cryptocurrencies.
- Educational Purpose: Designed to help traders understand and implement trend-following strategies effectively.
Disclaimer
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.
Installation & Usage
1. Add to TradingView:
- Copy the provided Pine Script code.
- Open TradingView and navigate to the Pine Script editor.
- Paste the code and save the script as "DualTrend ".
- Add the indicator to your chart.
2. Customize Settings:
- Adjust the Fast Amplitude and Slow Amplitude to match your trading preferences.
- Modify the Channel Deviation to control the sensitivity of the trend lines.
- Toggle Show Arrows to display or hide buy/sell signals.
3. Set Up Alerts:
- Configure alerts based on the buy and sell signals to receive real-time notifications.
Conclusion
Elevate your trading strategy with the DualTrend indicator. Leveraging the proven methodology of the HalfTrend Indicator by everget, this tool offers dual trend analysis, customizable settings, and clear visual signals to help you navigate the markets with precision. Whether you're aiming to capture short-term movements or identify long-term trends, DualTrend is your reliable companion on TradingView.
Happy Trading!
Best regards
Chervolino
This indicator is inspired by the well-known Everget HalfTrend:
Bernoulli Price Dynamics with IntraBar Volume (Bidirectional)This indicator adapts the principles of Bernoulli’s equation from fluid dynamics to analyze price and volume dynamics in the market. By incorporating intrabar volume data and splitting price movements into upward and downward components, it provides a bidirectional view of the market's kinetic and potential energies. This approach helps assess market pressure in both upward and downward directions, offering insights into potential price movement with energy-based mechanics.
Key Features:
Intrabar Volume Integration: The indicator collects up and down volume data from a lower timeframe, such as seconds or minutes, to provide more granular insights.
Bidirectional Market Pressure: By separating upward and downward price movements, it calculates market pressure in both directions, which is akin to fluid pressure. The separation enables tracking of distinct upward and downward energy flows in the market.
Energy Calculation:
Kinetic Energy: This represents the "movement" aspect of the price, weighted by volume. It is calculated for both upward and downward movements based on price velocity squared.
Potential Energy: This represents the "position" aspect of the price, calculated as the product of volume and the current price level. It is also separated into upward and downward components.
Market Pressure: The difference between the total energy (sum of kinetic and potential energies) and the highest observed total energy over a defined period (N). This provides an insight into the current momentum of price movement in both directions.
Visualization:
Market Pressure Up/Down: Plots the calculated market pressure for upward (green) and downward (red) movements.
Kinetic and Potential Energies: Provides individual plots for kinetic and potential energy in both directions to analyze the behavior of price and volume in more detail.
This indicator can be used to track market momentum and potential reversals by understanding the energy and pressure dynamics in both upward and downward price movements.
BOS TRADER [v 1.0] [Influxum]The name of the tool, BOS Trader, comes from the abbreviation BOS, which stands for Break Of Structure. In simple terms, this tool identifies situations where a change in market structure occurs after liquidity has been grabbed. Following the structural change, it looks for a point where the balance between buyers and sellers will be tested, potentially continuing the price movement in the direction of the structural break.
The goal of this tool is to identify areas where a trader can look for potential entry opportunities based on their entry rules and filters. In our own research, we found that while this tool is not a standalone strategy, it provides a statistical advantage that stems from the nature of the market itself. If you expect the market to reverse at a certain price level against a short-term, medium-term, or long-term trend, that reversal must logically begin with a change in structure – i.e., its break. BOS Trader then highlights the zone where you can expect a strong reaction from traders speculating on the continuation of price in the direction of the break.
Another important piece of the puzzle is the concept of liquidity. Liquidity grabs are generally considered by traders to be events that can trigger market direction changes. That's why BOS Trader is complemented with multiple ways to identify liquidity in the market from a Price Action perspective. We have explored the liquidity concept in depth in our other tools – the Liquidity Tool and Liquidity Strategy Tester – so we won’t go into too much detail on liquidity settings here.
🟪 Pivots
Liquidity can be found beyond pivot extremes – the highest candles in a series of candles. The pivot liquidity setting specifies how many candles must be before and after the pivot candle with a lower high for a pivot high or a higher low for a pivot low. A pivot high is the local highest point of the last 31 candles (15 before the pivot candle, the pivot candle itself, and 15 after). Another option is to set the time period in which the pivot extreme must occur. For example, you can differentiate between pivot highs of the Asian or London session.
🟪 % Percent Change
This setting is based on the well-known Zig Zag indicator and confirms swing highs or swing lows when there is a certain percentage change in price. This helps filter out noise that can occur when the market consolidates and randomly creates pivot highs or lows that aren’t significant.
🟪 Session High/Low
Many popular strategies are based on liquidity defined as the price range of a specific trading session. This doesn't have to be London, Asia, or New York sessions, but could be, for instance, the first hour of the New York session, and so on.
🟪 Day High/Low, Week High/Low, Month High/Low
As the name suggests, liquidity is often defined by the high/low of the previous day, week, or month. These price levels are watched by many market participants, and it's reasonable to expect reactions at these levels. That’s why we included this option in the BOS tool.
Tip for Traders
To avoid common issues with setting the correct session time, we have added the BG option to the tool – the ability to display a background for the configured trading session. This makes it easy to verify that your trading session is set correctly in relation to your time zone.
Delete grabbed liquidity
If a liquidity level is breached by price, it becomes invalid. For those who prefer to keep their charts clean and uncluttered, there is an option to delete grabbed liquidity. This way, only untraded, valid liquidity lines will be visible on the chart.
Bars after liquidity grab
A liquidity grab should be a significant event that triggers a reaction from market participants. To ensure this is a real response to liquidity rather than random market behavior, we added a time test to the BOS tool. A structural break must occur within a specified time after the liquidity grab. You can define this time in the tool as the number of bars after which the structural break is still considered valid following the liquidity grab.
🟪 AOI (Area of Interest) Settings
Initially, it's important to note that there are two main options for setting the behavior of the AOI. The first option is to fix its duration by the number of bars – Duration, and the second is to keep the AOI valid until it is traded through – Extended.
Duration
Since we expect a quick reaction to the liquidity grab, we also expect a fast pullback to the AOI and a swift response of traders. Our research has shown that the strongest reactions typically occur within a maximum of 15 bars from the formation of the AOI (fractally across timeframes). Therefore, this value is set as the default. However, we recommend considering not just the speed of the reaction but also its intensity. After the set number of bars, the AOI stops extending further.
Extended
We have noticed that price has a tendency to return to the AOI even after a longer period and react again. For this reason, we included the option in the BOS tool to extend the AOI into the future, with the ability to freely adjust the Max AOI Length.
🟪 AOI Size Mode
There are two options for setting the size of the AOI. Either it can be calculated as a percentage of the swing size (% of swing) in which the structural break occurred (the default setting is 30%), or you can set a different concept for the AOI size. For example, the well-known Optimal Trade Entry model. Custom values can be set in the FIBO Levels option, where you can define either preferred Fibonacci values or values based on your own criteria.
🟪 Trading Session (signals + alerts + visibility)
The main goal of our tools is to make it easier for traders to identify patterns and opportunities in the market and allow them to be alerted to their occurrence. The time for AOI plotting after a liquidity grab is combined into a single Trading Session function. This controls both the AOI plotting and when the tool will send alerts. All of this is aimed at helping traders avoid spending the entire day in front of their monitors, waiting for trading opportunities. Here, too, you can use the BG feature to plot a background on the chart showing the current session.
🟪 Trading within session range
We found that some traders have difficulty navigating the many AOIs plotted during times when the market consolidates and creates numerous false breakouts. Therefore, we included an option in the BOS tool to track only structural changes at the price extremes of the current day and trading session. The tool will not plot structural changes for internal liquidity grabs (within the session range), but only for external liquidity grabs (highest highs and lowest lows of the session or liquidity from previous days).
Visuals
The BOS tool is, of course, supplemented with the option to customize the appearance of all its components according to your preferences.
VX DailyCycle PD Table (Levang)**Futures trading dependent**
QT Theory dependent (Daye) --> VX Theory DailyCycle with 3 ranges using detailing extreme premium range to mean range to extreme discount range *ONLY* 15min timeframe that start at 7:30am every trading day. This data table compares 3 triads (default qt triads as inputs) detailing what range each asset is currently in.
**continuous contracts are default as inputs but monthly contracts works best.**
Overview
This indicator creates a dynamic table showing the current market position of multiple assets across three major market segments: Equity Index futures, Currency futures, and Bond futures. Each asset's position is analyzed using VX Daily Cycle levels and displayed with intuitive color-coding and symbols.
Assets Tracked
Equity Triad: ES1!, NQ1!, YM1!
Currency Triad: DXY (Capital.com), 6E1!, 6B1!
Bond Triad: ZB1!, TN1!, ZF1!
Visual Interpretation
The table uses three main colors to indicate market positioning:
Green: Asset is trading at a discount
Yellow: Asset is trading in the mean range
Red: Asset is trading at a premium
Symbols (▲▲, ▲, △, ▽, ▼, ▼▼) provide additional detail about position within each range:
Double symbols (▲▲, ▼▼): Extreme levels
Solid symbols (▲, ▼): Strong moves
Hollow symbols (△, ▽): Moderate moves
Updates
The table updates every 15 minutes
Works on all timeframes while maintaining consistency
Position calculations are based on recent price action
Usage
This indicator is particularly useful for:
Cross-market analysis
Identifying relative value opportunities
Multi-timeframe market analysis
Understanding market correlations
Spotting potential reversals or continuations
Note
The indicator requires access to all listed symbols for full functionality. Some brokers may not provide access to all market
Legend:
VX Levels Color and Symbol Cheat Sheet
Upper Extension Range (Red)
▲▲ : (Extreme Premium)
▲ : (High Premium)
△ : (Moderate Premium)
Mean Range (Yellow)
△ : (Upper Mean)
▽ : (Lower Mean)
Lower Extension Range (Green)
▽ : (Moderate Discount)
▼ : (High Discount)
▼▼ : (Extreme Discount)
Gabriel's RSI ICHIMOKU CLOUDThe RSI Ichimoku Cloud combines the strengths of the Relative Strength Index (RSI) with the Ichimoku Cloud, offering a robust visualization of momentum and trend signals. This indicator helps traders identify potential trend reversals and key support/resistance levels by blending RSI with the Ichimoku Cloud components.
Key Features:
RSI Component:
Uses a customizable RSI length (default: 21) to detect overbought and oversold conditions.
Upper and Lower Bands (70 and 30) are plotted as dashed lines, highlighting critical zones of strength and weakness.
Bullish (green) and Bearish (red) cross signals are provided when RSI crosses key levels.
Ichimoku Cloud:
Conversion Line (Tenkan Sen): A 9-period Donchian channel (default), representing short-term price movements. Plotted in blue.
Base Line (Kijun Sen): A 26-period Donchian channel (default), representing mid-term price movements. Plotted in red.
Leading Span A (Senkou Span A): The average of the Conversion Line and Base Line, projected forward (displacement: 26). Plotted in green with transparency.
Leading Span B (Senkou Span B): A 52-period Donchian channel (default), projected forward (displacement: 26). Plotted in red with transparency.
The cloud fill between Senkou Span A and B changes color based on bullish (green) or bearish (red) cloud conditions.
Candlestick Overlay:
The indicator uses RSI values to color-code candlesticks. Bullish candles (RSI > Conversion Line) are green, and bearish candles (RSI < Conversion Line) are red.
Signal Crossovers:
RSI-Based Signals: Bullish and Bearish RSI crossovers with the Base Line trigger visual markers.
Ichimoku Signals: Bullish and Bearish crossovers between the Conversion Line and Base Line provide additional trade signals.
Alerts:
Alerts are triggered based on crossovers, allowing traders to set notifications for key trend changes.
This indicator is ideal for traders looking for a powerful blend of momentum (RSI) and trend-following (Ichimoku) tools in one place, with customizable settings for precise trade entry and exit signals.
2 Bar Master Pattern Indicator ( MTF Inside Bars ) THE 2 BAR MASTER PATTERN IS A PRICE ACTION INDICATOR
It is based off of the master pattern concepts which explains the market moving through a 3 phase cycle.
Phase 1 - Contraction
Phase 2 - Expansion
Phase 3 - Trending
THESE 3 PHASES ARE HAPPENING ON EVERY TIME FRAME AND ON EVERY ASSET CLASS.
The first phase of the cycle is the contraction phase, this is where price goes
into contraction which is measure by a simultaneous lower high / higher low.
The contraction phase can be measured with many forms of contraction methods, such as 2 bar / 3 bar and multi bar contraction detection.
The 2 bar master pattern detects inside bars, based off 2 bar candle detection, when detected it will color the candle and a value line will project out of the center.
When it identifies an inside bar it will bring a line through the centre of the inside bar which is known as a value line, these are key levels that price can either find support or resistance on these levels, or a level when broken price can breakout and take off.
MTF FUNCTIONALITY
We have coded into the logic a Multi Time Frame function so that you can have it identify any inside bar on any time frame. 2 bar inside bars work best on higher time frames such as the 4hr and above therefore with the multi time frame functionality you can set it to a higher time frame of choice and be on a lower chart timeframe where you will take your entries off of.
SHORT ENTRY EXAMPLE
LONG ENTRY EXAMPLE
In the example above its set to the weekly chart as the time frame to detect the 2 bar master patterns, and the timeframe for entry is the 4hr time frame, this will change depending on your trading style and timeframes you like to trade on.
2 BAR MASTER PATTERNS CAN BE USED FOR REVERSALS AND CONTINUATION TRADING.
CONTINUATION INSIDE BAR TRADING
When you have a inside bar formed on a higher time frame, you mark the high and low of the inside bar, and depending on the direction of the trend - if on a up trend and it breaks the high of the inside bar is an long entry - and if its on a downtrend and the low of the inside bar is broken thats the set up for a short entry.
REVERSAL INSIDE BAR TRADING
When you have an inside bar forming at the bottom or top of a range or key level, this can be a sign of weakness and a potential area where price will reverse in the opposite direction.
2 BAR MASTER PATTERN INSIDE BARS EITHER SHOW STRENGHTH OR WEAKNESS OF A TREND
If combined in combination with the higher time frame trend direction and the master patten concepts principles, you can find amazing entries.
Best place to look for long entries on a confirmed uptrend is when price is under the value lines
Best place to look for short entries on a confirmed downtrend is when price is above the value lines
Once you understand that the market is moving in this 3 phase cycle and become adept and identifying the 1st phase which is the contraction phase, it can open the door to a new way of percieving the market and making sense of the seemingly randomness of how it moves.
Enhanced volumeHi all!
This indicator plots volume at the bottom of the chart and the volume Moving Average (with the choice of Simple Moving Average (SMA) (default), Exponential Moving Average (EMA) and Volume Weighted Moving Average (VWMA)) and desired length (defaults to 20). It then changes the transparency of the volume (and the bars body) based on the close and the volume. It also changes the bar transparency. All these visual changes can be configured in the "Style" tab in the indicators settings.
The opacity will be high when the close is considered to be a "Strong close (%)" and has a bigger volume than any of the red closing in the last 10 bars. This "Strong close (%)" is defaulted to 50 which means that the bar needs to close equal or higher than 50% of the bar.
You also have an option to include red bars, which are excluded by default.
This indicator can help you to spot bars with relevant volume and find reversals.
I hope this explanation makes sense, let me know otherwise. Also let me know if you have any suggestions on improvements.
Best of trading luck!
FuTech V-Spike & V-HighlighterFuTech V-Spike & V-Highlighter
In the context of trading and technical analysis, this volume spike & volume highlighter indicator is the perfect indicator used to assess market activity and make informed trading decisions.
Let's Understand in brief as below :
1) Volume Spike :
A volume spike refers to a sudden, significant increase in trading volume compared to the average volume over a specific period.
This spike can indicate heightened interest in a particular security, often preceding price movements.
Traders may look for volume spikes as signals for potential buy or sell opportunities because they can suggest that a stock is experiencing increased activity, possibly due to news, earnings releases, or other catalysts.
Characteristics of a Volume Spike:
Assess the sudden increase in trading volume.
It Can occur in both upward and downward price movements.
Often compared to the average volume over a defined period (e.g., the last 20 days).
2) Volume Highlighter:
A volume highlighter emphasizes significant changes in trading volume on a price chart. This indicator typically uses color coding to highlight periods of high volume, making it easier for traders to identify volume spikes at a glance.
How this indicator works:
a) Volume Spike will calculate the highest volume spike as per the user defined threshold multiplier. (Multiplier = when volume exceeds a certain threshold)
b) The threshold Multiplier can be set based on a fixed number or as a multiple of the Exponential Moving Average volume. Volume Spike Multiplier default is 1.5, means the EMA volume should cross 1.5 times the user defined lookback period
c) The result is derived from the user defined lookback candles by using its EMA instead of SMA, which will give us more precise results.
d) By default, last 10 candles EMA average is used to calculate the Volume Spike but you can choose your lookback period as many days, weeks, months, years of your choice !
e) In Volume Spike -
- Green candle will show Yellow color Bar as Bullish sentiments, whereas
- Red candle will show Black Bar as Bearish sentiments.
f) Volume Highlighter will highlight the candles background if the highest volume is crossing as per the the user defined lookback period
g) Default Lookback period is 20, Color coding (e.g., Blue for bullish spikes, Red for bearish spikes) helps traders quickly assess the volume context.
h) Volume Highlighter plotting shapes and positions can be modified
Illustration:
From the Above pic,
If last Volume Spike is 10 lookback candles, Spike multiplier is 1.5 and Highlighter lookback candles is 20,
Then yellow candle means the spike in volume which is 1.5 times higher than the last 10 candles
Highlighting color defines the highest volumes trading from the last 20 candles which is either Blue (Bullish) or Red (Bearish) sentiments
Conclusion :
Using FuTech V-Spike & V-Highlighter indicator - will help traders identify potential trading opportunities and better understand market dynamics.
By analyzing volume in conjunction with price movements, traders can make more informed decisions based on market sentiment.
Thank you !
Jai Swaminarayan Dasna Das !
He Hari ! Bas Ek Tu Raji Tha !
RV- Dynamic Trend AnalyzerRV Dynamic Trend Analyzer
The RV Dynamic Trend Analyzer is a powerful TradingView indicator designed to help traders identify and capitalize on trends across multiple time frames—daily, weekly, and monthly. With dynamic adjustments to key technical indicators like EMA and MACD, the tool adapts to different chart periods, ensuring more accurate signals. Whether you are swing trading or holding longer-term positions, this indicator provides reliable buy/sell signals, breakout opportunities, and customizable visual elements to enhance decision-making. Its intelligent use of EMAs and MACD values ensures high potential returns, making it suitable for traders seeking strong, data-driven strategies. Below are its core features and their respective benefits.
Supertrend Indicator:
Importance: The Supertrend is a trend-following tool that helps traders identify the market’s direction by offering clear buy and sell signals based on price movement relative to the Supertrend line.
Benefits:
Helps filter out market noise and enables traders to stay in trends longer.
The pullback detection feature enhances trade timing by identifying potential entry points during retracements.
ATH/ATL & 52-Week High/Low with Candle Coloring:
Importance: Tracking all-time highs (ATH), all-time lows (ATL), and 52-week high/low levels helps traders identify key support and resistance levels.
Benefits:
Offers insights into the strength of price movements and potential reversal zones.
Candle coloring improves visual analysis, allowing quick identification of bullish or bearish conditions at critical levels.
Multi-Time Frame Analysis
Importance: The ability to view indicators like RSI and MACD across multiple time frames provides a more in-depth and comprehensive view of market behavior, allowing traders to make informed decisions that align with both short-term and long-term trends.
Benefits:
Align Strategies Across Time frames: By using multiple time frames, traders can align their strategies with larger trends (such as weekly or daily) while executing trades on lower time frames (like 1-minute or 5-minute charts). This improves the accuracy of trade entries and exits.
Reduce False Signals: Viewing key technical indicators like RSI and MACD across different time frames reduces the likelihood of false signals by offering a broader market context, filtering out noise from smaller time frames.
Customization of Table Display: Traders can customize the position and size of a table that displays RSI and MACD values for selected time frames. This flexibility enhances visibility and ease of analysis.
Time frame-Specific Data: The code allows for displaying RSI and MACD data for up to seven different time frames, making it highly customizable for traders depending on their preferred analysis period.
Visual Clarity: The table displays key values such as RSI and MACD histogram readings in a visually clear format, with color coding to quickly indicate overbought/oversold levels or MACD crossovers.
Pivot Points:
Importance: Pivot points serve as key support and resistance levels that help predict potential price movements.
Benefits:
Assists in identifying potential reversal zones and breakout points, aiding in trade planning.
Displaying pivot points across multiple time frames enhances market insight and improves strategic planning.
Quarterly Earnings Table:
Importance: Understanding a company’s quarterly earnings releases is crucial, as these events often lead to significant price volatility. Traders can leverage this information to adjust their strategies around earnings reports and prevent unexpected losses.
Benefits:
Helps traders anticipate potential price movements due to earnings reports.
Allows traders to avoid sudden losses by being aware of important earnings announcements and adjusting positions accordingly.
Customizable Visuals for Traders:
Dark Mode: Toggle between dark and light themes based on your chart's color scheme.
Mini Mode: A condensed version that visually simplifies the data, making it quicker to interpret through color-coded traffic lights (green for positive, red for negative).
Table Size & Position: Customize the size and position of the table for better visibility on your charts.
Data Period (FQ vs FY): Easily switch between displaying quarterly or yearly data based on the selected period.
Top-Left Cell Display: Option to display Free Float or Market Cap in the top-left cell for quick reference.
Exponential Moving Averages (EMAs) with Adjustable Lengths:
Importance: EMAs are essential for identifying trends and generating reliable buy/sell signals. The indicator plots four EMAs that dynamically adjust based on the selected time frame.
Benefits:
Dynamic Time frame Logic: EMA lengths and sources automatically adapt based on whether the user selects daily, weekly, or monthly time frames. This ensures the EMAs are relevant for the chosen strategy.
Multiple EMAs: By incorporating four different EMAs, users can observe both short-term and long-term trends simultaneously, improving their ability to identify key trend shifts.
Breakout Arrow Functionality:
Importance: This feature visually signals potential buy/sell opportunities based on the interaction between EMAs and MACD crossovers.
Benefits:
Crossover Signals: Arrows are plotted when EMAs and MACD cross, indicating breakout opportunities and aiding in quick trade decisions.
RSI Filter Option: Users can apply an optional RSI filter to refine buy/sell signals, reducing false signals and improving overall accuracy.
Disclaimer:
Before engaging in actual trading, we strongly recommend back testing the this indicator to ensure it fits your trading style and risk tolerance. Be sure to adjust your risk-reward ratio and set appropriate stop-loss levels to safeguard your investments. Proper risk management is key to successful trading.
Relative VolatilityRelative Volatility is a technical indicator designed to assess changes in market volatility by comparing fast and slow Average True Range (ATR) values. It operates by subtracting a slower ATR (e.g., 50-period ATR) from a faster ATR (e.g., 20-period ATR) and visualizing the result as a histogram. This enables traders to determine whether volatility is increasing or decreasing over time.
This indicator can help traders recognize volatility trends, which can inform decisions related to trade entries, exits, and risk management.
Interpreting Volatility Changes
Increasing Volatility: When the histogram is above zero, it indicates that the fast ATR is greater than the slow ATR, signifying an increase in short-term volatility compared to the long-term average. This may suggest heightened market activity and potential trading opportunities.
Decreasing Volatility: When the histogram is below zero, it shows that the fast ATR is less than the slow ATR, indicating a decrease in short-term volatility relative to the long-term average. This may suggest consolidating markets or reduced trading activity.
Relative Volatility assists traders in monitoring and analyzing changes in market volatility, providing insights that can enhance trading strategies and decision-making processes.
Savitzky-Golay Z-Score [BackQuant]Savitzky-Golay Z-Score
The Savitzky-Golay Z-Score is a powerful trading indicator that combines the precision of the Savitzky-Golay filter with the statistical strength of the Z-Score. This advanced indicator is designed to detect trend shifts, identify overbought or oversold conditions, and highlight potential divergences in the market, providing traders with a unique edge in detecting momentum changes and trend reversals.
Core Concept: Savitzky-Golay Filter
The Savitzky-Golay filter is a widely-used smoothing technique that preserves important signal features such as peak detection while filtering out noise. In this indicator, the filter is applied to price data (default set to HLC3) to smooth out volatility and produce a cleaner trend line. By specifying the window size and polynomial degree, traders can fine-tune the degree of smoothing to match their preferred trading style or market conditions.
Z-Score: Measuring Deviation
The Z-Score is a statistical measure that indicates how far the current price is from its mean in terms of standard deviations. In trading, the Z-Score can be used to identify extreme price moves that are likely to revert or continue trending. A positive Z-Score means the price is above the mean, while a negative Z-Score indicates the price is below the mean.
This script calculates the Z-Score based on the Savitzky-Golay filtered price, enabling traders to detect moments when the price is diverging from its typical range and may present an opportunity for a trade.
Long and Short Conditions
The Savitzky-Golay Z-Score generates clear long and short signals based on the Z-Score value:
Long Signals : When the Z-Score is positive, indicating the price is above its smoothed mean, a long signal is generated. The color of the bars turns green, signaling upward momentum.
Short Signals : When the Z-Score is negative, indicating the price is below its smoothed mean, a short signal is generated. The bars turn red, signaling downward momentum.
These signals allow traders to follow the prevailing trend with confidence, using statistical backing to avoid false signals from short-term volatility.
Standard Deviation Levels and Extreme Levels
This indicator includes several features to help visualize overbought and oversold conditions:
Standard Deviation Levels: The script plots horizontal lines at +1, +2, -1, and -2 standard deviations. These levels provide a reference for how far the current price is from the mean, allowing traders to quickly identify when the price is moving into extreme territory.
Extreme Levels: Additional extreme levels at +3 and +4 (and their negative counterparts) are plotted to highlight areas where the price is highly likely to revert. These extreme levels provide important insight into market conditions that are far outside the norm, signaling caution or potential reversal zones.
The indicator also adapts the color shading of these extreme zones based on the Z-Score’s strength. For example, the area between +3 and +4 is shaded with a stronger color when the Z-Score approaches these values, giving a visual representation of market pressure.
Divergences: Detecting Hidden and Regular Signals
A key feature of the Savitzky-Golay Z-Score is its ability to detect bullish and bearish divergences, both regular and hidden:
Regular Bullish Divergence: This occurs when the price makes a lower low while the Z-Score forms a higher low. It signals that bearish momentum is weakening, and a bullish reversal could be near.
Hidden Bullish Divergence: This divergence occurs when the price makes a higher low while the Z-Score forms a lower low. It signals that bullish momentum may continue after a temporary pullback.
Regular Bearish Divergence: This occurs when the price makes a higher high while the Z-Score forms a lower high, signaling that bullish momentum is weakening and a bearish reversal may be near.
Hidden Bearish Divergence: This divergence occurs when the price makes a lower high while the Z-Score forms a higher high, indicating that bearish momentum may continue after a temporary rally.
These divergences are plotted directly on the chart, making it easier for traders to spot when the price and momentum are out of sync and when a potential reversal may occur.
Customization and Visualization
The Savitzky-Golay Z-Score offers a range of customization options to fit different trading styles:
Window Size and Polynomial Degree: Adjust the window size and polynomial degree of the Savitzky-Golay filter to control how much smoothing is applied to the price data.
Z-Score Lookback Period: Set the lookback period for calculating the Z-Score, allowing traders to fine-tune the sensitivity to short-term or long-term price movements.
Display Options: Choose whether to display standard deviation levels, extreme levels, and divergence labels on the chart.
Bar Color: Color the price bars based on trend direction, with green for bullish trends and red for bearish trends, allowing traders to easily visualize the current momentum.
Divergences: Enable or disable divergence detection, and adjust the lookback periods for pivots used to detect regular and hidden divergences.
Alerts and Automation
To ensure you never miss an important signal, the indicator includes built-in alert conditions for the following events:
Positive Z-Score (Long Signal): Triggers an alert when the Z-Score crosses above zero, indicating a potential buying opportunity.
Negative Z-Score (Short Signal): Triggers an alert when the Z-Score crosses below zero, signaling a potential short opportunity.
Shifting Momentum: Alerts when the Z-Score is shifting up or down, providing early warning of changing market conditions.
These alerts can be configured to notify you via email, SMS, or app notification, allowing you to stay on top of the market without having to constantly monitor the chart.
Trading Applications
The Savitzky-Golay Z-Score is a versatile tool that can be applied across multiple trading strategies:
Trend Following: By smoothing the price and calculating the Z-Score, this indicator helps traders follow the prevailing trend while avoiding false signals from short-term volatility.
Mean Reversion: The Z-Score highlights moments when the price is far from its mean, helping traders identify overbought or oversold conditions and capitalize on potential reversals.
Divergence Trading: Regular and hidden divergences between the Z-Score and price provide early warning of trend reversals, allowing traders to enter trades at opportune moments.
Final Thoughts
The Savitzky-Golay Z-Score is an advanced statistical tool designed to provide a clearer view of market trends and momentum. By applying the Savitzky-Golay filter and Z-Score analysis, this indicator reduces noise and highlights key areas where the market may reverse or accelerate, giving traders a significant edge in understanding price behavior.
Whether you’re a trend follower or a reversal trader, this indicator offers the flexibility and insights you need to navigate complex markets with confidence.
Freak VolumeFreak Volume is a technical indicator designed to identify bars with exceptionally high trading volume. It operates by calculating the mean volume over a specified period and determines high volume thresholds using both multiples of the mean and standard deviations from this mean.
High Volume Identification:
Standard Deviation Threshold: Bars with volume exceeding a specified number of standard deviations above the mean are highlighted within the indicator and on the corresponding candlesticks on the chart.
Mean Multiple Threshold: Bars with volume exceeding a multiple of the average volume are also highlighted. This highlighting is secondary to the standard deviation threshold, meaning standard deviation-based highlights take precedence.
Price Range Plotting: The indicator offers an option to display the price range of high volume candles, which may serve as potential supply and demand zones or support and resistance levels.
Freak Volume assists traders in visually identifying significant volume spikes that could indicate important market activity or potential turning points by providing multiple methods of high volume detection.
Supply and demandHi all!
This is my take on supply/demand. The gist is that it creates a zone if there is a big enough reaction. This is configurable in settings as "Minimum range (ATR factor)" (the Average True Length of length 14) that is the distance that the price must travel and "Reaction bars" that is the maximum number of bars that price must travel this distance. The zones that are shown are the ones that have a retest, break and retest or is unmitigated (untouched). If a zone is mitigated (entered) or broken it is temporarily hidden. For a zone to be created it needs to have this reaction and the previous bar does not.
So this script will show you zones that are fresh (unmitigated), retested or broken and retested. This means that the zones that are shown have "proven" that they are good zones through this. Basically it means that the script creates a bunch of zones and then picks the good once. This makes the script have some latency, but will hopefully give you good zones. A zone is completely removed if it's broken twice (it's okay if it's broken once and can still have a retest after it has flipped from previous supply (or resistance) into demand (or support)).
Here is a zone (the one that has the lowest opacity) that is broken and retested that could have resulted in a good long trade (the settings are default but has a stop in the beginning of 2024):
You have a setting to remove zones that are pierced (broken by price wicks). The following zone is pierced by price (in the beginning of May) that will not be shown after the start of May if you have "Pierced" checked (the indicator has default settings but a stop in the middle of April):
You have a trend section. Zones that create a reaction upwards can only be created if the trend is considered to be up, and vice versa. The options here are "SMA50" (the current price needs to be over the Simple Moving Average of length 50) and "SMA50, SMA200" (price needs to be over the Simple Moving Average of length 50 and the Simple Moving Average of length 50 needs to be over the Simple Moving Average of length 200). If these conditions are met the trend is considered to be up, otherwise it's down. You can disable this by choosing "No detection".
The zones that are shown also need to be within a limit (of the current price). This limit is 10 (factor of the Average True Range if length 14) by default. Set this to 0 to deactivate. This is useful for not showing zones that are far away from current price and therefore unlikely to be interacted with.
You can stop the calculation of zones (through the "Stop" value in the settings). This is useful to see if previous zones were any good. I used it in my testing of the script but left it because it can be nice to have.
The zones created by the script have different transparency based upon the zone's interaction. The clearest zones are the ones that are unmitigated, the second clearest ones are the ones having a retest and lastly the zones which are most unclear are the ones having a break and then a retest.
You can see the concept of this script to be a mix of supply/demand and support/resistance, having zones being unmitigated (untouched) as the most important but also show the zones having an interaction (in the form of a retest or a break and retest).
This is from a previous supply (or resistance) zone that has flipped into demand (or support) and has shown to be a good zone through a retest followed by a rally (default settings):
This zone has multiple retest and then rallies that could have given a good long trades (it has the default settings but a "Stop" time at 2022-01-14):
TODO:
- Create zones based on pivots
- Handle overlapping zones
- Incorporate volume in the creation and/or interaction with zones
- Add alerts
- Add ability to set maximum zone width
- Add ability to set the maximum number of retest bars
- ...?
The example for this publication has the default settings bit a "Stop" and a tighter "Limit" of 4.
I hope this explanation makes sense, let me know otherwise. Also let me know if you have any suggestions on improvements.
Best of trading luck!
Majors Rotation System [BackQuant]Majors Rotation System
Introducing BackQuant's Majors Rotation System, a comprehensive portfolio management tool for rotating among the major cryptocurrencies—BTC, ETH, and SOL. This system is designed to optimize returns by selecting the strongest-performing asset while avoiding periods of market weakness. It employs a long and cash-only strategy, meaning the system will only hold positions when market conditions are favorable, and will stay in cash during downtrends. Additionally, it incorporates a powerful regime filter to ensure the system is inactive during market-wide downturns.
This script is ideal for crypto traders looking to improve performance by dynamically allocating capital based on real-time performance metrics, rather than relying on a simple buy-and-hold strategy.
Key Features
Dynamic Asset Rotation: The system constantly evaluates the performance of BTC, ETH, and SOL, selecting the strongest asset based on a ratio matrix. This matrix compares the relative strength of each asset to one another, ensuring that your portfolio is always positioned in the cryptocurrency with the most momentum.
Long and Cash-Only Portfolio: This system only takes long positions or remains in cash. By avoiding short positions, it reduces exposure during market downturns. The built-in regime filter ensures the system only operates when the broader market (represented by the TOTAL crypto market cap) is trending up, offering additional protection against unfavorable market conditions.
Equity Tracking: The script provides a real-time visualization of portfolio equity compared to a buy-and-hold strategy. It displays the equity curve of the portfolio while allowing you to compare it against the hypothetical equity of holding BTC, ETH, or SOL individually (Buy and Hold).
Performance Metrics: In addition to equity visualization, the system provides detailed performance metrics, including:
Sharpe Ratio: Measures risk-adjusted returns.
Sortino Ratio: Focuses on downside risk.
Omega Ratio: Evaluates returns relative to risk.
Maximum Drawdown: The maximum observed loss from a peak to a trough.
These metrics allow traders to assess the efficiency of the rotation system compared to simply holding assets.
Visual Cues:
Painted Candles: The script provides a visual trend indicator by painting candles according to the trend of the selected chart, helping traders quickly identify momentum shifts.
Support for Multiple Assets: The system allows users to toggle between BTC, ETH, and SOL or view the entire portfolio at once. It displays key metrics for each asset and offers an intuitive way to understand which asset is currently outperforming.
Regime Filter: A key aspect of this system is the regime filter, which only allows trading in favorable market conditions. It uses a Universal TPI (Trend Performance Indicator) to evaluate whether the overall crypto market (TOTAL Market Cap) and key assets (BTC, ETH) are in a bullish trend. If the market is in a downtrend, the system will exit positions and move into cash.
Customizable Parameters: Users can customize several important aspects of the system:
Starting Date: Choose when the backtest or live trading begins.
Starting Capital: Set the initial capital for backtesting purposes.
Visualization Options: Toggle between base data, ratioed data, and equity plots. Users can also customize the line width and color settings for better chart clarity.
Adaptive Momentum Scoring: The system uses advanced indicators, which are not disclosed (proprietary) to assess the trend and momentum of the selected cryptocurrencies dynamically.
How the Rotation Works
The system uses a universal algorithm to calculate trend and momentum signals for BTC, ETH, and SOL. These signals are processed through a ratio matrix, which compares the performance of each asset against the others. Based on this comparison, the system identifies the strongest asset and allocates capital accordingly.
BTC, ETH, and SOL Scores: These scores represent the relative strength of each asset based on the universal algorithm. The system dynamically selects the asset with the highest score, rotating out of underperforming assets and into the top performer.
Allocation Decisions: The system determines whether to allocate capital to BTC, ETH, SOL, or Cash based on the scores. If none of the assets show strength, the system defaults to cash to protect the portfolio from market downturns.
Equity and Buy-and-Hold Comparisons
This script provides a side-by-side comparison of the portfolio’s equity curve and a buy-and-hold strategy:
Portfolio Equity: Shows the performance of the system as it rotates between BTC, ETH, and SOL.
Buy-and-Hold Equity: Displays how the portfolio would have performed if you simply held BTC, ETH, or SOL without trading.
These comparisons allow traders to see how the dynamic rotation system performs relative to a passive holding strategy.
Alerts and Visual Feedback
The system provides real-time alerts when asset allocations change, notifying traders when the system moves capital between assets or into cash. Additionally, the system offers detailed visual feedback, including:
Equity Curve Plots: Displays the equity curve of the portfolio and the individual assets.
Score Labels: Shows the strength scores for BTC, ETH, and SOL directly on the chart for easy monitoring.
Final Thoughts
The Majors Rotation System offers a powerful way to navigate the highly volatile crypto market by rotating between the strongest performing assets and staying in cash when conditions are unfavorable. With its advanced metrics, equity tracking, and built-in regime filter, this system is designed to optimize returns while minimizing risk.
[Mustang Algo] VIF - Volatility Indicator Freemium
The VIF - Volatility Indicator Freemium is a powerful tool designed to capture volatility-driven price movements and generate actionable trading signals. It offers a clear, color-coded visual representation of market trends based on volatility and price movement. The indicator includes key features to help traders identify strong buy and sell opportunities with clear alerts for both bullish and bearish signals.
Key Features:
Volatility Indicator Freemium (VIF):
Calculates volatility over a specified period using the difference between the open and close prices.
Generates signals based on the relationship between volatility and an exponential moving average (EMA).
Strong Buy/Sell signals: Triggered when volatility exceeds a threshold and the price crosses above/below the EMA.
Weaker signals: When volatility is lower but still shows trends in relation to the EMA.
Customizable Inputs:
Resolution: Select different timeframes for signal generation to adapt the indicator to different market conditions.
Repainting: Option to enable or disable repainting based on your preference for signal stability.
VIF Length & Threshold: Fine-tune the sensitivity of the volatility indicator by adjusting the length and threshold parameters.
Color-Coded Signals:
Bright Green (Strong Bullish): High volatility and price above the EMA.
Light Green (Weak Bullish): Lower volatility but price still above the EMA.
Bright Red (Strong Bearish): High volatility and price below the EMA.
Light Red (Weak Bearish): Lower volatility but price still below the EMA.
Neutral (Gray): When neither bullish nor bearish conditions are strong.
Real-Time Alerts:
Strong Buy/Sell Alerts: Receive notifications for significant bullish or bearish changes in market volatility.
Weaker Buy/Sell Alerts: Notifications for changes in market direction with moderate volatility levels.
Bar Coloring & Background Customization:
Option to color bars based on the detected signals.
Background color also adjusts according to the volatility signal, offering a visual guide for quickly identifying market conditions.
Indicator Statistics & Alerts:
Built-in alert conditions for Strong Buy/Sell Signals and regular Buy/Sell Signals, allowing traders to react to market changes in real time.
Premium Version Coming Soon:
An upcoming premium version will include advanced filtering options, improved risk management features, and enhanced customization for professional traders.
This Freemium version is ideal for traders seeking to gain insights into market volatility and momentum. Stay tuned for the premium version that will introduce additional exclusive features, offering even greater control over your trading strategies.
Earnings Surprise Indicator (Post-Earnings Announcement Drift)What It Does:
- Displays a company's actual earnings vs. analysts' estimates over time
- Shows "earnings surprises" - when actual results beat or miss expectations
- Helps identify trends in a company's financial performance
How It Works:
- Green bars: Positive surprise (earnings beat estimates)
- Red bars: Negative surprise (earnings missed estimates)
- Yellow line: Analysts' earnings estimates
Correlation with Post Earnings Announcement Drift (PEAD): PEAD is the tendency for a stock's price to drift in the direction of an earnings surprise for several weeks or months after the announcement.
Why It Matters:
- Positive surprises often lead to upward price drift
- Negative surprises often lead to downward price drift
- This drift can create trading opportunities
How to Use It:
1. Spot Trends:
- Consistent beats may indicate strong company performance
- Consistent misses may signal underlying issues
2. Gauge Market Expectations:
- Large surprises may lead to significant price movements
3. Timing Decisions:
- Consider long positions after positive surprises
- Consider short positions or exits after negative surprises
4. Risk Management:
- Be cautious of reversal if the drift seems excessive
- Use in conjunction with other technical and fundamental analysis
Key Takeaways:
- Earnings surprises can be fundamental-leading indicators of future stock performance, especially when correlated with analyst projections
- PEAD suggests that markets often underreact to earnings news initially
- This indicator helps visualize the magnitude and direction of surprises
- It can be a valuable tool for timing entry and exit points in trades
Linear regression Zscore | Rocheur Linear Regression Z-Score Indicator by Rocheur
The Linear Regression Z-Score Indicator developed by Rocheur is a robust technical analysis tool that combines valuation through Z-score analysis with trend detection . This indicator is designed to provide traders with a comprehensive understanding of both price extremities and trend strength. It is highly customizable, allowing users to adjust visual and calculation settings to suit their specific trading styles and asset classes.
1. Visual Settings
The indicator offers flexibility in how it displays its outputs through customizable visual settings. Users can choose from a variety of color modes that modify the appearance of the bullish and bearish signals. Additionally, there are two key visual modes :
Valuation Mode : Highlights price movements based on the Z-score, using a color gradient to show the magnitude of price deviation from its mean.
Trend Mode : Displays the overall market trend, coloring bullish trends in one color (typically green) and bearish trends in another (usually red).
These visual options allow traders to tailor the indicator to match their charting preferences, making it easier to interpret key signals quickly.
2. Indicator Settings
Users can modify key calculation parameters to fit their trading needs:
Length : This setting defines the lookback period used for calculating the linear regression line, which reflects the overall market trend. A longer length provides a smoother trendline, whereas a shorter length makes the indicator more responsive to price changes.
Offset : The offset shifts the calculation by a specified number of bars, which can help traders in certain backtesting scenarios.
These settings ensure that the indicator is adaptable to different trading strategies, whether you prefer short-term or long-term market analysis.
3. Threshold Settings
The indicator allows users to set upper and lower thresholds that help define overbought and oversold conditions:
Upper Threshold : When the Z-score exceeds this level, it indicates that the price may be overbought, signaling a potential reversal or selling opportunity.
Lower Threshold : If the Z-score falls below this value, it indicates that the price may be oversold, signaling a possible buying opportunity.
These thresholds can be customized depending on the asset’s volatility, providing flexibility to traders based on their risk tolerance and market conditions.
4. Z-Score Calculation
The heart of the indicator is its calculation of the Z-score , a measure of price deviation from its mean, adjusted for volatility. This Z-score is derived from three key components:
Linear Regression : The indicator uses a linear regression line to assess the overall trend in the market over a specific period.
Mean : The use of a moving average smooths the linear regression line, calculating the average price over a longer period. This ensures that the Z-score is calculated relative to the asset's historical average.
Standard Deviation : The standard deviation measures price volatility, allowing the indicator to adjust for the magnitude of price swings relative to the trend.
The resulting Z-score shows how far the price has moved from its mean in terms of standard deviations. A positive Z-score indicates that the price is above the mean, while a negative Z-score shows that the price is below the mean. This provides traders with insights into whether an asset is overbought or oversold.
5. Scoring System
The indicator employs a simple scoring mechanism to determine whether the market is in a bullish or bearish state:
Bullish Trend : When the Z-score is above the upper threshold, the indicator assigns a score of 1, signaling a potential buying opportunity.
Bearish Trend : When the Z-score falls below the lower threshold, the score is set to -1, indicating a potential selling opportunity.
This scoring system helps simplify trend detection by categorizing market conditions into clear bullish or bearish states, making it easier for traders to follow trends.
6. Plotting and Visualization
The indicator uses dynamic color gradients to visualize the Z-score and its corresponding trend on the chart:
Gradient Visualization : When the Z-score is positive (above zero), the color gradient moves from neutral to bright, indicating the strength of the trend. Similarly, when the Z-score is negative, the color gradient shifts from neutral to darker tones, highlighting bearish trends.
Trend Color Coding : In Trend Mode , the bars are colored based on the score. If the score is positive (bullish), the bars are colored in one shade (usually green). If the score is negative (bearish), the bars take on a different shade (typically red).
This color-based visualization simplifies interpreting market movements, allowing traders to quickly identify whether the market is trending up or down.
7. Range Highlights and Visual Aids
To aid in analysis, the indicator includes range highlights at key Z-score levels:
Highlighted Zones : The indicator highlights specific Z-score ranges (such as +1.5 and -1.5), which indicate strong overbought or oversold conditions. These zones help traders visually grasp when the price is reaching an extreme, signaling potential reversal points.
These visual aids ensure that traders can quickly detect critical price levels and make more informed trading decisions.
8. Strategic Value and Advantages
The Linear Regression Z-Score Indicator offers several strategic advantages for traders:
Combines Valuation and Trend Detection : The dual functionality of this indicator makes it a powerful tool for identifying both overbought/oversold conditions and trend direction. This combination allows traders to assess the market holistically and make better-timed trades.
Precision in Detecting Market Extremes : The Z-score calculation provides a clear measure of how far the price has moved from its historical average, giving traders a precise tool for detecting price extremes and potential turning points.
Adaptability Across Markets : This indicator works across multiple asset classes and timeframes, making it suitable for stocks, forex, commodities, and cryptocurrencies. Whether you are a day trader, swing trader, or long-term investor, this tool can be tailored to your strategy.
Customizable for Risk Profiles : The ability to adjust thresholds, length, and visual settings means that traders can fine-tune the indicator to align with their risk tolerance and market conditions.
Enhanced Trend-Following : In strong trending markets, this indicator helps traders stay aligned with the broader market movement. The scoring system ensures that traders don’t exit trades too early by filtering out minor price fluctuations and focusing on sustained trends.
Note:
Backtests are based on past results and are not indicative of future performance.
Conclusion
The Linear Regression Z-Score Indicator by Rocheur is a versatile, powerful tool that provides both valuation insights and trend detection in one package. Its customization options make it suitable for a wide range of trading strategies and market conditions. The indicator’s dynamic color visualization and scoring system simplify market analysis, helping traders make informed decisions in real-time. By integrating valuation extremes with trend direction, this indicator enhances a trader’s ability to identify optimal entry and exit points, making it a valuable addition to any trading toolkit.
Savitzky Golay Median Filtered RSI [BackQuant]Savitzky Golay Median Filtered RSI
Introducing BackQuant's Savitzky Golay Median Filtered RSI, a cutting-edge indicator that enhances the classic Relative Strength Index (RSI) by applying both a Savitzky-Golay filter and a median filter to provide smoother and more reliable signals. This advanced approach helps reduce noise and captures true momentum trends with greater precision. Let’s break down how the indicator works, the features it offers, and how it can improve your trading strategy.
Core Concept: Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a widely used momentum oscillator that measures the speed and change of price movements. It oscillates between 0 and 100, with levels above 70 typically indicating overbought conditions and levels below 30 indicating oversold conditions. However, the standard RSI can sometimes generate noisy signals, especially in volatile markets, making it challenging to identify reliable entry and exit points.
To improve upon the traditional RSI, this indicator introduces two powerful filters: the Savitzky-Golay filter and a median filter.
Savitzky-Golay Filter: Smoothing with Precision
The Savitzky-Golay filter is a digital filtering technique used to smooth data while preserving important features, such as peaks and trends. Unlike simple moving averages that can distort important price data, the Savitzky-Golay filter uses polynomial regression to fit the data, providing a more accurate and less lagging result.
In this script, the Savitzky-Golay filter is applied to the RSI values to smooth out short-term fluctuations and provide a more reliable signal. By using a window size of 5 and a polynomial degree of 2, the filter effectively reduces noise without compromising the integrity of the underlying price movements.
Median Filter: Reducing Outliers
After applying the Savitzky-Golay filter, the median filter is applied to the smoothed RSI values. The median filter is particularly effective at removing short-lived outliers, further enhancing the accuracy of the RSI by reducing the impact of sudden and temporary price spikes or drops. This combination of filters creates an ultra-smooth RSI that is better suited for detecting true market trends.
Long and Short Signals
The Savitzky Golay Median Filtered RSI generates long and short signals based on user-defined threshold levels:
Long Signals: A long signal is triggered when the filtered RSI exceeds the Long Threshold (default set at 176). This indicates that momentum is shifting upward, and it may present a good buying opportunity.
Short Signals: A short signal is generated when the filtered RSI falls below the Short Threshold (default set at 162). This suggests that momentum is weakening, potentially signaling a selling opportunity or exit from a long position.
These threshold levels can be adjusted to suit different market conditions and timeframes, allowing traders to fine-tune the sensitivity of the indicator.
Customization and Visualization Options
The Savitzky Golay Median Filtered RSI comes with several customization options, enabling traders to tailor the indicator to their specific needs:
Calculation Source: Select the price source for the RSI calculation (default is OHLC4, but it can be changed to close, open, high, or low prices).
RSI Period: Adjust the lookback period for the RSI calculation (default is 14).
Median Filter Length: Control the length of the median filter applied to the smoothed RSI, affecting how much noise is removed from the signal.
Threshold Levels: Customize the long and short thresholds to define the sensitivity for generating buy and sell signals.
UI Settings: Choose whether to display the RSI and thresholds on the chart, color the bars according to trend direction, and adjust the line width and colors used for long and short signals.
Visual Feedback: Color-Coded Signals and Thresholds
To make the signals easier to interpret, the indicator offers visual feedback by coloring the price bars and the RSI plot according to the current market trend:
Green Bars indicate long signals when momentum is bullish.
Red Bars indicate short signals when momentum is bearish.
Gray Bars indicate neutral or undecided conditions when no clear signal is present.
In addition, the Long and Short Thresholds can be plotted directly on the chart to provide a clear reference for when signals are triggered, allowing traders to visually gauge the strength of the RSI relative to its thresholds.
Alerts for Automation
For traders who prefer automated notifications, the Savitzky Golay Median Filtered RSI includes built-in alert conditions for long and short signals. You can configure these alerts to notify you when a buy or sell condition is met, ensuring you never miss a trading opportunity.
Trading Applications
This indicator is versatile and can be used in a variety of trading strategies:
Trend Following: The combination of Savitzky-Golay and median filtering makes this RSI particularly useful for identifying strong trends without being misled by short-term noise. Traders can use the long and short signals to enter trades in the direction of the prevailing trend.
Reversal Trading: By adjusting the threshold levels, traders can use this indicator to spot potential reversals. When the RSI moves from overbought to oversold levels (or vice versa), it may signal a shift in market direction.
Swing Trading: The smoothed RSI provides a clear signal for short to medium-term price movements, making it an excellent tool for swing traders looking to capitalize on momentum shifts.
Risk Management: The filtered RSI can be used as part of a broader risk management strategy, helping traders avoid false signals and stay in trades only when the momentum is strong.
Final Thoughts
The Savitzky Golay Median Filtered RSI takes the classic RSI to the next level by applying advanced smoothing techniques that reduce noise and improve signal reliability. Whether you’re a trend follower, swing trader, or reversal trader, this indicator provides a more refined approach to momentum analysis, helping you make better-informed trading decisions.
As with all indicators, it is important to backtest thoroughly and incorporate sound risk management strategies when using the Savitzky Golay Median Filtered RSI in your trading system.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
Big Volume Highlighter ADVANCEDBIG VOLUME HIGHLIGHTER INDICATOR ADVANCED
The BIG VOLUME INDICATOR ADVANCED is an essential tool for traders who want to gain a deeper understanding of market dynamics through volume analysis. This advanced indicator highlights significant volume spikes, enabling traders to make more informed decisions based on market activity and price movements.
Key Features:
Customizable Lookback Period: Define the number of candles over which the highest volume is calculated, allowing you to adjust the analysis to fit your specific trading strategy and timeframe.
Approximate Volume Matching: Activate the approximate volume matching feature to identify candles that fall within a specified range of a target volume. This feature is particularly valuable for capturing notable volume spikes that may not match your exact input but are within an acceptable tolerance.
Flexible Volume Units: Input volumes in various units (Hundreds, Thousands, Millions, or Billions) to cater to your trading preferences. This flexibility ensures that you can analyze volume data in a way that aligns with your trading style.
Dynamic Tolerance Calculation: Set a percentage-based tolerance for volume matching, allowing for greater flexibility. For instance, if you input a volume of 600 million with a tolerance of 1.5%, the indicator will highlight candles with volumes ranging from 591 million to 609 million.
Visual Alerts: Highlighted candles are marked with clear, color-coded labels positioned above the bars. Green labels represent bullish candles, while red labels denote bearish candles, providing immediate visual feedback on market sentiment.
Mobile and Desktop Compatibility: Designed for seamless integration with TradingView, this indicator is accessible on both desktop and mobile devices, ensuring that you can monitor the market wherever you are.
How to Use:
Set the Lookback Period: Adjust the lookback period to analyze a specific number of candles for volume spikes.
Enable Approximate Volume Matching: If desired, toggle the approximate volume matching feature and enter your target volume, selecting the appropriate unit.
Adjust Tolerance: Define the tolerance percentage to specify how close the volume must be to your input for it to be considered significant.
Analyze the Chart: Observe the highlighted candles on your chart, which indicate significant volume activity based on your criteria.
Make Informed Decisions: Leverage the insights provided by the indicator to guide your trading decisions, identifying potential entry or exit points based on volume analysis.
****
Kalman For Loop [BackQuant]Kalman For Loop
Introducing BackQuant's Kalman For Loop (Kalman FL) — a highly adaptive trading indicator that uses a Kalman filter to smooth price data and generate actionable long and short signals. This advanced indicator is designed to help traders identify trends, filter out market noise, and optimize their entry and exit points with precision. Let’s explore how this indicator works, its key features, and how it can enhance your trading strategies.
Core Concept: Kalman Filter
The Kalman Filter is a mathematical algorithm used to estimate the state of a system by filtering noisy data. It is widely used in areas such as control systems, signal processing, and time-series analysis. In the context of trading, a Kalman filter can be applied to price data to smooth out short-term fluctuations, providing a clearer view of the underlying trend.
Unlike moving averages, which use fixed weights to smooth data, the Kalman Filter adjusts its estimate dynamically based on the relationship between the process noise and the measurement noise. This makes the filter more adaptive to changing market conditions, providing more accurate trend detection without the lag associated with traditional smoothing techniques.
Please see the original Kalman Price Filter
In this script, the Kalman For Loop applies the Kalman filter to the price source (default set to the closing price) to generate a smoothed price series, which is then used to calculate signals.
Adaptive Smoothing with Process and Measurement Noise
Two key parameters govern the behavior of the Kalman filter:
Process Noise: This controls the extent to which the model allows for uncertainty in price changes. A lower process noise value will make the filter smoother but slower to react to price changes, while a higher value makes it more sensitive to recent price fluctuations.
Measurement Noise: This represents the uncertainty or "noise" in the observed price data. A higher measurement noise value gives the filter more leeway to ignore short-term fluctuations, focusing on the broader trend. Lowering the measurement noise makes the filter more responsive to minor changes in price.
These settings allow traders to fine-tune the Kalman filter’s sensitivity, adjusting it to match their preferred trading style or market conditions.
For-Loop Scoring Mechanism
The Kalman FL further enhances the effectiveness of the Kalman filter by using a for-loop scoring system. This mechanism evaluates the smoothed price over a range of periods (defined by the Calculation Start and Calculation End inputs), assigning a score based on whether the current filtered price is higher or lower than previous values.
Long Signals: A long signal is generated when the for-loop score surpasses the Long Threshold (default set at 20), indicating a strong upward trend. This helps traders identify potential buying opportunities.
Short Signals: A short signal is triggered when the score crosses below the Short Threshold (default set at -10), signaling a potential downtrend or selling opportunity.
These signals are plotted on the chart, giving traders a clear visual indication of when to enter long or short positions.
Customization and Visualization Options
The Kalman For Loop comes with a range of customization options to give traders full control over how the indicator operates and is displayed on the chart:
Kalman Price Source: Choose the price data used for the Kalman filter (default is the closing price), allowing you to apply the filter to other price points like open, high, or low.
Filter Order: Set the order of the Kalman filter (default is 5), controlling how far back the filter looks in its calculations.
Process and Measurement Noise: Fine-tune the sensitivity of the Kalman filter by adjusting these noise parameters.
Signal Line Width and Colors: Customize the appearance of the signal line and the colors used to indicate long and short conditions.
Threshold Lines: Toggle the display of the long and short threshold lines on the chart for better visual clarity.
The indicator also includes the option to color the candlesticks based on the current trend direction, allowing traders to quickly identify changes in market sentiment. In addition, a background color feature further highlights the overall trend by shading the background in green for long signals and red for short signals.
Trading Applications
The Kalman For Loop is a versatile tool that can be adapted to a variety of trading strategies and markets. Some of the primary use cases include:
Trend Following: The adaptive nature of the Kalman filter helps traders identify the start of new trends with greater precision. The for-loop scoring system quantifies the strength of the trend, making it easier to stay in trades for longer when the trend remains strong.
Mean Reversion: For traders looking to capitalize on short-term reversals, the Kalman filter's ability to smooth price data makes it easier to spot when price has deviated too far from its expected path, potentially signaling a reversal.
Noise Reduction: The Kalman filter excels at filtering out short-term price noise, allowing traders to focus on the broader market movements without being distracted by minor fluctuations.
Risk Management: By providing clear long and short signals based on filtered price data, the Kalman FL helps traders manage risk by entering positions only when the trend is well-defined, reducing the chances of false signals.
Alerts and Automation
To further assist traders, the Kalman For Loop includes built-in alert conditions that notify you when a long or short signal is generated. These alerts can be configured to trigger notifications, helping you stay on top of market movements without constantly monitoring the chart.
Final Thoughts
The Kalman For Loop is a powerful and adaptive trading indicator that combines the precision of the Kalman filter with a for-loop scoring mechanism to generate reliable long and short signals. Whether you’re a trend follower or a reversal trader, this indicator offers the flexibility and accuracy needed to navigate complex markets with confidence.
As always, it’s important to backtest the indicator and adjust the settings to fit your trading style and market conditions. No indicator is perfect, and the Kalman FL should be used alongside other tools and sound risk management practices for the best results.
Enhanced Kelly Criterion with Risk ManagementThis script is a trading tool for risk management and position size calculations based on the Kelly criteria. The objective is to calculate the optimal position size for each trade based on win/loss ratio and win/loss ratio to manage your money.
Overview
Initial Funding: Starting with an initial capital of $10,000, the balance (amount of funds) of both “bullish” and “bearish” positions will increase or decrease depending on the outcome of the trade.
Risk Management: Users can set their risk tolerance from 1-100%. In addition, the maximum position size per trade is also limited at 50%, for example. This setting allows the user to limit risk.
Record of trade results: For each trade, a positive (bullish) or negative (bearish) line is determined, and wins and losses are recorded accordingly. Win/loss ratios and win/loss ratios are also calculated in real time from this data.
Win rate: Calculates the percentage of winning trades in a trade.
Win/Loss Ratio: Calculates the ratio of profit/loss between positive and negative trades.
Position sizing using the Kelly Criterion: Based on the win/loss ratio, the optimal position size to take on the next trade is calculated using the Kelly Criterion. However, this Kelly Criterion is treated with caution because of the potential for increased risk.
Controlling Risk and Position Size
Volatility adjustment using ATR (Average True Range): The script considers market volatility (range of price fluctuation) using a measure called ATR. This allows for smaller position sizes when price volatility is high, thereby reducing risk.
Position Size Limit: The maximum position size is limited so that the calculated position size does not exceed a certain range. This reduces the risk of large losses.
Display of Results
The script visually plots the final position size and amount of funds so that traders can see the changes in balance. To highlight points of change, position size expansions and contractions are shown, allowing traders to catch signs of sudden fluctuations or changes in volatility.
Suggested Improvements and Considerations
Kelly Criteria Overexposure Risk: Calculations based on the Kelly Criteria are theoretically correct, but they tend to take large positions. This can be very damaging in the event of losses. Therefore, while this script limits risk by setting a maximum position size, it is recommended that you adjust to an even more modest position size.
Data Reliability: The calculation of win/loss ratios and win/loss ratios relies on historical trade data, which can be unreliable until sufficient trade data is gathered. When trade data is scarce, calculations based on the Kelly Criteria may be overly optimistic.
Volatility considerations: Volatility adjustment using ATR is effective, but ATR alone may not be sufficient when markets fluctuate rapidly; if ATR adjustment is insufficient, additional risk mitigation techniques should be used in conjunction.
Overall, this script emphasizes risk management and optimizes position size using the Kelly criteria, but real market conditions require careful risk management with attention to overexposure.