Open Range Breakout Strategy With Multi TakeProfitHello everyone,
For a while, I’ve been wanting to develop new scripts, but I couldn’t decide what to create. Eventually, I came up with the idea of coding traditional and well-known trading strategies—while adding modern features such as multi–take profit options. For the first strategy in this series, I chose the  Open Range Strategy .
  
For those unfamiliar with it, the Open Range Strategy is a trading approach where you define a specific time period at the beginning of a trading session—such as the first 15 minutes, 30 minutes, or 1 hour—and mark the highest and lowest prices within that range. These levels then act as reference points for potential breakouts: if the price breaks above the range, it may signal a long entry; if it breaks below, it may indicate a short entry. This method is popular among day traders for capturing early momentum in the market.
Since this strategy is generally used as an  intraday strategy , I added a Trade Session feature. This allows you to define the exact time window during which trades can be opened. Once the session ends, all positions are automatically closed, ensuring trades remain within your chosen intraday period.
Even though it’s a relatively simple concept, I’ve come across many different variations of it. That’s why I created a highly customizable project. Under the Session Settings, you can select the time window you want to define as your range. Whether it’s the first 15-minute candle or the entire first hour, the choice is entirely yours.
  
For stop-loss placement, there are two different options:
 Middle of the Range  – The stop loss is placed at the midpoint between the high and low of the defined range, offering a balanced buffer for both bullish and bearish setups.
 Top/Bottom of the Range  – The stop loss is placed just beyond the range’s high for short trades or just below the range’s low for long trades, providing a more conservative risk approach.
I’ve always been a big fan of the  multi take-profit  feature, so I added two different take-profit targets to this project. Take profits are calculated based on a Risk-to-Reward Ratio, which you can adjust in the settings. You can also set different position sizes for each target, allowing you to scale out of trades in a way that suits your strategy.
The result is a flexible, user-friendly strategy script that brings together a classic approach with modern risk management tools—ready to be tailored to your trading style
חפש סקריפטים עבור "break"
15-Min ORB Indicator with Breakout Targets **What this indicator does:** 
The 15-Min ORB (Opening Range Breakout) Indicator helps traders spot breakout trades by automatically detecting the high and low of the first 15 minutes after a session opens. It then monitors for breakouts above or below this range and plots dynamic take-profit levels based on your chosen multipliers.
 **How it works:** 
 
 You set the start time for your session (hour and minute) in the settings.
 The indicator marks the high and low during the first 15 minutes after your chosen open time, drawing lines on the chart and, if enabled, labels for these levels.
 If price breaks above the 15-min high, a potential long breakout is identified; if it breaks below the low, a potential short breakout is detected.
 Upon a breakout, the script calculates the distance from the entry (breakout) to the opposite side of the 15-min range and uses your input multipliers to project two take-profit levels (TP1/TP2).
 All lines and labels (for the range and targets) can be individually toggled on or off in the settings.
 Both the 15-min range and the targets can be styled (color, line style, label position).
 
 **How to use it:** 
 
 Add the indicator to your chart.
 Set the session start hour and minute to match your instrument’s open (e.g., 9:30 for US stocks or futures).
 Use the settings to customize which levels and labels are shown, their appearance, and the target expansion multiples.
 When price breaks out above or below the opening range, the script will plot TP1 and TP2 lines at your chosen risk/reward multiples, and label them if desired.
 You can use the visual levels for trade entries, profit taking, or alerts.
 
 **What makes it unique and useful:** >
 
 Unlike many basic ORB indicators, this script not only marks the opening range but also tracks breakouts, auto-plots your profit targets based on range expansion, and gives you full control over display (styles, toggles, and label positions).
 The TP targets are dynamic and can be set to any multiples, adapting to your risk/reward plan and breakout style.
 Everything is customizable for your own session times, instrument, or trading approach.
 
 **Typical uses:** 
 
 Intraday traders looking for clear breakout setups around the session open.
 Automated R-multiple target planning for both long and short trades.
 Visualizing volatility and measuring early price expansion.
 
 
