Yearly Percentage ChangeThe "Yearly Percentage Change" indicator analyzes the long-term performance of an asset over the past year (252 trading days). It helps traders identify the strength of an asset at first glance by the color of the drawing.
It calculates two key values:
The percentage change from the closing price 252 days ago (Year-over-Year performance).
The percentage change from the lowest price of the last 252 days.
These values are visualized with colored lines and a performance label.
📊 Features & Benefits
1️⃣ Yearly Percentage Change (YoY)
Compares the current closing price with the closing price from 252 days ago.
Draws a solid line from the previous year’s close to the current price.
Line color indicates market performance:
🔴 Red → Price increased up to 100%.
🟡 Yellow → Price increased between 100% and 200%.
🟢 Green → Price increased more than 200%.
2️⃣ 252-Day Low & Its Performance
Identifies the lowest price in the last 252 days.
Draws a dashed line from this low to the current price.
Line color reflects the performance since the low:
🔴 Red → Price increased up to 100%.
🟡 Yellow → Price increased between 100% and 200%.
🟢 Green → Price increased more than 200%.
3️⃣ Informative Performance Label
Displays two key values:
"YoY" → Percentage change from the closing price 252 days ago.
"Low252" → Percentage change from the lowest price in the past 252 days.
Label color depends on the YoY movement.
Educational
Stock Highs Tracker with IndicesThis Pine Script indicator tracks stock highs and compares them with major indices (Nifty, Nifty 500, CNX-SmallCap, and CNX-MidCap). Here’s what it does:
1. Retrieves and Displays Key Price Metrics
All-Time High (ATH): The highest price the stock has ever reached.
52-Week High: The highest price in the last 252 trading days.
Current Price: The stock’s closing price.
2. Calculates Percentage Differences
% from ATH: How much the stock is below its all-time high.
% from 52WKH: How much the stock is below its 52-week high.
3. Fetches and Compares with Indices
It retrieves similar metrics (ATH, 52-Week High, Current Price, % from ATH, % from 52WKH) for:
Nifty 50
Nifty 500
CNX-SmallCap
CNX-MidCap
This helps in assessing whether the stock's movement aligns with broader market trends.
4. Displays Data in a Table
The script creates a table positioned at the top-right corner.
It color-codes different rows for easy readability.
The table compares the stock’s performance against the major indices.
Use Case
Helps traders and investors track stock highs relative to market indices.
Identifies whether the stock is outperforming or underperforming the broader market.
Market Snap Shot with Pine ScreenerMarket Snap Shot
The Market Snap Shot is a comprehensive technical analysis tool designed to track and display key price metrics across multiple timeframes, including daily, weekly, monthly, quarterly, and yearly data. This script provides a range of essential calculations for traders and investors, enabling them to assess price action, volatility, and market trends at a glance.
Features:
Daily Metrics: Includes the daily percentage change, closing range relative to the daily high/low.
Weekly Metrics: Tracks weekly open, close, range, and calculates week-to-date performance for a broader market view.
Monthly Metrics: Provides similar calculations for monthly price action, offering insights into monthly performance.
Quarter-to-Date (QTD): Displays performance for the current quarter, offering insights into quarterly price movements.
Year-to-Date (YTD): Calculates year-to-date price change, helping users track performance relative to the start of the year.
52-Week High/Low: Displays the current price's distance from the 52-week high and low, giving context to long-term price levels.
Usage:
Traders can use this screener to quickly assess the current market position and make informed decisions based on short-term and long-term trends.
Investors can leverage the 52-week and YTD metrics to gauge the overall strength of an asset in the market.
The tool is versatile for both active traders looking for real-time performance data and for those focusing on longer-term market trends.
Instructions:
This script displays multiple metrics such as percentage changes and range data for daily, weekly, monthly, quarterly, and yearly timeframes. It is designed to be used as a screener tool to assess price action and monitor performance across these key time periods.
Warning:
The "Market Snap Shot" does not provide buy or sell signals but rather serves as a performance tracking tool. Users are encouraged to use this data in conjunction with other technical and fundamental analysis tools.
23/35 SR Channels23/35 SR Channels Indicator
The 23/35 SR Channels Indicator is designed to automatically identify key algorithmic support and resistance zones during intraday trading by focusing on specific candle patterns at the 23rd and 35th minutes of each hour.
How It Works:
Key Candle Detection:
The indicator monitors the 23rd and 35th minute candles of every hour. At these moments, it uses the candle’s high and low (or a three‑candle range centered on those minutes) to define the boundaries of a support/resistance channel.
Channel Construction and Mitigation:
Once a channel is formed from a key candle, a rectangular box is drawn to represent the channel. If a new channel (from a later 23 or 35 minute candle) overlaps an existing channel of the same type, the older channel is automatically considered "mitigated" and is removed from the chart, ensuring that only the most recent (and typically more relevant) level is displayed.
Visual Enhancement:
The indicator can also color the 23 and 35 minute candles, making them easier to identify. The channels themselves extend to the right for a fixed number of bars, providing a visual area where price might interact with these important levels, or can be extended to the current bar/until mitigated.
Benefits for Traders:
Automated Level Detection:
By focusing on the 23rd and 35th minute candles, the indicator automatically captures key support/resistance zones without manual intervention.
Dynamic Channel Updates:
As new candles form, overlapping channels are replaced with newer ones, helping to keep the chart clear and focused on the most relevant levels.
Intraday Focus:
The targeted timing helps intraday traders quickly spot potential reversal or breakout areas, enhancing decision-making during fast-moving markets.
Fair Value Gap FinderFunctionality
Detection of Fair Value Gaps:
A bullish Fair Value Gap (FVG Up) is identified when the low of two candles before the current bar (low ) is greater than the high of the current bar (high ).
A bearish Fair Value Gap (FVG Down) is identified when the high of two candles before the current bar (high ) is lower than the low of the current bar (low ).
Color Coding:
Bullish Fair Value Gaps are highlighted in green to indicate potential areas of support.
Bearish Fair Value Gaps are highlighted in red to indicate potential areas of resistance.
Visualization Using Rectangles:
If an FVG is detected, the script creates a rectangle spanning a fixed number of bars (right=bar_index+5) to visualize the price inefficiency.
The rectangle extends from the upper to the lower boundary of the gap and has a semi-transparent fill (bgcolor=color.new(color, 90)) for better readability.
Implementation Details
Variable Initialization: The script defines floating-point variables (fvgUpTop, fvgUpBottom, fvgDownTop, fvgDownBottom) to store the price levels of identified gaps.
Conditional Assignments: When an FVG is detected, the corresponding top and bottom boundaries are assigned to the respective variables.
Box Creation: The box.new function is used to draw a rectangle on the chart, marking the FVG zones for better visualization.
DOCLAD_TEAM_TRADING_PROJECTDOCLAD_SYSTEM - Combined Indicator Description
This TradingView indicator implements W.D. Gann's Square of 9 concept with several visual enhancements to help traders identify key support and resistance levels. The indicator automatically adapts to different market types (forex or stocks) and includes the following features:
Key Features
Support and Resistance Levels: Automatically calculates and displays multiple support and resistance levels based on Gann's Square of 9 theory, with customizable colors (green for support, red for resistance by default).
Daily Open Line: Shows the daily opening price as a reference point, which serves as the base for all Gann calculations.
Previous 4H Range Box: Displays a rectangular box showing the high-low range of the last 4-hour candle from the previous day, helping traders identify important price zones.
Vertical Time Lines: Optional time-based vertical lines that mark 4-hour intervals, helping to visualize potential time-based turning points.
Deviation Mode: Allows for fine-tuning of support and resistance levels with percentage-based deviations.
Customization Options
Line Styles: Choose between solid, dashed, or dotted lines
Colors: Customize colors for support lines, resistance lines, daily open line, 4H rectangle, and time lines
Line Width: Adjust the thickness of all lines (1-5 pixels)
Opacity Settings: Control the transparency of various elements
Deviation Settings: Apply percentage-based adjustments to support and resistance levels
Technical Implementation
The indicator:
Automatically determines appropriate pip values based on the instrument
Calculates Gann levels using the Square of 9 mathematical principle
Finds the nearest support and resistance levels relative to the current price
Creates both plot-based and line-based visualizations
Updates dynamically as price moves
Usage
This indicator is particularly useful for swing traders and day traders who follow Gann methods. The combination of price-based levels (support/resistance) and time-based markers (vertical lines) helps identify potential reversal zones where price and time align according to Gann's principles.
The 4-hour rectangular box from the previous day often serves as an important reference zone that price may revisit or respect.
The indicator works on all timeframes but is most effective on 15-minute to 4-hour charts, where the time-based components provide the most value.
Crypto Fear & Greed Score [Underblock]Crypto Fear & Greed Score - Methodology & Functioning
Introduction
The Crypto Fear & Greed Score is a comprehensive indicator designed to assess market sentiment by detecting extreme conditions of panic (fear) and euphoria (greed). By combining multiple technical factors, it helps traders identify potential buying and selling opportunities based on the emotional state of the market.
This indicator is highly customizable, allowing users to adjust weight parameters for RSI, volatility, Bitcoin dominance, and trading volume, making it adaptable to different market conditions.
Key Components
The indicator consists of two primary sub-scores:
Fear Score (Panic) - Measures the intensity of fear in the market.
Greed Score (Euphoria) - Measures the level of overconfidence and excessive optimism.
The difference between these two values results in the Net Score, which indicates the dominant market sentiment at any given time.
1. Relative Strength Index (RSI)
The indicator utilizes multiple RSI timeframes to measure momentum and overbought/oversold conditions:
RSI 1D (Daily) - Captures medium-term sentiment shifts.
RSI 4H (4-hour) - Identifies short-term market movements.
RSI 1W (Weekly) - Helps detect long-term overbought/oversold conditions.
2. Volatility Analysis
High volatility is often associated with fear and panic-driven selling.
Low volatility in bullish markets may indicate complacency and overconfidence.
3. Bitcoin Dominance (BTC.D)
Bitcoin dominance provides insights into capital flow between Bitcoin and altcoins:
Rising BTC dominance suggests fear as investors move into BTC for safety.
Declining BTC dominance indicates increased risk appetite and potential market euphoria.
4. Buying and Selling Volume
The indicator analyzes both buying and selling volume, ensuring a clearer confirmation of market sentiment.
High buying volume in uptrends reinforces bullish momentum.
Spikes in selling volume indicate panic and possible market bottoms.
Calculation Methodology
The indicator allows users to adjust weight parameters for each component, making it adaptable to different trading strategies. The formulas are structured as follows:
Fear Score (Panic Calculation)
Fear Score = (1 - RSI_1D) * W_RSI1D + (1 - RSI_4H) * W_RSI4H + (1 - Dominance) * W_Dominance + Volatility * W_Volatility + Sell Volume * W_SellVolume
Greed Score (Euphoria Calculation)
Greed Score = RSI_1D * W_RSI1D + RSI_4H * W_RSI4H + Dominance * W_Dominance + (1 - Volatility) * W_Volatility + Buy Volume * W_BuyVolume
Net Fear & Greed Score
Net Score = (Greed Score - Fear Score) * 100
Interpretation:
Above 70: Extreme greed -> possible overbought conditions.
Below -70: Extreme fear -> potential buying opportunity.
Near 0: Neutral market sentiment.
Trend Reversal Detection
The indicator includes two moving averages for enhanced trend detection:
Short-term SMA (50-periods) - Reacts quicklier to changes in sentiment.
Long-term SMA (200-periods) - Captures broader trend reversals.
How Crossovers Work:
Short SMA crossing above Long SMA -> Potential bullish reversal.
Short SMA crossing below Long SMA -> Possible bearish trend shift.
Alerts for SMA crossovers help traders act on momentum shifts in real-time.
Customization and Visualization
The Net Score dynamically changes color: green for greed, red for fear.
Users can adjust weightings directly from settings, avoiding manual script modifications.
Reference levels at 70 and -70 provide clarity on extreme market conditions.
Conclusion
The Crypto Fear & Greed Score provides a powerful and objective measure of market sentiment, helping traders navigate extreme conditions effectively.
🟢 If the Net Score is below -70, panic may present a buying opportunity.
🔴 If the Net Score is above 70, excessive euphoria may indicate a selling opportunity.
⚖️ Neutral values suggest a balanced market sentiment.
By customizing weight parameters and utilizing trend reversal alerts, traders can gain a deeper insight into market psychology and make more informed trading decisions. 🚀
RSI and EMA crossover with big candlesThis TradingView indicator identifies big bullish and bearish candles using RSI, EMA crossovers, and wick analysis. It helps traders spot potential trend continuation or reversal points by labeling significant price movements and providing real-time alerts.
NOTE: THIS WORKS BEST ON 2 MINS TIME FRAME ONLY
Key Features:
✅ Big Candle Detection:
Detects large candles based on body size and recent price action.
Differentiates between bullish (green) and bearish (red) candles.
✅ Wick Analysis & RSI Filtering:
Ensures candles have relatively small wicks for stronger signals.
RSI confirmation:
Bullish signals require RSI above 59.
Bearish signals require RSI below 40.
✅ Candle Counting & Labeling:
Labels bullish and bearish candles with sequential numbers.
Adds PUTS and CALLS labels when an 8 EMA crosses the 21 EMA.
Adjusts label positioning for better visibility.
✅ Configurable Alerts for #2 Candle:
Alerts trigger when the second bullish or bearish candle is detected.
Users can enable/disable alerts from the script settings.
✅ EMA Crossover Signals:
Bullish crossover (8 EMA above 21 EMA): Displays a "CALLS" label below the candle.
Bearish crossover (8 EMA below 21 EMA): Displays a "PUTS" label above the candle.
Usage:
📊 Trend Confirmation: Use the big candle signals + EMA crossover for stronger trade setups.
🔔 Alerts: Get notified when the second big candle forms.
📉 Reversals & Continuation Patterns: Identify shifts in momentum early.
This script is perfect for traders looking for a clean and powerful price action-based indicator with automated alerts. 🚀
[TehThomas] - ICT Liquidity sweepsThe ICT Liquidity Sweeps Indicator is designed to track liquidity zones in the market areas where stop-losses and pending orders are typically clustered. This indicator marks buyside liquidity (resistance) and sellside liquidity (support), helping traders identify areas where price is likely to manipulate liquidity before making a significant move.
This tool is based on Inner Circle Trader (ICT) Smart Money Concepts, which emphasize how institutional traders, or “Smart Money,” manipulate liquidity to fuel price movements. By identifying these zones, traders can anticipate liquidity sweeps and position themselves accordingly.
⚙️ How It Works
1️⃣ Detects Key Liquidity Zones
The script automatically identifies significant swing highs and swing lows in price action using a pivot-based method.
A swing high (buyside liquidity) is a peak where price struggles to break higher, forming a resistance level.
A swing low (sellside liquidity) is a valley where price struggles to go lower, creating a support level.
These liquidity points are prime targets for liquidity sweeps before a true trend direction is confirmed.
2️⃣ Draws Liquidity Lines
Once a swing high or low is identified, a horizontal line is drawn at that level.
The lines extend to the right, serving as future liquidity targets until they are broken.
The indicator allows customization in terms of color, line width, and maximum number of liquidity lines displayed at once.
3️⃣ Handles Liquidity Sweeps
When price breaks a liquidity level, the indicator reacts based on the chosen action setting:
Dotted/Dashed: The line remains visible but changes style to indicate a sweep.
Delete: The line is completely removed once price has interacted with it.
This feature ensures that traders can easily spot where liquidity has been taken and determine whether a reversal or continuation is likely.
4️⃣ Prevents Chart Clutter
To maintain a clean chart, the script limits the number of liquidity lines displayed at any given time.
When new liquidity zones are formed, the oldest lines are automatically removed, keeping the focus on the most relevant liquidity zones.
🎯 How to Use the ICT Liquidity Sweeps Indicator
🔍 Identifying Liquidity Grabs
This indicator helps you identify areas where Smart Money is targeting liquidity before making a move.
Buyside Liquidity (BSL) Sweeps:
Occur when price spikes above a resistance level before reversing downward.
Indicate that Smart Money has hunted stop-losses and buy stops before driving price lower.
Sellside Liquidity (SSL) Sweeps:
Occur when price drops below a support level before reversing upward.
Indicate that Smart Money has collected liquidity from stop-losses and sell stops before pushing price higher.
📈 Combining with Market Structure Shifts (MSS)
One of the best ways to use this indicator is in conjunction with our Market Structure Shifts Indicator.
Liquidity sweeps + MSS Confirmation give strong high-probability trade setups:
Wait for a liquidity sweep (price takes out a liquidity level).
Look for an MSS in the opposite direction (e.g., price sweeps a high, then breaks a recent low).
Enter the trade in the new direction with stop-loss above/below the liquidity sweep.
📊 Entry & Exit Strategies
Long Trade Example:
Price sweeps a key sellside liquidity level (SSL) → creates a false breakdown.
MSS confirms a reversal (price breaks structure upwards).
Enter long position after confirmation.
Stop-loss below the liquidity grab to minimize risk.
Short Trade Example:
Price sweeps a key buyside liquidity level (BSL) → takes liquidity above resistance.
MSS confirms a bearish move (price breaks a key support level).
Enter short position after confirmation.
Stop-loss above the liquidity grab.
🚀 Why This Indicator is a Game-Changer
✅ Helps Identify Smart Money Manipulation – Understand where institutions are likely to grab liquidity before the real move happens.
✅ Enhances Market Structure Analysis – When paired with MSS, liquidity sweeps become powerful signals for trend reversals.
✅ Filters Out False Breakouts – Many traders get caught in liquidity grabs. This indicator helps avoid bad entries.
✅ Keeps Your Chart Clean – The auto-limiting feature ensures that only the most relevant liquidity levels remain visible.
✅ Works on Any Timeframe – Whether you’re a scalper, day trader, or swing trader, liquidity concepts apply universally.
📌 Final Thoughts
The ICT Liquidity Sweeps Indicator is a must-have tool for traders who follow Smart Money Concepts. By tracking liquidity levels and highlighting sweeps, it allows traders to enter trades with precision while avoiding false breakouts.
When combined with Market Structure Shifts (MSS), this strategy becomes even more powerful, offering traders an edge in spotting reversals and timing entries effectively.
__________________________________________
Thanks for your support!
If you found this idea helpful or learned something new, drop a like 👍 and leave a comment—I’d love to hear your thoughts! 🚀
Make sure to follow me for more price action insights, free indicators, and trading strategies. Let’s grow and trade smarter together! 📈✨
18:00 Wick Gap Rectangles18:00 wick gaps, the upper and lower wick gaps are marked out on each 18:00 candle with a customization feature to have all 18:00 wick gaps spanning over a certain time period on your chart.
MACD Divergence all in oneMACD Divergence all in one
It can also be named as MACD dual divergence detector pro !
A sophisticated yet user-friendly tool designed to identify both bullish and bearish divergences using the MACD (Moving Average Convergence Divergence) indicator. This advanced script helps traders spot potential trend reversals by detecting hidden momentum shifts in the market, offering a comprehensive solution for divergence trading.
🎯 Key Features:
• Automatic detection of bullish and bearish divergences
• Clear visual signals with color-coded lines (Green for bullish, Red for bearish)
• Smart filtering system to eliminate false signals
• Customizable parameters to match your trading style
• Clean, uncluttered chart presentation
• Optimized performance for real-time analysis
• Easy-to-read labels showing divergence types
• Built-in signal spacing to avoid clustering
📊 How it works:
The indicator uses an advanced algorithm to analyze the relationship between price action and MACD momentum to identify:
Bullish Divergences:
- Price makes higher lows while MACD shows lower lows
- Signals potential trend reversal from bearish to bullish
- Marked with green lines and upward labels
Bearish Divergences:
- Price makes lower highs while MACD shows higher highs
- Signals potential trend reversal from bullish to bearish
- Marked with red lines and downward labels
⚙️ Customizable Settings:
1. MACD Parameters:
- Fast Length (default: 12)
- Slow Length (default: 26)
- Signal Length (default: 9)
2. Divergence Detection:
- Left/Right Pivot Bars
- Divergence Lookback Period
- Minimum/Maximum Divergence Length
- Divergence Strength Filter
3. Visual Settings:
- Clear color coding for easy identification
- Adjustable line thickness
- Customizable label size
💡 Best Practices:
- Most effective on higher timeframes (1H, 4H, Daily)
- Combine with support/resistance levels
- Use with trend lines and price action
- Consider volume confirmation
- Best results during trending markets
- Use appropriate stop-loss levels
🎓 Trading Tips:
1. Look for bullish divergences near support levels
2. Watch for bearish divergences near resistance zones
3. Confirm signals with other technical indicators
4. Consider market context and overall trend
5. Use proper position sizing and risk management
⚠️ Important Notes:
- Past performance doesn't guarantee future results
- Always use proper risk management
- Test settings on historical data first
- Different timeframes may require parameter adjustments
- Not all divergences lead to reversals
Created by: Anmol-max-star
Last Updated: 2025-02-25 16:15:08 UTC
📌 Regular updates and improvements planned!
Disclaimer:
This indicator is for informational purposes only. Always conduct your own analysis and use proper risk management techniques. Trading involves risk of loss, and past performance does not guarantee future results.
🤝 Support:
Feel free to leave comments for:
- Suggestions
- Improvements
- Feature requests
- Bug reports
- General feedback
Your feedback helps make this tool better for everyone!
Happy Trading and May the Trends Be With You! 📈
Stock Highs TrackerThis indicator tracks key stock price levels including the all-time high (ATH), 52-week high, and current price.
It calculates the percentage difference of the current price from both the ATH and 52-week high.
The data is displayed in a table at the top-right corner of the chart, allowing traders to quickly assess the stock’s performance relative to its historical highs.
This is useful for identifying stocks trading near their highs or experiencing significant pullbacks.
Islamic Tijarat -Dual Relative StrengthIslamic Tijarat - Dual Relative Strength
Islamic Tijarat - Dual Relative Strength is a powerful indicator designed to compare the relative performance of two securities, such as a stock against its sector index or Nifty 50 (default benchmark) . This helps traders assess whether a stock is outperforming (> 0) or underperforming (< 0) relative to the chosen benchmark.
Key Features:
✔ Relative Strength Comparison – Measure the performance of a stock relative to Nifty 50, industry index, or sector index.
✔ Multiple Timeframes – Works best on Daily Timeframe (TF) but can also be applied to Weekly, Monthly, or Intraday charts based on the preferred calculation period.
✔ Customizable Calculation Period – Choose the desired number of hours when applying it to smaller timeframes.
✔ Box Table Display – Provides a clear performance comparison against both Nifty 50 and the selected sector index .
✔ Toggle Color Option on Crossovers – Visually highlights significant crossovers in relative strength for better readability.
✔ Enhanced Label Display – Fixed label visibility issue when plot options were disabled.
✔ Superimposed Price Action on RS Line – In addition to standard Relative Strength (RS) behavior, users can now overlay price action movements onto the RS line for a more holistic analysis.
✔ Customizable Moving Averages for RS – Added SMA/EMA (length: 9) to smoothen the RS calculation, helping traders filter noise and identify trends more effectively.
Usage:
✅ Compare stock performance against Nifty 50 , industry index, sector index, or any other security within the same sector.
✅ Identify strength and weakness trends over different timeframes.
✅ Use crossovers, trend direction, and price action integration for better decision-making.
This brings enhanced functionality, improved visualization, and bug fixes, making it a must-have tool for traders focusing on relative strength analysis.
LineReg Candles with Hma filterOverview
Purpose:
The indicator creates “LinReg Candles” by recalculating OHLC values using linear regression (to smooth out noise) and overlays additional features such as a customizable signal line and an HMA (Hull Moving Average) filter for trend detection. It also plots buy/sell signals and supports alerts.
Customization:
Users can adjust settings for signal smoothing (choosing SMA, EMA, or WMA), HMA periods (preset for Scalping/Intraday or custom values), linear regression length, colors, display options, and alert messages. Inputs are organized into groups for clarity.
Input Definitions
Signal Settings:
signal_length and smoothingType define the period and method used to smooth the close price, creating a signal line.
HMA Filter Settings:
A dropdown (t_type) lets you choose between Scalping, Intraday, or Custom. Based on this, three HMA periods (hma1, hma2, hma3) are set either to fixed values or user-defined custom inputs.
LinReg Settings:
Users can toggle linear regression for OHLC values (lin_reg) and set its period (linreg_length) to reduce price noise.
Color and Display Settings:
These control the colors for buy/sell candles, default bullish/bearish candles, markers, and background highlighting. Display toggles decide whether to show the background, signal line, HMA filter, and the recalculated candles.
Alert and Plot Customization:
Alerts can be enabled with custom messages. Additionally, line width and transparency for the plotted signal and HMA lines are adjustable.
Function Definitions
calcOHLC Function:
Computes OHLC values using linear regression if enabled. Otherwise, it returns the raw price values. This helps in reducing noise.
calcSignalLine Function:
Applies the chosen moving average (SMA, EMA, or WMA) to smooth the recalculated close values and generate a signal line.
getBaseCandleColor Function:
Determines the candle’s base color. It assigns buy/sell colors if specific crossover conditions are met; if not, it defaults to bullish (green) or bearish (red) based on the open/close relationship.
HMA Filter Calculations
HMA Computation:
The script calculates three HMAs (ma1, ma2, ma3) for different periods.
Trend Determination:
It sets a bullish condition (bcn) when ma3 is lower than both ma1 and ma2 with ma1 above ma2. Conversely, a bearish condition (scn) is set when ma3 is higher and the order of the HMAs indicates a downtrend.
Color Coding:
The HMA filter line color changes dynamically (green for bullish, red for bearish) based on these conditions.
Main Calculations
LinReg Candles:
Using the calcOHLC function, the script calculates the new open, high, low, and close values that reduce price noise.
Signal Line:
The signal line is computed on the basis of the smoothed close values using the selected moving average.
Buy/Sell Conditions:
Initial conditions are determined by checking if the recalculated close price crosses over (buy) or under (sell) the signal line.
The base candle color is then adjusted: if the HMA filter confirms the trend (bullish for buy or bearish for sell), the respective buy/sell colors are enforced.
A change in candle color compared to the previous bar triggers a buy or sell signal.
Plotting and Alerts
Visual Elements:
Background: Highlights the chart with a custom color when buy or sell conditions are met.
HMA Filter Line: Plotted (if enabled) with the dynamic color determined earlier.
Candles: The recalculated LinReg candles are drawn with colors based on the combined conditions.
Signal Line: Plotted over the candles with adjustable transparency and width.
Markers: Buy and sell markers are added to visually indicate signal points on the chart.
Alerts:
Alert conditions are set to trigger with predefined messages when a buy or sell signal is generated.
Modularity & Flexibility:
The code is structured with modular functions and clear grouping of inputs, making it highly customizable and user-friendly for open-source TradingView users.
Important how to track the real price on chart:
Locate the Chart Type Menu:
At the top of your TradingView chart, you’ll see a button showing the current chart type (likely a candlestick icon).
Select “Line” from the Dropdown:
Click that button and choose “Line” in the dropdown menu. This changes the main chart to a line chart of the real price.
Screenshots:
Astro R4.0Regarding the code that has a significant impact on Pine Community and many feel helped by it, this is the code that I ported from VBA to PineScript which comes from simontelescopium owner of astroexcel dot wordpress dot com and "astrofnc" by Keith Burnett, previously I used it personally but I forgot to give a citation to those who are entitled to them both so that when I shared it for community use and it has been shared by brother @BarefootJoey with the additions made by him personally, there was no citation for them.
Apologies for my negligence because I am only human.
Hopefully with this script it can help the community to see the potential for implementation in the trading world as a significant variable.
Finally, I publish this script as a reference to find out astronomical charts presented in table form to make it easier to visualize and debug as long as the input.timestamp() allow it.
Future updates for optimization using library of brother @BarefootJoey
Thank you.
candle stats v1Objective:
Capture sequential/subsequent candle's relative properties
Average observations to represent the landscape of the marketplace
Parameters:
"range" : high-low
"overlap" : range - range
"wick_body_ratio" : (range - abs(open-close))/range
"up_count" for "period" : number of occurrences where consecutive candles have low>low . (note: the values are not cumulative over period)
*"down_count" for "period" : number of occurrences where consecutive candles have high<high . (note: the values are not cumulative over period)
** the last counter includes the value for "period" and all above
Basic inferences:
mean_range could be used to derive at an appropriate hard-stoploss
high wick to body ratio indicates healthy buzzing market, ie, each candle has a high frequency standing wave within it. a lower value indicates that the timeframe is ordered and highly directional
low overlap indicates trend definition/resolution
the counters show how likely or unlikely a run up or run down of a particular length is
a combination of counter and mean_range could be used to derive at an appropriate take profit
Use case:
to determine the appropriate timeframe to develop or apply a strategy
Future enhancements:
more complex relationships such as higher highs and lower lows
frequency of oscillations
Combined Sequences (Tribonacci, Tetranacci, Lucas)🎯 Combined Sequences (Tribonacci, Tetranacci, Lucas) Indicator 🎯
Unlock the power of advanced mathematical sequences in your trading strategy with the **Combined Sequences Indicator**! This tool integrates **Tribonacci**, **Tetranacci**, and **Lucas** levels to help you identify key support and resistance zones with precision. Whether you're a day trader, swing trader, or long-term investor, this indicator provides a unique perspective on price action by combining multiple sequence-based levels.
---
### **Key Features:**
1. **Multiple Sequence Levels**:
- **Tribonacci Levels**: Based on the Tribonacci sequence, these levels are ideal for identifying dynamic support and resistance.
- **Tetranacci Levels**: A more advanced sequence that adds depth to your analysis.
- **Lucas Levels**: Derived from the Lucas sequence, these levels offer additional insights into market structure.
2. **Customizable Levels**:
- Choose the number of levels to display (up to 20).
- Toggle between **positive** and **negative** levels for each sequence.
3. **Flexible Price Source**:
- Select your preferred price type: **Open**, **High**, **Low**, **Close**, **HL2**, **HLC3**, or **HLCC4**.
4. **Customizable Line Styles**:
- Choose from **Solid**, **Dashed**, or **Dotted** lines.
- Adjust line width and extension type (**Left**, **Right**, or **Both**).
5. **Dynamic Labels**:
- Add labels to levels for better readability.
- Customize label position (**Left**, **Center**, or **Right**) and text size (**Normal**, **Small**, or **Tiny**).
6. **Timeframe Flexibility**:
- Works on any timeframe, from **1-minute** charts to **monthly** charts.
---
### **How It Works:**
- The indicator calculates **Tribonacci**, **Tetranacci**, and **Lucas** levels based on the selected price source and timeframe.
- These levels are plotted on the chart, providing clear visual cues for potential support and resistance zones.
- You can toggle each sequence on or off, allowing you to focus on the levels that matter most to your strategy.
---
### **Why Use This Indicator?**
- **Enhanced Market Analysis**: Combine multiple mathematical sequences to gain a deeper understanding of price action.
- **Customizable**: Tailor the indicator to your trading style with flexible settings.
- **User-Friendly**: Easy-to-use interface with clear visual outputs.
- **Versatile**: Suitable for all trading styles and instruments (stocks, forex, crypto, commodities, etc.).
---
### **How to Use:**
1. Add the indicator to your chart.
2. Configure the settings in the **Inputs** tab:
- Choose which sequences to display (Tribonacci, Tetranacci, Lucas).
- Adjust the number of levels, line styles, and label settings.
3. Use the levels to identify potential entry, exit, and stop-loss points.
---
### **Perfect For:**
- Traders looking for advanced support and resistance levels.
- Those who want to incorporate mathematical sequences into their analysis.
- Anyone seeking a customizable and versatile trading tool.
---
**🚀 Take Your Trading to the Next Level with Combined Sequences! 🚀**
---
### **Disclaimer**:
This indicator is a tool to assist in your trading decisions. It does not guarantee profits or predict market movements. Always use proper risk management and combine this tool with other analysis techniques.
---
**📈 Ready to Elevate Your Trading? Add the Combined Sequences Indicator to Your Chart Today! 📉**
ICT SB Time (Lee B)A minimal and clean indicator that simply plots the ICT Silver Bullet time windows for you on the chart with vertical lines.
It also has the option to show other important times, like 00:00, 8:30, and 9:30. Toggles in settings let you change line color, turn any of them off temporarily, and can limit their visibility to only the lower timeframes for less clutter.
I hope you find this indicator useful... and happy trading!
Lee B
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.
CHoCH Detector – A Clean & Effective Market Structure Tool🔍 Overview:
This CHoCH Detector is designed for traders who focus on market structure shifts. CHoCH (Change of Character) is a key early sign of potential trend reversals. This script helps identify CHoCH based on swing structure, candle strength, and higher timeframe confirmation for better reliability.
📌 Key Features:
✅ CHoCH Detection: Identifies early trend shifts (Uptrend & Downtrend).
✅ Custom Swing Lookback: Adjust how far back the script looks for swing highs/lows.
✅ Retracement Strength Check: Ensures CHoCH has enough momentum to be valid.
✅ Retest Condition: Allows price to slightly deviate from the break level.
✅ Higher Timeframe Confirmation (Optional): Helps filter out weak CHoCH signals.
✅ Clean & Simple Visualization: Labels solid green CHoCH for uptrend & solid red CHoCH for downtrend.
📌 How the CHoCH Detection Works
1️⃣ Swing Highs & Lows:
The script checks for the highest high and lowest low within a user-defined Swing Lookback period.
If price breaks the previous swing high/low, it signals a potential CHoCH.
2️⃣ CHoCH Confirmation with Candle Strength:
To avoid false signals, CHoCH must have a strong enough price move.
It calculates the average body size over a Retracement Lookback period and multiplies it by 1.5 to ensure significant price movement.
3️⃣ Retest Condition:
A valid CHoCH allows slight price deviation after the structure shift (acts as a retest zone).
4️⃣ Higher Timeframe Confirmation (Optional):
If enabled, the script compares current CHoCH with a higher timeframe swing structure to reduce false signals.
📌 Script Inputs & Adjustments
Swing Lookback (Default: 10): Defines how many candles to check for previous swing highs/lows.
Retracement Lookback (Default: 5): Defines the number of candles for calculating the average body size (used to validate CHoCH strength).
Higher Timeframe Confirmation (Default: ON): Helps filter false signals by checking a larger market structure.
📌 Why Use This CHoCH Detector?
✅ Lightweight & Simple – No clutter, just clean CHoCH signals.
✅ Customizable Lookback Periods – Adjust sensitivity for different timeframes.
✅ Stronger CHoCH Validation – Avoids weak signals using retracement strength check.
✅ Works with Any Strategy – Can be combined with Fibonacci, FRVP, Trend Analysis, etc.
🚀 This script is ideal for traders who want an efficient and reliable CHoCH detection tool!
ICT Liquidity Levels [TakingProphets]Overview
This indicator is designed to dynamically identify and display key liquidity levels—areas where market participants are likely to engage. By analyzing price swing points, it highlights potential support and resistance zones that can signal reversals or breakouts. The script distinguishes between buyside and sellside liquidity levels, presenting them with customizable visual cues and labels for immediate clarity.
How It Works
Swing Point Detection:
The indicator uses a pivot-based method (with a configurable “Base Swing Strength”) to detect swing highs and lows. Each detected swing is evaluated for its “swing size” (percentage price movement), and if it exceeds a user-defined threshold, the level is classified as major.
Level Creation and Classification:
Overview
Built on core ICT principles, this indicator identifies key liquidity zones—areas where market imbalances can lead to liquidity sweeps. By dynamically analyzing swing points, it offers traders a real-time view of where liquidity is clustering, allowing for a deeper understanding of market structure. 🚀
How It Works
Swing Point Detection 🔍
• Uses a pivot-based method with a configurable “Base Swing Strength” to detect significant price swings.
• Calculates the swing size (percentage change) to flag zones that exceed the “Major Level Threshold” as major liquidity zones.
Level Creation & Classification 🛠️
• Buyside Liquidity Levels (BSL):
Identified from swing highs, marking zones where buying liquidity clusters.
• Sellside Liquidity Levels (SSL):
Identified from swing lows, highlighting zones of concentrated selling liquidity.
• Each zone is stored with its price, bar index, and classification (major or standard) before being drawn as a horizontal line on the chart.
Dynamic Level Management 🔄
• Extension: Liquidity lines automatically extend from their detection point to the current bar.
• Consolidation: When levels are close in price, the script merges them—updating labels (e.g., “REQH” or “REQL”) to denote unified liquidity zones.
• Traded-Through Detection: Adjusts or removes levels if the market moves beyond them, based on your settings.
• Age-Based Cleanup: Inactive zones are automatically removed after a set number of bars to maintain clarity.
Customization Options ⚙️
Visual Settings:
• Choose from solid, dashed, or dotted line styles and adjust line width.
• Option to display labels with customizable placement (left or right) for optimal clarity.
Color & Opacity:
• Set distinct colors for buyside and sellside liquidity zones.
• Configure opacity for zones that have been traded through, keeping them visible yet de-emphasized.
Detection & Cleanup Parameters:
• Adjust “Base Swing Strength” to control pivot detection sensitivity.
• Set the “Major Level Threshold %” to filter for significant liquidity zones.
• Decide whether to retain or remove zones once price moves through them.
• Define how many bars should pass before inactive zones are automatically deleted.
How to Use 🚀
Apply the Indicator:
Simply add the script to your chart—it automatically detects and marks key liquidity zones based on recent price action.
Adjust Inputs:
Fine-tune parameters like swing strength, threshold percentages, and visual settings to match the asset’s characteristics and your trading strategy.
Interpret the Visuals:
• Major Liquidity Zones:
Highlighted with thicker lines and distinct labels (e.g., “Major BSL/SSL”), indicating areas of heightened liquidity concentration.
• Consolidated Zones:
Merged labels (e.g., “REQH/REQL”) denote unified liquidity zones where clustering is significant.
• Traded-Through Zones:
Changes in opacity signal that the market has moved beyond a previously identified liquidity zone.
Underlying ICT Concepts 💡
Liquidity Pools & Sweeps:
Focused on identifying where liquidity is concentrated, the indicator aligns with ICT methodologies that highlight zones crucial for liquidity sweeps.
Pivot Analysis for Liquidity:
Enhances traditional pivot detection to spotlight liquidity clusters, providing a deeper insight into market structure.
Real-Time Adaptation:
With continuous updates and built-in cleanup, the indicator ensures that liquidity zones accurately reflect current market conditions.
Monthly Buy IndicatorIt shows us the the total balance when buying monthly, ploting the total invested amount and total current balance along the time.
Opening the Data Window, it displays the profit (%) and the number of trades.
The "Allow Fractional Purchase" flag can be used to check the the performance of the ticker, disregarding how much the monthly amount is set vs the price of the ticker.
The trades are considering buying the available amount on the 1st candle of each month, at the Open price. The "Total Balance" considers the close price of each candle.
A-VWAP The Anchored VWAP (Volume-Weighted Average Price) is a powerful multi-functional tool that adapts to price action and volume dynamics to identify trend bias, support/resistance zones, and potential reversal points. This enhanced version integrates dynamic color-coded signals (green/red) to simplify decision-making for swing traders, intraday scalpers, and position managers.
Dynamic Trend Bias Identification
Green A-VWAP (Bullish Control): Activates when price sustains above the anchored VWAP. Highlights bullish momentum, suggesting institutional buying dominance and potential continuation setups.
Red aVWAP (Bearish Control): Triggers when price holds below the anchored VWAP. Signals bearish pressure, indicating distribution phases or downtrends.
Swing-Level Targeting
Green aVWAP serves as dynamic support for profit-taking on short positions during pullbacks and adding New long positions.
Red aVWAP becomes resistance for profit closure on Long trades. Price dipping far below red aVWAP may signal oversold conditions, with red aVWAP acting as a resistance target.
Strategic Applications
Swing Trading: Use green/red aVWAP to define trend alignment and position direction
Swing Short or Swing Long Target
Swing Long Entry or Swing Short Target
Intraday: nchored VWAP (aVWAP) with Standard Deviation (STDV) bands provides a powerful framework for identifying mean-reversion opportunities when price extends away from its volume-weighted fair value. Identifying Overextended Moves, Executing the Trade, Managing Risk
Institutional Flow Tracking: Monitor how price interacts with aVWAP to gauge institutional accumulation/distribution.
Standard Deviation Bands for Volatility Context
The indicator integrates ±1 and ±2 standard deviation bands around the Anchored VWAP. These bands quantify price dispersion, acting as dynamic boundaries for mean reversion or trend acceleration:
Tightening Bands: Signal low volatility, often preceding breakouts.
Expanding Bands: Reflect heightened volatility, indicating strong Resistance/Support.
Use these bands to identify overextended price levels.
Multi-Timeframe Anchoring Strategy
Lower Timeframe 15-Minute High/Low Focus:
For intraday scalping or short-term trades, anchor the VWAP to swing highs or lows on the 15-minute Low/High.
Higher Timeframe 1-Hour High/Low Focus:
For swing trading, anchor the VWAP to major swing points on the 1-hour Low/High. This aligns with broader market structure, offering clarity on institutional accumulation/distribution zones. A sustained green zone above the HTF VWAP signals alignment with the higher-timeframe trend.
Anchored VWAP Most Powerful tool
The enhanced VWAP with Anchoring empowers traders to harmonize short-term precision with higher-timeframe context. Whether scalping on the 15-minute chart or swing trading, this tool adapts to your strategy’s rhythm. By anchoring to critical highs/lows and layering volatility bands, it transforms raw price action into a structured roadmap—guiding entries, exits, and risk management with institutional-grade clarity.
Master the markets across timeframes with an indicator that scales with your ambition.