Customizable Days Range HighlighterThis Pine Script highlights ranges where consecutive green candles (bullish candles) form a price move within a specified percentage range.
It draws a visual box to represent this move, with the ability to customize both the percentage range and the number of consecutive green candles required to trigger the highlight.
The script calculates the range based on the low to close of the candles, allowing you to focus on the body of the candle (excluding wicks).
Key Features:
Customizable Percentage Range: Set a range (from and to) for the percentage price move between the lowest low and the close of the candle. This enables you to target specific price moves based on your trading strategy.
Consecutive Green Candle Range: Highlight moves only after a specific number of consecutive green candles. You can define the minimum and maximum number of green candles (days) that must be present for the range to be considered valid.
Wick Option: Choose whether to include wicks in the price move calculation or focus purely on the low to close of each green candle (body of the candle).
Visual Highlights: When a valid range is identified, the script draws a green box around the price move and labels it with the calculated percentage move. This helps you visually spot significant bullish price moves.
Parameters:
Percentage Move From: Minimum percentage move between the low and close of the candle for the range to be highlighted.
Percentage Move To: Maximum percentage move for the range to be considered valid.
Minimum and Maximum Green Candles: Set the minimum and maximum number of consecutive green candles (bullish candles) to trigger the range highlight.
Include Wicks: Choose whether to include the candle wicks in the percentage calculation or focus on the body (low to close).
How It Works:
The script tracks consecutive green candles and calculates the range from the low to close of each green candle.
When a valid range is found, where the price move falls within the defined percentage range and the consecutive green candles are within the specified days range, a box is drawn around the price move.
A label is also placed on the chart, showing the percentage move, to help you quickly identify potentially significant price movements.
This tool is ideal for traders who are looking for specific bullish moves over a series of green candles and want to visually identify those opportunities based on price movement and percentage change.
Penunjuk dan strategi
ManipulationLegHelperLibraryLibrary "ManipulationLegHelperLibrary"
TODO: add library description here
devToArray(dev)
Parameters:
dev (string)
getDev(d, bull, h, l)
Parameters:
d (float)
bull (bool)
h (float)
l (float)
getBearLeg(sweeps, minLegSize, drawLegBox, boxColor)
Parameters:
sweeps (int)
minLegSize (float)
drawLegBox (bool)
boxColor (color)
getBullLeg(sweeps, minSize, drawBox, boxColor)
Parameters:
sweeps (int)
minSize (float)
drawBox (bool)
boxColor (color)
leg
Fields:
time (series int)
low (series float)
high (series float)
edge (series bool)
edge_price (series float)
validated (series int)
sweeps (series int)
barC (series int)
bx (series box)
EMAs MTF (Miu)This indicator plots multiple EMA (Exponential Moving Average) on chart.
You can set up to 3 different EMA for the current timeframe and you can add up to 3 more different EMA with a different timeframe. So you can have up to 6 EMAs on your chart.
This way you can easily see multiple EMA lines with a single indicator to setup.
Indicator will automaticaly plot labels with symbol's price, timeframe and which EMA is set for easy identification.
You can also set an alert that will trigger anytime current price crosses any active EMA.
Alerts will provide detailed information such as:
1) Symbol
2) Which EMA and timeframe that has been crossed
3) Current symbol price
Feel free to give feedbacks on comments section below. Suggestions are welcome.
Enjoy!
Trend Stability Index (TSI)Overview
The Trend Stability Index (TSI) is a technical analysis tool designed to evaluate the stability of a market trend by analyzing both price movements and trading volume. By combining these two crucial elements, the TSI provides traders with insights into the strength and reliability of ongoing trends, assisting in making informed trading decisions.
Key Features
• Dual Analysis: Integrates price changes and volume fluctuations to assess trend stability.
• Customizable Periods: Allows users to set evaluation periods for both trend and volume based on their trading preferences.
• Visual Indicators: Displays the Trend Stability Index as a line chart, highlights neutral zones, and uses background colors to indicate trend stability or instability.
Configuration Settings
1. Trend Length (trendLength)
• Description: Determines the number of periods over which the price stability is evaluated.
• Default Value: 15
• Usage: A longer trend length smooths out short-term volatility, providing a clearer picture of the overarching trend.
2. Volume Length (volumeLength)
• Description: Sets the number of periods over which trading volume changes are assessed.
• Default Value: 15
• Usage: Adjusting the volume length helps in capturing significant volume movements that may influence trend strength.
Calculation Methodology
The Trend Stability Index is calculated through a series of steps that analyze both price and volume changes:
1. Price Change Rate (priceChange)
• Calculation: Utilizes the Rate of Change (ROC) function on the closing prices over the specified trendLength.
• Purpose: Measures the percentage change in price over the trend evaluation period, indicating the direction and momentum of the price movement.
2. Volume Change Rate (volumeChange)
• Calculation: Applies the Rate of Change (ROC) function to the trading volume over the specified volumeLength.
• Purpose: Assesses the percentage change in trading volume, providing insight into the conviction behind price movements.
3. Trend Stability (trendStability)
• Calculation: Multiplies priceChange by volumeChange.
• Purpose: Combines price and volume changes to gauge the overall stability of the trend. A higher positive value suggests a strong and stable trend, while negative values may indicate trend weakness or reversal.
4. Trend Stability Index (TSI)
• Calculation: Applies a Simple Moving Average (SMA) to the trendStability over the trendLength period.
• Purpose: Smooths the trend stability data to create a more consistent and interpretable index.
Trend/Ranging Determination
• Stable Trend (isStable)
• Condition: When the TSI value is greater than 0.
• Interpretation: Indicates that the current trend is stable and likely to continue in its direction.
• Unstable Trend / Range-bound Market
• Condition: When the TSI value is less than or equal to 0.
• Interpretation: Suggests that the trend may be weakening, reversing, or that the market is moving sideways without a clear direction.
Visualization
The TSI indicator employs several visual elements to convey information effectively:
1. TSI Line
• Representation: Plotted as a blue line.
• Purpose: Displays the Trend Stability Index values over time, allowing traders to observe trend stability dynamics.
2. Neutral Horizontal Line
• Representation: A gray horizontal line at the 0 level.
• Purpose: Serves as a reference point to distinguish between stable and unstable trends.
3. Background Color
• Stable Trend: Green background with 80% transparency when isStable is true.
• Unstable Trend: Red background with 80% transparency when isStable is false.
• Purpose: Provides an immediate visual cue about the current trend’s stability, enhancing the interpretability of the indicator.
Usage Guidelines
• Identifying Trend Strength: Utilize the TSI to confirm the strength of existing trends. A consistently positive TSI suggests strong trend momentum, while a negative TSI may signal caution or a potential reversal.
• Volume Confirmation: The integration of volume changes helps in validating price movements. Significant price changes accompanied by corresponding volume shifts can reinforce the reliability of the trend.
• Entry and Exit Signals: Traders can use crossovers of the TSI with the neutral line (0 level) as potential entry or exit points. For instance, a crossover from below to above 0 may indicate a bullish trend initiation, while a crossover from above to below 0 could suggest bearish momentum.
• Combining with Other Indicators: To enhance trading strategies, consider using the TSI in conjunction with other technical indicators such as Moving Averages, RSI, or MACD for comprehensive market analysis.
Example Scenario
Imagine analyzing a stock with the following observations using the TSI:
• The TSI has been consistently above 0 for the past 30 periods, accompanied by increasing trading volume. This scenario indicates a strong and stable uptrend, suggesting that buying opportunities may be favorable.
• Conversely, if the TSI drops below 0 while the price remains relatively flat and volume decreases, it may imply that the current trend is losing momentum, and the market could be entering a consolidation phase or preparing for a trend reversal.
Conclusion
The Trend Stability Index is a valuable tool for traders seeking to assess the reliability and strength of market trends by integrating price and volume dynamics. Its customizable settings and clear visual indicators make it adaptable to various trading styles and market conditions. By incorporating the TSI into your trading analysis, you can enhance your ability to identify and act upon stable and profitable trends.
Momentum BBPCT Z-Score [QuantAlgo]Momentum BBPCT Z-Score 💫📈
The Momentum BBPCT Z-Score by QuantAlgo is an advanced indicator designed to identify statistical extremes and momentum shifts in price action across various timeframes and market conditions. This system combines Bollinger Bands percentage analysis with Z-score calculations and Statistical Momentum evaluation to help traders and investors identify overbought/oversold conditions and trend strength. By evaluating both statistical extremes and momentum together, this tool empowers users to make data-driven decisions, whether they aim to follow trends or capture mean reversion opportunities.
💫 Conceptual Foundation and Innovation
The Momentum BBPCT Z-Score by QuantAlgo provides a unique framework for assessing price action and momentum through a blend of statistical analysis and momentum evaluation. Unlike traditional Bollinger Band indicators that only reflect price position, this system incorporates Z-score normalization to reveal statistically significant deviations, helping users determine whether price movements are extreme relative to historical norms. By combining high-quality momentum analysis with Z-scores of Bollinger Band positioning, it evaluates both statistical probabilities and momentum quality, while Z-scores standardize deviations from historical trends, enabling traders and investors to spot extreme conditions. This dual approach allows users to better identify mean reversion opportunities while respecting strong momentum conditions, enhancing both counter-trend and trend-following strategies.
📊 Technical Composition and Calculation
The Momentum BBPCT Z-Score is composed of several statistical and momentum components that create a dynamic dual scoring model:
Bollinger Bands Percentage (BBPCT) : Measures the relative position of price between bands on a 0-100 scale, providing a normalized view of price extremes relative to the bands.
Z-Score Normalization : Applies statistical normalization to BBPCT values to identify significant deviations from historical means, helping traders and investors quantify the extremity of current market conditions.
Statistical Momentum Analysis : Evaluates price action across multiple periods to determine momentum strength and persistence, adding depth to the analysis beyond simple price positioning.
📈 Key Indicators and Features
The Momentum BBPCT Z-Score combines various statistical and technical tools to deliver a well-rounded analysis of market conditions.
The indicator utilizes dynamic Bollinger Bands with customizable length and standard deviation multipliers to adapt to market volatility. Z-score calculations are applied to normalize the percentage position within these bands, providing clear statistical context for price movements. The Statistical Momentum component evaluates price action across user-defined periods, helping validate trends and identify potential reversals.
The indicator also incorporates multi-layered visualization with gradient color coding to signal both statistical extremes and momentum conditions. These adaptive visual cues, combined with threshold-based alerts for overbought and oversold zones, help traders and investors track both statistical extremes and momentum shifts, adding reliability to both mean-reversion and trend-following strategies.
⚡️ Practical Applications and Examples
✅ Add the Indicator: Add the indicator to your TradingView chart by clicking on the star icon to add it to your favorites ⭐️
👀 Monitor Z-Scores and Momentum: Watch the Z-score values and momentum state to identify statistically significant price movements. During extreme readings, consider mean reversion opportunities, while strong momentum readings may signal trend-following opportunities.
🔔 Set Alerts: Configure alerts for Z-score extremes and momentum shifts, ensuring you can act on significant statistical and trend changes promptly.
🌟 Summary
The Momentum BBPCT Z-Score by QuantAlgo is a highly adaptable tool, designed to support both statistical and momentum analysis across different market environments. By combining Z-score normalized Bollinger Band positioning with Statistical Momentum Analysis, it helps traders and investors identify statistically significant price movements while measuring momentum quality, providing more reliable trading signals. The tool's flexibility across timeframes makes it ideal for both mean reversion and trend-following strategies, allowing users to capture opportunities while maintaining statistical rigor in their analysis.
MktCumTickThis script is a market sentiment indicator that calculates the cumulative TICK (Trade Imbalance Sentiment) for four major markets: NYSE (New York Stock Exchange), NASDAQ (National Association of Securities Dealers Automated Quotations), Dow Jones, and AMEX (American Stock Exchange).
Here's a breakdown of the script:
1. Market data requests: The script requests data for the four markets, including:
- TICK (Trade Imbalance Sentiment) data
- HLC3 (High, Low, Close) data
- ADVN (Advancing issues), DECL (Declining issues), and UNCH (Unchanged issues) data
2. Cumulative TICK calculation: The script calculates the cumulative TICK for each market by dividing the TICK data by the maximum TICK value for each market.
3. Plotting: The script plots the cumulative TICK values for each market as separate lines on the chart.
4. Background color: The script changes the background color of the chart based on the cumulative TICK values. If all four markets have decreasing cumulative TICK values, the background color turns red. If all four markets have increasing cumulative TICK values, the background color turns green.
The purpose of this indicator is to provide a visual representation of market sentiment across multiple markets. By analyzing the cumulative TICK values, traders can gain insights into market trends and make more informed trading decisions.
Some possible uses of this indicator include:
- Identifying market trends and sentiment
- Confirming trade entries and exits
- Monitoring market conditions and adjusting trading strategies accordingly
Top-Down Trend and Key Levels with Swing Points//by antaryaami0
Overview
The “Top-Down Trend and Key Levels with Swing Points” indicator is a comprehensive tool designed to enhance your technical analysis by integrating multiple trading concepts into a single, easy-to-use script. It combines higher timeframe trend analysis, key price levels, swing point detection, and ranging market identification to provide a holistic view of market conditions. This indicator is particularly useful for traders who employ multi-timeframe analysis, support and resistance levels, and price action strategies.
Key Features
1. Higher Timeframe Trend Background Shading:
• Purpose: Identifies the prevailing trend on a higher timeframe to align lower timeframe trading decisions with the broader market direction.
• How it Works: The indicator compares the current higher timeframe close with the previous one to determine if the trend is up, down, or ranging.
• Customization:
• Trend Timeframe: Set your preferred higher timeframe (e.g., Daily, Weekly).
• Up Trend Color & Down Trend Color: Customize the background colors for uptrends and downtrends.
• Ranging Market Color: A separate color to indicate when the market is moving sideways.
2. Key Price Levels:
• Previous Day High (PDH) and Low (PDL):
• Purpose: Identifies key support and resistance levels from the previous trading day.
• Visualization: Plots horizontal lines at PDH and PDL with labels.
• Customization: Option to show or hide these levels and customize their colors.
• Pre-Market High (PMH) and Low (PML):
• Purpose: Highlights the price range during the pre-market session, which can indicate potential breakout levels.
• Visualization: Plots horizontal lines at PMH and PML with labels.
• Customization: Option to show or hide these levels and customize their colors.
3. First 5-Minute Marker (F5H/F5L):
• Purpose: Marks the high or low of the first 5 minutes after the market opens, which is significant for intraday momentum.
• How it Works:
• If the first 5-minute high is above the Pre-Market High (PMH), an “F5H” label is placed at the first 5-minute high.
• If the first 5-minute high is below the PMH, an “F5L” label is placed at the first 5-minute low.
• Visualization: Labels are placed at the 9:35 AM candle (closing of the first 5 minutes), colored in purple by default.
• Customization: Option to show or hide the marker and adjust the marker color.
4. Swing Points Detection:
• Purpose: Identifies significant pivot points in price action to help recognize trends and reversals.
• How it Works: Uses left and right bars to detect pivot highs and lows, then determines if they are Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), or Lower Lows (LL).
• Visualization: Plots small markers (circles) with labels (HH, LH, HL, LL) at the corresponding swing points.
• Customization: Adjust the number of left and right bars for pivot detection and the size of the markers.
5. Ranging Market Detection:
• Purpose: Identifies periods when the market is consolidating (moving sideways) within a defined price range.
• How it Works: Calculates the highest high and lowest low over a specified period and determines if the price range is within a set percentage threshold.
• Visualization: Draws a gray box around the price action during the ranging period and labels the high and low prices at the end of the range.
• Customization: Adjust the range detection period and threshold, as well as the box color.
6. Trend Coloring on Chart:
• Purpose: Provides a visual cue for the short-term trend based on a moving average.
• How it Works: Colors the candles green if the price is above the moving average and red if below.
• Customization: Set the moving average length and customize the uptrend and downtrend colors.
How to Use the Indicator
1. Adding the Indicator to Your Chart:
• Copy the Pine Script code provided and paste it into the Pine Script Editor on TradingView.
• Click “Add to Chart” to apply the indicator.
2. Configuring Inputs and Settings:
• Access Inputs:
• Click on the gear icon next to the indicator’s name on your chart to open the settings.
• Customize Key Levels:
• Show Pre-Market High/Low: Toggle on/off.
• Show Previous Day High/Low: Toggle on/off.
• Show First 5-Minute Marker: Toggle on/off.
• Set Trend Parameters:
• Trend Timeframe for Background: Choose the higher timeframe for trend analysis.
• Moving Average Length for Bar Color: Set the period for the moving average used in bar coloring.
• Adjust Ranging Market Detection:
• Range Detection Period: Specify the number of bars to consider for range detection.
• Range Threshold (%): Set the maximum percentage range for the market to be considered ranging.
• Customize Visuals:
• Colors: Adjust colors for trends, levels, markers, and ranging market boxes.
• Label Font Size: Choose the size of labels displayed on the chart.
• Level Line Width: Set the thickness of the lines for key levels.
3. Interpreting the Indicator:
• Background Shading:
• Green Shade: Higher timeframe is in an uptrend.
• Red Shade: Higher timeframe is in a downtrend.
• Gray Box: Market is ranging (sideways movement).
• Key Levels and Markers:
• PDH and PDL Lines: Represent resistance and support from the previous day.
• PMH and PML Lines: Indicate potential breakout levels based on pre-market activity.
• F5H/F5L Labels: Early indication of intraday momentum after market open.
• Swing Point Markers:
• HH (Higher High): Suggests bullish momentum.
• LH (Lower High): May indicate a potential bearish reversal.
• HL (Higher Low): Supports bullish continuation.
• LL (Lower Low): Indicates bearish momentum.
• Ranging Market Box:
• Gray Box Around Price Action: Highlights consolidation periods where breakouts may occur.
• Range High and Low Labels: Provide the upper and lower bounds of the consolidation zone.
4. Applying the Indicator to Your Trading Strategy:
• Trend Alignment:
• Use the higher timeframe trend shading to align your trades with the broader market direction.
• Key Levels Trading:
• Watch for price reactions at PDH, PDL, PMH, and PML for potential entry and exit points.
• Swing Points Analysis:
• Identify trend continuations or reversals by observing the sequence of HH, HL, LH, and LL.
• Ranging Market Strategies:
• During ranging periods, consider range-bound trading strategies or prepare for breakout trades when the price exits the range.
• Intraday Momentum:
• Use the F5H/F5L marker to gauge early market sentiment and potential intraday trends.
Practical Tips
• Adjust Settings to Your Trading Style:
• Tailor the indicator’s inputs to match your preferred timeframes and trading instruments.
• Combine with Other Indicators:
• Use in conjunction with volume indicators, oscillators, or other technical tools for additional confirmation.
• Backtesting:
• Apply the indicator to historical data to observe how it performs and refine your settings accordingly.
• Stay Updated on Market Conditions:
• Be aware of news events or economic releases that may impact market behavior and the effectiveness of technical levels.
Customization Options
• Time Zone Adjustment:
• The script uses “America/New_York” time zone by default. Adjust the timezone variable in the script if your chart operates in a different time zone.
var timezone = "Your/Timezone"
• Session Times:
• Modify the Regular Trading Session and Pre-Market Session times in the indicator settings to align with the trading hours of different markets or exchanges.
• Visual Preferences:
• Colors: Personalize the indicator’s colors to suit your visual preferences or to enhance visibility.
• Label Sizes: Adjust label sizes if you find them too intrusive or not prominent enough.
• Marker Sizes: Further reduce or enlarge the swing point markers by modifying the swing_marker_size variable.
Understanding the Indicator’s Logic
1. Higher Timeframe Trend Analysis:
• The indicator retrieves the closing prices of a higher timeframe using the request.security() function.
• It compares the current higher timeframe close with the previous one to determine the trend direction.
2. Key Level Calculation:
• Previous Day High/Low: Calculated by tracking the highest and lowest prices of the previous trading day.
• Pre-Market High/Low: Calculated by monitoring price action during the pre-market session.
3. First 5-Minute Marker Logic:
• At 9:35 AM (end of the first 5 minutes after market open), the indicator evaluates whether the first 5-minute high is above or below the PMH.
• It then places the appropriate label (F5H or F5L) on the chart.
4. Swing Points Detection:
• The script uses ta.pivothigh() and ta.pivotlow() functions to detect pivot points.
• It then determines the type of swing point based on comparisons with previous swings.
5. Ranging Market Detection:
• The indicator looks back over a specified number of bars to find the highest high and lowest low.
• It calculates the percentage difference between these two points.
• If the difference is below the set threshold, the market is considered to be ranging, and a box is drawn around the price action.
Limitations and Considerations
• Indicator Limitations:
• Maximum Boxes and Labels: Due to Pine Script limitations, there is a maximum number of boxes and labels that can be displayed simultaneously.
• Performance Impact: Adding multiple visual elements (boxes, labels, markers) can affect the performance of the script on lower-end devices or with large amounts of data.
• Market Conditions:
• False Signals: Like any technical tool, the indicator may produce false signals, especially during volatile or erratic market conditions.
• Not a Standalone Solution: This indicator should be used as part of a comprehensive trading strategy, including risk management and other forms of analysis.
Conclusion
The “Top-Down Trend and Key Levels with Swing Points” indicator is a versatile tool that integrates essential aspects of technical analysis into one script. By providing insights into higher timeframe trends, highlighting key price levels, detecting swing points, and identifying ranging markets, it equips traders with valuable information to make more informed trading decisions. Whether you are a day trader looking for intraday opportunities or a swing trader aiming to align with the broader trend, this indicator can enhance your chart analysis and trading strategy.
Disclaimer
Trading involves significant risk, and it’s important to understand that past performance is not indicative of future results. This indicator is a tool to assist in analysis and should not be solely relied upon for making trading decisions. Always conduct thorough research and consider seeking advice from financial professionals before engaging in trading activities.
Volume Spike LevelsThis trading indicator finds specific high volume patterns that we have found to be the most likely to act as strong support and resistance levels and plots them on the chart. Using those high probability levels, the indicator will show lines in real time, as well as lines and important zones at the beginning of higher time frames to give you specific levels and areas where price is likely to react.
The most important volume zone for each time frame will have a color fill between the top and bottom lines of that high probability zone so you know to pay extra close attention to that area and look for price reactions there. If you can be patient enough to wait for price to hit these important areas and start to reverse, you will get great entries and help keep yourself from overtrading.
The levels shown can be adjusted to suit your preference, allowing you to get the right amount of levels for your trading strategy, whether that be scalping the 1 minute chart or long term investing via the daily chart.
HOW TO USE
For best results with this indicator, look for 2 types of setups. The first setup is a continuation bounce. You should be looking for these when price has broken out of its recent trading range either to the upside or the downside. When price is extending like this, look to take entries once a volume spike level shows up on the chart and price retraces back to that level. Then take your entry in the same direction as the trend. You can scalp quick wins this way, or you can wait for the next volume spike level to show up and price can’t hold that level any more, then get out. Place your stop loss just beyond the pivot that bounced off of the volume level.
The second type of setup you should look for is a reversal setup. This setup should be used when the market is ranging. Look for the top and bottom of the recent range and find the volume spike levels near the top or bottom of that range and wait for price to reach those levels. Once price hits that level and starts to show a reversal in price, take your entry. You can take quick scalps from those reversals for quick wins, or you can wait for price to reach the next major volume spike level and get out there or just before it. Place your stop loss just beyond the pivot that price made at the volume spike level where you entered your trade.
No matter which setup you are trading, it is never a bad idea to trail your stop loss as price moves towards your take profit level. Whatever volume spike timeframes you are using for your overall trend, you can use a lower time frame volume spike level to give you price points to trail your stop loss to there once price gets supportive at those levels and moves past them.
You should also pay close attention to how price reacts to the important volume zones shown. Many times, price will range inside or near these zones for a while and then form an accumulation just above or below that zone. When this happens, it is likely that price will start to move quickly in the direction that price moved away from that important zone. So when you see the price range inside of these zones and then go just beyond the zone on either side and accumulate, look to trade that breakout of the zone in the same direction that it moved away from the zone.
Note that on lower time frame charts, you will not be able to get some higher time frame levels because Tradingview limits the number of historical bars it can calculate on. So if you are on the 1-5 minute chart, you won’t be able to get yearly or quarterly levels late in the year/quarter due to the number of bars it has to calculate for those levels to populate is beyond the number of allowed bars. You can work around this by manually going to the daily chart and getting the yearly levels and drawing a horizontal line on your chart at the levels shown so that you still have those levels on your lower time frame charts. Unfortunately there is no way for us to work around this with code.
Each setting in the settings panel has a tooltip that will explain that specific setting so you understand how to use it. Just hover your mouse over the “i” icon and it will show a popup with the info. For the non-real time levels, the daily level settings will have the tooltips explaining everything and that info applies to all of the non-real time levels.
MODES
The indicator has two different modes you can use that will affect how the real time levels show up on your chart but will not affect the higher time frame levels. The default mode will give you static horizontal lines only. This means that when a high probability volume spike level comes in, a horizontal line will be drawn and will extend as long as the timeframe that the level is set to. For example a 60 minute volume spike time frame will extend the line for 60 minutes on the chart and then end. These lines will be drawn individually and will not update.
The second mode will give you variable lines and will show a color fill based on where price is in relation to all of the real time levels that are turned on. So if the price is above a level, it will color the background green and if the price is below a level, it will color the background red. This helps identify the trend of price compared to where the high probability volume spike levels came in so you can trade in the direction of the trend. With this mode, the lines for each time frame will update to the new level when a new volume spike for that time frame happens.
ALERTS
The indicator has alerts programmed for each different type of volume spike level that is available to add to your chart. So you can set an alert for when a new volume spike happens on any of the real time volume spike time frames, when price crosses the most recent real time volume spike level for each time frame, alert when any real time volume spike happens, alert when price crosses any of the higher time frame volume levels and also when price has crossed the upper or lower level of any of the important volume zones. Each alert is labeled the same as in the indicator settings so you can easily select which one you want.
For alerts to work properly, you have to have the levels turned on for whatever alerts you use. For example if you want an alert for Realtime 2 Volume Spikes, the Realtime 2 Volume Spike Levels must be turned on and shown on your chart.
Note that when using the alerts for price crossing a level, it will only alert when price crosses the most recent volume spike level. It will not alert when price crosses a previous level of the same time frame.
CUSTOMIZATION
You can customize nearly every feature of this indicator to tailor it to your specific trading style. Some of the customizable features are as follows: turn on or off labels for each time frame, turn on or off the color fills for important volume zones for each time frame, turn on or off the levels for each time frame, adjust the number of previous levels shown for each time frame, change the length of the lines for each time frame, extend the lines right for each time frame, change the color of the lines for each time frame, adjust the color fill colors for important volume zones, adjust the label colors and adjust the label offset length.
We also included some master settings to allow you to control various settings across all time frames with one click. These settings are as follows: turn on or off all labels, turn on or off all realtime levels, remove all lines except the most important volume zone on every time frame, turn on or off all color fills of important zones, adjust the background color fill of the trend coloring when set to variable lines and adjust the background color of all important zones.
There is also a feature that may need to be adjusted when you are looking at charts that do not have a lot of historical data. It will say the index is out of bounds, so look at the index number that the error shows by hovering over the red exclamation point next to the indicator name and adjust the setting labeled “Bar Index Threshold To Fix Errors” to a number that is slightly higher than the index number in the error message. This will fix the error by changing the calculations slightly to adjust for the bar indexes of that specific chart.
MARKETS IT CAN BE USED ON
This indicator can be used on any market that has volume data, including stocks, crypto, futures, forex and more.
TIME FRAMES IT CAN BE USED ON
This indicator has been programmed to work on the following time frames: 15 seconds, 30 seconds, 1 minute, 2 minute, 3 minute, 4 minute, 5 minute, 10 minute, 15 minute, 30 minute, 45 minute, 1 hour, 2 hour, 3 hour, 4 hour, 6 hour, 8 hour, 12 hour, 1 day, 2 day, 3 day, 1 week, 2 week, 1 month, 3 month and 1 year.
If you use a different time frame than shown above, you may get errors or irregular results, so please stick to the time frames that the trading indicator has been programmed to work correctly with.
Daily High/Low Levels with mitigationThis Pine Script script defines a TradingView indicator named "Daily High/Low Levels" designed to track and display the daily high and low levels of a trading session, with added functionality for marking levels as mitigated when certain conditions are met. Here's a breakdown of its functionality:
Key Features
Session Start Time: The script allows you to specify a custom session start time in 24-hour format. This ensures the levels align with your trading session preferences.
Daily Highs and Lows:
Tracks the high and low levels for each session.
Retains the highs and lows for a configurable number of previous days.
Visualization:
Creates horizontal lines for each session's high and low levels.
Supports customization of line colors and styles.
Mitigation Tracking:
Monitors whether a high or low level has been "mitigated" (touched or exceeded by subsequent price action).
Changes the line style and color to indicate mitigation.
Provides an alert when mitigation occurs.
Configurable Extensions:
Lines can be extended beyond mitigation or stopped at the bar index where mitigation occurs, depending on user preference.
Efficient Array Management:
Uses arrays to manage daily highs, lows, their respective indices, and lines.
Ensures the size of stored data does not exceed the configured limit (daysToTrack).
Alerts:
Sends alerts when high or low levels are mitigated, which can be used for trading decisions.
Inputs
Session Start Hour/Minute: Defines when a new session starts.
Days to Track: Sets the number of previous days to display high/low levels.
Colors: Allows customization of line colors for unmitigated and mitigated levels.
Extend Lines: Toggles whether lines should extend past the mitigation point.
Code Highlights
New Session Detection: The script detects the start of a new session based on the configured session start time and resets daily highs/lows.
Line Management: Horizontal rays are created for highs and lows, and mitigated lines are updated with a dashed style and faded color.
Mitigation Logic: The script checks whether current price action exceeds stored high or low levels and updates their status and appearance accordingly.
Memory Management: Ensures the size of the arrays (highs, lows, lines) does not exceed the configured daysToTrack, deleting the oldest elements as necessary.
This indicator is highly customizable and useful for traders who want to track and analyze daily support and resistance levels, incorporating mitigation as a dynamic feature.
Icaro [VekiSeba]
Icaro Indicator: Monitoring Price Extensions
Overview
The Icarus Indicator is a tool designed to help traders identify critical points in the price movements of financial assets. Inspired by the Greek myth of Icarus , this indicator alerts on potential exhaustions in bullish movements or significant price extensions. It is ideal for traders looking to optimize profitability and make strategic decisions on when to exit a position, thereby minimizing the risk of dramatic price reversals.
How the Indicator Works: The Icarus Indicator combines various volatility and trend metrics to provide signals:
ATR (Average True Range): Measures the asset’s volatility, providing insight into the intensity of price movements. This component is crucial for understanding the strength behind the asset’s fluctuations.
Gain from Average Trend: This metric calculates how much the current price has deviated from an average trend line. It helps identify how extended or overvalued the price might be in relation to its overall trend.
ATR Acceleration: Assesses how the pace of volatility change compares to its recent average, indicating rapid changes in volatility that might suggest an increase in momentum or an early warning of overextension.
Visual Signals:
Wing Momentum (Purple Cross): Indicates a significant increase in volatility acceleration, suggesting that the price may be entering a phase of unusual momentum. There is also the potential that this signal could lead to a correction.
Solar Roof (Red Circle): Activates when the price reaches an exhaustion level as defined by the user’s threshold, indicating a possible turning point or correction.
NASDAQ:SMCI
Configuration and Use: Users can customize the "Flight Threshold" to adjust the sensitivity of the indicator to their specific trading strategies. Modifying this threshold allows the indicator to be less or more reactive to the asset’s fluctuations.
Originality and Utility of the Indicator: Icarus stands out from other indicators with its unique focus on measuring volatility, offering a dynamic perspective on the asset's conditions. A notable feature of Icarus is its ability to reduce the number of false signals through its specialized formula, which prioritizes accuracy over the frequency of alerts. Although this may mean that the indicator does not react to all price extensions and might occasionally overlook some, it is intentionally designed to provide a higher percentage of correct signals when it does issue an alert. This "lower frequency, higher accuracy" approach is particularly valuable for traders who prefer the quality of signals over quantity, thus minimizing reactions to incorrect market movements and optimizing trading decisions based on highly reliable indicators. However, it is important to note that no indicator, including Icarus, can guarantee 100% effectiveness. Indeed, we cannot quantify the exact success rate of Icarus, as its performance can vary widely depending on the volatility of each asset and the market context at any given time.
Rejection Candle DetectorUsing the Rejection Candle Detector with Order Blocks
Plotting Order Blocks:
Identify Key Levels: Begin by identifying key levels on the chart where large buying or selling activity has taken place. These areas are often referred to as order blocks.
Draw the Blocks: Use horizontal lines or rectangular zones to mark these order blocks on your chart. These levels will act as potential support or resistance areas where price is likely to react.
Setting Up the Rejection Candle Detector:
Apply the Indicator: Add the Rejection Candle Detector to your TradingView chart.
Customize Settings: Adjust the look-back period, label colors, and transparency according to your preferences.
Monitoring Price Action:
Wait for Price to Reach an Order Block: Monitor the chart for when the price approaches one of your predefined order blocks.
Look for Rejection Candles: The Rejection Candle Detector will help you identify rejection candlestick patterns within the look-back period (default is 10 bars).
Entry Decision:
Confirm Rejection: Once the price touches an order block and a rejection candle is detected by the indicator, this could signal a potential entry point. Rejection candles indicate that the price tried to move past the order block but was pushed back, showing strong resistance or support at that level.
Align with Your Analysis: Ensure that the detected rejection candle aligns with your overall trading analysis and strategy. Consider other factors such as trend direction, volume, and market conditions before making an entry.
Managing the Trade:
Set Stop Loss: Place a stop loss just beyond the order block to manage your risk in case the price breaks through the level.
Target Levels: Define your target levels for taking profit based on the next significant support or resistance levels on the chart.
Monitor and Adjust: Continue to monitor the trade and adjust your stop loss or take profit levels as needed based on price action and market conditions.
Example Scenario:
Order Block: You identify an order block at the $50 level on your chart, marking it as a potential support zone.
Price Reaction: Price approaches and tests the $50 level.
Rejection Candle: The Rejection Candle Detector spots a hammer candlestick (a bullish rejection pattern) forming right at the $50 level.
Entry Point: You decide to enter a long trade at the close of the hammer candle, setting your stop loss just below the $50 level.
Trade Management: Set your target at the next resistance level, say $55, and monitor the trade, adjusting as necessary...
Dawud Range RoverThe Dawud Range Rover (No Repaint) is an advanced indicator that normalizes smoothed price data into a 0 to 100 range, providing traders with a clear visualization of overbought and oversold levels. This indicator uses adjustable smoothing techniques (EMA, RMA, SMA, TMA) and strength parameters to balance responsiveness and accuracy. It highlights market conditions through non-repainting normalized values, a signal line, and visual cues such as background shading and horizontal thresholds. With robust customization options for rolling lengths, smoothing methods, and levels, it helps traders identify actionable market trends and improve decision-making.
True Range Trend StrengthThis script is designed to analyze trend strength using True Range calculations alongside Donchian Channels and smoothed moving averages. It provides a dynamic way to interpret market momentum, trend reversals, and anticipate potential entry points for trades.
Key Functionalities:
Trend Strength Oscillator:
Calculates trend strength based on the difference between long and short momentum derived from ATR (Average True Range) adjusted stop levels.
Smooths the trend strength using a simple moving average for better readability.
Donchian Channels on Trend Strength Oscillator:
Plots upper and lower Donchian Channels on the smoothed trend strength oscillator.
Traders can use these levels to anticipate breakout points and determine the strength of a trend.
Zero-Cross Shading:
Highlights bullish and bearish zones with shaded backgrounds:
Green for bullish zones where smoothed trend strength is above zero.
Red for bearish zones where smoothed trend strength is below zero.
Moving Averages for Oscillator:
Overlays fast and slow moving averages on the oscillator to provide crossover signals:
Fast MA Cross Above Slow MA: Indicates bullish momentum.
Fast MA Cross Below Slow MA: Indicates bearish momentum.
Alerts:
Alerts are available for MA crossovers, allowing traders to receive timely notifications about potential trend reversals or continuation signals.
Anticipating Entries with Donchian Channels:
The integration of Donchian Channels offers an edge in anticipating excellent trade entries.
Traders can use the oscillator's position relative to the channels to gauge oversold/overbought conditions or potential breakouts.
Use Case:
This script is particularly useful for traders looking to:
Identify the strength and direction of market trends.
Time entries and exits based on dynamic Donchian Channel levels and trend strength analysis.
Incorporate moving averages and visual cues for better decision-making.
RagiBaba's 3:1 Risk-to-Reward Tool with LeverageThis indicator allows you to visualize a 3:1 risk-to-reward ratio for your trades on the chart. It automatically calculates and displays the Stop Loss and Take Profit levels based on your input for:
Entry Price
Trade Amount ($)
Risk Amount ($)
Leverage (x)
You can adjust the following settings:
Trade Direction: Choose between a Long or Short position.
Leverage: Enter the leverage value (e.g., 25x).
Entry Price: Set the price at which you plan to enter the trade.
Risk and Reward: Input the amount of money you're willing to risk and the desired reward (automatically calculated as 3 times your risk).
Label Position: Choose the label position for Entry, Stop, and Target (left, center, or right on the chart).
Each line has a corresponding label showing the price for Entry, Stop Loss, and Take Profit. The labels can be positioned on the left, center, or right side of the chart for better readability.
This tool helps you manage your trades by giving you clear visual cues for your entry, stop loss, and take profit levels with the option to adjust for leverage.
GapDetectGap Severity Analysis Library
This library, GapDetect , simplifies the identification and evaluation of overnight gaps by leveraging statistical metrics such as standard deviation and percentage moves. It is ideal for detecting large abnormal gaps which may be used to modify how strategies may decide to enter or exit.
Key Features:
Overnight Gap Detection
Provides two core functions:
today : Computes the value of today's overnight gap.
todayPercent : Computes the percentage change for today's overnight gap.
Volatility Analysis
Includes functions for statistical gap analysis:
normal : Calculates the normal daily standard deviation of the overnight gap, filtering outliers using customizable thresholds.
normalPercent : Similar to normal , but for percentage-based gap moves.
Gap Severity Metric
severity : a positive or negative value that represents the ratio of the current overnight move compared to the standard deviation of previous ones.
Customizable Parameters
Supports custom session specifications, resolutions, and outlier thresholds.
User-Variable Low-Volume CalculatorThe indicator will look at the last 20x, 50x candles (user defined setting) and take the highest volume value in this period.
It will then mark a solid line against the volume, calculated by a user defined variable percentage (default 16%).
If you determine any volume values that are under 16% (for example) of the highest volume candles in any given period, this indicator will paint this 16% level onto a volume chart for you, this is useful to quickly and conveniently see which candles held a volume below this level
UVR Crypto TrendINDICATOR OVERVIEW: UVR CRYPTO TREND
The UVR Crypto Trend indicator is a custom-built tool designed specifically for cryptocurrency markets, utilizing advanced volatility, momentum, and trend-following techniques. It aims to identify trend reversals and provide buy and sell signals by analyzing multiple factors, such as price volatility(UVR), RSI (Relative Strength Index), CMF (Chaikin Money Flow), and EMA (Exponential Moving Average). The indicator is optimized for CRYPTO MARKETS only.
KEY FEATURES AND HOW IT WORKS
Volatility Analysis with UVR
The UVR (Ultimate Volatility Rate) is a proprietary calculation that measures market volatility by comparing significant price extremes and smoothing the data over time.
Purpose: UVR aims to reduce noise in low-volatility environments and highlight significant movements during higher-volatility periods. While it strives to improve filtering in low-volatility conditions, it does not guarantee perfect performance, making it a balanced and adaptable tool for dynamic markets like cryptocurrency.
HOW UVR (ULTIMATE VOLATILITY RATE) IS CALCULATED
UVR is calculated using a method that ensures precise measurement of market volatility by comparing price extremes across consecutive candles:
Volatility Components:
Two values are calculated to represent potential price fluctuations:
The absolute difference between the current candle's high and the previous candle's low:
Volatility Component 1=∣High−Low ∣
The absolute difference between the previous candle's high and the current candle's low:
Volatility Component 2=∣High −Low∣
Volatility Ratio:
The larger of the two components is selected as the Volatility Ratio, ensuring UVR captures the most significant movement:
Volatility Ratio=max(Volatility Component 1,Volatility Component 2)
Smoothing with SMMA:
To stabilize the volatility calculation, the Volatility Ratio is smoothed using a Smoothed Moving Average (SMMA) over a user-defined period (e.g., 14 candles):
UVR=(UVR(Previous)×(Period−1)+Volatility Ratio)/Period
This calculation ensures UVR adapts dynamically to market conditions, focusing on significant price movements while filtering out noise.
RSI FOR MOMENTUM DETECTION
RSI (Relative Strength Index) identifies overbought and oversold conditions.
Trend Confirmation at the 50 Level
RSI values crossing above 50 signal the potential start of an upward trend.
RSI values crossing below 50 indicate the potential start of a downward trend.
Key Reversals at Extreme Levels
RSI detects trend reversals at overbought (>70) and oversold (<30) levels.
For example:
Overbought Trend Reversal: RSI >70 followed by bearish price action signals a potential downtrend.
Oversold Trend Reversal: RSI <30 with bullish confirmation signals a potential uptrend.
Rare Extreme RSI Readings
Extreme levels, such as RSI <12 (oversold) or RSI >88 (overbought), are used to identify rare yet powerful reversals.
---HOW IT DIFFERS FROM OTHER INDICATORS---
Using UVR High and Low Values
The Ultimate Volatility Rate (UVR) focuses on analyzing the high and low price ranges of the market to measure volatility.
Unlike traditional trend indicators that rely primarily on momentum or moving average crossovers, UVR leverages price extremes to better identify trend reversals.
This approach ensures fewer false signals during low-volatility phases and more accurate trend detection during high-volatility conditions.
UVR as the Core Component
The indicator is fundamentally built around UVR as the primary filter, while supporting tools like RSI (momentum detection), CMF (volume confirmation), and EMA (trend validation) complement its functionality.
By integrating these additional components, the indicator provides a multidimensional analysis rather than relying solely on a single approach.
Dynamic Adaptation to Volatility
UVR dynamically adjusts to market conditions, striving to improve filtering in low-volatility phases. While not flawless, this approach minimizes false signals and adapts more effectively to varying levels of market activity.
Trend Clouds for Visual Guidance
UVR-based dynamic clouds visually mark high and low price areas, highlighting potential consolidation or retracement zones.
These clouds serve as guides for setting stop-loss or take-profit levels, offering clear risk management strategies.
BUY AND SELL SIGNAL LOGIC
BUY CONDITIONS
Momentum-Based Buy-Entry
RSI >50, CMF >0, and the close price is above EMA50.
The price difference between open and close exceeds a threshold based on UVR.
Oversold Reversal
RSI <30 and CMF >0 with a strong bullish candle (close > open and UVR-based sensitivity filter).
Breakout Confirmation
The price breaks above a previously identified resistance, with conditions for RSI and CMF supporting the breakout.
Reversal from Oversold RSI Extreme
RSI <12 on the previous candle with a strong rebound on the current candle with UVR confirmation filter.
SELL CONDITIONS
Momentum-Based Sell-Entry
RSI <50, CMF <0, and the close price is below EMA50.
The price difference between open and close exceeds the UVR threshold.
Overbought Reversal
RSI >70 with bearish price action (open > close and UVR-based sensitivity filter).
Breakdown Confirmation
The price breaks below a previously identified support, with RSI and CMF supporting the breakdown.
Reversal from Overbought RSI Extreme
RSI >88 on the previous candle with a bearish confirmation on the current candle with UVR confirmation filter.
BUY AND SELL SIGNALS VISUALIZATION
The UVR Crypto Trend Indicator visually represents buy and sell conditions using dynamic plots, making it easier for traders to interpret and act on the signals. Below is an explanation of the visual representation:
Buy Signals and Visualization
Signal Trigger:
A buy signal is generated when one of the defined Buy Conditions is met (e.g., RSI >50, CMF >0, price above EMA50).
Visual Representation:
A blue upward arrow appears at the candle where the buy condition is triggered.
A blue cloud forms above the price candles, representing the strength of the bullish trend. The cloud dynamically adapts to market volatility, using the UVR calculation to mark support zones or consolidation levels.
Purpose of the Blue Cloud:
It acts as a visual guide for price movements and stay horizontal when the trend is not moving up
Sell Signals and Visualization
Signal Trigger:
A sell signal is generated when one of the defined Sell Conditions is met (e.g., RSI <50, CMF <0, price below EMA50).
Visual Representation:
A red downward arrow appears at the candle where the sell condition is triggered.
A red cloud forms below the price candles, representing the strength of the bearish trend. Like the blue cloud, it uses the UVR calculation to dynamically mark resistance zones or potential retracement levels.
Purpose of the Red Cloud:
It acts as a visual guide for price movements and stay horizontal when the trend is not moving down.
CONCLUSION
The UVR Crypto Trend indicator provides a powerful tool for trend reversal detection by combining volatility analysis, momentum confirmation, and trend-following techniques. Its unique use of the Ultimate Volatility Rate (UVR) as a core element, supported by proven indicators like RSI, CMF, and EMA, ensures reliable and actionable signals tailored for the crypto market's dynamic nature. By leveraging UVR’s high and low price range analysis, it achieves a level of precision that traditional indicators lack, making it a high-performing system for cryptocurrency traders.
Stage AnalysisStage Analysis was created by Stan Weinstein, and helps traders to identify where a stock/etf/index is in its Price Cycle.
The Price Cycle was introduced by Richard D. Wyckoff in the early 1900s, where he noted that stocks repeatedly go through a cycle of Accumulation, Markup, Distribution and Markdown. Stan Weinstein’s Stage Analysis method modified the Wyckoff Price Cycle, and converted it into four stages, which are:
Stage 1 = Accumulation
Stage 2 = Markup
Stage 3 = Distribution
Stage 4 = Markdown
Stage Analysis indicator:
Stan Weinstein had different definitions for the four stages – Stage 1: The Basing Area, Stage 2: The Advancing Phase, Stage 3: The Top Area, Stage 4: The Declining Phase. But for the purposes of the Stage Analysis indicator, you’ll note that we’ve combined Stage 1 and Stage 3, as they share numerous technical characteristics, and in our opinion, still require some discretionary judgement to determine whether they are showing accumulation or distribution characteristics.
So, we believe that neutral better describes them from a purely technical aspect, as being in Stage 3 doesn’t necessarily mean the top area, as it can still make a Stage 2 continuation breakout to new highs, instead of breaking down into Stage 4. Just as a Stage 1 basing pattern, can still make a further Stage 4 continuation breakdown, and won’t necessarily breakout into a Stage 2 advance. Hence, we display both Stage 1 and Stage 3 as Neutral, to help remove the perceived bias associated with Stage 3 and Stage 1.
So, in the indicator the Stages are displayed as three different colored backgrounds:
Blue = Stage 1 / Stage 3: Neutral
Green = Stage 2: Uptrend
Red = Stage 4: Downtrend
Stage 1 / Stage 3: Neutral (Blue background)
Stage 1 shows signs of a potential accumulation base structure developing and begins with a close above the 30-week simple moving average, when the stock is still below its (usually declining) 40-week MA as well, following a Stage 4 downtrend, and then remains in Stage 1 until either it breaks out into a Stage 2 uptrend, or returns to a Stage 4 downtrend once more. Although, there are often multiple failed breakout and breakdown attempts, which change the Stage briefly to Stage 2 or Stage 4, before reverting back into Stage 1, as the base broadens out.
The initial move into Stage 1 can occur in numerous different ways. Sometimes following a powerful rebound rally from the 52-week lows to above the 30-week MA, and at other times, after a basing period first, while the stock is still in Stage 4, and then only briefly moving into Stage 1, before breaking out into a new Stage 2 uptrend. But with all ways, there is a notable Change of Character compared to the previous Stage 4 downtrend, as supply and demand moves towards equilibrium, and the stock starts to build a more significant sideways range/base structure.
Stage 3 is the exact opposite of Stage 1, and instead of accumulation. Signs of distribution begin to appear when a stock is getting later in a Stage 2 Uptrend, with the stock first closing below its 30-week MA, and then starting to build a more significant sideways range/base structure, than the minor structures that formed when it was still trending higher in Stage 2.
It begins with a change of behaviour (i.e. a bigger correction than seen during the rest of Stage 2, that takes it below its 30-week, but still above its (usually rising) 40-week MA, and then that often broadens out into a sideways structure, with multiple swings above and below the 30-week MA, with tests of the highs and lows of the developing structure. Which can see it briefly revert to Stage 2, with failed breakout attempts at the highs (Upthrusts), or Stage 4, with failed breakdown attempts at the lows of the structure (Shakeouts or Springs).
So, Stage 1 and Stage 3 are both more neutral periods between the Stage 2 (Uptrend) and Stage 4 (Downtrend).
Stage 2: Uptrend (Green Background)
Stage 2 is the most important Stage for traders looking to buy stocks with the Stage Analysis method, and begins with a breakout from the prior Stage 1 base, but can also occur more suddenly from a V-bottom pattern or earnings gaps. In which case, it will move directly from a Stage 4 downtrend into a Stage 2 uptrend.
The move to Stage 2 requires certain technical aspects to be present, including a close above its near-term range (we use a 13-week range based on weekly closes), as well as its 200-day MA (40-week MA), and for our proprietary Stage Analysis Technical Attributes (SATA)* score to be at a least a SATA 6 of 10. And so, the change from Stage 1 to Stage 2 will often occur while the stock is still within a “broader” base structure, as the quarterly range is continually shifting, and doesn’t consider technical levels prior to that period.
The breakout point as Stage 2 begins is the Stage Analysis methods favoured entry zone for investors, as it marks the change from the Stage 1 basing period into the more dynamic Stage 2 uptrend (chart changes to green)
A secondary investor entry point can often form soon after the Stage 2 breakout, as the momentum fades from the initial rally, and it pulls back towards the breakout level, before finding support and swinging back higher into the advancing phase. So, the Stage Analysis indicator can be used to determine this secondary entry point by dropping down to an intraday timeframe – such as the 30-minute chart, and waiting for a Stage 2 breakout attempt on that much shorter timescale.
The Trader method entry points also form during the Stage 2 advance, and occur at the Stage 2 continuation breakout points of the more minor re-accumulation bases that form as the Stage 2 advance progresses higher.
Stage 4: Downtrend (Red Background)
Stage 4 is the opposite of Stage 2, and marks the beginning of a potential downtrend, as the distributional forces from Stage 3 gain control, and the stock attempts to move lower.
Stage 4 is the most important Stage for traders looking to short stocks with the Stage Analysis method, and as with Stage 2, it can also begin more suddenly following a sudden sharp decline or an earnings gap lower etc, that knifes through the key MAs and quarterly range.
The move to Stage 4 also requires certain technical aspects to be present, including a close below its near-term range (we use a 13-week range based on weekly closes), as well as its 200-day MA (40-week MA), and for our proprietary Stage Analysis Technical Attributes (SATA) score to be a maximum of a SATA 3 of 10, as if the SATA score is higher than 3, then it will still be considered as Stage 3 (blue) until that drops to a SATA 3 or lower.
The initial short entry point in Stage 4 occurs at the breakdown from Stage 3 to Stage 4 (chart changes to red), and as with Stage 2, a secondary entry point can form, but in Stage 4 it is on a potential pullback towards the breakdown level that then reverses lower once more. So, the Stage Analysis indicator can be used to determine this secondary entry point by dropping down to an intraday timeframe – such as the 30-minute chart, and waiting for a Stage 4 breakdown attempt on that much shorter timescale.
The Trader method short entry points also form during the Stage 4 decline, and occur at the Stage 4 continuation breakdown points of the more minor re-distribution bases that form as the Stage 4 decline progresses lower.
Recommended Chart Setup:
Weekly
Logarithmic scale
Recommended Indicators:
10 – Simple Moving Average
30 – Simple Moving Average
40 – Simple Moving Average (optional)
Mansfield Relative Strength (Original Version) (optional)
Stage Analysis Technical Attributes (SATA) (optional)
The Stages are intended to be used on the Weekly timeframe with a Logarithmic scale primarily, with a 10-week MA, 30-week MA and 40-week MA. But Stage Analysis can be used across multiple timeframes. So, for shorter-term swing traders, the 195-min (2bars/day), 2-hour, 1-hour, 30-min charts etc are often used with the same relative chart settings. But note that the lower the timeframe, the more noise that you’ll get, so you should always refer back to the weekly Stage to trade with the major trend.
Customise the Stage Analysis indicator
Edit colours of the Stages
Show/Hide Stages
Reference:
*Stage Analysis Technical Attributes (SATA)
The Stage Analysis Technical Attributes (SATA) scoring system is our proprietary tool which measures 10 of the key components that we look for in the Stage Analysis method to help to determine the Stage, and is made up of the following components:
Breakouts and Breakdowns
Price / Moving Averages
Relative Strength versus the S&P 500
Momentum
Volume
Overhead Resistance
Combining the SATA score with the price elements described in the Stages descriptions above, provides a Stage Analysis indicator that is faithful to Stan Weinstein's Stage Analysis method, and truly unique from other more simplistic automated versions of the Stages that you might find elsewhere.
Disclaimer: This indicator is for informational and educational purposes only. We accept no liability for any loss which may arise from the use of this indicator. All trading decisions are your own, and should be researched thoroughly, with appropriate risk management in place.
We are not affiliated with Stan Weinstein, and this is our own unique interpretation of the Stage Analysis method, based on our long experience with it.
Fibonacci Snap Tool [TradersPro]
OVERVIEW
The Fibonacci Snap tool automatically snaps to the swing high and swing low of the price data shown on the chart display. Fibonacci retracement levels can be used for entry, exit, or as a confirmation of trend continuation.
If the swing high on the chart comes before the swing low, the price is in a downtrend.If the swing high comes after the swing low, the price is in an uptrend.
We call the 23.60% Fibonacci level the momentum zone of the trend. Price in a solid trend, either up or down, will typically hold the 23.60% Fibonacci level as support (demand) in an uptrend or resistance (supply) in a downtrend.
Deeper Fibonacci levels of 38.20%, 50.00%, and 61.80% are corrective supply/demand zones. As price moves against the found trend, it can move into this range block we call the corrective zone.
Fibonacci retracement levels are used to identify potential supply/demand areas where price could reverse or consolidate. These levels are based on key ratios derived from the Fibonacci sequence, and we only use the core 23.60%, 38.20%, 50.00%, and 61.80% ratios.
CONCEPTS
Price action moves in trend cycles, these retracement levels help traders measure proportional relationships between the high/low swings in the price trend.
When a price trend is moving against the trend, traders can find opportunities to trade with the current trend at key Fibonacci levels. Fibonacci levels can be used to anticipate where price might find supply/demand imbalance and continue moving in the trend direction.
Traders apply the indicator by selecting a window of price they want to analyze in the chart display, and the Fibonacci Snap tool will snap to the high and low of the visible price display.
The Intent and Use of This Tool
The 23.60% level acts as a momentum or continuation of trend. The 38.20% to 61.80% range are corrective zones of the trend.
The 61.80% level, also known as the golden ratio (Google the term “Golden Ratio”; it's fun), can often represent the location of supply/demand imbalance.
In an uptrend, it can represent the area of no more selling supply, and the balance can shift to buying demand. In a downtrend, it can represent the area of no more buying demand and the balance can shift to selling supply.
When used with the Momentum Zones indicator, these two tools create a powerful combination for traders to find, implement, and manage trades.
Trading SessionsTrading Sessions Indicator
Overview
Trading Sessions is a visually displays major trading sessions worldwide. It overlays the trading hours of four major markets - Sydney, Tokyo, London, and New York - on your chart.
Key Features
Simultaneous display of 4 trading sessions
Visual session dividers
Customizable session boxes
Session status display in top-right corner
Session Settings
Configuration Options per Session
Toggle visibility
Timezone configuration
Trading hours setting (Default: 08:00-17:00)
Background color setting (95% transparency)
Default Session Configuration
Sydney Session (Yellow)
Tokyo Session (Red)
London Session (Blue)
New York Session (Lime)
Session Divider Settings
Toggle divider visibility
Divider line position (top/bottom)
Session emoji position (top/bottom)
Customizable emoji per session
Sydney: 🦘
Tokyo: 🗼
London: 🚇
New York: 🗽
Overlay Settings
Force Overlay
When enabled: Forces session backgrounds behind candles
When disabled: Standard overlay display
Box Overlay
When enabled: Displays price range boxes during sessions
Shows session name at box top
Individual color settings per session
Display Features
1. Background Color Distinction
Each session shown in configured color
Visibility adjusted through transparency
2. Session Divider Display
Vertical line (|): Session start/end
Upper line (¯)/lower line (_): During session
Emoji: Session start
3. Status Display
Session status shown in top-right
Active sessions highlighted in corresponding colors
Inactive sessions shown in gray
Limitations
Timezones must conform to IANA Time Zone Database format
Gold Friday Anomaly StrategyThis script implements the " Gold Friday Anomaly Strategy ," a well-known historical trading strategy that leverages the gold market's behavior from Thursday evening to Friday close. It is a backtesting-focused strategy designed to assess the historical performance of this pattern. Traders use this anomaly as it captures a recurring market tendency observed over the years.
What It Does:
Entry Condition: The strategy enters a long position at the beginning of the Friday trading session (Thursday evening close) within the defined backtesting period.
Exit Condition: Friday evening close.
Backtesting Controls: Allows users to set custom backtesting periods to evaluate strategy performance over specific date ranges.
Key Features:
Custom Backtest Periods: Easily configurable inputs to set the start and end date of the backtesting range.
Fixed Slippage and Commission Settings: Ensures realistic simulation of trading conditions.
Process Orders on Close: Backtesting is optimized by processing orders at the bar's close.
Important Notes:
Backtesting Only: This script is intended purely for backtesting purposes. Past performance is not indicative of future results.
Live Trading Recommendations: For live trading, it is highly recommended to use limit orders instead of market orders, especially during evening sessions, as market order slippage can be significant.
Default Settings:
Entry size: 10% of equity per trade.
Slippage: 1 tick.
Commission: 0.05% per trade.
Turtle Trade Channels Indicator with EMATurtle Trade Channels Indicator with EMA (TuTCI + EMA)
This custom indicator combines the classic Turtle Trading Channel strategy with an Exponential Moving Average (EMA) filter to provide clear entry and exit signals, as well as trend direction guidance.
Features:
Turtle Channels: The indicator calculates the upper and lower Turtle Trading Channels based on the highest and lowest values over a user-defined period ( Entry Length for the channel).
Entry/Exit Signals: Alerts you to potential buy and sell opportunities with visual signals on the chart.
Long Entry: When the price crosses above the upper channel.
Short Entry: When the price crosses below the lower channel.
Long Exit: When the price breaks below the exit line.
Short Exit: When the price breaks above the exit line.
EMA Filter: A 50-period Exponential Moving Average (EMA) is included to identify the overall trend. The background color turns green when the price is above the EMA (bullish trend) and red when the price is below the EMA (bearish trend).
Highlighter: Optional background highlighting for the most relevant signals, such as when the price crosses the upper or lower Turtle Channel. This feature helps to easily identify key market movements.
Visual Customization: Customize the EMA length, Entry/Exit lengths, and toggle signals and highlighting to suit your preferences.
How It Works:
The Turtle Trade Channels are designed to capture breakouts by identifying key price levels (highest high and lowest low) over a specified period. By combining this strategy with an EMA, the indicator ensures trades are aligned with the broader trend, increasing the probability of successful trades.
Uptrend: When the price is above the EMA, the indicator considers the trend to be bullish, and it highlights long entry signals.
Downtrend: When the price is below the EMA, the trend is considered bearish, and short entries are emphasized.
Customization:
Entry Length: Adjusts the period for calculating the Turtle Channel's entry levels.
Exit Length: Defines the period for calculating the exit levels.
EMA Length: The period for the Exponential Moving Average (default is set to 50).
Show Entry/Exit Signals: Toggle the visibility of entry/exit signals on the chart.
Highlighter On/Off: Toggle background highlighting for key signals.
This indicator is suitable for traders who follow trend-following strategies, particularly those influenced by the Turtle Trading methodology, and wish to use an EMA filter for better trend confirmation.
Use Cases:
Trend-following traders looking for clear entry/exit signals.
Breakout traders using the Turtle Trading concept to identify price breakouts.
Swing traders who want to incorporate trend analysis with price levels.
Bollinger Breakout Strategy with Direction Control [4H crypto]Bollinger Breakout Strategy with Direction Control - User Guide
This strategy leverages Bollinger Bands, RSI, and directional filters to identify potential breakout trading opportunities. It is designed for traders looking to capitalize on significant price movements while maintaining control over trade direction (long, short, or both). Here’s how to use this strategy effectively:
How the Strategy Works
Indicators Used:
Bollinger Bands:
A volatility-based indicator with an upper and lower band around a simple moving average (SMA). The bands expand or contract based on market volatility.
RSI (Relative Strength Index):
Measures momentum to determine overbought or oversold conditions. In this strategy, RSI is used to confirm breakout strength.
Trade Direction Control:
You can select whether to trade:
Long only: Buy positions.
Short only: Sell positions.
Both: Trade in both directions depending on conditions.
Breakout Conditions:
Long Trade:
The price closes above the upper Bollinger Band.
RSI is above the midline (50), confirming upward momentum.
The "Trade Direction" setting allows either "Long" or "Both."
Short Trade:
The price closes below the lower Bollinger Band.
RSI is below the midline (50), confirming downward momentum.
The "Trade Direction" setting allows either "Short" or "Both."
Risk Management:
Stop-Loss:
Long trades: Set at 2% below the entry price.
Short trades: Set at 2% above the entry price.
Take-Profit:
Calculated using a Risk/Reward Ratio (default is 2:1).
Adjust this in the strategy settings.
Inputs and Customization
Key Parameters:
Bollinger Bands Length: Default is 20. Adjust based on the desired sensitivity.
Multiplier: Default is 2.0. Higher values widen the bands; lower values narrow them.
RSI Length: Default is 14, which is standard for RSI.
Risk/Reward Ratio: Default is 2.0. Increase for more aggressive profit targets, decrease for conservative exits.
Trade Direction:
Options: "Long," "Short," or "Both."
Example: Set to "Long" in a bullish market to focus only on buy trades.
How to Use This Strategy
Adding the Strategy:
Paste the script into TradingView’s Pine Editor and add it to your chart.
Setting Parameters:
Adjust the Bollinger Band settings, RSI, and Risk/Reward Ratio to fit the asset and timeframe you're trading.
Analyzing Signals:
Green line (Upper Band): Signals breakout potential for long trades.
Red line (Lower Band): Signals breakout potential for short trades.
Blue line (Basis): Central Bollinger Band (SMA), helpful for understanding price trends.
Testing the Strategy:
Use the Strategy Tester in TradingView to backtest performance on your chosen asset and timeframe.
Optimizing for Assets:
Forex pairs, cryptocurrencies (like BTC), or stocks with high volatility are ideal for this strategy.
Works best on higher timeframes like 4H or Daily.
Best Practices
Combine with Volume: Confirm breakouts with increased volume for higher reliability.
Avoid Sideways Markets: Use additional trend filters (like ADX) to avoid trades in low-volatility conditions.
Optimize Parameters: Regularly adjust the Bollinger Bands multiplier and RSI settings to match the asset's behavior.
By utilizing this strategy, you can effectively trade breakouts while maintaining flexibility in trade direction. Adjust the parameters to match your trading style and market conditions for optimal results!