Time HighlightHow This Works:
Time Conversion: The script converts the current time to HHMM format (e.g., 9:16 becomes 916) for easy comparison.
Timeframe Detection: It checks the current chart's timeframe:
For 1-minute charts: Exactly matches the target times
For 5-minute charts: Checks if the target time falls within the 5-minute window
For 15-minute charts: Checks if the target time falls within the 15-minute window
Highlighting: When the condition is met, it highlights the candle with a semi-transparent yellow color.
Note:
The script will work on 1-minute, 5-minute, and 15-minute timeframes only
The highlight appears on the candle that contains the specified time
The transparency is set to 70% so you can still see the candle through the highlight
You can adjust the transparency level by changing the transp parameter (0 = fully opaque, 100 = fully transparent).
make a pine script which change the color of the candle in yellow color in 1,5,15 timeframe at the time of 9:16, 9:31, 9:46
Cicli
Simple Monthly SeasonalityThis script helps traders quickly visualize how an asset performs month by month over a customizable historical period.
🔍 What it does:
• Calculates average monthly returns over the past N years (default: 15).
• Highlights the current month for quick context.
• Displays results in a clean 2-column table (Month | Avg % Return).
💡 Features:
• Works on any timeframe – internally pulls monthly data.
• Color-coded performance (green for positive, red for negative).
• Dynamic highlights – the current month is softly emphasized.
• Fully customizable lookback period (1–50 years).
📈 Use cases:
• Spot seasonal market trends.
• Time entries/exits based on recurring historical strength/weakness.
• Build the foundation for more advanced seasonality or macro scripts.
Just load it on any chart and see which months historically outshine the rest.
⸻
XAU/USD Custom Levels
XAU/USD Dynamic Support & Resistance Levels
This indicator automatically draws horizontal support and resistance levels for Gold (XAU/USD) based on the current market price, eliminating the need for manual price range adjustments.
**Key Features:**
- **Dynamic Price Range**: Automatically calculates levels above and below the current price using a customizable percentage range (default 5%)
- **Multi-Tier Level System**: Four distinct level types with different visual styling:
- Major Levels (100s) - Blue, thick lines
- Sub Levels (50s) - Red, medium lines
- Sub-Sub Levels (25s) - Yellow, thin lines
- Mini Levels (12.5s) - Gray, dotted lines
- **Fully Customizable**: Adjust range percentage, step size, colors, and line history through input settings
- **Universal Compatibility**: Works at any gold price level - whether $1800, $2500, $3300 or beyond
**How It Works:**
The script centers the level grid around the current closing price and extends lines from a specified number of bars back to the right edge of the chart. The hierarchical level system helps identify key psychological price points and potential support/resistance zones commonly used in gold trading.
**Settings:**
- Price Range %: Control how far above/below current price to draw levels (1-20%)
- Level Step Size: Adjust spacing between levels (1.0-50.0)
- Bars Back: Set how far back in history to start the lines
- Color Customization: Personalize colors for each level type
Perfect for gold traders who need clean, automatically-updating support and resistance levels without manual configuration.
23/35 SR Channels (Hitchhikers Guide To Goldbach)This indicator highlights potential short-term support and resistance zones based on the 23rd and 35th minute of each hour. At each of these time points, it draws a zone from the high to the low of the candle, extending it forward for a fixed number of bars.
Key features:
🔸 Orange zones mark the 23-minute candle
🔹 Blue zones mark the 35-minute candle
📏 Zones extend for a customizable number of bars (channelLength)
🔄 Existing zones are removed if they overlap significantly with a new one
🏷️ Optional labels show when a 23 or 35 zone is created
This tool is ideal for traders looking to identify time-based micro-structures and intraday reaction zones.
Session Time MarkersIndicator that plots vertical lines based upon market open, close, and high volume periods
IST Time Zone Marker For Indian Forex Traders
IST time-based indicator to:
✅ Show a green arrow at 12:00 PM IST (6:30 AM UTC)
✅ Show a red arrow at 12:00 AM IST (6:30 PM UTC)
✅ Shade background from 12:00 AM to 12:00 PM IST
✅ Blue arrow at 6:00 PM IST (12:30 PM UTC)
LinReg Candles with 15min & 3min Signal Arrows (2x Confirmed)If the most recent 15-minute closed LinReg candle is red and the latest 3-minute closed candle (on a 3-minute chart) is red, then a Sell signal (red arrow) is generated for the next 3-minute candle.
📅 Candle Highlight: Weekly / Monthly / Yearly Open📝 Description:
This minimalist indicator highlights the exact candles where a new week, month, or year begins.
No lines, no labels — just subtle background coloring directly on the candles, making it easy to spot period transitions without cluttering the chart.
⚙️ Features:
✅ Highlights weekly open candles (green)
✅ Highlights monthly open candles (orange)
✅ Highlights yearly open candles (red)
✅ Clean and non-intrusive design
✅ Fully customizable toggles for each type
Perfect for traders using time-based strategies, liquidity timing, or weekly/monthly open reference points.
Monthly Session Divider (Alt Background) | Chart_BullyEasily visualize monthly transitions with alternating background shading. Designed for traders who like to spot macro trends, monthly opens, and institutional order flow.
✅ Alternates background color each month
✅ Auto-detects new months using live date logic
✅ Great for RTH or ETH intraday and swing strategies
✅ Clean gray overlay with low opacity
✅ Works on intraday, daily, and weekly charts
✅ Built for clarity, not clutter
Use this tool to:
Identify monthly pivots or volume rotations
Anchor monthly VWAPs or FVGs with visual context
Frame long-term setups with clean visual breaks
Weekly Session Divider (Alt Background) | Chart_BullyThis tool adds subtle alternating background shading for each new week, helping you visually distinguish trading sessions at a glance.
✅ Alternates background by weekly session
✅ Works great on intraday and daily timeframes
✅ Ideal for traders who rely on weekly pivots, volume profiles, or macro structure
✅ Compatible with both RTH and ETH charts
✅ Clean design for easy chart integration
Use it to improve your session awareness, spot emerging weekly trends, and avoid mental fatigue when reading extended charts.
Alternate Day Divider Background | Chart_BullyThis free utility shades every other trading day on your chart, helping you visually separate sessions and spot daily rhythm or pattern shifts more easily.
✅ Automatically alternates background shading by day
✅ Works on both Regular Trading Hours (RTH) and Extended Trading Hours (ETH)
✅ Especially useful on intraday and daily timeframes
✅ Helps identify breakout setups, trend shifts, or volume cycles by session
Great for scalpers, day traders, and anyone who wants a subtle visual edge without chart clutter.
Golden SMA 50 200Two simple moving averages (short-term vs long-term), e.g. 50-day and 200-day SMA.
Signal: Enter long (bullish) when the short MA crosses above the long MA (a Golden Cross); exit (or go short) when it crosses below (a Death Cross). This classic trend-following combo keeps you in bull markets and gets you out during prolonged downtrends. In Bitcoin, using a MA crossover on daily charts filters out noise and catches the big trend reversals.
AI Trend Strategy (Fast/Slow Line with Alternate Signals)just trial. iam usin a ema strategy a very basic one. just buy when buy signal appears and sell when it says sell
Day Separator with Day LabelsAdjustable day separator that paints vertical lines through the start of day. Default set to GMT however totally customisable.
Has the day of week ladled also which is also optional in position.
there is a check box for a light chart background chart but default is dark background.
Vertical lines are customisable regarding thickness and colour.
Pretty new to it all so welcome feedback and amendment ideas.
♒Hurst Cycle Channel Oscillator v4.0 by IRUNTV
Hurst Cycle Channel Oscillator v4.0 by IRUNTV W/ Advanced Divergence
Short Title: HCCO_v4_IRUNTV
📜 Script Description
//Disclaimer//
* What could be considered a clone of Hurst Cycle Channel Oscillator v1.0 by Cryptorhythms with arguably some improvements, since the original was locked i opted to creating my own version with much more flexibility in mind. I also used the original Hurst Cycle Channels by Lazybear as foundation for some of my primary logic and intentionally made it visually identical to the already popular Cryptorhythms version.
// End Disclaimer //
Unlock deeper market insights with the Hurst Cycle Channel Oscillator v4.0 by IRUNTV , a sophisticated oscillator meticulously designed to visualize cyclical price movements and pinpoint potential turning points through an advanced divergence detection engine. This indicator is rooted in the foundational principles of J.M. Hurst's cycle theory, offering a nuanced view of market dynamics by illustrating how current price interacts with dynamic, Hurst-style cycle channels.
At its core, the Hurst Cycle Channel Oscillator v4.0 transforms complex cycle analysis into an intuitive oscillator format. It aims to go beyond simple overbought or oversold conditions, highlighting the inherent rhythm of the market. This can empower you to anticipate shifts in momentum and identify higher-probability trading setups with greater confidence.
This v4.0 features a significantly enhanced divergence engine capable of identifying both Regular and Hidden bullish/bearish divergences with improved accuracy and extensive user customization.
📊 What It Displays & How It Works
Main Oscillator (-F - White Line): This is your primary plot. It represents the normalized position of the selected Source price (default: close) within a dynamically calculated medium-term Hurst-style channel.
Values typically range from 0 (price at channel bottom) to 1 (price at channel top).
Values above 1.0 suggest price has broken robustly above the medium-term channel (potentially overbought or indicating strong bullish momentum).
Values below 0.0 suggest price has broken robustly below the medium-term channel (potentially oversold or indicating strong bearish momentum).
Signal Line (H F - Yellow Line): This line represents the normalized position of the short-term cycle's median within the same medium-term Hurst-style channel. It acts as a dynamic signal line, providing context to the Main Oscillator's movements.
Secondary Oscillator (L F - Aqua Line): Offers a longer-term or smoothed perspective, by default an EMA of the H F Signal Line. Its calculation method and length are configurable.
Dynamic Channels (Internal Calculation): The oscillator values are derived from channels constructed using Running Moving Averages (RMA) of price and Average True Range (ATR) for dynamic width. These calculations incorporate Hurst's concepts of half-span cycle lengths and forward displacement, aiming for a more adaptive and responsive market analysis.
Key Visual Cues:
Divergence Markers (R / H): Clearly marked on the oscillator.
R ( Regular Divergence ): Signals potential trend exhaustion and upcoming reversals.
Bullish (Green R): Price forms Lower Lows (LL) while the Main Oscillator (-F) forms Higher Lows (HL).
Bearish (Red R): Price forms Higher Highs (HH) while the Main Oscillator (-F) forms Lower Highs (LH).
H ( Hidden Divergence ): Signals potential trend continuations, often appearing during corrections.
Bullish (Green H): Price forms Higher Lows (HL) while the Main Oscillator (-F) forms Lower Lows (LL).
Bearish (Red H): Price forms Lower Highs (LH) while the Main Oscillator (-F) forms Higher Highs (HH).
Divergence Lines: Lines are automatically drawn on the oscillator connecting the two pivot points that form a confirmed divergence, providing clear visual confirmation of the pattern. A configurable maximum number of lines are displayed to maintain chart clarity.
Background Shading: The oscillator pane's background is dynamically colored to offer an at-a-glance indication of prevailing market sentiment or conditions:
Green Zones: Typically indicate bullish conditions or oscillator strength (e.g., above the mid-level or signal line).
Red Zones: Typically indicate bearish conditions or oscillator weakness.
(The script includes logic for granular shading based on user-configurable overbought/oversold warning levels and the 0.5 mid-level).
Reference Levels: Horizontal lines are plotted at 0.0, 0.5, and 1.0, along with user-configurable "Warning Levels" (defaulting to 0.2 and 0.8) to help define critical zones of interest and potential price reactions.
💡 How to Use It - Potential Strategies
The Hurst Cycle Channel Oscillator v4.0 is a versatile tool. Here are some ways it can be incorporated into your trading analysis:
Divergence Trading (Primary Use):
Regular Divergences (R): Identify these as leading indicators that an existing trend might be losing momentum and could be approaching a reversal. Always seek confirmation from other technical analysis tools or price action.
Hidden Divergences (H): These often occur during pullbacks or consolidations within an established trend, potentially signaling an opportune moment to enter in the direction of the primary trend.
Oscillator / Signal Line Crosses:
When the Main Oscillator (-F) crosses above the Signal Line (H F): Potential bullish signal or strengthening momentum.
When the Main Oscillator (-F) crosses below the Signal Line (H F): Potential bearish signal or weakening momentum.
Overbought / Oversold (OB/OS) Conditions:
Extreme Levels: osc_F > 1.0 (extreme overbought) or osc_F < 0.0 (extreme oversold) can highlight unsustainable price extensions, often preceding periods of consolidation or potential reversals.
Warning Levels: Utilize the configurable levels (e.g., 0.8 and 0.2 by default) as earlier indications of potential overbought or oversold conditions, allowing for proactive adjustments.
Mid-Level (0.5) Dynamics:
osc_F crossing above 0.5 can suggest a shift towards a more bullish market bias.
osc_F crossing below 0.5 can suggest a shift towards a more bearish market bias. The 0.5 level often acts as a dynamic support/resistance within the oscillator's range.
Trend Confirmation & Strength: The color of the background shading can serve as a quick visual guide to the dominant short-term market sentiment as interpreted by the oscillator's position and behavior.
⚙️ Key Features & Customization (by IRUNTV)
Adjustable Cycle Parameters: Fully customize the Short Term Cycle Length, Medium Term Cycle Length, and their respective Multipliers to tailor the indicator's responsiveness to different assets, volatility, and timeframes.
Customizable Source: Select your preferred input source (close, hl2, hlc3, etc.) for the core calculations.
Comprehensive Plot Customization: Toggle the visibility and personalize the colors and line styles for all major plotted elements (oscillators, signal lines, divergence markers) through an intuitive "Plot Visibility & Style" settings group.
Advanced Divergence Engine Settings:
Div Pivot Left/Right Lookback: Fine-tune the sensitivity of pivot point detection for divergences.
Max Bars Between Div Pivots: Define the maximum historical window for identifying valid divergence formations.
Max Stored Pivots for Divs: Optimize performance by managing the memory used for storing historical pivot data, while still enabling detection of relevant long-term divergences.
Max Div Lines to Show: Maintain chart clarity by controlling the number of concurrently displayed divergence lines.
Built-in Alerts: Stay informed with comprehensive, configurable alerts for:
Main Oscillator / Signal Line crosses.
All four identified types of Divergences (Regular Bullish/Bearish, Hidden Bullish/Bearish).
Oscillator crossing into user-defined Overbought/Oversold warning levels.
Oscillator breaching the extreme 0.0 or 1.0 channel boundaries.
⚠️ Disclaimer
The "Hurst Cycle Channel Oscillator v4.0 by IRUNTV" is provided for educational and informational purposes only and does not constitute financial advice or a recommendation to buy or sell any asset. Trading and investing in financial markets involve substantial risk of loss. Past performance is not indicative of future results. All users should conduct their own thorough research, backtesting, and due diligence before making any trading or investment decisions. Use this tool responsibly and as part of a comprehensive trading strategy. IRUNTV assumes no liability for any trading or investment decisions made based on this indicator.
NSE/BSE Derivative - Next Expiry Date With HolidaysNSE & BSE Expiry Tracker with Holiday Adjustments
This Pine Script is a TradingView indicator that helps traders monitor upcoming expiry dates for major Indian derivative contracts. It dynamically adjusts these expiry dates based on weekends and holidays, and highlights any expiry that falls on the current day.
⸻
Key Features
1. Tracks Expiry Dates for Major Contracts
The script calculates and displays the next expiry dates for the following instruments:
• NIFTY (weekly expiry every Thursday)
• BANKNIFTY, FINNIFTY, MIDCPNIFTY, NIFTYNXT50 (monthly expiry on the last Thursday of the month)
• SENSEX (weekly expiry every Tuesday)
• BANKEX and SENSEX 50 (monthly expiry on the last Tuesday of the month)
• Stocks in the F&O segment (monthly expiry on the last Thursday)
2. Holiday Awareness
Users can input a list of holiday dates in the format YYYY-MM-DD,YYYY-MM-DD,.... If any calculated expiry falls on one of these holidays or a weekend, the script automatically adjusts the expiry to the previous working day (Monday to Friday).
3. Customization Options
The user can:
• Choose the position of the expiry table on the chart (e.g. top right, bottom left).
• Select the font size for the expiry table.
• Enable or disable the table entirely (if implemented as an input toggle).
4. Visual Expiry Highlighting
If today is an expiry day for any instrument, the script highlights that instrument in the display. This makes it easy to spot significant expiry days, which are often associated with increased volatility and trading volume.
⸻
How It Works
• The script calculates the next expiry for each index using built-in date/time functions.
• For weekly expiries, it finds the next occurrence of the designated weekday.
• For monthly expiries, it finds the last Thursday or Tuesday of the month.
• Each expiry date is passed through a check to adjust for holidays or weekends.
• If today matches the adjusted expiry date, that row is visually emphasized.
⸻
Use Case
This script is ideal for traders who want a quick glance at which instruments are expiring soon — especially those managing options, futures, or expiry-based strategies.
Bull & Bear Power Separados📄 English Description for TradingView
Bull & Bear Power – Elder Style
This indicator displays the strength of buyers (Bull Power) and sellers (Bear Power) separately, based on Alexander Elder’s original concept.
It uses a 13-period Exponential Moving Average (EMA) as the baseline, calculating:
Bull Power = High – EMA
Bear Power = Low – EMA
✔️ Bull Power (green) shows buying pressure.
✔️ Bear Power (red) shows selling pressure.
Great for analyzing true market momentum and spotting early signs of potential trend reversals.
Can be used as confirmation together with moving averages (e.g., MMA30 and MMA50) or price action signals.
✅ On 1H gold charts (XAUUSD), it has shown solid behavior in filtering entries during clear trends.
Developed and shared for educational purposes by El Bit Criollo.
MVRV Ratio [Alpha Extract]The MVRV Ratio Indicator provides valuable insights into Bitcoin market cycles by tracking the relationship between market value and realized value. This powerful on-chain metric helps traders identify potential market tops and bottoms, offering clear buy and sell signals based on historical patterns of Bitcoin valuation.
🔶 CALCULATION The indicator processes MVRV ratio data through several analytical methods:
Raw MVRV Data: Collects MVRV data directly from INTOTHEBLOCK for Bitcoin
Optional Smoothing: Applies simple moving average (SMA) to reduce noise
Status Classification: Categorizes market conditions into four distinct states
Signal Generation: Produces trading signals based on MVRV thresholds
Price Estimation: Calculates estimated realized price (Current price / MVRV ratio)
Historical Context: Compares current values to historical extremes
Formula:
MVRV Ratio = Market Value / Realized Value
Smoothed MVRV = SMA(MVRV Ratio, Smoothing Length)
Estimated Realized Price = Current Price / MVRV Ratio
Distance to Top = ((3.5 / MVRV Ratio) - 1) * 100
Distance to Bottom = ((MVRV Ratio / 0.8) - 1) * 100
🔶 DETAILS Visual Features:
MVRV Plot: Color-coded line showing current MVRV value (red for overvalued, orange for moderately overvalued, blue for fair value, teal for undervalued)
Reference Levels: Horizontal lines indicating key MVRV thresholds (3.5, 2.5, 1.0, 0.8)
Zone Highlighting: Background color changes to highlight extreme market conditions (red for potentially overvalued, blue for potentially undervalued)
Information Table: Comprehensive dashboard showing current MVRV value, market status, trading signal, price information, and historical context
Interpretation:
MVRV ≥ 3.5: Potential market top, strong sell signal
MVRV ≥ 2.5: Overvalued market, consider selling
MVRV 1.5-2.5: Neutral market conditions
MVRV 1.0-1.5: Fair value, consider buying
MVRV < 1.0: Potential market bottom, strong buy signal
🔶 EXAMPLES
Market Top Identification: When MVRV ratio exceeds 3.5, the indicator signals potential market tops, highlighting periods where Bitcoin may be significantly overvalued.
Example: During bull market peaks, MVRV exceeding 3.5 has historically preceded major corrections, helping traders time their exits.
Bottom Detection: MVRV values below 1.0, especially approaching 0.8, have historically marked excellent buying opportunities.
Example: During bear market bottoms, MVRV falling below 1.0 has identified the most profitable entry points for long-term Bitcoin accumulation.
Tracking Market Cycles: The indicator provides a clear visualization of Bitcoin's market cycles from undervalued to overvalued states.
Example: Following the progression of MVRV from below 1.0 through fair value and eventually to overvalued territory helps traders position themselves appropriately throughout Bitcoin's market cycle.
Realized Price Support: The estimated realized price often acts as a significant
support/resistance level during market transitions.
Example: During corrections, price often finds support near the realized price level calculated by the indicator, providing potential entry points.
🔶 SETTINGS
Customization Options:
Smoothing: Toggle smoothing option and adjust smoothing length (1-50)
Table Display: Show/hide the information table
Table Position: Choose between top right, top left, bottom right, or bottom left positions
Visual Elements: All plots, lines, and background highlights can be customized for color and style
The MVRV Ratio Indicator provides traders with a powerful on-chain metric to identify potential market tops and bottoms in Bitcoin. By tracking the relationship between market value and realized value, this indicator helps identify periods of overvaluation and undervaluation, offering clear buy and sell signals based on historical patterns. The comprehensive information table delivers valuable context about current market conditions, helping traders make more informed decisions about market positioning throughout Bitcoin's cyclical patterns.
Average RSI (Daily + Weekly)📈 Average RSI (Relative Strength Index) – Beginner’s Guide
What it is:
The Average RSI is a technical indicator that combines multiple RSI values—such as daily and weekly RSI—into a single, smoothed line. This helps traders get a clearer picture of a stock’s momentum over both short- and medium-term timeframes.
Why it matters:
The RSI tells you whether a stock is potentially overbought (priced too high and due for a pullback) or oversold (priced too low and due for a bounce). Traditional RSI uses a scale from 0 to 100, with key levels at 70 (overbought) and 30 (oversold).
By averaging RSI across different timeframes, you reduce noise and get a better signal for trends and reversals.
How traders use it:
✅ Buy zone: When the average RSI dips below 40, it could signal a good entry point.
⚠️ Neutral zone: Between 40 and 60 means the trend isn’t strong—wait for more confirmation.
🚫 Sell zone: Above 60–70 may indicate the asset is overbought or due for a pullback.
Helpful for:
Spotting better entry/exit points
Filtering out false signals
Staying in trend-following trades longer