Logarithmic Regression Channel-Trend [BigBeluga]
This indicator utilizes logarithmic regression to track price trends and identify overbought and oversold conditions within a trend. It provides traders with a dynamic channel based on logarithmic regression, offering insights into trend strength and potential reversal zones.
🔵Key Features:
Logarithmic Regression Trend Tracking: Uses log regression to model price trends and determine trend direction dynamically.
f_log_regression(src, length) =>
float sumX = 0.0
float sumY = 0.0
float sumXSqr = 0.0
float sumXY = 0.0
for i = 0 to length - 1
val = math.log(src )
per = i + 1.0
sumX += per
sumY += val
sumXSqr += per * per
sumXY += val * per
slope = (length * sumXY - sumX * sumY) / (length * sumXSqr - sumX * sumX)
average = sumY / length
intercept = average - slope * sumX / length + slope
Regression-Based Channel: Plots a log regression channel around the price to highlight overbought and oversold conditions.
Adaptive Trend Colors: The color of the regression trend adjusts dynamically based on price movement.
Trend Shift Signals: Marks trend reversals when the log regression line cross the log regression line 3 bars back.
Dashboard for Key Insights: Displays:
- The regression slope (multiplied by 100 for better scale).
- The direction of the regression channel.
- The trend status of the logarithmic regression band.
🔵Usage:
Trend Identification: Observe the regression slope and channel direction to determine bullish or bearish trends.
Overbought/Oversold Conditions: Use the channel boundaries to spot potential reversal zones when price deviates significantly.
Breakout & Continuation Signals: Price breaking outside the channel may indicate strong trend continuation or exhaustion.
Confirmation with Other Indicators: Combine with volume or momentum indicators to strengthen trend confirmation.
Customizable Display: Users can modify the lookback period, channel width, midline visibility, and color preferences.
Logarithmic Regression Channel-Trend is an essential tool for traders who want a dynamic, regression-based approach to market trends while monitoring potential price extremes.
指標和策略
rate_of_changeLibrary "rate_of_change"
// @description: Applies ROC algorithm to any pair of values.
// This library function is used to scale change of value (price, volume) to a percentage value, just as the ROC indicator would do. It is good practice to scale arbitrary ranges to set boundaries when you try to train statistical model.
rateOfChange(value, base, hardlimit)
This function is a helper to scale a value change to its percentage value.
Parameters:
value (float)
base (float)
hardlimit (int)
Returns: per: A float comprised between 0 and 100
High and Low in a Given Date/Time RangeThis Pine Script v5 indicator plots horizontal lines at both the highest and lowest price levels reached within a user-defined date/time range.
Description:
Inputs:
The user specifies a start and an end date/time by providing the year, month, day, hour, and minute for each. These inputs are converted into timestamps based on the chart’s timezone.
How It Works:
Timestamp Conversion: The script converts the provided start and end dates/times into timestamps using the chart’s timezone.
Bar Check: It examines every bar and checks if the bar’s timestamp falls between the start and end timestamps.
Price Updates:
If a bar’s time is within the specified range, the indicator updates the highest price if the current bar's high exceeds the previously recorded high, and it updates the lowest price if the current bar's low is lower than the previously recorded low.
Drawing Lines:
A red horizontal line is drawn at the highest price, and a green horizontal line is drawn at the lowest price. Both lines start from the first bar in the range and extend dynamically to the current bar, updating as new high or low values are reached.
End of Range: Once a bar's time exceeds the end timestamp, the lines stop updating.
This tool offers a clear and straightforward way to monitor key price levels during a defined period without any extra fluff.
Relative Volume at TimeThe Relative Volume at Time indicator (RVOL) is a simple modification of the original Relative Volume at Time script available in TradingView’s public library. It doesn’t change how the indicator works but includes two small adjustments:
Added Color Options – The ability to customize the colors of the volume bars, which was important to me as I use this indicator all the time and wanted more visually suitable colors.
Renamed Short Title – The abbreviation "RVOL" replaces "RelVol", as it's a more commonly used term in trading.
Aside from these small tweaks, the indicator retains all of its original functionality, including the ability to set an anchor timeframe, choose between Regular and Cumulative volume calculation modes, and adjust unconfirmed volume for incomplete bars.
This version exists simply because I needed a more personalized display for an indicator that I rely on daily.
How It Works
The Relative Volume at Time indicator compares the current volume to the average volume at the same time in previous sessions. This helps determine if today’s activity is higher or lower than usual.
Examples
On a daily chart (1D timeframe, length = 10), each volume bar compares today's volume to the average volume at the same time over the last 10 days. If today’s volume is higher than usual at this moment, the bar will reflect that.
On an hourly chart (1H timeframe, length = 5), each hourly volume bar compares the current hour’s volume to the same hour in the past 5 days. If the 10 AM bar is high, it means today's 10 AM volume is greater than the average of the past 5 sessions at 10 AM.
On a weekly chart (1W timeframe, length = 8), the indicator compares this week’s volume to the average of the last 8 weeks. A higher bar means this week is seeing significantly more volume than usual.
This logic applies to any timeframe. It always compares the current volume to past volumes at the same point in time.
@Julien_Eche
Highlight All Bars Matching Today's Weekday Across ChartThis indicator highlights all bars on the chart that correspond to the same weekday as today. It is designed to help traders identify recurring patterns or behaviors that may appear consistently on specific weekdays.
By visually marking these repeating days, traders can more easily observe potential time-based market tendencies and enhance pattern recognition in their analysis.
Smart Range Breakout - SwiftEdgeDescription:
The "Smart Range Breakout - SwiftEdge" indicator is a custom tool designed for identifying potential breakout opportunities on a 1-minute chart, with a focus on volatile markets like the DAX index. This script introduces a unique approach by combining range consolidation detection with volume confirmation and breakout validation, tailored for short-term trading strategies.
How It Works:
The indicator identifies consolidation periods where the price range (difference between the highest high and lowest low over a user-defined length) is below a multiple of the Average True Range (ATR). This helps detect periods of low volatility, which often precede breakouts.
Once a consolidation is confirmed (minimum number of bars), a green box is drawn on the chart, spanning a fixed length of bars (default 50), representing the potential breakout zone.
Breakouts are signaled only when a candle opens above the upper boundary (box top) or below the lower boundary (box bottom) of the consolidation box, ensuring a clear entry point based on price action at the open.
The script includes a volume filter, requiring volume to exceed a moving average by a specified multiplier, and a confirmation period to validate the breakout over consecutive bars.
To avoid signal clutter, only one breakout signal (up or down) is generated per box, and no further signals are issued until a new consolidation box is formed.
How to Use:
Apply the indicator to a 1-minute chart (optimized for DAX or similar volatile indices).
Adjust the "Consolidation Length" (default 5) to set the lookback period for detecting consolidation.
Modify the "Range Threshold (ATR Multiplier)" (default 2.0) to make the consolidation detection more or less strict based on market volatility.
Use "Minimum Consolidation Bars" (default 2) to set the minimum duration of a consolidation phase.
Tune "Confirmation Bars" (default 1) to require more bars to confirm the breakout.
Set "Volume MA Length" (default 5) and "Volume Multiplier" (default 1.1) to filter breakouts with insufficient volume.
Adjust "Max Box Length" (default 50) to control the duration of the breakout zone on the chart.
Look for green triangles below the chart for bullish breakouts and red triangles above for bearish breakouts, occurring when a candle opens outside the box with confirmed volume.
Originality:
This script stands out by integrating a fixed-length consolidation box with an opening-price breakout condition, combined with volume and multi-bar confirmation. Unlike traditional breakout indicators that rely solely on closing prices or simple price thresholds, this approach prioritizes the opening price and limits signals to one per cycle, reducing noise in volatile markets.
Chart Notes:
The accompanying chart displays the indicator's output with green boxes indicating consolidation zones, yellow dots marking consolidation periods, and green/red triangles for breakout signals. No additional scripts or unrelated drawings are included to ensure clarity.
Normalized Equity/Bond RatioThis indicator calculates a normalized equity-to-bond ratio over a 252-day lookback (~1 trading year) to assess risk-on vs. risk-off sentiment. It addresses the issue of direct ratios (e.g., SPY/TLT) being visually dominated by high nominal stock prices, which can obscure bond price movements.
A rising ratio indicates equities are outperforming bonds, suggesting risk-on conditions, while a declining ratio signals a shift toward bonds, often associated with risk-off behavior. The normalization ensures better visibility and comparability of the trend over time.
A ratio > 1 means the equity (e.g., SPY) is outperforming the bond (e.g., AGG) since the lookback. A ratio < 1 means bonds are outperforming.
Renz-GPT IndicatorThe Renz-GPT Indicator is a powerful, all-in-one trading tool designed to simplify decision-making and improve trade accuracy using a combination of trend, momentum, and volume analysis.
🔍 How It Works
Trend Detection:
Uses two EMAs (Exponential Moving Averages) to identify the current market trend.
A higher timeframe EMA acts as a trend filter to align trades with the larger market trend.
Momentum Confirmation:
RSI (Relative Strength Index) confirms the momentum strength.
Only takes trades when the momentum aligns with the trend.
Volume Confirmation:
Uses On-Balance Volume (OBV) to verify if volume supports the trend direction.
Signal Calculation:
Combines trend, momentum, and volume signals to create a high-probability trade setup.
Filters out weak signals to avoid false trades.
Entry, Stop Loss & Take Profit:
Displays clear LONG and SHORT markers on the chart.
Automatically calculates and displays Stop Loss and Take Profit levels based on ATR (Average True Range).
Alerts:
Sends real-time alerts when a valid buy or sell signal occurs.
Alerts include entry price, stop loss, and take profit levels.
NIFTY VWAP DistanceNIFTY Futures VWAP Distance Indicator
Track price deviation from Volume-Weighted Average Price in real-time
📈 Key Features:
Measures absolute (points) and percentage distance from VWAP
Daily session reset aligned with NSE trading hours
Dual-axis visualization with clear zero reference line
Real-time data table display for instant analysis
Typical price calculation: (H+L+C)/3 formula
Built-in safeguards against division errors
🎯 Ideal For:
Intraday traders monitoring mean reversion opportunities
Algorithmic traders needing VWAP deviation metrics
Swing traders identifying overextended price moves
Market profile analysts studying auction theory
📊 How to Use:
Apply to NIFTY Futures chart (1m-1h timeframes recommended)
Blue line = Points above/below VWAP
Red line = Percentage deviation
Positive values = Price > VWAP (bullish territory)
Negative values = Price < VWAP (bearish territory)
💡 Pro Tips:
Combine with volume profile for confirmation
Watch for >1% deviations for potential reversals
Use divergence patterns for early trend change signals
Works best with raw futures data (not continuous contracts)
🔧 Technical Specs:
Pine Script v5+
No repainting
Low latency calculations
Mobile-friendly display
"Know when price strays too far from fair value"
Key Levels by MoneyTribe21This custom script provides real-time tracking of key market price levels, helping traders identify critical support and resistance zones. It dynamically updates throughout the trading session, making it ideal for intraday trading, breakout strategies, and market structure analysis.
Features:
Real-Time Tracking of Key Price Levels:
ATH (All-Time High): Tracks the highest price ever reached for the asset.
PDH (Previous Day High): Marks the high of the last trading day,
PDL (Previous Day Low): Marks the low of the last trading day, serving as dynamic support.
Resistance Level: Based on the current day’s high, signaling potential price rejection points.
Support Level: Based on the current day’s low, indicating potential price bounces.
Daily Open Price: Tracks the exact market open price at the start of the trading session.
Works Across All Timeframes:
Designed for intraday, swing, and long-term trading.
Automatically adjusts levels for Forex, Stocks, Crypto, and Indices.
Fully Customizable Settings:
Modify line colors, thickness, and styles for better chart readability.
Enable/disable specific levels based on trading preference.
Works on all TradingView-compatible brokers and platforms.
How to Use This Indicator:
Breakout & Reversal Trading:
If price breaks above PDH, it may indicate bullish momentum.
If price breaks below PDL, it may signal a bearish continuation.
ATH levels can act as strong resistance zones—watch for breakouts or rejection.
Dynamic Support & Resistance:
Resistance Level (Current Day High): If price fails to break, it may signal a reversal.
Support Level (Current Day Low): If price bounces off, it may confirm a strong uptrend.
Daily Open for Trend Confirmation:
Above Daily Open: Market sentiment is bullish.
Below Daily Open: Market sentiment is bearish.
Customization Options:
Toggle individual price levels ON/OFF for a clutter-free chart.
Customize colors, line styles, and alerts for better visualization.
Set alerts for breakouts & retests of key levels.
Ideal for Traders Who:
Want high-probability support & resistance zones in real-time.
Trade breakouts, reversals, or trend continuations.
Use market structure analysis for informed decision-making.
Need automatic price tracking instead of drawing levels manually.
Compatible with all TradingView timeframes & assets (Forex, Stocks, Crypto, Indices).
Designed for both beginner and advanced traders.
Add this indicator to your chart and start tracking key levels instantly.
Moving Averages By MoneyTribe21This custom indicator displays three Smoothed Moving Averages (SMAs) designed to help traders identify market trends, potential reversals, and key support/resistance levels. It is ideal for trend-following strategies, momentum trading, and confirming price direction in various timeframes.
Three Smoothed Moving Averages to track short-term, mid-term, and long-term trends:
21-Day SMA: Captures short-term price momentum and trend direction.
50-Day SMA: Represents the mid-term trend, often used as dynamic support/resistance.
200-Day SMA: The long-term trend filter, commonly watched by institutional traders.
Fully Customizable Settings
Adjust period length for each SMA to fit your strategy.
Modify line colors, thickness, and styles for better visibility.
Enable/disable specific SMAs based on preference.
Works Across All Markets
Compatible with Forex, Stocks, Commodities, Crypto, and Indices.
Supports multiple timeframes (1M, 5M, 1H, Daily, Weekly, etc.)
Multi-Timeframe RPM Gauges with Custom Timeframes by DiGetIntroducing the **Multi-Timeframe RPM Gauges with Custom Timeframes + RSI Combos (mod) by DiGet** – a cutting-edge TradingView indicator meticulously crafted to revolutionize your market analysis.
Imagine having a dynamic dashboard right on your chart that consolidates the power of nine essential technical indicators—RSI, CCI, Stochastic, Williams %R, EMA crossover, Bollinger Bands, ATR, MACD, and Ichimoku Cloud—across multiple timeframes. This indicator not only displays each indicator’s score through an intuitive gauge system but also computes a combined metric to provide you with an at-a-glance understanding of market momentum and potential trend shifts.
**Key Features:**
- **Multi-Timeframe Insight:**
Configure up to four custom timeframes (e.g., 1, 5, 15, 60 minutes) to capture both short-term fluctuations and long-term trends, ensuring you never miss critical market moves.
- **Comprehensive Signal Suite:**
Benefit from a harmonious blend of signals. Whether you rely on momentum indicators like RSI and CCI, volatility measures like Bollinger Bands and ATR, or trend confirmations via EMA, MACD, and Ichimoku, every metric is normalized into actionable percentages.
- **Dynamic, Color-Coded Gauge Display:**
A built-in table presents all your data in a clear, color-coded format—green for bullish, red for bearish, and gray for neutral conditions. This visual representation allows you to quickly gauge market sentiment without sifting through complex charts.
- **Customizable Layout:**
Tailor your experience by toggling individual table columns. Whether you want to focus solely on RSI or dive deep into combined metrics like RSI & CCI or RSI & MACD, the choice is yours.
- **Optimized Utility Functions:**
Proprietary functions standardize indicator values into percentage scores, making it simpler than ever to compare different signals and spot opportunities in real time.
- **User-Friendly Interface:**
Designed for both beginners and seasoned traders, the straightforward input settings let you easily adjust technical parameters and timeframes to suit your personal trading strategy.
This indicator is not just a tool—it’s your new trading companion. It equips you with a multi-dimensional view of the market, enabling faster, more informed decision-making. Whether you’re scanning across various assets or drilling down on a single chart, the Multi-Timeframe RPM Gauges empower you to interpret market data with unprecedented clarity.
Add this indicator to your TradingView chart today and experience a smarter, more efficient way to navigate the markets. Join the community of traders who have elevated their analysis—and be ready to receive countless thanks as you transform your trading strategy!
5-Min First Candle Breakout/BreakdownAwesome! Here's a basic Pine Script (v5) for a First 5-minute candle breakout/breakdown strategy with Buy/Sell signals and price labels. This script works by capturing the high and low of the first candle of the session and then showing signals when those levels are broken.
You can customize it further for Entry, Stop Loss, Target, etc., but this gives you the foundation with labels for buys/sells based on breakout/breakdown.
CCT Pi Cycle Top/BottomPi Cycle Top/bottom: The Ultimate Market Cycle Indicator
Introduction
The Pi Cycle Top/bottom Indicator is one of the most reliable tools for identifying Bitcoin market cycle peaks and bottoms. Its effectiveness lies in the strategic combination of moving averages that historically align with major market cycle reversals. Unlike traditional moving average crossovers, this indicator applies an advanced iterative approach to pinpoint price extremes with higher accuracy.
This version, built entirely with Pine Script™ v6, introduces unprecedented precision in detecting both the Pi Cycle Top and Pi Cycle Bottom, eliminating redundant labels, optimizing visual clarity, and ensuring the indicator adapts dynamically to evolving market conditions.
What is the Pi Cycle Theory?
The Pi Cycle Top and Pi Cycle Bottom were originally introduced based on a simple yet profound discovery: key moving average crossovers consistently align with macro market tops and bottoms.
Pi Cycle Top: The crossover of the 111-day Simple Moving Average (SMA) and the 350-day SMA multiplied by 2 has historically signaled market tops with astonishing accuracy.
Pi Cycle Bottom: The intersection of the 150-day Exponential Moving Average (EMA) and the 471-day SMA has repeatedly marked significant market bottoms.
While traditional moving average strategies often suffer from lag and false signals, the Pi Cycle Indicator enhances accuracy by applying a range-based scanning methodology, ensuring that only the most critical reversals are detected.
How This Indicator Works
Unlike basic moving average crossovers, this script introduces a unique iteration process to refine the detection of Pi Cycle points. Here’s how it works:
Detecting Crossovers:
Identifies the Golden Cross (bullish crossover) and Death Cross (bearish crossover) for both the Pi Cycle Top and Pi Cycle Bottom.
Iterating Through the Cycle:
Instead of plotting a simple crossover point, this script scans the range between each Golden and Death Cross to identify the absolute lowest price (Pi Cycle Bottom) and highest price (Pi Cycle Top) within that cycle.
Precision Labeling:
The indicator dynamically adjusts label positioning:
If the price at the crossover is below the fast moving average → the label is placed on the moving average with a downward pointer.
If the price is above the fast moving average → the label is placed below the candle with an upward pointer.
This ensures optimal visibility and prevents misleading signal placement.
Advanced Pine Script v6 Features:
Labels and moving average names are only shown on the last candle, reducing chart noise while maintaining clarity.
Offers full user customization, allowing traders to toggle:
Pi Cycle Top & Bottom visibility
Moving average labels
Crossover labels
Why This Indicator is Superior
This script is not just another moving average crossover tool—it is a market cycle tracker designed for long-term investors and analysts who seek:
✔ High-accuracy macro cycle identification
✔ Elimination of false signals using an iterative range-based scan
✔ Automatic detection of market extremes without manual adjustments
✔ Optimized visuals with smart label positioning
✔ First-of-its-kind implementation using Pine Script™ v6 capabilities
How to Use It?
Bull Market Tops:
When the Pi Cycle Top indicator flashes, consider the potential for a market cycle peak.
Historically, Bitcoin has corrected significantly after these signals.
Bear Market Bottoms:
When the Pi Cycle Bottom appears, it suggests a macro accumulation phase.
These signals have aligned perfectly with historical cycle bottoms.
Final Thoughts
The Pi Cycle Top/bottom Indicator is a must-have tool for traders, investors, and analysts looking to anticipate long-term trend reversals with precision. With its refined methodology, superior label positioning, and cutting-edge Pine Script™ v6 optimizations, this is the most reliable version ever created.
Personal Time Zone: Days of WeekThis is probably the simplest indicator I have ever made.
It just gives you a the days of weeks in your specified time zone and puts the day on the first bar in your time zone.
You can use UTC time format or named time zones like the default.
Just for fun I tried to give it symbols that sort of relate the old gods that the days of week were named after and even colors that one could argue match, but it was all in fun because it was so simple I felt I had to add something.
Enjoy.
RSI with Trend LinesThe RSI with Trend Lines indicator is a tool designed to analyze the behavior of the Relative Strength Index (RSI) combined with dynamic trend lines. This indicator not only provides the standard RSI reading but also identifies pivot points on the RSI and draws bullish and bearish trend lines based on these points. It also includes customizable options for adjusting trend lines, displaying the RSI moving average, and highlighting key levels such as overbought, oversold, and the center line.
This indicator is ideal for finding and identifying clear trends in the RSI and taking advantage of market breakout or consolidation signals. It also includes a table with the POC value, which represents the price level at which the most trading activity has occurred, indicating the highest liquidity and highest trading volume.
Key Features:
1. Basic RSI:
• Calculates the RSI using a configurable period length (default 14).
• Colors the RSI based on its direction (green for rising, red for falling) and its position relative to the center line (50).
2. Key Levels:
• Displays overbought (70 and 80), oversold (20 and 30), and the center line (50) levels for easy visual interpretation.
3. RSI Moving Average:
• Enables and configures an RSI moving average (SMA, EMA, WMA, or ALMA) to smooth out fluctuations and detect clearer trends.
4. Dynamic Trend Lines:
• Identifies pivot points on the RSI and draws bullish and bearish trend lines.
• Trend lines can be extended into the future or limited to the visible range.
• Includes options to display broken lines (trends that are no longer valid) and customize the style (solid or dashed).
5. Pivot Points:
• Displays the high and low pivot points on the chart for a better understanding of trend changes.
6. Advanced Customization:
• Adjust the pivot point period.
• Control the number of pivot points to consider for trend lines.
• Customize the line thickness and style.
How to Use the Indicator:
1. RSI Interpretation:
• Overbought Zone (RSI > 70): Indicates that the asset may be overvalued and could correct downward.
• Oversold Zone (RSI < 30): Suggests that the asset may be undervalued and could rebound.
• Centerline Crossover (50): A cross above 50 indicates bullish strength, while a cross below suggests weakness.
2. Trend Lines:
• Bullish Lines: Drawn when the RSI forms ascending low pivot points. These lines represent dynamic support.
• Bearish Lines: These are drawn when the RSI forms descending high pivot points. These lines represent dynamic resistance.
• Broken Lines: When a trend line becomes invalid (the RSI breaks the line), they are displayed in a dotted style to highlight the breakout.
3. Possible Trading Signals:
• Buy: When the RSI breaks an upward downtrend line.
• Sell: When the RSI breaks a downward uptrend line.
• Trend Confirmation: When the RSI stays within a valid trend line, it suggests that the current trend is strong.
4. A chart with the POC value:
• The point of control is a price level at which the highest trading volume occurs in a given time period. It is a key component of the Volume Profile indicator, which displays volume by price.
• Use of the POC in trading:
• The POC is used to identify areas of high interest and liquidity for trading.
• The POC provides information about the equilibrium point where buyers and sellers are most evenly matched.
• Therefore, it can be considered a zone of interest, meaning it can act as support or resistance.