Smart Money Breakouts [iskess 01-02 11:05]This is an big update to the excellent Smart Money Breakout Script published in Oct 2023 by ChartPrime who, to my knowledge, was the original author. 
FULL CREDIT GOES TO CHARTPRIME FOR THIS ORIGINAL WORK. 
Per the moderator's rules, you will find below a meaningful, detailed self-contained description that does not rely on delegation to the open source code or links to other content. You will find in the description details on what the script does, how it does that, how to use it, and how it is original. 
The "Smart Money Breakouts" indicator is designed to identify breakouts based on changes in character (CHOCH) or breaks of structure (BOS) patterns, facilitating automated trading with user-defined Take Profit (TP) level.
The indicator incorporates essential elements such as volume analysis and a data table to assist traders in optimizing their strategies.
🔸Breakout Detection:
The indicator scans price movements for "Change in Character" (CHOCH) and "Break of Structure" (BOS) patterns, signaling potential breakout opportunities in the market.
🔸User-Defined TP/SL :
Traders can customize the Take Profit (TP) and Stop Loss (SL) through the indicator settings, with these levels dynamically calculated based on the Average True Range (ATR). This allows for precise risk management and profit targets that adapt to market volatility.  Traders can also select the lookback period for the TP/SL calculations.
🔸Volume Analysis and Trade Direction Specific Analysis:
The indicator includes a volume checker that provides valuable insights into the strength of the breakout, taking into account trade direction.
🔸If the volume label is red and the trade is long, it suggests a higher likelihood of hitting the Stop Loss (SL).
🔸If the volume label is green and the trade is long, it indicates a higher probability of hitting the Take Profit (TP).
🔸For short trades, a red volume label suggests a higher likelihood of hitting TP, while a green label suggests a higher likelihood of hitting SL.
🔸A yellow volume label suggests that the volume is inconclusive, neither favoring bullish nor bearish movements.
🔸Data Table:
The indicator features a data table that keeps track of the number of winning and losing trades for specific timeframes or configurations. It also shows the percentage of profits vs losses, and the overall profit/loss for the selected lookback period. 
This table serves as a valuable tool for traders to analyze performance and discover optimal settings and timeframes.
The "Smart Money Breakouts" indicator provides traders with a comprehensive solution for breakout trading, combining technical analysis of changes in character and breaks of structure, volume insights, and performance tracking while dynamically adjusting TP and SL levels based on market volatility through the ATR.
This version of the script is a "significant improvement" from Chart Prime's original work in the following ways:
- A selectable range of candles for the profit/loss calculations to look back on.
- An updated table that includes the percentage of wins/losses, and and overall P&L during the selected lookback range.
- The user can now select only Long trades, Short trades, or both.
- The percentage gain/loss is now indicated for every trade on the chart.
- The user can now select a different multiplier for Stop Loss or Take Profit thresholds.
Line Break Chart StrategyHello All! 
We should not pass this year without a gift!
My last publication in 2024 is Complete Line Break Chart Strategy with many features!
What is Line Break Chart?
" Line Break is a Japanese chart style that disregards time intervals and only focuses on price movements, similar to the Kagi and Renko chart styles. Line Break charts form a series of up and down bars (referred to as lines). Up lines represent rising prices, and down lines represent falling prices. New confirmed lines only form on the chart when closing prices break the range covered by previous lines. Users can control the number of past lines used in the calculation via the "Number of Lines" input in the chart settings. The typical "Number of Lines" setting is 3, meaning the chart forms a new up line when the closing price is above the high prices of the last three lines, and it forms a new down line when the closing price is below the past three lines' low prices. If the current price is higher, it is an up line and if it is lower, it is a down line. If the current closing price is the same or the move in the opposite direction is not large enough to warrant a reversal, l then no new line is draw n" by Tradingview.  You can find it here 
Now let's start examining the features of the indicator:
By using Line break reversals it shows trend on the main chart.  You can create alert .
Moreover, you can decide which trade should be taken by using Risk Management in the indicator. You can set the " Maximum Risk " and then if the risk is more than you set then the trade is not taken. When trend changed it checks the distance between reversal level and open price and compare it with the Maximum Risk
 Breakout: 
It can find breakouts and shows on the chart.  You can create alert for breakouts 
It can show breakouts on the main chart:
 Flip-Flops: 
Upon looking at set of price break charts, the trader will notice that there are instances when uptrend blocks is followed by one reversal block, and then by a reversal to a series of uptrend blocks. The opposite is also possible: a series of downtrend blocks is followed by one reversal box and then by an immediate reversal to downtrend. This price action is called a " Flip-Flop ". This structure usually produces trend continuation signal. when we see this then we better use Buy/Sell stop order. lets see this on the chart:
 Temporal Sequence Table: 
Sequence frequency shows the frequency distribution of the number of sequential highs and the number of sequential lows that have been generated. This is quite important to the trader who is seeking to join a trend or put on a trade when the price break reverses into a new trend direction. For example, if the pattern over the past year has been that there never were more than nine consecutive high closes, it would make sense not to enter a position late into the sequence of new high closes.
also you can see market structure. I have tried to formalize it and show it under the table. so you can understand if it's choppy market.
 "Number of Lines"  has very important role. While using low time frames such seconds/minutes time frame you may want to choose higher number of lines such 5,6. ( this may minimize the risk of a whipsaw )
 Gaps feature: 
You can set Gaps on/off. if Gaps on then you can see how long it takes for each box
 Reversal and Continuation Probability: 
The script calculated Reversal level and Continuation probability of the trend by using Sequence frequency.
It also shows unconfirmed box and current closing price level:
Last but not least it has Overlay option for all items, and can show all items in the main chart!
 P.S. I added alerts :) 
 Wish you all a happy new year! 
 Enjoy! 
Price & Volume Breakout Fibonacci Probability [TradeDots]📝 OVERVIEW 
The "Price & Volume Breakout Fibonacci Probability" indicator is designed to detect the probability of the maximum run-up and drawdown of each breakout trade on an asset, assisting traders in optimizing their take profit and stop loss strategies.
 🧮 CALCULATIONS 
The algorithm detects price and volume breakouts to activate the Fibonacci levels displayed on the chart. It calculates these levels using the period pivot high and low, with the close price of the breakout bar as the reference price.
The indicator then forward-tests within an user-selected number of bars, detecting the maximum run-up and drawdown during that period. Consequently, it calculates the probability of the price hitting either side of the Fibonacci levels, showing the likelihood of reaching take profit and stop loss targets for each breakout trade.
 📊 EXAMPLE 
  
The above example shows two breakout trades, circled within the yellow rectangle zone.
The first trade has a maximum run-up above the +0.382 Fibonacci level zone and a maximum drawdown below the -0.618 Fibonacci level zone.
  
When the price reaches the maximum run-up, it only has a ~45% probability of moving further upward into the last two zones (25% + 19.44%). This indicates that setting a take profit at a higher level may have less than a 50% chance of success.
Conversely, when the price reaches its maximum drawdown, there is only an ~8% probability of moving further downward into the last drawdown zone. This could indicate a potential reversal.
 ⚙️ SETTINGS 
 
   Breakout Condition:  Determines the type of breakout condition to track: "Price", "Volume", "Price & Volume".
   Backtest Period:  The maximum run-up and drawdown are detected within this bar period.
   Price Breakout Period:  Specifies the number of bars the price needs to break out from.
   Volume Breakout Period:  Specifies the number of bars the volume needs to break out from.
   Trendline Confirmation:  Confirms that the close price needs to be above the trendline.
 
 📈 HOW TO USE 
