VIX OscillatorOVERVIEW
Plots an oscillating value as a percentage, derived from the VIX and VIX3M . This can help identify broader market trends and pivots on higher time frames (ie. 1D), useful when making swing trades.
DATA & MATH
The VIX is a real-time index of expected S&P 500 volatility over the next 30 days, derived from option prices with near-term expirations. Similarly, the VIX3M measures expected volatility over the next 90 days.
Dividing one by the other yields an oscillating value, normalizing the relative strength of the expected volatility. Most commonly the VIX is divided by the VIX3M. However, because the VIX is inversely correlated to market sentiment (typically), this indicator divides the VIX3M by the VIX to visually correlate the plot direction with the anticipated market direction. Further, it subtracts 1.1 from the quotient to visually center the plot, and multiplies that difference by 100 to amplify the value as a percentage:
( VIX3M / VIX - 1.1 ) * 100
This variation makes identifying sentiment extremes easier within a buy-low-sell-high paradigm, where values below zero are bearish and values above zero are bullish.
PLOTS
Two plots are used, maximizing data fidelity and convenience. Candles are used to accurately reflect the quantized math and a Linear Regression is used to simplify contextualization. If you're not familiar with what a Linear Regression is, you can think of it like a better moving average. High / Low zones are also plotted to help identify sentiment extremes.
This combination allows you to quickly identify the expected sentiment (bullish / bearish) and its relative value (normal / extreme), which you can then use to anticipate if a trend continuation or pivot is more likely.
INPUTS
Candle colors (rise and fall)
Linear regression colors and length
Zone thresholds and zero line
指標和策略
Pivot Highs/Lows with Bar CountsWhat does the indicator do?
This indicator adds labels to a chart at swing (a.k.a., "pivot") highs and lows. Each label may contain a date, the closing price at the swing, the number of bars since the last swing in the same direction, and the number of bars from the last swing in the opposite direction. A table is also added to the chart that shows the average, min, and max number of bars between swings.
OK, but how do I use it?
Many markets -- especially sideways-moving ones -- commonly cycle between swing highs and lows at regular time intervals. By measuring the number of bars between highs and lows -- both same-sided swings (i.e., H-H and L-L) and opposite-sided swings (i.e., H-L and L-H) -- you can then project the averages of those bar counts from the last high or low swing to make predictions about where the next swing high or low should occur. Note that this indicator does not make the projection for you. You have to determine which swing you want to project from and then use the bar counts from the indicator to draw a line, place a label, etc.
Example: Chart of BTC/USD
The indicator shows pivot highs and lows with bar counts, and it displays a table of stats on those pivots.
If you focus on the center section of the chart, you can see that prices were moving in a sideways channel with very regular highs and lows. This indicator counts the bars between these pivots, and you could have used those counts to predict when the next high or low may have occurred.
The bar counts do not work as well on the more recent section of the chart because there are no regularly time swings.
Fibonacci Time-Price Zones🟩 Fibonacci Time-Price Zones is a chart visualization tool that combines Fibonacci ratios with time-based and price-based geometry to analyze market behavior. Unlike typical Fibonacci indicators that focus solely on horizontal price levels, this indicator incorporates time into the analysis, providing a more dynamic perspective on price action.
The indicator offers multiple ways to visualize Fibonacci relationships. Drawing segmented circles creates a unique perspective on price action by incorporating time into the analysis. These segmented circles, similar to TradingView's built-in Fibonacci Circles, are derived from Fibonacci time and price levels, allowing traders to identify potential turning points based on the dynamic interaction between price and time.
As another distinct visualization method, the indicator incorporates orthogonal patterns, created by the intersection of horizontal and vertical Fibonacci levels. These intersections form L-shaped connections on the chart, derived from key Fibonacci price and time intervals, highlighting potential areas of support or resistance at specific points in time.
In addition to these geometric approaches, another option is sloped lines, which project Fibonacci levels that account for both time and price along the trendline. These projections derive their angles from the interplay between Fibonacci price levels and Fibonacci time intervals, creating dynamic zones on the chart. The slope of these lines reflects the direction and angle of the trend, providing a visual representation of price alignment with market direction, while maintaining the time-price relationship unique to this indicator
The indicator also includes horizontal Fibonacci levels similar to traditional retracement and extension tools. However, unlike standard tools, traders can display retracement levels, extension levels, or both simultaneously from a single instance of the indicator. These horizontal levels maintain consistency with the chosen visualization method, automatically scaling and adapting whether used with circles, orthogonal patterns, or slope-based analysis.
By combining these distinct methods—circles, orthogonal patterns, sloped projections, and horizontal levels—the indicator provides a comprehensive approach to Fibonacci analysis based on both time and price relationships. Each visualization method offers a unique perspective on market structure while maintaining the core principle of time-price interaction.
⭕ THEORY AND CONCEPT ⭕
While traditional Fibonacci tools excel at identifying potential support and resistance levels through price-based ratios (0.236, 0.382, 0.618), they do not incorporate the dimension of time in market analysis. Extensions and retracements effectively measure price relationships within trends, yet markets move through both price and time dimensions simultaneously.
Fibonacci circles represent an evolution in technical analysis by incorporating time intervals alongside price levels. Based on the mathematical principle that markets often move in circular patterns proportional to Fibonacci ratios, these circles project potential support and resistance zones as partial circles radiating from significant price points. However, traditional circle-based tools can create visual complexity that obscures key market relationships. The integration of time into Fibonacci analysis reveals how price movements often respect both temporal and price-based ratios, suggesting a deeper geometric structure to market behavior.
The Fibonacci Time-Price Zones indicator advances these concepts by providing multiple geometric approaches to visualize time-price relationships. Each shape option—circles, orthogonal patterns, slopes, and horizontal levels—represents a different mathematical perspective on how Fibonacci ratios manifest across both dimensions. This multi-faceted approach allows traders to observe how price responds to Fibonacci-based zones that account for both time and price movements, potentially revealing market structure that purely price-based tools might miss.
Shape Options
The indicator employs four distinct geometric approaches to analyze Fibonacci relationships across time and price dimensions:
Circular : Represents the cyclical nature of market movements through partial circles, where each radius is scaled by Fibonacci ratios incorporating both time and price components. This geometry suggests market movements may follow proportional circular paths from significant pivot points, reflecting the harmonic relationship between time and price.
Orthogonal : Constructs L-shaped patterns that separate the time and price components of Fibonacci relationships. The horizontal component represents price levels, while the vertical component measures time intervals, allowing analysis of how these dimensions interact independently at key market points.
Sloped : Projects Fibonacci levels along the prevailing trend, incorporating both time and price in the angle of projection. This approach suggests that support and resistance levels may maintain their relationship to price while adjusting to the temporal flow of the market.
Horizontal : Provides traditional static Fibonacci levels that serve as a reference point for comparing price-only analysis with the dynamic time-price relationships shown in the other three shapes. This baseline approach allows traders to evaluate how the incorporation of time dimension enhances or modifies traditional Fibonacci analysis.
By combining these geometric approaches, the Fibonacci Time-Price Zones indicator creates a comprehensive analytical framework that bridges traditional and advanced Fibonacci analysis. The horizontal levels serve as familiar reference points, while the dynamic elements—circular, orthogonal, and sloped projections—reveal how price action responds to temporal relationships. This multi-dimensional approach enables traders to study market structure through various geometric lenses, providing deeper insights into time-price symmetry within technical analysis. Whether applied to retracements, extensions, or trend analysis, the indicator offers a structured methodology for understanding how markets move through both price and time dimensions.
🛠️ CONFIGURATION AND SETTINGS 🛠️
The Fibonacci Time-Price Zones indicator offers a range of configurable settings to tailor its functionality and visual representation to your specific analysis needs. These options allow you to customize zone visibility, structures, horizontal lines, and other features.
Important Note: The indicator's calculations are anchored to user-defined start and end points on the chart. When switching between charts with significantly different price scales (e.g., from Bitcoin at $100,000 to Silver at $30), adjustment of these anchor points is required to ensure correct positioning of the Fibonacci elements.
Fibonacci Levels
The indicator allows users to customize Fibonacci levels for both retracement and extension analysis. Each level can be individually configured with the following options:
Visibility : Toggle the visibility of each level to focus on specific areas of interest.
Level Value : Set the Fibonacci ratio for the level, such as 0.618 or 1.000, to align with your analysis needs.
Color : Customize the color of each level for better visual clarity.
Line Thickness : Adjust the line thickness to emphasize critical levels or maintain a cleaner chart.
Setup
Zone Type : Select which Fibonacci zones to display:
- Retracement : Shows potential pull back levels within the trend
- Extension : Projects levels beyond the trend for potential continuation targets
- Both : Displays both retracement and extension zones simultaneously
Shape : Choose from four visualization methods:
- Circular : Time-price based semicircles centered on point B
- Orthogonal : L-shaped patterns combining time and price levels
- Sloped : Trend-aligned projections of Fibonacci levels
- Horizontal : Traditional horizontal Fibonacci levels
Visual Settings
Fill % : Adjusts the fill intensity of zones:
0% : No fill between levels
100% : Maximum fill between levels
Lines :
Trendline : The base A-B trend with customizable color
Extension : B-C projection line
Retracement : B-D pullback line
Labels :
Points : Show/hide A, B, C, D markers
Levels : Show/hide Fibonacci percentages
Time-Price Points
Set the time and price for the points that define the Fibonacci zones and horizontal levels. These points are defined upon loading the chart. These points can be configured directly in the settings or adjusted interactively on the live chart.
A and B Points : These user-defined time and price points determine the basis for calculating the semicircles and Fibonacci levels. While the settings panel displays their exact values for fine-tuning, the easiest way to modify these points is by dragging them directly on the chart for quick adjustments.
Interactive Adjustments : Any changes made to the points on the chart will automatically synchronize with the settings panel, ensuring consistency and precision.
🖼️ CHART EXAMPLES 🖼️
Fibonacci Time-Price Zones using the 'Circular' Shape option. Note the price interaction at the 0.786 level, which acts as a support zone. Additional points of interest include resistance near the 0.618 level and consolidation around the 0.5 level, highlighting the utility of both horizontal and semicircular Fibonacci projections in identifying key price areas.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The chart displays price retracing along the sloped Fibonacci levels, with blue arrows highlighting potential support zones at 0.618 and 0.786, and a red arrow indicating potential resistance at the 1.0 level. This visual representation aligns with the prevailing downtrend, suggesting potential selling pressure at the 1.0 Fibonacci level.
Fibonacci Time-Price Zones using the 'Orthogonal' Shape option. The chart demonstrates price action interacting with vertical zones created by the orthogonal lines at the 0.618, 0.786, and 1.0 Fibonacci levels. Blue arrows highlight potential support areas, while red arrows indicate potential resistance areas, revealing how the orthogonal lines can identify distinct points of price interaction.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The chart displays price action in relation to segmented circles emanating from the starting point (point A). The circles represent different Fibonacci ratios (0.382, 0.5, 0.618, 0.786) and their intersections with the price axis create potential zones of support and resistance. This approach offers a visually distinct way to analyze potential turning points based on both price and time.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The sloped Fibonacci levels (0.786, 0.618, 0.5) create zones of potential support and resistance, with price finding clear interaction within these areas. The ellipses highlight this price action, particularly the support between 0.786 and 0.618, which aligns closely with the trend.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The price action appears to be ‘hugging’ the 0.5 Fibonacci level, suggesting potential resistance. This demonstrates how the circular zones can identify potential turning points and areas of consolidation which might not be seen with linear analysis.
Fibonacci Time-Price Zones using the 'Sloped' Shape option with Point D marker enabled. The chart demonstrates clear price action closely following along the sloped Retracement line until the orthogonal intersection at the 0.618 levels where the trend is broken and price dips throughout the 0.618 to 0.786 horizontal zone. Price jumps back to the retracement slope at the start of the 0.786 horizontal zone and continues to the 1.0 horizontal zone. The aqua-colored retracement line is enabled to further emphasize this retracement slope .
Geometric validation using TradingView's built-in Fibonacci Circle tool (overlaid). The alignment at the 0.5 and 1.0 levels demonstrates the indicator's consistent approximation of Fibonacci Circles.
Comparison of Fibonacci Time-Price Zones (Shape: Horizontal) with TradingView's Built-in Retracement and Extension Tools (overlaid): This example demonstrates how the Horizontal structure aligns with TradingView’s retracement and extension levels, allowing users to integrate multiple tools seamlessly. The Fibonacci circle connects retracement and extension zones, highlighting the potential relationship between past retracements and future extensions.
📐 GEOMETRIC FOUNDATIONS 📐
This indicator integrates circular and straight representations of Fibonacci levels, specifically the Circular , Orthogonal , Sloped , and Horizontal shape options. The geometric principles behind these shapes differ significantly, requiring distinct scaling methods for accurate representation. The Circular shape employs logarithmic scaling with radial expansion, where the distance from a central point determines the level's position, creating partial circles that align with TradingView's built-in Fibonacci Circle tool. The other three shapes utilize geometric progression scaling for linear extension from a starting point, resulting in straight lines that align with TradingView's built-in Fibonacci retracement and extension tools. Due to these distinct geometric foundations and scaling methods, perfectly aligning both the partial circles and straight lines simultaneously is mathematically constrained, though any differences are typically visually imperceptible.
The Circular shape's partial circles are calculated and scaled to align with TradingView's built-in Fibonacci Circles. These circles are plotted from the second swing point onward. This approach ensures consistent and accurate visualization across all market types, including those with gaps or closed sessions, which unlike 24/7 markets, do not have a direct one-to-one correspondence between bar indices and time. To maintain accurate geometric proportions across varying chart scales, the indicator calculates an aspect ratio by normalizing the proportional difference between vertical (price) and horizontal (time) distances of the swing points. This normalization factor ensures geometric shapes maintain their mathematical properties regardless of price scale magnitude or time period span, while maintaining the correct proportions of the geometric constructions at any chart zoom level.
The indicator automatically applies the appropriate scaling factor based on the selected shape option, optimizing either circular proportions and proper radius calculations for each Fibonacci level, or straight-line relationships between Fibonacci levels. These distinct scaling approaches maintain mathematical integrity while preserving the essential characteristics of each geometric representation, ensuring optimal visualization accuracy whether using circular or linear shapes.
⚠️ DISCLAIMER ⚠️
The Fibonacci Time-Price Zones indicator is a visual analysis tool designed to illustrate Fibonacci relationships through geometric constructions incorporating both curved and straight lines, providing a structured framework for identifying potential areas of price interaction. It is not intended as a predictive or standalone trading signal indicator.
The indicator calculates levels and projections using user-defined anchor points and Fibonacci ratios. While it aims to align with TradingView’s Fibonacci extension, retracement, and circle tools by employing mathematical and geometric formulas, no guarantee is made that its calculations are identical to TradingView's proprietary methods.
Like all technical and visual indicators, these visual representations may visually align with key price zones in hindsight, reflecting observed price dynamics. However, these visualizations are not standalone signals for trading decisions and should be interpreted as part of a broader analytical approach.
This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis. Users are encouraged to integrate it into a comprehensive trading strategy, customizing its settings to suit their specific needs and market conditions.
🧠 BEYOND THE CODE 🧠
The Fibonacci Time-Price Zones indicator is designed to encourage both education and community engagement. By integrating time-sensitive geometry with Fibonacci-based frameworks, it bridges traditional grid-based analysis with dynamic time-price relationships. The inclusion of semicircles, horizontal levels, orthogonal structures, and sloped trends provides users with versatile tools to explore the interaction between price movements and temporal intervals while maintaining clarity and adaptability.
As an open-source tool, the indicator invites exploration, experimentation, and customization. Whether used as a standalone resource or alongside other technical strategies, it serves as a practical and educational framework for understanding market structure and Fibonacci relationships in greater depth.
Your feedback and contributions are essential to refining and enhancing the Fibonacci Time-Price Zones indicator. We look forward to the creative applications, adaptations, and insights this tool inspires within the trading community.
Volume Bulls vs Bears (Improved)The "Volume Bulls vs Bears (Improved)" is a raw and powerful volume-based indicator for TradingView that visualizes market participation by separating volume into "bullish" and "bearish" components. It provides a clear and visually appealing stacked histogram alongside a moving average of total volume, helping traders identify trends in market participation.
Key Features
Bullish vs Bearish Volume Separation:
Bullish Volume: Represents the portion of volume contributed by buyers (when prices move up).
Bearish Volume: Represents the portion of volume contributed by sellers (when prices move down).
Volume is calculated based on price action within the range of the candle:
Bulls = ((Close - Low) / (High - Low)) * Total Volume
Bears = ((High - Close) / (High - Low)) * Total Volume
Stacked Histogram:
Bullish and bearish volumes are plotted as a stacked histogram.
Bull Color: Green (default).
Bear Color: Red (default).
This makes it easy to spot shifts in volume dominance between bulls and bears.
Volume SMA:
A Simple Moving Average (SMA) of total volume over a user-defined period helps smooth out fluctuations and shows overall volume trends.
Default period is 20 bars.
SMA Line: Yellow (default), adjustable in width.
User-Customizable Inputs:
Volume SMA Period: Adjust the lookback period for the moving average.
Bull/Bear Colors: Customizable histogram colors.
SMA Line Color and Width: Allows flexibility for better chart aesthetics.
Non-Overlapping Visuals:
The histogram avoids overlap, ensuring clarity by visually stacking bullish and bearish volumes.
How to Use the Indicator
Identify Bullish Volume Dominance:
If the green (bullish) volume bars are larger, it indicates stronger buying pressure within the candle range.
Identify Bearish Volume Dominance:
If the red (bearish) volume bars are larger, it signals stronger selling pressure.
Volume Trend:
Use the Volume SMA line to identify whether overall volume is increasing, decreasing, or staying stable. Rising volume typically strengthens trends, while declining volume can indicate weakness.
Use Cases
Spotting volume trends that confirm price movements (e.g., rising prices with rising bullish volume).
Recognizing potential reversals when bearish volume starts dominating previously bullish candles.
Identifying accumulation or distribution phases by analyzing volume behavior.
Conclusion
This "Volume Bulls vs Bears (Improved)" indicator provides traders with deeper insights into market participation. Its raw, no-frills design offers clear visuals to help assess bullish and bearish volume dynamics with an additional smoothing component through the SMA. It’s an essential tool for volume-focused traders looking to confirm trends or anticipate reversals.
1-3-1 Strat Combo with 50% Level (12h)Logic Explanation
1-3-1 Combo Detection:
The script detects the 1-3-1 pattern using the previous 3 candles:
Candle 4: Inside Bar (Type 1).
Candle 3: Outside Bar (Type 3).
Candle 2: Inside Bar (Type 1).
4th Candle Behavior:
If the 4th candle (current bar):
Stays an inside bar (Type 1) → isFourthInsideBar is true.
Becomes a directional bar (Type 2) → isFourthDirectional is true.
If either of these conditions is true, the script stops calculating and waits for the next valid 1-3-1 setup.
50% Level Calculation:
If the conditions are not met (e.g., the 4th candle doesn’t stop the pattern), the script:
Plots a dotted line at the 50% level of the 3rd candle.
Adds a label showing the 50% level.
Stop Calculations:
No line, box, or label is drawn if the 4th candle is a Type 1 (inside bar) or Type 2 (directional bar).
Visual Outputs:
Dotted Box: Marks the 1-3-1 combo setup.
50% Line: Drawn only if the 4th candle does not invalidate the pattern.
Label: Displays the 50% level of the 3rd candle.
How to Use:
Apply this script on the 12-hour chart.
The script will:
Detect valid 1-3-1 patterns.
Stop drawing any calculations if the 4th candle is an inside bar (1) or a directional bar (2).
Wait for the next valid 1-3-1 combo.
Highest Volume FuturesScript tracks the volume of futures contracts which are not expired for the current and next year. Provides a label at the real-time bar and when a different contract has higher volume in the last bar of the timeframe input as long as it is different from the current ticker. It should display on continuous and lower volume contract charts.
Intended to be used with a higher timeframe input.
Currently supports ES, MES, NQ, MNQ, RTY, M2K, YM, MYM, BTC, MBT, CL, MCL, GC, MGC, E7 and J7. If you'd like to add your own, then include the syminfo.root of your ticker and the appropriate month codes for that contract in the validMonthCodes switch list.
[EmreKb] Dynamic Factor SupertrendThe Dynamic Factor Supertrend is an innovative variation of the classic Supertrend indicator, designed to provide traders with more accurate trend signals while reducing the impact of false breakouts. Unlike the traditional Supertrend, which relies on a fixed multiplier (Factor) applied to the Average True Range (ATR), this enhanced version introduces a dynamic adjustment mechanism based on price movements relative to the Supertrend line.
This indicator works by assessing the distance between the price and the Supertrend line. When the price moves significantly beyond the typical ATR × Factor distance, the remaining gap is recalculated using a Dynamic Factor. This additional scaling adjusts the base factor, effectively modifying the Supertrend line to better reflect current market conditions. This process ensures that the trend line adapts dynamically to changes in price behavior, reducing noise and improving signal reliability in volatile markets.
One of the key advantages of the Dynamic Factor Supertrend is its ability to minimize false trend reversals. By incorporating the Dynamic Factor adjustment, the indicator becomes more resilient to minor price fluctuations that could otherwise trigger incorrect signals. This makes it particularly effective in markets where volatility is high, or during periods of choppy price action, where traditional Supertrend indicators often struggle to maintain accuracy.
Traders can use the Dynamic Factor Supertrend to identify clear trend directions, with uptrends signaled when the price is above the trend line and downtrends when it is below. The Dynamic Factor parameter can be fine-tuned to match individual trading styles, offering greater flexibility. A lower value makes the trend line more responsive to price changes, while a higher value provides more stability by reducing the frequency of adjustments.
In summary, the Dynamic Factor Supertrend is an advanced trend-following tool that combines the foundational concepts of the Supertrend with a novel dynamic adjustment mechanism. It offers traders a more reliable way to navigate complex market conditions, making it a valuable addition to any trading strategy. This indicator is particularly well-suited for those seeking to reduce false signals and enhance the accuracy of their trend analysis in all market environments.
Alternate Bat Harmonic Pattern [TradingFinder] ALT Bat Indicator🔵 Introduction
The Alternate Bat harmonic pattern is one of the most precise and practical tools in technical analysis, introduced by Scott Carney in 2003. This pattern focuses on specific Fibonacci ratios, such as 0.382 at point B and 1.13XA at point D, to identify Potential Reversal Zones (PRZ) where price is likely to reverse.
The Alternative Bat pattern emerged as a result of repeated failures observed in the standard Bat pattern. Traders entering trades near the 0.886XA level of the standard Bat often encountered losses. In the Alternate Bat, point D extends beyond 0.886XA, typically reversing at 1.13XA, offering a more accurate identification of the reversal zone.
A key characteristic of this pattern is its M- or W-shaped structure, where the midpoint B retraces 0.382XA or less. Additionally, the CD leg requires an extension of 2.0 to 3.618 to complete the pattern. Due to its accuracy and the predictable behavior of price near the PRZ, the Alternate Bat pattern is recognized as a powerful tool for forecasting price reversals.
In the bullish Alternative Bat pattern, an M-shaped structure forms. After an initial upward movement (XA), price undergoes a short correction at point B (0.382XA) and then declines toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential upward reversal is expected.
In the bearish Alternate Bat pattern, a W-shaped structure forms. After an initial downward movement (XA), price retraces slightly at point B (0.382XA) and then rises toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential downward reversal is anticipated.
🔵 How to Use
The Alternate Bat harmonic pattern is a key tool for identifying potential reversal zones (PRZ) in the market. By leveraging the 0.382 retracement at point B and the 1.13XA extension at point D, along with symmetrical price structures, this pattern offers precise reversal opportunities in both bullish and bearish market conditions.
🟣 Bullish Alternate Bat Pattern
The bullish Alternate Bat pattern forms during a downtrend, signaling a potential reversal to the upside. This pattern consists of three downward movements with two corrective waves, ultimately reaching point D, which marks the PRZ.
At the PRZ, the convergence of Fibonacci levels—1.13XA and extensions ranging from 2.0 to 3.618BC—creates a strong support zone where price is likely to reverse upward.
🟣 Bearish Alternative Bat Pattern
The bearish Alternate Bat pattern develops during an uptrend, indicating a potential reversal to the downside. This pattern features three upward price movements with two retracements, ending at point D, where the PRZ forms.
Point D is defined by the 1.13XA extension and the 2.0 to 3.618BC projection, creating a strong resistance zone where price is expected to reverse downward.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Format : If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Alternate Bat harmonic pattern, with its precise Fibonacci ratios like 0.382 and 1.13XA, is a reliable tool for identifying Potential Reversal Zones (PRZ) in financial markets. By recognizing symmetrical price structures and focusing on both bullish and bearish scenarios, traders can identify optimal entry and exit points with high accuracy.
The key strength of this pattern lies in its ability to define strong support and resistance zones near the PRZ, increasing the probability of price reversals. Combining the pattern with candlestick confirmations and volume analysis enhances its effectiveness.
Ultimately, incorporating the Alternative Bat pattern with proper risk management and Fibonacci-based targets allows traders to enter the market confidently and capitalize on potential price reversals.
DCA Fundamentals 1.0DCA Fundamentals 1.0
Description:
DCA Fundamentals 1.0 is an invite-only indicator designed to help traders and investors make informed decisions by analyzing key fundamental metrics of a company. It aggregates essential financial data—such as book value, earnings per share, total equity, total debt, net income, and total revenue—to provide a comprehensive overview of the stock’s intrinsic value and risk profile. By examining factors like the debt-to-equity ratio and dynamically computing Buffet’s Limit, this tool assists in identifying whether a stock may be undervalued, fairly valued, or overvalued.
Key Features:
Intrinsic Value Calculation: Estimates a stock’s intrinsic worth using a weighted combination of book value per share and EPS.
Buffet’s Limit & Margin of Safety: Adjusts intrinsic value based on the company’s debt-to-equity ratio, providing a margin of safety percentage to gauge potential investment risk.
Debt Warning: Highlights when the debt-to-equity ratio exceeds 2, signaling possible financial instability.
Data Visualization: Displays equity, debt, net income, and revenue as area plots or histograms, helping users quickly assess financial health.
Investment Status: Classifies the stock as undervalued, fairly valued, or overvalued based on current price relative to intrinsic value and Buffet’s Limit.
Dividend-to-ROE Ratio: Offers insight into dividend payout sustainability relative to the company’s return on equity.
Instructions
Fallback Data Handling:
If any financial data is unavailable, fallback values are automatically used to ensure that key calculations remain meaningful and uninterrupted.
Intrinsics & Risk Assessment:
Intrinsic Value: Computed using book value and EPS to understand the stock’s core worth.
Buffet’s Limit: Adjusted from the intrinsic value based on the debt-to-equity ratio. The resulting margin of safety helps gauge the current price’s risk level.
Debt Warning:
Debt-to-Equity Ratio > 2: Triggers a red warning, advising caution due to potentially excessive debt.
Visual Indicators:
Intrinsically Undervalued (Green Area): When price is below intrinsic value, a green shaded area suggests the stock may be undervalued, potentially presenting a buying opportunity.
Debt vs. Equity (Area Plots):
Red Area: Represents debt. A larger red area signals relatively high debt levels.
Green Area: Represents equity. A larger green area suggests stronger financial health.
Revenue & Net Income (Histograms):
Green Bars: Positive or improving fundamentals.
Red Bars: Negative or declining performance.
Investment Status:
Undervalued (Green): Price below intrinsic value.
Fairly Valued (Yellow): Price between intrinsic value and Buffet’s Limit.
Overvalued (Red): Price above intrinsic value, implying increased downside risk.
Table Display:
A convenient table summarizes key metrics at a glance, including P/E ratio, Debt-to-Equity ratio, intrinsic value, margin of safety, net income, total revenue, and the Dividend-to-ROE Ratio.
Dividend-to-ROE Ratio:
This metric provides additional context on the company’s dividend policy relative to its return on equity, aiding in evaluating dividend sustainability.
Disclaimer
Important Disclaimer:
The DCA Fundamentals 1.0 indicator is provided solely for educational and informational purposes. It is not investment advice, a recommendation, or an endorsement of any security or strategy. All calculations are based on data provided by third parties, and their accuracy or completeness is not guaranteed.
Investing and trading involve significant risks. You may lose more than your initial investment. Historical performance or indicators cannot guarantee future results. Before making any investment decisions, you should conduct thorough research, consider consulting a qualified financial professional, and implement robust risk management strategies.
By using DCA Fundamentals 1.0, you acknowledge these risks and agree that neither the creator nor any affiliated parties are responsible for any losses incurred. Use this tool at your own discretion and risk.
[blackcat] L1 Swing Reversal█ OVERVIEW
The script is an indicator that calculates and plots the L1 Swing Reversal, which involves smoothing price data and calculating a modified RSI to identify potential swing reversals in the market. It overlays columns representing the smoothed price data and a line for the adjusted RSI.
█ LOGICAL FRAMEWORK
The script begins by defining input parameters for customizable periods. It then calculates the typical price, derives components of the swing reversal indicator, smooths these components, and computes an adjusted RSI. The main sections include input parameter definitions, function definition, and plotting. The script flows data through calculations and logical operations to produce final plot values.
█ CUSTOM FUNCTIONS
Function: l1_swing_reversal
This function calculates the L1 Swing Reversal indicators based on high, low, close, and open prices, along with three periods. It computes a smoothed price component and an adjusted RSI.
Parameters:
• high : High prices of the asset.
• low : Low prices of the asset.
• close : Close prices of the asset.
• period_n : Period for the first component calculation.
• period_m : Period for standard deviation and moving average calculations.
• period_n1 : Period for RSI calculation.
Return Values:
• cc1_column_red : Red column values for the first component.
• cc1_column_green : Green column values for the first component.
• rsi : Adjusted RSI values.
█ KEY POINTS AND TECHNIQUES
The script uses several key Pine Script features such as the sma (simple moving average), stdev (standard deviation), max, abs, and ema (exponential moving average) functions. It also demonstrates the use of conditional operators to cap the column values at -100 and 100. The script’s structure is clear and follows best practices by encapsulating the main logic within a function and using descriptive variable names.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential modifications could include adding more sophisticated reversal signals based on the RSI and column values, or enhancing the visualization with additional plot types. This script could be used in scenarios where traders are interested in identifying potential swing reversals using a combination of smoothed price data and momentum indicators. Related Pine Script concepts include using barssince for counting bars since a condition, crossover and crossunder for detecting trend changes, and hline for adding horizontal lines to the chart.
MOEX Aerospace & Defense IndexMOEX Aerospace & Defense Index is a financial instrument that forms an objective assessment of the capitalization of the entire aerospace and military–industrial complex of Russia, the securities of issuers of which are represented on the public stock market.
The MOEX Aerospace & Defense Index includes shares of 14 issuers of the aerospace and defense industry complex of Russia in fair shares proportional to the occupied shares of the Russian and global arms markets, as well as involvement in the Russian state defense order during wartime. The Index includes issuers from such sectors of the economy as: military aviation industry, rocket and space industry, military automotive industry and wheel products, military electronics and communications, military metallurgy and metal products.
The Index includes:
RUS:AMEZ RUS:CHKZ RUS:CHMF RUS:DZRDP RUS:ELMT RUS:IRKT RUS:KMAZ RUS:NAUK RUS:NSVZ RUS:RKKE RUS:SVAV RUS:UNAC RUS:VSMO RUS:ZVEZ
Based on historical data for the period from 2014 (the year of the beginning of the geopolitical confrontation between Russia and Ukraine), the MOEX Aerospace & Defense Index demonstrates profitability 3-4 times higher than the Russian benchmark of the stock market - the Moscow Stock Exchange Index. It makes the financial instrument the most attractive in times of geopolitical crises or military confrontations.
MOEX Aerospace & Defense Index allows you to:
1. To invest in a balanced manner in the aerospace and defense industrial complex of Russia, which produces advanced military and aerospace weapons for the needs of the Russian army and for export, which occupies 25% of the global arms market. Investing in the aerospace and military-industrial complex of Russia is especially relevant in the context of a special military operation in Ukraine, the growth of geopolitical tensions and the resulting large budget incentives for this industry from the Government of the Russian Federation.
2. To neutralize fluctuations in low-liquid and highly volatile stocks of the aerospace and military-industrial complex of Russia. The aerospace and defense industries are characterized by high volatility in stock prices, which is why the creation of a balanced index can offset price fluctuations for low-liquid shares of companies included in the index and reduce the risk for investors.
3. Politically diversify the investment portfolio. The inclusion of the MOEX Aerospace & Defense Index in the investment portfolio can reduce the risks associated with price fluctuations during geopolitical crises or military confrontations.
----------------------------------------
MOEX Aerospace & Defense Index – финансовый инструмент, формирующий объективную оценку капитализации всего аэрокосмического и оборонно-промышленного комплекса России, ценные бумаги эмитентов которого представлены на публичном рынке акций.
В MOEX Aerospace & Defense Index включены акции 14 эмитентов аэрокосмического и оборонно-промышленного комплекса России в справедливых долях, пропорциональных занимаемым долям российского и мирового рынка вооружений, а также задействования в российском гособоронзаказе в военное время. Индекс включает в себя эмитентов из таких секторов экономики, как: военная авиационная промышленность, ракетно-космическая промышленность, военная автомобильная промышленность и колесные изделия, военная электроника и связь, военная металлургия и изделия из металла.
В Индекс включены:
RUS:AMEZ RUS:CHKZ RUS:CHMF RUS:DZRDP RUS:ELMT RUS:IRKT RUS:KMAZ RUS:NAUK RUS:NSVZ RUS:RKKE RUS:SVAV RUS:UNAC RUS:VSMO RUS:ZVEZ
На исторических данных за период с 2014-го года (года начала геополитической конфронтации России и Украины) MOEX Aerospace & Defense Index демонстрирует доходность в 3-4 раза выше российского бенчмарка рынка акций – Индекса Мосбиржи, что делает финансовый инструмент наиболее привлекательным во времена геополитических кризисов или военных противостояний.
MOEX Aerospace & Defense Index позволяет:
1. Сбалансированно инвестировать в аэрокосмический и оборонно-промышленный комплекс России, производящий передовое военное и аэрокосмическое вооружение для нужд армии России и на экспорт, который занимает 25% мирового рынка вооружений. Инвестирование в аэрокосмический и оборонно-промышленный комплекс России особенно актуально в условиях специальной военной операции на Украине, росте геополитической напряженности и следующих из этого большого бюджетного стимулирования данной отрасли со стороны Правительства Российской Федерации.
2. Нивелировать колебания в низколиквидных и высоко волатильных акциях аэрокосмического и оборонно-промышленного комплекса России. Аэрокосмическая и оборонная отрасли характеризуются высокой волатильностью цен на акции, ввиду чего создание сбалансированного индекса может нивелировать колебания цен на низколиквидные акции компаний, входящих в индекс, и снизить риск для инвесторов.
3. Политически диверсифицировать инвестиционный портфель. Включение MOEX Aerospace & Defense Index в инвестиционный портфель может снизить риски, связанные с колебаниями цен во время геополитических кризисов или военных противостояний.
Adaptive Volatility-Scaled Oscillator [AVSO] (Zeiierman)█ Overview
The Adaptive Volatility-Scaled Oscillator (AVSO) is a dynamic trading indicator that measures and visualizes volatility-adjusted market behavior. By scaling various metrics (such as volume, price changes, standard deviation, ATR, and Yang-Zhang volatility) and applying adaptive smoothing, AVSO helps traders identify market conditions where volatility deviates significantly from the norm.
This indicator uses standardized scaling (Z-Score logic) to highlight periods of abnormally high or low volatility relative to recent history. With gradient coloring and clear volatility zones, AVSO provides a visually intuitive way to analyze market volatility and adapt trading strategies accordingly.
█ How It Works
⚪ Scaling Metrics: The indicator scales user-selected metrics (e.g., volume, ATR, standard deviation) relative to the market and price, providing a standardized volatility measure.
⚪ Z-Score Standardization: The scaled metric is normalized using a Z-Score to measure how far current volatility deviates from its recent mean.
Positive Z-Score: Above-average volatility.
Negative Z-Score: Below-average volatility.
⚪ Adaptive Smoothing: An Adaptive EMA smooths the Z-Score, dynamically adjusting its length based on the strength of the volatility. Stronger deviations result in shorter smoothing, increasing responsiveness.
█ Unique Feature: Yang-Zhang Volatility
The Yang-Zhang volatility estimator sets this indicator apart by providing a more robust and accurate measure of volatility compared to traditional methods like ATR or standard deviation.
⚪ What Makes Yang-Zhang Volatility Unique?
Comprehensive Calculation: It combines overnight price gaps (log returns from the previous close to the current open) and intraday price movements (high, low, and close).
Accurate for Gapped Markets: Traditional volatility measures can misrepresent price movement when significant gaps occur between sessions. Yang-Zhang accounts for these gaps, making it highly reliable for assets prone to overnight price jumps, such as stocks, cryptocurrencies, and futures.
Adaptable to Real Market Conditions : By including both close-to-open returns and intraday volatility, it provides a balanced and adaptive measure that captures the full volatility picture.
⚪ Why This Matters to Traders
Better Volatility Insights: Yang-Zhang offers a clearer view of true market volatility, especially in markets with price gaps or uneven trading sessions.
Improved Trade Timing: By identifying volatility spikes and calm periods more effectively, traders can time their entries and exits with greater confidence.
█ How to Use
Identify High and Low Volatility
A high Z-Score (>2) indicates significant market volatility. This can signal momentum-driven moves, breakouts, or areas of increased risk.
A low Z-Score (<-2) suggests low volatility or a calm market environment. This often occurs before a potential breakout or reversal.
Trade Signals
High Volatility Zones (background highlight): Monitor for potential breakouts, trend continuations, or reversals.
Low Volatility Zones: Anticipate range-bound conditions or upcoming volatility spikes.
█ Settings
Source: Select the price source for scaling calculations (close, high, low, open).
Metric Measure: Choose the volatility measure:
Volume: Scales raw volume.
Close: Uses closing price changes.
Standard Deviation: Price dispersion.
ATR: Average True Range.
Yang: Yang-Zhang volatility estimate.
Bars to Analyze: Number of historical bars used to calculate the mean and standard deviation of the scaled metric.
ATR / Standard Deviation Period: Lookback period for ATR or Standard Deviation calculation.
Yang Volatility Period: Period for the Yang-Zhang volatility estimator.
Smoothing Period: Base smoothing length for the adaptive smoothing line.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Holding Volume StrengthHolding Volume Strength Indicator
1. Overview :
The Holding Volume Strength indicator is designed to measure the buying and selling volume based on price action (bullish vs. bearish candles) over a user-defined lookback period. This indicator helps traders gauge the strength of market participants' involvement (buyers vs. sellers) during a specific time frame.
2. Key Inputs :
- Lookback Period : The period over which you want to calculate the Buy and Sell volumes. For example, a lookback of 5 will calculate the volume for the current candle and the previous candle , while a lookback of 10 will consider the current candle and the 9 preceding candles.
- Text Color : This allows customization of the label's text color for better visibility and style.
3. Volume Calculation :
- Buy Volume : If the close price of a candle is greater than its open price (bullish candle), the body size (difference between open and close) is multiplied by the volume for that candle to calculate the buy volume. This represents the market's buying strength.
- Sell Volume : If the close price of a candle is less than its open price (bearish candle), the body size is multiplied by the volume for that candle to calculate the sell volume. This represents the market's selling strength.
4. Volume Display :
The Buy and Sell Volumes are displayed in a readable format, such as:
- Buy Volume: "1.5M" (1.5 million)
- Sell Volume: "500K" (500 thousand)
These values can help identify whether buying or selling is more dominant over a specified period.
5. Label Display :
The calculated Buy and Sell volumes are shown as labels on the main price chart (overlay). These labels dynamically update with each new candle and show the values for the current candle and the previous `n` candles (based on the lookback period).
---
How This Indicator Helps in Making Buy/Sell Decisions :
1. Volume Analysis :
- High Buy Volume : A significant amount of buying volume can indicate strong market interest in the asset, suggesting potential upward momentum. If the market is in a bullish trend (e.g., after a series of green candles), and you see increasing buy volume, this might indicate that buyers are in control , making it a potential signal to buy .
- High Sell Volume : On the other hand, a significant amount of selling volume, particularly after a series of bullish candles, can signal that sellers are taking control of the market, which could indicate bearish pressure . If you observe increasing sell volume, it might be a potential signal to sell or to short the asset.
2. Volume Confirmation :
- Volume is often used to confirm price movements . For example, if the price breaks above a resistance level with strong buy volume , it suggests that the breakout is likely genuine and not a false move. Similarly, if the price drops below a support level with strong sell volume , it could signal that the breakout is real and the downtrend is continuing.
3. Divergence Analysis :
- Volume divergence occurs when price makes a new high or low but volume doesn't confirm it. For instance:
- If price makes a new high but the buy volume does not increase (or even decreases), it could signal a weak trend or potential reversal.
- Similarly, if price makes a new low but sell volume is weak, it might suggest the downtrend is losing steam and could reverse.
4. Buy/Sell Signal Strategy :
- Buy Signal : A potential buy signal might occur when you see a bullish candle with increased buy volume (especially if the buy volume is higher than the sell volume) during an uptrend or near a support level.
- Sell Signal : A potential sell signal might occur when you see a bearish candle with increased sell volume (especially if the sell volume is higher than the buy volume) during a downtrend or near a resistance level.
You could also combine this with other technical indicators (like Moving Averages, RSI, etc.) to form a more robust trading strategy.
---
Example of How It Works in Practice :
- Scenario 1 (Bullish) :
- You're trading a stock or cryptocurrency, and you have the Holding Volume Strength indicator plotted.
- Over the past 10 candles, you notice a bullish trend where the price is rising.
- On the current candle, you see a strong buy volume value, indicating that buyers are in control .
- Given that the buy volume is higher than the sell volume , this might reinforce the bullish trend , and you could consider buying or entering a long position .
- Scenario 2 (Bearish) :
- You're analyzing the same asset, but this time, the price is in a downtrend .
- You notice that a recent bearish candle has a strong sell volume , suggesting sellers are dominating .
- If this sell volume is higher than the buy volume, it could indicate that the downtrend is likely to continue , and you might consider selling or entering a short position .
---
Why Volume Matters :
- Volume precedes price : Volume is often considered a leading indicator, as changes in volume can signal future price movements . For example, a sudden increase in buy volume often precedes upward price movement, while a sudden increase in sell volume often precedes downward price movement.
- Volume confirms trends : Volume helps confirm trends. A price move accompanied by high volume is typically more reliable , while a price move with low volume might be a false signal or less likely to sustain itself.
---
Conclusion :
The Holding Volume Strength indicator helps traders understand the market sentiment (buyers vs. sellers) by showing the cumulative buying and selling volume over a specified period. By examining the buy and sell volumes, traders can make more informed decisions about when to buy, sell, or hold based on market strength.
This volume analysis is essential because it allows traders to understand how strong the price movement is and whether it is likely to continue or reverse. By incorporating volume analysis with other indicators or chart patterns, traders can improve the accuracy of their trading signals and reduce risk.
Up and Downwhat is "Up and Down"?
It is an indicator designed to show you in detail on the chart and warn you when there is an increase or decrease in the market at a level that you consider important.
what it does?
When the price difference between a top and bottom is greater than the level you selected (the default input is 10 percent), it indicates this along with the percentage value on the chart. Then, it indicates the start and end points with lines so that you can see the change from where to where. It shows the price's current percentage distance from the last bottom or top in the upper right corner.
it also colors the candles so you can better understand how fast the price is moving. The greener the candles, the stronger the rise, and conversely, the greater the decline, the redder the candles. Of course, if you set an alarm, it will tell you in which trading pair, in which time period, at what percentage and in which direction there is a movement.
how it does it?
It uses a moving average with a short length to find bottoms and tops. It then measures the distance from the last peak to the bottom and expresses it as a percentage. It uses momentum using the moving average as a source to paint the candles. To compress this momentum between the values 255 and 0, I used a formula that I also used in my limited fisher transform work (because the inputs in the color.rgb function take values between 0 and 255). It was a bit challenging to use the lines correctly, but with the "ta.valuewhen" function and a little experimenting, they were I made sure they were drawn correctly.
how to use it?
It is quite simple to use. First, select the minimum interval you want to receive alarms. If you make this value too high, you will not receive any alarms; if you make it too low, you will receive too many alarms. Choose the range that will benefit you most for the trading pair you are using. Then all you have to do is set an alarm. When you set an alarm, leave the note section blank and the indicator will send you the necessary information.
TASC 2025.01 Linear Predictive Filters█ OVERVIEW
This script implements a suite of tools for identifying and utilizing dominant cycles in time series data, as introduced by John Ehlers in the "Linear Predictive Filters And Instantaneous Frequency" article featured in the January 2025 edition of TASC's Traders' Tips . Dominant cycle information can help traders adapt their indicators and strategies to changing market conditions.
█ CONCEPTS
Conventional technical indicators and strategies often rely on static, unchanging parameters, which may fail to account for the dynamic nature of market data. In his article, John Ehlers applies digital signal processing principles to address this issue, introducing linear predictive filters to identify cyclic information for adapting indicators and strategies to evolving market conditions.
This approach treats market data as a complex series in the time domain. Analyzing the series in the frequency domain reveals information about its cyclic components. To reduce the impact of frequencies outside a range of interest and focus on a specific range of cycles, Ehlers applies second-order highpass and lowpass filters to the price data, which attenuate or remove wavelengths outside the desired range. This band-limited analysis isolates specific parts of the frequency spectrum for various trading styles, e.g., longer wavelengths for position trading or shorter wavelengths for swing trading.
After filtering the series to produce band-limited data, Ehlers applies a linear predictive filter to predict future values a few bars ahead. The filter, calculated based on the techniques proposed by Lloyd Griffiths, adaptively minimizes the error between the latest data point and prediction, successively adjusting its coefficients to align with the band-limited series. The filter's coefficients can then be applied to generate an adaptive estimate of the band-limited data's structure in the frequency domain and identify the dominant cycle.
█ USAGE
This script implements the following tools presented in the article:
Griffiths Predictor
This tool calculates a linear predictive filter to forecast future data points in band-limited price data. The crosses between the prediction and signal lines can provide potential trade signals.
Griffiths Spectrum
This tool calculates a partial frequency spectrum of the band-limited price data derived from the linear predictive filter's coefficients, displaying a color-coded representation of the frequency information in the pane.
Griffiths Dominant Cycle
This tool compares the cyclic components within the partial spectrum and identifies the frequency with the highest power, i.e., the dominant cycle . Traders can use this dominant cycle information to tune other indicators and strategies, which may help promote better alignment with dynamic market conditions.
Notes on parameters
Bandpass boundaries:
In the article, Ehlers recommends an upper bound of 125 bars or higher to capture longer-term cycles for position trading. He recommends an upper bound of 40 bars and a lower bound of 18 bars for swing trading. If traders use smaller lower bounds, Ehlers advises a minimum of eight bars to minimize the potential effects of aliasing.
Data length:
The Griffiths predictor can use a relatively small data length, as autocorrelation diminishes rapidly with lag. However, for optimal spectrum and dominant cycle calculations, the length must match or exceed the upper bound of the bandpass filter. Ehlers recommends avoiding excessively long lengths to maintain responsiveness to shorter-term cycles.
Sell Signal - William O'Neil's Rule VisualizationThis indicator might be helpful for traders looking to visualize William O’Neil’s sell condition, a well-known concept in his trading strategies. A sell signal is triggered when:
1. Volume increases compared to the previous day.
2. The price drops by a user-defined percentage (default: 0.2% or more).
The indicator highlights the background for bars meeting these conditions and adds a subtle circle above them. You can adjust the drop rate in the settings to match your preferences.
It could serve as a useful tool for identifying potential distribution days or profit-taking signals, helping traders manage risk during market pullbacks.
このインジケーターは、ウィリアム・オニールの売り抜け条件を可視化したもので、トレーダーの皆さんに役立つかもしれません。シグナルは次の条件を満たすと発生します:
1. 出来高が前日より増加している。
2. 価格がユーザー指定の割合(デフォルトは0.2%以上)で下落している。
条件を満たしたバーには背景色が付き、控えめな丸印が表示されます。設定で下落率を自由に調整することもできます。
このツールは、分配日や利益確定のシグナルを特定するのに役立つかもしれません。市場の調整局面でのリスク管理にご活用ください。
Custom RSI & MACD Momentum Entry SignalsIndicator Explanation: Custom RSI & MACD Momentum Entry Signals
Introduction
The "Custom RSI & MACD Momentum Entry Signals" indicator combines the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD) to generate precise long and short entry signals. This indicator offers a powerful combination of overbought/oversold zones, momentum analysis, and RSI-EMA crossovers to assist traders in making better decisions.
How the Indicator Works
1. RSI Calculation and EMA
The RSI is calculated based on the closing price with an adjustable period (default: 14).
An Exponential Moving Average (EMA) of the RSI (default: 9) is plotted to identify RSI trend changes.
When the RSI crosses its EMA upwards, it signals a bullish impulse. Conversely, a downward cross indicates a bearish impulse.
2. MACD Calculation and Momentum Shifts
The MACD line is derived from the difference between a fast EMA (default: 12) and a slow EMA (default: 26).
The Signal line is the EMA of the MACD line (default: 9).
The MACD histogram represents the difference between the MACD line and the Signal line.
Momentum shifts are detected as follows:
Weakening Bearish: Histogram is negative but increasing (less bearish pressure).
Strengthening Bullish: Histogram is positive and rising.
Weakening Bullish: Histogram is positive but decreasing.
Strengthening Bearish: Histogram is negative and falling.
Signal Generation
Long Signals
A Long signal is triggered when all of the following conditions are met:
The RSI was previously below 30 (oversold condition).
MACD momentum shifts from "strengthening bearish" to "weakening bearish" or turns bullish.
The RSI crosses its EMA upwards.
A green upward arrow is displayed below the bar, and the background is lightly shaded green for additional visualization.
Short Signals
A Short signal is triggered when all of the following conditions are met:
The RSI was previously above 70 (overbought condition).
MACD momentum shifts from "strengthening bullish" to "weakening bullish" or turns bearish.
The RSI crosses its EMA downwards.
A red downward arrow is displayed above the bar, and the background is lightly shaded red for additional visualization.
Visual Elements
RSI and EMA:
The RSI is shown in purple.
The RSI EMA is shown in blue.
Horizontal lines at 30 (oversold) and 70 (overbought) provide additional context.
MACD:
The MACD line is displayed in blue.
The Signal line is displayed in orange.
The zero line is added for easier interpretation.
Signals:
Green arrows: Long signals.
Red arrows: Short signals.
Background color: Light green for long conditions, light red for short conditions.
Use Cases
This indicator is ideal for:
Trend Followers: Combining RSI and MACD allows traders to identify entry points during impulsive trend shifts.
Swing Traders: Long and short signals can be used at reversal points to capture short-term price movements.
Momentum Traders: By considering MACD momentum, the indicator provides additional confidence in signal generation.
Customizable Settings
The indicator provides flexible input options:
RSI Period (default: 14)
RSI EMA Period (default: 9)
MACD Parameters: Fast, slow, and signal EMAs can be adjusted.
Conclusion
The Custom RSI & MACD Momentum Entry Signals indicator is a powerful tool for traders looking to combine RSI and MACD to identify high-probability entry signals. With clear visualization and precise signal generation, traders can make decisions more efficiently and capitalize on market movements.
Adjustable Entry Price Levels by Sobhi v6Adjustable Entry Price Levels", is designed to display customizable price levels on a chart, allowing traders to visualize key price zones relative to a chosen entry price. Here's a detailed breakdown of its functionality:
Purpose
The indicator helps traders create and manage equidistant price levels (both above and below a selected entry price). These levels can assist in planning trades, setting stop-loss and take-profit levels, or identifying key market zones for decision-making.
Features
Entry Price Input:
Users can specify a starting price (Entry Price) to base the levels on.
Adjustable Distance Between Levels:
Levels are spaced at a user-defined interval (Distance), creating equidistant horizontal lines.
Number of Levels:
Users can select how many levels to display above and below the entry price (Number of Levels).
Line Customization:
Style: Choose between Solid, Dotted, or Dashed lines.
Color: Customize the color for upward and downward levels (Line Color Up and Line Color Down).
Thickness: Adjust line thickness (Line Width).
Label Customization:
Visibility: Option to show or hide labels on each level (Show Labels).
Font Size: Set the size of the text for level labels (Label Font Size).
Colors: Separate customization for labels above (Label Color Up) and below (Label Color Down) the entry price.
Extended Line Display:
The lines extend backward (Extend Bars Back) and forward (Extend Bars Forward) to ensure visibility over a larger section of the chart.
Visualization
Upward Levels:
Represented by blue (default) horizontal lines above the entry price.
Labels display the price value of each level in the same color.
Downward Levels:
Represented by red (default) horizontal lines below the entry price.
Labels display the price value of each level in the same color.
Example Use Case
Scenario 1: Support and Resistance Planning
A trader can define a key level (Entry Price) and observe nearby support and resistance zones using the calculated price levels.
Scenario 2: Risk Management
The indicator helps in visualizing stop-loss and take-profit areas equidistant from the entry price.
Scenario 3: Breakout Targets
Traders can use the levels to anticipate potential breakout or breakdown targets.
Customization Options
This indicator is highly customizable, making it versatile for different trading strategies. Traders can tweak:
The visual appearance of the levels (style, color, width).
The number of levels and their spacing.
Whether labels are displayed and their style.
Refined SMA/EMA Crossover with Ichimoku and 200 SMA FilterYour **Refined SMA/EMA Crossover with Ichimoku and 200 SMA Filter** strategy is a multi-faceted technical trading strategy that combines several key technical indicators to refine entry and exit points for trades. Here's a breakdown of the components and how they work together:
### 1. **SMA/EMA Crossover**
- **Simple Moving Average (SMA) & Exponential Moving Average (EMA) Crossover**:
- The core idea behind the crossover strategy is to use the relationship between two moving averages to generate buy or sell signals.
- **SMA** (Simple Moving Average) gives an average of past prices over a set period.
- **EMA** (Exponential Moving Average) places more weight on recent prices, making it more responsive to price movements.
- A **bullish crossover** occurs when a shorter period moving average (such as a 50-period EMA) crosses above a longer period moving average (such as a 200-period SMA), signaling a potential buy.
- A **bearish crossover** occurs when a shorter period moving average crosses below the longer period moving average, signaling a potential sell.
### 2. **Ichimoku Cloud**
- The **Ichimoku Cloud** is a versatile indicator that provides insight into trend direction, support and resistance levels, and momentum.
- **Cloud (Kumo)**: The space between the Senkou Span A and Senkou Span B lines. It helps identify whether the market is in an uptrend, downtrend, or consolidation.
- **Tenkan-sen** (Conversion Line) and **Kijun-sen** (Base Line): These lines are used for additional confirmation of trend direction.
- **Chikou Span**: A lagging line that is used to confirm the trend.
- The general trading rules based on the Ichimoku Cloud are:
- **Bullish Signal**: When the price is above the cloud and the Tenkan-sen crosses above the Kijun-sen.
- **Bearish Signal**: When the price is below the cloud and the Tenkan-sen crosses below the Kijun-sen.
### 3. **200 SMA Filter**
- The **200 SMA Filter** serves as a long-term trend filter.
- When the price is **above the 200 SMA**, it signals a long-term bullish trend, and you only look for buying opportunities.
- When the price is **below the 200 SMA**, it signals a long-term bearish trend, and you only look for selling opportunities.
- This filter helps to avoid counter-trend trades, aligning your positions with the broader market trend.
### **How the Strategy Works Together**
- **Trade Setup (Long Position)**
1. The **200 SMA Filter** must confirm an **uptrend** by ensuring that the price is above the 200 SMA.
2. A **bullish crossover** (e.g., the 50 EMA crossing above the 200 SMA) occurs.
3. **Ichimoku Cloud** confirms a bullish trend, with the price above the cloud and the Tenkan-sen crossing above the Kijun-sen.
4. You enter a **long trade** with this confluence of signals.
- **Trade Setup (Short Position)**
1. The **200 SMA Filter** must confirm a **downtrend** by ensuring the price is below the 200 SMA.
2. A **bearish crossover** (e.g., the 50 EMA crossing below the 200 SMA) occurs.
3. **Ichimoku Cloud** confirms a bearish trend, with the price below the cloud and the Tenkan-sen crossing below the Kijun-sen.
4. You enter a **short trade** with this confluence of signals.
### **Exit Strategy**
- Exits can be determined based on any of the following:
- **SMA/EMA crossover reversal**: Exit when the shorter-term moving average crosses back below the longer-term moving average for a long position or crosses above for a short position.
- **Ichimoku Cloud reversal**: If the price breaks through the cloud or the Tenkan-sen and Kijun-sen lines cross in the opposite direction.
- **Profit target or stop loss**: Setting predefined profit targets or using a trailing stop to lock in profits as the trade moves in your favor.
Summary of the Strategy
This strategy is designed to identify strong trends and avoid false signals by combining:
SMA/EMA crossovers for immediate market direction signals.
Ichimoku Cloud for confirming the strength and trend direction.
A 200
SMA filter to ensure trades align with the long-term trend.
By using these multiple indicators together, the strategy aims to refine entry and exit points, minimize risk, and increase the likelihood of successful trades.
Mastering ATR for Smart Stop Loss and Take Profit PlacementUsing the ATR indicator to set Stop Loss and Take Profit levels provides a dynamic and flexible way to manage risk based on the volatility of the market. This method ensures that your SL and TP are always in tune with current market conditions, preventing unnecessary stop-outs while maximizing the potential for profit. The table in the script makes it easy to view your calculated levels directly on the chart, improving your trading efficiency.
If you're looking for a more automated way to manage your trades, integrating ATR-based SL and TP can be a powerful tool in your strategy.
Happy Trading!
Quantum Wave OscillatorQuantum Wave (QWO) Oscillator
Version: 1.0
Overview
Quantum Wave (QWO) is a dynamic oscillator designed to help traders identify potential buy and sell signals by analyzing price momentum relative to its moving average. Utilizing trigonometric transformations, Quantum Wave offers a clear visualization of market trends, making it easier to spot reversals and continuations.
Key Features
Customizable Parameters: Adjust the length and amplitude to fit various trading strategies and timeframes.
Dynamic Coloring: Colors change based on bullish (green) or bearish (red) momentum.
Clear Signals: Generates buy and sell signals when the oscillator crosses the zero line.
Clamped Waveform: Maintains values between -250 and 250 for clear visualization.
Signal Version Available: Enhanced version includes alert notifications for trading signals.
How to Use Quantum Wave
Add to Chart:
Open TradingView.
Go to Indicators and search for Quantum Wave (QWO).
Add it to your chart.
Configure Settings:
Length (len): Period for the SMA calculation (default: 14). Shorter lengths increase sensitivity.
Amplitude (amp): Strength of the oscillator signal (default: 2.0). Adjust to amplify or dampen responses.
Colors: Customize colors for above/below zero and buy/sell signals as desired.
Interpret the Oscillator:
Quantum Wave Plot: Green indicates bullish momentum; red indicates bearish.
Zero Line: Crosses above suggest buy signals; crosses below suggest sell signals.
Use the Signal Version:
Upgrade to the signal version to receive automated alerts for buy and sell signals, enhancing timely trading decisions.
Pros
Easy Visualization: Clear color cues and area plots simplify momentum analysis.
Highly Customizable: Tailor settings to match your trading style and market conditions.
Signal Alerts: The signal version provides automated notifications for efficient trading.
Noise Reduction: Clamped values prevent extreme oscillations from obscuring signals.
Cons
Lagging Nature: May produce delayed signals as it relies on moving averages.
False Signals: Potential for incorrect signals in volatile or sideways markets.
Parameter Sensitivity: Requires careful adjustment of length and amplitude for optimal performance.
Limited Scope: Does not indicate overbought or oversold conditions inherently.
Tips for Effective Use
Combine with Other Indicators: Enhance reliability by pairing Quantum Wave with trend indicators like RSI or MACD.
Optimize Settings: Experiment with different lengths and amplitudes to suit specific assets and timeframes.
Use the Signal Version: Leverage automated alerts to stay informed of trading opportunities without constant monitoring.
Implement Risk Management: Always use stop-loss orders and other risk management techniques to protect your trades.
Conclusion
Quantum Wave (QWO) is a powerful and customizable oscillator that provides clear insights into market momentum and trading signals. Its dynamic coloring and signal capabilities make it a valuable tool for traders aiming to enhance their market analysis. For those seeking automated alerts, the signal version offers added convenience and efficiency. Incorporate Quantum Wave into your trading strategy to improve decision-making and capitalize on market movements.
G&S SMT### Description of the Pine Script
This Pine Script is designed to identify **Smart Money Technique (SMT)** setups between **Gold (GC1!)** and **Silver (SI1!) Futures** on a **15-minute timeframe**. It specifically looks for divergences between the price movements of Gold and Silver over the last 4 candles and compares it with the next candle's price movement. The script provides **Bullish** and **Bearish** signals for SMT during a specified time range of **8:45 AM EST to 10:30 AM EST**.
### Key Features of the Script:
1. **Futures Symbols**:
- The script uses **Gold Futures (GC1!)** and **Silver Futures (SI1!)** on a 15-minute timeframe to monitor their price movements.
2. **Time Range Filtering**:
- The signals are only active between **8:45 AM EST and 10:30 AM EST**, ensuring that the script only signals within the most relevant trading hours for your strategy.
3. **SMT Calculation (Last 4 Candles vs Next Candle)**:
- **Gold and Silver Price Change Calculation**: The script compares the price changes of **Gold** and **Silver** over the **last 4 candles** and then compares them with the price movement of the **next candle**:
- **Bullish SMT**: Occurs when Gold shows an increase in the last 4 candles while Silver shows a decrease, and both Gold and Silver show an increase in the next candle.
- **Bearish SMT**: Occurs when Gold shows a decrease in the last 4 candles while Silver shows an increase, and both Gold and Silver show a decrease in the next candle.
4. **Bullish and Bearish Signals**:
- **Bullish SMT Signal**: The script will plot a **green** arrow below the bar when a Bullish SMT setup is identified.
- **Bearish SMT Signal**: A **red** arrow above the bar is plotted when a Bearish SMT setup is identified.
5. **Gold and Silver Difference Plot**:
- The difference between the prices of **Gold** and **Silver** is plotted as a **blue line**, giving a visual representation of the relationship between the two assets. When the difference line moves significantly, it can indicate a potential divergence or convergence in the prices of Gold and Silver.
### Script Logic Breakdown:
1. **Price Change for Last 4 Candles**:
- The script calculates the price change for Gold and Silver from the 4th-to-last candle to the last candle.
- `gold_change_last4` and `silver_change_last4` calculate these price differences.
2. **Price Change for Next Candle**:
- It then calculates the price change from the last candle to the next candle.
- `gold_change_next` and `silver_change_next` calculate these price differences.
3. **Bullish SMT Condition**:
- If Gold increased while Silver decreased in the last 4 candles, and both Gold and Silver show an increase in the next candle, it indicates a **Bullish SMT**.
4. **Bearish SMT Condition**:
- If Gold decreased while Silver increased in the last 4 candles, and both Gold and Silver show a decrease in the next candle, it indicates a **Bearish SMT**.
5. **Time Filter**:
- Signals are only plotted when the current time is between **8:45 AM EST and 10:30 AM EST** to match your preferred trading hours.
### Visualization:
- **Bullish Signals**: Plotted as **green arrows** below the bars when a Bullish SMT setup is identified.
- **Bearish Signals**: Plotted as **red arrows** above the bars when a Bearish SMT setup is identified.
- **Gold - Silver Difference**: A **blue line** is plotted to show the price difference between Gold and Silver, helping visualize any divergence.
### How It Helps:
- **Divergence Identification**: This script highlights potential divergences between Gold and Silver Futures, which can provide insights into market sentiment and smart money movements.
- **Focus on Relevant Time Frame**: By filtering signals between 8:45 AM EST and 10:30 AM EST, you are focusing on a timeframe that can be more beneficial for trading.
- **Visual Clarity**: The arrows and the price difference line provide clear signals and a visual representation of the relationship between Gold and Silver, helping you make informed trading decisions.
This script is an automated approach to detecting **SMT setups** and helping traders recognize when Gold and Silver might be signaling a bullish or bearish move based on their divergence patterns.
Inside Bar Breakout/Fakeout with AI Scenarios [Yosiet]Inside Bar Breakout/Fakeout Indicator with Scenarios
The Indicator is a powerful tool for traders looking to identify potential breakout and fakeout opportunities based on inside bar patterns. This indicator combines multiple technical analysis concepts to provide a comprehensive view of market behavior, helping traders make more informed decisions.
Key Features
Inside bar detection with filtering
Breakout and fakeout identification
Three distinct scenario detections
Customizable moving average calculations
Flexible visualization options
Alert conditions for various events
How It Works
The indicator identifies inside bars and filters them based on a maximum number of consecutive inside bars. It then detects breakouts and fakeouts using user-defined parameters. The script also calculates moving averages to determine trend direction.
Three specific scenarios are detected:
Strong breakout followed by a strong reversal
Weak breakout with multiple doji/weak candles
Strong breakout without reversal
These scenarios are visually represented on the chart, allowing traders to quickly identify potential trading opportunities.
How to Use
Apply the indicator to your chart
Adjust the input parameters to suit your trading style
Look for inside bar patterns and subsequent breakouts/fakeouts
Pay attention to the three scenario markers for additional context
Use the alert conditions to stay informed of potential opportunities