IU Bigger than range strategyDESCRIPTION
IU Bigger Than Range Strategy is designed to capture breakout opportunities by identifying candles that are significantly larger than the previous range. It dynamically calculates the high and low of the last N candles and enters trades when the current candle's range exceeds the previous range. The strategy includes multiple stop-loss methods (Previous High/Low, ATR, Swing High/Low) and automatically manages take-profit and stop-loss levels based on user-defined risk-to-reward ratios. This versatile strategy is optimized for higher timeframes and assets like BTC but can be fine-tuned for different instruments and intervals.
USER INPUTS:
Look back Length: Number of candles to calculate the high-low range. Default is 22.
Risk to Reward: Sets the target reward relative to the stop-loss distance. Default is 3.
Stop Loss Method: Choose between:(Default is "Previous High/Low")
- Previous High/Low
- ATR (Average True Range)
- Swing High/Low
ATR Length: Defines the length for ATR calculation (only applicable when ATR is selected as the stop-loss method) (Default is 14).
ATR Factor: Multiplier applied to the ATR to determine stop-loss distance(Default is 2).
Swing High/Low Length: Specifies the length for identifying swing points (only applicable when Swing High/Low is selected as the stop-loss method).(Default is 2)
LONG CONDITION:
The current candle’s range (absolute difference between open and close) is greater than the previous range.
The closing price is higher than the opening price (bullish candle).
SHORT CONDITIONS:
The current candle’s range exceeds the previous range.
The closing price is lower than the opening price (bearish candle).
LONG EXIT:
Stop-loss:
- Previous Low
- ATR-based trailing stop
- Recent Swing Low
Take-profit:
- Defined by the Risk-to-Reward ratio (default 3x the stop-loss distance).
SHORT EXIT:
Stop-loss:
- Previous High
- ATR-based trailing stop
- Recent Swing High
Take-profit:
- Defined by the Risk-to-Reward ratio (default 3x the stop-loss distance).
ALERTS:
Long Entry Triggered
Short Entry Triggered
WHY IT IS UNIQUE:
This strategy dynamically adapts to different market conditions by identifying candles that exceed the previous range, ensuring that it only enters trades during strong breakout scenarios.
Multiple stop-loss methods provide flexibility for different trading styles and risk profiles.
The visual representation of stop-loss and take-profit levels with color-coded plots improves trade monitoring and decision-making.
HOW USERS CAN BENEFIT FROM IT:
Ideal for breakout traders looking to capitalize on momentum-driven price moves.
Provides flexibility to customize stop-loss methods and fine-tune risk management parameters.
Helps minimize drawdowns with a strong risk-to-reward framework while maximizing profit potential.
Forecasting
15-Minute Block Marker Enhanced with AlertsQuick and simple 15 minute Block indicator for profitable scalping using 5 minute intervals.
Supply & Demand Zones + SMA CrossoverSupply & Demand Zones + SMA Crossover
This script combines Supply & Demand Zones with a 50 SMA and 100 SMA crossover strategy to identify key trading opportunities.
🔹 Features:
✅ Plots Supply (Resistance) and Demand (Support) zones based on swing highs and lows.
✅ Highlights zones dynamically with background colors.
✅ Includes 50 SMA and 100 SMA to track trend direction.
✅ Generates Buy signals (green arrow) when the 50 SMA crosses above the 100 SMA.
✅ Generates Sell signals (red arrow) when the 50 SMA crosses below the 100 SMA.
✅ Provides alert conditions for automatic notifications.
This tool is ideal for traders looking to combine price action with moving average crossovers to identify potential trade entries and exits. 🚀📈
DenP Ichimoku Interpreter (DII)A simple indicator using Ishimoku as a basis, giving entry and exit signals.
Components of the Ichimoku Cloud
The Ichimoku system consists of multiple lines that help traders understand market trends, momentum, and potential reversals.
1. Tenkan-Sen (Conversion Line) - Blue
Formula: (Highest High + Lowest Low) / 2 over the last 9 periods (default).
Purpose: Measures short-term trend direction.
Interpretation:
Upward movement: Indicates bullish momentum.
Downward movement: Indicates bearish momentum.
Flat line: Indicates consolidation.
2. Kijun-Sen (Base Line) - Red
Formula: (Highest High + Lowest Low) / 2 over the last 26 periods (default).
Purpose: Represents medium-term trend.
Interpretation:
Price above Kijun-Sen: Bullish signal.
Price below Kijun-Sen: Bearish signal.
Flat Kijun-Sen: Market in consolidation.
3. Senkou Span A (Leading Span A) - Light Green
Formula: (Tenkan-Sen + Kijun-Sen) / 2, plotted 26 periods ahead.
Purpose: Forms one of the Ichimoku Cloud boundaries.
Interpretation:
If Senkou Span A is rising, the market is bullish.
If Senkou Span A is falling, the market is bearish.
4. Senkou Span B (Leading Span B) - Light Red
Formula: (Highest High + Lowest Low) / 2 over the last 52 periods, plotted 26 periods ahead.
Purpose: Forms the second boundary of the Ichimoku Cloud.
Interpretation:
If price is above the cloud, the market is in a strong uptrend.
If price is below the cloud, the market is in a strong downtrend.
If price is inside the cloud, the market is consolidating.
5. Kumo (Cloud)
The area between Senkou Span A and Senkou Span B is shaded.
Green Cloud (Span A above Span B): Bullish trend.
Red Cloud (Span B above Span A): Bearish trend.
The thickness of the cloud represents market volatility.
6. Chikou Span (Lagging Line) - Green
Formula: Current closing price plotted 26 periods back.
Purpose: Confirms trend direction.
Interpretation:
Chikou Span above price 26 periods ago: Bullish.
Chikou Span below price 26 periods ago: Bearish.
Buy and Sell Conditions
The indicator generates buy and sell signals based on Ichimoku components.
1. Kijun Cross (Medium-Term Trend)
Buy Signal: When the closing price crosses above the Kijun-Sen (red line).
Sell Signal: When the closing price crosses below the Kijun-Sen.
2. Cloud Breakout (Senkou Span Cross)
Buy Signal:
When Senkou Span A is above Senkou Span B, and the price crosses above the cloud.
Indicates a strong uptrend.
Sell Signal:
When Senkou Span B is above Senkou Span A, and the price crosses below the cloud.
Indicates a strong downtrend.
3. Chikou Span Confirmation (Momentum Confirmation)
Buy Signal:
If Chikou Span (green) crosses above past price action, it confirms a bullish trend.
Used to validate Kijun and Cloud Buy signals.
Sell Signal:
If Chikou Span crosses below past price action, it confirms a bearish trend.
Visual Signals
The indicator plots triangles on the chart to indicate buy and sell signals:
Kijun Buy Signal: Upward triangle (green).
Kijun Sell Signal: Downward triangle (red).
Cloud Buy Signal: Upward triangle (green) near the cloud.
Cloud Sell Signal: Downward triangle (red) near the cloud.
Chikou Confirmation Buy: Upward triangle (green, confirming previous signals).
Chikou Confirmation Sell: Downward triangle (red, confirming previous signals).
Additional Features
Customizable Colors & Settings: Users can adjust colors, time periods, and display settings.
On-Chart Table: Displays current trend interpretations for easy reference.
How to Use the Indicator?
Check the Cloud Position:
Price above the cloud = bullish.
Price below the cloud = bearish.
Price inside the cloud = consolidation.
Look for Kijun Crosses:
Buy when price crosses above Kijun-Sen.
Sell when price crosses below Kijun-Sen.
Confirm with Chikou Span:
If Chikou Span supports the buy/sell signal, it's more reliable.
Use Cloud Breakouts for Trend Reversals:
If price moves from below to above the cloud = strong buy.
If price moves from above to below the cloud = strong sell.
Supply & Demand Zones + SMA CrossoverSupply & Demand Zones + SMA Crossover
This script combines Supply & Demand Zones with a 50 SMA and 100 SMA crossover strategy to identify key trading opportunities.
🔹 Features:
✅ Plots Supply (Resistance) and Demand (Support) zones based on swing highs and lows.
✅ Highlights zones dynamically with background colors.
✅ Includes 50 SMA and 100 SMA to track trend direction.
✅ Generates Buy signals (green arrow) when the 50 SMA crosses above the 100 SMA.
✅ Generates Sell signals (red arrow) when the 50 SMA crosses below the 100 SMA.
✅ Provides alert conditions for automatic notifications.
This tool is ideal for traders looking to combine price action with moving average crossovers to identify potential trade entries and exits. 🚀📈
Nifty Indices ScalpApply only for Nifty Options charts.
This script is a multi-component trading indicator for TradingView, incorporating various trading techniques and visualization tools. Here's a breakdown of its major sections:
1. User Inputs & Settings
Users can toggle different features like SuperTrend, Reversal Signals, PSAR-based Bar Coloring, and Z-score Bar Coloring.
Allows selection of calculation basis for Buy/Sell levels from today's open, previous day’s high/low/close.
Configurable line style, label size, and label position.
2. Gann-Based Buy/Sell Levels
Calculates Gann-style price levels based on the selected price reference (Todays Open, Previous Day High, etc.).
Uses the square root of the chosen price reference to derive different levels (support, buy levels, targets).
Plots these levels using lines and labels.
3. Daily Open Line
Plots the daily open as a white-dotted line.
4. Reversal System
Uses a 10-period EMA (Exponential Moving Average) to identify reversal signals:
A Signal Candle is a candle that does not touch the EMA.
A Confirmation Candle is one that touches the EMA after the signal candle.
If a confirmation candle appears, it marks a potential trend reversal.
Plots buy/sell triangles and stop-loss lines for reversal trades.
5. PSAR-Based Bar Coloring
Implements three different PSAR (Parabolic SAR) values with different acceleration factors.
Bars are colored purple for bullish trends and blue for bearish trends if all three PSAR values confirm the direction.
7. Z-Score Calculation (Partially Cut Off)
A Z-score function is included but seems to be used for weighting calculations.
ADR Checker - Breakouts📈 ADR Checker – Breakouts
Gain the edge by knowing when a stock has already made its move.
🚀 What It Does:
The ADR Checker - Breakouts is a powerful yet simple visual tool that helps traders instantly assess whether a stock has already exceeded its Average Daily Range (ADR) for the day — a critical piece of information for momentum traders, swing traders, and especially those following breakout, VCP, or CANSLIM strategies.
Using a customizable on-screen table that always stays in view (regardless of zoom or chart scaling), this script shows:
✅ Average ADR% – 20-day average range, calculated in %.
📊 Today’s Move – how much the stock has moved today.
🔥 % of Avg ADR – today's move relative to its historical average, with live color feedback:
🟥 Over 100% (Overextended – danger!)
🟧 70-100% (Caution zone)
🟩 Below 70% (Room to move)
💡 Why It Matters:
One of the most overlooked mistakes by breakout traders is entering a trade after the move has already happened. If a stock has already moved more than its typical daily range, the odds of further continuation sharply decrease, while the risk of pullback or chop increases.
With this tool, you can:
🚫 Avoid chasing extended breakouts
🎯 Time entries before the real move
⚠️ Quickly assess risk/reward potential intraday
🧠 Example Use Case:
Imagine you're watching a classic VCP setup or flat base breakout. The stock breaks out on volume—but when you check this indicator, you see:
Today’s Move: 7.2%
Avg ADR: 5.3%
% of ADR: 135% 🟥
This tells you the stock is already well beyond its average daily range. While it may continue higher, odds now favor a consolidation, shakeout, or pullback. This is your cue to wait for a better entry or pass entirely.
On the flip side, if the breakout just started and the % of ADR is still under 50%, you have confirmation that there’s room to run — giving you more confidence to enter early.
⚙️ Fully Customizable:
Choose position on screen (top/bottom left/right)
Customize text color, background, and size
🔧 Install This Tool and:
✅ Stop chasing extended moves
✅ Add discipline to your entries
✅ Improve your breakout win rate
Perfect for VCP, CANSLIM, and BREAKOUT traders who want a clean, edge-enhancing visual guide.
My scriptHash Ribbons with Buy Signal Forecast & Date Prediction
Advanced Bitcoin Mining Cycle Indicator with Predictive Analytics
This enhanced version of the Capriole Hash Ribbons indicator doesn't just tell you when to buy – it tells you when a buy signal is likely to appear in the future, with a specific date prediction.
Key Features:
Classic Hash Ribbons Analysis: Track miner capitulation and recovery cycles that have historically led to profitable Bitcoin entry points
Predictive Buy Signal Forecast: Advanced algorithm that calculates the probability of an upcoming buy signal
Date Prediction Technology: Estimates when the next buy signal will appear with a confidence level indicator (High/Medium/Low)
Customizable Settings: Adjust forecast parameters, lookback periods, and probability thresholds to match your trading strategy
Bitcoin Halving Markers: Visual indicators showing Bitcoin's supply-side economic shifts
How It Works:
This indicator analyzes the relationship between Bitcoin's hash rate and price action to identify optimal entry points. The prediction system examines historical patterns, calculates convergence rates between moving averages, and projects when conditions will align for the next blue buy signal. The forecast includes both a probability score and a specific date estimate, giving you actionable intelligence for planning your entries.
Perfect For:
Bitcoin investors seeking to optimize entry timing around miner capitulation events
Long-term holders wanting to increase position size at historically advantageous moments
Traders looking for a data-driven edge in Bitcoin market cycles
Anyone interested in the relationship between Bitcoin's network fundamentals and price performance
Based on Capriole Investments' proven Hash Ribbons strategy with added predictive capabilities that transform it from a reactive to a proactive trading tool.
1-Min BTC Scalping StrategyAkshay 1 min BTC scalping uses moving averages, RSI , ADX and Stochastics to determine trend.
Dynamic CAGR LineIndicator: Dynamic CAGR Line
Overview
This Pine Script (version 6) creates a custom indicator called "Dynamic CAGR Moving Line," designed to calculate and display the Compound Annual Growth Rate (CAGR) in percentage terms for a financial instrument, such as a stock or cryptocurrency, based on a user-defined lookback period (default: 5 years). Unlike traditional overlays that plot directly on the price chart, this indicator appears in a separate pane below the chart, providing a clear visual of how the CAGR evolves over time with each new candle.
Purpose
The indicator helps traders and investors analyze the annualized growth rate of an asset’s price over a specified historical period. By plotting the CAGR as a percentage in a separate pane, users can easily track how the growth rate changes as new price data is added, offering insights into long-term performance trends without cluttering the price chart.
How It Works
User Input:
The script begins with an input parameter, lookback_years, allowing users to define the number of years (e.g., 5) to look back for the CAGR calculation. This is a floating-point value with a minimum of 1 and a step of 0.5, adjustable via the indicator’s settings in TradingView.
Timeframe Conversion:
Assuming a daily chart, the script converts the lookback years into a number of bars using bars_per_year = 252 (the average number of trading days in a year). The total lookback period in bars is calculated as lookback_bars = math.round(lookback_years * bars_per_year). For example, 5 years equals approximately 1260 bars.
Price Data:
For each candle, the start_price is fetched from the closing price lookback_bars ago (e.g., the close price from 5 years prior), using close .
The end_price is the current candle’s closing price, accessed via close.
CAGR Calculation:
The total return is computed as (end_price - start_price) / start_price, measuring the percentage change from the start price to the current price.
To avoid division-by-zero errors, a conditional check ensures start_price != 0; if it is, the return defaults to 0.
The CAGR is then calculated using the formula: math.pow(1 + total_return, 1 / lookback_years) - 1, which annualizes the total return over the lookback period.
The result is converted to a percentage by multiplying by 100 (cagr_percent = cagr * 100).
Plotting:
The CAGR percentage is plotted as a blue line in a separate pane using plot(). The line only appears after enough data exists (bar_index >= lookback_bars), otherwise it plots na (not available).
A label is added for each candle, displaying the current CAGR percentage (e.g., "CAGR: 5.23%") near the plotted value, styled with a blue background and white text.
Usage
Chart Setup: Apply the indicator to a daily chart with sufficient historical data (e.g., more than 5 years for the default setting). It’s designed for daily timeframes but can be adapted for others by adjusting bars_per_year (e.g., 52 for weekly).
Interpretation: A positive CAGR (e.g., 5%) indicates annualized growth, while a negative value (e.g., -2%) shows an annualized decline. A flat line at 0% suggests no net change over the lookback period.
Customization: Adjust lookback_years in the settings to analyze different periods (e.g., 3 or 10 years).
Notes
Ensure your chart has enough data to cover the lookback period, or the line won’t appear until sufficient bars are available.
For debugging, you can temporarily plot start_price and end_price on the main chart to verify the calculation inputs.
Fibonacci Forecast IndicatorThis indicator projects potential price movements into the future based on user-defined Fibonacci-period moving averages. By default, it calculates Simple Moving Averages (SMAs) for the 3, 5, 8, 13, and 21 bars (though you can customize these values). For each SMA, it measures the distance between the current closing price and that SMA, then extends the price forward by the same distance.
Key Features
1. Fibonacci MAs:
- Uses Fibonacci numbers (3, 5, 8, 13, 21) for SMA calculations by default.
- Fully customizable periods to fit different trading styles.
2. Forecast Projection:
- If the current price is above a given SMA, the forecast line extends higher (bullish bias).
- If the current price is below the SMA, the forecast line extends lower (bearish bias).
- Forecast lines are anchored at the current bar and project forward according to the same Fibonacci intervals.
3. Clean Visualization:
- Draws a series of connected line segments from the current bar’s close to each forecast point.
- This approach offers a clear, at-a-glance visual of potential future price paths.
How to Use
1. Add to Chart:
- Simply apply the indicator to any chart and timeframe.
- Adjust the Fibonacci periods and styling under the indicator settings.
2. Interpretation:
- Each forecast line shows where price could potentially head if the current momentum (distance from the SMA) continues.
- When multiple lines are consistently above (or below) the current price, it may reinforce a bullish (or bearish) outlook.
3. Customization:
- You can modify the number of forecast lines, their color, and line width in the inputs.
- Change or add your own Fibonacci periods to experiment with different intervals.
Notes and Best Practices
- Confirmation Tool: This indicator is best used alongside other forms of technical or fundamental analysis. It provides a “what-if” scenario based on current momentum, not a guaranteed prediction.
- Not Financial Advice: Past performance doesn’t guarantee future results. Always practice proper risk management and consider multiple indicators or market factors before making trading decisions.
Give it a try, and see if these Fibonacci-based projections help visualize where price may be headed in your trading strategy!
TR FVG Finder 1.0TR FVG Finder 1.0 - Identify High-Probability Trading Zones
Unlock the power of Fair Value Gaps (FVGs) with this advanced TradingView indicator! Designed for traders seeking high-probability setups, the Fair Value Gap Detector identifies key price imbalances on your chart, helping you spot potential reversal and continuation zones with precision.
Key Features:
Accurate FVG Detection: Automatically detects bullish and bearish Fair Value Gaps based on a proven 3-candle pattern, highlighting areas where price is likely to return.
Customizable Display: Shows the most recent 3 FVGs by default (combined bullish and bearish), with an option to adjust the number of FVGs displayed.
Visual Clarity: Draws semi-transparent boxes (green for bullish FVGs, red for bearish FVGs) that extend 15 candles to the right, making it easy to track key levels.
Versatile for All Markets: Works on any timeframe and instrument—perfect for forex, stocks, crypto, and commodities like XAU/USD (gold).
User-Friendly: Simple to use with customizable settings, ideal for both beginner and experienced traders.
How It Works:
The indicator identifies FVGs by analyzing a 3-candle pattern:
- Bullish FVG: When the high of the candle two bars back is below the low of the current candle.
- Bearish FVG: When the low of the candle two bars back is above the high of the current candle. These gaps often act as magnets for price, making them powerful zones for trading strategies like breakouts, pullbacks, or reversals.
Why Use This Indicator?
- Enhance your technical analysis with a proven concept used by institutional traders.
- Spot high-probability trading opportunities with clear visual cues.
- Save time by automating FVG detection—no manual drawing required.
Best Practices:
- Use on lower timeframes (e.g., 15-minute or 1-hour) for more frequent FVGs, especially in volatile markets like forex or crypto.
- Combine with other indicators (e.g., support/resistance, volume) for confirmation.
- Ideal for strategies like ICT (Inner Circle Trader) concepts, Smart Money trading, and price action analysis.
Regards,
Trader Riaz
Moon+Lunar Cycle Vertical Delineation & Projection
Automatically highlights the exact candle in which Moonphase shifts occur.
Optionally including shifts within the Microphases of the total Lunar Cycle.
This allow traders to pre-emptively identify time-based points of volatility,
focusing on mean-reversion; further simplified via the use of projections.
Projections are calculated via candle count, values displayed in "Debug";
these are useful in understanding the function & underlying mechanics.
Fibonacci RangeFibonacci Range 50 Indicator
The Fibonacci Range 50 indicator is designed to help traders identify potential price reversal zones and breakout levels by utilizing the 50% Fibonacci retracement level as a key reference point. This indicator is particularly useful for traders who rely on technical analysis and price action to make informed trading decisions.
How It Works:
Identifies the Range – The indicator automatically detects a significant price range, typically based on the highest and lowest points of a given session (e.g., Asian session, previous day’s range, or a custom timeframe).
Plots Fibonacci Levels – The key 50% Fibonacci retracement level is calculated within this range, acting as a dynamic midpoint that often serves as a pivot zone for price movements.
Breakout & Reversal Signals –
If the price rejects the 50% level, it may indicate a trend continuation or range-bound movement.
If the price breaks above or below the range with momentum, it may signal a potential breakout trade opportunity.
Key Features:
✅ Automatic Fibonacci Level Calculation – No manual drawing required.
✅ Customizable Time Ranges – Allows traders to adjust the indicator based on their preferred trading session.
✅ Works Across Different Markets – Effective for Forex, Crypto, and Stock trading.
✅ Breakout & Reversal Strategy Integration – Can be used in conjunction with other indicators such as Moving Averages, RSI, and MACD.
Ideal For:
Intraday traders looking for high-probability setups.
Swing traders identifying potential turning points.
Traders using breakout strategies based on price action.
This indicator provides traders with clear and actionable insights to improve their trade entries, stop-loss placements, and profit targets. 🚀
Multi-Timeframe Stochastic RSI ArrowsMulti-Timeframe Stochastic RSI Arrows Indicator by The Venetian
Dear Moderators before you torch me alive theres nothing groundbreaking just very handy indicator for some users.
This indicator provides traders with a jet fighter-style heads-up display for market momentum across multiple timeframes. By displaying Stochastic RSI directional arrows for 12 different timeframes simultaneously, it offers a comprehensive view of market conditions without requiring multiple chart windows.
How It Works
The indicator calculates the Stochastic RSI for each of 12 common timeframes (1m to 3M) and represents directional movements with intuitive arrows:
- ▲ Green up arrow = Rising momentum
- ▼ Red down arrow = Falling momentum
- ◄► Yellow horizontal arrows = Flat/sideways momentum
- ► Gray right arrow = Just peaked (crossed above overbought)
- ◄ Gray left arrow = Just bottomed (crossed below oversold)
Each timeframe's status appears with its label (e.g., "1m ▲") in a clean, vertically-stacked display using ATR-based spacing to maintain consistent visual appearance regardless of price scale.
Key Features
- ATR-Based Spacing : Uses Average True Range to maintain consistent distances between labels even as chart scale changes
- Multi-Timeframe Analysis: Easily spot divergences and confluences across timeframes (1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, 1M, 3M)
- Sensitivity Control: Adjust flat detection sensitivity to filter out noise
- Customisable Appearance: Modify arrow size, vertical spacing, and show/hide timeframe labels
- Overbought/Oversold Detection: Highlights when momentum has peaked or bottomed at extreme levels
- Trading Applications
- Trend Alignment: Quickly identify when multiple timeframes align in the same direction
- Divergence Detection: Spot when shorter timeframes begin to shift against longer ones
- Entry/Exit Timing: Use crossovers of significant timeframes as potential signals
- Market Context: Maintain awareness of the bigger picture while trading shorter timeframes
This indicator doesn't break new ground technically but excels in presenting complex multi-timeframe information in a clean, actionable format — much like a pilot's heads-up display provides critical information at a glance. The ATR-based positioning ensures consistent visibility across different instruments and market conditions.
Great effort has been made for this script to adhere to TradingView's Pine Script house rules and focuses on trader usability rather than introducing novel technical concepts.
Hurst-Based Trend Persistence w/Poisson Prediction
---
# **Hurst-Based Trend Persistence w/ Poisson Prediction**
## **Introduction**
The **Hurst-Based Trend Persistence with Poisson Prediction** is a **statistically-driven trend-following oscillator** that provides traders with **a structured approach to identifying trend strength, persistence, and potential reversals**.
This indicator combines:
- **Hurst Exponent Analysis** (to measure how persistent or mean-reverting price action is).
- **Color-Coded Trend Detection** (to highlight bullish and bearish conditions).
- **Poisson-Based Trend Reversal Probability Projection** (to anticipate when a trend is likely to end based on statistical models).
By integrating **fractal market theory (Hurst exponent)** with **Poisson probability distributions**, this indicator gives traders a **probability-weighted view of trend duration** while dynamically adapting to market volatility.
---
## **Simplified Explanation (How to Read the Indicator at a Glance)**
1. **If the oscillator line is going up → The trend is strong.**
2. **If the oscillator line is going down → The trend is weakening.**
3. **If the color shifts from red to green (or vice versa), a trend shift has occurred.**
- **Strong trends can change color without weakening** (meaning a bullish or bearish move can remain powerful even as the trend shifts).
4. **A weakening trend does NOT necessarily mean a reversal is coming.**
- The trend may slow down but continue in the same direction.
5. **A strong trend does NOT guarantee it will last.**
- Even a powerful move can **suddenly reverse**, which is why the **Poisson-based background shading** helps anticipate probabilities of change.
---
## **How to Use the Indicator**
### **1. Understanding the Rolling Hurst-Based Trend Oscillator (Main Line)**
The **oscillator line** is based on the **Hurst exponent (H)**, which quantifies whether price movements are:
- **Trending** (values above 0 → momentum-driven, persistent trends).
- **Mean-reverting** (values below 0 → price action is choppy, likely to revert to the mean).
- **Neutral (Random Walk)** (values around 0 → price behaves like a purely stochastic process).
#### **Interpreting the Oscillator:**
- **H > 0.5 → Persistent Trends:**
- Price moves tend to sustain in one direction for longer periods.
- Example: Strong uptrends in bull markets.
- **H < 0.5 → Mean-Reverting Behavior:**
- Price has a tendency to revert back to its mean.
- Example: Sideways markets or fading momentum.
- **H ≈ 0.5 → Random Walk:**
- No clear trend; price is unpredictable.
A **gray dashed horizontal line at 0** serves as a **baseline**, helping traders quickly assess whether the market is **favoring trends or mean reversion**.
---
### **2. Color-Coded Trend Signal (Visual Confirmation of Trend Shifts)**
The oscillator **changes color** based on **price slope** over the lookback period:
- **🟢 Green → Uptrend (Price Increasing)**
- Price is rising relative to the selected lookback period.
- Suggests sustained bullish pressure.
- **🔴 Red → Downtrend (Price Decreasing)**
- Price is falling relative to the selected lookback period.
- Suggests sustained bearish pressure.
#### **How to Use This in Trading**
✔ **Stay in trends until a color change occurs.**
✔ **Use color changes as confirmation for trend reversals.**
✔ **Avoid counter-trend trades when the oscillator remains strongly colored.**
---
### **3. Poisson-Based Trend Reversal Projection (Anticipating Future Shifts)**
The **shaded orange background** represents a **Poisson-based probability estimation** of when the trend is likely to reverse.
- **Darker Orange = Higher Probability of Trend Reversal**
- **Lighter Orange / No Shade = Low Probability of Immediate Reversal**
💡 **The idea behind this model:**
✔ Trends **don’t last forever**, and their duration follows **statistical patterns**.
✔ By calculating the **average historical trend duration**, the indicator predicts **how likely a trend shift is at any given time**.
✔ The **Poisson probability function** is applied to determine the **expected likelihood of a reversal as time progresses**.
---
## **Mathematical Foundations of the Indicator**
This indicator is based on **two primary statistical models**:
### **1. Hurst Exponent & Trend Persistence (Fractal Market Theory)**
- The **Hurst exponent (H)** measures **autocorrelation** in price movements.
- If past trends **persist**, H will be **above 0.5** (meaning trend-following strategies are favorable).
- If past trends tend to **mean-revert**, H will be **below 0.5** (meaning reversal strategies are more effective).
- The **Rolling Hurst Oscillator** calculates this exponent over a moving window to track real-time trend conditions.
#### **Formula Breakdown (Simplified for Traders)**
The Hurst exponent (H) is derived using the **Rescaled Range (R/S) Analysis**:
\
Where:
- **R** = **Range** (difference between max cumulative deviation and min cumulative deviation).
- **S** = **Standard deviation** of price fluctuations.
- **Lookback** = The number of periods analyzed.
---
### **2. Poisson-Based Trend Reversal Probability (Stochastic Process Modeling)**
The **Poisson process** is a **probabilistic model used for estimating time-based events**, applied here to **predict trend reversals based on past trend durations**.
#### **How It Works**
- The indicator **tracks trend durations** (the time between color changes).
- A **Poisson rate parameter (λ)** is computed as:
\
- The **probability of a reversal at any given time (t)** is estimated using:
\
- **As t increases (trend continues), the probability of reversal rises**.
- The indicator **shades the background based on this probability**, visually displaying the likelihood of a **trend shift**.
---
## **Dynamic Adaptation to Market Conditions**
✔ **Volatility-Adjusted Trend Shifts:**
- A **custom volatility calculation** dynamically adjusts the **minimum trend duration** required before a trend shift is recognized.
- **Higher volatility → Requires longer confirmation before switching trend color.**
- **Lower volatility → Allows faster trend shifts.**
✔ **Adaptive Poisson Weighting:**
- **Recent trends are weighted more heavily** using an exponential decay function:
- **Decay Factor (0.618 by default)** prioritizes **recent intervals** while still considering historical trends.
- This ensures the model adapts to changing market conditions.
---
## **Key Takeaways for Traders**
✅ **Identify Persistent Trends vs. Mean Reversion:**
- Use the oscillator line to determine whether the market favors **trend-following or counter-trend strategies**.
✅ **Visual Trend Confirmation via Color Coding:**
- **Green = Uptrend**, **Red = Downtrend**.
- Trend changes help confirm **entry and exit points**.
✅ **Anticipate Trend Reversals Using Probability Models:**
- The **Poisson projection** provides a **statistical edge** in **timing exits before trends reverse**.
✅ **Adapt to Market Volatility Automatically:**
- Dynamic **volatility scaling** ensures the indicator remains effective in **both high and low volatility environments**.
Happy trading and enjoy!
day of Month | xilixMonthly Marker (1D Only)
The Monthly Marker indicator automatically highlights a specific day of the month on a daily (1D) chart by drawing a vertical line. Users can select their desired day of the month and customize the line color.
Features:
✅ Marks the chosen day of each month with a vertical line.
✅ Customizable line color (set in the indicator settings).
✅ Helps traders quickly identify key monthly dates.
Note: This indicator will not work on lower timeframes (e.g., 4H, 1H) and will show an error if applied outside the 1D timeframe.
Best Use Cases: Monthly trend tracking, economic event alignment, and custom date-based analysis. 🚀
Live SessionsLive sessions plots the highs and lows of the previous for sessions.
It also marks when these are broken by price.
Default Time Frames are:
London Session = "0000-0600", "UTC-4"
New York Session = "0830-1230", "UTC-4"
Asia Session = "1800-0000", "UTC-4"
New York Close Session = "1330-1630", "UTC-4"
Useful for highlighting when price has gone through a previous session high or low and quickly seeing where liquidity still lies.
Scalping Entry/Exit Indicator by DiGetImagine having a tool that not only spots high-probability entry signals but also visually marks them on your chart with color-coded cues and automated alerts. The Scalping Entry/Exit Indicator by DiGet does exactly that—by fusing a range of classic candlestick patterns (such as Bullish Hammers, Engulfing patterns, and Morning/Evening Stars) with dynamic risk management levels, this script empowers you to make swift and informed trading decisions. Whether you're an active trader or an algorithm enthusiast, this indicator offers both precision and clarity in identifying scalp opportunities, making your chart analysis more efficient and visually engaging.
Indicator Breakdown
Input Parameters:
The indicator accepts a customizable risk-reward ratio, an ATR period for volatility measurement, and a lookback period to scan for valid candlestick patterns.
ATR & Candle Calculations:
It computes the Average True Range (ATR) to dynamically set stop-loss and take-profit levels. Additionally, it determines the body and wick sizes of each candlestick to help identify key reversal patterns.
Pattern Detection:
Multiple bullish patterns (Hammer, Engulfing, Morning Star) and bearish patterns (Shooting Star, Engulfing, Evening Star) are detected. There’s also a simplified version of the Head & Shoulders pattern, offering further validation for reversal signals.
Signal Generation & Trade Levels:
The script consolidates the pattern signals into combined “buy” and “sell” triggers. It then calculates the respective stop-loss (SL) and take-profit (TP) levels based on the current price and ATR, providing a robust risk management framework.
Visual Aids & Alerts:
To enhance usability, the indicator changes the chart’s background color to green for buy signals and red for sell signals. It also draws labels, lines (representing SL and TP), and markers directly on the chart, along with alert conditions to notify traders of actionable signals.
This indicator is an excellent addition to your TradingView toolkit—ideal for scalpers and short-term traders seeking clarity, precision, and automated signal generation on their charts.
Enjoy trading with confidence and precision!
ALMA 20, 50, 200The ALMA (Arnaud Legoux Moving Average) crossover strategy uses two ALMA lines (fast and slow) to generate buy/sell signals, aiming to reduce lag and noise compared to traditional moving averages, and is often combined with volume filters for improved accuracy.
Here's a more detailed explanation:
What it is:
The ALMA indicator is a moving average (MA) variant designed to reduce lag and improve responsiveness while maintaining a smooth curve, using a Gaussian filter.
How it works:
ALMA calculates two moving averages, one from left to right and one from right to left, and then processes the output through a customizable formula for increased smoothness or responsiveness.
Crossover Strategy:
A common ALMA strategy involves using two ALMA lines with different lengths (fast and slow). A buy signal is generated when the fast ALMA crosses above the slow ALMA, and a sell signal when the fast ALMA crosses below the slow ALMA.
Benefits:
ALMA offers advantages like reduced lag, smoothness, and filtering capabilities, making it useful for identifying trends and potential reversals.
Potential Risks:
Like any indicator, ALMA can produce false signals, so it's crucial to combine it with other indicators and analyze price action.
Parameters:
ALMA has parameters like "Length" (number of periods), "Sigma" (filter's range, affecting responsiveness), and "Offset" (for accessing data of different candles).
Other uses:
ALMA can also be used for trend identification, dynamic support and resistance, and combined with other indicators to enhance trading strategies.
Price Levels by Market Cap (Manual)This indicator will forecast the price by marketcap. The crypto's current circulating supply should be inputted manually.
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.
Recency-Weighted Market Memory w/ Quantile-Based DriftRecency-Weighted Market Memory w/ Quantile-Based Drift
This indicator combines market memory, recency-weighted drift, quantile-based volatility analysis, momentum (RoC) filtering, and historical correlation checks to generate dynamic forecasts of possible future price levels. It calculates bullish and bearish forecast lines at each horizon, reflecting how the price might behave based on historical similarities.
Trading Concepts & Mathematical Foundations Explained
1) Market Memory
Concept:
Markets tend to repeat past behaviors under similar conditions. By identifying historical market states that closely match current conditions, we predict future price movements based on what happened historically.
Calculation Steps:
We select a historical lookback window (for example, 210 bars).
Each historical bar within this window is evaluated to see if its conditions match the current market. Conditions include:
Correlation between price change and bullish/bearish volume changes (over a user-defined correlation lookback period).
Momentum (Rate of Change, RoC) measured over a separate lookback period.
Only bars closely matching current conditions (within user-defined tolerance percentages) are included.
2) Recency-Weighted Drift
Concept:
Recent market movements often influence future direction. We assign more importance to recent bars to capture the current market bias effectively.
Calculation Steps:
Consider recent price changes between opens and closes for a user-defined drift lookback (for example, last 20 bars).
Give higher weight to recent bars (the most recent bar gets the highest weight, and weights decrease progressively for older bars).
Average these weighted changes separately for upward and downward movements, then combine these averages to calculate a final drift percentage relative to the current price.
3) Correlation Filtering
Concept:
Price changes often correlate strongly with bullish or bearish volume activity. By using historical correlation comparisons, we focus only on past market states with similar volume-price dynamics.
Calculation Steps:
Compute current correlations between price changes and bullish/bearish volume over the user-defined correlation lookback.
Evaluate each historical bar to see if its correlation closely matches the current correlation (within a user-specified percentage tolerance).
Only historical bars meeting this correlation criterion are selected.
4) Momentum (RoC) Filtering
Concept:
Two market periods may exhibit similar correlation structures but differ in how fast prices move (momentum). To ensure true similarity, momentum is checked as an additional filter.
Calculation Steps:
Compute the current Rate of Change (RoC) over the specified RoC lookback.
For each candidate historical bar, calculate its historical RoC.
Only include historical bars whose RoC closely matches the current RoC (within the RoC percentage tolerance).
5) Quantile-Based Volatility and Drift Amplification
Concept:
Quantiles (such as the 95th, 50th, and 5th percentiles) help gauge if current prices are near historical extremes or the median. Quantile bands measure volatility expansions and contractions.
Calculation Steps:
Calculate the 95%, 50%, and 5% quantiles of price over the quantile lookback period.
Add and subtract multiples of the standard deviation to these quantiles, creating upper and lower bands.
Measure the bands' widths relative to the current price as volatility indicators.
Determine the active quantile (95%, 50%, or 5%) based on proximity to the current price (within a percentage tolerance).
Compute the rate of change (RoC) of the active quantile to detect directional bias.
Combine volatility and quantile RoC into a scaling factor that amplifies or dampens expected price moves.
6) Expected Value (EV) Computation & Forecast Lines
Concept:
We forecast future prices based on how similarly-conditioned historical periods performed. We average historical moves to estimate the expected future price.
Calculation Steps:
For each forecast horizon (e.g., 1 to 27 bars ahead), collect all historical price moves that passed correlation and RoC filters.
Calculate average historical moves for bullish and bearish cases separately.
Adjust these averages by applying recency-weighted drift and quantile-based scaling.
Translate adjusted percentages into absolute future price forecasts.
Draw bullish and bearish forecast lines accordingly.
Indicator Inputs & Their Roles
Correlation Tolerance (%)
Adjusts how strictly the indicator matches historical correlation. Higher tolerance includes more matches, lower tolerance selects fewer but closer matches.
Price RoC Lookback and Price RoC Tolerance (%)
Controls how momentum (speed of price moves) is matched historically. Increasing tolerance broadens historical matches.
Drift Lookback (bars)
Determines the number of recent bars influencing current drift estimation.
Quantile Lookback Period and Std Dev Multipliers
Defines quantile calculation and the size of the volatility bands.
Quantile Contact Tolerance (%)
Sets how close the current price must be to a quantile for it to be considered "active."
Forecast Horizons
Specifies how many future bars to forecast.
Continuous Forecast Lines
Toggles between drawing continuous lines or separate horizontal segments for each forecast horizon.
Practical Trading Applications
Bullish & Bearish EV Lines
These forecast lines indicate expected price levels based on historical similarity. Green indicates positive expectations; red indicates negative.
Momentum vs. Mean Reversion
Wide quantile bands and high drift suggest momentum, while extremes may signal possible reversals.
Volatility Sensitivity
Forecasts adapt dynamically to market volatility. Broader bands increase forecasted price movements.
Filtering Non-Relevant Historical Data
By using both correlation and RoC filtering, irrelevant past periods are excluded, enhancing forecast reliability.
Multi-Timeframe Suitability
Adaptable parameters make this indicator suitable for different trading styles and timeframes.
Complementary Tool
This indicator provides probabilistic projections rather than direct buy or sell signals. Combine it with other trading signals and analyses for optimal results.
Important Considerations
While historically-informed forecasts are valuable, market behavior can evolve unpredictably. Always manage risks and use supplementary analysis.
Experiment extensively with input settings for your specific market and timeframe to optimize forecasting performance.
Summary
The Recency-Weighted Market Memory w/ Quantile-Based Drift indicator uniquely merges multiple sophisticated concepts, delivering dynamic, historically-informed price forecasts. By combining historical similarity, adaptive drift, momentum filtering, and quantile-driven volatility scaling, traders gain an insightful perspective on future price possibilities.
Feel free to experiment, explore, and enjoy this powerful addition to your trading toolkit!
V Pattern TrendDESCRIPTION:
The V Pattern Trend Indicator is designed to identify and highlight V-shaped reversal patterns in price action. It detects both bullish and bearish V formations using a five-candle structure, helping traders recognize potential trend reversal points. The indicator filters out insignificant patterns by using customizable settings based on ATR, percentage, or points, ensuring that only meaningful V patterns are displayed.
CALCULATION METHOD
The user can choose how the minimum length of a V pattern is determined. The available options are:
- ATR (Average True Range) – Filters V patterns based on ATR, making the detection adaptive to market volatility.
- Percentage (%) – Considers V patterns where the absolute price difference between the V low and V high is greater than a user-defined percentage of the V high.
- Points – Uses a fixed number of points to filter valid V patterns, making it useful for assets with consistent price ranges.
ATR SETTINGS
- ATR Length – Defines the number of periods for ATR calculation.
- ATR Multiplier – Determines the minimum V length as a multiple of ATR.
PERCENTAGE THRESHOLD
- Sets a minimum percentage difference between the V high and V low for a pattern to be considered valid.
POINTS THRESHOLD
- Defines the minimum price movement (in points) required for a V pattern to be considered significant.
PATTERN VISUALIZATION
- A bullish V pattern is plotted using two upward-sloping lines, with a filled green region to highlight the formation.
- A bearish V pattern is plotted using two downward-sloping lines, with a filled red region to indicate the reversal.
- The indicator dynamically updates and marks only the most recent valid patterns.
UNDERSTANDING V PATTERNS
A V pattern is a sharp reversal formation where price moves strongly in one direction and then rapidly reverses in the opposite direction, forming a "V" shape on the chart.
BULLISH V PATTERN
- A bullish V pattern is formed when the price makes three consecutive lower lows, followed by two consecutive higher lows.
- The pattern is confirmed when the highest high of the formation is greater than the previous highs within the structure.
- This pattern suggests a potential trend reversal from bearish to bullish.
- The lowest point of the pattern represents the V low, which acts as a support level.
bull_five_candle_v = low > low and low > low and low > low and low > low
and high > math.max(high , high , high ) and high > math.max(high , high , high )
BEARISH V PATTERN
- A bearish V pattern is detected when the price makes three consecutive higher highs, followed by two consecutive lower highs.
- The pattern is confirmed when the lowest low of the formation is lower than the previous lows within the structure.
- This pattern signals a possible trend reversal from bullish to bearish.
- The highest point of the pattern represents the V high, which acts as a resistance level.
bear_five_candle_v = high < high and high < high and high < high and high < high
and low < math.min(low , low , low ) and low < math.min(low , low , low )
HOW THIS IS UNIQUE
- Advanced Filtering Mechanism – Unlike basic reversal indicators, this tool provides customizable filtering based on ATR, percentage, or points, ensuring that only significant V patterns are displayed.
- Enhanced Visual Clarity – The indicator uses color-coded fills and structured plotting to make reversal patterns easy to recognize.
- Works Across Market Conditions – Adaptable to different market environments, filtering out weak or insignificant price fluctuations.
- Multi-Timeframe Usability – Can be applied across different timeframes and asset classes, making it useful for both intraday and swing trading.
HOW TRADERS CAN USE THIS INDICATOR
- Identify potential trend reversals early based on structured price action.
- Filter out weak or insignificant reversals to focus only on strong V formations.
- Use the V pattern’s highs and lows as key support and resistance zones for trade entries and exits.
- Combine with other indicators like moving averages, trendlines, or momentum oscillators for confirmation.