By understanding the probabilities of price movements to both the upside and downside, traders can set take profit and stop loss targets with greater accuracy. 
For instance, placing a stop loss order below the zone with the highest probability minimizes the chances of being stopped out of a profitable trade. Conversely, setting a take profit target at the zone with the highest probability increases the win rate.
Additionally, if the price breaches multiple Fibonacci levels during the breakout period, it may indicate an abnormal state, signaling a potential reversal or pullback. This can help traders exit trades in a timely manner.
Traders can adjust their take profit and stop loss levels based on their individual risk tolerance.
 RISK DISCLAIMER 
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
Pure Price Action Order & Breaker Blocks [LuxAlgo]The  Pure Price Action Order & Breaker Blocks  indicator is a pure price action adaptation of our previously published and highly popular  Order-Blocks-Breaker-Blocks  script.
Similar to its earlier version, this indicator detects order blocks that can automatically turn into breaker blocks on the chart once mitigated. However, the key difference/uniqueness is that the pure price action version relies solely on price patterns, eliminating the need for length definitions. In other words, it removes the limitation of user-defined inputs, ensuring a robust and objective analysis of market dynamics.
 🔶 USAGE 
  
An order block is a significant area on a price chart where there was a notable accumulation or distribution of orders, often identified by a strong price move followed by consolidation. Traders use order blocks to identify potential support or resistance levels.
  
A mitigated order block refers to an order block that has been invalidated due to subsequent market movements. It may no longer hold the same significance in the current market context. However, when the price mitigates an order block, a breaker block is confirmed. It is possible that the price might trade back to this breaker block, potentially offering a new trading opportunity.
  
Users can optionally enable the "Historical Polarity Changes" labels within the settings menu to see where breaker blocks might have previously provided effective trade setups.
This feature is most effective when using replay mode. Please note that these labels are subject to backpainting.
 🔶 DETAILS 
The swing points detection feature relies exclusively on price action, eliminating the need for numerical user-defined settings.
The first step involves detecting short-term swing points, where a short-term swing high (STH) is identified as a price peak surrounded by lower highs on both sides. Similarly, a short-term swing low is recognized as a price trough surrounded by higher lows on both sides.
Intermediate-term swing and long-term swing points are detected using the same approach but with a slight modification. Instead of directly analyzing price candles, we now utilize the previously detected short-term swing points. For intermediate-term swing points, we rely on short-term swing points, while for long-term swing points, we use the intermediate-term ones.
  
 🔶 SETTINGS 
 
 Detection: Market structure used to detect swing points for creating order blocks.
 Show Last Bullish OB: Number of the most recent bullish order/breaker blocks to display on the chart.
 Show Last Bearish OB: Number of the most recent bearish order/breaker blocks to display on the chart.
 Use Candle Body: Allows users to use candle bodies as order block areas instead of the full candle range.
 
🔹 Style 
 
 Show Historical Polarity Changes: Allows users to see labels indicating where a swing high/low previously occurred within a breaker block.
 
 🔶 RELATED SCRIPTS 
 
 Pure-Price-Action-Structures. 
 Order-Blocks-Breaker-Blocks. 
Volume Breaker Blocks [UAlgo]The "Volume Breaker Blocks  " indicator is designed to identify breaker blocks in the market based on volume and price action. It is a concept that emerges when an order block fails, leading to a change in market structure. It signifies a pivotal point where the market shifts direction, offering traders opportunities to enter trades based on anticipated trend continuation.
 🔶 Key Features  
 Identifying Breaker Blocks:  The indicator identifies breaker blocks by detecting pivot points in price action and corresponding volume spikes.  
  
  
 Breaker Block Sensitivity:  Traders can adjust breaker block detection sensitivity, length to be used to find pivot points.
 Mitigation Method (Close or Wick):  Traders can choose between "Close" and "Wick" as the mitigation method. This choice determines whether the indicator considers closing prices or wicks in identifying breaker blocks. Selecting "Close" implies that breaker blocks will be considered broken when the closing price violates the block, while selecting "Wick" implies that the wick of the candle must violate the block for it to be considered broken.
 Show Last X Breaker Blocks:  Users can specify how many of the most recent breaker blocks to display on the chart. 
 Visualization:  Volume breaker blocks are visually represented on the chart with customizable colors and text labels, allowing for easy interpretation of market conditions. Each breaker block is accompanied by informational text, including whether it's bullish or bearish and the corresponding volume, aiding traders in understanding the significance of each block.
 🔶 Disclaimer 
 Educational Purpose:  The "Volume Breaker Blocks  " indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to engage in trading activities.
 Risk of Loss:  Trading in financial markets involves inherent risks, including the risk of loss of capital. Users should carefully consider their financial situation, risk tolerance, and investment objectives before engaging in trading activities.
 Accuracy Not Guaranteed:  While the indicator aims to identify potential reversal points in the market, its accuracy and effectiveness may vary. Users should conduct thorough testing and analysis before relying solely on the indicator for trading decisions.
 Past Performance:  Past performance is not indicative of future results. Historical data and backtesting results may not accurately reflect actual market conditions or future performance.
