Advanced Candlestick Pattern DetectorWhat Does This Indicator Do?
This indicator looks at the way price moves in the market using candlesticks (those red and green bars you see on charts). It tries to find special patterns like Bullish Engulfing, Hammer, Doji, and others. When one of these patterns shows up, the indicator checks a bunch of filters to decide if the pattern is strong enough to be a signal to buy or sell.
The Main Parts of the Indicator
1. Candlestick Pattern Detection
Bullish Engulfing:
Imagine you see a small down candle (red) and then a big up candle (green) that completely “covers” the red one. That’s a bullish engulfing pattern. It can signal that buyers are taking over.
Bearish Engulfing:
The opposite of bullish engulfing. A small up candle (green) is followed by a big down candle (red) that covers the previous candle. This suggests sellers might be in control.
Hammer & Shooting Star:
Hammer: A candle with a very short body and a long shadow at the bottom. It shows that buyers stepped in after a drop.
Shooting Star:
Similar to the hammer but with a long shadow on top. It can indicate that sellers are starting to push the price down.
Doji:
A candle with almost no body. This means the opening and closing prices are very close. It shows indecision in the market.
Harami Patterns (Bullish & Bearish):
These are two-candle patterns where the second candle is completely inside the body of the first candle. They signal that the previous trend might be about to change.
Morning Star & Evening Star:
These are three-candle patterns.
Morning Star:
Often seen at the bottom of a downtrend, it can signal a reversal to an uptrend.
Evening Star:
Seen at the top of an uptrend, it can signal that the price may soon go down.
2. Filters: Making the Signals Smarter
The indicator doesn’t just rely on patterns. It uses several “filters” to decide if a pattern is strong enough to trade on. Here’s what each filter does:
a. Adaptive Thresholds (ATR-Based)
What It Is:
The indicator uses something called ATR (Average True Range) to see how much the price is moving (volatility).
How It Works:
Instead of using fixed numbers to decide if a candle is a Hammer or a Doji, it adjusts these numbers based on current market activity.
User Settings:
Use Adaptive Thresholds: Turn this on to let the indicator adjust automatically.
Body Factor, Shadow Factor, Doji Factor: These numbers are multipliers that decide how small or big the body and shadows of the candle should be. You can change them if you want the indicator to be more or less sensitive.
b. Volume Filter
What It Is:
Volume shows how many trades are happening.
How It Works:
The filter checks if the current volume is higher than the average volume (multiplied by a set factor). This helps ensure that the signal isn’t coming from a very quiet market.
User Settings:
Use Volume Filter: Turn this on if you want to ignore signals when there’s not much trading.
Volume MA Period & Volume Multiplier: These settings determine what “normal” volume is and how much higher the current volume must be to count.
c. Multi-Timeframe Trend Filter
What It Is:
This filter looks at a bigger picture by using a moving average (MA) from a higher timeframe (for example, daily charts).
How It Works:
For a bullish (buy) signal, the indicator checks if the price is above this MA.
For a bearish (sell) signal, the price must be below the MA.
User Settings:
Use Multi-Timeframe Trend Filter: Enable or disable this filter.
Higher Timeframe for Trend: Choose which timeframe (like Daily) to use.
Trend MA Type (SMA or EMA) & Trend MA Period: Choose the type of moving average and how many candles to average.
d. Additional Trend Filters (ADX & RSI)
ADX Filter:
What It Is:
ADX stands for Average Directional Index. It measures how strong a trend is.
How It Works:
If the ADX is above a certain threshold, it means the trend is strong.
User Setting:
ADX Threshold: Set the minimum strength the trend should have.
RSI Filter:
What It Is:
RSI (Relative Strength Index) tells you if the price is overbought (too high) or oversold (too low).
How It Works:
For a buy signal, RSI should be low (under a set threshold).
For a sell signal, RSI should be high (above a set threshold).
User Settings:
RSI Buy Threshold & RSI Sell Threshold: These set the levels for buying or selling.
3. How the Final Signal Is Determined
For a signal (buy or sell) to be generated, the indicator first checks if one of the candlestick patterns is present. Then it goes through all these filters (trend, volume, ADX, RSI). Only if everything is in line will it show:
A BUY signal when all bullish conditions are met.
A SELL signal when all bearish conditions are met.
4. Visual Elements on the Chart
Trend MA Line:
A blue line is drawn on your chart showing the moving average from the higher timeframe (if you enable the trend filter). This helps you see the overall direction of the market.
Labels on the Chart:
When a signal is detected, you’ll see:
A BUY label below the candle (green).
A SELL label above the candle (red).
Background Colors:
The chart background might change slightly (green for bullish and red for bearish) to give you a quick visual cue.
Histogram:
At the bottom, there is a histogram that shows +1 for bullish signals, -1 for bearish signals, and 0 when there’s no clear signal.
5. Alerts
Alerts are built into the indicator so you can get a notification when a signal appears. The alert messages are fixed strings, meaning they always say something like “BUY signal on at price .” You can set up these alerts in TradingView to be notified via sound, email, or pop-up.
How to Use and Adjust the Filters
Deciding on Patterns:
You can choose which candlestick patterns you want to detect by toggling the options (e.g., Bullish Engulfing, Hammer, etc.).
Adjusting Adaptive Thresholds:
If you feel that the indicator is too sensitive (or not sensitive enough) during volatile times, adjust the Body Factor, Shadow Factor, and Doji Factor. These change how the indicator recognizes different candle shapes based on market movement.
Volume Filter Settings:
Use Volume Filter:
Turn this on if you want to ignore signals when there’s not enough trading activity.
Adjust the Volume MA Period and Volume Multiplier to change what “normal” volume is for your chart.
Multi-Timeframe Trend Filter Settings:
Choose a higher timeframe (like Daily) to see the bigger picture trend. Select the type of moving average (SMA or EMA) and its period. This filter ensures you only trade in the direction of the overall trend.
ADX & RSI Filters:
ADX:
Adjust the ADX Threshold if you want to change the minimum strength of the trend needed for a signal.
RSI:
Set the RSI Buy Threshold (for oversold conditions) and RSI Sell Threshold (for overbought conditions) to refine when a signal is valid.
Summary
This indicator is like having a smart assistant that not only looks for specific price patterns (candlesticks) but also checks if the overall market conditions are right using several filters. By combining:
Pattern Detection
Adaptive thresholds (based on ATR)
Volume Checks
Multi-Timeframe Trend Analysis
Additional Trend Strength and Overbought/Oversold Indicators (ADX & RSI)
...it helps you decide if it might be a good time to buy or sell. You can customize each part to fit your trading style, and with the built-in alerts, you can be notified when everything lines up.
Feel free to adjust the settings to see how each filter changes the signals on your chart. Experimenting with these will help you learn how the market behaves and how you can best use the indicator for your own strategy!
Phân tích Xu hướng
LDO Support and Resistance with Trend LinesUnderstanding the Indicator on Your Chart
Support Lines (Green): These horizontal lines represent price levels where LDO is likely to find buying interest, preventing further declines. They turn a semi-transparent green when the price is above them and blue when below.
Resistance Lines (Blue): These horizontal lines indicate price levels where selling pressure may halt upward movements. They turn a semi-transparent blue when the price is below them and green when above.
Trend Lines (Blue for Resistance, Green for Support): Diagonal lines show the overall trend direction. Blue trend lines indicate resistance (price may struggle to rise above), and green trend lines indicate support (price may find a floor).
Pivots: Small triangles appear above or below candles to mark pivot highs (resistance) and pivot lows (support), helping you identify key turning points.
Customizing the Indicator
You can tweak the indicator’s behavior through the settings panel. Here’s what each input does:
Show Trend Lines? (Default: True)
Enables or disables the display of trend lines on the chart. Set to false to hide trend lines if you only want support/resistance levels.
Choose Higher Time Frame
Select a higher timeframe (e.g., 1H, 4H, 1D) to display support and resistance levels from that timeframe on your current chart (e.g., 5M or 15M).
Pivot Length Settings (Current and Higher Timeframe):
Pivot Length Left Hand Side (Current/HTF): Adjusts how many bars to the left the indicator looks to identify pivot lows (default: 15 for current, 20 for HTF).
Pivot Length Right Hand Side (Current/HTF): Adjusts how many bars to the right the indicator looks to identify pivot highs (default: 10 for current, 15 for HTF).
Increase these values for fewer, more significant pivots; decrease for more frequent pivots.
Pivot Sources (Trend 1 and Trend 2 Pivots):
Select the price source (e.g., low, high) for calculating pivot lows and highs. Default is low for pivot lows and high for pivot highs.
Line Width Settings:
Lower Time Frame Line Width (Default: 5): Sets the thickness of support/resistance lines on the current timeframe.
Higher Time Frame Line Width (Default: 18): Sets the thickness of support/resistance lines on the higher timeframe.
Show Support & Resistance? (Default: True)
Enables or disables the display of horizontal support and resistance lines. Set to false to hide them if you only want trend lines.
Alert Settings (Under “Alerts” Group):
Enable Trend Line Alerts? (Default: True): Turns alerts on or off for trend line hits.
Alert on Resistance Trend Lines? (Default: True): Enables alerts when the price hits resistance trend lines.
Alert on Support Trend Lines? (Default: True): Enables alerts when the price hits support trend lines.
Alert Message: Customize the alert message format (default: “Price hit trend line at {0}”, where {0} is replaced by the price).
Setting Up Alerts
Enable Alerts in the Indicator:
In the indicator settings, ensure “Enable Trend Line Alerts?” is set to true, and choose whether to alert on resistance or support trend lines.
Create a TradingView Alert:
Click the “Alerts” button (bell icon) at the top of the chart.
Select “Create Alert” and choose this indicator from the “Condition” dropdown.
Set the alert frequency (e.g., once per bar, only once), notification method (e.g., email, popup), and save the alert.
Test the Alerts:
Sector/Industry Relative StrengthOverview
The Sector/Industry Relative Strength (RS) Indicator is a powerful tool designed to help traders and investors analyze the performance of sectors and industries relative to the broader market (SPY). It provides real-time insights into sector and industry strength, helping you identify leading and lagging areas of the market.
Key Features
Sector and Industry Analysis:
Automatically detects the sector and industry of the current symbol.
Displays the corresponding sector and industry ETF.
Relative Strength (STS) Calculation:
Calculates the Sector/Industry Trend Strength (STS) by comparing the sector or industry ETF to SPY over the past 20 days.
STS is expressed as a percentile (0-100), indicating how strong the sector/industry ETF has been relative to SPY over the past 20 days.
Example: An STS of 70 means that during the past 20 days, the ETF’s relative strength against SPY was stronger than 70% of those days.
Sector Rank:
Ranks the current sector ETF against a predefined list of major sector ETFs.
Highlights whether the sector is outperforming or underperforming SPY (green if outperforming, red if underperforming).
Customizable Display:
Choose which elements to display (e.g., sector, industry, ETFs, STS, sector rank).
Customize table position, size, text alignment, and colors.
Real-Time Performance:
Tracks daily price changes for sector and industry ETFs.
Displays percentage change from open to close.
How to Use
Add the Indicator:
Apply the indicator to any stock or ETF chart.
The script will automatically detect the sector and industry of the selected symbol.
Interpret the Data:
Sector/Industry: Displays the current sector and industry.
ETF: Shows the corresponding sector and industry ETF.
STS (Sector/Industry Trend Strength): A percentile score (0-100) indicating the relative strength of the sector/industry ETF compared to SPY over the past 20 days.
Sector Rank: Ranks the sector ETF against other major sectors (e.g., "3/12" means the sector is ranked 3rd out of 12).
Customize the Display:
Use the input settings to:
Show/hide specific elements (e.g., sector, industry, ETFs, STS, sector rank).
Adjust the table position, size, and text alignment.
Change colors for positive/negative changes.
Make Informed Decisions:
Use the STS score and sector rank to identify potential trading opportunities.
Focus on sectors and industries with high STS scores and strong rankings (green).
Input Parameters
Table Settings:
Table Position: Choose where to display the table (Top Left, Top Right, Bottom Left, Bottom Right).
Table Size: Adjust the size of the table (Tiny, Small, Normal, Large).
Text Color: Customize the text color.
Background Color: Set the table background color.
Display Options:
Show ETFs: Toggle the display of sector and industry ETFs.
Show STS: Toggle the display of the Sector/Industry Trend Strength (STS) score.
Show Sector/Industry: Toggle the display of sector and industry information.
Show Sector Rank: Toggle the display of the sector rank.
Parameters:
Sector Rank Time Length: Set the number of days used for calculating the sector rank (default: 20).
Example Use Cases
Sector Rotation:
Identify sectors with high STS scores and strong rankings (green) to allocate capital.
Avoid sectors with low STS scores and weak rankings (red).
Industry Analysis:
Compare the STS scores of different industries within the same sector.
Use the STS score to gauge relative strength and identify potential opportunities.
Market Timing:
Use the STS score and sector rank to time entries and exits in sector-specific ETFs.
Combine with other technical indicators for confirmation.
Three Bar Reversal Pattern [ActiveQuants]This indicator identifies bullish and bearish three-bar reversal patterns , offering traders a visual tool to spot potential trend reversals. By analyzing consecutive candlesticks, volume trends, and candlestick morphology, it highlights signals while filtering out false patterns. Ideal for traders using price action strategies, it simplifies pattern recognition and enhances decision-making with customizable parameters.
█ KEY FEATURES
Pattern Detection Logic :
Bullish Reversals : Detects two consecutive bearish candles followed by a bullish candle that closes above the open of the first bearish candle .
Bearish Reversals : Identifies two consecutive bullish candles followed by a bearish candle that closes below the open of the first bullish candle .
Volume Confirmation :
Filters signals using a Volume SMA (user-defined length) to ensure reversals occur with above-average volume, adding validity to the pattern.
Candlestick Filtering :
Shooting Star Filter : Discards bullish patterns if the third candle is a Shooting Star (body confined to the lower portion of the candle’s range, adjustable via Shooting Star Body Limit ).
Hammer Filter : Discards bearish patterns if the third candle is a Hammer (body confined to the upper portion of the candle’s range, adjustable via Hammer Body Limit ).
Customizable Display :
Toggle visibility of bullish/bearish patterns and customize their colors.
Adjust the Show Last parameter to limit plotted labels to recent bars.
Alerts Integration :
Separate Bullish/Bearish Alerts : Generate independent alerts for bullish and bearish patterns. Traders can selectively enable one or both alerts via TradingView’s alert system.
Real-time notifications ensure you never miss a potential reversal signal.
█ CONCLUSION
The Three Bar Reversal Pattern Indicator streamlines the identification of reversal setups by combining candlestick patterns, volume analysis, and customizable filters. Its focus on price action dynamics makes it invaluable for traders seeking to capitalize on trend exhaustion or market sentiment shifts.
█ IMPORTANT NOTES
⚠ Use with Confluence : Reversal signals should be validated with additional tools like support/resistance levels, trendlines, or momentum oscillators.
⚠ Adapt Parameters : Adjust Volume SMA Length , Show Last , and body limits ( Shooting Star Body Limit and Hammer Body Limit ) to suit your timeframe and asset volatility.
█ RISK DISCLAIMER
Trading involves significant risk, and you may lose capital. Past performance is not indicative of future results. This tool provides informational signals only and does not constitute financial advice. Use it at your own risk and consult a qualified financial professional before making trading decisions.
Incorporate this indicator into your strategy to refine reversal entries, manage risk, and align with market momentum.
📈 Happy trading! 🚀
Ronnie's DikFat Attack - Moving Average Angle/Slope PositionRonnie's DikFat Attack - True Moving Average Angle/Slope Position
Overview
This TradingView indicator, written in Pine Script version 5, injects energy into your chart analysis by calculating and displaying the angles of four moving averages (MAs). It empowers you to customize each MA—choosing both type and length—to suit your trading strategy perfectly.
How It Works
1. User Inputs:
Under the “MA Settings” group, the script offers an intuitive interface where you can define four different moving averages. Each MA can be set to one of several types (SMA, EMA, SMMA, VWMA, Hull, WMA, or TEMA) and assigned a specific length (number of bars).
2. Dynamic Moving Average Calculation:
A dedicated function ( getMA ) selects and computes the appropriate moving average using TradingView’s built-in functions (like ta.ema , ta.sma , etc.). This yields four customized MA series based on your inputs.
3. Calculating the Angle of Momentum:
The script employs a robust function ( calcAngle ) that measures the change between consecutive values of each MA to determine its slope. This slope is then converted into an angle in degrees using the arctangent function, providing a clear and vivid depiction of trend strength and direction.
4. Visualizing the Angles:
Each moving average’s angle is plotted with its own distinct color, enhancing visual clarity. A horizontal line at 0° acts as a reference point, marking the divide between upward and downward momentum.
Potential Uses
Trend Analysis:
The angle measurement offers a dynamic perspective on trend strength. Steep positive angles suggest vigorous upward movement, while steep negative angles indicate strong downward trends.
Signal Confirmation:
By comparing the angles of multiple moving averages, you can quickly spot momentum shifts and crossover points, which may serve as powerful entry or exit signals.
Tailored Strategy Customization:
The flexibility to choose various MA types and lengths allows this tool to adapt seamlessly to different timeframes and trading styles, enhancing its usefulness in diverse market conditions.
Breakouts with timefilter [LuciTech]Here's the updated description with "colors" replaced by "colours" throughout, maintaining the original structure and content:
Breaking Point 2.0
This is a technical analysis overlay indicator designed to identify breakout levels based on pivot highs and lows, with a focus on price action during customizable time windows using London time (UK). It draws horizontal lines at pivot points and plots signals when price breaks above or below these levels, offering traders a tool to monitor potential bullish or bearish movements. The indicator includes options for time filtering and displaying only the most recent breakout.
Features
The Pivot Breakout Lines display horizontal lines at detected pivot highs (bullish) and pivot lows (bearish), coloured green and red by default. These lines extend from the pivot point to the breakout bar and can be set to show only the latest breakout.
The Breakout Signals mark bullish breakouts with an upward triangle below the bar and bearish breakouts with a downward triangle above the bar, using customizable colours.
The Time Filter restricts signals and lines to a specific window (default: 14:30–15:00 UK), which can be toggled on or off. A shaded background highlights this period when enabled.
How It Works
The indicator calculates pivot highs and lows using a user-defined lookback period (default: 5 bars). When price closes above a pivot high, it triggers a bullish signal and draws a line from the pivot to the breakout bar. When price closes below a pivot low, it triggers a bearish signal with a corresponding line.
If the time filter is active, signals and lines only appear within the specified window. Outside this period—or if the filter is disabled—they appear based solely on price action. The indicator maintains up to three recent pivots in memory, removing older ones as new pivots form.
Alerts are available for both bullish and bearish breakouts, triggered when signals occur.
Settings
Length controls the lookback period for pivot detection (default: 5).
Colours Bull/Bear sets the colours for bullish (default: green) and bearish (default: red) lines and signals.
Show Last Breakout toggles whether only the most recent breakout line and signal are displayed (default: false).
Time Filter enables or disables the time restriction (default: true).
Fill Background toggles a shaded area during the time window (default: true), with a customizable colour.
Time Settings define the start hour/minute and end hour/minute for the filter (default: 14:30–15:00).
Interpretation
The Pivot Breakout Lines highlight levels where price has previously reversed, potentially acting as support or resistance. A breakout above a pivot high may suggest bullish momentum, while a breakout below a pivot low may indicate bearish pressure.
The Breakout Signals provide visual cues for these events, useful for timing entries or exits. When "Show Last Breakout" is enabled, the chart focuses on the most recent signal, reducing clutter.
The Time Filter and background shading help traders concentrate on specific trading sessions, such as high-volatility periods. When disabled, the indicator tracks breakouts across all times.
Previous Day's Close Indicator (Regular Hours)This indicator was developed to replace TradingView's built-in previous close indicator—which erroneously uses the close from two trading days prior. By capturing the actual last trade during the standard session, this script provides a reliable and precise previous close level.
Key features include:
Accurate Previous Close: This indicator locks in the last trade of the regular session, ensuring you always see the true previous day close.
Customizable Display Options: Users can choose between a line or circle plot, with adjustable size settings to suit their charting preferences.
Enjoy!
Trend Trading IndicatorTrend Trading Indicator – Pine Script v5
Overview
The Trend Trading Indicator is designed to help traders identify market trends quickly and effectively. It highlights uptrends and downtrends using Exponential Moving Averages (EMAs) and provides clear buy and sell signals. The indicator is especially useful for detecting insider movements, marketing-driven price pumps, and potential death spirals in crypto and stock markets.
Key Features
✅ Fast-acting trend detection based on EMAs
✅ Clear buy & sell signals marked in blue (BUY) and red (SELL)
✅ Trend zones visually highlighted:
Green for bullish trends (uptrend)
Red for bearish trends (downtrend)
✅ Bold and visible labels for buy and sell signals
✅ Protects against insider selling & marketing hype cycles
✅ Alerts for crossover events
How It Works
Exponential Moving Averages (EMAs)
Short EMA (default: 50-period) represents fast market movement.
Long EMA (default: 100-period) represents slower trends.
When short EMA crosses above long EMA, it signals a buy opportunity.
When short EMA crosses below long EMA, it signals a sell opportunity.
Trend Zones
The area between the two EMAs is color-filled for better trend visualization.
Green Fill: Indicates a bullish trend where short EMA is above long EMA.
Red Fill: Indicates a bearish trend where short EMA is below long EMA.
Buy & Sell Labels
Buy Signal: Blue label “BUY” appears below the candle.
Sell Signal: Red label “SELL” appears above the candle.
Text is in black & bold for better visibility.
Alerts
Custom alerts notify traders when buy or sell conditions occur.
How to Use
Works best in crypto, forex, and stock markets.
Can be used in trend-following or breakout strategies.
Best suited for medium to long-term trades (adjust EMA settings for scalping).
This Trend Trading Indicator helps traders stay ahead of the market by visually identifying strong trends while reducing risks from insider manipulation and death spirals. 🚀
Donchian Trend Ribbon MTF HeatmapIf you're familiar with Donchian Channels, you probably already know how they work, so I won’t dive too deep into that.
This indicator builds upon the concept of Donchian Channels to create a Donchian Trend Ribbon MultiTimeframe (MTF) Heatmap. The aim is to visualize trend strength across multiple timeframes and provide a clearer picture of market direction.
How it Works:
Main Trend Calculation: The indicator calculates the main trend direction based on a user-defined period (e.g., 20 periods). You can adjust this length to fit your trading strategy.
Secondary Trend Analysis: It also calculates the trend direction for each of the 9 lower lengths. For example, if you set the length to 20, the secondary lengths would be 19, 18, ..., down to 11.
Trend Alignment Check: The indicator compares the trend direction from the lower lengths to the main trend direction to determine alignment.
Trend Ribbon Coloring: Based on this alignment, the trend ribbon changes color to reflect the strength and direction of the trend. The color intensity adjusts as the strength of the trend shifts.
Trend Colors:
Yellow: Strong uptrend
Dark Yellow: Weak uptrend
Red: Strong downtrend
Dark Red: Weak downtrend
Gray: Neutral or no strong trend
Additionally, weak trends are highlighted with emojis (😯 for weak long and 😡 for weak short), making it easy to spot when trends are fading.
Warning:
Entry points provided by this indicator may also indicate potential trend reversals, so use caution.
Consider utilizing a stop-loss line if you plan to take positions based on the signals generated by this tool.
Notes :
Non-Repainting: This indicator does not repaint, providing reliable historical signals.
Educational Use: The indicator is designed primarily for educational purposes and has not been backtested. Please use it as part of your broader analysis before making trading decisions.
Original Code by:
The original version of this code was created by LonesomeTheBlue. This enhanced version includes additional features such as multi-timeframe analysis and trend strength visualization.
Segment RegressionAs an example of the descriptive power of Pine Script, this very short example traces a 'segment regression', a result not entirely obvious with so few lines of code, repositioning them when the previous inference moves away from the graph beyond the pre-set limit.
A trick used is to restart the new inference segment
- from the maximum reached in the previous trend, when positive (slope>0)
- from the minimum reached in the previous trend, when negative (slope<0)
The result can in my opinion be easily used to build strategies.
CandelaCharts - Liquidity Key Zones (LKZ)📝 Overview
The Liquidity Key Zones indicator displays the previous high and low levels for daily, weekly, monthly, quarterly, and yearly timeframes. These levels serve as crucial price zones for trading any market or instrument. They are also high-probability reaction zones, ideal for trading using straightforward confirmation patterns.
Each of these levels plays a significant role in determining whether the market continues its momentum or reverses its bias. I like to think of these levels as dual magnets—they simultaneously attract and repel price. You might wonder how having opposing views can be useful. The key is to remain neutral about direction and establish your own rules to identify when these zones are likely to attract or repel price. I have my own set of rules, and you can develop yours.
📦 Features
MTF
Styling
⚙️ Settings
Day: Shows previous day levels
Week: Shows previous week levels
Month: Shows previous month levels
Quarter: Shows previous quarter levels
Year: Shows previous year levels
Show Average: Shows previous level average price
Show Open: Shows previous level open price
⚡️ Showcase
Daily
Weekly
Monthly
Quarterly
Yearly
Average
Open
📒 Usage
When the price breaks through a significant level, such as a daily, weekly, or monthly high or low, it often signals a potential reversal in market direction. This occurs because these levels represent key areas of support or resistance, where traders anticipate heightened activity, including profit-taking, stop-loss orders, or new positions being initiated.
Once the price breaches these levels, it may trigger a sharp reaction as market participants adjust their strategies, leading to a reversal. Monitoring price action and volume around these levels can provide valuable confirmation of such reversals.
Another effective approach to utilizing these pivot points is by incorporating them into a structured trading strategy, such as the X Model, which leverages multiple timeframes and technical tools to refine trade entries and exits.
X Model conditions:
(D1) Previous Day High (ERL)
(H1) Bullish FVG/IFVG/OB (IRL)
(m15) MSS / SMT
Only Short Above 00:00
By combining these elements, the X Model offers a comprehensive framework for leveraging pivot levels effectively, emphasizing confluence between liquidity zones, time-based rules, and multi-timeframe analysis to enhance trading accuracy and consistency.
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is generated when the price breaks below the previous low level.
Bullish Signal
A bullish signal is generated when the price breaks above the previous low level.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Money Flow Indicator (Chaikin Oscillator) with VWAPStrategy Overview
Entry Conditions:
Buy Entry:
The Chaikin Oscillator crosses above the signal line.
The current price is above the VWAP.
Sell Entry:
The Chaikin Oscillator crosses below the signal line.
The current price is below the VWAP.
Exit Conditions:
Profit Taking:
Take profit when a target profit is reached (e.g., a 2% increase from the entry price).
Stop Loss:
Set a stop loss, for example, at a 1% decline from the entry price.
Risk Management:
Manage risk by limiting each trade to no more than 1-2% of the account balance.
Calculate position size based on risk and trade accordingly.
Trend Confirmation:
Use other indicators (like moving averages) to confirm the overall trend and focus trades in the direction of the trend.
In an uptrend, prioritize buy entries; in a downtrend, prioritize sell entries.
Specific Trade Scenarios
Example 1: Buy Entry:
Enter a buy position when the Chaikin Oscillator crosses above the signal line and the price is above the VWAP.
Set a stop loss 1% below the entry price and a profit target 2% above the entry price.
Example 2: Sell Entry:
Enter a sell position when the Chaikin Oscillator crosses below the signal line and the price is below the VWAP.
Set a stop loss 1% above the entry price and a profit target 2% below the entry price.
Additional Considerations
Backtesting: Test this strategy with historical data to evaluate performance and make adjustments as needed.
Market Conditions: Pay attention to market volatility and economic indicators, adjusting the trading strategy flexibly.
Psychological Factors: Avoid emotional decisions and follow clear rules when trading.
ATR Levels and Zones with Signals📌 ATR Levels and Zones with Signals – User Guide Description
🔹 Overview
The ATR Levels and Zones with Signals indicator is a volatility-based trading tool that helps traders identify:
✔ Key support & resistance levels based on ATR (Average True Range)
✔ Buy & Sell signals triggered when price enters key ATR zones
✔ Breakout confirmations to detect high-momentum moves
✔ Dynamic Stop-Loss & Take-Profit suggestions
Unlike traditional ATR bands, this indicator creates layered ATR zones based on multiple ATR multipliers, allowing traders to gauge volatility and risk-adjust their trading strategies.
🔹 How It Works
🔸 The script calculates a baseline SMA (Simple Moving Average) of the price.
🔸 ATR (Average True Range) is then used to create six dynamic price levels above & below the baseline.
🔸 These levels define different risk zones—higher levels indicate increased volatility and potential trend exhaustion.
📈 ATR Zones Explained
🔹 Lower ATR Levels (Buying Opportunities)
📉 Lower Level 1-2 → Mild Oversold Zone (Potential trend continuation)
📉 Lower Level 3-4 → High Volatility Buy Zone (Aggressive traders start scaling in)
📉 Lower Level 5-6 → Extreme Oversold Zone (High-Risk Reversal Area)
🔹 If price enters these lower zones, it may indicate a potential buying opportunity, especially if combined with trend reversal confirmation.
🔹 Upper ATR Levels (Selling / Take Profit Zones)
📈 Upper Level 1-2 → Mild Overbought Zone (Potential pullback area)
📈 Upper Level 3-4 → High Volatility Sell Zone (Aggressive traders start scaling out)
📈 Upper Level 5-6 → Extreme Overbought Zone (High-Risk for Reversal)
🔹 If price enters these upper zones, it may indicate a potential selling opportunity or trend exhaustion, especially if momentum slows.
🔹 Sensitivity Modes
🔹 Aggressive Mode (More Frequent Signals) → Triggers buy/sell signals at Lower/Upper Level 3 & 4
🔹 Conservative Mode (Stronger Confirmation) → Triggers buy/sell signals at Lower/Upper Level 5 & 6
📌 Choose the mode based on your trading style:
✔ Scalpers & short-term traders → Use Aggressive Mode
✔ Swing & trend traders → Use Conservative Mode for stronger confirmations
🚀 How to Use the Indicator
🔹 For Trend Trading:
✅ Buy when price enters the lower ATR zones (especially in uptrends).
✅ Sell when price enters the upper ATR zones (especially in downtrends).
🔹 For Breakout Trading:
✅ Breakout Buy: Price breaks above Upper ATR Level 3 → Momentum entry for trend continuation
✅ Breakout Sell: Price breaks below Lower ATR Level 3 → Momentum short opportunity
🔹 Stop-Loss & Take-Profit Suggestions
🚨 Stop-Loss: Suggested at Lower ATR Level 6 (for longs) or Upper ATR Level 6 (for shorts)
🎯 Take-Profit: Suggested at Upper ATR Level 3 (for longs) or Lower ATR Level 3 (for shorts)
🔹 Why This Indicator is Unique
✔ Multiple ATR layers for better risk-adjusted trading decisions
✔ Combines ATR-based zones with SMA trend confirmation
✔ Both aggressive & conservative trading modes available
✔ Includes automatic stop-loss & take-profit suggestions
✔ Breakout signals for momentum traders
📢 Final Notes
✅ Free & open-source for the TradingView community!
⚠ Risk Warning: Always confirm signals with other confluences (trend, volume, support/resistance) before trading.
📌 Developed by: Maddog Blewitt
📩 Feedback & improvements are welcome! 🚀
Custom Index CompositeCustom Index Composite calculates an unweighted composite index by averaging the daily returns of multiple stock tickers. Instead of using price-level weighting, it focuses solely on percentage change, allowing you to compare diverse market themes side by side on a common basis.
Why Use a Custom Index Composite?
Unlike traditional indices that often lean on market capitalization or price-level data, a custom composite based solely on returns strips out the bias inherent to high-priced stocks. This provides several benefits:
Objective Cross-Comparison:
When stocks or market themes trade at very different price levels, it can be difficult to assess performance objectively. Using percentage returns, the composite creates an even playing field, enabling a clear comparison between different assets or themes.
Tailored Benchmarking:
By selecting and combining specific tickers, you can create benchmarks that better represent the segments or strategies you’re interested in. This is particularly useful when standard indices do not capture the nuances of your investment approach.
Performance Normalization:
Converting raw price data into daily percentage returns minimizes distortions that arise from price differences. This normalization helps in understanding true performance trends across the chosen tickers, making the composite index a more reliable gauge of relative market movement.
Custom Analysis Framework:
The indicator offers flexibility to adjust the lookback period (defaulting to about 3 months) so you can fine-tune the sensitivity of the index to recent market behavior. This enables you to either smooth out volatility or capture a more immediate trend, depending on your analytical needs.
Key Features:
Configurable Appearance:
You can easily configure the line color, line width, index name, and index name color via the options panel.
Ticker Configuration:
By default, you can enter up to 15 different tickers into the composite index. Technically, the indicator supports up to 40 tickers (these additional inputs are commented out by default to maintain performance), and you may enable them individually if required.
Calculated Bars Length:
The indicator uses a “Calculated bars length” setting, which is set by default to 63 days (approximately 3 months). This value can be adjusted, and it is recommended to use the greatest common denominator for consistent analysis.
How To Configure Your Chart:
Add the Indicator:
Place the Custom Index Composite on your chart.
Disable Main Symbol Visibility:
Hide the primary symbol’s plot and set its scale to “None” to prevent interference with the composite display.
Pin to Right Scale:
Set the scale of the first composite indicator to “Pinned to right scale.” This helps maintain consistency across different composite indicators.
Add Multiple Composites:
You can add additional composite indicators and set their scales to “Pinned to right scale” (or alternatively to “A”) for convenient comparison.
Limitations:
If a ticker symbol is set once in the options, it cannot be cleared to an empty value later. As a result, the symbol will continue to appear in the indicator’s title on the chart. The only way to remove an unwanted symbol is to completely reset the settings and re-enter your desired tickers.
Normalized RSI Trendline with DivergencesNormalized RSI Trendline with Divergences
🔹 Overview
The Normalized RSI Trendline with Divergences indicator enhances traditional RSI analysis by normalizing RSI values within a defined range and applying a trend-following approach. It also detects bullish and bearish divergences to highlight potential trend reversals.
🔹 Features
✔ Normalized RSI Calculation – The RSI values are normalized between -1 and 1 to provide a clearer representation of market momentum.
✔ Trend & Center Lines – A trendline based on linear regression and an adaptive moving average (ALMA) for smoother trend visualization.
✔ Divergence Detection – Identifies regular and hidden divergences, displaying signals directly on the chart.
✔ Customizable Parameters – Users can adjust the signal period, lookback range, trend length, and divergence sensitivity to fit different trading strategies.
🔹 How to Use
Trend Following: The trendline helps identify the overall market direction.
Divergence Signals:
🟢 Bullish Divergence (Potential upward reversal)
🔴 Bearish Divergence (Potential downward reversal)
🟩 Hidden Bullish Divergence (Trend continuation signal)
🟧 Hidden Bearish Divergence (Trend continuation signal)
This script is suitable for trend traders, swing traders, and divergence-based strategies. Customize the settings to match your preferred trading style. 🚀
📌 Disclaimer: This script is for educational purposes only and does not constitute financial advice. Always conduct your own analysis before making trading decisions.
EMA POD Indicator #gangesThis script is a technical analysis indicator that uses multiple Exponential Moving Averages (EMAs) to identify trends and track price changes in the market. Here's a breakdown:
EMA Calculation: It calculates six different EMAs (for periods 5, 10, 20, 50, 100, and 150) to track short- and long-term trends.
Trend Identification:
Uptrend: The script identifies an uptrend when the EMAs are in ascending order (EMA5 > EMA10 > EMA20 > EMA50 > EMA100 > EMA150).
Downtrend: A downtrend is identified when the EMAs are not in ascending order.
Trend Change Tracking: It tracks when an uptrend starts and ends, displaying the duration of the trend and the percentage price change during the trend.
Visuals:
It plots the EMAs on the chart with different colors.
It adds green and red lines to represent the ongoing uptrend and downtrend.
Labels are displayed showing when the uptrend starts and ends, along with the trend's duration and price change percentage.
In short, this indicator helps visualize trends, track their changes, and measure the impact of those trends on price.
Range Breakout [BigBeluga]Range Breakout is a dynamic channel-based indicator designed to identify breakout opportunities and price reactions within defined ranges. It automatically creates upper and lower bands with a midline, helping traders spot breakout zones, retests, and potential fakeouts.
🔵 Key Features:
Dynamic Channel Formation:
Automatically plots upper and lower channel bands with a midline based on ATR calculations.
Channels adjust upon breakout events or after a predefined number of bars to reflect new price ranges.
Breakout Detection:
Green circles appear when price breaks above the upper channel edge.
Red circles appear when price breaks below the lower channel edge.
A new channel is formed after each breakout, allowing traders to monitor evolving price ranges.
Retest Signals:
Upward-pointing green triangles signal a retest of the lower band, indicating potential support.
Downward-pointing red triangles indicate a retest of the upper band, suggesting possible resistance.
Filter Signals by Trends (New Feature):
Optional toggle to filter ▲ and ▼ signals based on channel breakout conditions.
When enabled:
In a bullish channel (confirmed by a green circle breakout), only ▲ signals are displayed.
In a bearish channel (confirmed by a red circle breakout), only ▼ signals are displayed.
Helps traders align retest signals with the prevailing trend for higher-quality trade setups.
Fakeout Identification:
'X' symbols appear when price breaks the upper or lower edge of the channel and quickly returns back inside.
Helps traders identify and avoid false breakouts.
🔵 Usage:
Breakout Trading: Use the green and red circle signals to identify potential breakout trades.
Retest Confirmation: Look for triangle markers to confirm retests of key levels, aiding in entry or exit decisions.
Fakeout Alerts: Utilize the 'X' signals to spot and avoid potential trap moves.
Dynamic Range Monitoring: Stay aware of changing market conditions with automatically updating channels.
Range Breakout is an essential tool for traders seeking to capitalize on range breakouts, retests, and fakeout scenarios. Its dynamic channels and clear visual signals provide a comprehensive view of market structure and potential trade setups.
Price Change IndicatorPrice Change Indicator (PCI)
Version: 1.0
Author: LazyTrader 🚀
🔍 Overview
The Price Change Indicator (PCI) helps traders visualize and compare price changes between the current bar and the previous bar. It provides a customizable display of price changes in two formats:
Percentage (%) Change – Relative price movement.
Natural Change – Absolute difference in price units.
⚙️ Key Features
✅ Customizable Calculation Method: Choose how the price change is calculated:
Opening Price
Closing Price
High
Low
✅ Flexible Display Format:
Show Percentage (%) Change.
Show Natural (Absolute) Change in price.
✅ Adjustable Sensitivity with Multiplier:
100 (Standard Change)
1000 (Small Change)
10000 (Tiny Change)
✅ Intuitive Labeling:
Green label (above bar) for increase.
Red label (below bar) for decrease.
No label if no change.
Large, easy-to-read labels for better visibility.
✅ Perfect for Any Market:
Stocks 📈
Forex 💱
Crypto 🚀
Commodities 🛢️
📊 How It Works
The indicator calculates the difference between the current and previous bar’s price based on your chosen method.
The result is displayed as either a percentage (%) or a natural price change.
If the price has increased, a green label is displayed above the bar.
If the price has decreased, a red label is displayed below the bar.
⚡ How to Use
Add the indicator to your chart.
Go to settings and customize:
Select calculation method (Open, Close, High, Low).
Choose display format (% or Natural Change).
Adjust multiplier for more sensitivity.
Analyze the labels to see price movements easily!
🔧 Settings Explained
Setting Description
Price Calculation Method: Choose Open, Close, High, or Low price for comparison.
Display Format: Show either % Change or Natural Change.
Multiplier: Apply 100, 1000, or 10000 to scale small price changes.
Show Labels: Toggle labels on/off.
🎯 Best Use Cases
🔹 Identifying strong price movements
🔹 Spotting trends and momentum shifts
🔹 Comparing price movement intensity
🔹 Works for scalping, swing trading, and long-term analysis
TradFi Fundamentals: Enhanced Macroeconomic Momentum Trading Introduction
The "Enhanced Momentum with Advanced Normalization and Smoothing" indicator is a tool that combines traditional price momentum with a broad range of macroeconomic factors. I introduced the basic version from a research paper in my last script. This one leverages not only the price action of a security but also incorporates key economic data—such as GDP, inflation, unemployment, interest rates, consumer confidence, industrial production, and market volatility (VIX)—to create a comprehensive, normalized momentum score.
Previous indicator
Explanation
In plain terms, the indicator calculates a raw momentum value based on the change in price over a defined lookback period. It then normalizes this momentum, along with several economic indicators, using a method chosen by the user (options include simple, exponential, or weighted moving averages, as well as a median absolute deviation (MAD) approach). Each normalized component is assigned a weight reflecting its relative importance, and these weighted values are summed to produce an overall momentum score.
To reduce noise, the combined momentum score can be further smoothed using a user-selected method.
Signals
For generating trade signals, the indicator offers two modes:
Zero Cross Mode: Signals occur when the smoothed momentum line crosses the zero threshold.
Zone Mode: Overbought and oversold boundaries (which are user defined) provide signals when the momentum line crosses these preset limits.
Definition of the Settings
Price Momentum Settings:
Price Momentum Lookback: The number of days used to compute the percentage change in price (default 50 days).
Normalization Period (Price Momentum): The period over which the price momentum is normalized (default 200 days).
Economic Data Settings:
Normalization Period (Economic Data): The period used to normalize all economic indicators (default 200 days).
Normalization Method: Choose among SMA, EMA, WMA, or MAD to standardize both price and economic data. If MAD is chosen, a multiplier factor is applied (default is 1.4826).
Smoothing Options:
Apply Smoothing: A toggle to enable further smoothing of the combined momentum score.
Smoothing Period & Method: Define the period and type (SMA, EMA, or WMA) used to smooth the final momentum score.
Signal Generation Settings:
Signal Mode: Select whether signals are based on a zero-line crossover or by crossing user-defined overbought/oversold (OB/OS) zones.
OB/OS Zones: Define the upper and lower boundaries (default upper zones at 1.0 and 2.0, lower zones at -1.0 and -2.0) for zone-based signals.
Weights:
Each component (price momentum, GDP, inflation, unemployment, interest rates, consumer confidence, industrial production, and VIX) has an associated weight that determines its contribution to the overall score. These can be adjusted to reflect different market views or risk preferences.
Visual Aspects
The indicator plots the smoothed combined momentum score as a continuous blue line against a dotted zero-line reference. If the Zone signal mode is selected, the indicator also displays the upper and lower OB/OS boundaries as horizontal lines (red for overbought and green for oversold). Buy and sell signals are marked by small labels ("B" for buy and "S" for sell) that appear at the bottom or top of the chart when the score crosses the defined thresholds, allowing traders to quickly identify potential entry or exit points.
Conclusion
This enhanced indicator provides traders with a robust approach to momentum trading by integrating traditional price-based signals with a suite of macroeconomic indicators. Its normalization and smoothing techniques help reduce noise and mitigate the effects of outliers, while the flexible signal generation modes offer multiple ways to interpret market conditions. Overall, this tool is designed to deliver a more nuanced perspective on market momentum.
Market Structure [ActiveQuants]The Market Structure indicator is a powerful tool designed to help traders identify key market structure shifts and change of character (CHoCH) points. By plotting swing highs, swing lows, and structural breaks , this indicator allows traders to track price action dynamics, improving trade execution and strategy development.
█ KEY FEATURES
Market Structure Visualization : Automatically detects and plots pivot highs and pivot lows , highlighting structural points on the chart.
Change of Character (CHoCH) Detection : Identifies bullish and bearish CHoCH events, marking key shifts in market sentiment.
Customizable Sensitivity : Adjust the pivot sensitivity to fine-tune market structure identification based on different trading styles and timeframes.
Dynamic Labeling & Line Management : Automatically removes old lines and labels to keep the chart clean and focused on recent price action.
User-Defined Display Options : Customize the colors, visibility, and number of bars shown to match your personal trading preferences.
█ CONCLUSION
The Market Structure & CHoCH Indicator is an essential tool for traders who rely on price action and structure-based strategies. By visually mapping key swing points and structure shifts , it enhances decision-making, helping traders align with the market trend and spot potential reversals.
█ IMPORTANT
⚠ CHoCH signals should be used in conjunction with other confluences such as supply & demand zones, order flow, or trend confirmation.
⚠ Adjust pivot sensitivity based on your preferred timeframe and asset class to optimize accuracy.
Incorporate this indicator into your trading workflow to enhance market structure analysis and refine entry & exit strategies .
📈 Happy trading! 🚀
Breakout indicatorThis indicator helps traders identify potential breakout levels based on the highest high and lowest low of the last N candles, inspired by the classic Turtle Trading strategy. The period (N) is fully customizable, allowing you to adapt it to your trading style. For daily charts, a period between 50 and 100 is recommended.
The indicator dynamically plots horizontal lines representing the highest high and lowest low over the selected period. These lines are updated in real-time as price action evolves. A breakout is confirmed when the price closes above the high line (for a bullish breakout) or below the low line (for a bearish breakout).
Customize the appearance of the lines with options for thickness, color, and style (solid, dotted, or dashed) to suit your chart preferences. Perfect for traders looking to implement a simple yet effective breakout strategy!
Key Features:
Editable period (N) for high/low calculation.
Real-time updates of high/low levels.
Customizable line thickness, color, and style.
Usage:
Use on daily charts for swing trading or position trading.
Combine with other indicators or price action analysis for better confirmation.
Window Seasonality IndicatorThis is a time window seasonal returns indicator. That is, it will provide the mean returns for a given time window based on a given number of lookbacks set by the user. The script finds matching time windows, e.g., 1st week of March going back 5 years or 9:00-10:00 window of every day going 50 days, and then calculates an average return for that window close price with respect to the close price in the immediately preceding time window, e.g. last week of February or 8:00-9:00 close price, respectively.
There are 4 input options:
1) Historical Periods to Average: Set the number of matching historical windows with which to calculate an average price. The max is 730 lookback windows. Note: for monthly or weekly windows, setting too large a number will cause the script to error out.
2) Use Open Price: calculates the seasonal returns using the open price rather than close price.
3) Show Bands: select from 1 Gaussian standard deviation or a nonparamateric ranked confidence interval. As a rough heuristic, the Gaussian band requires at least 30 lookback periods, and the ranked confidence interval requires 50 or more.
4) Upper Percentile: set the upper cutoff for ranked confidence interval.
5) Lower Percentile: set the lower cutoff for ranked confidence interval.
Please be aware, this indicator does not use rigorous statistical methodology and does not imply predictive power. You'll notice the range bands are very wide. Do not trade solely based on this indicator! Certain time windows, such as weekly and monthly, will make more sense applied to commodities, where annual cycles play a role in its supply and demand dynamics. Hourly windows are more useful in looking at equities markets. I like to look at equities with 1-hr windows to see if there is some pattern to overnight behavior or for market open and close.
Tillson T3 Moving Average (improved)T3 Moving Average – Advanced Smoothing for Trend Analysis
Overview
The Tillson T3 Moving Average (T3 MA) is a superior smoothing moving average that reduces lag while maintaining responsiveness to price changes. Unlike traditional moving averages such as SMA, EMA, or WMA, the T3 applies multiple levels of smoothing, making it more adaptive to market conditions.
How It Works
The T3 MA is an exponentially smoothed moving average with a factor that controls the level of smoothing. This multi-layered smoothing process allows it to:
✅ React faster than a standard EMA while still filtering out market noise.
✅ Smooth out price fluctuations better than SMA or WMA, reducing false signals.
✅ Reduce lag compared to traditional moving averages, making it useful for both trend identification and entry/exit decisions.
How to Use This Script
🔹 Trend Identification – Use T3 MA as a dynamic trend filter. Price above T3 signals an uptrend, while price below signals a downtrend.
🔹 Direction Signal – The direction of the T3 MA (i.e. sloping upwards or downwards) can itself be used as a signal. The script allows the MA line to be colored, so it's easier to spot.
🔹 Crossover Signals – Combine T3 with another moving average (e.g., a shorter T3 or EMA, SMA, etc.) to generate trade signals when they cross.
🔹 Support & Resistance – The T3 can act as dynamic support and resistance in trending markets.
Features of This Script
✅ Custom Source Selection – Apply T3 not just to price, but also to any indicator (e.g., RSI, volume, etc.).
✅ Customizable Length & Smoothing – Adjust how smooth and responsive the T3 MA is.
✅ Optional Color Changes – The T3 MA can dynamically change color based on trend direction, making it easier to read.
✅ Versatile for Any Strategy – Works well in trend-following, mean-reversion, and breakout trading systems.
This script is ideal for traders looking for a smoother, more adaptive moving average that reduces noise while remaining reactive to price action. 🚀