Real-Time HTF Volume Footprint [BigBeluga]Real-time HTF Volume Footprint Profile is designed to provide a comprehensive view of higher timeframe volume profiles on your current chart. It overlays critical volume information from larger timeframes (like daily, weekly, or monthly) onto lower timeframe charts, helping you spot significant levels where volume is concentrated, acting as potential support or resistance.
🔵 Key Features:
HTF High and Low Zones: The indicator highlights the high and low of the chosen higher timeframe with clear zones, marking them with boxes. These zones help you see the broader market structure at a glance.
Volume Profile within HTF Range: Each higher timeframe range displays a volume profile, showing the distribution of volume at each price level. The most-traded price is highlighted in blue, known as the Point of Control (POC), indicating the price level with the highest activity.
Dynamic POC Option: Activate Dynamic POC to observe how the Point of Control shifts over time, giving insight into changing market interests and potential price direction.
Timeframe Flexibility: Select from daily, weekly, and monthly ranges (and more) to overlay their footprint profiles on your lower timeframe chart. This helps you tailor the indicator to the trading horizon that suits your strategy.
Info Table: Table shows a traders which timeframe is selected with last high and low of the selected timeframe
Visual Clarity with Custom Colors: The indicator uses subtle fills and distinct colors to ensure volume profile data integrates seamlessly into your chart without overwhelming other indicators or price data.
🔵 When to Use:
The HTF Volume Footprint Profile is essential for traders who want to bridge the gap between high-timeframe and intraday analysis. By visualizing HTF volume distribution on lower timeframes, this tool helps you:
Spot potential liquidity zones where price might react.
Identify support and resistance levels within HTF ranges.
Monitor PoC shifts that indicate changes in market behavior.
Track how current price aligns with significant volume clusters, providing a clear edge for volume-based strategies.
This indicator empowers traders to analyze lower timeframes with the context of higher timeframe volume profiles, providing a solid basis for identifying critical support and resistance levels shaped by large volume clusters. Whether you’re looking to spot liquidity zones or align your trades with broader market trends, HTF Volume Footprint Profile equips you with a strategic view.
Indicadores y estrategias
ENIGMA ENDGAME with Dynamic Trend-Based FibonacciOverview:
The *ENIGMA ENDGAME with Dynamic Trend-Based Fibonacci* indicator is designed for traders seeking precision in identifying high-probability trade opportunities based on dynamic Fibonacci retracement levels. By combining trend analysis, Fibonacci filtering, and session-based logic, this indicator provides actionable buy and sell signals with a strong foundation in technical analysis.
Features:
1. **Dynamic Trend-Based Fibonacci Levels:**
- Automatically calculates Fibonacci retracement levels based on the current market trend (uptrend or downtrend).
- Levels dynamically adjust to the latest swing high/low, providing an evolving view of key price areas.
2. **Customizable Fibonacci Levels:**
- Configure up to four Fibonacci levels (e.g., 50%, 61.8%, 72%, 99%) to tailor the indicator to your trading strategy.
- Default levels are pre-set but can be adjusted for unique market approaches.
3. **Kill Zones for Session Filtering:**
- Filters trades based on predefined trading sessions (London and US).
- Easily configurable to match your trading hours or preferences.
4. **Buy and Sell Signals:**
- **Buy Signals**: Triggered during uptrends when the price pulls back to Fibonacci support levels.
- **Sell Signals**: Triggered during downtrends when the price retraces to Fibonacci resistance levels.
- Signal shapes (green triangles for buys, red triangles for sells) make them visually clear on the chart.
5. **Customizable Historical Signals:**
- Control how many past signals are displayed to maintain a clean chart while tracking historical performance.
6. **Alerts for Trade Opportunities:**
- Alerts for buy and sell signals allow traders to stay informed even when away from the screen.
How to Use:
1. **Trend-Based Fibonacci Analysis:**
- Enable the indicator on any instrument and timeframe.
- Monitor the Fibonacci levels dynamically calculated based on the most recent market trend (uptrend/downtrend).
2. **Kill Zones for Sessions:**
- Adjust the London and US session times under the **Inputs** tab to match your trading style.
- Signals outside these sessions are filtered, reducing noise during low-liquidity periods.
3. **Fibonacci Level Configuration:**
- Modify the Fibonacci retracement levels (e.g., 50%, 61.8%, etc.) under **Inputs** to fit your specific strategy.
- Ensure levels align with your desired retracement/resistance zones for trades.
4. **Buy/Sell Signal Confirmation:**
- Look for buy signals (green triangles) during uptrends when the price retraces to dynamic Fibonacci support levels.
- Look for sell signals (red triangles) during downtrends when the price retraces to dynamic Fibonacci resistance levels.
5. Alerts:
- Configure alerts under **TradingView Alerts** to be notified of buy or sell opportunities in real time.
Inputs and Default Settings:
- **Kill Zones:**
- London Start Hour: 1 UTC
- London End Hour: 23 UTC
- US Start Hour: 8 UTC
- US End Hour: 23 UTC
- **Swing Lookback Period:** 6
- **Fibonacci Levels:**
- Level 1: 50% (default)
- Level 2: 61.8% (default)
- Level 3: 72% (default)
- Level 4: 99% (default)
- **Maximum Historical Signals:** 30
- **Lookback Periods for Confirmation:**
- Minimum: 3
- Maximum: 18
Best Practices:
- Use this indicator in combination with price action or other tools to confirm trade setups.
- Ensure your Fibonacci levels align with known key levels on higher timeframes for increased accuracy.
- Monitor session activity using the kill zones to avoid trades during low-volume periods.
Volume Delta Candles HTF [TradingFinder] LTF Volume Candles 🔵 Introduction
In financial markets, understanding the concepts of supply and demand and their impact on price movements is of paramount importance. Supply and demand, as fundamental pillars of economics, reflect the interaction between buyers and sellers.
When buyers' strength surpasses that of sellers, demand increases, and prices tend to rise. Conversely, when sellers dominate buyers, supply overtakes demand, causing prices to drop. These interactions play a crucial role in determining market trends, price reversal points, and trading decisions.
Volume Delta Candles offer traders a practical way to visualize trading activity within each candlestick. By integrating data from lower timeframes or live market feeds, these candles eliminate the need for standalone volume indicators.
They present the proportions of buying and selling volume as intuitive colored bars, making it easier to interpret market dynamics at a glance. Additionally, they encapsulate critical metrics like peak delta, lowest delta, and net delta, allowing traders to grasp the market's internal order flow with greater precision.
In financial markets, grasping the interplay between supply and demand and its influence on price movements is crucial for successful trading. These fundamental economic forces reflect the ongoing balance between buyers and sellers in the market.
When buyers exert greater strength than sellers, demand dominates, driving prices upward. Conversely, when sellers take control, supply surpasses demand, and prices decline. Understanding these dynamics is essential for identifying market trends, pinpointing reversal points, and making informed trading decisions.
Volume Delta Candles provide an innovative method for evaluating trading activity within individual candlesticks, offering a simplified view without relying on separate volume indicators. By leveraging lower timeframe or real-time data, this tool visualizes the distribution of buying and selling volumes within a candle through color-coded bars.
This visual representation enables traders to quickly assess market sentiment and understand the forces driving price action. Buyer and seller strength is a critical concept that focuses on the ratio of buying to selling volumes. This ratio not only provides insights into the market's current state but also serves as a leading indicator for detecting potential shifts in trends.
Traders often rely on volume analysis to identify significant supply and demand zones, guiding their entry and exit strategies. Delta Candles translate these complex metrics, such as Maximum Delta, Minimum Delta, and Final Delta, into an easy-to-read visual format using Japanese candlestick structures, making them an invaluable resource for analyzing order flows and market momentum.
By merging the principles of supply and demand with comprehensive volume analysis, tools like the indicator introduced here offer unparalleled clarity into market behavior. This indicator calculates the relative strength of supply and demand for each candlestick by analyzing the ratio of buyers to sellers.
🔵 How to Use
The presented indicator is a powerful tool for analyzing supply and demand strength in financial markets. It helps traders identify the strengths and weaknesses of buyers and sellers and utilize this information for better decision-making.
🟣 Analyzing the Highest Volume Trades on Candles
A unique feature of this indicator is the visualization of price levels with the highest trade volume for each candlestick. These levels are marked as black lines on the candles, indicating prices where most trades occurred. This information is invaluable for identifying key supply and demand zones, which often act as support or resistance levels.
🟣 Trend Confirmation
The indicator enables traders to confirm bullish or bearish trends by observing changes in buyer and seller strength. When buyer strength increases and demand surpasses supply, the likelihood of a bullish trend continuation grows. Conversely, decreasing buyer strength and increasing seller strength may signal a potential bearish trend reversal.
🟣 Adjusting Timeframes and Calculation Methods
Users can customize the indicator's candlestick timeframe to align with their trading strategy. Additionally, they can switch between moving average and current candle modes to achieve more precise market analysis.
This indicator, with its accurate and visual data display, is a practical and reliable tool for market analysts and traders. Using it can help traders make better decisions and identify optimal entry and exit points.
🔵 Settings
Lower Time Frame Volume : This setting determines which timeframe the indicator should use to identify the price levels with the highest trade volume. These levels, displayed as black lines on the candlesticks, indicate prices where the most trades occurred.
It is recommended that users align this timeframe with their primary chart’s timeframe.
As a general rule :
If the main chart’s timeframe is low (e.g., 1-minute or 5-minute), it is better to keep this setting at a similarly low timeframe.
As the main chart’s timeframe increases (e.g., daily or weekly), it is advisable to set this parameter to a higher timeframe for more aligned data analysis.
Cumulative Mode :
Current Candle : Strength is calculated only for the current candlestick.
EMA (Exponential Moving Average) : The strength is calculated using an exponential moving average, suitable for identifying longer-term trends.
Calculation Period : The default period for the exponential moving average (EMA) is set to 21. Users can modify this value for more precise analysis based on their specific requirements.
Ultra Data : This option enables users to view more detailed data from various market sources, such as Forex, Crypto, or Stocks. When activated, the indicator aggregates and displays volume data from multiple sources.
🟣 Table Settings
Show Info Table : This option determines whether the information table is displayed on the chart. When enabled, the table appears in a corner of the chart and provides details about the strength of buyers and sellers.
Table Size : Users can adjust the size of the text within the table to improve readability.
Table Position : This setting defines the table’s placement on the chart.
🔵 Conclusion
The indicator introduced in this article is designed as an advanced tool for analyzing supply and demand dynamics in financial markets. By leveraging buyer and seller strength ratios and visually highlighting price levels with the highest trade volume, it aids traders in identifying key market zones.
Key features, such as adjustable analysis timeframes, customizable calculation methods, and precise volume data display, allow users to tailor their analyses to market conditions.
This indicator is invaluable for analyzing support and resistance levels derived from trade volumes, enabling traders to make more accurate decisions about entering or exiting trades.
By utilizing real market data and displaying the highest trade volume lines directly on the chart, it provides a precise perspective on market behavior. These features make it suitable for both novice and professional traders aiming to enhance their analysis and trading strategies.
With this indicator, traders can gain a better understanding of supply and demand dynamics and operate more intelligently in financial markets. By combining volume data with visual analysis, this tool provides a solid foundation for effective decision-making and improved trading performance. Choosing this indicator is a significant step toward refining analysis and achieving success in complex financial markets.
Intrabar DistributionThe Intrabar Distribution publication is an extension of the Intrabar BoxPlot publication. Besides a boxplot, it showcases price and volume distribution using intrabar Lower Timeframe (LTF) values (close) which can be displayed on the chart or in a separate pane.
🔶 USAGE
Intrabar Distribution has several features, users can display:
Recent candle for comparison against the other features
Boxplot of recent candle
Price distribution (optionally displayed as a curve)
Volume distribution
🔹 Recent candle / Boxplot
The middle 50% intrabar close values (Interquartile range, or IQR) are shown as a box, where the upper limit is percentile 75 (p75), and the lower limit is percentile 25 (p25). The dashed lines show the addition/subtraction of 1.5*IQR. All values out of range are considered outliers. They are displayed as white dots within the IQR*1.5 range or white X's when beyond the IQR*3 range (extreme outliers).
By showing the middle 50% intrabar values through a box, we can more easily see where the intrabar activity is mainly situated.
Note in the example above an upward-directed candle with a negative volume delta, displayed as a red box and dot (see further).
As seen in the following example, compared against the recent candle (grey candle at the left), most of the intrabar activity lies just beneath the opening price.
Note that results will be more accurate when more data is available, which can be done by making the difference between the current timeframe and the intrabar timeframe large enough.
🔹 Price / Volume distribution
The price and volume distribution can be helpful for highlighting areas of interest.
Here, we can see two areas where intrabar closing prices are mainly positioned.
The following example shows three successive bars. The recent bar is displayed on the left side, together with the volume distribution. The boxplot and price distribution are displayed on the right.
You can see the difference between volume and price distribution.
At the first bar, most price activity is at the top, while most of the volume was generated at the bottom; in other words, the price got briefly in the bottom region, with high volume before it returned.
At the second bar, price and volume are relatively equally distributed, which fits for indecisiveness.
The third bar shows more volume at a higher region; most intrabar closing prices are above the closing price.
Following example shows the same with 'Curve shaped' enabled (Settings: 'Price Distribution')
When 'Curve shaped' is enabled, lines/labels are shown with the standard deviation distance.
A blue 'guide line' can be enabled for easier interpretation.
🔹 Volume Delta
When there is a discrepancy between the delta volume and direction of the candle, this will be displayed as follows:
Red candle: when the sum of the volume of green intrabars is higher than the sum of the volume of red intrabars, the 'mean dot' will be coloured green.
Green candle: when the sum of the volume of red intrabars is higher than the sum of the volume of green intrabars, the 'mean dot' will be coloured red.
🔶 DETAILS
The intrabar values are sorted and split in parts/sections. The number of values in each section is displayed as a white line
The same principle applies to volume distribution, where the sum of volume per section is displayed as an orange area.
The boxplot displays several price values
Last close price
Highest / lowest intrabar close price
Median
p25 / p75
🔹 LTF settings
When 'Auto' is enabled (Settings, LTF), the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.
Examples with current Daily TF (when Premium is enabled):
500 : 3 minute LTF
1500 (default): 1 minute LTF
5000: 30 seconds LTF (1 minute if Premium is disabled)
🔶 SETTINGS
Location: Chart / Pane (when pane is opted, move the indicator to a separate pane as well)
Parts: divides the intrabar close values into parts/sections
Offset: offsets every drawing at once
Width: width of drawings, only applicable on "location: chart"
Label size: size of price labels
🔹 LTF
LTF: LTF setting
Auto + multiple: Adjusts the initial set LTF
Premium: Enable when your TradingView plan is Premium or higher
🔹 Current Bar
Display toggle + color setting
Offset: offsets only the 'Current Bar' drawing
🔹 Intrabar Boxplot
Display toggle + Colors, dependable on different circumstances.
Up: Price goes up, with more bullish than bearish intrabar volume.
Up-: Price goes up, with more bearish than bullish intrabar volume.
Down: Price goes down, with more bearish than bullish intrabar volume.
Down+: Price goes down, with more bullish than bearish intrabar volume.
Offset: offsets only the 'Boxplot' drawing
🔹 Price distribution
Display toggle + Color.
Curve Shaped
Guide Lines: Display 2 blue lines
Display Price: Show price of 'x' standard deviation
Offset: offsets only the 'Price distribution' drawing
Label size: size of price labels (standard deviation)
🔹 Volume distribution
Display toggle + Color.
Offset: offsets only the 'Volume distribution' drawing
🔹 Table
Show TF: Show intrabar Timeframe.
Textcolor
Size Table: Text Size
RDW Pivot DetectorThe RDW Pivot Detector is a versatile Pine Script indicator designed to identify and visualize pivot points in price action, enhancing traders' ability to spot potential reversals and continuation zones. This script includes dynamic support and resistance levels, giving traders a clearer understanding of market structure and trends.
Key Features:
Pivot Point Detection:
Identifies both regular and missed pivot points (highs and lows).
Displays labels for pivot highs (▼) and pivot lows (▲) with customizable colors and tooltips.
Missed pivots are marked with 👻 symbols for better clarity.
Dynamic Support & Resistance:
Tracks support and resistance levels using the lowest low and highest high within a user-defined lookback period.
Customizable Visualization:
Dashed lines for missed pivots, and solid lines for valid pivots.
Custom color options for both regular and missed pivots.
RS Rating (Relative Strength Filter):
Integrates a dummy RS rating to highlight buy signals based on user-defined thresholds.
How to Use:
Add to Chart:
Open TradingView and apply the script to your desired asset chart.
Setup Options:
Pivot Length: Adjust the sensitivity of pivot detection.
Display Preferences:
Toggle regular (▼, ▲) or missed (👻) pivots using the options in the settings menu.
Colors: Customize pivot label and line colors to suit your charting preferences.
Dynamic Levels:
Enable the dynamic support and resistance to monitor key price levels and adjust the "Lookback Period" to align with your trading strategy.
RS Rating Integration:
Use the RS rating filter for buy signal generation. Adjust the threshold (default is 40) to match your criteria for identifying strong stocks.
Interpret Signals:
Buy Signal: Triggered when RS Rating exceeds the user-defined threshold. Combine this with identified pivot lows (▲) for potential entry zones.
Sell Signal: Look for pivot highs (▼) near resistance levels to anticipate potential selling opportunities.
Recommendations:
Use the RDW Pivot Detector alongside other technical indicators for confirmation, such as moving averages or oscillators.
Test the settings on multiple timeframes and markets to find optimal parameters that align with your trading strategy.
Combine missed pivots and dynamic levels for trend-following or reversal strategies.
This script is a powerful tool for identifying key market levels and can be customized to fit any trading style!
Multiple Swing High/Low with SLExplanation:
Swing Highs and Lows:
The script detects swing highs and swing lows using ta.pivothigh() and ta.pivotlow() on a 3-minute basis.
Each swing high is drawn with a green line, and each swing low is drawn with a red line.
Stop-Loss (SL) Lines:
For each swing high, a stop-loss line is drawn 15 points below the swing high.
For each swing low, a stop-loss line is drawn 15 points above the swing low.
The SL line for swing highs is drawn in red, and the SL line for swing lows is drawn in blue.
Labels for Swing High/Low and SL:
Labels with text like "Swing High" or "Swing Low" are added at the swing points, and SL labels are added at the stop-loss levels.
These labels can be toggled on/off using the showSwingTags input.
Line Extension:
The line.set_x2() function ensures that the swing lines and SL lines are extended to the current bar as price moves.
Key Changes:
Removed Arrays: Instead of using arrays to store lines and labels, we now handle each line and label individually. This avoids the issue where complex types (line and label) were being stored in arrays, which Pine Script doesn't support directly.
Dynamic Creation: New lines and labels are dynamically created as new swings occur, and they stay on the chart until the script is removed or the chart is reloaded.
TearRepresentative's Rule-Based Dip Buying Strategy Rule-Based Dip Buying Strategy Indicator
This TradingView indicator, inspired by TearRepresentative [ , is a refined tool designed to assist traders in implementing a rule-based dip buying strategy. The indicator automates the identification of optimal buy and sell points, helping traders stay disciplined and minimize emotional biases. It is tailored to index trading, specifically leveraged ETFs like SPXL, to capture opportunities in market pullbacks and recoveries.
Key Features
Dynamic Buy Levels:
Tracks the local high over a customizable lookback period and calculates three buy levels based on percentage drops from the high:
Buy Level 1: First entry point (e.g., 15% drop).
Buy Level 2: Second entry point (e.g., additional 10% drop).
Buy Level 3: Third entry point (e.g., additional 7% drop).
Average Price Tracking:
Dynamically calculates the average price for entered positions when multiple buy levels are triggered.
Sell Level:
Computes a take-profit level (e.g., 20% above the average price) to automate profit-taking when the market rebounds.
Signal Visualization:
Buy Signals: Displayed as green triangles at each buy level.
Sell Signals: Displayed as red triangles at the sell level.
Alerts:
Configurable alerts notify traders when buy or sell signals are triggered, ensuring no opportunity is missed.
Visual Aids:
Semi-transparent and dynamic lines represent buy and sell levels for clear visualization.
Labels provide additional clarity for active levels, helping traders quickly identify actionable signals.
How It Works
The indicator analyzes market movements to identify dips based on predefined thresholds.
Buy signals are triggered when the market price reaches specified levels below the local high.
Once a position is taken, the indicator dynamically adjusts the average entry price and calculates the corresponding sell level.
A sell signal is generated when the market price rises above the calculated take-profit level.
Why Use This Indicator?
Discipline: Automates decision-making, removing emotional factors from trading.
Clarity: Provides clear entry and exit points to simplify complex market dynamics.
Versatility: Suitable for all market conditions, especially during pullbacks and rebounds.
Customization: Allows traders to tailor parameters to their preferred trading style and risk tolerance.
Acknowledgment
This indicator is based on the strategy and insights provided by TearRepresentative, whose expertise in rule-based trading has inspired countless traders. TearRepresentative's approach emphasizes simplicity, reliability, and consistency, offering a robust framework for long-term success.
Intrabar BoxPlotThe Intrabar BoxPlot publication highlights an uncommon technique by displaying statistical intrabar Lower Timeframe (LTF) values on the chart.
🔶 USAGE
🔹 Middle 50% Boxes
By showing the middle 50% intrabar values through a box, we can more easily see where the intrabar activity is mainly situated.
The middle 50% intrabar values are referred to from here on as Interquartile range (IQR).
In this example, the successive IQRs form a channel where the price eventually breaks out.
Disproportionately distributed values can give insights which can be used to find potential support/resistance areas.
IQR gaps can give valuable information as well. Potentially, the price can return to these gaps.
Seeing the IQR areas against regular candles gives an alternative image of the underlying price movements.
🔹 Highest volume Price level
The script displays the price level with the highest volume situated, dependable on the user's source setting. Setting the source at 'close' will only display intrabar close values; the same goes for high, low, ...
As seen in the above example, the volume levels can aid in finding support/resistance.
🔹 Median
The location of the median off all intrabar values is displayed as a coloured dot: green when the close price is higher than the opening price and red if otherwise. The median can give valuable insights into price movements.
🔹 Outliers
Medium (white dots) and extreme (white X) outliers, in combination with the IQR box, can help identify potential areas of interest.
🔹 Volume Delta
When there is a discrepancy between the delta volume and direction of the candle, this will be displayed as follows:
Green candle: when the sum of the volume of red intrabars is higher than the sum of the volume of green intrabars, the candle will be coloured orange.
Red candle: when the sum of the volume of green intrabars is higher than the sum of the volume of red intrabars, the candle will be coloured blue.
🔹 Highlight Boxplot only
Probably the easiest way to display boxplot only is by changing the Bar's style to Bars .
🔶 DETAILS
All intrabar values (Lower TimeFrame - LTF) are sorted and evaluated. Values can be close , high , low , ... by selecting this in Settings ( source ).
The middle 50% of all values are displayed as a box; this contains the values between percentile 25 (p25) and percentile 75 (p75). The value of percentile rank 75 means 75% of all values are lower. The value of percentile rank 25 means 25% of all values are lower, or 75% is higher.
The difference between p75 and p25 is also known as Interquartile range (IQR)
IQR is used to check for outliers.
Wiki: Boxplot , Interquartile range
Extreme high: maximum value, higher than p75 + IQR*3
Max outlier high: maximum value, higher than p75 + IQR*1.5 but lower than p75 + IQR*3
Max: maximum value, lower than p75 + IQR*1.5
Min: minimum value, higher than p25 - IQR*1.5
Min outlier low: minimum value, lower than p25 - IQR*1.5 but higher than p25 - IQR*3
Extreme low: minimum value, lower than p25 - IQR*3
Max and min must not be interpreted with the current candle high/low.
🔹 Example: Length of chart-puppets
The following example can make it easier to digest. Forty "chart-puppets" are sorted by their length.
The p25 value is 97
The p50 value is 120
The p75 value is 149
75% of all "chart-puppets" are smaller than p75, and 25% is larger than p75.
50% of all "chart-puppets" are smaller than p50, and 50% is larger than p50 (= median).
25% of all "chart-puppets" are smaller than p25, and 75% is larger than p25.
IQR = 149 - 97 = 52
Extreme outlier limit max: p75 + IQR*3 = 149 + 52*3 = 305
Mild outlier limit max: p75 + IQR*1.5 = 149 + 52*1.5 = 227
Mild outlier limit min: p25 - IQR*1.5 = 97 - 52*1.5 = 19
Extreme outlier limit min: p25 - IQR*3 = 97 - 52*3 = -59
In this example there are no outliers to be found, all values are located between p25 - IQR*1.5 (19) and p75 + IQR*1.5. (227)
🔹 Source settings
Note that results are dependable on the chosen source (settings). When, for example, close is chosen as the source, only intrabar close prices are included. This means a low or high can stretch further then the min or max.
Here we can see different results with different source settings
🔹 LTF settings
When 'Auto' is enabled (Settings, LTF), the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.
Examples with current Daily TF (when Premium is enabled):
500 : 3 minute LTF
1500 (default): 1 minute LTF
5000: 30 seconds LTF (1 minute if Premium is disabled)
🔶 SETTINGS
Source: Set source at close, high, low,...
🔹 LTF
LTF: LTF setting
Auto + multiple: Adjusts the initial set LTF
Premium: Enable when your TradingView plan is Premium or higher
🔹 Intrabar Delta : Colors, dependable on different circumstances.
Up: Price goes up, with more bullish than bearish intrabar volume.
Up-: Price goes up, with more bearish than bullish intrabar volume.
Down: Price goes down, with more bearish than bullish intrabar volume.
Down+: Price goes down, with more bullish than bearish intrabar volume.
🔹 Table
Show table: Show details at the top right corner
Show TF: Show LTF at the bottom right corner
Text color/table size
See DETAILS for more information
Simple y bien// © GainzAlgo
//@version=5
indicator('GainzAlgo Pro', overlay=true, max_labels_count=500)
candle_stability_index_param = input.float(0.5, 'Candle Stability Index', 0, 1, step=0.1, group='Technical', tooltip='Candle Stability Index measures the ratio between the body and the wicks of a candle. Higher - more stable.')
rsi_index_param = input.int(50, 'RSI Index', 0, 100, group='Technical', tooltip='RSI Index measures how overbought/oversold is the market. Higher - more overbought/oversold.')
candle_delta_length_param = input.int(5, 'Candle Delta Length', 3, group='Technical', tooltip='Candle Delta Length measures the period over how many candles the price increased/decreased. Higher - longer period.')
disable_repeating_signals_param = input.bool(false, 'Disable Repeating Signals', group='Technical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('normal', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
bull = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
else if label_style == 'triangle'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
last_signal := 'buy'
if bear and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
last_signal := 'sell'
alertcondition(bull, 'BUY Signals', 'New signal: BUY')
alertcondition(bear, 'SELL Signals', 'New signal: SELL')
TS Aggregated Median Absolute DeviationTS Aggregated Median Absolute Deviation (MAD) Indicator Explanation
Overview
The TS Aggregated Median Absolute Deviation (MAD) is a powerful indicator designed for traders looking for momentum-based strategies. By aggregating the Median Absolute Deviation (MAD) across multiple timeframes, it provides a comprehensive view of market dynamics. This indicator helps identify potential reversal points, overbought/oversold conditions, and general market trends by leveraging the concept of MAD, which measures price dispersion from the median.
Signal Generation:
Long Signal: Triggered when the price moves above the aggregated upper band
Short Signal: Triggered when the price moves below the aggregated red band
Alerts:
Real-time alerts are integrated to notify the user of long or short signals when confirmed:
Long Signal Alert: "TS MAD Flipped ⬆LONG⬆"
Short Signal Alert: "TS MAD Flipped ⬇Short⬇"
Optimization:
Adjust thresholds, MAD lengths, and multipliers for each timeframe to suit the specific asset and market conditions.
Experiment with enabling/disabling MAD components to focus on particular timeframes.
Visible and Anchored OTE chart [SYNC & TRADE]Thanks for the start @twingall
Visible and Anchored OTE chart
Indicator for visualizing price levels and optimal trading zones (OTE - Optimal Trading Entry) using Fibonacci levels.
Main features
Visualization of price ranges using two OTE zones:
OTE 70% (79-62 Fibonacci levels)
OTE 30% (21-38 Fibonacci levels)
Setting up time periods:
Ability to use a custom date range
Option to work with a higher time frame
Flexible display settings:
Choose between using candle bodies or the full range for binding
Customizable appearance of OTE boxes
Customizable text labels
Additional levels:
Middle line (50.5%)
Optional levels of 29.5%, 70.5% and 88%
Customizable Fibonacci extensions
Indicator settings
Main parameters
Use Custom Dates - enable a custom date range
Start Date/End Date - set a time range
Use Higher Timeframe - use a higher time frame
Higher Timeframe - select a higher timeframe
Setting up OTE zones
Show Fib Box - displaying OTE zones
Enable Fib Box 79-62 - enabling OTE zone 70%
Enable Fib Box 21-38 - enabling OTE zone 30%
Show Text - displaying text labels in zones
Visual design
Text Size - text size (tiny/small/medium/large)
Text Color - text color
Text Alignment - text alignment
Line Thickness - line thickness (1-4)
Line Style - line style (Solid/Dashed/Dotted)
Fibonacci levels
High/Low Lines - displaying extreme levels
Midline - displaying the middle line (50.5%)
Show 29.5 Line - additional level 29.5%
Show 70.5 Line - additional level 70.5%
Show 88 Line - additional level 88%
Extensions Fibonacci
There are 6 customizable extension levels available:
Ext#1 (default 1.0)
Ext#2 (default 1.27)
Ext#3 (default 1.62)
Ext#4 (default 2.0)
Ext#5 (default 2.62)
Ext#6 (default 3.62)
For each level, you can configure:
On/Off
Color
Meaning
Alerts
The indicator provides the following types of alerts:
Entering/Exiting OTE Zones:
Entering 70% OTE Zone
Exiting 70% OTE Zone
Entering 30% OTE Zone
Exiting 30% OTE Zone
Crossing Additional Levels:
Crossing 29.5% Level
Crossing 70.5% Level
Crossing 88% Level
Reaching Extension Levels Fibonacci:
Alerts for each configured extension level
Support for both positive and negative extensions
Usage
Add the indicator to the chart
Configure the required display parameters
Set alerts if necessary
Use OTE zones to identify potential entry points into the market
Notes
The indicator automatically updates when the visible area of the chart changes
When using a custom date range, make sure the selected period contains data
For correct operation with a higher time frame, make sure that historical data is available
Visible and Anchored OTE chart
Индикатор для визуализации ценовых уровней и зон оптимальной торговли (OTE - Optimal Trading Entry) с использованием уровней Фибоначчи.
Основные возможности
Визуализация ценовых диапазонов с помощью двух OTE зон:
OTE 70% (79-62 уровни Фибоначчи)
OTE 30% (21-38 уровни Фибоначчи)
Настройка временных периодов:
Возможность использования пользовательского диапазона дат
Опция работы с высшим таймфреймом
Гибкая настройка отображения:
Выбор между использованием тел свечей или полного диапазона для привязки
Настраиваемый внешний вид боксов OTE
Настраиваемые текстовые метки
Дополнительные уровни:
Средняя линия (50.5%)
Опциональные уровни 29.5%, 70.5% и 88%
Настраиваемые расширения Фибоначчи
Настройка индикатора
Основные параметры
Use Custom Dates - включение пользовательского диапазона дат
Start Date/End Date - установка временного диапазона
Use Higher Timeframe - использование высшего таймфрейма
Higher Timeframe - выбор высшего таймфрейма
Настройка OTE зон
Show Fib Box - отображение зон OTE
Enable Fib Box 79-62 - включение зоны OTE 70%
Enable Fib Box 21-38 - включение зоны OTE 30%
Show Text - отображение текстовых меток в зонах
Визуальное оформление
Text Size - размер текста (tiny/small/medium/large)
Text Color - цвет текста
Text Alignment - выравнивание текста
Line Thickness - толщина линий (1-4)
Line Style - стиль линий (Solid/Dashed/Dotted)
Уровни Фибоначчи
High/Low Lines - отображение крайних уровней
Midline - отображение средней линии (50.5%)
Show 29.5 Line - дополнительный уровень 29.5%
Show 70.5 Line - дополнительный уровень 70.5%
Show 88 Line - дополнительный уровень 88%
Расширения Фибоначчи
Доступно 6 настраиваемых уровней расширения:
Ext#1 (по умолчанию 1.0)
Ext#2 (по умолчанию 1.27)
Ext#3 (по умолчанию 1.62)
Ext#4 (по умолчанию 2.0)
Ext#5 (по умолчанию 2.62)
Ext#6 (по умолчанию 3.62)
Для каждого уровня можно настроить:
Включение/выключение
Цвет
Значение
Оповещения
Индикатор предоставляет следующие типы оповещений:
Вход/выход из зон OTE:
Вход в зону OTE 70%
Выход из зоны OTE 70%
Вход в зону OTE 30%
Выход из зоны OTE 30%
Пересечение дополнительных уровней:
Пересечение уровня 29.5%
Пересечение уровня 70.5%
Пересечение уровня 88%
Достижение уровней расширения Фибоначчи:
Оповещения для каждого настроенного уровня расширения
Поддержка как положительных, так и отрицательных расширений
Использование
Добавьте индикатор на график
Настройте необходимые параметры отображения
При необходимости установите оповещения
Используйте зоны OTE для определения потенциальных точек входа в рынок
Примечания
Индикатор автоматически обновляется при изменении видимой области графика
При использовании пользовательского диапазона дат убедитесь, что выбранный период содержит данные
Для корректной работы с высшим таймфреймом убедитесь в доступности исторических данных
XSRM Support and Resistant LevelXSRMulti is an advanced indicator designed to help traders analyze various price levels and identify potential trading opportunities. This indicator primarily focuses on tracking price movements based on high, low, and mid levels. Users have the flexibility to analyze these levels across different timeframes and price sources (open, close, high, low).
Features and Settings:
General Settings:
Bar Back: Determines how many bars back in time the price movements should be analyzed.
Offset: Defines the offset value used in calculations.
H/L Depth: The depth used for analyzing the highest and lowest price levels.
Mid: The ratio used to calculate the mid-level between the highest and lowest prices.
Optional Settings:
Source: Defines the price source used for calculating high and low levels (open, close, average, etc.).
Use HeikinAshi for range: Option to use HeikinAshi candles for price range analysis.
Logarithmic: Option to apply logarithmic calculations to price levels.
Break at first swing: Determines whether to break at the first price swing.
Visual Features:
Colors: The user can choose three different colors for the analyzed levels.
Extend left/right: Allows the extension of analyzed levels to the past or future.
How It Works:
XSRMulti operates based on three main analysis zones:
Zone 1: The highest, lowest, and mid levels are calculated and plotted.
Zone 2: A second analysis zone is created with similar calculations.
Zone 3: A third analysis zone is formed using the same methods.
Each zone is based on specific bar analysis, which determines the price levels. These levels can be used to make trading decisions. The user can also choose to extend the levels further to the right or left.
Table Information:
The indicator includes a table displaying daily price rate of change. This provides the user with insights into daily price movements.
Usage:
XSRMulti is a powerful analysis tool for traders. It is particularly useful for short-term traders, as it provides detailed insights into price movements. Users can make trading decisions based on the identified levels, especially when the price reaches certain thresholds.
Note:
The indicator uses current timeframe price data for calculations.
HeikinAshi-based analysis presents smoother price movements, making trend-following easier.
Divine Christmas Tree [Daveatt]🎄 Divine Christmas Tree - Because Even Your Charts Deserve Holiday FOMO! 🎅
Ever felt like your trading charts were missing that special holiday spirit? Tired of staring at boring candlesticks while everyone else is decorating their houses? Well, hold onto your eggnog because this indicator is about to turn your TradingView into a festive party! 🎉
Introducing the Divine Christmas Tree - the only technical indicator that makes your losses look festive! This isn't your grandmother's Christmas tree... it's a high-tech, market-aware celebration that would make Wall Street jealous.
🌟 What's Inside This Gift Box:
- A tree that changes color based on price action (because even Christmas trees need to respect the 200 SMA!)
- Ornaments that dance around like your portfolio after a Fed announcement
- A Santa who's definitely not checking if your trades were naughty or nice
- Presents under the tree (sorry, they don't contain trading tips)
- Random ornament placement that's more unpredictable than crypto prices
The best part? The ornaments refresh constantly, giving you something fun to watch while you're waiting for that breakout that'll never come! 😅
WARNING: This indicator may cause:
- Uncontrollable holiday cheer
- Sudden urges to buy Santa Coin
- Confusion among serious traders
- Desperate attempts to explain to your spouse why you're watching a Christmas tree on your trading screen
Perfect for:
- Traders who need emotional support during December
- Anyone who wants to pretend they're working while actually watching Christmas decorations
- People who believe Santa Claus is the ultimate swing trader
Remember: Just because your portfolio is in red doesn't mean your Christmas tree has to be! 🎄
Not financial advice, but definitely festive advice! 🎅
Volume Profile / Fixed Range Strategy with RSI SMAThis strategy utilizes the volume profile of the past x number of bars.
The idea is that the majority of the time price is ranging, during this time the volume profile shows where the vast majority of trading occurs. The assumption is if price exceeds the 1st STD either upwards or downwards there is a good likelihood of a break to the upside.
This is then coupled with the RSI for confluence, once the RSI breaks above the mid-point(50) this indicates strong upward momentum.
Thus the system will go long if: Price is above 1st STD of the Volume Profile and RSI > 50
The system will go to cash if: Price has closed below the upper bound and the RSI < 50
Directional Volume IndexDirectional Volume Index (DVI) (buying/selling pressure)
This index is adapted from the Directional Movement Index (DMI), but based on volume instead of price movements. The idea is to detect building directional volume indicating a growing amount of orders that will eventually cause the price to follow. (DVI is not displayed by default)
The rough algorithm for the Positive Directional Volume Index (green bar):
calculate the delta to the previous green bar's volume
if the delta is positive (growing buying pressure) add it to an SMA, else add 0 (also for red bars)
divide these average deltas by the average volume
the result is the Positive Directional Volume Index (DVI+) (vice versa for DVI-)
Differential Directional Volume Index (DDVI) (relative pressure)
Creating the difference of both Directional Volume Indexes (DVI+ - DVI-) creates the Differential Directional Volume Index (DDVI) with rising values indicating a growing buying pressure, falling values a growing selling pressure. (DDVI is displayed by default, smoothed by a custom moving average)
Average Directional Volume Index (ADVX) (pressure strength)
Putting the relative pressure (DDVI) in relation to the total pressure (DVI+ + DVI-) we can determine the strength and duration of the currently building volume change / trend. For the DMI/ADX usually 20 is an indicator for a strong trend, values above 50 suggesting exhaustion and approaching reversals. (ADVX is not displayed by default, smoothed by a custom moving average)
Divergences of the Differential Directional Volume Index (DDVI) (imbalances)
By detecting divergences we can detect situations where e.g. bullish volume starts to build while price is in a downtrend, suggesting that there is growing buying pressure indicating an imminent bullish pullback/order block or reversal. (strong and hidden divergences are displayed by default)
Divergences Overview:
strong bull: higher lows on volume, lower lows on price
medium bull: higher lows on volume, equal lows on price
weak bull: equal lows on volume, lower lows on price
hidden bull: lower lows on volume, higher lows on price
strong bear: lower highs on volume, higher highs on price
medium bear: lower highs on volume, equal highs on price
weak bear: equal highs on volume, higher highs on price
hidden bear: higher highs on volume, lower highs on price
DDVI Bands (dynamic overbought/oversold levels)
Using Bollinger Bands with DDVI as source we receive an averaged relative pressure with stdev band offsets. This can be used as dynamic overbought/oversold levels indicating reversals on sharp crossovers.
Alerts
As of now there are no alerts built in, but all internal data is exposed via plot and plotshape functions, so it can be used for custom crossover conditions in the alert dialog. This is still a personal research project, so if you find good setups, please let me know.
Buy/Sell Side Liquidity//@version=5
indicator("Buy/Sell Side Liquidity", overlay=true)
// Parámetros
lookback_high = input.int(20, title="Buscar Máximos (Buy Side)", minval=1)
lookback_low = input.int(20, title="Buscar Mínimos (Sell Side)", minval=1)
show_labels = input.bool(true, title="Mostrar Etiquetas")
// Detectar máximos y mínimos recientes
highest_price = ta.highest(high, lookback_high)
lowest_price = ta.lowest(low, lookback_low)
// Detectar barras donde aparecen los máximos y mínimos
high_bar = ta.highestbars(high, lookback_high)
low_bar = ta.lowestbars(low, lookback_low)
// Dibujar líneas en las zonas de Buy/Sell Side Liquidity
bsl_line = line.new(x1=bar_index - lookback_high, y1=highest_price, x2=bar_index, y2=highest_price, color=color.new(color.blue, 70), width=2, extend=extend.right, style=line.style_dotted)
ssl_line = line.new(x1=bar_index - lookback_low, y1=lowest_price, x2=bar_index, y2=lowest_price, color=color.new(color.red, 70), width=2, extend=extend.right, style=line.style_dotted)
// Etiquetas opcionales para identificar zonas de liquidez
if show_labels
label.new(bar_index , highest_price, "BSL", style=label.style_label_down, color=color.blue, textcolor=color.white)
label.new(bar_index , lowest_price, "SSL", style=label.style_label_up, color=color.red, textcolor=color.white)
VWAP + FVG DetectorVWAP + FVG Detector
A VWAP + FVG Detector tool would likely combine these two concepts to help traders identify potential areas of opportunity. For example:
It could help identify when the price is moving away from the VWAP and into a fair value gap, signaling a potential reversal or continuation based on the imbalance.
It may also help to pinpoint areas where price might revert back to the VWAP after a significant move, taking into account the gaps between price and VWAP levels.
This combination could be useful in intraday trading, where traders look for price imbalances and aim to trade them with respect to the VWAP as a key reference level.
Are you looking for a script to implement this, or more information on how these strategies work together?
Estrategia Mejorada con EMAs
Estrategia Mejorada con EMAs
Este indicador está diseñado para identificar tendencias claras y generar señales de entrada y salida en operaciones de compra (CALL) y venta (PUT) basadas en la alineación de medias móviles exponenciales (EMAs). Incluye niveles de Take Profit (TP1, TP2, TP3) y Stop Loss (SL) calculados dinámicamente utilizando el ATR, así como alertas personalizables.
Características principales:
- **Identificación de tendencias:** Alineación de las EMAs 13, 48 y 200 para detectar tendencias alcistas o bajistas.
- **Validación de volumen:** Verificación de volumen por encima del promedio para confirmar la fortaleza de las señales.
- **Ruptura de niveles clave:** Detección de rupturas del máximo/mínimo del día anterior y del premercado.
- **Gestión de riesgos:** Niveles de TP y SL configurables con multiplicadores basados en ATR.
- **Visualización clara:** Iconos en el gráfico para señales de entrada, salida, TP y SL.
- **Alertas:** Notificaciones para nuevas señales, niveles alcanzados de TP y activación de SL.
RDW Pivot DetectorThe RDW Pivot Detector is a versatile Pine Script indicator designed to identify and visualize pivot points in price action, enhancing traders' ability to spot potential reversals and continuation zones. This script includes dynamic support and resistance levels, giving traders a clearer understanding of market structure and trends.
Key Features:
Pivot Point Detection:
Identifies both regular and missed pivot points (highs and lows).
Displays labels for pivot highs (▼) and pivot lows (▲) with customizable colors and tooltips.
Missed pivots are marked with 👻 symbols for better clarity.
Dynamic Support & Resistance:
Tracks support and resistance levels using the lowest low and highest high within a user-defined lookback period.
Customizable Visualization:
Dashed lines for missed pivots, and solid lines for valid pivots.
Custom color options for both regular and missed pivots.
RS Rating (Relative Strength Filter):
Integrates a dummy RS rating to highlight buy signals based on user-defined thresholds.
How to Use:
Add to Chart:
Open TradingView and apply the script to your desired asset chart.
Setup Options:
Pivot Length: Adjust the sensitivity of pivot detection.
Display Preferences:
Toggle regular (▼, ▲) or missed (👻) pivots using the options in the settings menu.
Colors: Customize pivot label and line colors to suit your charting preferences.
Dynamic Levels:
Enable the dynamic support and resistance to monitor key price levels and adjust the "Lookback Period" to align with your trading strategy.
RS Rating Integration:
Use the RS rating filter for buy signal generation. Adjust the threshold (default is 40) to match your criteria for identifying strong stocks.
Interpret Signals:
Buy Signal: Triggered when RS Rating exceeds the user-defined threshold. Combine this with identified pivot lows (▲) for potential entry zones.
Sell Signal: Look for pivot highs (▼) near resistance levels to anticipate potential selling opportunities.
Recommendations:
Use the RDW Pivot Detector alongside other technical indicators for confirmation, such as moving averages or oscillators.
Test the settings on multiple timeframes and markets to find optimal parameters that align with your trading strategy.
Combine missed pivots and dynamic levels for trend-following or reversal strategies.
This script is a powerful tool for identifying key market levels and can be customized to fit any trading style!
KRIPTO TOLGA ÖZEL RSIBu indikatör ile her türlü fiyat hareketini yakalamak mümkün! işlem açmayı düşündüğünüz coin grafiğinde zaman birimini seçin, indikatör de dip ve tepe çizgilerini belirleyin, daha sonra renk değişimi veya al - sat sinyali ile işleme girin, al - sat sinyalleri güçlüdür ona göre ;) renk değişimleri 5 - 15 dakikalık scalp işlemleri için uygundur!
--------------------------------------------------------------------------------------
It's possible to catch any price movement with this indicator! select the time frame in the coin chart you are thinking of trading, define the support and resistance lines in the indicator, and then enter a trade with a color change or buy/sell signal; buy/sell signals are strong, so take note ;) color changes are suitable for scalping trades of 5-15 minutes!
Multi-Timeframe Pattern & Trend Forecast - Akash 1this indicator forecasts and share signals based on multi timeframe and trends based on EMAs.
MFS-3 Bars Pattern Strategy3 Bar Pattern Strategy
Detects an Ignite Candle followed by a Pullback Candle followed by a Confirmation Candle.
A Box will be drawn around the setup and three arrows will identify I, P, C (Ignite, Pullback, Confirmation) the setup.
The strategy will calculate a Stop Loss below the Low Price of the Ignite candle and a Take Profit at 2 times the Stop Loss giving a Risk to Reward Ratio of 1:2.
Extra conditions are included to reduce false triggers:
- A down trend must be detected using 3 SMA (Long, Medium, Short) that should be aligned from Long to Short one above the other.
- The Ignite Candle's body must be BELOW the Short SMA
An input form is available to adjust some strategy parameters.
Performance Note
----------------------
Trading conditions are very strict, so most of the time, no signals will be detected in the Strategy window.
This strategy should only be one of many strategies used for trade setups.
Hope you enjoy it.
Supply and Demand - Order Block Strategy BY ALGERNON STONEBreakout Logic:
topBreakCheckSource and bottomBreakCheckSource are used to define the break-out check based on user input.
If the price crosses over the topValue (the high of the last fractal) and topBreakBlock is not set, then a long entry is generated after creating a demandBox, based on the last red candle's low and high.
If the price crosses under the bottomValue and bottomBreakBlock is not set, then a short entry is generated after creating a supplyBox, based on the last green candle's low and high.
If a long or short is active, and a breakout of the price happens, the script will draw a new line object to indicate the breakout, where x2 of the line is set to the current bar index
Fractal Detection:
If a new up fractal is detected, the topValue and topLine variables are updated, and the old line object is deleted
If a new down fractal is detected, the bottomValue and bottomLine variables are updated, and the old line object is deleted
Box Color Update:
The script loops through all the active boxes and changes their color if the current candle close price is outside the range of the box.
Plots: Plots the up and down fractals for visualization.
Checklist Table: A table displays the status of different conditions of the script on the bottom right.
Shows status of Up Fractal, Down Fractal, Top Break, Bottom Break, Last Red Candle, Last Green Candle, Box Color Change Active using check and cross mark symbols.
How the Strategy Works:
Fractal Identification: The strategy continuously looks for fractal highs and lows.
Order Block Identification: When a new fractal is formed, the script stores the high and low of the last opposing candle.
Breakout Confirmation: When price breaks the range of a fractal, it indicates an order block breakout.
Trade Execution: When there is a valid breakout, it triggers a long or short trade, depending on whether a demand or supply zone is broken.
Box Visualization: The script visually represents the order blocks using boxes that are colored green for demand zones and red for supply zones. These boxes can be optionally re-colored if the price breaks beyond them.
Checklist Display: A checklist table at the bottom right of the chart helps the user to quickly understand the script status.