TrendLine Toolkit w/ Breaks (Real-Time)The TrendLine Toolkit script introduces an innovating capability by extending the conventional use of trendlines beyond price action to include oscillators and other technical indicators. This tool allows traders to automatically detect and display trendlines on any TradingView built-in oscillator or community-built script, offering a versatile approach to trend analysis. With breakout detection and real-time alerts, this script enhances the way traders interpret trends in various indicators.
🔲  Methodology 
Trendlines are a fundamental tool in technical analysis used to identify and visualize the direction and strength of a price trend. They are drawn by connecting two or more significant points on a price chart, typically the highs or lows of consecutive price movements (pivots).
 Drawing Trendlines: 
 
 Uptrend Line -  Connects a series of higher lows. It signals an upward price trend.
 Downtrend Line -  Connects a series of lower highs. It indicates a downward price trend.
 
 Support and Resistance: 
 
 Support Line -  A trendline drawn under rising prices, indicating a level where buying interest is historically strong.
 Resistance Line -  A trendline drawn above falling prices, showing a level where selling interest historically prevails.
 
 Identification of Trends: 
 
 Uptrend -  Prices making higher highs and higher lows.
 Downtrend -  Prices making lower highs and lower lows.
 Sideways (or Range-bound) -  Prices moving within a horizontal range.
 
A trendline helps confirm the existence and direction of a trend, providing guidance in aligning with the prevailing market sentiment. Additionally, they are usually paired with breakout analysis, a breakout occurs when the price breaches a trendline. This signals a potential change in trend direction or an acceleration of the existing trend.
The script adapts this methodology to oscillators and other indicators. Instead of relying on price pivots, which can only be detected in retrospect, the script utilizes a trailing stop on the oscillator to identify potential swings in real-time, you may find more info about it  here (SuperTrend toolkit) . We detect swings or pivots simply by testing for crosses between the indicator and its trailing stop.
 
type oscillator
    float o = Oscillator    Value
    float s = Trailing Stop Value
oscillator osc = oscillator.new()
bool l = ta.crossunder(osc.o, osc.s) => Utilized as a formed high
bool h = ta.crossover (osc.o, osc.s) => Utilized as a formed low
 
This approach enables the algorithm to detect trendlines between consecutive pivot highs or lows on the oscillator itself, providing a dynamic and immediate representation of trend dynamics.
🔲  Breakout Detection 
The script goes beyond trendline creation by incorporating breakout detection directly within the oscillator. After identifying a trendline, the algorithm continuously monitors the oscillator for potential breakouts, signaling shifts in market sentiment.
  
🔲  Setup Guide  
A simple example on one of my public scripts,  Z-Score Heikin-Ashi Transformed 
  
  
  
🔲  Settings  
 
 Source -  Choose an oscillator source of which to base the Toolkit on.
 Zeroing -  The Mid-Line value of the oscillator, for example RSI & MFI use 50.
 Sensitivity -  Calibrates the Sensitivity of which TrendLines are detected, higher values result in more detections.
 
🔲  Alerts  
 
 Bearish TrendLine 
 Bullish TrendLine 
 Bearish Breakout 
 Bullish Breakout 
As well as the option to trigger 'any alert' call.
 
By integrating trendline analysis into oscillators, this Toolkit enhances the capabilities of technical analysis, bringing a dynamic and comprehensive approach to identifying trends, support/resistance levels, and breakout signals across various indicators.
Machine Learning Breakouts (from Pivots)I developed the 'Machine Learning Breakouts (from Pivots)' indicator to revolutionize the way we detect breakout opportunities and follow trend, harnessing the power of pivot points and machine learning. This tool integrates the k-Nearest Neighbors (k-NN) method with the Euclidean distance algorithm, meticulously analyzing pivot points to accurately forecast multiple breakout paths/zones. "ML Pivots Breakouts" is designed to identify and visually alert traders on bullish breakouts above high lines and bearish breakouts below low lines, offering essential insights for breakout and trend follower traders.
For traders, the instruction is clear: a bullish breakout signal is given when the price crosses above the forecasted high line, indicating potential entry points for long positions. Conversely, a bearish breakout signal is provided when the price breaks below the forecasted low line, suggesting opportunities to enter short positions. This makes the indicator a vital asset for navigating through market volatilities and capitalizing on emerging trends, designed for both long and short strategies and adeptly adapting to market shifts.
In this indicator I operate in a two-dimensional space defined by price and time. The choice of Euclidean distance as the preferred method for this analysis hinges on its simplicity and effectiveness in measuring and predicting straight-line distances between points in this space.
The Machine Learning Breakouts (from Pivots) Indicator calculations have been transitioned to the MLPivotsBreakouts library, simplifying the process of integration. Users can now seamlessly incorporate the "breakouts" function into their scripts to conduct detailed momentum analysis with ease.
Implied Orderblock Breaker (Zeiierman)█  Overview 
The  Implied Order Block Breaker  (Zeiierman) is a tool designed to identify enhanced order blocks with imbalances. These enhanced order blocks represent areas where there is a rapid price movement. Essentially, this indicator uses order blocks and suggests that a swift price movement away from these levels, breaking the current market structure, could indicate an area that the market has not correctly valued. This technique offers traders a unique method to identify potential market inefficiencies and imbalances, serving as a guide for potential price revisits. 
  
The indicator doesn't scan for imbalances in the traditional sense — where there's an absence of trades between two price levels — but instead, it identifies quick movements away from key levels that suggest where an imbalance might exist. Relying on crossovers and cross-unders in conjunction with pivot points and examining the high/low within the same period provides an innovative method for traders to spot these potentially undervalued or overvalued areas in the market. These inferred imbalances can be crucial for traders looking for price levels where the market might make significant moves.
  
