Machine Learning Moving Average [LuxAlgo]The Machine Learning Moving Average (MLMA) is a responsive moving average making use of the weighting function obtained Gaussian Process Regression method. Characteristic such as responsiveness and smoothness can be adjusted by the user from the settings.
The moving average also includes bands, used to highlight possible reversals.
🔶 USAGE
The Machine Learning Moving Average smooths out noisy variations from the price, directly estimating the underlying trend in the price.
A higher "Window" setting will return a longer-term moving average while increasing the "Forecast" setting will affect the responsiveness and smoothness of the moving average, with higher positive values returning a more responsive moving average and negative values returning a smoother but less responsive moving average.
Do note that an excessively high "Forecast" setting will result in overshoots, with the moving average having a poor fit with the price.
The moving average color is determined according to the estimated trend direction based on the bands described below, shifting to blue (default) in an uptrend and fushia (default) in downtrends.
The upper and lower extremities represent the range within which price movements likely fluctuate.
Signals are generated when the price crosses above or below the band extremities, with turning points being highlighted by colored circles on the chart.
🔶 SETTINGS
Window: Calculation period of the moving average. Higher values yield a smoother average, emphasizing long-term trends and filtering out short-term fluctuations.
Forecast: Sets the projection horizon for Gaussian Process Regression. Higher values create a more responsive moving average but will result in more overshoots, potentially worsening the fit with the price. Negative values will result in a smoother moving average.
Sigma: Controls the standard deviation of the Gaussian kernel, influencing weight distribution. Higher Sigma values return a longer-term moving average.
Multiplicative Factor: Adjusts the upper and lower extremity bounds, with higher values widening the bands and lowering the amount of returned turning points.
🔶 RELATED SCRIPTS
Machine-Learning-Gaussian-Process-Regression
SuperTrend-AI-Clustering
Indicadores e estratégias
One Shot One Kill ICT [TradingFinder] Liquidity MMXM + CISD OTE🔵 Introduction
The One Shot One Kill trading setup is one of the most advanced methods in the field of Smart Money Concept (SMC) and ICT. Designed with a focus on concepts such as Liquidity Hunt, Discount Market, and Premium Market, this strategy emphasizes precise Price Action analysis and market structure shifts. It enables traders to identify key entry and exit points using a structured Trading Model.
The core process of this setup begins with a Liquidity Hunt. Initially, the price targets areas like the Previous Day High and Previous Day Low to absorb liquidity. Once the Change in State of Delivery(CISD)is broken, the market structure shifts, signaling readiness for trade entry. At this stage, Fibonacci retracement levels are drawn, and the trader enters a position as the price retraces to the 0.618 Fibonacci level.
Part of the Smart Money approach, this setup combines liquidity analysis with technical tools, creating an opportunity for traders to enter high-accuracy trades. By following this setup, traders can identify critical market moves and capitalize on reversal points effectively.
Bullish :
Bearish :
🔵 How to Use
The One Shot One Kill setup is a structured and advanced trading strategy based on Liquidity Hunt, Fibonacci retracement, and market structure shifts (CISD). With a focus on precise Price Action analysis, this setup helps traders identify key market movements and plan optimal trade entries and exits. It operates in two scenarios: Bullish and Bearish, each with distinct steps.
🟣 Bullish One Shot One Kill
In the Bullish scenario, the process starts with the price moving toward the Previous Day Low, where liquidity is absorbed. At this stage, retail sellers are trapped as they enter short trades at lower levels. Following this, the market reverses upward and breaks the CISD, signaling a shift in market structure toward bullishness.
Once this shift is identified, traders draw Fibonacci levels from the lowest point to the highest point of the move. When the price retraces to the 0.618 Fibonacci level, conditions for a buy position are met. The target for this trade is typically the Previous Day High or other significant liquidity zones where major buyers are positioned, offering a high probability of price reversal.
🟣 Bearish One Shot One Kill
In the Bearish scenario, the price initially moves toward the Previous Day High to absorb liquidity. Retail buyers are trapped as they enter long trades near the highs. After the liquidity hunt, the market reverses downward, breaking the CISD, which signals a bearish shift in market structure. Following this confirmation, Fibonacci levels are drawn from the highest point to the lowest point of the move.
When the price retraces to the 0.618 Fibonacci level, a sell position is initiated. The target for this trade is usually the Previous Day Low or other key liquidity zones where major sellers are active.
This setup provides a precise and logical framework for traders to identify market movements and enter trades at critical reversal points.
🔵 Settings
🟣 CISD Logical settings
Bar Back Check : Determining the return of candles to identify the CISD level.
CISD Level Validity : CISD level validity period based on the number of candles.
🟣 LIQUIDITY Logical settings
Swing period : You can set the swing detection period.
Max Swing Back Method : It is in two modes "All" and "Custom". If it is in "All" mode, it will check all swings, and if it is in "Custom" mode, it will check the swings to the extent you determine.
Max Swing Back : You can set the number of swings that will go back for checking.
🟣 CISD Display settings
Displaying or not displaying swings and setting the color of labels and lines.
🟣 LIQUIDITY Display settings
Displaying or not displaying swings and setting the color of labels and lines.
🔵 Conclusion
The One Shot One Kill setup is one of the most effective and well-structured trading strategies for identifying and capitalizing on key market movements. By incorporating concepts such as Liquidity Hunt, CISD, and Fibonacci retracement, this setup allows traders to enter trades with high precision at optimal points.
The strategy emphasizes detailed Price Action analysis and the identification of Smart Money behavior, helping traders to execute successful trades against the general market trend.
With a focus on identifying liquidity in the Previous Day High and Low and aligning it with Fibonacci retracement levels, this setup provides a robust framework for entering both bullish and bearish trades.
The combination of liquidity analysis and Fibonacci retracement at the 0.618 level enables traders to minimize risk and exploit major market moves effectively.
Ultimately, success with the One Shot One Kill setup requires practice, patience, and strict adherence to its rules. By mastering its concepts and focusing on high-probability setups, traders can enhance their decision-making skills and build a sustainable and professional trading approach.
Smart VolumeSmart Volume offers advanced volume analysis by combining volume patterns, volatility contractions, and breakout detection into a unified indicator. It helps identify key market turning points by:
Detecting volume compressions with volatility alignment - spots potential breakout setups when both volume and volatility contract simultaneously
Identifying climactic volume conditions (buying/selling climax) with specific criteria for exhaustion moves
Auto-detecting significant volume thresholds based on historical data instead of fixed multiples
Monitoring volume/price divergences with strict criteria (>2% price moves, >20% volume changes)
The script includes a dashboard that displays:
Volume analysis (spikes, compressions)
Volatility state (RVM - Relative Movement Value)
Pattern detection (climax, dry-ups, divergences)
Liquidity assessment
Breakout status
Perfect for swing traders looking to capitalize on institutional volume patterns and volatility contractions. Most effective on daily timeframes with liquid stocks.
Key feature: Uses adaptive thresholds that adjust to each symbol's unique volume characteristics rather than fixed multiples.
Uptrick: Zero Lag HMA Trend Suite1. Name and Purpose
Uptrick: Zero Lag HMA Trend Suite is a Pine Version 6 script that builds upon the Hull Moving Average (HMA) to offer an advanced trend analysis tool. Its purpose is to help traders identify trend direction, potential reversals, and overall market momentum with reduced lag compared to traditional moving averages. By combining the HMA with Average True Range (ATR) thresholds, slope-dependent coloring, Volume Weighted Average Price (VWAP) ribbons, and optional reversal signals, the script aims to give a detailed view of price activity in various market environments.
2. Overview
This script begins with the calculation of a Hull Moving Average, a method that blends Weighted Moving Averages in a way designed to cut down on lag while still smoothing out price fluctuations. Next, several enhancements are applied. The script compares current HMA values to previous ones for slope-based coloring, which highlights uptrends and downtrends at a glance. It also plots buy and sell signals when price moves beyond or below thresholds determined by the ATR and the user’s chosen signal multiplier. An optional VWAP ribbon can be shown to confirm bullish or bearish conditions relative to a volume-weighted benchmark. Additionally, the script can plot reversal signals (labeled with B) at points where price crosses back toward the HMA from above or below. Taken together, these elements allow traders to visualize both the short-term momentum and the broader context of how price interacts with volatility and overall market direction.
3. Why These Indicators Have Been Linked Together
The reason the Hull Moving Average, the Average True Range, and the VWAP have been integrated into one script is to tackle multiple facets of market analysis in a single tool. The Zero Lag Hull Moving Average provides a responsive trend line, the ATR offers a measure of volatility that helps distinguish significant price shifts from typical fluctuations, and the VWAP acts as a reference for fair value based on traded volume. By layering all three, the script helps traders avoid the need to juggle multiple separate indicators and offers a holistic perspective. The slope-based coloring focuses on trend direction, the ATR-based thresholds refine possible buy and sell zones, and the VWAP ribbons provide insight into how price stands relative to an important volume-weighted level. The inclusion of up and down signals and reversal B labels further refines entries and exits.
4. Why Use Uptrick: Zero Lag HMA Trend Suite
The Hull Moving Average is already known for reacting more quickly to price changes compared to other moving averages while retaining a degree of smoothness. This suite enhances the basic HMA by showing colored gradients that make it easy to spot trend direction changes, highlighting potential entry or exit points based on volatility-driven thresholds, and optionally layering a volume-based measure of bullish or bearish market sentiment. By relying on a zero lag approach and additional data points, the script caters to those wanting a more responsive method of identifying shifts in market dynamics. The added reversal signals and up or down alerts give traders extra confirmation for potential turning points.
5. How This Extension Improves on the Basic HMA
This extension not only plots the Hull Moving Average but also includes data-driven alerts and visual cues that traditional HMA lines do not provide. First, it offers multi-layered slope coloring, making up or down trends quickly apparent. Second, it uses ATR-based thresholds to pinpoint moments when price may be extending beyond normal volatility, thus generating buy or sell signals. Third, the script introduces an optional VWAP ribbon to indicate whether the market is trading above or below this pivotal volume-weighted benchmark, adding a further confirmation step for bullish or bearish conditions. Finally, it incorporates optional reversal signals labeled with B, indicating points where price might swing back toward the main HMA line.
6. Core Components
The script can be broken down into several primary functions and features.
a. Zero Lag HMA Calculation
Uses two Weighted Moving Averages (half-length and full-length) combined through a smoothing step based on the square root of the chosen length. This approach is designed to reduce lag significantly compared to other moving averages.
b. Slope Detection
Compares current and prior HMA values to determine if the trend is up or down. The slope-based coloring changes between turquoise shades for upward movement and magenta shades for downward movement, making trend direction immediately visible.
c. ATR-Based Thresholding for Up and Down Signals
The script calculates an Average True Range over a user-defined period, then multiplies it by a signal factor to form two bands around the HMA. When price crosses below the lower band, an up (buy) signal appears; when it crosses above the upper band, a down (sell) signal is shown.
d. Reversal Signals (B Labels)
Tracks when price transitions back toward the main HMA from an extreme zone. When enabled, these reversal points are labeled with a B and can help traders see potential turning points or mean-reversion setups.
e. VWAP Bands
An optional Volume Weighted Average Price ribbon that plots above or below the HMA, indicating bullish or bearish conditions relative to a volume-weighted price benchmark. This can also act as a kind of support/ resistance.
7. User Inputs
a. HMA Length
Controls how quickly the moving average responds to price changes. Shorter lengths react faster but can lead to more frequent signals, whereas longer lengths produce smoother lines.
b. Source
Specifies the price input, such as close or an alternative source, for the calculation. This can help align the HMA with specific trading strategies.
c. ATR Length and Signal Multiplier
Defines how the script calculates average volatility and sets thresholds for buy or sell alerts. Adjusting these values can help filter out noise or highlight more aggressive signals.
d. Slope Index
Determines how many bars to look back for detecting slope direction, influencing how sensitive the slope coloring is to small fluctuations.
e. Show Buy and Sell Signals, Reversal Signals, and VWAP
Lets users toggle the display of these features. Turning off certain elements can reduce chart clutter if traders prefer a simpler layout.
8. Calculation Process
The script’s calculation follows a step-by-step approach. It first computes two Weighted Moving Averages of the selected price source, one over half the specified length and one over the full length. It then combines these using 2*wma1 minus wma2 to reduce lag, followed by applying another weighted average using the square root of the length. Simultaneously, it computes the ATR for a user-defined period. By multiplying ATR by the signal multiplier, it establishes upper and lower bands around the HMA, where crossovers generate buy (up) or sell (down) signals. The script can also plot reversal signals (B labels) when price crosses back from these bands in the opposite direction. For the optional VWAP feature, Pine Script’s ta.vwap function is used, and differences between the HMA and VWAP levels determine the color and opacity of the ribbon.
9. Signal Generation and Filtering
The ATR-based thresholds reduce the influence of small, inconsequential price swings. When price falls below the lower band, the script issues an up (buy) signal. If price breaks above the upper band, a down (sell) signal appears. These signals are visible through labels placed near the bars. Reversal signals, labeled with B, can be turned on to help detect when price retraces from an extended area back toward the main HMA line. Traders can disable or enable these signals to match their preferred level of chart detail or risk tolerance.
10. Visualization on the Chart
The Zero HMA Lag Trend Suite aims for visual clarity. The HMA line is plotted multiple times with increasing transparency to create a gradient effect. Turquoise gradients indicate upward slopes, and magenta gradients signify downward slopes. Bar coloring can be configured to align with the slope direction, providing quick insight into current momentum. When enabled, buy or sell labels are placed under or above the bars as price crosses the ATR-defined boundaries. If the reversal option is active, B labels appear around areas where price changes direction. The optional VWAP ribbons form background bands, using distinct coloration to signal whether price is above or below the volume-weighted metric.
11. Market Adaptability
Because the script’s parameters (HMA length, ATR length, signal multiplier, and slope index) are user-configurable, it can adapt to a wide range of markets and timeframes. Intraday traders may prefer a shorter HMA length for quick signals, while swing or position traders might use a longer HMA length to filter out short-lived price changes. The source setting can also be adjusted, allowing for specialized data inputs beyond just close or open values.
12. Risk Management Considerations
The script’s signals and labels are based on past price data and volatility readings, and they do not guarantee profitable outcomes. Sharp market reversals or unforeseen fundamental events can produce false signals. Traders should combine this tool with broader risk management strategies, including stop-loss placement, position sizing, and independent market analyses. The Zero HMA Lag Trend Suite can help highlight potential opportunities, but it should not be relied upon as the sole basis for trade decisions.
13. Combining with Other Tools
Many traders choose to verify signals from the Zero HMA Lag Trend Suite using popular indicators like the Relative Strength Index (RSI), Moving Average Convergence Divergence (MACD), or even simple volume-based metrics to confirm whether a price movement has sufficient momentum. Conventional techniques such as support and resistance levels, chart patterns, or candlestick analysis can also supplement signals generated by the script’s up, down, or reversal B labels.
14. Parameter Customization and Examples
a. Short-Term Day Trading
Using a shorter HMA length (for instance, 9 or 14) and a slightly higher ATR multiplier might provide timely buy and sell signals, though it may also produce more whipsaws in choppy markets.
b. Swing or Position Trading
Selecting a longer HMA length (such as 50 or 100) with a moderate ATR multiplier can help users track more significant and sustained market moves, potentially reducing the effect of minor fluctuations.
c. Multiple Timeframe Blends
Some traders load two versions of the indicator on the same chart, one for short-term signals (with frequent B label reversals) and another for the broader trend direction, aligning entry and exit decisions with the bigger picture.
15. Realistic Expectations
Even though the Hull Moving Average helps minimize lag and the script incorporates volatility-based filters and optional VWAP overlays, it cannot predict future market behavior with complete accuracy. Periods of low liquidity or sudden market shocks can still lead to signals that do not reflect longer-term trends. Frequent parameter review and manual confirmation are advised before executing trades based solely on the script’s outputs.
16. Theoretical Background
The Hull Moving Average formula aims to balance smoothness with reactivity, accomplished by combining Weighted Moving Averages at varying lengths. By subtracting a slower average from a faster one and then applying another smoothing step with the square root of the original length, the HMA is designed to respond more promptly to price changes than typical exponential or simple moving averages. The ATR component, introduced by J. Welles Wilder, calculates the average range of price movement over a user-defined period, allowing the script to assess volatility and adapt signals accordingly. VWAP provides a volume-weighted benchmark that many institutional traders track to gauge fair intraday value.
17. Originality and Uniqueness
Although multiple HMA-based indicators can be found, Uptrick: Zero Lag HMA Trend Suite sets itself apart by merging slope-based coloring, ATR thresholds, VWAP ribbons, up or down labels, and optional reversal signals all in one cohesive platform. This synergy aims to reduce chart clutter while still giving traders a comprehensive look at trend direction, volatility, and volume-based sentiment.
18. Summary
Uptrick: Zero Lag HMA Trend Suite is a specialized trading script designed to highlight potential market trends and reversals with minimal delay. It leverages the Hull Moving Average for an adaptive yet smooth price line, pairs ATR-based thresholds for detecting possible breakouts or dips, and provides VWAP-based ribbons for added volume-weighted context. Traders can further refine their entries and exits by enabling up or down signals and reversal labels (B) where price may revert toward the HMA. Suitable for a wide range of timeframes and instrument types, the script encourages a disciplined approach to trade management and risk control.
19. Disclaimer
This script is provided for informational and educational purposes only. Trading and investing involve significant financial risk, and no indicator can guarantee success under all conditions. Users should practice robust risk management, including the placement of stop losses and position sizing, and should confirm signals with additional analysis tools. The developer of this script assumes no liability for any trading decisions or outcomes resulting from its use.
PDF MA For Loop [BackQuant]PDF MA For Loop
Introducing the PDF MA For Loop, an innovative trading indicator that combines Probability Density Function (PDF) smoothing with a dynamic for-loop scoring mechanism. This advanced tool provides traders with precise trend-following signals, helping to identify long and short opportunities with improved clarity and adaptability to market conditions.
If you would like to check out the stand alone PDF Moving Average:
Core Concept: Probability Density Function (PDF) Smoothing
The PDF smoothing method is a unique approach that applies adaptive weights to price data based on a Probability Density Function. This ensures that recent data points receive appropriate emphasis while maintaining a smooth transition across the data set. The result is a moving average that is not only smoother but also more responsive to market changes.
Key parameters in PDF smoothing:
Variance : Controls the spread of the PDF, where a higher value results in broader smoothing and a lower value makes the moving average more sensitive.
Mean : Centers the PDF around a specific value, influencing the weighting and responsiveness of the smoothing process.
By combining PDF smoothing with traditional moving averages (EMA or SMA), the indicator creates a hybrid signal that balances responsiveness and reliability.
For-Loop Scoring Mechanism
At the heart of this indicator is the for-loop scoring mechanism, which evaluates the smoothed PDF moving average over a defined range of historical data points. This process assigns a score to the current market condition based on whether the PDF moving average is greater than or less than previous values.
Long Signal: A long signal is generated when the score exceeds the Long Threshold (default set at 40), indicating upward momentum.
Short Signal: A short signal is triggered when the score crosses below the Short Threshold (default set at -10), suggesting potential downward momentum.
This dynamic scoring system ensures that the indicator remains adaptive, capturing trends and shifts in market sentiment effectively.
Customization Options
The PDF MA For Loop includes a variety of customizable settings to fit different trading styles and strategies:
Calculation Settings
Price Source : Select the input price for the calculation (default is the close price).
Smoothing Method : Choose between EMA or SMA for the additional smoothing layer, providing flexibility to adapt to market conditions.
Smoothing Period : Adjust the lookback period for the smoothing function, with shorter periods providing more sensitivity and longer periods offering greater stability.
Variance & Mean : Fine-tune the PDF function parameters to control the weighting of the smoothing process.
Signal Settings
Thresholds : Customize the upper and lower thresholds to define the sensitivity of the long and short signals.
For Loop Range : Set the range of historical data points analyzed by the for-loop, influencing the depth of the scoring mechanism.
UI Settings
Signal Line Width: Adjust the thickness of the plotted signal line for better visibility.
Candle Coloring: Enable or disable the coloring of candlesticks based on trend direction (green for long, red for short, gray for neutral).
Background Coloring: Add background shading to highlight long and short signals for an enhanced visual experience.
Alerts and Automation
The indicator includes built-in alert conditions to notify traders of important market events:
Long Signal Alert: Notifies when the score exceeds the upper threshold, indicating a bullish trend.
Short Signal Alert: Notifies when the score crosses below the lower threshold, signaling a bearish trend.
These alerts can be configured for real-time notifications, allowing traders to respond quickly to market changes without constant chart monitoring.
Trading Applications
The PDF MA For Loop is versatile and can be applied across various trading strategies and market conditions:
Trend Following: The PDF smoothing method combined with for-loop scoring makes this indicator particularly effective for identifying and following trends.
Reversal Trading: By observing the thresholds and score, traders can anticipate potential reversals when the trend shifts from long to short (or vice versa).
Risk Management: The dynamic thresholds and scoring provide clear signals, allowing traders to enter and exit trades with greater confidence and precision.
Final Thoughts
The PDF MA For Loopis merges advanced mathematical concepts with practical trading tools. By leveraging Probability Density Function smoothing and a dynamic for-loop scoring system, it provides traders with clear, actionable signals while adapting to market conditions.
Whether you’re looking for an edge in trend-following strategies or seeking precision in identifying reversals, this indicator offers the flexibility and power to enhance your trading decisions
As always, backtesting and integrating the PDF MA For Loop into a comprehensive trading strategy is recommended for optimal performance, as no single indicator should be used in isolation.
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
EBL - Enhanced BOS LogicEBL - Enhanced BOS Logic
The EBL (Enhanced Break of Structure Logic) script is a powerful tool for traders who want to identify and act on key structural shifts in the market. By combining visual cues, such as horizontal lines and dynamic arrows, the script highlights critical points of interest where market behavior may indicate significant bullish or bearish momentum.
What Makes EBL Unique?
Break of Structure (BOS) Identification:
The script dynamically detects when price breaks above or below significant highs and lows, marking these levels as key BOS points.
Once a BOS level is confirmed, it is displayed on the chart as a horizontal line, allowing traders to easily identify areas of potential support and resistance.
Real-Time Validation and Invalidations:
Bullish BOS levels remain active until a bearish candle closes below the initiating bullish candle.
Similarly, bearish BOS levels remain active until a bullish candle closes above the initiating bearish candle.
If a BOS level is invalidated, both the corresponding line and its arrow are automatically removed to maintain chart clarity.
Visual Clarity with Arrows and Lines:
Customizable triangle arrows (green for bullish and red for bearish) appear alongside lines to signal entry opportunities.
Traders can adjust line length, colors, and visibility of arrows to fit their charting style.
Alerts for Confirmation:
Receive alerts when bullish or bearish structures are confirmed, ensuring you never miss a signal even when away from your chart.
How the Script Works
Detection of Bullish and Bearish Structures:
The script identifies a "Bullish Break" when the price closes above the high of a bullish candle followed by a bearish one.
A "Bearish Break" is detected when the price closes below the low of a bearish candle followed by a bullish one.
Line and Arrow Placement:
Horizontal lines are drawn at the high or low of the respective BOS level.
Triangular arrows are plotted just below or above the respective levels to indicate potential trade opportunities.
Automatic Cleanup:
When a line is invalidated by opposing market movement, both the line and its connected arrow are automatically removed from the chart.
How to Use EBL
Settings:
Adjust line colors (green for bullish, red for bearish) to suit your charting theme.
Customize arrow visibility or hide lines if you prefer a less cluttered chart.
Set the horizontal line length to match your desired timeframe and analysis depth.
Trading Concepts:
Trend Reversal Zones: Use invalidated BOS levels as signals for possible trend reversals.
Momentum Trading: Follow confirmed BOS levels to identify areas where price momentum is likely to continue.
Dynamic Support and Resistance: Leverage the lines to identify evolving support and resistance zones.
Alerts:
Enable alerts to receive notifications when bullish or bearish trends are confirmed, allowing you to stay informed without constant monitoring.
Conceptual Basis
This script is based on the widely used market structure concept, which is fundamental to price action trading. By tracking the highs and lows created by bullish and bearish movements, the EBL script provides an objective and systematic approach to identifying and trading key structural points in the market.
With the EBL - Enhanced BOS Logic, traders can visually and systematically track market structure, identify potential trade setups, and maintain a cleaner chart with automated line and arrow management. This script is ideal for trend-following, scalping, and swing trading strategies across all markets and timeframes.
Dragon Harmonic Pattern [TradingFinder] Dragon Detector🔵 Introduction
The Dragon Harmonic Pattern is one of the technical analysis tools that assists traders in identifying Potential Reversal Zones (PRZ). Resembling an "M" or "W" shape, this pattern is recognized in financial markets as a method for predicting bullish and bearish trends. By leveraging precise Fibonacci ratios and measuring price movements, traders can use this pattern to forecast market trends with high accuracy.
The Dragon Harmonic Pattern is built on the XABCD structure, where each point plays a significant role in shaping and forecasting price movements. Point X marks the beginning of the trend, representing the initial price movement. Point A indicates the first retracement, usually falling within the 0.380 to 0.620 range of the XA wave.
Next, point B signals the second retracement, which lies within 0.200 to 0.400 of the AB wave. Point C, acting as the hump of the pattern, is generally located within 0.800 to 1.100 of the XA wave. Finally, point D represents the endpoint of the pattern and the Potential Reversal Zone (PRZ), where the primary price reversal occurs.
In bullish scenarios, the Dragon Pattern indicates a reversal from a downtrend to an uptrend, where prices move upward from point D. Conversely, in bearish scenarios, prices decline after reaching point D. Accurate identification of this pattern through Fibonacci ratio analysis and PRZ examination can significantly increase the success rate of trades, enabling traders to adjust their strategies based on key market levels such as 0.618 or 1.100.
Due to its high accuracy in identifying Potential Reversal Zones (PRZ) and its alignment with Fibonacci ratios, the Dragon Harmonic Pattern is considered one of the most popular tools in technical analysis. Traders can use this pattern to pinpoint entry and exit points with greater confidence while minimizing trading risks.
Bullish :
Bearish :
🔵 How to Use
The Dragon Harmonic Pattern indicator helps traders identify bullish and bearish patterns in the market, allowing them to capitalize on available trading opportunities. By analyzing Fibonacci ratios and the XABCD structure, the indicator highlights Potential Reversal Zones (PRZ).
🟣 Bullish Dragon Pattern
In the Bullish Dragon Pattern, the price transitions from a downtrend to an uptrend after reaching point D. At this stage, points X, A, B, C, and D must be carefully identified.
Fibonacci ratios for these points are as follows: Point A should fall within 0.380 to 0.620 of the XA wave, point B within 0.200 to 0.400 of the AB wave, and point C within 0.800 to 1.100 of the XA wave.
When the price reaches point D, traders should look for bullish signals such as reversal candlesticks or increased trading volume to enter a buy position. The take-profit level can be set near the previous price high or based on the 1.272 Fibonacci ratio of the XA wave, while the stop-loss should be placed slightly below point D.
🟣 Bearish Dragon Pattern
In the Bearish Dragon Pattern, the price shifts from an uptrend to a downtrend after reaching point D. In this pattern, points X, A, B, C, and D must also be identified. Fibonacci ratios for these points are as follows: Point A should fall within 0.380 to 0.620 of the XA wave, point B within 0.200 to 0.400 of the AB wave, and point C within 0.800 to 1.100 of the XA wave.
Upon reaching point D, bearish signals such as reversal candlesticks or decreasing trading volume indicate the opportunity to enter a sell position. The take-profit level can be set near the previous price low or based on the 1.272 Fibonacci ratio of the XA wave, while the stop-loss should be placed slightly above point D.
By combining the Dragon Harmonic Pattern indicator with precise Fibonacci ratio analysis, traders can identify key opportunities while minimizing risks and improving their decision-making in both bullish and bearish market conditions.
🔵 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 Forma t: 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 Dragon Harmonic Pattern is an advanced and practical technical analysis tool that aids traders in accurately predicting bullish and bearish trends by identifying Potential Reversal Zones (PRZ) and utilizing Fibonacci ratios. Built on the XABCD structure, this pattern stands out for its flexibility and precision in identifying price movements, making it a valuable resource among technical analysts. One of its key advantages is its compatibility with other technical tools such as trendlines, support and resistance levels, and Fibonacci retracements.
By using the Dragon Harmonic Pattern indicator, traders can accurately determine entry and exit points for their trades. The indicator analyzes key Fibonacci ratios—0.380 to 0.620, 0.200 to 0.400, and 0.800 to 1.100—to identify critical levels such as price highs and lows, offering precise trading strategies. In bullish scenarios, traders can profit from rising prices, while in bearish scenarios, they can capitalize on price declines.
In conclusion, the Dragon Harmonic Pattern is a highly reliable tool for identifying trading opportunities with exceptional accuracy. However, for optimal results, it is recommended to combine this pattern with other analytical tools and thoroughly assess market conditions. By utilizing this indicator, traders can reduce their trading risks while achieving higher profitability and confidence in their trading strategies.
Quartile For Loop [SeerQuant]Quartile For Loop (QFL)
- The Quartile For Loop (QFL) is an advanced trend-following and scoring oscillator designed to detect momentum shifts and trend transitions using a quartile-based analysis. By leveraging quartile calculations and iterative scoring logic, QFL delivers dynamic trend signals which can be tailored to suit various market conditions.
--------------------------------------------------------------------------------------------------
⚙️ How It Works
1️⃣ Quartile-Based Calculation
The indicator calculates the weighted average of the first quartile (Q1), median (Q2), and third quartile (Q3) over a customizable length, providing a robust adaptive trend value.
2️⃣ For Loop Scoring System
A unique for-loop structure iteratively scores each quartile value against historical data, delivering actionable trend signals. Users can toggle between price-based and quartile-based scoring methods for flexibility.
3️⃣ Threshold Logic
Bullish (Uptrend): Score exceeds the positive threshold.
Bearish (Downtrend): Score falls below the negative threshold.
Neutral: Score remains between thresholds.
4️⃣ Visual Trend Enhancements
Optional candle coloring and a color-coded SMA provide clear visual cues for identifying trend direction. The adaptive quartile is dynamically updated to reflect changing market conditions.
--------------------------------------------------------------------------------------------------
✨ Customizable Settings
Indicator Inputs
Quartile Length: Define the calculation length for quartile analysis.
Calculation Source: Choose the data source for quartile calculations (e.g., close price).
Alternate Signal: Toggle between price-based and quartile-based scoring.
Loop Settings
Start/End Points: Set the range for the for-loop scoring system.
Thresholds: Customize uptrend and downtrend thresholds.
Style Settings
Candle Coloring: Enable optional trend-based candle coloring.
Color Schemes: Select from five unique palettes for trend visualization.
--------------------------------------------------------------------------------------------------
🚀 Features and Benefits
Quartile-Driven Analysis: Harnesses the statistical power of quartiles for adaptive trend evaluation.
Dynamic Scoring: Iterative scoring logic adjusts to market fluctuations.
Clear Visual Representation: Color-coded histograms, candles, and trendlines enhance readability.
Fully Customizable: Flexible inputs allow adaptation to diverse trading styles and strategies.
--------------------------------------------------------------------------------------------------
📜 Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Market analysis is inherently speculative and subject to risk. Users should consult a licensed financial advisor before making trading decisions. Use at your own discretion.
--------------------------------------------------------------------------------------------------
VIVIDLY MIX Scalper with signal & DMI TrendThe VIVIDLY MIX Scalper with signal & DMI Trend indicator is a powerful tool for scalping and trading in the market, combining several popular methodologies and indicators. It is designed to help traders make informed decisions based on multiple signals, including trend indicators, oscillators, and support/resistance levels.
Key Components of the Indicator:
CM_SlingShotSystem (Author: ChrisMoody)
The SlingShot system helps traders stay on the right side of the trend. It includes aggressive and conservative entry points, as well as arrows and labels to indicate the trend direction.
Parabolic SAR + EMA 200 + MACD Signals (Author: Saleh_Toodarvari)
A combination of Parabolic SAR, the 200-period EMA, and MACD to identify entry and exit points. Signals are generated based on MACD crossovers, histogram behavior, and the price position relative to the EMA 200.
Double Zig Zag with HHLL (Author: LonesomeTheBlue)
A double ZigZag indicator that highlights higher highs (HH) and lower lows (LL). It helps visualize key support and resistance levels and identifies potential reversal points.
Swing Points and Liquidity (Author: LeviathanCapital)
An indicator that marks key liquidity levels and swing points. It includes options to display volume and changes in open interest (OI).
Relative Strength Index (RSI)
A classic RSI oscillator with customizable length and divergence detection. It is used to identify overbought and oversold conditions.
Awesome Oscillator (AO)
An oscillator based on the difference between two moving averages. It shows momentum changes and is used to confirm trends.
Directional Movement Index (DMI)
An indicator that helps determine trend strength and direction. It includes +DI, -DI, and ADX lines to assess trending conditions.
Features of the Indicator:
Multi-Timeframe Analysis: The indicator can be used on various timeframes, making it a versatile tool for both scalping and medium-term trading.
Signal Table: A table in the top-right corner displays current signals, helping traders quickly assess market conditions.
Customizable Settings: Users can enable/disable various components, customize colors, styles, and parameters for each element.
Alerts: The indicator supports alerts for key signals, such as MACD crossovers, RSI divergences, and AO direction changes.
Acknowledgments to the Authors:
ChrisMoody for the SlingShot system, which forms the basis for aggressive and conservative entry points.
Saleh_Toodarvari for integrating Parabolic SAR, EMA 200, and MACD, adding powerful tools for trend identification.
LonesomeTheBlue for the Double Zig Zag, which helps visualize key levels and reversal points.
LeviathanCapital for Swing Points and Liquidity, adding depth to the analysis through liquidity levels and swing points.
This indicator is the result of the hard work of several talented developers, and I extend my heartfelt gratitude to each of them for their contributions to creating this powerful trading tool.
TTrades Fractal ModelFractal Model by TTrades
Crafted with TTrades, the Fractal Model empowers traders with a refined approach to Algorithmic Price Delivery. Specifically designed for those aiming to capitalize on expansive moves, this model anticipates momentum shifts, swing formations, orderflow continuations, as well as helping analysts highlight key areas to anticipate price deliveries.
Description:
The Fractal Model° is rooted in the cyclical nature of price movements, where price alternates between large and small ranges. Expansion occurs when price moves consistently in one direction with momentum. By combining higher Timeframe closures with the confirmation of the change in state of delivery (CISD) on the lower Timeframe, the model reveals moments when expansion is poised to occur.
First Minute High/Low of New Hour (Rectangle)I publish the IB of 1hour candle so yo ucan take better trades into the momentumm with the overall HT narrative.
MI AI// TradingView Pine Script v6 для улучшенной адаптивной стратегии
//@version=6
strategy("Improved Adaptive Crypto Strategy", overlay=true)
// Настройка параметров с возможностью оптимизации
adxThreshold = input.int(20, title="ADX Threshold", minval=10, maxval=30, step=5) // Рекомендованный минимум для фильтрации трендов
bollMultiplier = input.float(2.0, title="Bollinger Bands Multiplier", minval=1.0, maxval=3.0, step=0.1) // Стандартное отклонение для полос Боллинджера
volumeMultiplier = input.float(1.0, title="Volume Multiplier", minval=0.5, maxval=2.0, step=0.1) // Множитель для фильтра объёма
// Статические значения индикаторов с настройкой через input
emaLongLength = input.int(100, title="EMA Long Length", minval=10, maxval=200)
emaShortLength = input.int(25, title="EMA Short Length", minval=5, maxval=50)
macdFast = input.int(8, title="MACD Fast Length", minval=5, maxval=50)
macdSlow = input.int(21, title="MACD Slow Length", minval=10, maxval=100)
macdSignal = input.int(6, title="MACD Signal Length", minval=3, maxval=50)
rsiLength = input.int(14, title="RSI Length", minval=5, maxval=50)
atrLength = input.int(14, title="ATR Length", minval=5, maxval=50)
bollLength = input.int(20, title="Bollinger Bands Length", minval=5, maxval=50)
trailStopMultiplier = input.float(1.5, title="Trailing Stop Multiplier", minval=0.5, maxval=3.0)
// Индикаторы
emaLong = ta.ema(close, emaLongLength)
emaShort = ta.ema(close, emaShortLength)
rsiValue = ta.rsi(close, rsiLength)
= ta.macd(close, macdFast, macdSlow, macdSignal)
adxPlus = ta.rma(math.max(ta.change(high) - ta.change(low), 0), adxThreshold)
adxMinus = ta.rma(math.max(ta.change(low) - ta.change(high), 0), adxThreshold)
adxValue = 100 * math.abs(adxPlus - adxMinus) / (adxPlus + adxMinus)
atrValue = ta.atr(atrLength)
= ta.bb(close, bollLength, bollMultiplier)
obv = ta.cum(volume * ((close > close ) ? 1 : (close < close ) ? -1 : 0))
// Тренд и объём
trendStrength = emaShort / emaLong
isUptrend = trendStrength > 1.01 and obv > obv
isDowntrend = trendStrength < 0.99 and obv < obv
volumeFilter = volume > ta.sma(volume, 20) * volumeMultiplier
// Сигналы MACD
macdCrossover = ta.crossover(macdLine, signalLine)
macdCrossunder = ta.crossunder(macdLine, signalLine)
// Условия входа и выхода
longCondition = isUptrend and macdCrossover and rsiValue > 50 and adxValue > adxThreshold and close > bollBasis and volumeFilter
shortCondition = isDowntrend and macdCrossunder and rsiValue < 50 and adxValue > adxThreshold and close < bollBasis and volumeFilter
exitLongCondition = rsiValue > 70 or close < emaShort
exitShortCondition = rsiValue < 30 or close > emaShort
// Управление рисками
stopLoss = 2.5 * atrValue
profitTarget = stopLoss * 2.5
trailingStop = trailStopMultiplier * atrValue
// Открытие и выход из позиций
if (longCondition)
strategy.entry("Long Entry", strategy.long)
strategy.exit("Long Exit", "Long Entry", stop=close - stopLoss, limit=close + profitTarget, trail_offset=trailingStop)
if (exitLongCondition)
strategy.close("Long Entry")
if (shortCondition)
strategy.entry("Short Entry", strategy.short)
strategy.exit("Short Exit", "Short Entry", stop=close + stopLoss, limit=close - profitTarget, trail_offset=trailingStop)
if (exitShortCondition)
strategy.close("Short Entry")
// Визуализация сигналов
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.triangleup, title="Long Signal")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.triangledown, title="Short Signal")
plotshape(series=exitLongCondition and strategy.position_size > 0, location=location.abovebar, color=color.blue, style=shape.labelup, title="Exit Long")
plotshape(series=exitShortCondition and strategy.position_size < 0, location=location.belowbar, color=color.orange, style=shape.labeldown, title="Exit Short")
Time Algo [Project Baby Forex]This indicator is based on the Time Algorithm strategy developed by Project Baby Forex
Smart Money Concepts V2.5 pro - CryptoBoostArmamos un analisis intenso con tendencias, quiebres de tendencia, canales y order blocks claves para que puedas armar y complementar los analisis con nuestra estrategia.
Multiasset MVRVZ - MVRVZ for Multiple Crypto Assets [Da_Prof]This indicator shows the Market Value-Realized Value Z-score (MVRVZ) for Multiple Assets. The MVRV-Z score measures the value of a crypto asset by comparing its market cap to the realized value and dividing by the standard deviation of the market cap (market cap – realized cap) / stdev(market cap) to get a z-score. When the market value is significantly higher than the realized value, the asset may be considered "overvalued". Conversely, market values below the realized value may indicate the asset is "undervalued". For some assets (e.g., BTC) historically high values have generally signaled price tops and historically low values have signaled bottoms.
The indicator displays two lines: 1) the MVRV-Z of the current chart symbol if the data is available through Coin Metrics (this is displayed in light blue), and 2) the MVRV-Z of the symbol selected from the dropdown (displayed in orange). The MVRV-Z of BTC is the default selected orange line. The example chart shows CRYPTOCAP:ETH 's MVRV-Z in blue and CRYPTOCAP:BTC 's MVRV-Z in orange.
The MVRV-Z in this indicator is calculated on the weekly and will display consistently on lower timeframes. Some MVRV-Z indicators calculate this value from collection of all data from the beginning of the chart on the timeframe of the chart. This creates inconsistency in the standard deviation calculation and ultimately the z-score calculation when moving between time frames. This indicator calculates MVRV-Z based on the set number of weeks prior from the source data directly (default is two years worth of weekly data). This allows consistent MVRV-Z values on weekly and lower timeframes.
Next Level Swing TimerThis script identifies high-momentum candles in alignment with the trend, helping you trade with confidence. It uses a combination of ATR (Average True Range) increases and specific candle parameters, such as current candle median moves relative to the previous candle median and body size also relative to the previous candle body, to highlight potential trade setups.
Trends are determined using highs and lows from the zigzag indicator. Two higher lows confirm an uptrend, while two lower lows signal a downtrend. A new trend can only start when the previous one ends, ensuring clarity in market direction.
By combining momentum detection with trend confirmation, this script provides clear, actionable signals for trend-following strategies. It’s designed to simplify decision-making and keep your trading in alignment with the market.
It’s up to you how to use the signals, but I recommend entering around the middle of the marked candle and setting your stop just above or below it after entry.
Buy Sell Cipher pro v2.5 - CryptoBoostArmamos una estrategia de compra y venta basado en el momentum del precio. Podes probarlo en estrategias del Scalping en 15min y 1hr detectando impulsos y retrocesos.
intra_UpwardHere we calculate resistance levels for intraday. it calculates level on the basis of base price instead of previous range.
USDT.D + USDC.D TraderPro
لا تنسوني من دعائكم إذا استفدتم من المؤشر
Telegram: t.me
هذا المؤشر يجمع بين هيمنة USDT و USDC، وهما من أكبر العملات المستقرة في السوق، لتوفير رؤية واضحة ودقيقة عن التأثير الذي تمارسه هذه العملات على إجمالي سوق العملات الرقمية.
الميزات الرئيسية:
هيمنة فردية: يعرض النسبة المئوية لهيمنة USDT و USDC بشكل منفصل.
إجمالي الهيمنة المشتركة: يوفر خط متابعة يجمع بين هيمنتي العملتين لفهم التأثير الكلي لهما على السوق.
دقة في الوقت الحقيقي: يحسب القيم ويقوم بتحديثها بناءً على أحدث بيانات TradingView.
عرض بصري واضح: يتم تخصيص لون فريد لكل خط لتسهيل القراءة:
الأزرق: هيمنة USDT.
الأخضر: هيمنة USDC.
الأحمر: إجمالي الهيمنة المشتركة.
الفوائد:
تحليل استراتيجي: يتيح هذا المؤشر تقييم كيفية تأثير العملات المستقرة على تدفق رأس المال في سوق العملات الرقمية.
تحديد الاتجاهات: فهم نمو أو تراجع الهيمنة يساعد في اكتشاف تغييرات هامة في اتجاه السوق.
دعم اتخاذ قرارات مستنيرة: مثالي للمتداولين الباحثين عن علاقات بين هيمنة العملات المستقرة وحركة السوق.
لمن هذا المؤشر؟
هذا السكربت مثالي لـ:
المتداولين المهتمين بالتفاعل بين العملات المستقرة وإجمالي السوق.
المحللين الذين يحتاجون إلى مؤشر موثوق لتقييم تأثير العملات المستقرة.
أي شخص يرغب في الحصول على رؤية أعمق لسوق العملات الرقمية.
لا تنسوني من دعائكم إذا استفدتم من المؤشر
Telegram: t.me
Dynamic Support and Resistance with Fake Signals (Weak/Strong)Dynamic Support and Resistance with Fake Signals (Weak/Strong) for TradingView
The Dynamic Support and Resistance with Fake Signals indicator provides a comprehensive analysis of market conditions by identifying key support and resistance levels, highlighting potential fake signals, and offering additional visual cues for traders. This article introduces the core functionalities, benefits, and application of this indicator.
Key Features
Dynamic Support and Resistance Levels
The indicator dynamically calculates support and resistance levels using pivot points, Average True Range (ATR), and a specified range of candles.
These levels are displayed as horizontal lines or boxes, providing clear visual cues for traders.
Fake Signal Detection
Identifies potential fake bullish and fake bearish signals based on:
RSI overbought and oversold conditions.
Long upper and lower wicks relative to candle bodies.
High volume compared to the average volume.
Fake signals are classified as Weak or Strong, with annotations and alerts to highlight their strength.
Volume and Wick Analysis
Analyzes candle wick deviations and volume thresholds to detect manipulative price actions or unusual market conditions.
Visual Enhancements
Support and resistance zones are shown as shaded boxes for better clarity.
Alerts and labels provide real-time insights into price action around these levels.
Alerts for Key Events
Custom alerts notify users when:
Fake bullish or bearish signals occur.
Support or resistance levels are broken.
How It Works
Support and Resistance Calculation
The indicator uses pivot high/low values to determine levels and adjusts them dynamically based on ATR values.
Fake Signal Identification
Fake Bullish Signal: Occurs when the price exceeds the resistance level, with a long upper wick, high volume, and RSI in the overbought zone.
Fake Bearish Signal: Occurs when the price falls below the support level, with a long lower wick, high volume, and RSI in the oversold zone.
Strength Classification
Signals are categorized as:
Strong: RSI > 85 (bullish) or < 15 (bearish).
Weak: RSI in less extreme ranges but still meeting other criteria.
Real-Time Alerts
Alerts are triggered for significant events like support/resistance breaches or confirmed fake signals.
Use Cases
Identifying Market Manipulation
Detect fake signals to avoid getting trapped by market makers or manipulative price moves.
Support/Resistance Trading
Leverage dynamically generated levels to find high-probability trade setups.
Enhanced Risk Management
Utilize alerts and signal strengths to make informed decisions and manage risk effectively.
Customization Options
The indicator offers user-configurable parameters to suit various trading styles:
Range Candle Count: Adjust the range length for pivot calculation.
Wick Deviation Factor: Modify the threshold for identifying long wicks.
Volume Threshold: Set the volume ratio for fake signal detection.
RSI and ATR Periods: Tailor the calculations for relative strength and volatility.
Zone Colors: Customize support and resistance box colors.
Conclusion
The Dynamic Support and Resistance with Fake Signals indicator is a powerful tool for traders looking to identify critical price levels and avoid fake signals in the market. By combining advanced technical analysis techniques with real-time alerts and visual cues, this indicator empowers traders to navigate the complexities of financial markets with confidence.
Try this indicator now on TradingView and enhance your trading strategy today!
RSI OB/OS Strategy Analyzer█ OVERVIEW
The RSI OB/OS Strategy Analyzer is a comprehensive trading tool designed to help traders identify and evaluate overbought/oversold reversal opportunities using the Relative Strength Index (RSI). It provides visual signals, performance metrics, and a detailed table to analyze the effectiveness of RSI-based strategies over a user-defined lookback period.
█ KEY FEATURES
RSI Calculation
Calculates RSI with customizable period (default 14)
Plots dynamic overbought (70) and oversold (30) levels
Adds background coloring for OB/OS regions
Reversal Signals
Identifies signals based on RSI crossing OB/OS levels
Two entry strategies available:
Revert Cross: Triggers when RSI exits OB/OS zone
Cross Threshold: Triggers when RSI enters OB/OS zone
Trade Direction
Users can select a trade bias:
Long: Focuses on oversold reversals (bullish signals)
Short: Focuses on overbought reversals (bearish signals)
Performance Metrics
Calculates three key statistics for each lookback period:
Win Rate: Percentage of profitable trades
Mean Return: Average return across all trades
Median Return: Median return across all trades
Metrics calculated as percentage changes from entry price
Visual Signals
Dual-layer signal display:
BUY: Green triangles + text labels below price
SELL: Red triangles + text labels above price
Semi-transparent background highlighting in OB/OS zones
Performance Table
Interactive table showing metrics for each lookback period
Color-coded visualization:
Win Rate: Gradient from red (low) to green (high)
Returns: Green for positive, red for negative
Time Filtering
Users can define a specific time window for the indicator to analyze trades, ensuring that performance metrics are calculated only for the desired period.
Customizable Display
Adjustable table font sizes: Auto/Small/Normal/Large
Toggle option for table visibility
█ PURPOSE
The RSI OB/OS Strategy Analyzer helps traders:
Identify mean-reversion opportunities through RSI extremes
Backtest entry strategy effectiveness across multiple time horizons
Optimize trade timing through visual historical performance data
Quickly assess strategy robustness with color-coded metrics
█ IDEAL USERS
Counter-Trend Traders: Looking to capitalize on RSI extremes
Systematic Traders: Needing quantitative strategy validation
Educational Users: Studying RSI behavior in different market conditions
Multi-Timeframe Analysts: Interested in forward returns analysis
EMA with Bar Count
---
### **Key Features and Functionalities**
#### 1. **Multi-Timeframe Exponential Moving Averages (EMA)**
- The script calculates and plots EMAs for various timeframes (e.g., 1 minute, 5 minutes, 60 minutes, daily, and custom intervals).
- Users can customize the length and resolution of each EMA using inputs.
- Different colors are assigned to each EMA for easy identification on the chart.
#### 2. **Background Coloring**
- Optional background coloring (`bgcolor`) indicates whether the current price is above or below the 1-hour 20 EMA.
- Green indicates the price is above, and red indicates the price is below the EMA.
#### 3. **Bar Count Labeling**
- The script tracks bar counts and displays labels at specific intervals (e.g., every 3 bars).
- Label size and text color can be customized through user inputs.
#### 4. **Inside and Outside Bar Detection**
- Detects and highlights "Inside Bars" and "Outside Bars" on the chart.
- **Inside Bar**: The current bar's high and low are within the previous bar's range.
- **Outside Bar**: The current bar's range exceeds the previous bar's range.
- These patterns are marked with shapes for visual identification.
#### 5. **Bullish/Bearish Candle Streaks**
- Identifies and marks streaks of three consecutive bullish or bearish candles.
- **Bullish Streaks**: Marked with green shapes above the bar.
- **Bearish Streaks**: Marked with red shapes above the bar.
#### 6. **Time-Based Marking**
- The script includes an option to highlight specific time intervals (e.g., 7:30 AM) with a colored vertical line or background shading.
- Configurable time inputs allow flexibility.
#### 7. **Micro Gap Detection**
- Highlights gaps between the opening price of the current bar and the closing price of the previous bar.
- Blue shapes indicate bullish gaps.
- Purple shapes indicate bearish gaps.
#### 8. **TR (Trading Range) Detection**
- Identifies bars with significant overlap based on a user-defined threshold.
- Displays "TR" labels when overlap conditions are met.
#### 9. **Bar Coloring**
- Optionally colors bars based on specific conditions:
- Green: Bullish breakout (high and low higher than the previous bar, closing above the midpoint).
- Red: Bearish breakout (high and low lower than the previous bar, closing below the midpoint).
#### 10. **50% Midpoint Line**
- Displays a horizontal line at the 50% midpoint of the bar's range, customizable for the current or last bar only.
#### 11. **Pattern Detection**
- Recognizes specific candlestick patterns (e.g., IOI, OII, IOO).
- Provides alerts for detected patterns or predefined thresholds.
#### 12. **Alerts**
- Configurable alerts for:
- Specific patterns (e.g., IOI, OII, IOO).
- Bar range exceeding a user-defined threshold.
- Bullish or bearish streaks.
#### 13. **Gap Detector**
- Identifies gaps between bars and marks them with shaded boxes.
- Bullish gaps are shaded green, while bearish gaps are shaded red.
#### 14. **Advanced Customization**
- Extensive user inputs allow traders to tailor the indicator to their trading style.
- Includes support for various levels of detail (e.g., debug mode, label visibility, etc.).
#### 15. **ZigZag and Wedge Patterns**
- Optional zigzag lines to connect swing highs and lows.
- Detects wedge patterns using customizable settings for pivot points and angle differences.
---
### **Use Case Scenarios**
1. **Trend Identification**: Use multi-timeframe EMAs to confirm overall market direction.
2. **Range Trading**: Trade within ranges using detected inside and outside bars as key levels.
3. **Breakout Trading**: Use patterns like IOI and OII to anticipate breakouts.
4. **Scalping**: Exploit bullish and bearish streaks or micro gaps for quick trades.
5. **Pattern-Based Alerts**: Set up alerts for specific market conditions or candlestick patterns.
### **Why This Indicator Is Useful**
- Combines multiple trading tools into a single, customizable script.
- Saves time by automating complex calculations and pattern detections.
- Improves decision-making with clear visual cues and configurable alerts.
Let me know if you'd like any additional explanations or adjustments!