Liquidity Heatmap & Volume-Weighted RSILiquidity Heatmap Indicator with Volume-Weighted RSI
Description:
The Liquidity Heatmap Indicator with Volume-Weighted RSI (VW-RSI) is a powerful tool designed for traders to visualize market liquidity zones while integrating a volume-adjusted momentum oscillator. This indicator provides a dynamic heatmap of liquidity levels across various price points and enhances traditional RSI by incorporating volume weight, making it more responsive to market activity.
Key Features:
Liquidity Heatmap Visualization: Identifies high-liquidity price zones, allowing traders to spot potential areas of support, resistance, and accumulation.
Volume-Weighted RSI (VW-RSI): Enhances the RSI by factoring in trading volume, reducing false signals and improving trend confirmation.
Customizable Sensitivity: Users can adjust parameters to fine-tune heatmap intensity and RSI smoothing.
Dynamic Market Insights: Helps identify potential price reversals and trend strength by combining liquidity depth with momentum analysis.
How to Use:
1. Identify Liquidity Zones: The heatmap colors indicate areas of high and low liquidity, helping traders pinpoint key price action areas.
2. Use VW-RSI for Confirmation: When VW-RSI diverges from price near a liquidity cluster, it signals a potential reversal or continuation.
3. Adjust Parameters: Fine-tune the RSI period, volume weighting, and heatmap sensitivity to align with different trading strategies.
This indicator is ideal for traders who rely on order flow analysis, volume-based momentum strategies, and liquidity-driven trading techniques.
אינדיקטורים ואסטרטגיות
Gann TimeLevels - CyclesAt the beginning of each month, vertical lines will be drawn every 45 days, up to 360 days/bars. The count is done backwards, with the same logic. This Open Source code may be useful for you to implement it with the Gann square. It already has the time levels.
PDC & EMATitle: Dynamic Price & EMA Table with Previous Day Close
Description: This script provides a dynamic table that displays key information about the current price relative to the previous day's close and the 8-period EMA. It helps traders quickly identify potential trading signals based on these conditions. The table adapts for both web and mobile views, ensuring a seamless experience across devices.
Features:
Previous Day Close (PDC): Indicates if the current price is above ("Y") or below ("N") the previous day's close.
8-Period EMA (8EMA): Shows if the current price is above ("Y") or below ("N") the 8-period EMA.
Action Signal: Displays "Calls" if both conditions are met, "Puts" if neither condition is met, and "Hold" if the conditions are mixed.
Customizable Colors: Allows users to set their preferred colors for up, down, and hold signals.
Responsive Design: Adjusts the table layout for optimal viewing on both web and mobile devices.
This script is ideal for traders looking for a quick visual reference to make informed trading decisions based on price and EMA conditions.
Weekly Pivot Strategy (LONG ONLY STRATEGY)Strategy Overview: Weekly Pivot Trading System
Core Concept:
A mean-reversion strategy that trades between weekly pivot levels. It uses calculated support (S1-S4) and resistance (R1-R4) levels derived from the previous week's price action to identify entry and exit points.
Just know, every market is different. You may need to play with the settings to suit you're market
---------------------------------------------------------------------------------------------------------------------
1. Key Features
Weekly Pivot Calculation
Pivot Point = (Previous Week’s High + Low + Close) / 3
Support/Resistance Levels: User-adjustable distances from the pivot (Measured in points).
2. Entry Rules
Buys when price touches S1-S4 (lower = more aggressive).
Each support level triggers a separate entry ("Entry1" at S1, "Entry2" at S2, etc.).
3. Exit Rules
Profit targets set at corresponding R1-R4 levels (R1 for S1 entry, etc.).
No stop-loss (positions remain open until targets are hit).
4. Position Management
Up to 4 concurrent trades per week.
Trades reset weekly with new pivot levels.
No time-based exits.
5.Customization
Adjustable distances for S/R levels.
Position sizing as percentage of equity.
---------------------------------------------------------------------------------------------------------------------
Anticipated FAQs & Answers
Q1: How does this strategy work?
A: It exploits price reversals at weekly support/resistance zones. When price dips to a support level (S1-S4), the strategy buys, expecting a bounce to the corresponding resistance (R1-R4).
Q2: Why use weekly pivots instead of daily?
A: Weekly levels act as stronger psychological zones, reducing noise from short-term fluctuations. This aligns with swing trading/institutional order flow.
Q3: Where are the stop-losses?
A: The original strategy has no stop-loss to allow positions to ride to targets. However, users can add their own stop rules (e.g., below S4 or ATR-based stops).
Q4: How do I adjust risk?
A: Two key controls:
1. default_qty_value: Reduce from 25% to lower position size.
2. S/R distances: Widen offsets for larger buffers.
Q5: Why do trades sometimes not close?
A: Positions remain open indefinitely until price reaches the profit target. This works best in ranging markets but may tie up capital in trends.
Q6: How is this different from standard pivot strategies?
A: Three unique aspects:
1.Weekly reset: Fresh levels every Monday.
2. Multiple entries: Up to 4 trades/week.
3. No repainting: Levels fixed at week start.
Q7: What markets/timeframes does this work on?
A: Best results in:
Markets: Forex, indices, crypto (high liquidity).
Timeframes: 1H or higher (avoids intraweek noise).
Q8: Can I combine this with other indicators?
A: Popular additions:
Trend filter: Only trade S1-S4 in uptrends (e.g., 50 SMA).
Volume confirmation: Require rising volume at support.
RSI divergence: Avoid entries during overextension.
Q9: Why does it enter on touch (not close)?
A: By design, it mimics "limit order" behavior. To require a close below/above, modify the entry condition:
// Replace:
if low <= level
// With:
if close < level // More conservative
Q10: How to avoid whipsaws during volatility?
A: Two solutions:
1.Add a buffer (e.g., require price to close 1% below S1).
2.Use multiple timeframes: Confirm with daily pivot alignment.
Pro Tips for Users
1. Backtest Across Market Phases: Test in both trending and ranging conditions.
2. Adjust Offsets Volatility: Widen S/R distances for high-volatility assets.
Pair with Correlation: Avoid overlapping trades in correlated markets.
This framework balances simplicity with customization potential.
---------------------------------------------------------------------------------------------------------------------
Thank you for taking the time to review this strategy. This is my first finished product. I hope people enjoy testing it.
P.S. Please feel free to change or add whatever you like. If you feel up to the task. Im 100% confident that there are better coders than me that can improve this. :D
John Bob-Trading-BotDeveloped by Ayebale John Bob with the help of his bestie, this innovative strategy combines advanced Smart Money Concepts with practical risk management tools to help traders identify and capitalize on key market moves.
Key Features:
Smart Money Concepts & Fair Value Gaps (FVG):
The strategy monitors price action for fair value gaps, which are visualized as extremely faint horizontal lines on the chart. These FVGs signal potential areas where institutional traders might have entered or exited positions.
Dynamic Entry Signals:
Buy signals are triggered when the price crosses above the 50-bar lowest low or when a bullish FVG is detected. Conversely, sell signals are generated when the price falls below the 50-bar highest high or a bearish FVG is identified. Each signal is visually marked on the chart with clear buy (green) and sell (red) labels.
Multi-Level Order Execution:
Once an entry signal occurs, the strategy places five separate orders, each with its own take-profit (TP) level. The TP levels are calculated dynamically using the Average True Range (ATR) and a set of predefined multipliers. This allows traders to scale out of positions as the market moves favorably.
Dynamic Risk Management:
A stop-loss is automatically set at a distance determined by the ATR, ensuring that risk is managed in accordance with current market volatility.
Real-Time Trade Information Table:
In the bottom-right corner of the chart, a trade information table displays essential details about the current trade:
Side: Displays "BUY NOW" (with a dark green background) for long entries or "SELL NOW" (with a dark red background) for short entries.
Entry Price & Stop-Loss: Shows the entry price (highlighted in green) and the corresponding stop-loss level (highlighted in red).
Take-Profit Levels: Lists the five TP levels, each of which turns green once the market price reaches that target.
Timer: A live timer in minutes counts from the moment the current trade trigger started, helping traders track the duration of their active trades.
Visual Progress Bar:
A histogram-style progress bar is plotted on the chart, visually representing the percentage gain (or loss) relative to the entry price.
This strategy was meticulously designed to incorporate both technical analysis and smart risk management, offering a robust trading solution that adapts to changing market conditions. Whether you're a seasoned trader or just starting out, the AyebaleJohnBob Trading Bot equips you with the tools and visual cues needed to make well-informed trading decisions. Enjoy a seamless blend of strategy and style—crafted with passion by Ayebale John Bob and his bestie!
Trailing Stop with 21 EMA and ATRTrailing Stop with 21 EMA and ATR
This indicator helps traders to dynamically track their trailing stops based on market volatility, ensuring better risk management and optimized exit points.
This Pine Script indicator for TradingView calculates and plots trailing stops based on the 21-period Exponential Moving Average (EMA) and the Average True Range (ATR). The script uses an ATR multiplier to adjust the trailing stops dynamically.
Key Features:
Trailing Stops Calculation:
Long Trailing Stop: Calculated as EMA21 - (ATR * ATR Multiplier)
Short Trailing Stop: Calculated as EMA21 + (ATR * ATR Multiplier)
Customization Options:
Visibility: Toggle the visibility of long and short trailing stops.
Color: Customize the color of the trailing stops for both long and short positions.
Line Width: Adjust the width of the trailing stop lines.
Inputs:
EMA Length: Set the length for the Exponential Moving Average (default is 21).
ATR Length: Set the length for the Average True Range (default is 14).
ATR Multiplier: Set the multiplier for the ATR to adjust the trailing stop distance (default is 1.0).
Drawdown Visualisation█ OVERVIEW
The Drawdown Visualisation indicator calculates and displays the instrument’s drawdown (in percent) relative to its all‐time high (ATH) from a user‐defined start date. It provides customisable options for label appearance, threshold lines (0%, –50%, –100%), and can plot historic drawdown levels via pivot detection.
█ USAGE
This indicator should be used with the Percentage Retracement from ATH indicator.
█ KEY FEATURES
Custom Date Settings — Use a custom start date so that only specified price action is considered.
Retracement Level Calculation — Determines ATH and computes multiple retracement levels using percentages from 0% to –100%.
Visual Signals and Customisation — Plots configurable horizontal lines and labels that display retracement percentages and prices.
Time Filtering — Bases calculations on data from the desired time period.
Historic Drawdowns — Display historical drawdowns
█ PURPOSE
Assist traders in visualising the depth of price retracements from recent or historical peaks.
Identify critical zones where the market may find support or resistance after reaching an ATH.
Facilitate more informed entry and exit decisions by clearly demarcating retracement levels on the chart.
█ IDEAL USERS
Swing Traders — Looking to exploit pullbacks following strong upward moves.
Technical Analysts — Interested in pinpointing key retracement levels as potential reversal or continuation points.
Price Action Traders — Focused on the nuances of market peaks and subsequent corrections.
Strategy Developers — Keen to backtest and refine approaches centred on retracement dynamics.
High Volume Time (HVT) Auto-DisplayThis Indicator displays the upcoming HVT for the NasDaq on a table. The HVT is also displayed on the chart in real-time in order to help accentuate the best times to trade and a clear picture for the daily directional move. This times were found manually and bear as much significance as I bring it to have. These are not guaranteed times for the market to move, but rather High Probability Times based on my own backtesting on NQ.
SMT Divergence [TakingProphets]The SMT (Smart Money Technique) Divergence indicator identifies potential market manipulation and smart money footprints by comparing price action between correlated instruments. It uses a dual-detection system to catch both frequent local SMTs and larger structural SMTs:
• Primary detection uses a shorter lookback period (default 5) to identify common SMT patterns
• Secondary detection uses a longer lookback period (default 8) to catch larger structural SMTs
• Automatically filters significant moves to prevent noise
• Labels are placed clearly outside of price action for better visibility
• Toggle between showing all SMTs or only significant liquidity sweeps
Compare any two instruments to spot divergences in their price action. Particularly useful for:
- Futures vs Spot markets
- Related currency pairs
- Index vs its components
- Any correlated instruments
Default settings are optimized for intraday trading but can be adjusted for different timeframes.
Note: This indicator works best when comparing closely correlated instruments and should be used alongside other technical analysis tools.
RSI + Bollinger Bands + OBV [blondepanther]This custom indicator combines the power of Relative Strength Index (RSI), Bollinger Bands (BB), and On-Balance Volume (OBV) to help identify undervalued and overbought conditions in any market.
Early MACD Reversal IndicatorThis indicator should provide early warnings of potential price reversal based on the difference between the MACD and its signal line. The keys of the reversal come from creating a histogram of the difference between the two lines and further monitoring the first indications of breadth decrease. The first change when trending up will paint a red vertical line and downward triangle to indicate potential trend reversal to the low side. The opposite with a green vertical line and upward triangle signals potential upside movement soon.
Enjoy!
Reversal Opportunity📌 Indicator Description – Reversal Opportunity 🎯
🔍 General Overview
The Reversal Opportunity indicator is designed to identify ideal conditions for Reversal Trading, but it does not provide trade entry signals. Instead, it helps traders determine whether the market conditions are favorable for a potential reversal.
It is specifically designed for traders who execute Reversal trades (Long or Short) and want a clear indication of whether the market is currently suitable for such setups.
💡 What does this indicator do?
- Identifies strong momentum before a reversal (a sharp upward or downward move).
- Detects momentum slowdown (decreasing volume and smaller candles).
- Checks if the RSI is at an extreme level (above 70 or below 30), indicating potential overbought or oversold conditions.
- Displays a table at the top center of the screen with the following key data:
- Are the conditions for a reversal met?
- Is there a slowdown in momentum?
- Is RSI at an extreme level?
- Was there strong uptrend momentum before a possible Short Reversal?
- Was there strong downtrend momentum before a possible Long Reversal?
⚙️ How Does the Indicator Work?
The indicator displays a table in the center of the screen, updating every 5 candles to indicate whether the market conditions are ideal for a reversal trade.
📊 Main Status Row:
- ✔ Ideal Reversal Setup → Conditions for a reversal trade are met (not a trade recommendation).
- ✖ Not Ideal → Reversal conditions are not met; it may be better to wait.
📌 Key Criteria Displayed in the Table:
1. ⚠️ Momentum Slowdown
- Yes → Momentum is weakening (a good sign for reversal trades).
- No → The market is still moving strongly, and a reversal might not be ready yet.
2. 📈 RSI Extreme
- Yes → RSI is above 70 (overbought) or below 30 (oversold), indicating a potential reversal.
- No → RSI is still in a normal range, suggesting that waiting for further confirmation might be wise.
3. 📊 Uptrend Momentum Before Reversal
- Yes → There was a strong uptrend over multiple consecutive candles, potentially setting up for a Short Reversal.
- No → No strong upward momentum was detected, meaning conditions for a Short Reversal may not be ideal.
4. 📉 Downtrend Momentum Before Reversal
- Yes → There was a strong downtrend over multiple consecutive candles, potentially setting up for a Long Reversal.
- No → No strong downward momentum was detected, meaning conditions for a Long Reversal may not be ideal.
🛠️ How to Use the Indicator?
- If "✔ Ideal Reversal Setup" appears, there is a high probability of a market reversal – use your personal entry strategy for further confirmation.
- If Momentum Slowdown = Yes, RSI Extreme = Yes, and strong momentum occurred beforehand, this is an ideal setup for a reversal trade.
- If any conditions are missing ("No"), it may be better to wait for further confirmation instead of entering too early.
- The indicator does NOT provide trade entries! Use your existing trading system for confirmation before entering a trade.
👥 Who Is This Indicator For?
- Reversal traders (entering against the current trend after a strong move).
- Intraday traders looking for reversal trades at extreme market levels.
- Technical traders who rely on Price Action and Volume for trade setups.
⚠️ Disclaimer:
This indicator does not recommend trade entries but provides insight into market conditions. The trader is responsible for risk management and decision-making.
It is best used in combination with additional confirmations such as reversal candles, Order Flow, Bookmap, or Volume Profile to improve accuracy.
🚀 The indicator is ready to use – add it to TradingView and get instant feedback on whether the market is ideal for a Reversal trade!
ELHAI Futures Trend Checker (ES, NQ, YM)The ELHAI Futures Trend Checker is a powerful TradingView indicator designed for futures traders who want to monitor the trend synchronization of the three major U.S. futures indices:
✅ E-mini S&P 500 (ES1!)
✅ E-mini Nasdaq 100 (NQ1!)
✅ E-mini Dow Jones (YM1!)
This indicator checks whether all three futures indices are bullish or bearish during each candle formation. If one of them is out of sync (e.g., two indices are bullish while one is bearish), the indicator triggers an alert and highlights the background in red, helping traders identify potential market indecision or divergence.
Key Features
📌 Designed for Futures Traders – Focuses on ES, NQ, and YM futures contracts.
📌 Live Market Monitoring – Works in real-time and updates dynamically with each tick.
📌 Bullish/Bearish Trend Confirmation – Detects when all three indices are in sync.
📌 Mismatch Detection – Alerts you when at least one index is out of trend.
📌 Custom Alerts – Set up TradingView alerts to be notified instantly when a trend mismatch occurs.
📌 Visual Background Highlight – A red background warns of a market divergence.
How It Works
The script retrieves open and close prices for ES, NQ, and YM.
Determines whether each futures index is bullish (close > open) or bearish (close < open).
If all three indices are bullish or all are bearish, it remains neutral.
If one index is different, an alert is triggered and the background turns red.
How to Use
Apply the indicator to your TradingView chart.
Choose any timeframe – Works well on intraday, daily, or higher timeframes.
Enable alerts: Go to Alerts → Create Alert, select "Futures Trend Mismatch", and set your preferred alert frequency.
Use alongside other indicators like moving averages, RSI, or MACD for better trade confirmation.
Best Use Cases
✔ Day traders & scalpers – Quickly spot market divergence in live trading.
✔ Swing traders – Identify when futures markets lose synchronization.
✔ Trend followers – Confirm if all major futures markets are aligned before making a move.
Final Notes
This indicator was built for Elhai to provide real-time trend analysis across major U.S. futures indices. Use it as a confirmation tool to improve market timing and decision-making.
EUR/USD vs USD/CHF SpreadA typical Pine Script for spread trading would include:
Fetching Data: Getting the real-time price of EUR/USD and USD/CHF.
Calculating the Synthetic EUR/CHF Price: Since EUR/USD * USD/CHF ≈ EUR/CHF, we use this relation to analyze deviations.
Computing the Spread: Taking the difference between EUR/USD and the synthetic EUR/CHF price.
Z-Score Normalization: Measuring how far the spread deviates from the mean (Mean Reversion).
Overlay and Visuals: Plotting the spread and key levels to visualize trading signals.
200-Day SMA Slope Oscillator SmoothA smooth oscillator that oscillates between positive and negative values.
The oscillator tracks the change in the 200-day SMA and smooths the transitions to give you a cleaner, more gradual movement.
We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
ELHAI INDICES CHECKERDescription
The Major Indices Trend Checker is a powerful TradingView indicator designed to monitor the trend synchronization of the three major U.S. stock indices:
✅ S&P 500 (SPX)
✅ Nasdaq 100 (NDX)
✅ Dow Jones Industrial Average (DJI)
This indicator checks whether all three indices are bullish or bearish during each candle formation. If one of them is out of sync (e.g., two indices are bullish while one is bearish), the indicator triggers an alert and highlights the background in red, helping traders identify potential market indecision or divergence.
Key Features
📌 Live Market Monitoring – Works in real-time, updating dynamically with every tick.
📌 Bullish/Bearish Trend Check – Confirms if all three indices are aligned in the same trend.
📌 Mismatched Trend Detection – Alerts you when at least one index is not following the others.
📌 Custom Alerts – Set up TradingView alerts to notify you when a trend mismatch occurs.
📌 Visual Background Highlight – Red background indicates an out-of-sync market.
How It Works
The script retrieves open and close prices for SPX, NDX, and DJI.
Determines whether each index is bullish (close > open) or bearish (close < open).
If all three indices are bullish or all are bearish, it remains neutral.
If one index is out of sync, an alert is triggered and the background turns red.
How to Use
Apply the indicator to your TradingView chart.
Select any timeframe – it works on all intraday, daily, and higher timeframes.
Enable alerts: Go to Alerts → Create Alert, select "Trend Mismatch", and choose how often you want to be notified.
Use it with other indicators for confirmation, such as moving averages, RSI, or MACD.
Best Use Cases
✔ Day traders & scalpers – Spot market uncertainty early in the session.
✔ Swing traders – Identify moments when markets lack alignment before making a move.
✔ Trend followers – Avoid entering trades when major indices disagree on direction.
Final Notes
This indicator helps you stay ahead of market indecision by highlighting divergence among major indices. Use it as a confirmation tool alongside your strategy to improve your market timing and decision-making.
200-Day MA Slope Oscillator Explanation:
ma200: The 200-day simple moving average of the closing price.
slope: The difference between the current value of the 200-day MA and its value 1 bar ago.
oscillator: We use the slope to determine the value of the oscillator. If the slope is positive, the oscillator will show a positive value;If the slope is negative, it'll be a negative value.
plot(): This plots the oscillator on a separate pane.
MACD platinum / zero lag MACD +MACD Platinum Indicator
MACD Platinum enhances the traditional MACD by incorporating Zero Lag EMAs for quicker signal generation. This adaptation was developed by John Ehlers and Rick Way, and gained popularity through Forex trader Jim Brown.
Other Distinctive Features Include:
1. Customizable Signal Line: Options include SMA, EMA, Zero Lag EMA, HMA, WMA (also known as LWMA), VWMA, and RMA (also known as SMMA or Wilder MA).
2. Adjustable MACD Line: Similar to the Signal Line, it can be set to SMA, EMA, Zero Lag EMA, HMA, WMA (LWMA), VWMA, or RMA (SMMA/Wilder MA).
3. Histogram Toggle: Users have the option to display or hide the histogram.
4. Multiple Timeframe Compatibility: Allows for the use of different time intervals from the chart's current interval.
5. Alert Functionality: Fully compatible with setting up alerts for trading signals.
I welcome your feedback to further refine this tool.
Thank you for your interest in MACD Platinum.
MACD with Candle DisplayMACD Calculation:
Uses user-defined Fast Length, Slow Length, and Signal Smoothing parameters to compute MACD.
Supports SMA (Simple Moving Average) or EMA (Exponential Moving Average) for the MACD line and signal line
Histogram-Based Candle Coloring:
The script categorizes histogram bars into four states:
0 (Very Bullish) → Green
1 (Likely Bearish) → Blue
2 (Likely Bullish) → Orange
3 (Very Bearish) → Red
Histogram Plot:
Displays histogram bars with distinct colors based on price momentum changes.
Market Sentiment Display in Status Line & Price Scale:
Instead of adding a label on the chart (which could obstruct candles), a text display is shown in the price scale and status line:
"0 Very Bullish"
"1 Likely Bearish"
"2 Likely Bullish"
"3 Very Bearish"
The text appears in the top-right corner with white font on a black background.
Purpose:
This indicator enhances the standard MACD by incorporating candle coloring and a cleaner sentiment display in the price scale, helping traders quickly interpret market momentum without cluttering the chart.
ICT Killzones + Macros [TakingProphets]The ICT Killzones indicator is a powerful tool designed to visualize key trading sessions and market timing elements used in ICT (Inner Circle Trader) methodology. It includes:
• Session Markers:
- Asia Session
- London Session
- NY AM Session
- NY Lunch Session
- NY PM Session
• Key Price Levels:
- Session high/low levels that extend until violated
- Midnight Open price level (dotted line)
- True Day Open price level (6 PM EST, dotted line)
• ICT Macro Timing:
- First Macro: 9:45 AM - 10:15 AM EST
- Second Macro: 10:45 AM - 11:15 AM EST
- Distinctive L-shaped brackets marking start and end times
Features:
• Fully customizable colors and styles for all elements
• Adjustable label positions and sizes
• Toggle options for each component
• Smart timeframe filtering
• Clean, uncluttered visual design
This indicator helps traders identify key market structure points, session transitions, and optimal trading windows based on ICT concepts.
Earnings Expansion ProjectionThis indicator has no counterpart in the platform and is a professional-grade earnings visualization tool that plots EPS expansion directly on your charts, inspired by institutional-level technical analysis platforms.
The indicator creates a distinctive earnings expansion projection curve that can be a leading indicator of price direction moves.
Key features:
Clean, institutional-style, EPS-expansion projection line overlaid on price action
Visual earnings surprise indicators with beat/miss multipliers
Dashboard for rapid fundamental assessment including the stocks win rate on beatings / missing earnings historically and other fundamental information not readily available on Tradingview
What is it doing?
It collects all earnings results available and will interpolate the numbers so that we see earnings expansion as a curve.
The video below describes usage
Note: Valid on the weekly time-frame only.
Average Price in Time PeriodsThis Pine Script calculates and displays average prices for two specific time ranges during a trading day: from 09:00 to 22:30 and from 22:30 to 09:00. It updates the average prices by summing the closing prices in each time frame and then plots them as green and red lines, respectively. The script also displays black lines outside these specific time ranges to prevent "gaps" in the chart during off-peak hours. The displayed lines are dynamically adjusted based on the current time, with the green line for 09:00-22:30 and the red line for 22:30-09:00.