█  How It Works 
 Bullish 
 
   Crossover:  The closing price of a bar crosses above a pivot high, which is an indication that buyers are in control and pushing the price upwards.
   New Low Within Period:  There is a lower low within the same period as the pivot high. This suggests that after setting a high, the market pulled back to set a new low, potentially leaving a price gap on the way up as the price quickly recovers.
 
 Bearish  
 
   Crossunder:  The closing price of a bar crosses under a pivot low, indicating that sellers are taking control and driving the price down.
   New High Within Period:  There is a higher high within the same period as the pivot low. This condition suggests that the market rallied to a new high before falling back below the pivot low, potentially leaving a gap on the way down.
 
█  How to Use 
The enhanced order blocks are often revisited, and the price may aim to 'fill' the potential imbalance created by the rapid price movement, thereby presenting traders with potential entry or exit points. This approach aligns with the idea that imbalances are frequently revisited by the market, and when combined with the context of Order Blocks, it provides even more confluence.
  
 Example 
Here, if the price drops rapidly after setting a new high—crossing under the pivot low—it may skip over certain price levels, creating a 'gap' that signifies an area where the price might have been overvalued (imbalance), which the market may revisit for a potential price correction or revaluation.
  
█  Settings 
 
   Period:  Determines the number of bars used for identifying pivot highs and lows. A higher value gives more significant but less frequent signals, while a lower value increases sensitivity but might give more false positives.
   Pivot Surrounding:  Specifies the number of candles to analyze around a pivot point. Increasing this value broadens the analysis range, potentially capturing more setups but possibly including less significant ones.
 
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
Smart Money Breakouts [ChartPrime]The " Smart Money Breakouts " indicator is designed to identify  breakouts  based on changes in character (CHOCH) or breaks of structure (BOS) patterns, facilitating automated trading with user-defined Take Profit (TP) level. 
the indicator incorporates essential elements such as volume analysis and a data table to assist traders in optimizing their strategies.
🔸 Breakout Detection: 
The indicator scans price movements for "Change in Character" (CHOCH) and "Break of Structure" (BOS) patterns, signaling potential breakout opportunities in the market.
  
🔸User-Defined TP :
Traders can customize the Take Profit (TP) through the indicator settings, with these levels dynamically calculated based on the Average True Range (ATR). This allows for precise risk management and profit targets that adapt to market volatility.
🔸 Volume Analysis and Trade Direction Specific Analysis: 
The indicator includes a volume checker that provides valuable insights into the strength of the breakout, taking into account trade direction.
        🔸If the volume label is red and the trade is long, it suggests a higher likelihood of hitting the Stop Loss (SL).
        🔸If the volume label is green and the trade is long, it indicates a higher probability of hitting the Take Profit (TP).
        🔸For short trades, a red volume label suggests a higher likelihood of hitting TP, while a green label suggests a higher likelihood of hitting SL.
        🔸A yellow volume label suggests that the volume is inconclusive, neither favoring bullish nor bearish movements.
  
  
🔸Data Table:
The indicator features a data table that keeps track of the number of winning and losing trades for specific timeframes or configurations.
This table serves as a valuable tool for traders to analyze performance and discover optimal settings and timeframes.
  
The "Smart Money Breakouts" indicator provides traders with a comprehensive solution for breakout trading, combining technical analysis of changes in character and breaks of structure, volume insights, and performance tracking while dynamically adjusting TP and SL levels based on market volatility through the ATR.
Price breakout and reversal [TCS] | PAThis indicator is designed to identify potential breaks and reversals in price movements for a financial instrument.
The indicator displays several elements to assist users in spotting specific market conditions:
1.	 High and Low Pivots : The indicator marks the highest and lowest points on the price chart within a customizable lookback period. These pivots represent important turning points in the price movement and serve as reference levels for potential breakouts and reversals.
2.	 Fair Value Line : A horizontal line is drawn at the midpoint between the high and low pivots. This line represents the "fair value" based on the recent price action. Traders may consider this level as a reference for evaluating the price's deviation from its average value.
3.	 Bullish Breakouts : When the closing price of the financial instrument crosses above the high pivot the indicator identifies a potential bullish breakout. This suggests a possible buying opportunity.
4.	 Bearish Breakouts : Conversely, a bearish breakout is identified when the closing price crosses below the low pivot. This may indicate a selling opportunity.
5.	 Fair Value Breakouts : In addition to regular breakouts, the indicator can detect breakouts based on the fair value line. If the closing price crosses above or below the fair value line, it may signal a fair value breakout, indicating the price's potential return to its average level.
6.	 Reversals : Reversal patterns are essential in technical analysis. The indicator identifies potential bullish and bearish reversals .
  
The indicator enhances its visual signals with geometric shapes (triangles and diamonds) placed above or below the price bars to represent different types of breakouts and reversals.
Moreover, the indicator can be configured to send alerts to the user when any of these specific events occur, helping traders stay informed and respond promptly to potential trading opportunities.
Please note that this code is for educational purposes only and should not be used for trading without further testing and analysis.
Volatility Range Breakout Strategy [wbburgin]The "Volatility Range Breakout Strategy" uses deviations of high-low volatility to determine bullish and bearish breakouts.
HOW IT WORKS
 
  The volatility function uses the high-low range of a lookback period, divided by the average of that range, to determine the likelihood that price will break in a specific direction.
  High and low ranges are determined by the relative volatility compared to the current closing price. The high range, for example, is the (volatility * close) added to the close, the low range is this value subtracted by the close.
  A volatility-weighted moving average is taken of these high and low ranges to form high and low bands.
  Finally, breakouts are identified once the price closes above or below these bands. An upwards breakout (bullish) occurs when the price breaks above the upper band, while a downwards breakout (bearish) occurs when the price breaks below the lower band. Positions can be closed either by when the price falls out of its current band ("Range Crossover" in settings under 'Exit Type') or when the price falls below or above the volatility MA (default because this allows us to catch trends for longer).
 
