MACD Histogram Color Tabledisplaying the MACD Histogram color and divergences across multiple timeframes. Here's how it works step by step:
1. Setting the Table Position
The script allows the user to choose where the table will be placed using the positionOption input. The three options are:
Top Right
Top Left
Top Center
Depending on the selected option, the table is created at the corresponding position.
2. Creating the Table
A table (macdTable) is created with 8 columns (for different timeframes) and 3 rows (for different data points).
3. MACD Histogram Color Function (f_get_macd_color)
This function calculates the MACD line, signal line, and histogram for a given timeframe.
The histogram (histLine) is used to determine the cell background color:
Green if the histogram is positive.
Red if the histogram is negative.
4. Divergence Detection Function (f_detect_divergence)
This function looks for bullish and bearish divergences using the MACD histogram:
Bullish Divergence (🟢)
The price makes a lower low.
The MACD histogram makes a higher low.
Bearish Divergence (🔴)
The price makes a higher high.
The MACD histogram makes a lower high.
The function returns:
🟢 (green circle) for bullish divergence.
🔴 (red circle) for bearish divergence.
"" (empty string) if no divergence is detected.
5. Populating the Table
The table has three rows for each timeframe:
First row: Displays the timeframe labels (5m, 15m, 30m, etc.).
Second row: Shows MACD Histogram color (red/green).
Third row: Displays divergences (🟢/🔴).
This is done using table.cell() for each timeframe.
6. Final Result
A table is displayed on the chart.
Each column represents a different timeframe.
The color-coded row shows the MACD histogram status.
The bottom row shows detected divergences.
Indicators and strategies
Swing Breakout System (SBS)The Swing Breakout Sequence (SBS) is a trading strategy that focuses on identifying high-probability entry points based on a specific pattern of price swings. This indicator will identify these patterns, then draw lines and labels to show confirmation.
How To Use:
The indicator will show both Bullish and Bearish SBS patterns.
Bullish Pattern is made up of 6 points: Low (0), HH (1), LL (2 | but higher than initial Low), New HH (3), LL (5), LL again (5)
Bearish Patten is made up of 6 points: High (0), LL (1), HH (2 | but lower than initial high), New LL (3), HH (5), HH again (5)
A label with an arrow will appear at the end, showing the completion of a successful sequence
Idea behind the strategy:
The idea behind this strategy, is the accumulation and then manipulation of liquidity throughout the sequence. For example, during SBS sequence, liquidity is accumulated during step (2), then price will push away to make a new high/low (step 3), after making a minor new high/low, price will retrace breaking the key level set up in step (2). This is price manipulating taking liquidity from behind high/low from step (2). After taking liquidity price the idea is price will continue in the original direction.
Step 0 - Setting up initial direction
Step 1 - Setting up initial direction
Step 2 - Key low/high establishing liquidity
Step 3 - Failed New high/low
Step 4 - Taking liquidity from step (2)
Step 5 - Taking liquidity from step 2 and 4
Pattern Detection:
- Uses pivot high/low points to identify swing patterns
- Stores 6 consecutive swing points in arrays
- Identifies two types of patterns:
1. Bullish Pattern: A specific sequence of higher lows and higher highs
2. Bearish Pattern: A specific sequence of lower highs and lower lows
Note: Because the indicator is identifying a perfect sequence of 6 steps, set ups may not appear frequently.
Visualization:
- Draws connecting lines between swing points
- Labels each point numerically (optional)
- Shows breakout arrows (↑ for bullish, ↓ for bearish)
- Generates alerts on valid breakouts
User Input Settings:
Core Parameters
1. Pivot Lookback Period (default: 2)
- Controls how many bars to look back/forward for pivot point detection
- Higher values create fewer but more significant pivot points
2. Minimum Pattern Height % (default: 0.1)
- Minimum required height of the pattern as a percentage of price
- Filters out insignificant patterns
3. Maximum Pattern Width (bars) (default: 50)
- Maximum allowed width of the pattern in bars
- Helps exclude patterns that form over too long a period
HTF EMA Pivot PointsHTF EMA Pivot Points - TradingView Indicator
📌 Overview
The HTF EMA Pivot Points indicator displays Exponential Moving Averages (EMAs) from higher timeframes (HTF) on your current chart. These EMAs act as dynamic support and resistance levels, helping traders identify key areas where price is likely to react.
⚡ Key Features
✅ Plots EMAs from multiple timeframes (1H, 4H, Daily)
✅ Works on any chart (1M, 5M, 15M, etc.)
✅ Acts as pivot points for price action, helping with trade entries & exits
✅ Customizable EMA lengths for flexibility
✅ Ideal for scalping, 0DTE options trading, and swing trading
🛠 How It Works
The script calculates EMAs from 1H, 4H, and Daily charts and overlays them on your current timeframe. These levels often act as support and resistance zones, where price tends to bounce or reject.
🎯 How to Use It for Trading
📍 Bullish Setup (Buy Calls)
• Price bounces off a higher timeframe EMA (e.g., 4H or Daily EMA)
• Confirmation with RSI or Fair Value Gaps (FVGs)
📍 Bearish Setup (Buy Puts)
• Price rejects from a higher timeframe EMA
• Confirmation with other indicators (RSI, MACD, Order Flow)
🚀 Why Use This Indicator?
• Filters out noise from lower timeframe EMAs
• Confirms trend direction using key moving averages
• Helps avoid false breakouts by identifying strong institutional levels
This is a must-have tool for traders who rely on higher timeframe confluence for scalping, options trading, or swing trading. 📈🔥
My auto dual avwap with Auto swing low/pivot low finderWelcome to My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder – an open-source TradingView indicator designed to enhance your technical analysis toolbox. This indicator is published under the Mozilla Public License 2.0 and is available for anyone to study, modify, and distribute.
Key Features
Auto Pivot/Swing Low Finder:
In addition to VWAP lines, the indicator incorporates an automatic detection mechanism for swing lows/pivot lows. This feature assists in identifying potential support areas and price reversals, further enhancing your trading strategy.
Dual VWAP Calculation with high/low range:
The indicator calculates two separate volume-weighted average price (VWAP) lines based on different price inputs (low and high prices) and defined time sessions. This allows traders to gain a more nuanced view of market activity during specific trading periods.
Customizable Time Sessions:
You can specify distinct start and end times for each VWAP calculation session. This flexibility helps you align the indicator with your preferred trading hours or market sessions, making it adaptable to various time zones and trading styles.
Easy to Customize:
With clear code structure and detailed comments, the script is designed to be accessible even for traders who want to customize or extend its functionality. Whether you're a seasoned coder or just starting out, the code is written with transparency in mind.
How It Works
Session Initialization:
The script sets up two distinct time sessions using user-defined start and end times. For each session, it detects the beginning of the trading period to reset cumulative values.
Cumulative Calculations:
During each session, the indicator accumulates the product of price and volume as well as the total volume. The VWAP is then computed as the ratio of these cumulative values.
Dual Data Sources:
Two separate data inputs (using low and high prices) are used to calculate two VWAP lines. This dual approach provides a broader perspective on market trends and can help in identifying dynamic support and resistance levels.
Visualization:
The calculated VWAP lines are plotted directly on your chart with distinct colors and thickness settings for easy visualization. This makes it simple to interpret the data at a glance.
Why Use This Indicator?
Whether you are a day trader, swing trader, or simply looking to refine your market analysis, My Auto Dual AVWAP with Auto Swing Low/Pivot Low Finder offers a robust set of features that can help you identify key price levels and improve your decision-making process. Its open-source nature invites collaboration and customization, ensuring that you can tailor it to fit your unique trading style.
Feel free to explore, modify, and share this indicator. Happy trading!
Kalman FilterKalman Filter Indicator Description
This indicator applies a Kalman Filter to smooth the selected price series (default is the close) and help reveal the underlying trend by filtering out market noise. The filter is based on a recursive algorithm consisting of two main steps:
Prediction Step:
The filter predicts the next state using the last estimated value and increases the uncertainty (error covariance) by adding the process noise variance (Q). This step assumes that the price follows a random walk, where the last known estimate is the best guess for the next value.
Update Step:
The filter computes the Kalman Gain, which determines the weight given to the new measurement (price) versus the prediction. It then updates the state estimate by combining the prediction with the measurement error (using the measurement noise variance, R). The error covariance is also updated accordingly.
Key Features:
Customizable Input:
Source: Choose any price series (default is the closing price) for filtering.
Measurement Noise Variance (R): Controls the sensitivity to new measurements (default is 0.1). A higher R makes the filter less responsive.
Process Noise Variance (Q): Controls the assumed level of inherent price variability (default is 0.01). A higher Q allows the filter to adapt more quickly to changes.
Visual Trend Indication:
The filtered trend line is plotted directly on the chart:
When enabled, the line is colored green when trending upward and red when trending downward.
If color option is disabled, the line appears in blue.
This indicator is ideal for traders looking to smooth price data and identify trends more clearly by reducing the impact of short-term volatility.
75th-25th Percentile Momentum | QuantumResearchIntroducing QuantumResearch’s 75th-25th Percentile Momentum Indicator
The 75th-25th Percentile Momentum indicator is a cutting-edge tool that combines percentile rank analysis with ATR-based deviation to detect significant bullish and bearish momentum in the market. By analyzing price movements relative to the 75th and 25th percentiles of recent data, the indicator provides traders with clear and dynamic signals for long and short opportunities.
How It Works
Percentile Analysis:
The 75th and 25th percentiles are calculated over a user-defined lookback period, representing the upper and lower thresholds for price action.
ATR-Based Adjustment:
ATR (Average True Range) is used to account for market volatility, dynamically adjusting the thresholds with user-defined multipliers.
Signal Generation:
Long Signal: Triggered when the price exceeds the 75th percentile plus the ATR-based adjustment (default multiplier: 1.3).
Short Signal: Triggered when the price falls below the 25th percentile minus the ATR-based adjustment (default multiplier: 1.3).
Visual Representation
The indicator offers a clear and customizable visual interface:
Green Bars: Indicate a bullish trend, signaling a potential long opportunity when the price surpasses the adjusted 75th percentile.
Red Bars: Indicate a bearish trend, signaling a potential short opportunity when the price drops below the adjusted 25th percentile.
Additional visuals include:
A dynamically colored 54-period EMA line, representing trend direction:
Green Line: Indicates a bullish trend.
Red Line: Indicates a bearish trend.
A filled area between the EMA line and the midpoint (HL2), offering enhanced trend visibility.
Customization & Parameters
The 75th-25th Percentile Momentum indicator includes several adjustable parameters to suit different trading styles:
Source: Defines the input price (default: close).
Percentile Length: Default set to 25, determines the lookback period for percentile calculations.
ATR Length: Default set to 14, adjusts the sensitivity of volatility measurement.
Multiplier for 75th Percentile: Default set to 1.3, adjusts the threshold for long signals.
Multiplier for 25th Percentile: Default set to 1.3, adjusts the threshold for short signals.
Color Modes: Choose from eight visual themes to personalize the appearance of trend signals.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies:
Momentum Trading: Highlights when price action demonstrates strong upward or downward momentum relative to recent percentiles.
Volatility-Adaptive Strategies: By incorporating ATR-based thresholds, the indicator adjusts dynamically to market conditions.
Reversal Detection: Identifies potential turning points when the price moves significantly beyond the 75th or 25th percentiles.
Final Note
QuantumResearch’s 75th-25th Percentile Momentum indicator is a powerful tool for traders looking to capture momentum and trend opportunities in the market.
Its combination of percentile analysis, volatility adjustment, and visual clarity offers a robust framework for making informed trading decisions. As with all indicators, it is recommended to backtest thoroughly and integrate this tool into a comprehensive trading strategy.
HTF Candle Range Box (Fixed to HTF Bars)### **Higher Timeframe Candle Range Box (HTF Box Indicator)**
This indicator visually highlights the price range of the most recently closed higher-timeframe (HTF) candle, directly on a lower-timeframe chart. It dynamically adjusts based on the user-selected HTF setting (e.g., 15-minute, 1-hour) and ensures that the box is displayed only on the bars that correspond to that specific HTF candle’s duration.
For instance, if a trader is on a **1-minute chart** with the **HTF set to 15 minutes**, the indicator will draw a box spanning exactly 15 one-minute candles, corresponding to the previous 15-minute HTF candle. The box updates only when a new HTF candle completes, ensuring that it does not change mid-formation.
---
### **How It Works:**
1. **Retrieves Higher Timeframe Data**
The script uses TradingView’s `request.security` function to pull **high, low, open, and close** values from the **previously completed HTF candle** (using ` ` to avoid repainting). It also fetches the **high and low of the candle before that** (using ` `) for comparison.
2. **Determines Breakout Behavior**
It compares the **last closed HTF candle** to the **one before it** to determine whether:
- It **broke above** the previous high.
- It **broke below** the previous low.
- It **broke both** the high and low.
- It **stayed within the previous candle’s range** (no breakout).
3. **Classifies the Candle & Assigns Color**
- **Green (Bullish)**
- Closes above the previous candle’s high.
- Breaks below the previous candle’s low but closes back inside the previous range **if it opened above** the previous high.
- **Red (Bearish)**
- Closes below the previous candle’s low.
- Breaks above the previous candle’s high but closes back inside the previous range **if it opened below** the previous low.
- **Orange (Neutral/Indecisive)**
- Stays within the previous candle’s range.
- Breaks both the high and low but closes inside the previous range without a clear bias.
4. **Box Placement on the Lower Timeframe**
- The script tracks the **bar index** where each HTF candle starts on the lower timeframe (e.g., every 15 bars on a 1-minute chart if HTF = 15 minutes).
- It **only displays the box on those bars**, ensuring that the range is accurately reflected for that time period.
- The box **resets and updates** only when a new HTF candle completes.
---
### **Key Features & Advantages:**
✅ **Clear Higher Timeframe Context:**
- The indicator provides a structured way to analyze HTF price action while trading in a lower timeframe.
- It helps traders identify **HTF support and resistance zones**, potential **breakouts**, and **failed breakouts**.
✅ **Fixed Box Display (No Mid-Candle Repainting):**
- The box is drawn **only after the HTF candle closes**, avoiding misleading fluctuations.
- Unlike other indicators that update live, this one ensures the trader is looking at **confirmed data** only.
✅ **Flexible Timeframe Selection:**
- The user can set **any HTF resolution** (e.g., 5min, 15min, 1hr, 4hr), making it adaptable for different strategies.
✅ **Dynamic Color Coding for Quick Analysis:**
- The **color of the box reflects the market sentiment**, making it easier to spot trends, reversals, and fake-outs.
✅ **No Clutter – Only Applies to the Relevant Bars:**
- Instead of spanning across the whole chart, the range box is **only visible on the bars belonging to the last HTF period**, keeping the chart clean and focused.
---
### **Example Use Case:**
💡 Imagine a trader is scalping on the **1-minute chart** but wants to factor in **HTF 15-minute structure** to avoid getting caught in bad trades. With this indicator:
- They can see whether the last **15-minute candle** was bullish, bearish, or indecisive.
- If it was **bullish (green)**, they may look for **buying opportunities** at lower timeframes.
- If it was **bearish (red)**, they might anticipate **a potential pullback or continuation down**.
- If the **HTF candle failed to break out**, they know the market is **ranging**, avoiding unnecessary trades.
---
### **Final Thoughts:**
This indicator is a **powerful addition for traders who combine multiple timeframes** in their analysis. It provides a **clean and structured way to track HTF price movements** without cluttering the chart or requiring constant manual switching between timeframes. Whether used for **intraday trading, swing trading, or scalping**, it adds an extra layer of confirmation for trade entries and exits.
🔹 **Best for traders who:**
- Want **HTF structure awareness while trading lower timeframes**.
- Need **confirmation of breakouts, failed breakouts, or indecision zones**.
- Prefer a **non-repainting tool that only updates after confirmed HTF closes**.
Let me know if you want any adjustments or additional features! 🚀
Dynamic Median EMA | QuantEdgeBIntroducing Dynamic Median EMA by QuantEdgeB
Dynamic Median EMA | QuantEdgeB is an adaptive moving average indicator that blends median filtering, a volatility-based dynamic EMA, and customizable filtering techniques to create a responsive yet stable trend detection system. By incorporating Standard Deviation (SD) or ATR bands, this indicator dynamically adjusts to market conditions, making it a powerful tool for both traders and investors.
Key Features:
1. Dynamic EMA with Efficiency Ratio 🟣
- Adjusts smoothing based on market conditions, ensuring optimal responsiveness to price changes.
- Uses an efficiency ratio to dynamically modify the smoothing factor, making it highly adaptive.
2. Median-Based vs. Traditional EMA Source 📊
- Users can choose between a Median-based smoothing method (default: ✅ enabled ) or a traditional price source.
- The median filter provides better noise reduction in choppy markets.
3. Volatility-Based Filtering with Custom Bands 🎯
- Two filtering methods:
a. Standard Deviation (SD) Bands 📏 (default ✅) – Expands and contracts based on
historical deviation.
b. ATR Bands 📈 – Uses Average True Range (ATR) to adjust dynamic thresholds.
- The user can toggle between SD and ATR filtering, depending on market behavior.
4. Customizable Signal Generation ✅❌
- Long Signal: Triggered when the price closes above the selected upper filter band .
- Short Signal: Triggered when the price closes below the lower filter band .
- Dynamically adjusts based on the filtering method (SD or ATR).
5. Enhanced Visuals & Customization🎨
- Multiple color modes available (Default, Solar, Warm, Cool, Classic, X).
- Gradient filter bands provide a clearer view of volatility expansion/contraction.
- Candlestick coloring for instant visual confirmation of bullish/bearish conditions.
________
How It Works:
- Source Selection : Users can choose to use the median of price action or a traditional price feed as the base input for the Dynamic EMA.
- Dynamic EMA Calculation : The indicator applies a volatility-adjusted smoothing algorithm based on the efficiency ratio, ensuring that price trends are detected quickly in volatile markets and smoothly in stable ones.
- Filtering Mechanism : 🎯 Use can chose between two filtering options. Standard deviation to dynamically adjust based on market deviations or ATR Bands to determine trend strength through volatility expansions
- Signal Generation :
1. Bullish (🔵) is triggered when price crosses above the upper band.
2. Bearish (🔴) is generated when price drops below the lower band.
- The filtering method (SD/ATR) determines how the bands expand/contract, allowing for better trade adaptability.
________
Use Cases:
✅ For Trend Trading & Breakouts:
- Use SD bands (default setting) to capture trend breakouts and avoid premature entries.
- SD bands expand during high volatility, helping confirm strong breakouts, and contract during low volatility, helping confirm earlier trend exit.
- Consider increasing Dynamic EMA length (default 8) for longer-term trend detection.
✅ For Smoother Trend Filtering:
- Enable ATR bands for a more stable and gradual trend filter.
- ATR bands help reduce noise in choppy conditions while maintaining responsiveness to volatility.
- This setting is useful for traders looking to ride trends with fewer false exits.
✅ For Volatility Awareness:
- Watch the expansion and contraction of the filter bands:
- Wide SD bands = High volatility, breakout potential.
- Tight SD bands = Consolidation, potential trend exhaustion.
- ATR bands provide steadier adjustments, making them ideal for traders who prefer
smoother trend confirmation.
________
Customization Options:
- Source Selection 🟢 (Default: Median filtering enabled ✅)
- Dynamic EMA Length ⏳ (Default: 8 )
- Filtering Method🎯 (SD Bands ✅ by default, toggle ATR if needed)
- Standard Deviation Length 📏 (Default: 30 )
- ATR Length 📈 (Default: 14, ATR multiplier 1.3)
- SD Bands Weights:📌
- Default settings (Upper = 1.035, Lower = 1.02) are optimized for daily charts.
- For lower timeframes (e.g., hourly charts), consider using lighter weights such as Upper =
1.024 / Lower = 1.008 to better capture price movements.
- The optimal SD Band weights depend on the asset's volatility, so adjust accordingly to align
with market conditions.
- Multiple Color Themes 🎨 (Default, Solar, Warm, Cool, Classic, X)
________
Conclusion
The Dynamic Median EMA | QuantEdgeB is a powerful trend-following & filtering indicator designed to adapt dynamically to market conditions. By combining a volatility-responsive EMA, custom filter bands, and signal-based candlestick coloring, this tool provides clear and reliable trade signals across different market environments. 🚀📈
🔹 Disclaimer: Past performance is not indicative of future results. No trading indicator can guarantee success in financial markets.
🔹 Strategic Consideration: As always, backtesting and strategic adjustments are essential to fully optimize this indicator for real-world trading. Traders should consider risk management practices and adapt settings to their specific market conditions and trading style.
Stock Sector ETF with IndicatorsThe Stock Sector ETF with Indicators is a versatile tool designed to track the performance of sector-specific ETFs relative to the current asset. It automatically identifies the sector of the underlying symbol and displays the corresponding ETF’s price action alongside key technical indicators. This helps traders analyze sector trends and correlations in real time.
---
Key Features
Automatic Sector Detection:
Fetches the sector of the current asset (e.g., "Technology" for AAPL).
Maps the sector to a user-defined ETF (default: SPDR sector ETFs) .
Technical Indicators:
Simple Moving Average (SMA): Tracks the ETF’s trend.
Bollinger Bands: Highlights volatility and potential reversals.
Donchian High (52-Week High): Identifies long-term resistance levels.
Customizable Inputs:
Adjust indicator parameters (length, visibility).
Override default ETFs for specific sectors.
Informative Table:
Displays the current sector and ETF symbol in the bottom-right corner.
---
Input Settings
SMA Settings
SMA Length: Period for calculating the Simple Moving Average (default: 200).
Show SMA: Toggle visibility of the SMA line.
Bollinger Bands Settings
BB Length: Period for Bollinger Bands calculation (default: 20).
BB Multiplier: Standard deviation multiplier (default: 2.0).
Show Bollinger Bands: Toggle visibility of the bands.
Donchian High (52-Week High)
Daily High Length: Days used to calculate the high (default: 252, approx. 1 year).
Show High: Toggle visibility of the 52-week high line.
Sector Selections
Customize ETFs for each sector (e.g., replace XLU with another utilities ETF).
---
Example Use Cases
Trend Analysis: Compare a stock’s price action to its sector ETF’s SMA for trend confirmation.
Volatility Signals: Use Bollinger Bands to spot ETF price squeezes or breakouts.
Sector Strength: Monitor if the ETF is approaching its 52-week high to gauge sector momentum.
Enjoy tracking sector trends with ease! 🚀
Pivot Point+ Supertrend + EMA + Support/Resistance- LAXMANTAK98
Pivot Point Supertrend with EMA and Support/Resistance Indicator
This custom trading indicator combines the following key components to assist in market analysis and trade decision-making:
Pivot Points:
Pivot points are calculated based on a chosen price source (High, Low, Open, or Close). These levels are used to determine potential support and resistance zones.
Pivot Highs (Resistance) and Pivot Lows (Support) are plotted as labels on the chart for easy identification.
Supertrend Indicator:
The Supertrend is a trend-following indicator that helps to identify bullish or bearish trends.
It uses the Average True Range (ATR) to calculate dynamic support/resistance levels, with adjustable settings for ATR length and multiplier factor.
The trend direction is visually represented by green (bullish) and red (bearish) lines on the chart.
Exponential Moving Averages (EMA):
The indicator plots up to four EMAs with user-defined periods (e.g., 9, 21, 50, 200).
EMAs are commonly used to smooth out price data and identify trends over various timeframes.
Support and Resistance Levels:
Based on Pivot Points, support and resistance levels are plotted using crosses on the chart.
These levels indicate possible price reversal points, helping traders spot key zones for entry and exit.
Visual Alerts:
The indicator includes built-in alerts for trend changes and potential buy/sell signals based on the transition between uptrend and downtrend states.
This combined indicator allows traders to analyze trends, identify key levels for trading, and make more informed decisions by integrating Pivot Points, Supertrend, EMAs, and Support/Resistance in one cohesive system.
Dynamic 200 EMA with Trend-Based ColoringDescription:
This script plots the 200-period Exponential Moving Average (EMA) and dynamically changes its color based on the trend direction. The script helps traders quickly identify whether the price is above or below the 200 EMA, which is widely used as a long-term trend indicator.
How It Works:
The script calculates the 200 EMA based on the closing price.
If the price is above the EMA, it suggests a bullish trend, and the EMA line turns green.
If the price is below the EMA, it suggests a bearish trend, and the EMA line turns red.
An optional background color is added to enhance visual clarity, highlighting the current trend direction.
Use Cases:
Trend Confirmation: Helps traders determine if the overall trend is bullish or bearish.
Support and Resistance: The 200 EMA is often used as dynamic support/resistance.
Entry & Exit Signals: Traders can use crossovers with the 200 EMA as potential trade signals.
This script is designed for traders looking for a simple yet effective way to incorporate trend visualization into their charts. It is fully open-source and can be customized to fit individual trading strategies.
Advanced 1-Minute Open Range Breakout IndicatorThis indicator is designed for the market on a 1-minute chart. It calculates the open range based on the first 5 minutes after the market open (09:30 – 09:35) and plots the high and low of this period as the daily resistance and support levels respectively. Additionally, the indicator displays the previous day’s high and low as blue horizontal lines, providing extra reference levels.
Trade signals are generated only during the active trading session (09:35 – 16:00). The advanced trade logic works as follows:
• For long entries:
- When the price first breaks above the open range high, the indicator enters a “breakout” state.
- If the price then retraces to (or below) the open range high, it moves to a “retest” state.
- Finally, if the price breaks above the open range high again, a long signal is issued.
• For short entries:
- When the price first breaks below the open range low, the indicator enters a “breakdown” state.
- If the price then retraces to (or above) the open range low, it moves to a “retest” state.
- Finally, if the price breaks below the open range low again, a short signal is issued.
All signals and the open range lines are only displayed during the trading session (09:35 to 16:00).
Use this indicator to help identify high-probability breakout setups in the early part of the trading day.
smolka Bayesian Volatile ChannelDescription in English and Russian.
Bayesian Volatile Channel
The script is a loose interpretation of Bayes' theorem, which allows calculating the probability of events given that another event related to it has occurred, the script analyzes volatility and detects anomalies in price charts using a Bayesian approach, updating the model parameters to accurately estimate market fluctuations and detect changes in trends.
How does it work?
1. The script sets the initial parameters (mean price and standard deviation), creating a "hypothesis" about the market behavior.
2. When a new price appears, the script calculates the probability of its compliance with previous expectations. If the new price differs from the forecast, the model parameters (mean and standard deviation) are updated.
3. After updating the model, the probability that the current price and volatility correspond to a normal distribution is calculated.
4. Based on the updated model, volatility channels are built (mean price ± two standard deviations). If the price goes beyond these limits, this signals a possible anomaly indicating changes in the market.
5. The moving averages in the script act as data smoothing and trend analysis, helping to identify the market direction and minimize the impact of random fluctuations. The script uses moving averages to identify uptrends and downtrends, and calculates the average between them to display the overall market balance. These moving averages make market analysis clearer and more resistant to short-term fluctuations.
******************************************************************
Описание на английском и русском языках.
Байесовский волатильный канал
Скрипт является вольной интерпретацией теоремы Байеса, которая позволяет расчитать вероятность событий при условии, что произошло связанное с ним другое событие, скрипт анализирует волатильность и обнаруживает аномалии в графиках цен, используя байесовский подход, обновляя параметры модели для точной оценки рыночных колебаний и обнаружения изменений в тенденциях.
Как это работает?
1. Скрипт устанавливает начальные параметры (среднюю цену и стандартное отклонение), создавая "гипотезу" о поведении рынка.
2. При появлении новой цены скрипт вычисляет вероятность её соответствия предыдущим ожиданиям. Если новая цена отличается от прогноза, параметры модели (среднее и стандартное отклонение) обновляются.
3. После обновления модели рассчитывается вероятность того, что текущая цена и волатильность соответствуют нормальному распределению.
4. На основе обновлённой модели строятся каналы волатильности (средняя цена ± два стандартных отклонения). Если цена выходит за эти пределы, это сигнализирует о возможной аномалии, указывающей на изменения на рынке.
5. Средние скользящие в скрипте выполняют роль сглаживания данных и анализа трендов, помогая выявить направление рынка и минимизировать влияние случайных колебаний. Скрипт использует скользящие средние для определения восходящего и нисходящего трендов, а также рассчитывает среднее значение между ними для отображения общего баланса рынка. Эти скользящие средние делают анализ рынка более чётким и устойчивым к краткосрочным флуктуациям.
PullBack_Level_HunterThis script creates an "Auto Fibonacci" indicator that automatically plots selected Fibonacci retracement levels on a chart, based on a defined lookback period. Users can choose from various Fibonacci levels (0.236, 0.382, 0.5, 0.618, or 0.786) via a dropdown input, allowing for quick adjustments to analysis.
**Key Features:**
1. **Fibonacci Level Selection:** Users can select from multiple Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.786) for analysis.
2. **Lookback Period:** The script allows users to define a lookback period to determine the highest high and the lowest low for plotting Fibonacci levels.
3. **Fibonacci Level Calculation:** The Fibonacci levels are calculated using two functions:
- `fib_level`: Calculates the Fibonacci level based on the highest high and lowest low of the lookback period.
- `fib_level_from_current`: Calculates the Fibonacci level from the current candle’s high.
4. **Plotting:** The script plots the selected Fibonacci level on the chart, using a red line for the general Fibonacci level and a blue line for the level calculated from the current high.
5. **Dynamic Visualization:** The Fibonacci levels are drawn as step lines to clearly visualize price levels based on historical data and current price action.
This tool is ideal for traders who wish to quickly assess key Fibonacci levels for potential support or resistance within a customizable lookback period.
RSI XTR with selective candle color by Edwin KThis tradingView indicator named "RSI XTR with selective candle color", which modifies the candle colors on the chart based on RSI (Relative Strength Index) conditions. Here's how it works:
- rsiPeriod: Defines the RSI calculation period (default = 5).
- rsiOverbought: RSI level considered overbought (default = 70).
- rsiOversold: RSI level considered oversold (default = 30).
- These values can be modified by the user in the settings.
RSI Calculation
- Computes the RSI value using the ta.rsi() function on the closing price (close).
- The RSI is a momentum indicator that measures the magnitude of recent price changes.
Conditions for Candle Coloring
- when the RSI is above the overbought level.
- when the RSI is below the oversold level.
How It Works in Practice
- When the RSI is above 70 (overbought) → Candles turn red.
- When the RSI is below 30 (oversold) → Candles turn green.
- If the RSI is between 30 and 70, the candle keeps its default color.
This helps traders quickly spot potential reversal zones based on RSI momentum.
STRAW Volume Spike IndicatorThis is basically a:
High-Volume Impulse Detector
The High-Volume Impulse Detector is a refined tool designed to highlight key moments of explosive volume surges in the market, specifically calibrated for assets like Bitcoin on the 15-minute timeframe. Unlike generic volume-based indicators, this script doesn’t just flag high volume—it intelligently adapts to market dynamics by incorporating a custom-moving average baseline and highlighting instances where volume exceeds a significant threshold relative to the average.
Key Features
✅ Adaptive Volume Benchmark – Uses a dynamic moving average to filter out noise and pinpoint meaningful volume spikes.
✅ Impulse Confirmation – Only highlights volume bars that exceed the 50% threshold above the baseline, ensuring signals capture real liquidity shifts.
✅ Smart Color Coding – Differentiates high-impact bullish and bearish volume with distinct visual cues for easy market structure identification.
✅ Designed for Order Block Traders – Helps validate liquidity-driven price movements essential for refining order block and break-of-structure strategies.
Unlike conventional volume overlays, this tool helps traders connect volume surges to key structural shifts, making it an ideal companion for those navigating momentum shifts, market inefficiencies, and institutional footprints.
⚡ Best used on BTC 15m for tracking aggressive volume-driven moves in real-time.
ICT Concepts: MML, Order Blocks, FVG, OTECore ICT Trading Concepts
These strategies are designed to identify high-probability trading opportunities by analyzing institutional order flow and market psychology.
1. Market Maker Liquidity (MML) / Liquidity Pools
Idea: Institutional traders ("market makers") place orders around key price levels where retail traders’ stop losses cluster (e.g., above swing highs or below swing lows).
Application: Look for "liquidity grabs" where price briefly spikes to these levels before reversing.
Example: If price breaks a recent high but reverses sharply, it may indicate a liquidity grab to trigger retail stops before a trend reversal.
2. Order Blocks (OB)
Idea: Institutional orders are often concentrated in specific price zones ("order blocks") where large buy/sell decisions occurred.
Application: Identify bullish order blocks (strong buying zones) or bearish order blocks (strong selling zones) on higher timeframes (e.g., 1H/4H charts).
Example: A bullish order block forms after a strong rally; price often retests this zone later as support.
3. Fair Value Gap (FVG)
Idea: A price imbalance occurs when candles gap without overlapping, creating an area of "unfair" price that the market often revisits.
Application: Trade the retracement to fill the FVG. A bullish FVG acts as support, and a bearish FVG acts as resistance.
Example: Three consecutive candles create a gap; price later returns to fill this gap, offering a entry point.
4. Time-Based Analysis (NY Session, London Kill Zones)
Idea: Institutional activity peaks during specific times (e.g., 7 AM – 11 AM New York time).
Application: Focus on trades during high-liquidity periods when banks and hedge funds are active.
Example: The "London Kill Zone" (2 AM – 5 AM EST) often sees volatility due to European market openings.
5. Optimal Trade Entry (OTE)
Idea: A retracement level (similar to Fibonacci retracement) where institutions re-enter trends after a pullback.
Application: Look for 62–79% retracements in a trend to align with institutional accumulation/distribution zones.
Example: In an uptrend, price retraces 70% before resuming upward—enter long here.
6. Stop Hunts
Idea: Institutions manipulate price to trigger retail stop losses before reversing direction.
Application: Avoid placing stops at obvious levels (e.g., above/below recent swings). Instead, use wider stops or wait for confirmation.
LRLR [TakingProphets]LRLR (Low Resistance Liquidity Run) Indicator
This indicator identifies potential liquidity runs in areas of low resistance, based on ICT (Inner Circle Trader) concepts. It specifically looks for a series of unmitigated swing highs in a downtrend that form without any bearish fair value gaps (FVGs) between them.
What is an LRLR?
- A Low Resistance Liquidity Run occurs when price creates a series of lower highs without any bearish fair value gaps in between
- The absence of bearish FVGs indicates there is no significant resistance in the area
- These formations often become targets for smart money to collect liquidity above the swing highs
How to Use the Indicator:
1. The indicator will draw a diagonal line connecting a series of qualifying swing highs
2. A small "LRLR" label appears to mark the pattern
3. These areas often become targets for future price moves, as they represent zones of accumulated liquidity with minimal resistance
Key Points:
- Minimum of 4 consecutive lower swing highs
- No bearish fair value gaps can exist between these swing highs
- The diagonal line helps visualize the liquidity run formation
- Can be used for trade planning and identifying potential reversal zones
Settings:
- Show Labels: Toggle the "LRLR" label visibility
- LRLR Line Color: Customize the appearance of the diagonal line
Best Practices:
1. Use in conjunction with other ICT concepts and market structure analysis
2. Pay attention to how price reacts when returning to these levels
3. Consider these areas as potential targets for smart money liquidity grabs
4. Most effective when used on higher timeframes (4H and above)
Note: This is an educational tool and should be used as part of a complete trading strategy, not in isolation.
CCI Buy and Sell Signals with 20/30 EMACCI Buy and Sell Signals with EMA and ATR Stop Loss/Take Profit
This indicator is designed to identify buy and sell signals based on a combination of the Commodity Channel Index (CCI) and Exponential Moving Averages (EMA). It also includes an optional ATR-based stop loss and take profit system, which is useful for traders who want to manage their trades with dynamic risk levels.
Features:
CCI Buy and Sell Signals:
Buy Signal: A buy signal is triggered when the CCI crosses up through -100 (from an oversold condition), the 20-period EMA is above the 30-period EMA, and the price is above the 200-period EMA. This suggests that the market is entering an upward trend.
Sell Signal: A sell signal is triggered when the CCI crosses down through +100 (from an overbought condition), the 20-period EMA is below the 30-period EMA, and the price is below the 200-period EMA. This suggests that the market is entering a downward trend.
Exponential Moving Averages (EMA):
The script plots three EMAs:
20-period EMA (Green): Used to identify short-term trends.
30-period EMA (Red): Used to capture medium-term trends.
200-period EMA (Orange): A long-term trend filter, with the price above it generally indicating bullish conditions and below it indicating bearish conditions.
ATR-Based Stop Loss and Take Profit:
Optional Feature: The ATR (Average True Range) indicator can be used to set stop loss and take profit levels based on market volatility.
Stop Loss: Set at a multiple of the ATR below the entry price for long positions and above the entry price for short positions.
Take Profit: Set at a multiple of the ATR above the entry price for long positions and below the entry price for short positions.
Customizable: You can adjust the ATR length, Stop Loss Multiplier, and Take Profit Multiplier through the settings.
Dots: The stop loss and take profit levels are plotted as dots on the chart when the ATR feature is enabled.
Alert Conditions:
Buy Signal Alert: Triggered when a buy signal occurs based on CCI crossing up -100 and other conditions being met.
Sell Signal Alert: Triggered when a sell signal occurs based on CCI crossing down +100 and other conditions being met.
Any Signal Alert: This is a combined alert that triggers for either a buy or sell signal. It helps you stay updated on both types of signals simultaneously.
How to Use:
The indicator will plot buy and sell arrows on the chart, giving clear entry points for trades based on CCI and EMA conditions.
The ATR stop loss and take profit dots (when enabled) provide automatic risk management levels, adjusting dynamically with market volatility.
Traders can customize the ATR settings to fine-tune their stop loss and take profit levels, making this strategy adaptable to different trading styles and market conditions.
RT + TL v12This is a script to populate gamma/vanna/charm levels from option greeks heatmaps in Vexly. Heavy levels indicate levels with highest confluence. TLU and TLL are upper and lower levels. The levels are posted everyday on their discord server.
Range Trader another tool in Vexly, the levels from which can be plotted as well. Just copy the headline from range trader into "RT Range" and the modes into "RT mode"
Example:
RT Mode will take this string as input and plot the levels:
upper_mode
6049.037
mp_mode
6035.407
lower_mode
6021.776
RT Range will take this string as input and plot the levels:
6044.893 - 6017.652
Hope this helps
EMA & Bollinger BandsThis indicator combines three main functionalities into a single script:
1. Exponential Moving Average (EMA):
- Purpose: Calculates and plots the EMA of a chosen price source.
- Inputs:
- EMA Length: The period for the EMA calculation.
- EMA Source: The price series (such as close) used for the EMA.
- EMA Offset: Allows shifting the EMA line left or right on the chart.
- Output: A blue-colored EMA line plotted on the chart.
2. Smoothing MA on EMA:
- Purpose: Applies a secondary moving average (MA) on the previously calculated EMA. There is also an option to overlay Bollinger Bands on this smoothed MA.
- Inputs:
- Smoothing MA Type: Options include "None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", and "VWMA".
- Selecting "None" disables this feature.
- Choosing "SMA + Bollinger Bands" will additionally plot Bollinger Bands around the smoothed MA.
- Smoothing MA Length: The period used to calculate the smoothing MA.
- BB StdDev for Smoothing MA: The standard deviation multiplier for the Bollinger Bands (applies only when "SMA + Bollinger Bands" is selected).
- Calculation Details:
- The chosen MA type is applied to the EMA value.
- If Bollinger Bands are enabled, the script computes the standard deviation of the EMA over the smoothing period, multiplies it by the specified multiplier, and then plots an upper and lower band around the smoothing MA.
- Output:
- A yellow-colored smoothing MA line.
- Optionally, green-colored upper and lower Bollinger Bands with a filled background if the "SMA + Bollinger Bands" option is selected.
3. Bollinger Bands on Price:
- Purpose: Independently calculates and plots traditional Bollinger Bands based on a moving average of a selected price source.
- Inputs:
- BB Length: The period for calculating the moving average that serves as the basis of the Bollinger Bands.
- BB Basis MA Type: The type of moving average to use (options include SMA, EMA, SMMA (RMA), WMA, and VWMA).
- BB Source: The price series (such as close) used for the Bollinger Bands calculation.
- BB StdDev: The multiplier for the standard deviation used to calculate the upper and lower bands.
- BB Offset: Allows shifting the Bollinger Bands left or right on the chart.
- Calculation Details:
- The script computes a basis line using the selected MA type on the chosen price source.
- The standard deviation of the price over the specified period is then multiplied by the provided multiplier to determine the distance for the upper and lower bands.
- Output:
- A basis line (typically drawn in a blue tone), an upper band (red), and a lower band (teal).
- The area between the upper and lower bands is filled with a semi-transparent blue background for easier visualization.
---
How It Works Together
- Integration:
The script is divided into clearly labeled sections for each functionality. All parts are drawn on the same chart (overlay mode enabled), providing a comprehensive view of market trends.
- Customization:
Users can adjust parameters for the EMA, the smoothing MA (and its optional Bollinger Bands), as well as the traditional Bollinger Bands independently. This allows for flexible customization depending on the trader's strategy or visual preference.
- Utility:
Combining these three analyses into one indicator enables traders to view:
- The immediate trend via the EMA.
- A secondary smoothed trend that might help reduce noise.
- A volatility measure through Bollinger Bands on both the price and the smoothed EMA.
---
This combined indicator is useful for technical analysis by providing both trend-following (EMA and smoothing MA) and volatility indicators (Bollinger Bands) in one streamlined tool.
Previous Day High, Low + Today's Opening Price [DB]This indicator plots horizontal reference lines showing three price levels:
Previous Day's High (PDH) – Dark red line by default
Previous Day's Low (PDL) – Dark green line by default
Today's Opening Price (O.P.) – Black line by default
Settings & Customization
Adjust line colors, width (default: 2px), and transparency (30% by default).
Choose line styles: Solid, Dashed, or Dotted.
Labels:
Toggle labels (PDH/PDL/O.P.) on/off.
Optional price values below labels.
The goal of this indicator is to simplify tracking potentionally important daily levels without manual drawing.
Works on all timeframes (from 1-minute to weekly charts). The levels auto-update daily at market open and they are non-repainting (historical levels stay fixed).
Fair Value Gap (FVG) by AlgoMaxxFair Value Gap (FVG) by AlgoMaxx
Advanced Fair Value Gap (FVG) detector with dynamic support/resistance lines. This professional-grade tool helps traders identify and track important market inefficiencies through Fair Value Gaps.
Features:
• Auto-detection of bullish and bearish FVGs
• Dynamic dotted extension lines for latest FVGs
• Smart gap filtering system
• Color-coded visualization
• Customizable parameters
• Clean, optimized code
Key Functions:
• Detects imbalance zones between candlesticks
• Marks FVGs with color-coded boxes
• Extends dotted lines for active reference levels
• Automatically updates with new gap formations
• Tracks gap fills in real-time
Inputs:
• Lookback Period: Historical gaps to display
• Minimum Gap Size %: Filter for gap significance
• Bullish/Bearish Colors: Visual customization
• Show Filled Gaps: Toggle filled gap visibility
Practical Applications:
1. Support/Resistance Levels
2. Mean Reversion Trading
3. Trend Continuation Setups
4. Market Structure Analysis
5. Price Action Trading
Usage Tips:
• Higher timeframes (1H+) provide more reliable signals
• Multiple FVGs in one zone indicate stronger levels
• Use in conjunction with other technical tools
• Monitor price reactions at FVG levels
• Consider gaps as zones rather than exact prices
Note: This is a premium-grade indicator designed for serious traders. Works best on higher timeframes where price inefficiencies are more significant.
═══════════════════
By Algomaxx
Version: 1.0
═══════════════════
Disclaimer:
This indicator is for informational purposes only. Trade at your own risk and always use proper risk management.
#FVG #technical #trading #algomaxx #premium