Body Percentage of Range (Colored)Short Description:
This indicator measures the dominance of the candle's body relative to its total range (High - Low), providing a visual gauge of intra-candle strength versus indecision. Columns are colored based on whether the body constitutes more or less than a defined percentage (default 50%) of the candle's total height.
Detailed Description:
What it Does:
The "Body Percentage of Range" indicator calculates, for each candle, what percentage of the total price range (High minus Low) is occupied by the candle's body (absolute difference between Open and Close).
A value of 100% means the candle has no wicks (a Marubozu), indicating strong conviction during that period.
A value of 0% means the candle has no body (a Doji), indicating perfect indecision.
Values in between show the relative balance between the directional move (body) and the price exploration/rejection (wicks).
How to Interpret:
The indicator plots this percentage as columns:
Column Height: Represents the percentage of the body relative to the total range. Higher columns indicate a larger body dominance.
Column Color:
Green Columns: Appear when the body percentage is above the user-defined threshold (default 50%). This suggests that the directional move within the candle was stronger than the indecision (wicks). Often seen during trending moves or strong momentum candles.
Red Columns: Appear when the body percentage is at or below the user-defined threshold (default 50%). This suggests that wicks dominate the candle (body is 50% or less of the range), indicating significant indecision, struggle between buyers and sellers, or potential reversals. These are common in choppy, consolidating, or reversal market conditions.
Orange Line (Optional MA): A Simple Moving Average (SMA) of the body percentages is plotted to help smooth the readings and identify broader periods where candle structure indicates more trending (high MA) vs. ranging/indecisive (low MA) characteristics.
Potential Use Cases:
Identifying Choppy vs. Trending Markets: Sustained periods of low, predominantly red columns (and often a low/declining MA) can signal a choppy, range-bound market where trend-following strategies might underperform. Conversely, periods with frequent high, green columns suggest a more trending environment.
Confirming Breakouts/Momentum: High green columns appearing alongside increased volume during a breakout can add conviction to the move's strength.
Spotting Potential Exhaustion/Reversals: A very tall green column after a strong trend, followed immediately by a low red column (like a Doji or Spinning Top pattern appearing on the price chart), might signal potential exhaustion or a pending reversal, indicating indecision has suddenly entered the market.
Filtering Entries: Traders might avoid taking entries (especially trend-following ones) when the indicator shows a consistent pattern of low red columns, suggesting high market indecision.
Settings:
Color Threshold %: Allows you to set the percentage level above which columns turn green (default is 50%).
Smoothing MA Length: Adjusts the lookback period for the Simple Moving Average.
Disclaimer:
This indicator is a tool for technical analysis and should be used in conjunction with other methods (like price action, volume analysis, other indicators) and robust risk management. It does not provide direct buy/sell signals and past performance is not indicative of future results.
Cerca negli script per "reversal"
Enhanced Bar Count IndicatorThe Enhanced Bar Count Indicato r is a versatile tool designed for traders who follow price action methodologies, particularly those inspired by Al Brooks. Built for TradingView and optimized for 5-minute charts during Regular Trading Hours, this indicator combines bar counting with multiple analytical features to help traders identify key market moments, trends, and potential reversal points. While it excels on intraday timeframes, its customizable settings make it adaptable to various trading styles and timeframes.
Key Features
Bar Counting and Diamond Placement
At its core, the indicator numbers each bar starting from the beginning of the trading day, helping traders keep track of bar sequences without manual counting. It highlights specific bars—such as the 7th, 18th, 40th, 48th, 67th, and 73rd bars—with colored diamonds. These bars are significant in Al Brooks’ trading approach for identifying potential reversals or key price action setups:
Bar 7 (Purple Diamond): Occurring around 35 minutes into the session, this bar often marks the end of the initial market open phase, signaling potential opening reversals or the formation of double tops/bottoms.
Bar 18 (Green Diamond): Statistically significant for marking the high or low of the day, making it a critical point for assessing potential trend reversals.
Bar 40 (Red Diamond): Positioned around midday, this bar is often associated with reversal opportunities as the market shifts from morning to afternoon trading.
Bar 48 (Purple Diamond): Around 11:50 AM EST, this bar signals the start of the afternoon swing setup, offering opportunities for midday swing trades.
Bar 67 (Purple Diamond): Appearing in the last hour (around 2:35 PM EST), this bar is key for late-day swing setups, often used for end-of-day strategies like buy-the-close or sell-the-close.
Bar 73 (Purple Diamond): Tied to a 12:30 PM PDT (3:30 PM EST) setup, this bar is significant for US market traders as a late-session decision point for trend continuation or reversal.
This feature allows traders to spot these critical bars at a glance, aligning with Al Brooks’ methodology for intraday trading.
Customizable 10-Period EMA for Scalping
A customizable 10-period Exponential Moving Average (EMA) is included to help scalpers quickly assess short-term trends. By default, it’s set to 10 periods, but users can adjust both the period and color to suit their strategy. When the price is above the EMA, it suggests an uptrend; below it, a downtrend. Scalpers can use pullbacks to the EMA as potential entry points in the direction of the trend. While optimized for 2-minute charts, it also provides valuable context on 5-minute charts for intraday traders.
Multi-Timeframe 20-Period EMAs
To provide a broader trend perspective, the indicator plots 20-period EMAs from three different timeframes—5-minute, 15-minute, and 60-minute—directly on the chart. This allows traders to see how the trend aligns across multiple timeframes, which is crucial for confirming the strength and direction of a move. Each EMA is toggleable and color-coded:
Green for 5m
Orange for 15m
Red for 60m
For instance, if all three EMAs are sloping upwards, it reinforces a strong uptrend, increasing the probability of successful trades in that direction.
Inside/Outside Bar Detection
The indicator automatically detects and marks inside bars with an 'i' and outside bars with an 'O' above the respective bars. Inside bars (where the high is lower than the previous high and the low is higher than the previous low) often signal consolidation and potential breakouts. Outside bars (where the high is higher and the low is lower than the previous bar) indicate increased volatility and possible trend reversals or continuations. These markers help traders quickly spot these patterns, which are essential for timing entries and exits in both range-bound and trending markets.
50% Pullback Retracement
Dynamic support and resistance levels are provided through the 50% retracement (midpoint) of the current and previous day’s price ranges. These levels are plotted as horizontal lines:
A solid line for the current day’s midpoint.
A dashed line for the previous day’s midpoint.
The lines are color-coded—green if below the current price and red if above—helping traders visualize potential reversal or continuation zones. This feature aligns with Fibonacci retracement principles and is particularly useful for intraday traders looking to identify areas where price might stall or reverse.
Customization and Usage
All features in the indicator are toggleable, allowing traders to enable or disable them based on their preferences. The settings are organized into groups—such as 'Bar Counting,' '10 EMA Scalp,' and 'Multi-Timeframe EMAs'—for easy navigation. This flexibility ensures that the indicator can be tailored to various trading styles, from scalping to swing trading. Traders can experiment with different combinations of features to find what works best for their strategy.
The Enhanced Bar Count Indicator is a comprehensive tool that brings together bar counting, trend analysis, pattern recognition, and dynamic support/resistance levels. Inspired by Al Brooks’ price action methodology, it offers traders a multifaceted approach to analyzing the markets. With its customizable and toggleable features, it adapts to different trading styles and timeframes, making it a valuable addition to any trader’s toolkit. Best of all, it’s available for free to the TradingView community—feel free to explore, customize, and integrate it into your trading strategy.
Neural Pulse System [Alpha Extract]Neural Pulse System (NPS)
The Neural Pulse System (NPS) is a custom technical indicator that analyzes price action through a probabilistic lens, offering a dynamic view of bullish and bearish tendencies.
Unlike traditional binary classification models, NPS employs Ordinary Least Squares (OLS) regression with dynamically computed coefficients to produce a smooth probability output ranging from -1 to 1.
Paired with ATR-based bands, this indicator provides an intuitive and volatility-aware approach to trend analysis.
🔶 CALCULATION
The Neural Pulse System utilizes OLS regression to compute probabilities of bullish or bearish price action while incorporating ATR-based bands for volatility context:
Dynamic Coefficients: Coefficients are recalculated in real-time and scaled up to ensure the regression adapts to evolving market conditions.
Ordinary Least Squares (OLS): Uses OLS regression instead of gradient descent for more precise and efficient coefficient estimation.
ATR Bands: Smoothed Average True Range (ATR) bands serve as dynamic boundaries, framing the regression within market volatility.
Probability Output: Instead of a binary result, the output is a continuous probability curve (-1 to 1), helping traders gauge the strength of bullish or bearish momentum.
Formula:
OLS Regression = Line of best fit minimizing squared errors
Probability Signal = Transformed regression output scaled to -1 (bearish) to 1 (bullish)
ATR Bands = Smoothed Average True Range (ATR) to frame price movements within market volatility
🔶 DETAILS
📊 Visual Features:
Probability Curve: Smooth probability signal ranging from -1 (bearish) to 1 (bullish)
ATR Bands: Price action is constrained within volatility bands, preventing extreme deviations
Color-Coded Signals:
Blue to Green: Increasing probability of bullish momentum
Orange to Red: Increasing probability of bearish momentum
Interpretation:
Bullish Bias: Probability output consistently above 0 suggests a bullish trend.
Bearish Bias: Probability output consistently below 0 indicates bearish pressure.
Reversals: Extreme values near -1 or 1, followed by a move toward 0, may signal potential trend reversals.
🔶 EXAMPLES
📌 Trend Identification: Use the probability output to gauge trend direction.
📌Example: On a 1-hour chart, NPS moves from -0.5 to 0.8 as price breaks resistance, signaling a bullish trend.
Reversal Signals: Watch for probability extremes near -1 or 1 followed by a reversal toward 0.
Example: NPS hits 0.9, price touches the upper ATR band, then both retreat—indicating a potential pullback.
📌 Example snapshots:
Volatility Context: ATR bands help assess whether price action aligns with typical market conditions.
Example: During low volatility, the probability signal hovers near 0, and ATR bands tighten, suggesting a potential breakout.
🔶 SETTINGS
Customization Options:
ATR Period – Defines lookback length for ATR calculation (shorter = more responsive, longer = smoother).
ATR Multiplier – Adjusts band width for better volatility capture.
Regression Length – Controls how many bars feed into the coefficient calculation (longer = smoother, shorter = more reactive).
Scaling Factor – Adjusts the strength of regression coefficients.
Output Smoothing – Option to apply a moving average for a cleaner probability curve
Uptrick Signal Density Cloud🟪 Introduction
The Uptrick Signal Density Cloud is designed to track market direction and highlight potential reversals or shifts in momentum. It plots two smoothed lines on the chart and fills the space between them (often called a “cloud”). The bars on the chart change color depending on bullish or bearish conditions, and small triangles appear when certain reversal criteria are met. A metrics table displays real-time values for easy reference.
🟩 Why These Features Have Been Linked Together
1) Dual-Line Structure
Two separate lines represent shorter- and longer-term market tendencies. Linking them in one tool allows traders to view both near-term changes and the broader directional bias in a single glance.
2) Smoothed Averages
The script offers multiple smoothing methods—exponential, simple, hull, and an optimized approach—to reduce noise. Using more than one type of moving average can help balance responsiveness with stability.
3) Density Cloud Concept
Shading the region between the two lines highlights the gap or “thickness.” A wider gap typically signals stronger momentum, while a narrower gap could indicate a weakening trend or potential market indecision. When the cloud is too wide and crosses a certain threshold defined by the user, it indicates a possible reversal. When the cloud is too narrow it may indicate a potential breakout.
🟪 Why Use This Indicator
• Trend Visibility: The color-coded lines and bars make it easier to distinguish bullish from bearish conditions.
• Momentum Tracking: Thicker cloud regions suggest stronger separation between the faster and slower lines, potentially indicating robust momentum.
• Possible Reversal Alerts: Small triangles appear within thick zones when the indicator detects a crossover, drawing attention to key moments of potential trend change.
• Quick Reference Table: A metrics table shows line values, bullish or bearish status, and cloud thickness without needing to hover over chart elements.
🟩 Inputs
1) First Smoothing Length (length1)
Default: 14
Defines the lookback period for the faster line. Lower values make the line respond more quickly to price changes.
2) Second Smoothing Length (length2)
Default: 28
Defines the lookback period for the slower line or one of the moving averages in optimized mode. It generally responds more slowly than the faster line.
3) Extra Smoothing Length (extraLength)
Default: 50
A medium-term period commonly seen in technical analysis. In optimized mode, it helps add broader perspective to the combined lines.
4) Source (source)
Default: close
Specifies the price data (for example, open, high, low, or a custom source) used in the calculations.
5) Cloud Type (cloudType)
Options: Optimized, EMA, SMA, HMA
Determines the smoothing method used for the lines. “Optimized” blends multiple exponential averages at different lengths.
6) Cloud Thickness Threshold (thicknessThreshold)
Default: 0.5
Sets the minimum separation between the two lines to qualify as a “thick” zone, indicating potentially stronger momentum.
🟪 Core Components
1) Faster and Slower Lines
Each line is smoothed according to user preferences or the optimized technique. The faster line typically reacts more quickly, while the slower line provides a broader overview.
2) Filled Density Cloud
The space between the two lines is filled to visualize in which direction the market is trending.
3) Color-Coded Bars
Price bars adopt bullish or bearish colors based on which line is on top, providing an immediate sense of trend direction.
4) Reversal Triangles
When the cloud is thick (exceeding the threshold) and the lines cross in the opposite direction, small triangles appear, signaling a possible market shift.
5) Metrics Table
A compact table shows the current values of both lines, their bullish/bearish statuses, the cloud thickness, and whether the cloud is in a “reversal zone.”
🟩 Calculation Process
1) Raw Averages
Depending on the mode, standard exponential, simple, hull, or “optimized” exponential blends are calculated.
2) Optimized Averages (if selected)
The faster line is the average of three exponential moving averages using length1, length2, and extraLength.
The slower line similarly uses those same lengths multiplied by 1.5, then averages them together for broader smoothing.
3) Difference and Threshold
The absolute gap between the two lines is measured. When it exceeds thicknessThreshold, the cloud is considered thick.
4) Bullish or Bearish Determination
If sma1 (the faster line) is above sma2 (the slower line), conditions are deemed bullish; otherwise, they are bearish. This distinction is reflected in both bar colors and cloud shading.
5) Reversal Markers
In thick zones, a crossover triggers a triangle at the point of potential reversal, alerting traders to a possible trend change.
🟪 Smoothing Methods
1) Exponential (EMA)
Prioritizes recent data for quicker responsiveness.
2) Simple (SMA)
Takes a straightforward average of the chosen period, smoothing price action but often lagging more in volatile markets.
3) Hull (HMA)
Employs a specialized formula to reduce lag while maintaining smoothness.
4) Optimized (Blended Exponential)
Combines multiple EMA calculations to strike a balance between responsiveness and noise reduction.
🟩 Cloud Logic and Reversal Zones
Cloud thickness above the defined threshold typically signals exceeding momentum and can lead to a quick reversal. During these thick periods, if the width exceeds the defined threshold, small triangles mark potential reversal points. In order for the reversal shape to show, the color of the cloud has to be the opposite. So, for example, if the cloud is bearish, and exceeds momentum, defined by the user, a bullish signal appears. The opposite conditions for a bullish signal. This approach can help traders focus on notable changes rather than minor oscillations.
🟪 Bar Coloring and Layered Lines
Bars take on bullish or bearish tints, matching the faster line’s position relative to the slower line. The lines themselves are plotted multiple times with varying opacities, creating a layered, glowing look that enhances visibility without affecting calculations.
🟩 The Metrics Table
Located in the top-right corner of the chart, this table displays:
• SMA1 and SMA2 current values.
• Bullish or bearish alignment for each line.
• Cloud thickness.
• Reversal zone status (in or out of zone).
This numeric readout allows for a quick data check without hovering over the chart.
🟪 Why These Specific Moving Average Lengths Are Used
Default lengths of 14, 28, and 50 are common in technical analysis. Fourteen captures near-term price movement without overreacting. Twenty-eight, roughly double 14, provides a moderate smoothing level. Fifty is widely regarded as a medium-term benchmark. Multiplying each length by 1.5 for the slower line enhances separation when combined with the faster line.
🟩 Originality and Usefulness
• Multi-Layered Smoothing. The user can select from several moving average modes, including a unique “optimized” blend, possibly reducing random fluctuations in the market data.
• Combined Visual and Numeric Clarity. Bars, clouds, and a real-time table merge into a single interface, enabling efficient trend analysis.
• Focus on Significant Shifts. Thick cloud zones and triangles draw attention to potentially stronger momentum changes and plausible reversals.
• Flexible Across Markets. The adjustable lengths and threshold can be tuned to different asset classes (stocks, forex, commodities, crypto) and timeframes.
By integrating multiple technical concepts—cloud-based trend detection, color coding, reversal markers, and an immediate reference table—the Uptrick Signal Density Cloud aims to streamline chart reading and decision-making.
🟪 Additional Considerations
• Timeframes. Intraday, daily, and weekly charts each yield different signals. Adjust the smoothing lengths and threshold to suit specific trading horizons.
• Market Types. Though applicable across asset classes, parameters might need tweaking to address the volatility of commodities, forex pairs, or cryptocurrencies.
• Confirmation Tools. Pairing this indicator with volume studies or support/resistance analysis can improve the reliability of signals.
• Potential Limitations. No indicator is foolproof; sudden market shifts or choppy conditions may reduce accuracy. Cautious position sizing and risk management remain essential.
🟩 Disclaimers
The Uptrick Signal Density Cloud relies on historical price data and may lag sudden moves or provide false positives in ranging conditions. Always combine it with other analytical techniques and sound risk management. This script is offered for educational purposes only and should not be considered financial advice.
🟪 Conclusion
The Uptrick Signal Density Cloud blends trend identification, momentum assessment, and potential reversal alerts in a single, user-friendly tool. With customizable smoothing methods and a focus on cloud thickness, it visually highlights important market conditions. While it cannot guarantee predictive accuracy, it can serve as a comprehensive reference for traders seeking both a quick snapshot of the current trend and deeper insights into market dynamics.
ZenAlgo - Heavy DeltaThe ZenAlgo - Heavy Delta indicator is a comprehensive technical analysis tool designed for traders seeking a deeper understanding of market dynamics. It combines multiple advanced sub-indicators, including Order Blocks, Moving Averages, VWAP, and Delta Volume analysis, and more to provide actionable insights. This indicator is particularly useful for identifying potential trade entries and exits based on institutional order flow and price action patterns.
Features
Order Block Detection: Identifies bullish and bearish order blocks with detailed visualization and volume analysis.
VWAP (Volume Weighted Average Price): Tracks the average price of a security weighted by volume over various anchor periods.
Moving Averages (MA): Customizable MAs (13, 21, 50, 200 periods) to detect trends and momentum shifts.
Daily Open and Monday Range: Highlights key levels like daily open and intraday/multi-day high-low ranges for better price context.
Delta Volume Analysis: Measures the net difference between buying and selling volume for market sentiment insights.
Divergence Detection: Detects regular and hidden bullish/bearish divergences for trend reversal opportunities.
Visual Alerts: Displays intuitive symbols for potential buy/sell signals and key price levels.
Added Value: Why Is This Indicator Original/Why Shall You Pay for This Indicator?
The ZenAlgo - Heavy Delta indicator offers a distinct advantage by integrating multiple analysis techniques into one cohesive tool. While many individual indicators are freely available, this script goes beyond simple overlays to provide an advanced analytical framework. Here’s why it stands out:
1. Synergy of Indicators
Order Blocks: These are not static; the indicator dynamically calculates zones where institutional activity likely occurred, supported by volume-weighted metrics.
Delta Volume Analysis: Freely available delta volume tools typically show raw data, but this script filters noise, categorizes volume into meaningful up/down segments, and integrates it with other signals for context.
VWAP and Moving Averages: VWAP and customizable MAs are enhanced with divergence checks, color-coded trends, and market state classifications. This integration helps confirm trends and reversals with higher precision.
2. Volume-Based Insights
Traditional volume indicators often fail to show the "intent" behind price moves. This script combines delta volume and order block data to highlight areas of significant buying or selling pressure and their potential impacts on future price action.
3. Visual Simplicity with Advanced Logic
Unlike using several separate tools, which can clutter your chart, this indicator presents a streamlined interface. Every plotted element serves a clear purpose, minimizing distractions while maximizing actionable insights.
4. Customized for Active Traders
The indicator doesn’t just provide standard calculations. It includes proprietary adjustments like mitigation thresholds in order blocks, percentage-based signals for VWAP, and delta volume intensity levels that align better with active market conditions.
5. Why Pay for It?
Time and effort savings: Instead of setting up and calibrating multiple tools, this indicator combines them into a single efficient package.
Enhanced accuracy: Each sub-indicator validates the others, reducing false signals.
Unique features: For instance, the script automatically adjusts for multi-timeframe inconsistencies and uses gradient color fills to convey volume strength in order blocks—a feature absent in free indicators.
How It Works
The indicator combines individual sub-indicators into a logical framework where each part contributes to the overall analysis. Here’s how each feature operates:
1. Order Blocks
Identification: Uses specific price action patterns to locate zones of likely institutional interest (bullish or bearish blocks).
Dynamic Updates: The blocks adjust as new price data comes in, ensuring their relevance. Volume within these zones is weighted, helping assess their strength and potential price reactions.
Visual Enhancements: Blocks are color-coded and filled with gradients based on volume intensity, providing immediate visual cues about their importance.
2. VWAP (Volume Weighted Average Price)
Calculation: Anchored to user-selected periods (daily, weekly, etc.), VWAP is recalculated in real-time, showing the "fair" price based on traded volume.
Integration: Acts as a dynamic support/resistance line, particularly useful in intraday and swing trading. Labels provide percentage deviation for quick interpretation.
3. Moving Averages (MAs)
Customization: Supports various types (EMA, SMA, etc.) and lengths (13, 21, 50, 200). Traders can configure these to suit their strategies.
Market Status: By comparing the price to these MAs, the indicator classifies the market as Full Bull, Bullish, Neutral, Bearish, or Full Bear. This high-level summary helps traders quickly gauge market sentiment.
4. Delta Volume
Core Logic: Calculates the net difference between buying and selling pressure (volume) for each candle.
Visual Signals: Plots symbols when significant delta volume changes coincide with other indicator signals, like divergence or order block activity.
5. Daily Open and Monday Range
Purpose: Identifies key psychological levels like the daily open and the high/low range for the first trading day of the week.
Context: Highlights these levels with dynamic percentage changes, helping traders understand how price is behaving relative to them.
6. Divergence Detection
Logic: Tracks discrepancies between price movement and momentum (via Moving Averages, Delta Volume, and Order Blocks). These divergences often precede reversals.
Validation: Divergences are only flagged when other features, like delta volume shifts or order block interactions, confirm the setup.
By combining these tools in a meaningful way, ZenAlgo - Heavy Delta transforms raw data into actionable intelligence, giving traders a comprehensive view of market dynamics and a significant edge in decision-making.
Why Use Heikin Ashi for Heavy Delta?
The ZenAlgo - Heavy Delta indicator is optimized for Heikin Ashi (HA) candles, which smooth out market noise and make trends more visually apparent. Heikin Ashi works best for this strategy for several key reasons:
Why Heikin Ashi Works Best
Trend Clarity: Unlike traditional candlesticks, Heikin Ashi averages price data to create smoother transitions. This helps the indicator better identify sustained trends and reduces false signals caused by short-term price fluctuations.
Noise Reduction: HA candles filter out minor fluctuations and emphasize the overall market direction, making it easier to align the indicator’s signals (like Delta Volume and Order Blocks) with larger market movements.
Improved Visual Insights: Features like Order Blocks and Delta Volume align well with Heikin Ashi's smoothed representation, as it avoids the erratic movements that traditional candles sometimes display.
Better Support for Trend Strategies: Heikin Ashi candles naturally highlight key reversals and continuation patterns, which complement the analytical goals of this indicator.
Important Notes About Heikin Ashi:
Synthetic Nature of HA Candles: Heikin Ashi values are calculated differently than traditional candles. For example: a) The open is the average of the prior candle's open and close. b) The close is the average of the high, low, open, and close. This synthetic nature means that HA candles do not reflect actual market prices but rather smoothed averages, which can slightly lag real-time price movements.
Lagging Effect: Because HA candles use averaged data, they can lag behind actual price action. This is beneficial for identifying trends but less effective for precise entry/exit timing.
Inaccuracy in Low Volatility: In low-volume or low-volatility conditions, HA candles may distort actual price dynamics, leading to less reliable insights.
No Direct Alerts or Buy/Sell Signals : Issuing explicit buy or sell signals based on Heikin Ashi candles is not possible due to their averaged, synthetic nature. As such, the ZenAlgo - Heavy Delta indicator does not generate direct trading signals. Instead, the indicator is a decision-support tool that provides insights into trends, volume dynamics, and potential key levels, leaving trade execution to the trader's discretion.
Usage Examples
Trend Confirmation: Use the MA market status to identify if the market is in a Full Bull or Bear state.
Reversal Zones: Monitor order block zones for price rejection or absorption, signaling a potential reversal.
Breakout Trading: Trade breakouts when price surpasses VWAP or Monday Range highs/lows.
Delta Divergence: Look for positive/negative delta volume divergences during consolidations for breakout cues.
Mean Reversion: Use VWAP or MAs as dynamic support/resistance for mean reversion setups.
Intraday Scalping: Utilize daily open and intraday levels for short-term trades.
Swing Trading: Employ order blocks and multi-day ranges to frame swing trade setups.
Volume Climax: Identify volume spikes using Delta Volume to confirm trend continuation or reversal.
Momentum Trading: Combine divergence signals with Delta Volume for high-conviction entries.
Risk Management: Use defined order block boundaries to set stop losses and targets.
Settings
Order Blocks: Customize label visibility, label offsets, and block appearance.
VWAP: Adjust anchor period and toggle visibility.
Moving Averages: Configure length, type (EMA, SMA, etc.), and visibility of MAs (13, 21, 50, 200).
Delta Volume: Enable/disable delta symbols and labels, adjust sensitivity multipliers.
Daily Open/Monday Range: Toggle visibility and customize display preferences.
General Visuals: Adjust label offsets, color schemes, and transparency.
Important Notes
This indicator is a technical analysis tool and does not guarantee trading success.
Use it in conjunction with other indicators and fundamental analysis for a more comprehensive trading strategy.
Performance may vary in low-liquidity markets or during sudden news events.
Divergence signals might fail in strongly trending markets.
Uptrick: Oscillator SpectrumUptrick: Oscillator Spectrum is a versatile trading tool designed to bring together multiple aspects of technical analysis—oscillators, momentum signals, divergence checks, correlation insights, and more—into one script. It includes customizable overlays and alert conditions intended to address a wide range of market conditions and trading styles.
Developed in Pine Script™, Uptrick: Oscillator Spectrum represents an extended version of the classic Ultimate Oscillator concept. It consolidates short-, medium-, and long-term momentum readings, applies correlation analysis across different symbols, and offers optional table-based metrics to provide traders with a more structured overview of potential trade setups. Whether used alongside your existing charts or as a standalone toolkit, it aims to build on and enhance the functionality of the standard Ultimate Oscillator.
### A Few Key Features
- Momentum Insights: Multiple timeframes for oscillators, plus buy/sell signal modes for flexible identification of overbought/oversold situations or crossovers.
- Divergence Detection: Automated checks for bullish/bearish divergences, aiming to help traders spot potential shifts in momentum.
- Correlation Meter: A visual histogram summarizing how selected assets are collectively trending. It is useful for tracking the bigger market picture.
- Gradient Overlays & Bar Coloring: Dynamic color transitions designed to emphasize changes in momentum, trend shifts, and overall sentiment without cluttering the chart.
- Money Flow Tracker: Tracks the flow of money into and out of the market using a smoothed Money Flow Index (MFI). Highlights overbought/oversold conditions with dynamic bar coloring and visual gradient fills, helping traders assess volume-driven sentiment shifts.
- Advanced Table Metrics: An optional table showing return on investment (ROI), collateral risk, and other contextual metrics for supported assets.
- Alerts & Automation: Configurable alerts covering divergence events, crossing of critical levels, and more, helping to keep traders informed of developments in real time.
### Intended Usage
- For Multiple Markets: Works on various markets (cryptocurrencies, forex pairs, stocks) to deliver a consistent view of momentum, potential entry/exit signals, and correlation.
- Adaptable Trading Styles: With customizable input settings, you can enable or disable specific features to align with your preferred strategies—intraday scalping, swing trading, or position holding.
By combining these elements under one indicator, Uptrick: Oscillator Spectrum allows traders to streamline analysis workflows, helping them stay focused on interpreting market moves and making informed decisions rather than juggling multiple scripts.
Purpose
Purpose of the “Uptrick: Oscillator Spectrum” Indicator
The “Uptrick: Oscillator Spectrum” indicator is intended to bring together several technical analysis elements into one tool. It combines oscillator-based momentum readings across different lookback periods, checks for potential divergences, provides optional buy/sell signal triggers, and offers correlation-based insights across multiple symbols. Additionally, it includes features such as bar coloring, gradient visualization, and user-configurable alerts to help highlight various market conditions.
By consolidating these functions, the script aims to help users systematically observe changing momentum, identify when prices reach user-defined overbought or oversold levels, detect when oscillator movements diverge from price, and examine whether different assets are aligning or diverging in their trends. The indicator also allows for optional advanced metric tables, which can supply further context on risk, ROI calculations, or other factors for supported assets. Overall, the script’s purpose is to organize multiple layers of technical analysis so that users have a structured way to evaluate potential trade opportunities and market behavior.
## Usage Guide
Below is an outline of how you can utilize the various components and features of Uptrick: Oscillator Spectrum in your charting workflow.
---
### 1. Using the Core Oscillator
- Basic View: By default, the script calculates a multi-timeframe oscillator (commonly displayed as the “Ultimate Oscillator”). This oscillator combines short-, medium-, and long-term measurements of buying pressure and true range.
- Overbought/Oversold Zones: You can configure thresholds (e.g., 70 for overbought, 30 for oversold) to help identify potential turning points. When the oscillator crosses these levels, it may indicate that price is extended in one direction.
- You can use the colors of the main oscillator to help you take short-term trades as well: cyan : Buy , red: Sell
- Alerts: If you enable alerts, the indicator can notify you when the oscillator crosses above or below your chosen overbought/oversold boundaries or when you get buy/sell signals.
---
### 2. Buy/Sell Signals in Overlay Modes
Uptrick: Oscillator Spectrum provides several signal modes and a choice between overlay true and overlay false or both. Additionally, you can pick which “line” (data source) the script uses to generate signals. This is set in the “Line to Analyze” dropdown, which includes Oscillator, HMA of Oscillator, and Moving Average. The following sections describe how each piece fits together.
---
#### Line to Analyze - Overlay Flase: Oscillator / HMA of Oscillator / Moving Average
1. Oscillator
- The core momentum reading, reflecting short-, medium-, and long-term periods combined.
2. HMA of Oscillator
- Applies a Hull Moving Average to the oscillator, creating a smoother but still responsive curve.
- Signals will be derived from this smoothed line. Some traders find it filters out minor fluctuations while remaining quicker to react than standard averages.
3. Moving Average
- Uses a user-selected MA type (SMA, EMA, WMA, etc.) over the oscillator values, rather than the raw oscillator itself.
- Tends to be more stable than the raw oscillator, but might delay signals more depending on the chosen MA settings.
---
#### Signal Modes
Regardless of which line you choose to analyze, you can use one of the following seven signal modes in overlay being true:
1. Overbought/Oversold (Pyramiding)
- What It Does:
- Buy signal when the chosen line crosses below the oversold threshold.
- Sell signal when it crosses above the overbought threshold.
- Pyramiding:
- Allows multiple triggers within the same overbought/oversold event.
2. Overbought/Oversold (Non Pyramiding)
- What It Does:
- Same thresholds but only one signal per oversold or overbought event.
- Use Case:
- Prevents repeated signals and chart clutter.
3. Smoothed MA Middle Crossover
- What It Does:
- Uses an MA defined by the user.
- Buy when crossing above the midpoint (50), Sell when crossing below.
- Use Case:
- Generates fewer signals, focusing on broader momentum shifts. There is no pyramiding.
In this image ,for example, the VWMA is used with length of 14 to identify buy sell signals.
4. Crossing Above Overbought/Below Oversold (Non Pyramiding)
- What It Does:
- Buy occurs if the line exits oversold territory by crossing back above it.
- Sell occurs if the line exits overbought territory by crossing back below it.
- Non Pyramiding:
- Restricts repeated signals until conditions reset.
5. Crossing Above Overbought/Below Oversold (Pyramiding)
- What It Does:
- Same thresholds, but allows multiple signals if the line repeatedly dips in and out of overbought or oversold.
- Use Case:
- More frequent entries/exits for active traders.
6. Divergence (Non Pyramiding)
- What It Does:
- Identifies bullish or bearish divergences using the chosen line vs. price.
- Buy for bullish divergence (higher low on the line vs. lower low on price), Sell for bearish divergence.
- Single Trigger:
- Only one signal per identified divergence event. (non pyramiding)
7. Divergence (Pyramiding)
- What It Does:
- Same divergence logic but triggers multiple times if the script sees repeated divergence in the same direction.
- Use Case:
- Could suit traders who layer positions during sustained divergence scenarios.
#### Overlay Modes: True vs. False
1. Overlay True
- Buy/sell arrows or labels plot directly on the main price chart, often at or near candlesticks.
- Bar Coloring:
- Can turn the candlestick bars green (buy) or red (sell), with intensity reflecting signal recency if bar coloring is enabled for this mode. (read below.)
- Advantage:
- Everything (price, signals, bar colors) is in one spot, making it straightforward to associate signals with current market action. You can adjust the periods of the main oscillator or lookback periods of divergences or overbought/oversold thresholds, to play around with your signals.
2. Overlay False
- Signal Placement:
- Signals appear in a sub-window or oscillator panel, leaving the main price chart uncluttered.
- Bar Coloring:
- You may still enable bar colors on the main chart (green for buy, red for sell) if desired.
- Alternatively, you can keep them neutral if you prefer a completely separate display of signals.
- Advantage:
- Clear separation of price action from signals, useful for cleaner charts or if using multiple overlay-based tools.
At the bottom are the signals for overlay being false and on the chart are the signals for overlay being true:
#### Bar Color Adjustments
1. Coloring Logic
- Bars typically go green on buy signals, red on sell signals.
- The opacity or brightness can vary to indicate signal freshness. When a new signal is formed, the color gets brighter. When there is no signal for a longer period of time, then the color slowly fades.
2. Enabling Bar Coloring
- In the indicator’s settings, turn on Bar Coloring.
- Choose “Signals Overlay True” or “Signals Overlay False” from the “Color should depend on:” dropdown, depending on which overlay approach you want to drive your bar colors. You can also chose the cloud fill in overlay false, correlation meter and smoothed HMA to color bars. Read more below:
### Bar Color Options:
When you enable bar coloring in Uptrick: Oscillator Spectrum, you can select which component or signal logic drives the color changes. Below are the five available choices:
---
#### Option 1: Overlay True Signals
- What It Does:
- Uses signals generated under the Overlay True mode to color the bars on your main chart.
- If a buy signal is triggered, bars turn green. If a sell signal occurs, bars turn red.
- Color Intensity:
- Bars appear brighter (more opaque) immediately after a new signal fires, then gradually fade over subsequent bars if no new signal appears.
---
#### Option 2: Overlay False Signals
- What It Does:
- Links bar coloring to signals generated when Overlay False mode is active.
- Buy/sell labels typically plot in a separate sub-window instead of the main chart, but your price bars can still change color based on these signals.
- Color Intensity:
- Similar to Overlay True, new buy/sell signals yield stronger color intensity, which fades over time.
- Use Case:
- Helps maintain a clean main chart (with signals off-chart) while still providing an immediate color-coded indication of a buy or sell state.
- Particularly useful if you prefer less clutter from signal markers on your price chart yet still want a visual representation of signal timing.
In this example normal divergence Pyramiding Signals are used in the overlay being true and the signals in overlay false are signals that analyze the HMA. This can help clear out noise (using a combo of both).
Option 3: Money Flow Tracker
What It Does:
The Money Flow Tracker uses the Money Flow Index (MFI), a volume-weighted oscillator, to measure the strength of money flowing into or out of an asset. The script smooths the raw MFI data using an EMA for a more responsive and visually intuitive output.
The feature also includes dynamic color gradients and bar coloring that highlight whether money flow is positive or negative.
Green Fill/Bar Color: Indicates positive money flow, suggesting potential accumulation.
Red Fill/Bar Color: Indicates negative money flow, signaling potential distribution.
Overbought and oversold thresholds are dynamically emphasized with transparency, making it easier to identify high-confidence zones.
Use Case:
Ideal for traders focusing on volume-driven sentiment to identify turning points or confirm existing trends.
Suitable for assessing broader market conditions when used alongside other indicators like oscillators or correlation analysis.
Provides additional clarity in spotting areas of accumulation or distribution, making it a valuable complement to price action and momentum studies.
---
#### Option 4: Correlation Meter
- What It Does:
- Colors the bars based on the indicator’s Correlation Meter output. The script checks multiple chosen tickers and sums up how many are trending positively or negatively.
- If the meter indicates an overall bullish bias (e.g., more than three assets in uptrend), bars turn green; if it’s bearish, bars turn red.
- Trend Readings:
- The correlation meter typically plots a histogram of bullish/neutral/bearish states. The bar color option links your chart’s candlestick coloring to that higher-level market sentiment.
- Use Case:
- Useful for traders wanting a quick visual prompt of whether the broader market (or a selection of related assets) is bullish or bearish at any given time.
- Helps avoid signals that conflict with the market majority.
#### Option 5: Smoothed HMA
- What It Does:
- Bar colors are driven by the slope or state of the Hull Moving Average (HMA) of the oscillator, rather than individual buy/sell triggers or correlation data.
- If the HMA indicates a strong upward slope (possibly darkening), bars may turn green; if the slope is downward (purple in the HMA line), bars turn red.
- Use Case:
- Ideal for those who focus on momentum continuity rather than discrete signals like overbought/oversold or divergence.
- May help identify smoother, more sustained moves, as the HMA filters out minor oscillations.
---
### 3. Using the Hull Moving Average (HMA) of the Oscillator
- HMA Calculation: You can enable a dedicated Hull Moving Average (HMA) for the oscillator. This creates a smoother line of the same underlying momentum reading, typically responding more quickly than classic moving averages.
- Color Intensity: As the HMA sustains an uptrend or downtrend, the script can adjust the line’s color. When slope momentum persists in one direction, the color appears more opaque. This intensification can hint that the existing direction may be well-established.
- Reversal Potential: If you observe the HMA color shifting or darkening after multiple bars of slope in the same direction, it may indicate increasing momentum. Conversely, a sudden flattening or change in color can be a clue that momentum is waning.
---
### 4. Moving Average Overlays & Gradient Cloud
- Oscillator MA: The script allows you to apply moving average types (SMA, EMA, SMMA, WMA, or VWMA) to the core oscillator, rather than to price. This can smooth out noise in the oscillator, potentially highlighting more consistent momentum shifts.
- Gradient Cloud: You can also enable a cloud in overlay true between two moving averages (for instance, a Hull MA and a Double EMA) on the price chart. The cloud fills with different colors, depending on which MA is above the other. This can provide a quick visual reference to bullish or bearish areas.
---
### 5. Divergence Detection
- Bullish & Bearish Divergence: By toggling “Calculate Divergence,” the script looks for oscillator pivots that contrast with price pivots (e.g., price making a lower low while the oscillator makes a higher low).
- A divergence is when the price makes an opposite pivot to the indicator value. E.g. Price makes lower low but indicator does higher low - This suggests a bullish divergence. THe opposite is for a bearish divergence.
- Visual Labels: When a divergence is found, labels (such as “Bull” or “Bear”) appear on the oscillator. This helps you see if the oscillator’s momentum patterns differ from the price movement.
- Filtering Signals: You can combine divergence signals with other features like overbought/oversold or the HMA slope to refine potential entries or exits.
---
### 6. Correlation & Multi-Ticker Analysis
- Correlation Meter: You can select up to five tickers in the settings. The script calculates a slope-based metric for each, then combines those metrics to show an overall bullish or bearish tendency (displayed as a histogram).
- Bar Coloring & Overlay: If you activate correlation-based bar coloring, it will reflect the broader trend alignment among the selected assets, potentially indicating when most are trending in the same direction.
- Use Case: If you trade multiple markets, the correlation histogram can help you quickly see if several major assets support the same market bias or are diverging from one another.
—
### 7. Money Flow Tracker
Money Flow Calculation: The Money Flow Tracker calculates the Money Flow Index (MFI) based on price and volume data, factoring in buying pressure and selling pressure. The output is smoothed using a low-lag EMA to reduce noise and enhance usability.
Visual Features:
Dynamic Gradient Fill:
The space between the smoothed MFI line and the midline (set at 50) is filled with a gradient.
Above 50: Green gradient, with intensity increasing as the MFI moves further above the midline.
Below 50: Red gradient, with intensity increasing as the MFI moves further below the midline.
This gradient provides a clear visual representation of money flow strength and direction, making it easier to assess sentiment shifts at a glance.
Overbought/Oversold Levels: Default thresholds are set at 70 (overbought) and 30 (oversold). When the MFI crosses these levels, it signals potential reversals or trend continuations.
Bar Coloring:
Bars turn green for positive money flow and red for negative money flow.
Color intensity fades over time, ensuring recent signals stand out while older ones remain visible without dominating the chart.
Alerts:
Alerts are triggered when the Money Flow Tracker crosses into overbought or oversold zones, keeping traders informed of critical conditions without constant monitoring.
Practical Applications:
Trend Confirmation: Use the Money Flow Tracker alongside the oscillator or HMA to confirm trends or identify potential reversals.
Volume-Based Reversal Signals: Spot turning points where price action aligns with shifts in money flow direction.
Sentiment Analysis: Gauge whether market participants are accumulating (positive flow) or distributing (negative flow) assets, offering an additional layer of insight into price movement.
(Space for an example chart: “Money Flow Tracker with gradient fills and overbought/oversold levels”)
### 8. Putting It All Together
- Combining Signals: A practical approach might be to watch for a bullish divergence in the oscillator, confirm it with a shift in the HMA slope color, and then wait for the price to be near or below oversold conditions. The correlation histogram may further confirm if the broader market is also leaning bullish at that time.
- Visual Cues: Bar coloring adds another layer, making your chart easier to interpret at a glance. You can also set alerts to ensure you don’t miss key events like divergences, crossovers, or moving average flips.
- Flexibility: Not every feature needs to be used simultaneously. You might opt to focus on divergences and overbought/oversold signals, or you could emphasize the correlation histogram and bar colors. The settings let you enable or disable each module to suit your style.
---
### 9. Tips for Customization
- Adjust Periods: Shorter periods can yield more signals but also more noise. Longer periods may provide steadier, but fewer, signals.
- Set Appropriate Alert Conditions: Only alert on events most relevant to your strategy to avoid overload.
- Explore Different MAs: Depending on the instrument, some moving average types may give a smoother or more responsive indication.
- Monitor Risk Management: As with any tool, these signals do not guarantee performance, so consider position sizing and stop-loss strategies.
---
By toggling and experimenting with the features described above—buy/sell signals, divergences, moving averages, dynamic gradient clouds, and correlation analysis—you can tailor Uptrick: Oscillator Spectrum to your specific trading approach. Each module is designed to give you a clearer, structured view of potential momentum shifts, overbought or oversold states, and the alignment or divergence of multiple assets.
## Features Explanation
Below is a detailed overview of key features in Uptrick: Oscillator Spectrum. Each component is designed to provide different angles of market analysis, allowing you to customize the tool to your preferences.
---
### 1. Main Oscillator
- Purpose: The primary oscillator in this script merges short-, medium-, and long-term views of buying pressure and true range into a single line.
- Calculation: It weights each period’s contribution (e.g., a heavier focus on the short period if desired) and normalizes the result on a 0–100 scale, where higher readings may suggest more robust momentum. (like from the classic Ultimate Oscillator)
- Practical Use:
- Traders can watch for overbought/oversold conditions at user-defined thresholds (e.g., 70/30).
- It can also provide a straightforward momentum reading for those who prefer to see if momentum is rising, falling, or leveling off.
---
### 2. HMA of the Smoothed Oscillator
- What It Is: A Hull Moving Average (HMA) applied to the main oscillator values. The HMA is often more responsive than standard MAs, offering smoother lines while preserving relatively quick reaction to changes.
- How It Works:
- The script takes the oscillator’s output and processes it through a Hull MA calculation.
- The HMA’s slope and color can change more dynamically, highlighting sharper momentum shifts.
- Why It’s Useful:
- By smoothing out minor fluctuations, the HMA can highlight trends in the oscillator’s trajectory.
- If you see an extended run in the HMA slope, it may indicate a more persistent trend in momentum.
- Color Intensity:
- As the HMA continues in one direction for several bars, the script can intensify the color, signaling stronger or more sustained momentum in that direction.
- Sudden changes in color or slope can signal the start of a new momentum swing.
---
### 3. Gradient Fill
This script uses two gradient-based visual elements:
1. Shining/Layered Gradient on the Main Oscillator
- Purpose: Adds multiple layers around the oscillator line (above and below) to emphasize slope changes and highlight how quickly the oscillator is moving up or down.
- Color Changes:
- When the oscillator rises, it uses a color scheme (e.g., aqua/blue) that intensifies as the slope grows.
- When the oscillator declines, it uses a distinct color (e.g., red/pink).
- User Benefit: Makes it easier to see at a glance if momentum is accelerating or decelerating, beyond just the numerical reading.
2. Dynamic Cloud Fill (Between MAs)
- Purpose: Allows you to plot two moving averages (for example, a short-term Hull MA and a longer-term DEMA) and fill the area between them with a color gradient.
- Bullish vs. Bearish:
- When the short MA is above the long MA, the cloud might appear in a greenish hue.
- When the short MA is below the long MA, the cloud can switch to red or another color.
- Transparency/Intensity:
- The fill can get more opaque if the difference between the two MAs is large, indicating a stronger trend but a higher probability of a reversal.
- User Benefit: Helps visualize changes in trend or momentum across multiple time horizons, all within a single chart overlay.
---
### 4. Correlation Meter & Symbol Inputs
- What It Is: This feature looks at multiple user-selected symbols (e.g., BTC, ETH, BNB, etc.) and computes each symbol’s short-term slope. It then aggregates these slopes into an overall “trend” score.
- Inputs Configuration:
1. Ticker Inputs: You can specify up to five different tickers.
2. Timeframe: Decide whether to pull data from different chart timeframes for each symbol.
3. Slope Calculation: The script may compute, for instance, a 5-period SMA minus a 20-period SMA to gauge if each symbol is trending up or down.
- Market Trend Histogram:
- Displays a column that goes above/below zero depending on how many symbols are bullish or bearish.
- If more than three (out of five) symbols are bullish, the histogram can show a green bar at +1; if fewer than three are bullish, it can show red at –1.
- How to Use:
- Quick Glance: Lets you know if most correlated assets are aligning or diverging.
- Bar Coloring (Optional): If enabled, your main chart’s bars can reflect the aggregated correlation, turning green or red depending on the meter’s reading.
---
### 5. Advanced Metrics Table
- What It Is: An optional table displaying additional metrics for several cryptocurrencies (or any symbols you define).
- Metrics Included:
1. ROI (30D): Calculates return relative to the lowest price in a 30-day period.
2. Collateral Risk: Uses standard deviation to assess volatility (higher risk if standard deviation is large).
3. Liquidity Recovery: A rolling average of volume, aiming to show how liquidity flows might recover over time.
4. Weakening (Rate of Change): Reflects how quickly price is changing compared to previous bars.
5. Monetary Bias (SMA): A simple average of recent prices. If price is below this SMA, it might be seen as undervalued relative to the short term.
6. Risk Phase: Categorizes risk as low, medium, or high based on the standard deviation figure.
7. DCA Signal: Suggests “Accumulate” or “Do Not Accumulate” by checking if the current price is below or above the SMA.
- Why It’s Useful:
- Offers a concise view of multiple assets in one place—helpful for portfolio-level insight.
- DCA (Dollar-Cost Averaging) suggestions can guide longer-term strategies, while volatility (collateral risk) helps gauge how aggressive the price swings might be.
---
### 6. Other Vital Aspects
- Alerts & Notifications:
- The script can trigger alerts for various conditions—crossovers, divergence detections, overbought/oversold transitions, or correlation-based signals.
- Useful for automating watchlists or ensuring you don’t miss a key setup while away from the screen.
- Customization:
- Each module (oscillator settings, divergence detection, correlation meter, advanced metrics table, etc.) can be enabled or disabled based on your preferences.
- You can fine-tune parameters (e.g., periods, smoothing lengths, alert triggers) to align the indicator with different trading styles—scalping, swing, or position trading.
- Combining Features:
- One might watch the main oscillator for momentum extremes, confirm via the HMA slope, check if correlation supports the same bias, and look at the table for risk-phase validation.
- This multi-layer approach can help develop a more structured and informed trading view.
(Space for an example chart: “A fully configured layout showing oscillator, HMA, gradient cloud, correlation meter, and table all in use.”)
7. Money Flow Tracker
Purpose: The Money Flow Tracker adds a volume-based perspective to the indicator suite by incorporating the Money Flow Index (MFI), which assesses buying and selling pressure over a defined period. By smoothing the MFI using an exponential moving average (EMA), the feature highlights the directional flow of capital into and out of the market with greater clarity and reduced noise.
Dynamic Gradient Visualization:
The Money Flow Tracker enhances visual analysis with gradient fills that reflect the MFI’s relationship to the midline (50).
Above 50: A green gradient emerges, intensifying as the MFI moves higher, indicating stronger positive money flow.
Below 50: A red gradient appears, with deeper shades signifying increasing selling pressure.
Transparency dynamically adjusts based on the MFI’s proximity to the midline, making high-confidence zones (closer to 0 or 100) visually distinct.
Directional Sensitivity:
The Tracker emphasizes the importance of overbought (above 70) and oversold (below 30) zones. These thresholds help traders identify when an asset might be overextended, signaling potential reversals or trend continuations.
The inclusion of a midline (50) as a neutral zone helps gauge shifts between accumulation (money flowing in) and distribution (money flowing out).
Bar Integration:
By enabling bar coloring linked to the Money Flow Tracker, traders can visualize its impact directly on price bars.
Green bars reflect positive money flow (above 50), signaling bullish conditions.
Red bars indicate negative money flow (below 50), highlighting bearish sentiment.
Intensity adjustments ensure that recent signals are more visually prominent, while older signals gradually fade for a clean, non-cluttered chart.
Key Advantages:
Volume-Informed Context: Traditional oscillators often focus solely on price; the Money Flow Tracker incorporates volume, adding a crucial dimension for analyzing market behavior.
Adaptive Filtering: The EMA-smoothing feature ensures that sudden, insignificant spikes in volume don’t trigger false signals, providing a clearer and more actionable representation of money flow trends.
Early Warning System: Divergences between price movement and the Money Flow Tracker’s trends can signal potential turning points, helping traders anticipate reversals before they occur.
Practical Use Cases:
Trend Confirmation: Pair the Money Flow Tracker with the oscillator or HMA to confirm bullish or bearish trends. For example, a rising oscillator with positive money flow indicates strong buying interest.
Identifying Entry/Exit Zones: Use overbought/oversold conditions as entry/exit points, particularly when combined with other features like divergence detection.
Market Sentiment Analysis: The Tracker’s ability to dynamically assess buying and selling pressure provides a clear picture of market sentiment, helping traders adjust their strategies to align with broader trends.
By understanding these features—main oscillator readings, the HMA’s smoothing capabilities, gradient-based visual highlights, correlation insights, advanced metrics, and the money flow tracker—you can tailor Uptrick: Oscillator Spectrum to your specific needs, whether you’re focusing on quick trades, longer-term market moves, or broad portfolio health.
Originality of the “Uptrick: Oscillator Spectrum” Indicator
While it includes elements of standard momentum analysis, Uptrick: Oscillator Spectrum sets itself apart by adding an array of features that broaden the typical oscillator’s scope:
1. Slope Coloring & Layered Gradient Effects
- Beyond just plotting a single line, the indicator visually highlights momentum shifts using color changes and gradient fills.
- As the oscillator’s slope becomes steeper or flatter, these gradients intensify or fade, helping users see at a glance when momentum is accelerating, slowing, or reversing.
2. Mean Reversion & Divergence Detection
- The script offers optional logic for marking potential mean reversion points (e.g., overbought/oversold crossovers) and flagging divergences between price and the oscillator line.
- These divergence signals come with adjustable lookback parameters, giving traders control over how recent or extended the pivots should be for detection.
- This functionality can reveal subtle momentum discrepancies that a basic oscillator might overlook.
3. Integrated Multi-Asset Correlation Meter
- In addition to monitoring a single symbol, the indicator can fetch data for multiple tickers. It aggregates each symbol’s slope into a histogram showing whether the broader market (or a group of assets) leans bullish or bearish.
- This cross-market insight moves beyond standard “one-symbol, one-oscillator” usage, adding a bigger-picture perspective in one tool.
4. Advanced Metrics Table
- Users can enable a table that covers ROI calculations, volatility-based risk (“Collateral Risk”), liquidity checks, DCA signals, and more.
- Rather than just seeing an oscillator value, traders can view additional metrics for selected assets in one place, helping them judge overall market conditions or assess multiple instruments simultaneously.
5. Flexible Overlay & Bar Coloring
- Signals can be displayed directly on the price chart (Overlay True) or in a sub-window (Overlay False).
- Bars themselves may change color (e.g., green for bullish or red for bearish) according to different rules—signals, dynamic cloud fill, correlation meter states, etc.
- This adaptability allows traders to keep the chart as simple or as info-rich as they prefer.
6. Custom Smoothing Options & HMA Extensions
- The oscillator can be processed further with a Hull Moving Average (HMA) to reduce noise while still reacting quickly to market changes.
- Slope-based coloring on the HMA provides an additional layer of visual feedback, which is not common in a standard oscillator.
By blending traditional momentum checks with slope-based color feedback, mean reversion triggers, divergence signals, correlation analysis, and an optional metrics table, Uptrick: Oscillator Spectrum offers a more rounded approach than a typical oscillator. It integrates multiple market insights—both visual and analytical—into one script, giving users a broader toolkit for studying potential reversals, gauging momentum strength, and assessing multi-asset trends.
## Conclusion
Uptrick: Oscillator Spectrum brings together multiple layers of analysis—oscillator momentum, divergence detection, correlation insights, HMA smoothing, and more—into one adaptable toolkit. It aims to streamline your charting process by offering meaningful visual cues (such as gradient fills and bar color shifts), advanced tables for broader market data, and flexible alerts to keep you informed of potential setups.
Traders can choose the specific features that suit their style, whether they prefer to focus on raw oscillator signals, multi-ticker correlation, or smooth trend cues from the HMA. By centralizing these different methods in one place, Uptrick: Oscillator Spectrum can help users build more structured approaches to spotting trend shifts and extended conditions, while also remaining compatible with additional analysis techniques.
---
### Disclaimer
This script is provided for informational purposes only and does not constitute financial or investment advice. Past performance is not indicative of future results, and all trading involves risk. You should carefully consider your objectives, risk tolerance, and financial situation before making any trading decisions.
Salience Theory Crypto Returns (AiBitcoinTrend)The Salience Theory Crypto Returns Indicator is a sophisticated tool rooted in behavioral finance, designed to identify trading opportunities in the cryptocurrency market. Based on research by Bordalo et al. (2012) and extended by Cai and Zhao (2022), it leverages salience theory—the tendency of investors, particularly retail traders, to overemphasize standout returns.
In the crypto market, dominated by sentiment-driven retail investors, salience effects are amplified. Attention disproportionately focused on certain cryptocurrencies often leads to temporary price surges, followed by reversals as the market stabilizes. This indicator quantifies these effects using a relative return salience measure, enabling traders to capitalize on price reversals and trends, offering a clear edge in navigating the volatile crypto landscape.
👽 How the Indicator Works
Salience Measure Calculation :
👾 The indicator calculates how much each cryptocurrency's return deviates from the average return of all cryptos over the selected ranking period (e.g., 21 days).
👾 This deviation is the salience measure.
👾 The more a return stands out (salient outcome), the higher the salience measure.
Ranking:
👾 Cryptos are ranked in ascending order based on their salience measures.
👾 Rank 1 (lowest salience) means the crypto is closer to the average return and is more predictable.
👾 Higher ranks indicate greater deviation and unpredictability.
Color Interpretation:
👾 Green: Low salience (closer to average) – Trending or Predictable.
👾 Red/Orange: High salience (far from average) – Overpriced/Unpredictable.
👾 Text Gradient (Teal to Light Blue): Helps visualize potential opportunities for mean reversion trades (i.e., cryptos that may return to equilibrium).
👽 Core Features
Salience Measure Calculation
The indicator calculates the salience measure for each cryptocurrency by evaluating how much its return deviates from the average market return over a user-defined ranking period. This measure helps identify which assets are trending predictably and which are likely to experience a reversal.
Dynamic Ranking System
Cryptocurrencies are dynamically ranked based on their salience measures. The ranking helps differentiate between:
Low Salience Cryptos (Green): These are trending or predictable assets.
High Salience Cryptos (Red): These are overpriced or deviating significantly from the average, signaling potential reversals.
👽 Deep Dive into the Core Mathematics
Salience Theory in Action
Salience theory explains how investors, particularly in the crypto market, tend to prefer assets with standout returns (salient outcomes). This behavior often leads to overpricing of assets with high positive returns and underpricing of those with standout negative returns. The indicator captures these deviations to anticipate mean reversions or trend continuations.
Salience Measure Calculation
// Calculate the average return
avgReturn = array.avg(returns)
// Calculate salience measure for each symbol
salienceMeasures = array.new_float()
for i = 0 to array.size(returns) - 1
ret = array.get(returns, i)
salienceMeasure = math.abs(ret - avgReturn) / (math.abs(ret) + math.abs(avgReturn) + 0.1)
array.push(salienceMeasures, salienceMeasure)
Dynamic Ranking
Cryptos are ranked in ascending order based on their salience measures:
Low Ranks: Cryptos with low salience (predictable, trending).
High Ranks: Cryptos with high salience (unpredictable, likely to revert).
👽 Applications
👾 Trend Identification
Identify cryptocurrencies that are currently trending with low salience measures (green). These assets are likely to continue their current direction, making them good candidates for trend-following strategies.
👾 Mean Reversion Trading
Cryptos with high salience measures (red to light blue) may be poised for a mean reversion. These assets are likely to correct back towards the market average.
👾 Reversal Signals
Anticipate potential reversals by focusing on high-ranked cryptos (red). These assets exhibit significant deviation and are prone to price corrections.
👽 Why It Works in Crypto
The cryptocurrency market is dominated by retail investors prone to sentiment-driven behavior. This leads to exaggerated price movements, making the salience effect a powerful predictor of reversals.
👽 Indicator Settings
👾 Ranking Period : Number of bars used to calculate the average return and salience measure.
Higher Values: Smooth out short-term volatility.
Lower Values: Make the ranking more sensitive to recent price movements.
👾 Number of Quantiles : Divide ranked assets into quantile groups (e.g., quintiles).
Higher Values: More detailed segmentation (deciles, percentiles).
Lower Values: Broader grouping (quintiles, quartiles).
👾 Portfolio Percentage : Percentage of the portfolio allocated to each selected asset.
Enter a percentage (e.g., 20 for 20%), automatically converted to a decimal (e.g., 0.20).
Disclaimer: This information is for entertainment purposes only and does not constitute financial advice. Please consult with a qualified financial advisor before making any investment decisions.
Sentiment Divergence IndicatorThe Sentiment Divergence Indicator (SDI) is a sophisticated tool that combines sentiment analysis with price action to identify potential trade opportunities. By detecting divergences between sentiment data and price movements, the SDI provides early signals of possible trend reversals, helping traders make informed decisions.
How It Works
Sentiment Data Integration:
Utilizes sentiment data from sources such as social media sentiment or news sentiment to gauge market mood.
Analyzes sentiment trends to provide insights into trader psychology.
Price Action Analysis:
Uses indicators like RSI to evaluate price movements.
Detects divergences between sentiment and price to signal potential market reversals.
Divergence Highlighting:
Bullish Divergence: Occurs when sentiment is strong, but the price is weak, indicating a potential upward reversal.
Bearish Divergence: Occurs when sentiment is weak, but the price is strong, indicating a potential downward reversal.
Customization Options:
Lookback Period: Customizable period for sentiment and price analysis.
Divergence Threshold: Adjustable threshold to detect significant divergences.
Signal Colors: Customizable colors for bullish and bearish divergence signals.
Line Thickness: Adjustable line thickness for better visualization.
Visual Representation:
Plots sentiment and price data as oscillators on the chart, similar to RSI.
Highlights bullish and bearish divergences with clear markers.
Alerts:
Custom alerts notify traders when significant divergences are detected, helping them act promptly.
How to Use It
Set Up: Customize the lookback period, divergence threshold, signal colors, and line thickness according to your preference.
Interpret Signals:
Bullish Divergence: Look for buying opportunities when bullish divergences are detected.
Bearish Divergence: Look for selling opportunities when bearish divergences are detected.
Utilize Alerts: Set up alerts to be notified of significant divergences, ensuring you never miss important market signals.
Benefits
Early Reversal Signals: Helps identify potential trend reversals before they occur.
Comprehensive Analysis: Combines sentiment and price action for robust trading insights.
Customizable: Fully customizable to fit individual trading strategies and preferences.
Ideal For
The SDI is ideal for traders looking to leverage sentiment analysis and price action to detect potential market reversals and enhance their trading strategies..
Easy CotHow to Use the Commitment of Traders (COT) Report for Market Analysis
The Commitment of Traders (COT) report is a weekly publication by the Commodity Futures Trading Commission (CFTC) that breaks down the open interest in various futures markets. It categorizes traders into three main groups: Commercials, Non-Commercials, and Retail Traders (Non-Reportable positions). Understanding and analyzing the COT report can provide insights into market sentiment and potential reversals, especially in commodity, currency, and stock index futures.
Key Components of the COT Report
Commercials (Hedgers)
These are entities involved in the production or consumption of the underlying asset. For example, oil producers might hedge by selling oil futures to lock in prices, while airlines might buy futures to hedge against rising prices.
Commercials typically act as hedgers, so their positions can indicate the need for protection rather than speculative intent. Because they are less price-sensitive, their positions are usually opposite to the trend near market reversals.
Non-Commercials (Large Speculators)
This group includes hedge funds, asset managers, and large traders who take speculative positions to profit from price movements.
Non-Commercials are often trend-followers, meaning they increase long positions in an uptrend and short positions in a downtrend. When Non-Commercials become extremely bullish or bearish, it may signal a potential market reversal.
Retail Traders (Non-Reportable Positions)
These are smaller individual traders whose positions are too small to be reported individually.
Retail traders tend to be less experienced and are often on the wrong side of major market moves, so extreme positions by retail traders can sometimes signal a market turning point.
How to Interpret the COT Data
1. Identify Extreme Positions
Extreme Long or Short Positions: When a group reaches a historically extreme level of long or short positions, it often signals a potential reversal. For instance, if Non-Commercials are overwhelmingly long, it may indicate that the uptrend is overextended, and a reversal could be near.
Contrarian Indicator: Since Retail Traders are often on the wrong side, you may look for signals where they are extremely long or short, indicating a possible reversal in the opposite direction.
2. Look for Divergences
Divergence Between Groups: If Non-Commercials (speculators) and Retail Traders are moving in opposite directions, it could indicate that a trend is losing momentum and a reversal is possible.
Commercials vs. Non-Commercials: Commercials are often positioned opposite to Non-Commercials. If there’s a divergence where Non-Commercials are highly bullish, but Commercials are increasingly bearish, it might suggest a coming reversal.
3. Trend Confirmation and Reversal Signals
Trend Confirmation: If both Non-Commercials and Retail Traders are aligned in one direction, it might confirm the trend. However, keep in mind that such alignment may signal the later stages of a trend.
Reversal Signals: Look for signs when Non-Commercials are reaching a peak in one direction while Retail Traders peak in the opposite. Such situations can often indicate that the current trend is close to exhaustion.
Using the COT Report in Trading Strategies
Contrarian Trading Strategy
Extreme Positions as Reversal Signals: Use COT data to identify extreme positions. For instance, if Non-Commercials have a very high long position in a commodity, it might suggest that a bullish trend is overextended and a bearish reversal could be near.
Retail Trader Extremes: If Retail Traders are heavily long or short, consider taking the opposite position once you have additional confirmation signals (e.g., technical indicators).
Following the Trend with Large Speculators
Non-Commercials tend to be trend-followers, so if you see them increasingly long (or short) on an asset, it could be a signal to follow the trend until extreme levels are reached.
Using Divergences for Entry and Exit Points
Entry: If Non-Commercials are long, but Retail Traders are heavily short, consider entering a long position as it may confirm the trend.
Exit: If Non-Commercials begin to reduce their positions while Retail Traders increase theirs, it might be time to consider exiting, as the trend could be losing momentum.
$TUBR: 7-25-99 Moving Average7, 25, and 99 Period Moving Averages
This indicator plots three moving averages: the 7-period, 25-period, and 99-period Simple Moving Averages (SMA). These moving averages are widely used to smooth out price action and help traders identify trends over different time frames. Let's break down the significance of these specific moving averages from both supply and demand perspectives and a price action perspective.
1. Supply and Demand Perspective:
- 7-period Moving Average (Short-Term) :
The 7-period moving average represents the short-term sentiment in the market. It captures the rapid fluctuations in price and is heavily influenced by recent supply and demand changes. Traders often look to the 7-period SMA for immediate price momentum, with price moving above or below this line signaling short-term strength or weakness.
- Bullish Supply/Demand : When price is above the 7-period SMA, it suggests that buyers are currently in control and demand is higher than supply. Conversely, price falling below this line indicates that supply is overpowering demand, leading to a short-term downtrend.
Is current price > average price in past 7 candles (depending on timeframe)? This will tell you how aggressive buyers are in short term.
- Key Supply/Demand Zones : The 7-period SMA often acts as dynamic support or resistance in a trending market, where traders might use it to enter or exit positions based on how price interacts with this level.
- 25-period Moving Average (Medium-Term) :
The 25-period SMA smooths out more of the noise compared to the 7-period, providing a more stable indication of intermediate trends. This moving average is often used to gauge the market's supply and demand balance over a broader timeframe than the short-term 7-period SMA.
- Supply/Demand Balance : The 25-period SMA reflects the medium-term equilibrium between supply and demand. A crossover between the price and the 25-period SMA may indicate a shift in this balance. When price sustains above the 25-period SMA, it shows that demand is strong enough to maintain an upward trend. Conversely, if the price stays below it, supply is likely exceeding demand.
Is current price > average price in past 25 candles (depending on timeframe)? This will tell you how aggressive buyers are in mid term.
- Momentum Shift : Crossovers between the 7-period and 25-period SMAs can indicate momentum shifts between short-term and medium-term demand. For example, if the 7-period crosses above the 25-period, it often signifies growing short-term demand relative to the medium-term trend, signaling potential buy opportunities. What this crossover means is that if 7MA > 25MA that means in past 7 candles average price is more than past 25 candles.
- 99-period Moving Average (Long-Term):
The 99-period SMA represents the long-term trend and reflects the market's supply and demand over an extended period. This moving average filters out short-term fluctuations and highlights the market's overall trajectory.
- Long-Term Supply/Demand Dynamics : The 99-period SMA is slower to react to changes in supply and demand, providing a more stable view of the market's overall trend. Price staying above this line shows sustained demand dominance, while price consistently staying below reflects ongoing supply pressure.
Is current price > average price in past 99 candles (depending on timeframe)? This will tell you how aggressive buyers are in long term.
- Market Trend Confirmation : When both the 7-period and 25-period SMAs are above the 99-period SMA, it signals a strong bullish trend with demand outweighing supply across all timeframes. If all three SMAs are below the 99-period SMA, it points to a bear market where supply is overpowering demand in both the short and long term.
2. Price Action Perspective :
- 7-period Moving Average (Short-Term Trends):
The 7-period moving average closely tracks price action, making it highly responsive to quick shifts in price. Traders often use it to confirm short-term reversals or continuations in price action. In an uptrend, price typically stays above the 7-period SMA, whereas in a downtrend, price stays below it.
- Short-Term Price Reversals : Crossovers between the price and the 7-period SMA often indicate short-term reversals. When price breaks above the 7-period SMA after staying below it, it suggests a potential bullish reversal. Conversely, a price breakdown below the 7-period SMA could signal a bearish reversal.
- 25-period Moving Average (Medium-Term Trends) :
The 25-period SMA helps identify the medium-term price action trend. It balances short-term volatility and longer-term stability, providing insight into the more persistent trend. Price pullbacks to the 25-period SMA during an uptrend can act as a buying opportunity for trend traders, while pullbacks during a downtrend may offer shorting opportunities.
- Pullback and Continuation: In trending markets, price often retraces to the 25-period SMA before continuing in the direction of the trend. For instance, if the price is in a bullish trend, traders may look for support at the 25-period SMA for potential continuation trades.
- 99-period Moving Average (Long-Term Trend and Market Sentiment ):
The 99-period SMA is the most critical for identifying the overall market trend. Price consistently trading above the 99-period SMA indicates long-term bullish momentum, while price staying below the 99-period SMA suggests bearish sentiment.
- Trend Confirmation : Price action above the 99-period SMA confirms long-term upward momentum, while price action below it confirms a downtrend. The space between the shorter moving averages (7 and 25) and the 99-period SMA gives a sense of the strength or weakness of the trend. Larger gaps between the 7 and 99 SMAs suggest strong bullish momentum, while close proximity indicates consolidation or potential reversals.
- Price Action in Trending Markets : Traders often use the 99-period SMA as a dynamic support/resistance level. In strong trends, price tends to stay on one side of the 99-period SMA for extended periods, with breaks above or below signaling major changes in market sentiment.
Why These Numbers Matter:
7-Period MA : The 7-period moving average is a popular choice among short-term traders who want to capture quick momentum changes. It helps visualize immediate market sentiment and is often used in conjunction with price action to time entries or exits.
- 25-Period MA: The 25-period MA is a key indicator for swing traders. It balances sensitivity and stability, providing a clearer picture of the intermediate trend. It helps traders stay in trades longer by filtering out short-term noise, while still being reactive enough to detect reversals.
- 99-Period MA : The 99-period moving average provides a broad view of the market's direction, filtering out much of the short- and medium-term noise. It is crucial for identifying long-term trends and assessing whether the market is bullish or bearish overall. It acts as a key reference point for longer-term trend followers, helping them stay with the broader market sentiment.
Conclusion:
From a supply and demand perspective, the 7, 25, and 99-period moving averages help traders visualize shifts in the balance between buyers and sellers over different time horizons. The price action interaction with these moving averages provides valuable insight into short-term momentum, intermediate trends, and long-term market sentiment. Using these three MAs together gives a more comprehensive understanding of market conditions, helping traders align their strategies with prevailing trends across various timeframes.
------------- RULE BASED SYSTEM ---------------
Overview of the Rule-Based System:
This system will use the following moving averages:
7-period MA: Represents short-term price action.
25-period MA: Represents medium-term price action.
99-period MA: Represents long-term price action.
1. Trend Identification Rules:
Bullish Trend:
The 7-period MA is above the 25-period MA, and the 25-period MA is above the 99-period MA.
This structure shows that short, medium, and long-term trends are aligned in an upward direction, indicating strong bullish momentum.
Bearish Trend:
The 7-period MA is below the 25-period MA, and the 25-period MA is below the 99-period MA.
This suggests that the market is in a downtrend, with bearish momentum dominating across timeframes.
Neutral/Consolidation:
The 7-period MA and 25-period MA are flat or crossing frequently with the 99-period MA, and they are close to each other.
This indicates a sideways or consolidating market where there’s no strong trend direction.
2. Entry Rules:
Bullish Entry (Buy Signals):
Primary Buy Signal:
The price crosses above the 7-period MA, AND the 7-period MA is above the 25-period MA, AND the 25-period MA is above the 99-period MA.
This indicates the start of a new upward trend, with alignment across the short, medium, and long-term trends.
Pullback Buy Signal (for trend continuation):
The price pulls back to the 25-period MA, and the 7-period MA remains above the 25-period MA.
This indica
tes that the pullback is a temporary correction in an uptrend, and buyers may re-enter the market as price approaches the 25-period MA.
You can further confirm the signal by waiting for price action (e.g., bullish candlestick patterns) at the 25-period MA level.
Breakout Buy Signal:
The price crosses above the 99-period MA, and the 7-period and 25-period MAs are also both above the 99-period MA.
This confirms a strong bullish breakout after consolidation or a long-term downtrend.
Bearish Entry (Sell Signals):
Primary Sell Signal:
The price crosses below the 7-period MA, AND the 7-period MA is below the 25-period MA, AND the 25-period MA is below the 99-period MA.
This indicates the start of a new downtrend with alignment across the short, medium, and long-term trends.
Pullback Sell Signal (for trend continuation):
The price pulls back to the 25-period MA, and the 7-period MA remains below the 25-period MA.
This indicates that the pullback is a temporary retracement in a downtrend, providing an opportunity to sell as price meets resistance at the 25-period MA.
Breakdown Sell Signal:
The price breaks below the 99-period MA, and the 7-period and 25-period MAs are also below the 99-period MA.
This confirms a strong bearish breakdown after consolidation or a long-term uptrend reversal.
3. Exit Rules:
Bullish Exit (for long positions):
Short-Term Exit:
The price closes below the 7-period MA, and the 7-period MA starts crossing below the 25-period MA.
This indicates weakening momentum in the uptrend, suggesting an exit from the long position.
Stop-Loss Trigger:
The price falls below the 99-period MA, signaling the breakdown of the long-term trend.
This can act as a final exit signal to minimize losses if the long-term uptrend is invalidated.
Bearish Exit (for short positions):
Short-Term Exit:
The price closes above the 7-period MA, and the 7-period MA starts crossing above the 25-period MA.
This indicates a potential weakening of the downtrend and signals an exit from the short position.
Stop-Loss Trigger:
The price breaks above the 99-period MA, invalidating the bearish trend.
This signals that the market may be reversing to the upside, and exiting short positions would be prudent.
FxASTLite [ALLDYN]This script, titled "FxASTLite " or "FxAST LX," is a Pine Script indicator designed for trading systems that use multiple technical analysis tools such as EMAs (Exponential Moving Averages) and PSAR (Parabolic Stop and Reverse). The script is overlaid on the price chart, providing insights into market trends and potential buy or sell signals.
### Key Features:
1. **EMA (Exponential Moving Averages)**
- The script plots several EMAs (5, 8, 13, 21, 50, and 200) based on the Heiken Ashi close price. EMAs are helpful in identifying trends, momentum, and potential entry/exit points.
- The script highlights key relationships between the EMAs, such as the crossover or crossunder of faster EMAs (like the 8 EMA) with slower ones (like the 21 EMA). These events often signal potential trend reversals or continuation.
2. **PSAR (Parabolic Stop and Reverse)**
- The script uses the PSAR indicator, which is a trend-following indicator that highlights potential points where the market might reverse direction.
- The script identifies bullish PSAR flips (when the PSAR value moves below the price, signaling a potential upward trend) and bearish PSAR flips (when the PSAR value moves above the price, signaling a downward trend).
- The PSAR flips are used to generate buy or sell signals.
3. **Heiken Ashi Candles**
- It uses Heiken Ashi candles to smooth out price action and better identify trends. Heiken Ashi candles help filter out market noise and make trends clearer compared to regular candlestick charts.
4. **Session Times**
- The script allows traders to track different market sessions (e.g., London, New York, Asia). It identifies and allows users to analyze price action during specific trading hours.
5. **Buy and Sell Signals**
- The script defines multiple conditions for buy and sell signals:
- **Buy Signals**: Generated when certain conditions are met, such as the price moving above key EMAs, bullish PSAR flips, and bullish Heiken Ashi candles.
- **Sell Signals**: Generated when conditions like bearish PSAR flips, bearish candles, and price moving below EMAs are met.
- These signals are designed to guide traders on when to enter or exit trades.
6. **Alerts**
- The script comes with alert conditions, which can be used to set automated alerts for when buy or sell signals occur. This allows the trader to stay informed without constantly monitoring the chart.
### How It Works:
1. **EMA-Based Trend Identification:**
- EMAs help identify the overall market trend. For example, if the 8-period EMA crosses above the 21-period EMA, it signals a potential bullish trend. Conversely, if the 8 EMA crosses below the 21 EMA, it may signal a bearish trend.
2. **PSAR for Trend Reversals:**
- PSAR values provide insight into potential trend reversals. When the PSAR flips (moving from above to below the price or vice versa), the script highlights these flips as potential buy/sell signals.
3. **Combining Signals:**
- The script combines multiple indicators (EMAs, PSAR, and Heiken Ashi candles) to provide stronger confirmations of potential entry and exit points. By using multiple indicators, the script reduces the likelihood of false signals.
4. **Visual Overlay:**
- The script overlays key information on the price chart, such as EMAs and PSAR dots, which makes it easy for traders to visualize market conditions in real-time.
### Benefits of Using This Script:
1. **Trend Identification:**
- The combination of EMAs and PSAR helps traders identify trends early. The visual display of these indicators directly on the chart makes it easier to detect shifts in market sentiment.
2. **Smoothed Candlesticks:**
- By using Heiken Ashi candles, the script smooths out noisy price action, making it easier to spot trends and reduce the likelihood of making impulsive decisions based on short-term volatility.
3. **Buy and Sell Signals:**
- The script generates clear buy and sell signals based on a combination of multiple technical factors (EMAs, PSAR, and Heiken Ashi). This can help traders time their entries and exits more effectively.
4. **Multi-Timeframe Alerts:**
- With the built-in alert functionality, traders can set up alerts for specific signals (like a PSAR flip or EMA crossover) across different timeframes. This helps traders stay informed without having to watch the chart constantly.
5. **Session Management:**
- The ability to track different market sessions allows traders to focus on times of high liquidity and volatility, which are often the best times to trade.
6. **Customizability:**
- The script allows traders to customize the settings for each indicator (e.g., EMA lengths, PSAR settings, session times) according to their trading preferences.
### Use Cases:
- **Trend Trading:**
- Traders who follow market trends can benefit from this script as it uses EMAs and PSAR to identify trending conditions and potential trend reversals.
- **Swing Trading:**
- Swing traders looking to capitalize on medium-term market moves can use the script to identify optimal entry and exit points based on momentum shifts.
- **Intraday Trading:**
- The inclusion of market sessions and real-time alerts makes the script useful for intraday traders who want to focus on specific trading hours, such as the opening of the London or New York sessions.
Overall, this script is designed for traders who rely on technical indicators to guide their trading decisions. The combination of EMAs, PSAR, and Heiken Ashi candles provides a well-rounded view of market trends and potential entry/exit points, making it a powerful tool for traders looking to improve their strategy.
ARIMA Indicator with Optional SmoothingOverview
The ARIMA (AutoRegressive Integrated Moving Average) Indicator is a powerful tool used to forecast future price movements by combining differencing, autoregressive, and moving average components. This indicator is designed to help traders identify trends and potential reversal points by analyzing the historical price data.
Key Features
AutoRegressive Component (AR): Utilizes past values to predict future prices.
Moving Average Component (MA): Averages past price differences to smooth out noise.
Differencing: Reduces non-stationarity in the time series data.
Optional Smoothing: Applies EMA to the ARIMA output for a smoother signal.
Customizable Parameters: Allows users to adjust AR and MA orders, differencing periods, and smoothing lengths.
Concepts Underlying the Calculations
Differencing: Subtracts previous prices from current prices to remove trends and seasonality, making the data stationary.
AutoRegressive Component (AR): Predicts future prices based on a linear combination of past values.
Moving Average Component (MA): Uses past forecast errors to refine future predictions.
Exponential Moving Average (EMA): Applies more weight to recent prices, providing a smoother and more responsive signal.
How It Works
The ARIMA Indicator first calculates the differenced series to achieve stationarity. Then, it computes the simple moving average (SMA) of this differenced series. The indicator uses the AR and MA components to adjust the SMA, creating an approximation of the ARIMA model. Finally, an optional smoothing step using EMA can be applied to the ARIMA approximation to produce a smoother signal.
How Traders Can Use It
Traders can use the ARIMA Indicator to:
Identify Trends: Detect emerging trends by observing the direction of the ARIMA line.
Spot Reversals: Look for divergences between the ARIMA line and the price to identify potential reversal points.
Generate Trading Signals: Use crossovers between the ARIMA line and the price to generate buy or sell signals.
Filter Noise: Enable the optional smoothing to filter out market noise and focus on significant price movements.
Example Usage Instructions
Add the ARIMA Indicator to your chart.
Adjust the input parameters to suit your trading strategy:
Set the SMA Length (e.g., 14).
Choose the Differencing Period (e.g., 1).
Define the AR Order (p) and MA Order (q) (e.g., 1).
Configure the Smoothing Length if smoothing is desired (e.g., 5).
Enable or disable smoothing as needed.
Observe the ARIMA line (blue) and compare it to the price chart.
Use the ARIMA line to identify trends and potential reversals.
Implement trading decisions based on the ARIMA line’s behavior relative to the price.
CS PatternsOverview
The CS Patterns indicator is designed to identify and highlight various candlestick patterns on a trading chart. Candlestick patterns are a crucial tool for traders as they help in predicting market movements and potential reversals. This indicator includes single, double, and triple candlestick patterns without revealing the source code, making it an ideal tool for traders who want to utilize advanced pattern recognition while keeping the script proprietary.
Candlestick Patterns Included
Single Candlestick Patterns
Bullish Hammer:
Found at the bottom of a downtrend.
Features a small body, long lower shadow, and little to no upper shadow.
Indicates potential reversal to an uptrend.
Bearish Hanging Man:
Found at the top of an uptrend.
Similar structure to the Bullish Hammer but indicates a potential reversal to a downtrend.
Bullish Inverted Hammer:
Found at the bottom of a downtrend.
Features a small body, long upper shadow, and little to no lower shadow.
Suggests a potential reversal to an uptrend.
Bearish Shooting Star:
Found at the top of an uptrend.
Indicates a potential reversal to a downtrend.
Dragonfly Doji:
Small or non-existent upper shadow and long lower shadow.
Indicates a potential reversal when found at the bottom of a trend.
Gravestone Doji:
Long upper shadow and small or non-existent lower shadow.
Indicates a potential reversal when found at the top of a trend.
Standard Doji:
Very small body, indicates indecision in the market.
Can signal reversals when found at the tops or bottoms of trends.
Long-Legged Doji:
Long upper and lower shadows with a small body.
Indicates a potential market reversal.
Double Candlestick Patterns
Bullish Engulfing:
A smaller bearish candle followed by a larger bullish candle that engulfs it.
Indicates a potential reversal to an uptrend.
Bearish Engulfing:
A smaller bullish candle followed by a larger bearish candle that engulfs it.
Indicates a potential reversal to a downtrend.
Bullish Harami:
A large bearish candle followed by a smaller bullish candle within its range.
Indicates a potential reversal to an uptrend.
Bearish Harami:
A large bullish candle followed by a smaller bearish candle within its range.
Indicates a potential reversal to a downtrend.
Bullish Piercing Line:
A bearish candle followed by a bullish candle that closes above the midpoint of the previous candle.
Indicates a potential reversal to an uptrend.
Bearish Dark Cloud Cover:
A bullish candle followed by a bearish candle that closes below the midpoint of the previous candle.
Indicates a potential reversal to a downtrend.
Bullish Inside Bar:
A smaller bullish or bearish candle completely within the range of the previous bearish candle.
Indicates a potential continuation or reversal to an uptrend.
Bearish Inside Bar:
A smaller bullish or bearish candle completely within the range of the previous bullish candle.
Indicates a potential continuation or reversal to a downtrend.
Triple Candlestick Patterns
Bullish Morning Star:
A bearish candle followed by a smaller-bodied candle (bullish or bearish), and then a larger bullish candle.
Indicates a potential reversal to an uptrend.
Bearish Evening Star:
A bullish candle followed by a smaller-bodied candle (bullish or bearish), and then a larger bearish candle.
Indicates a potential reversal to a downtrend.
How to Use?
Adding the Indicator:
Open TradingView and go to the Pine Script Editor.
Copy and paste the provided code into a new script.
Save and add the script to your chart.
Interpreting the Signals:
The indicator will highlight the patterns on the chart with specific labels.
Use these visual cues to make informed trading decisions based on potential reversals or continuations indicated by the patterns.
Customizing the Settings:
The indicator allows for customization of various settings through input options.
Adjust these settings according to your trading strategy and preferences.
Divergence Toolkit (Real-Time)The Divergence Toolkit is designed to automatically detect divergences between the price of an underlying asset and any other @TradingView built-in or community-built indicator or script. This algorithm provides a comprehensive solution for identifying both regular and hidden divergences, empowering traders with valuable insights into potential trend reversals.
🔲 Methodology
Divergences occur when there is a disagreement between the price action of an asset and the corresponding indicator. Let's review the conditions for regular and hidden divergences.
Regular divergences indicate a potential reversal in the current trend.
Regular Bullish Divergence
Price Action - Forms a lower low.
Indicator - Forms a higher low.
Interpretation - Suggests that while the price is making new lows, the indicator is showing increasing strength, signaling a potential upward reversal.
Regular Bearish Divergence
Price Action - Forms a higher high.
Indicator - Forms a lower high.
Interpretation - Indicates that despite the price making new highs, the indicator is weakening, hinting at a potential downward reversal.
Hidden divergences indicate a potential continuation of the existing trend.
Hidden Bullish Divergence
Price Action - Forms a higher low.
Indicator - Forms a lower low.
Interpretation - Suggests that even though the price is retracing, the indicator shows increasing strength, indicating a potential continuation of the upward trend.
Hidden Bearish Divergence
Price Action - Forms a lower high.
Indicator - Forms a higher high.
Interpretation - Indicates that despite a retracement in price, the indicator is still strong, signaling a potential continuation of the downward trend.
In both regular and hidden divergences, the key is to observe the relationship between the price action and the indicator. Divergences can provide valuable insights into potential trend reversals or continuations.
The methodology employed in this script involves the detection of divergences through conditional price levels rather than relying on detected pivots. Traditionally, divergences are created by identifying pivots in both the underlying asset and the oscillator. However, this script employs a trailing stop on the oscillator to detect potential swings, providing a real-time approach to identifying divergences, you may find more info about it here (SuperTrend Toolkit) . We detect swings or pivots simply by testing for crosses between the indicator and its trailing stop.
type oscillator
float o = Oscillator Value
float s = Trailing Stop Value
oscillator osc = oscillator.new()
bool l = ta.crossunder(osc.o, osc.s) => Utilized as a formed high
bool h = ta.crossover (osc.o, osc.s) => Utilized as a formed low
// Note: these conditions alone could cause repainting when they are met but canceled at a later time before the bar closes. Hence, we wait for a confirmed bar.
// The script also includes the option to immediately alert when the conditions are met, if you choose so.
By testing for conditional price levels, the script achieves similar outcomes without the delays associated with pivot-based methods.
type bar
float o = open
float h = high
float l = low
float c = close
bar b = bar.new()
bool hi = b.h < b.h => A higher price level has been created
bool lo = b.l > b.l => A lower price level has been created
// Note: These conditions do not check for certain price swings hence they may seldom result in inaccurate detection.
🔲 Setup Guide
A simple example on one of my public scripts, Standardized MACD
🔲 Utility
We may auto-detect divergences to spot trend reversals & continuations.
🔲 Settings
Source - Choose an oscillator source of which to base the Toolkit on.
Zeroing - The Mid-Line value of the oscillator, for example RSI & MFI use 50.
Sensitivity - Calibrates the sensitivity of which Divergencies are detected, higher values result in more detections but less accuracy.
Lifetime - Maximum timespan to detect a Divergence.
Repaint - Switched on, the script will trigger Divergencies as they happen in Real-Time, could cause repainting when the conditions are met but canceled at a later time before bar closes.
🔲 Alerts
Bearish Divergence
Bullish Divergence
Bearish Hidden Divergence
Bullish Hidden Divergence
As well as the option to trigger 'any alert' call.
The Divergence Toolkit provides traders with a dynamic tool for spotting potential trend reversals and continuations. Its innovative approach to real-time divergence detection enhances the timeliness of identifying market opportunities.
MTF ChartingKey Features
Visual Settings: The script allows customization of the visual aspects of the candlesticks. Traders can select colors for the bodies, borders, and wicks of bullish (rising) and bearish (falling) candles. This customization enhances readability and personal preference alignment.
Timeframe Settings: Traders can choose up to five different timeframes (labeled as HTF 1 to HTF 5) to display on the main chart. For each selected timeframe, traders can specify the number of candlesticks (bars) to display.
Candlestick Representation: The script redraws the candlesticks from the selected timeframes onto the main chart. This redrawing includes the high, low, opening, and closing prices of the candlesticks for each timeframe, providing a multi-dimensional view of market trends.
Labeling: The script includes an option to label each set of candlesticks with their respective timeframe for easy identification.
Practical Usage for Traders
Market Analysis: By displaying candlesticks from different timeframes, traders can analyze the market more comprehensively. For instance, while the main chart might show a short-term trend, the MTF charting can reveal a different longer-term trend, aiding in more informed decision-making.
Trend Confirmation: Viewing multiple timeframes simultaneously helps in confirming trends. If multiple timeframes show a similar trend, it might indicate a stronger, more reliable trend.
Identifying Reversals: The script can be useful in spotting potential trend reversals. For example, if the lower timeframe shows a bearish trend while the higher timeframe remains bullish, it might signal a potential reversal.
Customization for Strategy Alignment: Traders can customize the timeframes and the number of bars to align with their specific trading strategies, whether they are short-term day traders or long-term position traders.
Technical Aspects
The script uses arrays to store and manipulate candlestick data for each timeframe. This approach ensures efficient handling of data and updates.
Examples
- Display up to 5 timeframes on your main price chart. You are able to get a zoomed out view of the market without taking up too much screen real estate.
- Show a lower timeframe on your primary chart. In this instance maybe you primarily look at the 5 minute chart, but like to refine your entries on the 1 minute. Here you can do it with one chart.
- Look at how the daily candle is forming relative to the timeframe that you are currently on. You can more easily spot where price closed and opened on certain days.
Price Exhaustion IndicatorThe Price Exhaustion Indicator (PE) is a powerful tool designed to identify trends weakening and strengthening in the financial markets. It combines the concepts of Average True Range (ATR), Moving Average Convergence Divergence (MACD), and Stochastic Oscillator to provide a comprehensive assessment of trend exhaustion levels. By analyzing these multiple indicators together, traders and investors can gain valuable insights into potential price reversals and long-term market highs and lows.
The aim of combining the ATR, MACD, and Stochastic Oscillator, is to provide a comprehensive analysis of trend exhaustion. The ATR component helps assess the volatility and range of price movements, while the MACD offers insights into the convergence and divergence of moving averages. The Stochastic Oscillator measures the current price in relation to its range, providing further confirmation of trend exhaustion. The exhaustion value is derived by combining the MACD, ATR, and Stochastic Oscillator. The MACD value is divided by the ATR value, and then multiplied by the Stochastic Oscillator value. This calculation results in a single exhaustion value that reflects the combined influence of these three indicators.
Application
The Price Exhaustion Indicator utilizes a unique visual representation by incorporating a gradient color scheme. The exhaustion line dynamically changes color, ranging from white when close to the midline (40) to shades of purple as it approaches points of exhaustion (overbought at 100 and oversold at -20). As the exhaustion line approaches the color purple, this represents extreme market conditions and zones of weakened trends where reversals may occur. This color gradient serves as a visual cue, allowing users to quickly gauge the strength or weakness of the prevailing trend.
To further enhance its usability, the Price Exhaustion Indicator also includes circle plots that signify potential points of trend reversion. These plots appear when the exhaustion lines cross or enter the overbought and oversold zones. Red circle plots indicate potential short entry points, suggesting a weakening trend and the possibility of a downward price reversal. Conversely, green circle plots represent potential long entry points, indicating a strengthening trend and the potential for an upward price reversal.
Traders and investors can leverage the Price Exhaustion Indicator in various ways. It can be utilized as a trend-following tool, or a mean reversion tool. When the exhaustion line approaches the overbought or oversold zones, it suggests a weakening trend and the possibility of a price reversal, helping identify potential market tops and bottoms. This can guide traders in timing their entries or exits in anticipation of a trend shift.
Utility
The Price Exhaustion Indicator is particularly useful for long-term market analysis, as it focuses on identifying long-term market highs and lows. By capturing the gradual weakening or strengthening of a trend, it assists investors in making informed decisions about portfolio allocation, trend continuation, or potential reversals.
In summary, the Price Exhaustion Indicator is a comprehensive and visually intuitive tool that combines ATR, MACD, and Stochastic Oscillator to identify trend exhaustion levels. By utilizing a gradient color scheme and circle plots, it offers traders and investors valuable insights into potential trend reversals and long-term market highs and lows. Its unique features make it a valuable addition to any trader's toolkit, providing a deeper understanding of market dynamics and assisting in decision-making processes. Please note that future performance of any trading strategy is fundamentally unknowable, and past results do not guarantee future performance.
Moving Average Contrarian IndicatorThis indicator is designed to identify potential turning points in the market. By measuring the distance between the price and a moving average, and normalizing it, the MACI provides valuable insights into market sentiment and potential reversals. In this article, we will explore the calculation, interpretation, and practical applications of the MACI, along with its potential limitations.
The MACI is calculated in several steps. First, a moving average is computed using a user-defined length, representing the average price over the specified period. The distance between the current price and the moving average is then determined. This distance is normalized using the highest and lowest distances observed within the chosen length, resulting in a value between 0 and 100. Higher MACI values indicate that the price is relatively far from the moving average, potentially signaling an overextension, while lower values suggest price consolidation or convergence with the moving average.
Altering the parameters of the Moving Average Contrarian Indicator can provide traders with additional flexibility and adaptability to suit different market conditions and trading styles. By adjusting the length parameter, traders can customize the sensitivity of the indicator to price movements. A shorter length may result in more frequent and responsive signals, which can be useful for short-term traders aiming to capture quick price reversals. On the other hand, a longer length may provide smoother signals, suited for traders who prefer to focus on longer-term trends and are less concerned with minor fluctuations. Experimenting with different parameter values allows traders to fine-tune the indicator to align with their preferred trading timeframes and risk tolerance. However, it is essential to strike a balance and avoid excessive parameter adjustments that may lead to over-optimization or curve fitting. Regular evaluation and optimization based on historical data and real-time market observations can help identify the most suitable parameter values for optimal performance.
The coloration of the Moving Average Contrarian Indicator provides visual cues that assist traders in interpreting its signals. The background color, set based on the indicator's values, adds an additional layer of context to the chart. When the indicator is indicating bullish conditions, the background color is set to lime, suggesting a favorable environment for long positions. Conversely, when the indicator signals bearish conditions, the background color is set to fuchsia, indicating a potential advantage for short positions. In neutral or transitional periods, the background color is set to yellow, indicating caution and the absence of a clear bias.
The bar color complements the histogram and provides additional visual clarity. When the MACI value is greater than the MACI SMA value and exceeds the threshold of 30, the bars are colored lime, signaling potential bullish conditions. Conversely, when the MACI value is below the MACI SMA value and falls below the threshold of 70, the bars are colored fuchsia, indicating potential bearish conditions. For values that fall between these thresholds, the bars are colored yellow, highlighting a neutral or transitional state.
Practical Uses and Strategies:
The MACI offers traders and analysts valuable insights into market dynamics and potential reversal points. When the MACI is above its moving average and above a predefined threshold (e.g., 30), it suggests that prices have deviated significantly from the average and may be overbought. This could serve as an early indication for potential short-selling opportunities or taking profits on existing long positions. Conversely, when the MACI is below its moving average and below a predefined threshold (e.g., 70), it suggests oversold conditions, potentially signaling a buying opportunity. Traders can combine MACI with other technical indicators or price patterns to further refine their trading strategies.
The MACI can be a powerful tool for identifying potential market reversals. When the MACI reaches extreme levels, such as above 70 or below 30, it indicates overbought or oversold conditions, respectively. Traders can use these signals to anticipate price reversals and adjust their trading strategies accordingly. For example, when the MACI enters the overbought zone, traders may consider initiating short positions or tightening stop-loss levels on existing long positions. Conversely, when the MACI enters the oversold zone, it may indicate a buying opportunity, prompting traders to consider initiating long positions or loosening stop-loss levels.
The MACI can also be used in conjunction with price action to identify potential divergence patterns. Divergence occurs when the MACI and price move in opposite directions. For instance, if the price is making higher highs while the MACI is making lower highs, it suggests a bearish divergence, indicating a potential trend reversal. Conversely, if the price is making lower lows while the MACI is making higher lows, it suggests a bullish divergence, signaling a potential trend reversal to the upside. Traders can use these divergence patterns as additional confirmation signals when making trading decisions.
Limitations:
-- Sideways and Choppy Markets : The MACI performs best in trending markets where price movements are more pronounced. In sideways or choppy markets with limited directional bias, the MACI may generate false signals or provide less reliable indications. Traders should exercise caution when relying solely on the MACI in such market conditions and consider incorporating additional analysis techniques or filters to confirm potential signals.
-- Lagging Indicator : The MACI is a lagging indicator, as it relies on moving averages and historical price data. It may not provide timely signals for very short-term trading or capturing rapid price movements. Traders should be aware that there may be a delay between the occurrence of a signal and its confirmation by the MACI.
-- False Signals : Like any technical indicator, the MACI is not immune to false signals. It is essential to use the MACI in conjunction with other technical indicators, chart patterns, or fundamental analysis to increase the probability of accurate predictions. Combining multiple confirmation signals can help filter out false signals and enhance the overall reliability of trading decisions.
-- Market Conditions : It's important to consider that the effectiveness of the MACI may vary across different markets and asset classes. Each market has its own characteristics, and what works well in one market may not work as effectively in another. Traders should evaluate the performance of the MACI within their specific trading environment and adapt their strategies accordingly.
This indicator can be a valuable addition to a trader's toolkit, offering insights into potential entry and exit points. However, it should be used in conjunction with other analysis techniques and should not be relied upon as a standalone trading signal. Understanding its calculation, interpreting its values, and considering its limitations will empower traders to make more informed decisions in their pursuit of trading success.
Bars Since EMA Touch (BSET)// Description:
Welcome to the "Bars since EMA touch" indicator, designed and developed by StockJustice. This script provides a unique approach to analyzing price movements relative to the Exponential Moving Average (EMA). It offers valuable insights into trend strength and trend duration, allowing traders to make informed decisions.
// How it Works:
The indicator calculates the EMA based on the chosen length, which is customizable through the input settings. Additionally, it calculates the MACD (Moving Average Convergence Divergence) and its signal line to further enhance the analysis.
The script tracks the number of bars since the price touches or crosses the EMA. It provides a histogram plot that represents this count. Positive values indicate bars since the price crossed above the EMA, while negative values indicate bars since the price crossed below the EMA.
The color of the histogram bars adjusts dynamically based on the relationship between the current close price and the EMA. If the close is above the EMA and the bars since EMA touch is greater than zero, the histogram will be colored red if the signal line is above the MACD. If the close is below the EMA and the bars since EMA touch is greater than zero, the histogram will be colored green if the signal line is below the MACD. Otherwise, the histogram bars will be colored blue or white, depending on the direction of the crossover.
The script also calculates percentiles for bullish and bearish trends. These percentiles indicate the proportion of trend durations that exceed a certain threshold, which is set at 20% by default. The percentile plots help identify significant trend durations and gauge their strength relative to the entire trend history.
// Usage:
This indicator can be applied to various markets and timeframes, accommodating different trading strategies. It is suitable for both intraday and swing trading. Traders can use it in conjunction with other technical analysis tools to confirm trade entries, identify trend reversals, or determine potential price targets.
// Input Parameters:
Length of EMA: This parameter allows you to define the length of the Exponential Moving Average used in the calculations. The default value is 9, but feel free to adjust it according to your preferences and trading style.
// Notes on Uniqueness:
The "Bars since EMA touch" indicator stands out from other published scripts due to its comprehensive analysis of trend durations, the use of MACD and its signal line, and the dynamic coloring of the histogram bars based on various conditions. The incorporation of percentiles provides further insights into trend strength. This unique combination of features makes the indicator a powerful tool for traders seeking a deeper understanding of price action.
// Relevance for Technical Analysis and Trading
The "Bars since EMA touch" indicator can be utilized for various aspects of technical analysis, including trend continuation, trend reversal, and identifying potential entry and exit points. Here's how you can apply it in different scenarios:
Trend Continuation:
When the histogram bars show positive values (indicating bars since the price crossed above the EMA), it suggests the presence of an ongoing uptrend. Traders can use this information to confirm the strength of the prevailing trend. If the histogram bars remain positive and the trend continues to unfold, it signals a potential opportunity to stay in the trade or consider adding to existing positions.
Trend Reversal:
Conversely, when the histogram bars show negative values (indicating bars since the price crossed below the EMA), it indicates a potential trend reversal or the beginning of a downtrend. Traders can watch for the histogram bars to transition from positive to negative values, signaling a possible trend reversal. This information can be used as an early indication to exit long positions or consider initiating short positions.
Entry and Exit Points:
Traders can incorporate the "Bars since EMA touch" indicator with other technical analysis tools to identify optimal entry and exit points. For example, when the histogram bars are positive, indicating an ongoing uptrend, traders might consider entering long positions when the price retraces and touches the EMA. This strategy aims to capitalize on potential pullbacks within the overall upward trend.
Conversely, when the histogram bars are negative, indicating a potential downtrend, traders might wait for the price to rally and touch the EMA before considering short positions. This approach seeks to enter short positions during temporary bounces within the overall downward trend.
Confirmation with MACD:
The script also incorporates the MACD and its signal line. Traders can analyze the relationship between the MACD and the signal line to confirm trend signals provided by the histogram bars. When the MACD crosses above the signal line and the histogram bars are positive, it adds further strength to the bullish indication. Similarly, when the MACD crosses below the signal line and the histogram bars are negative, it reinforces the bearish signal.
Responsive Histogram Color Scheme:
The color change of the histogram in the "Bars since EMA touch" indicator is specifically designed to alert traders to potential trend weakness or a shift in market dynamics. When the histogram bars turn red (for uptrends) or green (for downtrends), it signifies a weakening trend as the price approaches or hovers around the EMA. This color change acts as a visual cue, indicating that the trend may be losing momentum or facing resistance. It prompts traders to exercise caution, reassess the market conditions, and consider adjusting their trading strategies accordingly, such as tightening stops, taking partial profits, or preparing for a potential trend reversal.
// Red and Green Horizontal Lines:
The plotted percentile values in the "Bars since EMA touch" indicator hold significant importance as they provide insights into the strength and duration of trends. The percentile lines represent the proportion of trend durations that exceed a certain threshold, which is set at 20% by default.
The "Bull 15% Percentile" plot indicates the percentage of bullish trends that have lasted longer than 20% of the entire trend history. A higher value suggests that a significant portion of bullish trends has surpassed the threshold, indicating the presence of relatively strong and sustained uptrends.
On the other hand, the "Bear 15% Percentile" plot represents the percentage of bearish trends that have persisted beyond 20% of the total bearish trend history. A higher value suggests that a notable proportion of bearish trends has extended beyond the threshold, signifying the presence of pronounced and enduring downtrends.
These percentile lines serve as valuable reference points for traders, as they highlight significant trend durations compared to the overall trend history. They offer insights into the relative strength and duration of the prevailing trends, enabling traders to assess the potential continuation or reversal of the current trend. Additionally, observing changes in the percentile values over time can provide further indications of shifts in market dynamics and trend strength.
By incorporating these percentile lines into their analysis, traders can gain a better understanding of the market's trend characteristics and make more informed trading decisions.
Remember, as with any technical analysis tool, it's essential to consider other factors such as support and resistance levels, volume patterns, and broader market conditions to increase the accuracy of your trading decisions. It's recommended to backtest and validate the indicator's performance before using it in live trading.
NOTE: The 9ema is plotted on the chart simply to visually show how, once contact is made, the histogram stops plotting new bars. This visualization is needed to confirm how the script works.
Directional ATROANDA:EURUSD
TLDR: A custom volatility indicator that combines Average True Range with candle direction.
The Directional ATR (DATR) is an indicator that enhances the traditional Average True Range (ATR) by incorporating the direction of the candle (bullish or bearish).
This indicator is designed to help traders identify trend strength, potential trend reversals, and market volatility.
Key Features:
Trend Confirmation: Positive and increasing DATR values suggest a bullish trend, while negative and decreasing values indicate a bearish trend. A higher absolute DATR value signifies a stronger trend.
Trend Reversal: A change in the direction of the DATR from positive to negative or vice versa may signal a potential trend reversal.
Volatility: Like the standard ATR, the DATR can be used to gauge market volatility, with larger absolute values indicating higher volatility and smaller values suggesting lower volatility.
Divergence: Divergence between the price and the DATR could signal a potential weakening of the trend and an upcoming reversal.
Overbought/Oversold Levels: Extreme DATR values can be used to identify overbought or oversold market conditions, signaling potential reversals or corrections.
Please note that the Directional ATR is just an indicator, and the interpretations provided are based on its underlying logic.
It is essential to combine the DATR with other technical analysis tools and test the indicator on historical data before using it in your trading strategy. Additionally, consider other factors such as risk management, and your own trading style.
Traders Dynamic Index(RSI) w/ Bull&Bear Control ZonesMomentum (RSI) is one of the most commonly used indicators for trading, but the vast majority of traders who use it, simply apply it as an oscillator to measure overbought and oversold conditions. However, momentum is much more complex than that and using a basic RSI fails to highlight these complexities.
What this highlights are some of the areas/zones that many people may not even know about or are unaware what the RSI can actually reveal about a particular trend.
What this indicator is showing:
Fast moving RSI (Green) - 1 period
Slow moving RSI (Red) - 9 period
Bollinger Bands
Relative Strength: 1 - 100
Bearish Control Zone: 30(Below) - 45
Bullish Control Zone: 60 - 70 (Above)
How this identifies trends:
Bear Market(Bearish Control Zone):
-Support: 20(Below) - 30
-Resistance: 55 - 65
-Momentum will test resistance but will fail to hold support at 50
Bull Market(Bullish Control Zone):
-Support: 45 - 50
-Resistance: 80 - 90(Above)
-Momentum will test support but will not continue past the 45 support
How this identifies reversals:
If a market is bullish, but loses support at 45 and tests 30, it has begun reversal. If a market is bearish, but breaks 60 and tests 70, it has begun reversal.
-A bull market reversal is confirmed if it finds resistance at 60 after testing bearish support
-A bear market reversal is confirmed if it finds support at 50 after testing bullish resistance
Slow & Fast RSI w/ Boll Bands:
-The Slow and Fast RSI crossovers will act as Intermediate trends within the Macro trend - Fast crosses slow, bullish. Slow cross fast, bearish.
-Use in confluence with the Macro trend.
-While under Bearish Control, the Slow RSI will act as resistance for the Fast RSI.
-While under Bullish Control, the Slow RSI will act as support for the Fast RSI.
-The two will have an impulsive crossover when the Macro trend reverses.
-The Bollinger Bands will act as a volatility gauge for potential approaching tests of Support & Resistances. (Expansions & Contractions)
This is an analog of TDIGM (GoldMinds)
-Added Bullish/Bearish Control Zones.
-Changed Fast RSI to Green and Slow RSI to Red.
Consecutive Close Tracker (CCT)Consecutive Close Tracker (CCT) Indicator
The Consecutive Close Tracker (CCT) is a powerful momentum and breakout detection tool designed to identify consecutive bullish and bearish closes, potential reversals, and breakout points. By tracking consecutive candle closes and plotting key levels, this indicator provides traders with visual cues to recognize trend continuations, reversals, and breakout opportunities effectively.
🔹 Key Features of CCT
1️⃣ Consecutive Move Lines (Green/Red/Yellow Lines)
Tracks three consecutive bullish or bearish closes.
If the fourth candle confirms the trend, a green line (bullish) or red line (bearish) is drawn.
If the fourth candle fails to confirm, a yellow line is drawn, signaling potential indecision.
Helps traders spot trend continuations and exhaustion points.
2️⃣ Reversal Detection Lines (Cyan & Light Red)
Identifies bullish and bearish reversals based on three higher/lower closes followed by a reversal.
A cyan line indicates a bullish reversal, while a light red line signals a bearish reversal.
Useful for traders looking for trend reversals and key turning points.
3️⃣ Breakout Line (Dynamic Resistance/Support Level)
Automatically calculates a breakout level based on the previous timeframe’s open and close.
Can be customized to use different timeframes (e.g., hourly, daily, weekly).
Acts as a dynamic resistance or support level, helping traders determine breakout opportunities.
🔍 How to Use the Indicator?
✅ 1. Spotting Trend Continuations with Consecutive Move Lines
Green Line: Three consecutive bullish closes followed by a fourth higher close.
🚀 Indicates strong buying pressure & potential uptrend continuation.
Red Line: Three consecutive bearish closes followed by a fourth lower close.
📉 Indicates strong selling pressure & potential downtrend continuation.
Yellow Line: Three consecutive closes, but the fourth candle fails to confirm.
⚠️ Signals possible indecision or trend exhaustion.
🔥 Best Strategy:
If a green line appears near support, consider long entries.
If a red line appears near resistance, consider short entries.
If a yellow line appears, wait for further confirmation before entering a trade.
✅ 2. Identifying Trend Reversals with Reversal Lines
Cyan Line: A bearish trend with three consecutive lower closes, followed by a bullish candle → Possible uptrend reversal.
Light Red Line: A bullish trend with three consecutive higher closes, followed by a bearish candle → Possible downtrend reversal.
🔥 Best Strategy:
If a cyan line appears near a major support level, look for long entry opportunities.
If a light red line appears near resistance, prepare for a potential short entry.
Use these lines in combination with candlestick patterns (e.g., bullish engulfing, pin bars) for confirmation.
✅ 3. Using the Breakout Line for Key Entry & Exit Points
The breakout line represents a key dynamic level (midpoint of the previous timeframe’s open & close).
If price breaks above the breakout line, it suggests bullish momentum → Consider long trades.
If price breaks below the breakout line, it suggests bearish momentum → Consider short trades.
🔥 Best Strategy:
Use the breakout line in combination with support & resistance levels.
When price approaches the breakout line, watch for confirmation candles before entering a trade.
The breakout line can also act as a stop-loss or take-profit level.
🎯 How to Utilize CCT Effectively?
✅ For Intraday Traders
Use the consecutive close tracker on a 5M or 15M chart to catch short-term trends.
Watch for reversal lines near major intraday support/resistance for quick scalping opportunities.
Use the breakout line from the hourly chart to identify potential trend shifts.
✅ For Swing Traders
Apply the indicator on 1H, 4H, or daily charts to track medium-term trends.
Look for green/red lines near key Fibonacci retracement or pivot levels.
Use reversal lines to detect early trend reversals before bigger moves occur.
✅ For Breakout Traders
Focus on the breakout line on higher timeframes (e.g., 1H, 4H, Daily) to identify strong momentum shifts.
If price crosses the breakout line with strong volume, enter trades with trend confirmation.
Place stop-loss just below the breakout level for controlled risk management.
🏆 Final Thoughts
The Consecutive Close Tracker (CCT) is a powerful momentum and reversal indicator that helps traders:
✅ Identify strong trend continuations (green/red lines).
✅ Detect early reversal points (cyan/light red lines).
✅ Use a dynamic breakout line for better trade entries & exits.
Whether you’re an intraday trader, swing trader, or breakout trader, this tool can enhance your market insights and improve your trading decisions. 📈🔥
🚀 Try it out, and integrate it with your strategy to maximize its potential! 🚀
Dynamic Trend & Levels by VikOpineThis indicator combines the best aspects of trend-following, volume and price action to help traders make informed decisions and can be used with other indicators for confluence. 🚀
Key Features and Concepts:
Volume-Weighted Moving Average (VWMA):
Unlike a simple moving average, the VWMA gives more weight to price action with higher volume, helping traders identify strong trends backed by significant market participation.
It helps distinguish between low-volume price fluctuations and meaningful market moves.
Volume-Weighted Average Price (VWAP):
Used by institutional traders, VWAP serves as a benchmark to gauge whether the current price is overbought or oversold relative to the average price weighted by volume.
The indicator tracks VWAP levels dynamically, offering insights into price reversion opportunities and breakout confirmations.
Fibonacci Levels (Dynamic Support & Resistance):
The script dynamically plots Fibonacci retracement and extension levels based on recent price swings, allowing traders to identify potential reversal and continuation zones. These levels change colors individually based on them becoming support or resistance.
Fibonacci levels help in setting stop-loss levels and profit targets based on natural market cycles.
Ichimoku Cloud (Trend Confirmation & Market Sentiment):
Provides a multi-dimensional view of trend strength, momentum, and potential reversals.
The Kumo (cloud) helps traders identify support and resistance zones, while the Tenkan-Sen and Kijun-Sen lines confirm trend direction. I prefer to remove the lines and only keep the clouds to anticipate upcoming trend.
How the Indicator Works:
The script dynamically calculates and overlays VWMA and VWAP to give a clear view of volume-backed trends.
Fibonacci levels are recalculated based on recent swing highs and lows, ensuring they remain relevant to current price action. This feature avoids to re-draw Fibs manually.
The Ichimoku Cloud adjusts in real-time to provide trend and momentum signals.
The session volume profile updates dynamically to highlight high-liquidity zones and potential breakout areas.
Alerts can be set up in Tradingview allowing traders to know the price action in real time.
How to Use This Indicator in Trading:
Trend Confirmation: Use VWMA, VWAP, and the Ichimoku Cloud to determine the prevailing trend and avoid trading against market momentum. Go with the trend.
Reversals: Look at the dynamic Fibonacci levels to find key support and resistance areas where price may reverse or consolidate. These levels change color as they become support or resistance.
Breakout & Continuation Trading: Monitor VWAP deviations and Ichimoku signals to identify strong trend continuation setups.
Mean Reversion: Use VWAP re-tests to spot potential pullback entries in established trends.
Alerts: Customize alerts to stay ahead of market moves.
Take advantage of paper trading feature available in Tradingview to familiarize yourself with this indicator. Experience is the best teacher as in any other case.
Ideal for:
✅ Traders looking to capitalize on VWAP trend and level.
✅ Traders utilizing Fibonacci levels and Ichimoku trends for structured trades.
✅ Scalpers leveraging levels and trends for quick entries/exits.
✅ Traders who rely on volume-backed trend confirmations.
No indicator is perfect so take everything with a pinch of salt.
Drop a comment below with your feedback or if you have any question.
3 Period EMA Cloud [deepakks444]3 Period EMA Cloud Indicator
The 3EMA Cloud Indicator uses three key EMAs to capture trends and display the market's direction through a color-coded cloud. The EMAs used in this indicator are:
High EMA: The EMA of the high prices over a specified period.
Low EMA: The EMA of the low prices over a specified period.
Additional EMA: An extra EMA, typically based on the close prices, that serves as an independent confirmation tool for trend direction.
Indicator Logic and Cloud Visualization:
The cloud is drawn between the high EMA and the low EMA, and its color changes based on the price's relationship to the high EMA, low EMA, and additional EMA.
Cloud Color:
Green Cloud: When the price is above both the high EMA and the low EMA, it signals a bullish trend, and the cloud turns green.
Additionally, if the close price is above the Additional EMA, this further confirms the bullish trend.
Red Cloud: When the price is below both the high EMA and the low EMA, it signals a bearish trend, and the cloud turns red.
Additionally, if the close price is below the Additional EMA, this further confirms the bearish trend.
How the Indicator Captures Trends:
Bullish Market:
Price above both high EMA and low EMA: This indicates that the market is in an uptrend, and the cloud will turn green.
Confirmation with Additional EMA: When the close price is above the Additional EMA, this reinforces the bullish market sentiment.
The green cloud is the visual confirmation of a bullish trend, guiding traders to consider long positions.
Bearish Market:
Price below both high EMA and low EMA: This indicates that the market is in a downtrend, and the cloud will turn red.
Confirmation with Additional EMA: When the close price is below the Additional EMA, this confirms the bearish trend.
The red cloud is the visual confirmation of a bearish trend, guiding traders to consider short positions.
Key Components:
High EMA: Calculates the EMA based on high prices, which helps to determine the upper boundary of the cloud.
Low EMA: Calculates the EMA based on low prices, which helps to determine the lower boundary of the cloud.
Additional EMA: An extra EMA (often of the close prices) that acts as an independent trend confirmation. This is used to validate the market direction and filter out potential false signals.
Use Cases for the 3EMA Cloud:
Trend Identification:
The cloud helps to visually identify the prevailing trend. A green cloud suggests a bullish trend, while a red cloud indicates a bearish trend.
Confirmation Tool:
The Additional EMA serves as an additional confirmation tool. A close price above the Additional EMA signals a strong bullish trend, while a close below it signals a strong bearish trend.
Market Reversals:
When the price moves from above both the high EMA and low EMA to below them (or vice versa), this could indicate a trend reversal. Pay attention to cloud color changes and the movement of the close price relative to the Additional EMA for potential reversal signals.
Entry and Exit Signals:
Long Entry (Buy Signal):
Price is above both the high EMA and low EMA, confirming a bullish trend.
Close price is above the Additional EMA, confirming the bullish trend.
Enter a long position when the cloud turns green and the confirmation by the Additional EMA is in place.
Short Entry (Sell Signal):
Price is below both the high EMA and low EMA, confirming a bearish trend.
Close price is below the Additional EMA, confirming the bearish trend.
Enter a short position when the cloud turns red and the confirmation by the Additional EMA is in place.
Exit Signal:
Exit Long Position when the price moves below both the high EMA and low EMA (signaling a potential trend reversal), or if the close price falls below the Additional EMA.
Exit Short Position when the price moves above both the high EMA and low EMA (signaling a potential trend reversal), or if the close price rises above the Additional EMA.
How This Indicator Improves Trend Following:
The 3EMA Cloud indicator enhances trend-following strategies by:
Visual Clarity: The color-coded cloud provides immediate visual feedback on whether the market is in a bullish or bearish phase.
Price Confirmation: The indicator uses the relationship of price to three EMAs (high, low, and additional) to confirm trend strength, which can help reduce false signals.
Flexibility: The Additional EMA adds flexibility by serving as an independent confirmation tool for trend direction, ensuring that you don’t enter trades based on weak or choppy market conditions.
This 3EMA Cloud indicator is designed to help traders follow and confirm trends with precision, improving their ability to identify strong market movements and avoid getting caught in sideways or choppy conditions. It provides a clear visual cue for potential buy and sell opportunities based on price relative to multiple EMAs, ensuring that trend-following strategies are robust and effective.
Disclaimer:
This script and its associated indicators are for educational purposes only. The information provided does not constitute financial advice or a recommendation to buy or sell any financial instruments. Users are advised to conduct their own research and consult with a professional financial advisor before making any trading decisions. Trading and investing involve risk, and users should be aware of the risks involved in financial markets.