INPUTS/SETTINGS
The AVERAGE LENGTH is the period for the volatility MA and the weighted volatility bands.
The VOLATILITY LENGTH is how far the lookback should be for highs/lows for the volatility calculation.
Enjoy! Let me know if you have any questions.
Matze BreakoutShows 2 different states of breakout:
Arrow = unusual volume, raising volume, positiv rate of change, standard deviation breakout
Bolt = very unusual volume, very high standard deviation breakout
L1 Breakout IndicatorLevel: 1
Background
A breakout refers to when the price of an asset moves above a resistance area or below a support area. Breakouts indicate that the price may be trending in the direction of the breakout.
Function
L1 Breakout Indicator utilizes highest() and lowest() functions to define breakout levels. Use ema() to draw a trade line to detect the distance to breakout points. By doing that, you will know whether is overbought or oversold. Then, by applying a set of simple threshold inputs, you can locate the long and short entries points.
Key Signal
trade line and its lag version
Pros and Cons
Pros:
1. Simple but powerful to know overbought and oversold regions
2. Flexible input threshold values to adapt various market conditions
Cons:
1. It may satruate for extreme conditions of long and short.
2. Multiple long and short entries may be generated.
Remarks
Just simple
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
HV Spike Strategy (HVP + OR Breakout + Reversal + TP/SL Modes)Here is a script that I tried to make it simple, although it has several parameters, I will try to explain, here we go:
Logic: Open Range Breakout: otherwise knows as First Candle Rule, usually used for the first candle in the opening of a market session, in my strategy there is an option to use it even for Crypto that operate 24/7, how to do that? Simply by detecting Volatility from the HVP (Historical Volatility Percentile). Then the ORB logic kicks in and the first candle with high volatility gives the ranges for the trades. The proper HVP Activation Threshold has to be selected for each currency pair/index/crypto in order to have maximum profit.
Enter a trade: when the price goes 100% above/below the First Candle Rule Range. That way it is filtering fake breakouts. Also if the price reverses back into the range the strategy takes the opposite trade.
Exit a trade: SL/TP By percentage or ATR, selection in the input menu.
My intention is to avoid using lagging indicators or guessing of Price Action, purely Bull/Bear indication by the first candle.
I hope you find this helpful! Wishing all successful Trades!
NOVA Breakout Signals v2.2 (TF M30)A clean, rules-based breakout signal tool for 30-minute charts.
It detects Dow swing breakouts and filters them with RSI, MACD and Volume so you only see the higher-quality entries. The script does not place trades and does not calculate SL/TP – it only prints clear LONG/SHORT labels at the entry price.
⸻
How it works
1. Timeframe enforcement – Signals are generated only on M30. On other timeframes the script shows a notice and stays silent.
2. Breakout engine (Dow swings) – The last confirmed swing high/low (pivots) is tracked.
• Breakout Up: bar closes above the last swing high by a small buffer.
• Breakout Down: bar closes below the last swing low by a small buffer.
3. Quality filters (all must be true):
• RSI (default length 30):
• Long: RSI > threshold and rising.
• Short: RSI < threshold and falling.
• MACD (12/26/9):
• Long: histogram > 0 and line > signal.
• Short: histogram < 0 and line < signal.
• Volume: current volume > SMA(volume, 20) × multiplier.
4. Debounce / anti-spam
• Cooldown of 4 hours (8 M30 bars) after any signal.
• Minimum price distance from the previous signal to avoid clustered labels.
Signals appear once the bar closes (barstate.isconfirmed). No swing lines are drawn to keep the chart clean; only entry labels are shown.
⸻
Inputs (key)
• RSI length & thresholds for Long/Short confirmation.
• MACD uses 12/26/9 (fixed).
• Volume multiplier (relative to SMA 20).
• Breakout buffer %, Cooldown hours, Min distance %.
• Show labels (on/off).
⸻
Usage tips
• Start with gold/major FX/indices on M30; use “Once per bar close” if you attach alerts.
• Increase the breakout buffer and volume multiplier in choppy markets.
• Tighten RSI thresholds (e.g., 55/45) if you want fewer but stronger signals.
⸻
Notes & limitations
• Pivots confirm after a few bars by definition; signals themselves are printed only on confirmed bar close and do not repaint once shown.
• This is a signal indicator, not investment advice. Always manage risk.
SMC BOS - Structure Breaks & Median Continuation ProjectionsThis tool shows what usually happens after a Break of Structure (BOS).
It scans past BOS events on your chart, finds the ones most similar to the latest break (using ATR to filter by volatility), and then plots the median continuation path.
Optional percentile bands (P10–P90) display the possible range of outcomes around the median.
Key features:
• Automatic detection of bullish and bearish BOS events
• Library of past BOS with adjustable size and spacing
• ATR-based similarity and recency weighting
• Median continuation projections with optional percentile bands
• Customizable colors, signals, and stats table
• Works on any market and timeframe
Use cases:
• See how price typically behaves after a BOS
• Support SMC analysis with data-driven projections
• Improve trade planning by visualizing likely continuations
• Apply across crypto, forex, stocks, and futures
Originality:
Instead of only marking BOS, this script learns from history and projects forward the median path of the most similar past cases, adjusted for volatility. It turns BOS signals into practical continuation scenarios.
Instructions:
Add the indicator to your chart. When a BOS is detected, the projection is drawn automatically.
Use the settings to adjust the library, ATR weighting, projection style, percentile bands, and the display of signals or stats.
For questions or customization, contact Julien Eche (Julien_Eche) on TradingView.
Smart Structure Breaks & Order BlocksOverview (What it does) 
The indicator “Smart Structure Breaks & Order Blocks” detects market structure using swing highs and lows, identifies Break of Structure (BOS) events, and automatically draws order blocks (OBs) from the origin candle. These zones extend to the right and change color/outline when mitigated or invalidated. By formalizing and automating part of discretionary analysis, it provides consistent zone recognition.
 Main Components 
 
 Swing Detection: ta.pivothigh/ta.pivotlow identify confirmed swing points.
 BOS Detection: Determines if the recent swing high/low is broken by close (strict mode) or crossover.
 OB Creation: After a BOS, the opposite candle (bearish for bullish BOS, bullish for bearish BOS) is used to generate an order block zone.
 Zone Management: Limits the number of zones, extends them to the right, and tracks tagged (mitigated) or invalidated states.
 
 Input Parameters 
 
 Left/Right Pivot (default 6/6): Number of bars required on each side to confirm a swing. Higher values = smoother swings.
 Max Zones (default 4): Maximum zones stored per direction (bull/bear). Oldest zones are overwritten.
 Zone Confirmation Lookback (default 3): Ensures OB origin candle validity by checking recent highs/lows.
 Show Swing Points (default ON): Displays triangles on swing highs/lows.
 Require close for BOS? (default ON): Strict BOS (close required) vs loose BOS (line crossover).
 Use candle body for zones (default OFF): Zones drawn from candle body (ON) or wick (OFF).
 
 Signal Definition & Logic 
 
 Swing Updates: Latest confirmed pivots update lastHighLevel / lastLowLevel.
 BOS (Break of Structure):
 Bullish – close breaks last swing high.
 Bearish – close breaks last swing low.
 Only one valid BOS per swing (avoids duplicates).
 OB Detection:
 Bullish BOS → previous bearish candle with lowest low forms the OB.
 Bearish BOS → previous bullish candle with highest high forms the OB.
 Zones: Bull = green, Bear = red, semi-transparent, extended to the right.
 Zone States:
 Mitigated: Price touches the zone → border highlighted.
 Invalidated:
  Bull zone → close below → turns red.
  Bear zone → close above → turns green.
 
 Chart Appearance 
 
 Swing High: red triangle above bar
 Swing Low: green triangle below bar
 Bull OB: green zone (border highlighted on touch)
 Bear OB: red zone (border highlighted on touch)
 Invalid Zones: Bull zones turn reddish, Bear zones turn greenish
 
 Practical Use (Trading Assistance) 
 
 Trend Following Entries: Buy pullbacks into green OBs in uptrends, sell rallies into red OBs in downtrends.
 Focus on First Touch: First mitigation after BOS often has higher reaction probability.
 Confluence: Combine with higher timeframe trend, volume, session levels, key price levels (previous highs/lows, VWAP, etc.).
 Stops/Targets:
 Bull – stop below zone, partial take profit at swing high or resistance.
 Bear – stop above zone, partial take profit at swing low or support.
 
 Parameter Tuning (per market/timeframe) 
 
 Pivot (6/6 → 4/4/8/8): Lower for scalping (3–5), medium for day trading (5–8), higher for swing trading (8–14). Increase to reduce noise.
 Strict Break: ON to reduce false breaks in ranging markets; OFF for earlier signals.
 Body Zones: ON for assets with long wicks, OFF for cleaner OBs in liquid instruments.
 Zone Confirmation (default 3): Increase for stricter OB origin, fewer zones.
 Max Zones (default 4 → 6–10): Increase for higher volatility, decrease to avoid clutter.
 
 Strengths 
 
 Standardizes BOS and OB detection that is usually subjective.
 Tracks mitigation and invalidation automatically.
 Adaptable: allows body/wick zone switching for different instruments.
 
 Limitations 
 
 Pivot-based: Signals appear only after pivots confirm (slight lag).
 Zones reflect past balance: Can fail after new events (news, earnings, macro data).
 Range-heavy markets: More false BOS; consider stricter settings.
 Backtesting: This script is for drawing/visual aid; trading rules must be defined separately.
 
 Workflow Example 
 
 Identify higher timeframe trend (4H/Daily).
 On lower TF (15–60m), wait for BOS and new OB.
 Enter on first mitigation with confirmation candle.
 Stop beyond zone; targets based on R multiples and swing points.
 
 FAQ 
 
 Q: Why are zones invalidated quickly?
