Multi Timeframe Breakout/Retest (Gap, FVG, B&R)📊 Breakout & Retest Multi-Timeframe Indicator - Support and Resistance Indicator 📊
In short, this indicator scans 4 timeframes of your choice to check if a proper breakout of your support and resistance lines you input has happened. It color-coats your support and resistance levels based on the type of breakout, labels the levels, and shows which timeframes have had a proper breakout in an interactive table. This tool is primarily used to determine when a breakout—whether Fair Value Gap (FVG), gap, or regular—has occurred, allowing you to confidently play the retest.
🔍 Types of Breakouts:
This indicator highlights three types of breakouts:
Regular Breakouts: Defined when a candle breaks above or below your level, then closes, and the next candle’s wick does not touch that level.
Gap Breakouts: A gap breakout occurs when we gap above or below the level—often happening on daily candle opens and closes.
FVG Breakouts: An FVG breakout happens when a breakout above or below your level forms a Fair Value Gap, with your level inside the gap. These breakouts tend to have stronger retests
📋 Interactive Table
The table helps you visualize which levels are experiencing a breakout and on which timeframes. It color-codes each level based on breakout activity:
🔴 Red: No active breakouts
🟢 Green: Active regular breakout
🔵 Blue: Active FVG breakout
🟡 Yellow: Active gap breakout
🎨 Color Coating & Minimum Timeframe Breakouts
To make sure you're playing a true breakout, you want confirmation on at least 3 of your chosen timeframes. This indicator has an adjustable "active minimum breakout" setting, which can be customized between 1 and 4 timeframes. I personally find that when a breakout occurs on at least 3 timeframes, the retest tends to have a higher success rate. But you can adjust this setting based on your strategy.
🔧 Future Updates (Follow for Updates):
🚨 Alerts: Set alerts for breakouts and retests.
⚙️ Improved Error Handling: For a smoother experience.
Chart patterns
BB NWOG - NDOG - RTH NDOGThe BB Gaps Indicator is a comprehensive tool designed for traders looking to track and visualize significant opening gaps within various market sessions, including:
• New Day Opening Gaps (NDOGs): These gaps form between the closing price of the previous day and the opening price of the new day, providing insight into potential liquidity pools or imbalances.
• RTH New Day Opening Gaps (RTH NDOGs): This focuses on gaps that occur during Regular Trading Hours (RTH), capturing gaps between session closures and the next day’s open, ideal for intraday traders.
• New Week Opening Gaps (NWOGs): These gaps track the price differential between the last candle of the week and the first candle of the new trading week, providing a broader market perspective for swing traders.
Key Features:
• Dynamic Plotting: Visualize gaps with customizable extensions, box fills, and mid-range (50%) or quarter-range (25%, 75%) levels.
• Sidecar Labels: Handy sidecar labels display the gap information right on the chart for easy reference.
• Multiple Session Support: Track gaps across different trading sessions (Daily, RTH, Weekly) with adjustable plot extensions and fill styles.
• Configurable Limits: Set a maximum number of gaps to plot, ensuring your chart remains clean and clutter-free.
Day Open vs Previous Day CloseThe concept of comparing the **Day Open** to the **Previous Day Close** is used frequently in technical analysis to gauge the sentiment or momentum at the start of a new trading day.
### Key Terms:
- **Day Open**: The first traded price of an asset when the market opens for the day.
- **Previous Day Close**: The last traded price of an asset when the market closed on the previous day.
### Importance of Day Open vs. Previous Day Close
1. **Market Sentiment Indicator**:
- If the **Day Open** is **higher** than the **Previous Day Close**, it suggests **bullish** sentiment (buyers are willing to pay more than yesterday's closing price).
- If the **Day Open** is **lower** than the **Previous Day Close**, it suggests **bearish** sentiment (sellers are driving prices down compared to the last price from the previous day).
2. **Potential Gaps**:
- A **gap** occurs when there is a significant difference between the Day Open and Previous Day Close, often due to events or news released after the market closed. This gap can indicate strong momentum in either direction.
- **Gap Up**: Open > Close (bullish).
- **Gap Down**: Open < Close (bearish).
3. **Trend Continuation or Reversal**:
- If the market opens above the previous day’s close and continues to rise, it often signals a **continuation of an upward trend**.
- Conversely, if the market opens below and keeps falling, it suggests **downward momentum** is still strong.
4. **Trading Strategies**:
- **Opening Range Breakout**: Traders may look for the price to break above or below the opening range (the price range between the Day Open and the first few candles) to confirm a strong bullish or bearish move.
- **Reversals**: Some traders look for price reversals if the price spikes far above or below the previous day's close, expecting that the market might correct itself and return towards the previous day’s closing levels.
In the context of your **Opening Range Indicator**, the concept of the Day Open sweeping and closing above or below the Previous Day Close is used to identify whether the new day is setting up for a **buy (bullish)** or **sell (bearish)** opportunity.
CRT Trades (turtle soup, A-M-D ranges with inside bars)CRT means Candle Range Theory. Every single candle is a range, on every single timeframe. Ranges may be either manipulated - turtle souped or broken - engulfed - closed above/below and retested.
CRT is usually presented as a 3 candle model. However it may consist of more than 3 candles due to inside bars. Inside bar is the candle where high is not higher then previous candle high and low is not lower then previous candle low.
First candle represents accumulation (may consist of more candles - inside bars), second candle represents manipulation (turtle soup) and third candle represents distribution. The abbreviation for that is A-M-D.
In accumulation the range with specific high and low is created. In manipulation (turtle soup) the high or low of the range is manipulated - liquidity taken and price should usually reverse back to the range. In distribution price is reversing back to the opposite side of the range. On higher timeframe it looks like manipulation candle wick is higher/lower than previous range high/low (may consist of 1 or more inside bar candles) but the body must not close above/below previous range high/low. Otherwise it is not manipulation (turtle soup) most likely and price should continue in direction of the candle close. Distribution candle should touch opposite side of range and it is mostly heavy and fast candle.
CRT model can be found on higher timeframe (e.g. 4h) and entries can be found on lower timeframe (e.g. 15m). You always use only lower timeframe on your chart because CRT model on the higher timeframe is shown on the lower one and also you can plan entries on the lower timeframe. You are able to change CRT model higher timeframe in the indicator settings.
There are two types of entries:
simple - wait for manipulation candle to close on higher timeframe (HTF) and then enter on lower timeframe (LTF) above open of the distribution candle on HTF if it is short or on LTF below open of the distribution candle on HTF if it is long. These entries can be done by market order.
advanced - wait for the break of previous range high/low and enter by limit order when price reverses back to the range and retraces to the order block or fair value gap created by the breaker candle.
Stop loss can be placed above/below of the top/bottom created by manipulation candle. First take profit should be placed in 1/2 of the accumulation range and second take profit should be placed at the opposite range of accumulation range.
It is possible to filter only particular accumulation (range) and manipulation (turtle soup) candles depending also on timezone set in the settings. For example on 4h CRT model if you fill input "indices" for section "range" like 1,2 and input "indices" for section "turtle soup" like 3,4 then you are awaiting the range to form during asia session and manipulation during london session if the timezone is somewhere around "UTC+2".
Dotted lines represent turtle soup of previous range and solid lines represent engulfing candle of the breaker candle on lower timeframe. When the engulfing is closed you can look for entries either by market order after closing or by limit order when the price retraces to order block (created by breaker candle) or fair value gap (created by engulfing).
Recommendations for combining lower (entries) and higher (crt model) timeframes:
1D CRT model => 1h entries,
4h CRT model => 15m entries,
1h CRT model => 5m entries,
15m CRT model => 1m entries.
Short-Only Cycle IndicatorThis script is a follow-up to my previous 60-day Cycle, Long-Only Indicator.
The "Short-Only Cycle Indicator" is designed to help traders navigate optimal shorting opportunities by analyzing cyclical price behavior over a defined period. It focuses on recognizing distribution phases (ideal for shorting) and accumulation phases (where shorting should be avoided). It should be used with assets that the trader has an existing thesis for downward price movement.
Key Features:
1. Cycle Length: The indicator uses a 60-day cycle to identify high and low points in price, which are then used to determine the current market phase.
2. Distribution Phase: When the price is near the cycle high, the indicator signals a distribution phase, indicating potential shorting opportunities.
3. Accumulation Phase: When the price is near the cycle low, the indicator signals an accumulation phase, advising traders to avoid shorting.
4. Short Signal: A short signal is triggered when the price crosses below the cycle high, which is visually marked on the chart for easy identification.
This indicator is particularly useful for traders who prefer a short-only strategy, as it helps them time their entries and avoid shorting during unfavorable market conditions.
ICT Judas Swing | Flux Charts💎 GENERAL OVERVIEW
Introducing our new ICT Judas Swing Indicator! This indicator is built around the ICT's "Judas Swing" strategy. The strategy looks for a liquidity grab around NY 9:30 session and a Fair Value Gap for entry confirmation. For more information about the process, check the "HOW DOES IT WORK" section.
Features of the new ICT Judas Swing :
Implementation of ICT's Judas Swing Strategy
2 Different TP / SL Methods
Customizable Execution Settings
Customizable Backtesting Dashboard
Alerts for Buy, Sell, TP & SL Signals
📌 HOW DOES IT WORK ?
The strategy begins by identifying the New York session from 9:30 to 9:45 and marking recent liquidity zones. These liquidity zones are determined by locating high and low pivot points: buyside liquidity zones are identified using high pivots that haven't been invalidated, while sellside liquidity zones are found using low pivots. A break of either buyside or sellside liquidity must occur during the 9:30-9:45 session, which is interpreted as a liquidity grab by smart money. The strategy assumes that after this liquidity grab, the price will reverse and move in the opposite direction. For entry confirmation, a fair value gap (FVG) in the opposite direction of the liquidity grab is required. A buyside liquidity grab calls for a bearish FVG, while a sellside grab requires a bullish FVG. Based on the type of FVG—bullish for buys and bearish for sells—the indicator will then generate a Buy or Sell signal.
After the Buy or Sell signal, the indicator immediately draws the take-profit (TP) and stop-loss (SL) targets. The indicator has three different TP & SL modes, explained in the "Settings" section of this write-up.
You can set up alerts for entry and TP & SL signals, and also check the current performance of the indicator and adjust the settings accordingly to the current ticker using the backtesting dashboard.
🚩 UNIQUENESS
This indicator is an all-in-one suit for the ICT's Judas Swing concept. It's capable of plotting the strategy, giving signals, a backtesting dashboard and alerts feature. Different and customizable algorithm modes will help the trader fine-tune the indicator for the asset they are currently trading. Three different TP / SL modes are available to suit your needs. The backtesting dashboard allows you to see how your settings perform in the current ticker. You can also set up alerts to get informed when the strategy is executable for different tickers.
⚙️ SETTINGS
1. General Configuration
Swing Length -> The swing length for pivot detection. Higher settings will result in
FVG Detection Sensitivity -> You may select between Low, Normal, High or Extreme FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
2. TP / SL
TP / SL Method ->
a) Dynamic: The TP / SL zones will be auto-determined by the algorithm based on the Average True Range (ATR) of the current ticker.
b) Fixed : You can adjust the exact TP / SL ratios from the settings below.
Dynamic Risk -> The risk you're willing to take if "Dynamic" TP / SL Method is selected. Higher risk usually means a better winrate at the cost of losing more if the strategy fails. This setting is has a crucial effect on the performance of the indicator, as different tickers may have different volatility so the indicator may have increased performance when this setting is correctly adjusted.
Cumulative Volume Delta with VWAP-based Buy/Sell AlertsDescription:
This script combines Cumulative Volume Delta (CVD) with Volume Weighted Average Price (VWAP) to generate buy and sell signals. It plots both the cumulative volume delta and its moving average on the chart, but the actual buy and sell signals are now based on the crossover and crossunder of the price with the VWAP, a popular tool for tracking price relative to the volume-weighted average over time.
Features:
Cumulative Volume Delta (CVD) Plot:
CVD helps visualize the net buying or selling pressure by accumulating volume when the price is rising and subtracting it when the price is falling. The cumulative volume is plotted on the chart as a blue line.
Moving Average of CVD:
A simple moving average (SMA) of the cumulative volume delta is plotted in orange to smooth out fluctuations and help detect the trend of volume flow.
VWAP Calculation:
VWAP (Volume Weighted Average Price) is a standard benchmark widely used in trading. It gives insight into whether the price is trading above or below the average price at which most of the volume has traded, weighted by volume. The VWAP is plotted as a purple line on the chart.
Buy/Sell Signals Based on VWAP:
Buy Signal: Triggered when the price crosses above the VWAP, indicating potential upward momentum.
Sell Signal: Triggered when the price crosses below the VWAP, signaling potential downward momentum.
These signals are displayed on the chart with clear labels:
Buy Signal: A green upward label appears below the price.
Sell Signal: A red downward label appears above the price.
Alerts for Buy/Sell Conditions:
Alerts are built into the script, so traders can receive notifications when the following conditions are met:
Buy Alert: The price crosses above the VWAP.
Sell Alert: The price crosses below the VWAP.
Use Case:
This script is useful for traders looking to incorporate both volume-based indicators and the VWAP into their trading strategy. The combination of CVD and VWAP provides a more comprehensive view of both price and volume dynamics:
VWAP helps traders understand whether the price is trading above or below its volume-weighted average.
CVD highlights buying or selling pressure through cumulative volume analysis.
Customization:
Anchor Periods: The user can customize the anchor period to suit different timeframes and trading styles.
Custom Alerts: The alert conditions can be easily modified to integrate into any trader’s strategy.
This script can be adapted for both short-term and long-term trading strategies and is especially useful in high-volume markets.
How to Use:
Add the script to your TradingView chart.
Customize the timeframe and anchor period, if needed, to match your preferred trading style.
Watch for Buy/Sell signals based on price crossing the VWAP.
Set up alerts to receive notifications when Buy or Sell signals are triggered.
This script is designed to help traders make informed decisions based on both price action relative to volume and Cumulative Delta volume trends, giving a more comprehensive view of the market dynamics.
FVG Channel [LuxAlgo]The FVG Channel indicator displays a channel constructed from the averages of unmitigated historical fair value gaps (FVG), allowing to identify trends and potential reversals in the market.
Users can control the amount of FVGs to consider for the calculation of the channels, as well as their degree of smoothness through user settings.
🔶 USAGE
The FVG Channel is constructed by averaging together recent unmitigated Bullish FVGs (contributing to the creation of the upper bands), and Bearish unmitigated FVGs (contributing to the creation of the lower bands) within a lookback determined by the user. A higher lookback will return longer-term indications from the indicator.
The channel includes 5 bands, with one upper and one lower outer extremities, as well as an inner series of values determined using the Fibonacci ratios (respectively 0.786, 0.5, 0.236) from the channel's outer extremities.
An uptrend can be identified by price holding above the inner upper band (obtained from the 0.786 ratio), this band can also provide occasional support when the price retraces to it while in an uptrend.
Breaking below the inner upper band with an unwillingness to reach above again is a clear sign of hesitation in the market and can be indicative of an upcoming consolidation or reversal.
This can directly be applied to downtrends as well, below are examples displaying both scenarios.
Uptrend Example:
Downtrend Example:
🔹 Breakout Levels
When the price mitigates all FVGs in a single direction except for 1, the indicator will display a "Breakout Level". This is the level that price will need to cross in order for all FVGs in that direction to be mitigated, because of this they can also be aptly called "Last Stand Levels".
These levels can be considered as potential support and resistance levels, however, should always be monitored for breakouts since a substantial push above or below these points would indicate strong momentum.
🔹 Signals
The indicator includes Bullish and Bearish Signals, these signals fire when all FVGs for a single direction have been mitigated and an engulfing candle occurs in the opposite direction. These are reversal signals and should be used alongside other indicators to appropriately manage risk.
Note: When all FVGs in a single direction have been mitigated, the candles will change colors accordingly.
🔶 DETAILS
The script uses a typical identification method for FVGs. Once identified, the script collects and stores the mitigation levels of the respective bullish and bearish FVGs:
For Bullish FVGs this is the bottom of the FVG.
For Bearish FVGs this is the top of the FVG.
The data is managed to only consider a specific amount of FVG mitigation levels, determined by the set "Unmitigated FVG Lookback". If an FVG is mitigated, it frees up a spot in the memory for a new FVG, however, if the memory is full, the oldest will be deleted.
The averages displayed (Channel Upper and Lower) are created from 2 calculation steps, the first step involves taking the raw average of the FVG mitigation levels, and the second step applies a simple moving average (SMA) smoothing of the precedent obtained averages.
Note: To view the mitigation levels average obtained in the first step, the "Smoothing Length" can be set to 1.
🔶 SETTINGS
Unmitigated FVG Lookback: Sets the maximum number of Unmitigated FVG mitigation levels that the script will use to calculate the channel.
Smoothing Length: Sets the smoothing length for the channel to reduce noise from the raw data.
E9 Shark-32 Pattern Strategy The E9 Shark-32 Pattern is a powerful trading tool designed to capitalize on the Shark-32 pattern—a specific Candlestick pattern.
The Shark-32 Pattern: What Is It?
The Shark-32 pattern is a technical formation that occurs when the following conditions are met:
Higher Highs and Lower Lows: The low of two bars ago is lower than the previous bar, and the previous bar's low is lower than the current bar. At the same time, the high of two bars ago is higher than the previous bar, and the previous bar’s high is higher than the current bar.
This unique setup forms the "Shark-32" pattern, which signals potential volume squeezes and trend changes in the market.
How Does the Strategy Work?
The E9 Shark-32 Pattern Strategy builds upon this pattern by defining clear entry and exit rules based on the pattern's confirmation. Here's a breakdown of how the strategy operates:
1. Identifying the Shark-32 Pattern
When the Shark-32 pattern is confirmed, the strategy "locks" the high and low prices from the initial bar of the pattern. These locked prices serve as key levels for future trade entries and exits.
2. Entry Conditions
The strategy waits for the price to cross the pattern's locked high or low, signaling potential market direction.
Long Entry: A long trade is triggered when the closing price crosses above the locked pattern high (green line).
Short Entry: A short trade is triggered when the closing price crosses below the locked pattern low (red line).
The strategy ensures that only one trade is taken for each Shark-32 pattern, preventing overtrading and allowing traders to focus on high-probability setups.
3. Stop Loss and Take Profit Levels
The strategy has built-in risk management through stop-loss and take-profit levels, which are visually represented by the lines on the chart:
Stop Loss:
Stop loss can be adjusted in settings.
Take Profit:
For long trades: The take-profit target is set at the upper white dotted line, which is projected above the pattern high.
For short trades: The take-profit target is set at the lower white dotted line, which is projected below the pattern low.
These clearly defined levels help traders to manage risk effectively while maximizing potential returns.
4. Visual Cues
To make trading decisions even easier, the strategy provides helpful visual cues:
Green Line (Pattern High): This line represents the high of the Shark-32 pattern and serves as a resistance level and short entry signal.
Red Line (Pattern Low): This line represents the low of the Shark-32 pattern and serves as a support level and long entry signal.
White Dotted Lines: These lines represent potential profit targets, projected both above and below the pattern. They help traders define where the market might go next.
Additionally, the strategy highlights the pattern formation with color-coded bars and background shading to draw attention to the Shark-32 pattern when it is confirmed. This adds a layer of visual confirmation, making it easier to spot opportunities in real-time.
5. No Repeated Trades
An important aspect of the strategy is that once a trade is taken (either long or short), no additional trades are executed until a new Shark-32 pattern is identified. This ensures that only valid and confirmed setups are acted upon.
Candle Data AnalyzerCandle Data Analyzer
Overview
The Candle Data Analyzer is a powerful TradingView script designed to provide traders with insights into price action patterns within specific time sessions. By analyzing historical candle data, this indicator offers predictive suggestions for future price movements, helping traders make more informed decisions.
Key Features
**Custom Session Analysis**: Analyze price action within user-defined time sessions.
**Bias Selection**: Choose between Bullish, Bearish, or Neutral bias for predictions.
**Daily/Weekly Toggle**: Option to use daily or weekly results for broader context.
**Visual Predictions**: Display predicted high, low, and open levels for the next session.
**Detailed Statistics**: View average time and price movements for highs and lows.
**Interactive Table**: Optional table display showing current and historical data.
How It Works
1. The script collects and analyzes candle data from user-defined sessions.
2. It calculates average time and price movements for highs and lows.
3. Based on the selected bias, it predicts the next session's open, high, and low levels.
4. These predictions are visually represented on the chart using colored lines.
5. A detailed statistics table can be displayed for in-depth analysis.
Usage Guide
Setup
1. Add the indicator to your chart.
2. Configure the session time in the format "HHMM-HHMM" (e.g., "0300-0500" for 3:00 AM to 5:00 AM).
3. Select your bias: Bullish, Bearish, or Neutral.
4. Choose whether to use daily results or not.
5. Decide if you want to display the detailed statistics table.
Interpreting the Results
**Blue Line**: Open level for the next session.
**Green Line**: Predicted high level for the next session.
**Red Line**: Predicted low level for the next session.
**Vertical Lines**: Estimated times for the high (green) and low (red) to occur.
Using the Statistics Table
If enabled, the table provides:
- Previous session's OHLC data with timestamps.
- Average price movements (as percentages) from open to high and open to low.
- Average time for highs and lows to occur (in minutes).
- Count of analyzed candles matching the selected bias.
Trading Applications
**Session Trading**: Use predictions to plan entries and exits for session-based trading strategies.
**Risk Management**: Set stop-loss and take-profit levels based on predicted price ranges.
**Trend Analysis**: Compare current price action to predicted levels to gauge trend strength.
**Time-Based Strategies**: Utilize timing predictions for high-probability trade entries.
Best Practices
- Combine this indicator with other technical analysis tools for confirmation.
- Regularly adjust the session times and bias to adapt to changing market conditions.
- Use the statistics table to gain deeper insights into historical price patterns.
- Remember that predictions are based on averages and should not be considered guaranteed outcomes.
Conclusion
The Candle Data Analyzer offers a unique approach to understanding and predicting price action within specific time frames. By leveraging historical data and user-defined parameters, it provides traders with valuable insights to enhance their trading strategies and decision-making processes.
Future Developments
- Weekly and Daily Projections
- User defined line styles
Breakout and Breakdown Indicator with RetestsThis indicator is designed to help traders identify high-probability breakout and breakdown points based on the first 5 minutes of market activity (9:30 am to 9:35 am). It works effectively on both the 1-minute and 5-minute timeframes, making it ideal for day traders and scalpers.
This indicator is a better indicator of my previous 5-Minute Opening Range Breakout indicator.
Key Features:
Dynamic Support and Resistance Lines: Automatically plots the highest and lowest price levels from 9:30 am to 9:35 am, providing essential support and resistance zones.
Breakout/Breakdown Detection: Identifies and marks successful breakout and breakdown points only after a confirmed retest, ensuring more accurate signals.
Visual Markers: Uses customizable green diamonds for successful breakouts and red diamonds for successful breakdowns, allowing easy identification on the chart.
Customization Options:
Change Colors: You can personalize the color of the breakout and breakdown markers, the label text, and the lines drawn from the 9:30 am to 9:35 am window.
Adapt to Your Chart: Adjust the indicator to match your preferred charting theme, ensuring it blends seamlessly with your trading setup.
How It Works:
Plots Key Levels: Identifies the highest and lowest prices during the first 5 minutes of trading (9:30 am to 9:35 am) and plots them on the chart.
Monitors Retests: Waits for a retest of these levels before confirming a breakout or breakdown.
Labels Breakouts/Breakdowns: After a retest, successful breakouts are marked with green diamonds and "Breakout" text, while breakdowns are marked with red diamonds and "Breakdown" text.
Why Use This Indicator?
Avoid False Signals: The retest requirement helps filter out false breakouts and breakdowns, offering more reliable trading signals.
Works Across Timeframes: Suitable for both 1-minute and 5-minute charts, allowing flexibility for different trading styles.
Some what Customizable: Adjust colors to fit your charting preferences and enhance visual clarity.
Recommended Use: Combine this indicator with other technical analysis tools, such as volume, candlestick patterns, or moving averages, for more informed trading decisions.
Bullish/Bearish Engulfing (without size ratio)This TradingView script identifies bullish and bearish engulfing patterns based only on the opening and closing prices of candles, without considering their wicks or size ratios.
Bullish Engulfing:
The previous candle (A) is red (its close is lower than its open).
The current candle (B) is green or black (its close is higher than its open).
The open of the current candle (B) is lower than or equal to the close of the previous candle (A).
The close of the current candle (B) is higher than or equal to the open of the previous candle (A).
Bearish Engulfing:
The previous candle (A) is green or black (its close is higher than its open).
The current candle (B) is red (its close is lower than its open).
The open of the current candle (B) is higher than or equal to the close of the previous candle (A).
The close of the current candle (B) is lower than or equal to the open of the previous candle (A).
The script displays green upward labels when a bullish engulfing pattern is detected and red downward labels when a bearish engulfing pattern is found.
Описание на русском:
Этот скрипт для TradingView находит бычьи и медвежьи паттерны поглощения, основываясь только на ценах открытия и закрытия свечей, без учета теней или соотношения их размеров.
Бычье поглощение:
Предыдущая свеча (A) красная (ее закрытие ниже открытия).
Текущая свеча (B) черная или зеленая (ее закрытие выше открытия).
Открытие текущей свечи (B) ниже или равно закрытию предыдущей свечи (A).
Закрытие текущей свечи (B) выше или равно открытию предыдущей свечи (A).
Медвежье поглощение:
Предыдущая свеча (A) черная или зеленая (ее закрытие выше открытия).
Текущая свеча (B) красная (ее закрытие ниже открытия).
Открытие текущей свечи (B) выше или равно закрытию предыдущей свечи (A).
Закрытие текущей свечи (B) ниже или равно открытию предыдущей свечи (A).
Скрипт отображает зеленые метки вверх при обнаружении бычьего поглощения и красные метки вниз при нахождении медвежьего поглощения.
PnF Fibonacci Levels with AlertsMy Pine Script indicator, "PnF Fibonacci Levels with Alerts," overlays on a trading chart to generate alerts based on Fibonacci levels in Point and Figure (PnF) charts.
Key Features:
Inputs and Initialization:
It uses a customizable Fibonacci level (set at 0.236) and initializes variables for tracking the high and low of O and X columns.
O Column Logic:
When the current column is identified as an O column (when the close is less than the open), it calculates the Fibonacci level based on the high and low of that column, drawing a line on the chart.
Buy Alert:
If the closing price of the previous bar is above the Fibonacci level of the O column, a buy alert is triggered.
X Column Logic:
If the current column is an X column and the close is above the previous O column's low, it captures the current high and low, calculates the Fibonacci level, and draws it on the chart.
Sell Alert:
A sell alert is triggered if the closing price of the X column is at or below the specified Fibonacci level.
This indicator aids traders by highlighting critical Fibonacci levels and providing timely alerts for potential buy and sell opportunities.
PnF Bullish & Bearish Trend Line Indicator with Proximity AlertThis Pine Script indicator, "PnF Bullish and Bearish Trend line Proximity Alert," overlays on a trading chart to monitor and alert users about interactions with bullish and bearish trend lines derived from Point and Figure (PnF) charting.
Key Features:
Inputs: Users can set parameters such as box size, bullish and bearish angles (in degrees), and a proximity threshold for detecting touches.
Slope Calculation: The script calculates the slopes for bullish and bearish trendlines using the tangent of the specified angles.
Trendline Management:
It initializes and updates trend lines based on price interactions, adjusting their starting points and positions as conditions change.
Proximity Detection: The indicator checks if the current price is close enough to the trend lines and sets conditions for alerts.
Alerts: Users receive alerts when both trend lines are touched, enhancing decision-making for trading strategies.
Visual Feedback: It highlights areas where both trend lines are touched and plots the trend lines in distinct colors for clarity.
This indicator provides an effective way to track key price levels and potential trend reversals in the market.
Bullish On Neck Candlestick patternExplanation:
1. Bullish Large Candle: The first candle is defined as bullish, where the closing price is much higher than the opening price. It also needs to have a large body (at least 60% of the total candle height).
2. Small Bearish Candle: The second candle is bearish and closes near the high of the previous bullish candle, with a relatively small body.
3. Bullish On Neck Detection: The script looks for this pattern where the bullish large candle is followed by a smaller bearish candle that closes near the first candle's high, indicating potential for a bullish breakout.
4. Plot: When the pattern is detected, the script places a green triangle above the bar to signal the bullish on neck pattern.
Prometheus Topological Persistent EntropyPersistence Entropy falls under the branch of math topology. Topology is a study of shapes as they twist and contort. It can be useful in the context of markets to determine how volatile they may be and different from the past.
The key idea is to create a persistence diagram from these log return segments. The persistence diagram tracks the "birth" and "death" of price features:
A birth occurs when a new price pattern or feature emerges in the data.
A death occurs when that pattern disappears.
By comparing prices within each segment, the script tracks how long specific price features persist before they die out. The lifetime of each feature (difference between death and birth) represents how robust or fleeting the pattern is. Persistent price features tend to reflect stable trends, while shorter-lived features indicate volatility.
Entropy Calculation: The lifetimes of these patterns are then used to compute the entropy of the system. Entropy, in this case, measures the amount of disorder or randomness in the price movements. The more varied the lifetimes, the higher the entropy, indicating a more volatile market. If the price patterns exhibit longer, more consistent lifetimes, the entropy is lower, signaling a more stable market.
Calculation:
We start by getting log returns for a user defined look back value. In the compute_persistent_entropy function we separate the overall log returns into windows. We then compute persistence diagrams of the windows. It tracks the birth and death of price patterns to see how persistent they are. Then we calculate the entropy of the windows.
After we go through that process we get an array of entropies, we then smooth it by taking the sum of all of them and dividing it by how many we have so the indicator can function better.
// Calculate log returns
log_returns = array.new()
for i = 1 to lgr_lkb
array.push(log_returns, math.log(close / close ))
// Function to compute a simplified persistence diagram
compute_persistence_diagram(segment) =>
n = array.size(segment)
lifetimes = array.new()
for i = 0 to n - 1
for j = i + 1 to n - 1
birth = array.get(segment, i)
death = array.get(segment, j-1)
if birth != death
array.push(lifetimes, math.abs(death - birth))
lifetimes
// Function to compute entropy of a list of values
compute_entropy(values) =>
n = array.size(values)
if n == 0
0.0
else
freq_map = map.new()
total_sum = 0.0
for i = 0 to n - 1
value = array.get(values, i)
//freq_map := freq_map.get(value, 0.0) + 1
map.put(freq_map, value, value + 1)
total_sum += 1
entropy = 0.0
for in freq_map
p = count / total_sum
entropy -= p * math.log(p)
entropy
compute_persistent_entropy(log_returns, window_size) =>
n = (lgr_lkb) - (2 * window_size) + 1
entropies = array.new()
for i = 0 to n - 1
segment1 = array.new()
segment2 = array.new()
for j = 0 to window_size - 1
array.push(segment1, array.get(log_returns, i + j))
array.push(segment2, array.get(log_returns, i + window_size + j))
dgm1 = compute_persistence_diagram(segment1)
dgm2 = compute_persistence_diagram(segment2)
combined_diagram = array.concat(dgm1, dgm2)
entropy = compute_entropy(combined_diagram)
array.push(entropies, entropy)
entropies
//---------------------------------------------
//---------------PE----------------------------
//---------------------------------------------
// Calculate Persistent Entropy
entropies = compute_persistent_entropy(log_returns, window_size)
smooth_pe = array.sum(entropies) / array.size(entropies)
This image illustrates how the indicator works for traders. The purple line is the actual indicator value. The line that changes from green to red is a SMA of the indicator value, we use this to determine bullish or bearish. When the smoothed persistence entropy is above it’s SMA that signals bearishness.
The indicator tends to look prettier on higher time frames, we see NASDAQ:TSLA on a 4 hour here and below we see it on the 5 minute.
On a lower time frame it looks a little weird but still functions the same way.
Prometheus encourages users to use indicators as tools along with their own discretion. No indicator is 100% accurate. We encourage comments about requested features and criticism.
Iceberg Trade Revealer [CHE]Unveiling Iceberg Trades: A Deep Dive into Low Volatility Market Phases
Introduction
In the dynamic world of trading, hidden forces often influence market movements in ways that aren't immediately apparent. One such force is the phenomenon of iceberg trades—large orders that are concealed to prevent significant market impact. This presentation explores the concept of iceberg trades, explains why they are typically hidden during periods of low volatility, and introduces an indicator designed to reveal these elusive trades.
Agenda
1. Understanding Iceberg Trades
- Definition and Purpose
- Impact on Market Dynamics
2. The Low Volatility Concealment
- Why Low Volatility Phases?
- Strategies Behind Hiding Large Orders
3. Introducing the Iceberg Trade Revealer Indicator
- How the Indicator Works
- Key Components and Calculations
4. Demonstration and Use Cases
- Interpreting the Indicator Signals
- Practical Trading Applications
5. Conclusion
- Summarizing the Insights
- Q&A Session
1. Understanding Iceberg Trades
Definition and Purpose
- Iceberg Trades are large single orders divided into smaller lots to disguise the total order quantity.
- Traders use iceberg orders to minimize market impact and avoid unfavorable price movements.
Impact on Market Dynamics
- Concealed Volume: Iceberg orders hide true supply and demand levels.
- Price Stability: They prevent sudden spikes or drops by releasing orders gradually.
- Market Sentiment: Their presence can influence perceptions of market strength or weakness.
2. The Low Volatility Concealment
Why Low Volatility Phases?
- Less Market Attention: Low volatility periods attract fewer traders, making it easier to conceal large orders.
- Reduced Slippage: Prices are more stable, reducing the risk of executing orders at unfavorable prices.
- Strategic Advantage: Large players can accumulate or distribute positions without tipping off the market.
Strategies Behind Hiding Large Orders
- Order Splitting: Breaking down large orders into smaller pieces.
- Time Slicing: Executing orders over an extended period.
- Algorithmic Trading: Using sophisticated algorithms to optimize order execution.
3. Introducing the Iceberg Trade Revealer Indicator
How the Indicator Works
- Core Thesis: Iceberg trades can be detected by analyzing periods of unusually low volatility.
- Volatility Analysis: Uses the Average True Range (ATR) and Bollinger Bands to identify low volatility phases.
- Signal Generation: Marks periods where iceberg trades are likely occurring.
Key Components and Calculations
1. Average True Range (ATR)
- Measures market volatility over a specified period.
- Lower ATR values indicate less price movement.
2. Bollinger Bands
- Creates a volatility envelope around the ATR.
- Bands tighten during low volatility and widen during high volatility.
3. Timeframe Adjustments
- Utilizes multiple timeframes to enhance signal accuracy.
- Options for auto, multiplier, or manual timeframe selection.
4. Signal Conditions
- Iceberg Trade Detection: ATR falls below the lower Bollinger Band.
- Revealed Volatility: ATR rises above the upper Bollinger Band, indicating potential market moves after iceberg trades.
4. Demonstration and Use Cases
Interpreting the Indicator Signals
- Iceberg Trade Zones: Highlighted areas where large hidden orders are likely.
- Revealed Volatility Zones: Areas indicating the market's response to the execution of iceberg trades.
Practical Trading Applications
- Entry and Exit Points: Use signals to time trades alongside institutional activity.
- Risk Management: Adjust strategies during detected low volatility phases.
- Market Analysis: Gain insights into underlying market mechanics.
5. Conclusion
Summarizing the Insights
- Iceberg Trades play a significant role in market movements, especially when concealed during low volatility phases.
- The Iceberg Trade Revealer Indicator provides a tool to uncover these hidden activities, offering traders a strategic edge.
- Understanding and utilizing this indicator can enhance trading decisions by aligning them with the actions of major market players.
Best regards Chervolino ( Volker )
Q&A Session
- Questions and Discussions: Open the floor for any queries or further explanations.
Thank You!
By delving into the hidden aspects of market activity, traders can better navigate the complexities of financial markets. The Iceberg Trade Revealer Indicator serves as a bridge between observable market data and the concealed strategies of large institutions.
References
- Average True Range (ATR): A technical analysis indicator that measures market volatility.
- Bollinger Bands: A volatility indicator that creates a band of three lines which are plotted in relation to a security's price.
- Iceberg Orders: Large orders divided into smaller lots to hide the actual order quantity.
Note: Always consider multiple factors when making trading decisions. Indicators provide tools, but they do not guarantee results.
Educational Content Disclaimer:
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Pip's FinderPip's Finder is an indicator designed to Find
"Trend direction" and capture reliable price movements.
This is very simple and powerful tool which generate direction of price movement , this tool is based on the dynamic fibonacci retracement and extension mechansim forged from the basic idea of fibonacci concept and identifier of the trend mechansism blended in one indicator so it can give precisely accurate trend direction signals and it's easy to understand and use.
This tool is specially designed for USOIL (Crude oil WTI) and UKOIL (Brent) , In 5 Min TimeFrame.
After Asian session starts it gives signal which is approximately 300 to 500 pips ,in each signal (with accuracy of 85%+)
After European session starts it gives signal which is approximately 100 to 200 pips ,in each signal (with accuracy of 75%+)
After North American session starts it gives signal which is approximately 300 to 500 pips , in each signal (with accuracy of 85%+) , in this session it also signals for 1000 pips but it's risky to taril such a heavy price movement
How can we make our trades using this tool ?
- Signal generates as a Red Arrow above the candle which reflect downward direction and Green Arrow below the candle which reflect upward direction.
- Wait for the candle closing which ensures the signal generation.
- When next Candle breaks High or Low of the candle in which signal is generated our signal is confirmed and we are ready to capture pips as per our plan according to sessions.
(Note:If next candle after signal generator candle did not Break high or low of the signal candle we'll consider signal as False signal
For UPTREND -
Ex- If signal is generated for upward direction (Below the candle noted by green arrow) the next candle should have to Break the high of signal candle , If next candle did not break high our signal is not confirmed and we'll consider signal as false, and if price move in opposite direction and breaks the low of the signal candle we'll consider signal as False .
StopLoss should be below the candle of signal generating candle.
For DOWNTREND -
Ex- If signal is generated for Downward direction (Above the candle noted by Red arrow) the next candle should have to Break the low of signal candle , If next candle did not break low our signal is not confirmed and we'll consider signal as false , and if price move in opposite direction and breaks the high of the signal candle we'll consider signal as False.
StopLoss should be above the candle of signal generating candle.
Special Note:
If signal occur for any of the direction and in the next candle breaks high or low but in the same candle which breaks high or low again signal occured for opposite direction then we should look for SL of the previous signal candle is striked or not , if not striked then we should continue our trade until SL is not striked.
Note:
1. Price differs in brokers app ,should focus on Tradingview terminal for charts and do calculations based on this chart and signal generation.
2. Signal confirmed when the price crosses High or Low of signal generating candle .
3. Always take a look on Session wise price fluctuation for best accuracy.
4. Trade should be placed as soon as price breaks high or low.
This indicator is based on Fib and IDM so sometimes it generates false signals to eliminate these, Follow the Suggestion and Rule's you'll get best results.
Fibonacci Levels with StatsPrimary Usage:
Drawing Fibonacci Retracements
Based on the past highs and lows, Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) are calculated and displayed on the chart. The Fibonacci levels are different for positive and negative lines, respectively.
Statistical Counting Function
Records the number of times each Fibonacci level is exceeded and tracks how often price reaches that level. This data can be useful for future price forecasting.
Cueing Symbols by Pattern Matching
Symbols are added to the queue when each Fibonacci level is exceeded. Depending on whether the price is positive or negative, different symbols (1, 2, 3, etc.) are assigned, which are used to predict the next move.
Change background color
Based on the number of times the price exceeds the Fibonacci level, the background color will change to green or red. The intensity of the color changes according to the number of consecutive times the price has exceeded the Fibonacci level.
Cue Size Limitations
Past symbols are added to the queue, but a size limit is set and old symbols are deleted when the queue exceeds a certain size.
Prediction Logic
Pattern matching is used to predict the next symbol based on patterns of past symbols.
5-Minute Opening Range BreakoutThe 5-minute buy and sell indicator is designed to detect potential buy ("Long") and sell ("Short") signals based on the first 5 minutes of trading activity. Here's how it works:
5-Minute Opening Range: It tracks the high and low of the first 5-minute candle after the market opens. This range establishes key support and resistance levels.
Buy Signal ("Long"): When the price breaks above this range and retests the level, a "Long" signal is triggered, indicating a potential upward trend.
Sell Signal ("Short"): Conversely, if the price breaks below the range and retests, a "Short" signal is triggered, suggesting a potential downward trend.
Retests & Confirmations: The indicator waits for pullbacks or retests of the breakout levels to confirm the validity of the buy or sell signal, minimizing false entries.
Take Profit & Stop Loss: The indicator provides reasonable stop-loss and take-profit markers to guide you in managing risk and securing profits within the day.
This strategy is especially useful for traders looking to capture early market momentum, often seen in the first 5 to 15 minutes of trading. This indicator only works on the 1M timeframe.
More Updates soon!
Pivot-based Swing Highs and LowsRelease Notes for Pivot-based Swing Highs and Lows Indicator with HH, HL, LH, LL and Labels
Version 1.0.0
Release Date: 29th Sept 2024
Overview:
This Pine Script version 5 indicator is designed to identify and display Swing Highs and Swing Lows based on pivot points. The indicator visually marks Higher Highs (HH), Lower Highs (LH), Higher Lows (HL), and Lower Lows (LL) on the chart. The release introduces an improved visual representation with dotted lines and colored labels for easy identification of market structure, using plotshape() and line.new().
Key Features:
1. Pivot-Based Swing Identification:
The indicator uses ta.pivothigh() and ta.pivotlow() to detect significant pivot points on the chart.
The length of the pivot can be adjusted through the pivot_length parameter, allowing users to customize the sensitivity of swing identification.
2. Swing Highs and Lows with Labels:
Higher High (HH) and Lower High (LH) points are marked with green downward triangles.
Higher Low (HL) and Lower Low (LL) points are marked with red upward triangles.
The plotshape() function is used to provide clear visual markers, making it easy to spot the changes in market structure.
3. Dotted Line Visuals:
Green Dotted Lines: Connect Higher Highs (HH) and Higher Lows (HL) to their corresponding previous swings.
Red Dotted Lines: Connect Lower Highs (LH) and Lower Lows (LL) to their corresponding previous swings.
The use of color-coded dotted lines ensures better visual understanding of the trend continuation or reversal patterns.
4. Customizable Input:
The user can adjust the pivot_length parameter to fine-tune the detection of pivot highs and lows according to different timeframes or trading strategies.
Usage:
Higher High (HH): Green downward triangle, indicating a new high compared to the previous pivot high.
Lower High (LH): Green downward triangle, indicating a lower high compared to the previous pivot high.
Higher Low (HL): Red upward triangle, indicating a higher low compared to the previous pivot low.
Lower Low (LL): Red upward triangle, indicating a new lower low compared to the previous pivot low.
Dotted Lines: Connect previous swing points, helping users visualize the trend and potential market structure changes.
Improvements:
Label Substitution: In place of label.new() (which might cause issues in some environments), the indicator now uses plotshape() to provide a reliable and visually effective solution for marking swings.
Streamlined Performance: The logic for determining higher highs, lower highs, higher lows, and lower lows has been optimized for smooth performance across multiple timeframes.
Known Limitations:
No Direct Text Labels: Due to the constraints of plotshape(), text labels like "HH", "LH", "HL", and "LL" are not directly displayed. Instead, color-coded shapes are used for easy identification.
How to Use:
Apply the script to your chart via the TradingView Pine Editor.
Customize the pivot_length to suit your trading style or the timeframe you are analyzing.
Monitor the chart for marked Higher Highs, Lower Highs, Higher Lows, and Lower Lows for potential trend continuation or reversal opportunities.
Use the dotted lines to trace the evolution of market structure.
Please share your comments, thoughts. Also please follow me for more scripts in future. Mean time Happy Trading :)
Volume candle by MoondIndicator Description: Equal Volume Candle Chart
This indicator creates a real-time candlestick chart where each candle forms upon the completion of a specific volume threshold, rather than within fixed time intervals. The candles update dynamically based on the total volume traded, providing a unique perspective that incorporates market activity directly into price movements.
Key Features:
Dynamic Candles Based on Volume: Candles form when a defined lot size of volume is reached, making each candle represent consistent trading activity rather than a fixed time period.
Customizable Volume Lot Size: Users can easily adjust the volume threshold to suit different trading styles or asset classes.
Real-Time Market Reflection: The chart responds to changes in market volume, offering a clearer view of market intensity and momentum.
Concept Behind the Indicator: Traditional candlestick charts operate on time intervals, which can ignore the influence of volume in price changes. By basing the candle formation on equal volumes, this indicator integrates both price and traded volume into the visual representation, helping traders capture key shifts in market sentiment and activity that might be missed on time-based charts
New York Midnight Indicator█ OVERVIEW
This script provides a visual tool for traders to track the New York Midnight (NY Midnight), a significant time marker for those who rely on New York’s financial markets. The script calculates the exact moment of midnight in New York and places a vertical line on the chart at this time, helping traders identify when a new trading day begins according to the New York time zone. The indicator also marks the midnight point with a lime-colored downward triangle to enhance visibility on the chart. It is specifically useful for traders who want to synchronize their strategies with New York’s trading hours, especially in global markets.
The script is flexible, allowing traders to adjust the UTC offset to accommodate different time zones. This is critical for those trading in different regions but still using New York as the main time reference.
█ CONCEPTS
New York Midnight: For many traders, especially those following the Forex and US stock markets, midnight in New York signifies the start of a new trading day. This point is essential for technical analysis as it often aligns with daily opening ranges, trend shifts, and volume spikes.
UTC Offset: The script includes a user-input parameter (utcOffset) to adjust the calculated time for New York midnight, ensuring that it accounts for time zone differences. This allows it to be used effectively regardless of the user’s local time zone, offering flexibility to global traders.
█ METHODOLOGY
UTC Offset Adjustment: The script starts by asking the trader to input their UTC offset (e.g., UTC -5 for New York without daylight saving time). This offset is added to the current chart time to align it with New York’s local time.
Current Hour Calculation: Once the UTC offset is applied, the script calculates the New York Hour by taking the chart’s current hour and adjusting it with the offset. This ensures that the displayed hour matches New York’s local time, regardless of the trader's location.
Vertical Line at Midnight: When the current New York hour equals 00:00 (midnight), the script plots a black vertical line on the chart. This line serves as a visual reference for the exact moment when New York's trading day begins, allowing traders to align their strategies accordingly.
Downward Triangle Plot: In addition to the vertical line, the script also adds a lime-colored downward triangle at the same bar location to further highlight the midnight point. This is useful for traders who prefer shape markers to visualize significant time events.
█ HOW TO USE
Identifying Daily Resets: The script makes it easy for traders to track when New York’s trading day resets. This is especially useful in Forex markets, where daily cycles and time zone-based volatility play an important role in price movement and volume spikes.
Time Zone Flexibility: By adjusting the UTC offset parameter, traders across the globe can synchronize their charts with New York time. This is critical for international traders who want to execute trades based on New York market patterns but reside in different time zones.
Strategic Time Marking: The vertical line and shape markers at midnight allow traders to quickly see when a new trading day starts, helping them identify patterns like the daily range, key support/resistance levels, or even potential reversals around this time.
Session-Based Analysis: Traders who work with session-based strategies (e.g., trading the Asian, European, or US sessions) can use this marker to better time their entries or exits relative to the start of the New York session.
█ METHOD VARIANTS
This script can be modified or extended in various ways to better suit specific trading strategies:
Highlighting Other Session Starts: It could be adapted to plot lines for other key session starts (e.g., London open, Tokyo open).
Multiple Time Zones: For traders who monitor several markets, the script could be extended to display midnight markers for multiple time zones.
Custom Line Styles: Users could modify the line color, thickness, or style to better match their chart aesthetic or preferences.