A: Flow reversal after BOS. Adjust pivots higher, enable Strict mode, or switch to Body zones to reduce noise.
 Q: What does “tagged” mean?
A: Price touched the zone once = mitigated. Implies some orders in that zone may have been filled.
 Q: Body or Wick zones?
A: Wick zones are fine in clean markets. For volatile pairs with long wicks, body zones provide more realistic areas.
 
 Customization Tips (Code perspective) 
 
 Zone storage: Currently ring buffer ((idx+1) % zoneLimit). Could prioritize keeping unmitigated zones.
 Automated testing: Add strategy.entry/exit for rule-based backtests.
 Multi-timeframe: Use request.security() for higher timeframe swings/BOS.
 Visualization: Add labels for BOS bars, tag zones with IDs, count touches.
 
 Summary 
This indicator formalizes the cycle Swing → BOS → OB creation → Mitigation/Invalidation, providing consistent structure analysis and zone tracking. By tuning sensitivity and strictness, and combining with higher timeframe context, it enhances pullback/continuation trading setups. Always combine with proper risk management.
B A N K $ - Breaks & SweepsThis indicator automatically maps on Breaks of Structure & Liquidity Sweeps. It works by calculating pivot points based on how many candles are above/below either side of a pivot.
The user can manually set how many candles need to be above/below either side of a pivot if they would prefer to change it.
The indicator will dynamically adjust the lines as the user changes timeframe to allow for seamless analysis.
 Features 
 
 Break of Structure lines
 Liquidity Sweep lines
 Dealing Range - this allows the user to visualise the current dealing range
 
 Explanation 
A sweep is determined by whether a candle closes through a pivot point with a body closure or not. If the candle wicks this level but fails to close through it, the line will turn red to indicate a liquidity sweep.
If the following 3 candles go on to close through the break line, this will then update it from a red sweep line to the normal break line again. (sometimes the initial candle that touches a level will not close through it but price will continue to break that level in the next few candles).
Break Point Record Table — GSK-VIZAG-AP-INDIA "Break Point Record Table — GSK-VIZAG-AP-INDIA" indicator captures key break points during each trading session and presents a clear, color-coded table overlay on the chart for quick visual reference. Specifically, it logs sessions' open price and monitors subsequent price action for notable breaks in the session high or low prices. Each break event is recorded with the time, price, and percentage change from the previous break, helping traders identify significant price movements within the session at a glance.
Key Features:
Records the session start time and opening price for context.
Tracks every intraday break above the previous session high or below the previous session low.
Calculates and displays the percentage change at each break event.
Highlights breaks with descriptive text including break time and values to aid trade decision-making.
Displays a table with columns for Time, Open, High, Low, and a Description of the event.
Uses color-coded cells to differentiate between session start, highs, lows, and break descriptions for better readability.
Maintains performance and readability by limiting the table to the latest 30 break events.
Usage & Benefits:
This indicator is ideal for intraday traders who want reliable visual cues to monitor momentum shifts and breakout/breakdown points during the trading day. By capturing these break points as discrete events and organizing the data into an easily accessible, visually intuitive table, it improves situational awareness and supports timely trading decisions.
ORB Breakouts with alerts"ORB Breakouts with Alerts" is a utility indicator that highlights an Opening Range Breakout (ORB) setup during a user-defined intraday time window. It allows traders to visualize price consolidation ranges and receive alerts when price breaks above or below the session high/low.
🔧 Features:
*Customizable session time (start and end), adjustable to local time using a timezone offset.
*Automatically plots:
*A shaded box around the session's high and low.
*Horizontal lines at session high and low levels.
*Optional "BUY"/"SELL" labels to mark breakout directions.
*Visual breakout signals when price crosses above or below the session range.
*Built-in alerts to notify when breakouts occur.
*Configurable styling options including box color, highlight color, and label placement.
⚙️ How It Works:
*During the defined time range, the script tracks the highest high and lowest low.
*After the session ends:
*A box is drawn to represent the opening range.
*Breakouts above the high or below the low trigger visual markers and optional alerts.
*Alerts are limited to one per direction per day to reduce noise.
⚠️ This indicator is a technical analysis tool only and does not provide financial advice or trade recommendations. Always use with proper risk management and in conjunction with your trading plan.
AI Breakout Bands (Zeiierman)█  Overview 
 AI Breakout Bands (Zeiierman)  is an adaptive trend and breakout detection system that combines Kalman filtering with advanced K-Nearest Neighbor (KNN) smoothing. The result is a smart, self-adjusting band structure that adapts to dynamic market behavior, identifying breakout conditions with precision and visual clarity.
  
At its core, this indicator estimates price behavior using a two-dimensional Kalman filter (position + velocity), then enhances the smoothing process with a nonlinear, similarity-based KNN filter. This unique blend enables it to handle noisy markets and directional shifts with both speed and stability — providing breakout traders and trend followers a reliable framework to act on.
  
Whether you're identifying volatility expansions, capturing trend continuations, or spotting early breakout conditions, AI Breakout Bands gives you a mathematically grounded, visually adaptive roadmap of real-time market structure.
█  How It Works 
 ⚪  Kalman Filter Engine 
The Kalman filter models price movement as a state system with two components:
 
 Position (price)
 Velocity (trend direction)
 
It recursively updates predictions using real-time price as a noisy observation, balancing responsiveness with smoothness.
 
 Process Noise (Position) controls sensitivity to sudden moves.
 Process Noise (Velocity) controls smoothing of directional flow.
 Measurement Noise (R) defines how much the filter "trusts" live price data.
 
This component alone creates a responsive yet stable estimate of the market’s center of gravity.
⚪  Advanced K-Neighbor Smoothing 
After the Kalman estimate is computed, the script applies a custom K-Nearest Neighbor (KNN) smoother.
Rather than averaging raw values, this method:
 
 Finds K most similar past Kalman values
 Weighs them by similarity (inverse of absolute distance)
 Produces a smoother that emphasizes structural similarity
 
This nonlinear approach gives the indicator an AI feature — reacting fast when needed, yet staying calm in consolidation. 
█  How to Use 
⚪  Trend Recognition 
 
 The line color shifts dynamically based on slope direction and breakout confirmation.
 Bullish conditions:  price above the mid band with positive slope
 Bearish conditions:  price below the mid band with negative slope
 
  
⚪  Breakout Signals 
 
 Price breaking above or below the bands may signal momentum acceleration.
 Combine with your own volume or momentum confirmation for stronger entries.
 Bands adapt to market noise, helping filter out low-quality whipsaws.
 
  
█  Settings 
 
 Process Noise (Position):  Controls Kalman filter’s sensitivity to price changes.
 Process Noise (Velocity):  Controls smoothing of directional component.
 Measurement Noise (R):  Defines how much trust is placed in price data.
 K-Neighbor Length:  Number of historical Kalman values considered for smoothing.
 Slope Calculation Window:  Number of bars used to compute trend slope of the smoothed Kalman.
 Band Lookback (MAE):  Rolling period for average absolute error.
 Band Multiplier:  Multiplies MAE to determine band width.
 
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.






















