Thunderbird BoSThe Thunderbird BoS script is meticulously crafted for those who thrive on higher timeframes (daily, weekly, monthly) and aim to capture the significant moves and trends in the market.
What does the Thunderbird BoS script do?
Breakouts are pivotal moments in investing, and the Thunderbird BoS script is your ally in identifying them. Here's how:
Breakout Detection: The script springs into action when there's a breakout of a specific Donchian setting, producing a signal.
Visual Aids: It doesn't just stop at signals. The script visually displays entry, stop, and compound levels right on your chart. This feature is especially handy when you hover over a bar, as it allows you to see levels from past signals, no matter how far back in time.
Trend Confirmation: The script is adept at producing entry signals in both confirmed bull and bear trends.
Filtering the Noise: Using the Donchian logic, the script confirms end-of-day entry points in a long-term trend and efficiently filters out fake breakouts and entry points in a sideways market.
How does BoS work?
The BoS is a product of meticulous calculations:
Breakout Signal: Upon detecting a breakout signal, the entry-level is determined. For a bullish breakout, it's calculated a specific % above the high, and for a bearish breakout, a specific % below.
Stop Calculation: Using the Average True Range (ATR) over a number of specific days, the stop loss is set below the entry for long positions and above for short positions.
Compound Levels: The compound level is also determined using an ATR formula above the entry for long positions and below for short ones.
What's the ideal timeframe for this script?
The Thunderbird BoS script is tailor-made for the daily timeframe. This ensures that breakout signals are derived from a comprehensive view of the market's movements.
What sets the Thunderbird BoS script apart?
The uniqueness of the Thunderbird BoS script lies in its:
Historical Insight: The ability to view levels from past signals by simply hovering over a bar. This feature aids in analysing entry levels from any point in the past and is displayed seamlessly in the data window.
Precision for Daily Timeframe: The script is specifically coded for the daily timeframe to:
Pinpoint the onset of potential long-term trends.
Confirm entry points at the end of the trading day, effectively filtering out intraday distractions.
Minimise the chances of fake breakouts in a trend.
Continuously generate entry points as the trend evolves, facilitating compounding.
Efficiently filter out breakouts in a sideways market.
In essence, the Thunderbird BoS script is an investor's tool for focusing on the quality of potential positions when investing in long-term market trends. It's not just about identifying trends; it's about making informed decisions based on them.
在腳本中搜尋"breakout"
Candlestick Stats [tanayroy]The script detects candlestick patterns and stats related to the pattern. We have included 44 candle patterns to select. You can get stats for any timeframe and holding period. If a particular pattern is not available, the script will give an error.
What is available.
You can view the composite stat in the table panel.
Pattern Name: The pattern name
Pattern Type: Bullish(🟢)/ Bearish(🔴)/ Neutral(⚫)
Total Found: Number of time pattern appeared in the chart
Success: Number of time the pattern generated a positive return
Failure: Number of time the pattern generated a negative return
Highest Return: Highest return generated by the pattern (assuming trade taken at the open of the next candle and closed at the close price of the last candle of the holding period).
Lowest Return: Lowest return generated by the pattern
Average return: Average return generated by the pattern
Total Up Breakout: Number of time patterns take an up breakout(break above high).
Max Up Movement: Maximum up movement recorded by the pattern(distance between pattern high and highest high candle in given holding period).
Min up movement: Minimum up movement recorded by the pattern.
Average Up Movement: Average up movement recorded
Total Down Breakout: Number of time patterns take a down breakout(break below low).
Max Down Movement: Maximum down movement recorded by the pattern.
Min Down Movement: Minimum down movement recorded by the pattern.
Average Down Movement: Average down movement recorded
You can find the number of bars tested, start date and end date in the panel.
You can visually inspect the candle pattern performance in the chart.
Available options:
Detect Trend: You can detect trends based on SMA 50, SMA 50/200 or No detection.
Stat bars: Holding period after detecting the pattern.
Panel position: Position the stat table as per your choice.
Select pattern: Select available predefined pattern.
Label color: choose color according to your choice.
OnBalanceVolume by DGTComparing relative action between price bars and On-Balance Volume (OBV) generates more actionable signals, and plotting OBV on top of price chart alows to visually emphasis the relation between the price bars and OBV.
The On Balance Volume indicator (OBV) is a good metric for measuring buying and selling pressure. Many people believe that buying and selling pressure precede changes in price, making this indicator valuable. The actual individual quantitative value of OBV is not relevant. Instead, traders and analysts look to the nature of OBV movements over time; the slope of the OBV line carries all of the weight of analysis.
* Trend Identification - On Balance Volume (OBV) is useful for identifying or confirming overall market trends, when both price and OBV are moving in the same direction the underlying trend is likely to continue.
* Devrgence - divergence occurs when price movement is not confirmed by the indicator. In many cases, these divergences can indicate a potential reversal
* During a trading range, if the OBV is rising, accumulation may be taking place—a warning of an upward breakout, and coversly if the OBV is falling, distribution may be taking place—a warning of a downward breakout.
Note of caution in using the On Balance Volume
- It is a leading indicator, meaning that it may produce predictions, but there is little it can say about what has actually happened in terms of the signals it produces. Because of this, it is prone to produce false signals. It can therefore be balanced by lagging indicators. Add a moving average line to the OBV to look for OBV line breakouts; you can confirm a breakout in the price if the OBV indicator makes a concurrent breakout
- A large spike in volume on a single day can throw off the indicator for quite a while. For instance, a surprise earnings announcement, being added or removed from an index, or massive institutional block trades can cause the indicator to spike or plummet, but the spike in volume may not be indicative of a trend
This study additionally presents
- Volume Histogram with a Volume Moving Average
- Volume Weighted Colored Bars
Other alternatives where OBV is used as source of creating indicators : RelativeStrength of VolumeIndicators , Neglected-Volume , StochX Indicator of Indicators , etc
As with most indicators however, it is best to use OBV with additional technical analysis tools
Disclaimer: Trading success is all about following your trading strategy and the indicators should fit within your trading strategy, and not to be traded upon solely
The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd TradingView user liable for any possible claim for damages arising from any decision you make based on use of the script
True Supplies and Demands This indicator automatically helps you find supplies & demands using different detection methods.
Methods for classification:
i) Supply: High/Low; Demand: High/Low
ii) Supply: High/Open; Demand: Low/Open
Also in the indicator settings, you can define whether the indicator should hide the box if at least 1 tick was touched, or the indicator should display this until a complete breakout.
"Virgin" or untouched:
Touched, but not complete breakout:
MA total distance on chartNOTE:
The name I used for this indicator was created by me and I’m not sure if it has been used or created by any other trader/creator in the past or not!
Motivation to create:
One of the most important uses of “moving averages” is indicating the trend! There are different ways you can distinguish trend by using moving averages and one of the most popular type of it is comparing closing price to a MA. In this case if close is higher than the MA, trend is bullish and if close is lower than MA, it’s bearish. This method is really useful and I see great results in my long-term back-tests, especially SMA-100 in 1H chart filter so many fake signals in many different indicator-based strategies (Personal experience). There are so many problems with using indicators that sometimes have difficult solutions but one of them is fake breakout!
Looking at the top picture, you’ll get a breakout has happened but trend did not change!
A super bearish trend is obviously visible in the chart and we know a small break out might be a fake one, but what if we have an indicator make conditions of a trend change a little harder?
Introduction:
I was careful about how I used moving averages and I got that I will take not only the last candle close price into consideration, so in these kind of false breakouts I will not fall into trap of them, On the contrary, I find a good opportunity to enter the market opposite of the MA break! (In this case short trade). I calculate the total distance of last 40 candles and divide them to 40, to get the average distance, to each a mathematical score for power of our trend comparing to the MA!
Number are just default you can change them.
In the picture below you can see how well it filtered the false breakout.
As it is obvious, Timeframe, MA length, MA source and MA type are editable.
Since I do not tested this indicator enough (for me enough means more than 5000 trades and 10 years) I can’t suggest any settings as the best one.
The distance length, which means number of candles that their distance to MA is considered in our calculations, the distance source and also smoothing of the MATD is editable too.
And without editing it will look like something like this!
Turtle Trade Channels Indicator TUTCILegendary trade system which proved that great traders can be made, not born.
Turtle Trade Experiment made 80% annual return for 4 years and made 150 million $
Turtle Trade trend following system is a complete opposite to the "buy low and sell high" approach.
This trend following system was taught to a group of average and normal individuals, and almost everyone turned into a profitable trader.
They used the basis logic of well known DONCHIAN CHANNELS which developed by Richard Donchian.
The main rule is "Trade an 20-day breakout and take profits when an 10-day high or low is breached ". Examples:
Buy a 20-day breakout and close the trade when price action reaches a 10-day low.
Go short a 20-day breakout and close the trade when price action reaches a 10-day high.
In this indicator,
The red line is the trading line which indicates the trend directio n:
Price bars over the trend line indicates uptrend
Price bars under the trend line means downtrend
The dotted blue line is the exit line.
Original system is:
Go long when the price High is equal to or above previous 20 day Highest price.
Go short when the price Low is equal to or below previous 20 day Lowest price.
Exit long positions when the price touches the exit line
Exit short positions when the price touches the exit line
Recommended initial stop-loss is ATR * 2 from the opening price.
Default system parameters were 20,10 and 55,20.
Original Turtle Rules:
To trade exactly like the turtles did, you need to set up two indicators representing the main and the failsafe system.
Set up the main indicator with EntryPeriod = 20 and ExitPeriod = 10 (A.k.a S1)
Set up the failsafe indicator with EntryPeriod = 55 and ExitPeriod = 20 using a different color. (A.k.a S2)
The entry strategy using S1 is as follows
Buy 20-day breakouts using S1 only if last signaled trade was a loss.
Sell 20-day breakouts using S1 only if last signaled trade was a loss.
If last signaled trade by S1 was a win, you shouldn't trade -Irregardless of the direction or if you traded last signal it or not-
The entry strategy using S2 is as follows:
Buy 55-day breakouts only if you ignored last S1 signal and the market is rallying without you
Sell 55-day breakouts only if you ignored last S1 signal and the market is pluging without you
You can Highlight the chart with provided trade signals:
Green background color when Long
Red background color when Short
No background color when flat
WARNING: TURTLE TRADE STOP or ADDING more UNITS RULES ARE NOT INCLUDED.
Author: Kıvanç Özbilgiç
Also you can show or hide trade signals with the button on the settings menu
Point and Figure Chart - LiveHello Traders,
This is "Point and Figure Chart (PnF)" script that run in separated window in real time. The separated PnF chart window is timeless, so no relation with the time on the chart. PnF chart consist of "X" and "O" columns. While "X" columns represents rising prices, "O" column represents a falling price. If you have no idea about what PnF charting is then you should search for "Point and Figure Charting" on the net and get some info before using this script.
Now lets talk about details. PnF Chart requires at least two variables to be set => Box size and Reversal. Box size represents the size of each X/O in PnF chart and the reversal is used to calculate new X/O or reversal. for example if currrent column is X column then for new "X", "box size * 1" move is needed and for new "O" column or reversal, "box size * revelsal" move is needed. in the script I use lines as X/O columns.
In the options you can set "Box Size Assingment Method". you have 3 options Traditional, ATR, Percentage . what are they?
Traditional: user-defined box size, means you can set the box size as you wish, using the option . if you use this option then you should set it accordingly.
ATR : that's dynamic box size scaling and on each columns it's calculated once, you can set length for ATR
Percentage: that's also dynamic box size scaling according to closing price when new column appeared. if you use this option then you should set it accordingly.
Reversal: The reversal is typically 3 but you can change it as you wish
"Change Bar Color by PnF Trend": if you enable this option then bar color changes by PnF columns, by default it's not enabled
"Change Column Color When Breakout Occurs": PnF color changes if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
"Change Bar Color When Breakout Occurs": bar colors changed if Double Top/Bottom breakout accours. enabled by default and you can set the colors as you wish using the options
the script checks only Double Top/Bottom breakouts at the moment. there are many other breakouts such Triple/Quadruple, Ascending/Descending Triple Top/Bottom breakouts, Catapult etc.
Also the script shows new X/O level and reversal Levels in PnF window. An example:
If you enable "Change Bar Color by PnF Trend" option:
An example if you disable the option "Change Column Color When Breakout Occurs
You may want to see my another/older "Point and Point Chart" script as well. you can find it in my profile/published scripts and in the Public Library. I use same PnF calculation algorithm in both scripts.
Enjoy!
CBG Key Numbers v6Here is my opening range, key numbers indicator. It takes the Opening Range (5 minutes by default) and then plots the opening range and up to 7 extensions of that range above and below.
It's amazing how the OR is stamped up on the rest of the day's price movements.
2 strategies (at least) are to play the OR range breakout and to fade when price hits an extreme range.
You have total control over how you set up the various lines and colors.
If you start overlaying the trading day with the OR and it's extensions, you will see amazing patterns become clear. For example, the pump and reverse. This is where price pumps right out of the opening and then reverses later in the morning.
I have the opening price set to big circles as this is one of the most important reference points during the day.
Important: For some reason, the 9:30 am time Opening acts differently for equities and futures . For equities, you can set the time values to 0930. But for futures , to capture the Open at 9:30, you have to set the time values to start at 0830. I haven't been able to find a better solution but setting the times manually works. Make sure to set all the time values on the Options screen.
There is one more setting of interest. It is called IB Target Amount. This is a number above and below the opening range that I have observed price to hit whenever there's a breakout. This will allow you to predict a price target on breakouts. For SPY , I have found that price usually breaks out to at least 50 cents. On ES futures , it's 6 dollars. This can help you lock in 10% and 20% when trading options and is a great tool. That's why I have it so prominent in red. You will also see price return to this level during the day and act as support or resistance.
Please disregard the red and green shaded rectangles. They are my own support and resistance zones and TV wouldn't let me hide them from the picture. :-)
I mostly use this on a 5 minute chart but any timeframe will work.
Turtle Trade Channels by KıvanÇ fr3762his trend following system was designed by Dennis Gartman and Bill Eckhart, and relies on breakouts of historical highs and lows to take and close trades: it is the complete opposite to the "buy low and sell high" approach. This trend following system was taught to a group of average and normal individuals, and almost everyone turned into a profitable trader.
The main rule is "Trade an N-day breakout and take profits when an M-day high or low is breached (N must me above M)". Examples:
Buy a 10-day breakout and close the trade when price action reaches a 5-day low.
Go short a 20-day breakout and close the trade when price action reaches a 10-day high.
In this indicator, the red line is the trading line, and the dotted blue line is the exit line. Original system is:
Go long when the trading line crosses below close price
Go short when the trading line rosses above close price
Exit long positions when the price touches the exit line
Exit short positions when the price touches the exit line
Recommended initial stop-loss is ATR * 2 from the opening price. Default system parameters were 20,10 and 55,20.
Original Turtle Rules:
To trade exactly like the turtles did, you need to set up two indicators representing the main and the failsafe system.
Set up the main indicator with TradePeriod = 20 and StopPeriod = 10 (A.k.a S1)
Set up the failsafe indicator with TradePeriod = 55 and StopPeriod = 20 using a different color. (A.k.a S2)
The entry strategy using S1 is as follows
Buy 20-day breakouts using S1 only if last signaled trade was a loss.
Sell 20-day breakouts using S1 only if last signaled trade was a loss.
If last signaled trade by S1 was a win, you shouldn't trade -Irregardless of the direction or if you traded last signal it or not-
The entry strategy using S2 is as follows:
Buy 55-day breakouts only if you ignored last S1 signal and the market is rallying without you
Sell 55-day breakouts only if you ignored last S1 signal and the market is pluging without you
The turtles had a progressive position sizing approach that boosted their winnings. Once a trading decision has been made you should...
Developers: Dennis Gartman and Bill Eckhart
İndikatörü geliştiren: Dennis Gartman and Bill Eckhart
Volume Engulfing DetectorThis indicator is built to detect powerful shifts in market participation by analyzing volume surges during directional candles — not traditional "engulfing" patterns based on candle body structure, but volume-driven dominance by buyers or sellers.
Instead of relying on the classic visual engulfing pattern, it flags situations where a bullish or bearish candle prints with significantly higher volume than its predecessor, and where that volume also surpasses key benchmarks from previous opposing moves.
This approach is designed to capture institutional activity, smart money footprints, or hidden accumulation/distribution, which often manifest as volume spikes even in the absence of textbook candlestick formations.
🚦 Key Features
✅ 1. Volume-Based Engulfing Detection
The script identifies candles where:
A bullish candle's volume exceeds the previous candle’s total volume and the previous candle was bearish (and vice versa for bearish engulfing).
Additionally, the bullish engulfing volume must also be greater than the volume of the last bearish engulfing (and vice versa).
This helps filter out false engulfing signals and only highlights the ones with significant participation or conviction.
🔷 Plotted with: Vol↑Eng (Green label below candle)
🔻 Plotted with: Vol↓Eng (Red label above candle)
✅ 2. High-Volume Rejection Markers (Non-Engulfing)
Sometimes a candle doesn’t engulf the previous one, but the volume is so dominant that it may still indicate a powerful reversal or failed breakout. This indicator flags those too:
If a bullish candle has volume higher than any bearish engulfing volume seen today, it’s marked as a potential buy-side absorption.
If a bearish candle has volume higher than any bullish engulfing volume today, it may be a sign of sell-side rejection.
🟢 Plotted with: Vol↑Big (Lime triangle up)
🔴 Plotted with: Vol↓Big (Maroon triangle down)
⏰ Daily Reset & Filtering
All volume comparisons are done within the current trading day, so each day's context is treated independently.
The first candle of the day is ignored, preventing skewed signals due to overnight gaps or opening volatility.
🔔 Alerts Included
You can set alerts on:
Bullish or bearish volume-engulfing candles.
High-volume rejection candles.
This ensures you’re notified in real time when the market shows signs of strong accumulation or distribution, even if you're not actively monitoring the chart.
💡 Use Cases
Day Traders: Identify potential intraday reversals or trend initiations with volume confirmation.
Swing Traders: Use engulfing and high-volume patterns to time entries after pullbacks or breakouts.
Volume Analysts: Study how price responds when volume exceeds critical historical thresholds.
Tape Readers: Get a visual clue of where smart money might be stepping in based on volume surges.
📌 Final Thoughts
This indicator filters out noise and focuses on volume-dominant price actions, giving you a cleaner and more actionable view of the market. Use it to complement your existing strategy, particularly when looking for high-conviction turning points on the chart.
Whether you're trading equities, indices, or futures — this tool brings volume context to price action in a simple and visual way.
Option Range Projector PRO (with Alerts)Indicator Name: Option Range Projector PRO (with Alerts)
Short Description
This is a powerful and flexible tool for traders that visualizes expected price movement ranges based on option pricing principles and statistical deviations. The indicator plots standard deviation levels (Sigmas) and boundaries calculated from the price of an options Straddle, providing a unique insight into market volatility expectations.
It is ideal for options traders, as well as those who trade futures or spot assets and want to gain an edge by understanding where the market anticipates price boundaries on a specific date.
Core Concepts
The indicator is based on three key ideas:
Standard Deviation (Sigma, σ): In statistics, this is a measure of value dispersion. In trading, when applied to prices, standard deviation levels show the probable range within which the price is expected to remain until a specific date (expiration).
±1σ (1 Sigma): Approximately 68.2% probability that the price will stay within this range.
±2σ (2 Sigmas): Approximately 95.4% probability. These levels often act as strong support/resistance.
±3σ (3 Sigmas): Approximately 99.7% probability. Reaching these levels is a statistically rare event.
Implied Volatility (IV): This is a key component. IV is the market's forecast of the asset's future volatility. It is derived from current option prices and reflects how significant the price movements are expected to be by traders. The higher the IV, the wider the calculated ranges will be.
Straddle-Based Levels: A straddle is an options strategy involving the simultaneous purchase of a Call and a Put option with the same strike price and expiration date. The cost of this combination (Call + Put) directly reflects the market's expected price movement in points. Our indicator uses this value to construct alternative, highly accurate boundaries of the expected range.
Key Features
Flexible Expiration Choice: Easily switch between standard contracts (Weekly, Monthly, Quarterly) or set any custom number of days to expiration (DTE).
Dual Volatility Calculation Mode: Use automatic calculation based on historical data or enter a precise IV value manually (e.g., from your broker's terminal) for maximum accuracy.
Two Types of Predictive Levels: Visualize classic standard deviations (Sigmas) and/or levels calculated from the Straddle price for a comprehensive analysis.
Expiration Comparison: Enable the display of additional levels for a different expiration date to visually compare short-term and long-term market expectations.
"Greeks" Calculation: The indicator calculates and displays key option Greeks (Delta, Gamma, Theta, Vega), helping to deepen the understanding of an option position's characteristics.
Informative Table: All key data—ATM price, IV, DTE, level prices, Greeks, and option prices—are consolidated into one clear table for quick analysis.
Customizable Alerts: Get instant notifications directly in TradingView when the price crosses any of the important levels (±1σ, ±2σ, ±3σ).
Full Visual Customization: Control colors, line thickness, labels, and zone fills to adapt the indicator to your trading style.
How to Use (Settings)
Price Settings:
Auto-detect ATM Price: When enabled, the indicator will use the current closing price as the At-The-Money (ATM) price.
Manual ATM Price: If auto mode is disabled, you can set a precise ATM price manually.
Volatility Settings:
Auto-calculate IV: Calculates historical volatility over a specified period. Useful if you don't have access to real-time IV.
Manual IV Value: (Recommended for accuracy). Enter the Implied Volatility (IV) value for the desired strike from your brokerage terminal or analytical services here.
Expiration:
Contract Type: Choose one of the standard terms (Weekly, Monthly, Quarterly) or "Custom" to use a manual day input.
Days to Expiration: Active only for the "Custom" type.
Show Multiple Expirations: Enables a second set of levels with a different term for comparison.
Straddle Boundaries:
Use Manual Input: Allows you to enter the precise Call and Put Settle prices from the official exchange summary (e.g., from the CME website). This provides the most accurate boundaries based on real market prices.
Trading Ideas and Application
Mean Reversion Trading: The ±2σ and ±3σ levels often act as strong overbought/oversold zones. A price reaching these extreme values has a high statistical probability of reversing or correcting back towards the central ATM price.
Trend Confirmation and Breakouts: A confident close outside the ±1σ range can indicate the beginning of a strong directional move.
Risk Management: Use the levels to set stop-losses or determine profit targets. For example, when opening a trade near the +1σ level, you might consider a target at +2σ and place a stop-loss behind the ATM level.
Volatility Analysis: By comparing the width of the ranges for different expirations, you can assess how the market is pricing short-term versus long-term risks. A narrow range suggests low expectations, while a wide range indicates high ones.
Disclaimer: This indicator is an analysis tool and does not provide direct financial advice or trading signals. All trading decisions are your own. Use this indicator in conjunction with other analysis methods.
Cup with Handle PatternCup with Handle Pattern Indicator – Description
This Cup with Handle Pattern Indicator is designed to visually identify one of the most powerful bullish continuation patterns in technical analysis — the Cup with Handle.
🔍 What It Detects
The indicator scans for the classic "U-shaped" cup formation followed by a slight downward drift (the handle), which often precedes a breakout.
Once a valid pattern is detected, it plots a green triangle below the price bar at the point of breakout — where the price crosses above recent highs after consolidation.
⚙️ Key Features
Customizable Duration: The cup length can be adjusted (default is 150 bars), allowing flexibility based on the timeframe and asset.
Automatic Breakout Detection: The indicator uses a combination of relative highs, lows, and ATR (Average True Range) to ensure valid setups.
No repainting: Signals are plotted only after confirmation, making this suitable for live trading or backtesting.
🛠️ How It Works
Left Cup High: Detected based on historical highs before the low.
Cup Low: The lowest point within the cup duration.
Right Cup High: A recent high before breakout.
Breakout Point: Triggered when price crosses above the 30-bar high after the handle formation.
Validity Checks: Ensures the structure has a proper depth, symmetry, and volatility conditions using ATR.
📊 Visual Elements
Green Triangle Up: Plotted below bar at the breakout.
Blue Line: Closing price.
✅ Ideal For:
Swing traders and position traders looking for high-probability breakout entries.
Chart analysts who want to automate the detection of classic base-building patterns.
Educational and training purposes for pattern recognition.
Linear Regression Channel Pro# Linear Regression Channel Pro - Script Description
## English Description
### What it does
The **Linear Regression Channel Pro** is a technical analysis indicator that creates a statistical channel around price movements using linear regression mathematics. The script calculates the best-fit line through a specified number of price bars and then adds parallel boundaries based on standard deviation calculations.
### Key Features
- **Main Regression Line**: Shows the statistical trend direction of the price over the selected period
- **Channel Boundaries**: Upper and lower bands that contain most price movements (typically 95% when using 2.0 multiplier)
- **Inner Boundaries**: Additional reference lines for more precise analysis
- **Future Projection**: Extends all lines into the future to show potential price paths
- **Customizable Parameters**: Adjustable period length, deviation multipliers, and projection distance
### How it works
1. **Data Collection**: Gathers price data over the specified regression length (default 400 bars)
2. **Linear Regression**: Calculates the mathematical best-fit line through the price data
3. **Standard Deviation**: Measures how much prices deviate from the regression line
4. **Channel Creation**: Creates parallel lines above and below the regression line
5. **Future Projection**: Extends the channel into the future using the same slope
### Statistical Foundation and Band Settings
**The 68-95-99.7 Rule**
The indicator is based on the statistical principle that in a normal distribution:
- **1 Standard Deviation (σ)**: Contains approximately **68%** of price movements
- **2 Standard Deviations (σ)**: Contains approximately **95%** of price movements
- **3 Standard Deviations (σ)**: Contains approximately **99.7%** of price movements
**Outer Bands (Default 2.0 Multiplier)**
- **Coverage**: Approximately **95%** of price movements
- **Meaning**: Only 5% of price action should exceed these bands
- **Usage**: Identification of extreme overbought/oversold conditions
- **Signal**: Touching outer bands often indicates potential reversal points
**Inner Bands (Default 1.0 Multiplier)**
- **Coverage**: Approximately **68%** of price movements
- **Meaning**: 32% of movements can normally exceed these bands
- **Usage**: Identification of significant but not extreme price moves
- **Signal**: Breaking inner bands suggests meaningful directional movement
### Recommended Settings by Market Type
**Standard Configuration**
```
- Outer Bands: 2.0 (95% coverage)
- Inner Bands: 1.0 (68% coverage)
```
**High Volatility Markets (Crypto, Emerging Markets)**
```
- Outer Bands: 2.5-3.0 (99%+ coverage)
- Inner Bands: 1.5 (85% coverage)
```
**Low Volatility Markets (Major Forex, Blue Chip Stocks)**
```
- Outer Bands: 1.5 (86% coverage)
- Inner Bands: 0.5 (38% coverage)
```
### Trading Applications
**Trend Analysis**
- The slope of the regression line indicates the overall trend direction
- Steep slopes suggest strong trends, flat slopes suggest consolidation
- Price above center line = bullish bias, below = bearish bias
**Support and Resistance Levels**
- **Inner bands**: Act as first level support/resistance (68% probability)
- **Outer bands**: Act as strong support/resistance (95% probability)
- **Dynamic levels**: Bands adjust automatically to market conditions
**Entry and Exit Strategies**
*Using Inner Bands (1.0σ):*
- **Breakout signals**: Price breaking through inner bands with volume confirms direction
- **Pullback entries**: Price returning to inner band after breakout offers entry opportunity
- **Range trading**: Price oscillating between inner bands suggests consolidation
*Using Outer Bands (2.0σ):*
- **Reversal signals**: Price touching outer bands often indicates exhaustion
- **Extreme conditions**: Only 5% of movements reach these levels
- **Profit taking**: Consider closing positions when price reaches outer bands
**Risk Management Applications**
- **Stop Loss Placement**: Use opposite band as stop level (high probability of not being hit randomly)
- **Position Sizing**: Wider channels = higher volatility = smaller position sizes
- **Risk/Reward**: Measure potential moves using band distances
**Future Planning with Projections**
- **Target Setting**: Orange projection lines show potential future support/resistance
- **Trade Duration**: Plan holding periods based on projected channel direction
- **Market Timing**: Anticipate when price might reach significant levels
### Practical Trading Examples
**Bullish Trend Scenario**
1. Price consistently above center line (trend confirmed)
2. Bounces from inner lower band = re-entry opportunity
3. Reaching outer upper band = consider profit taking
4. Break above outer upper band = potential trend acceleration
**Range-Bound Market**
1. Price oscillates between inner bands = range trading mode
2. Sell near inner upper band, buy near inner lower band
3. Breakout from outer bands = range breakout signal
**Bearish Trend Scenario**
1. Price consistently below center line (downtrend confirmed)
2. Bounces from inner upper band = short entry opportunity
3. Reaching outer lower band = potential oversold bounce
4. Break below outer lower band = trend continuation likely
### Best Practices and Tips
- **Timeframe Selection**: Use higher timeframes (4H, Daily) for more reliable statistical significance
- **Confirmation**: Combine with volume analysis and other indicators
- **Market Adaptation**: Adjust multipliers based on asset volatility characteristics
- **Regression Length**: Shorter periods (100-200) for reactive signals, longer (400-800) for stable trends
- **False Breakouts**: Wait for close beyond bands rather than just touching
- **Volume Confirmation**: Higher volume on band breakouts increases signal reliability
---
## Descrizione Italiana
### Cosa fa
Il **Linear Regression Channel Pro** è un indicatore di analisi tecnica che crea un canale statistico intorno ai movimenti di prezzo utilizzando la matematica della regressione lineare. Lo script calcola la linea di miglior adattamento attraverso un numero specificato di barre di prezzo e aggiunge quindi confini paralleli basati sui calcoli della deviazione standard.
### Caratteristiche Principali
- **Linea di Regressione Principale**: Mostra la direzione statistica del trend del prezzo nel periodo selezionato
- **Confini del Canale**: Bande superiori e inferiori che contengono la maggior parte dei movimenti di prezzo (tipicamente il 95% usando il moltiplicatore 2.0)
- **Confini Interni**: Linee di riferimento aggiuntive per un'analisi più precisa
- **Proiezione Futura**: Estende tutte le linee nel futuro per mostrare potenziali percorsi di prezzo
- **Parametri Personalizzabili**: Lunghezza del periodo, moltiplicatori di deviazione e distanza di proiezione regolabili
### Come Funziona
1. **Raccolta Dati**: Raccoglie i dati di prezzo per la lunghezza di regressione specificata (default 400 barre)
2. **Regressione Lineare**: Calcola matematicamente la linea di miglior adattamento attraverso i dati di prezzo
3. **Deviazione Standard**: Misura quanto i prezzi si discostano dalla linea di regressione
4. **Creazione del Canale**: Crea linee parallele sopra e sotto la linea di regressione
5. **Proiezione Futura**: Estende il canale nel futuro usando la stessa pendenza
### Fondamenti Statistici e Impostazione delle Bande
**La Regola 68-95-99.7**
L'indicatore si basa sul principio statistico che in una distribuzione normale:
- **1 Deviazione Standard (σ)**: Contiene circa il **68%** dei movimenti di prezzo
- **2 Deviazioni Standard (σ)**: Contiene circa il **95%** dei movimenti di prezzo
- **3 Deviazioni Standard (σ)**: Contiene circa il **99.7%** dei movimenti di prezzo
**Bande Esterne (Moltiplicatore Default 2.0)**
- **Copertura**: Circa il **95%** dei movimenti di prezzo
- **Significato**: Solo il 5% dell'azione di prezzo dovrebbe superare queste bande
- **Utilizzo**: Identificazione di condizioni estreme di ipercomprato/ipervenduto
- **Segnale**: Il tocco delle bande esterne spesso indica potenziali punti di inversione
**Bande Interne (Moltiplicatore Default 1.0)**
- **Copertura**: Circa il **68%** dei movimenti di prezzo
- **Significato**: Il 32% dei movimenti può normalmente superare queste bande
- **Utilizzo**: Identificazione di movimenti di prezzo significativi ma non estremi
- **Segnale**: La rottura delle bande interne suggerisce un movimento direzionale significativo
### Impostazioni Raccomandate per Tipo di Mercato
**Configurazione Standard**
```
- Bande Esterne: 2.0 (copertura 95%)
- Bande Interne: 1.0 (copertura 68%)
```
**Mercati ad Alta Volatilità (Crypto, Mercati Emergenti)**
```
- Bande Esterne: 2.5-3.0 (copertura 99%+)
- Bande Interne: 1.5 (copertura 85%)
```
**Mercati a Bassa Volatilità (Forex Maggiori, Azioni Blue Chip)**
```
- Bande Esterne: 1.5 (copertura 86%)
- Bande Interne: 0.5 (copertura 38%)
```
### Applicazioni nel Trading
**Analisi del Trend**
- La pendenza della linea di regressione indica la direzione generale del trend
- Pendenze ripide suggeriscono trend forti, pendenze piatte suggeriscono consolidamento
- Prezzo sopra la linea centrale = bias rialzista, sotto = bias ribassista
**Livelli di Supporto e Resistenza**
- **Bande interne**: Agiscono come supporto/resistenza di primo livello (probabilità 68%)
- **Bande esterne**: Agiscono come supporto/resistenza forte (probabilità 95%)
- **Livelli dinamici**: Le bande si adattano automaticamente alle condizioni di mercato
**Strategie di Entrata e Uscita**
*Usando le Bande Interne (1.0σ):*
- **Segnali di breakout**: Il prezzo che rompe le bande interne con volume conferma la direzione
- **Entrate su pullback**: Il prezzo che ritorna alla banda interna dopo un breakout offre opportunità di entrata
- **Range trading**: Il prezzo che oscilla tra bande interne suggerisce consolidamento
*Usando le Bande Esterne (2.0σ):*
- **Segnali di inversione**: Il prezzo che tocca le bande esterne spesso indica esaurimento
- **Condizioni estreme**: Solo il 5% dei movimenti raggiunge questi livelli
- **Presa di profitto**: Considera di chiudere posizioni quando il prezzo raggiunge le bande esterne
**Applicazioni di Gestione del Rischio**
- **Posizionamento Stop Loss**: Usa la banda opposta come livello di stop (alta probabilità di non essere colpito casualmente)
- **Dimensionamento Posizioni**: Canali più larghi = volatilità maggiore = posizioni più piccole
- **Rischio/Rendimento**: Misura i movimenti potenziali usando le distanze delle bande
**Pianificazione Futura con Proiezioni**
- **Impostazione Target**: Le linee di proiezione arancioni mostrano potenziali supporti/resistenze futuri
- **Durata del Trade**: Pianifica i periodi di detenzione basandoti sulla direzione del canale proiettato
- **Timing di Mercato**: Anticipa quando il prezzo potrebbe raggiungere livelli significativi
### Esempi Pratici di Trading
**Scenario Trend Rialzista**
1. Prezzo costantemente sopra la linea centrale (trend confermato)
2. Rimbalzi dalla banda interna inferiore = opportunità di re-entrata
3. Raggiungimento banda esterna superiore = considera presa di profitto
4. Rottura sopra banda esterna superiore = potenziale accelerazione del trend
**Mercato in Range**
1. Prezzo oscilla tra bande interne = modalità range trading
2. Vendi vicino alla banda interna superiore, compra vicino a quella inferiore
3. Breakout dalle bande esterne = segnale di rottura del range
**Scenario Trend Ribassista**
1. Prezzo costantemente sotto la linea centrale (downtrend confermato)
2. Rimbalzi dalla banda interna superiore = opportunità di short
3. Raggiungimento banda esterna inferiore = potenziale rimbalzo da ipervenduto
4. Rottura sotto banda esterna inferiore = probabile continuazione del trend
### Migliori Pratiche e Consigli
- **Selezione Timeframe**: Usa timeframe più alti (4H, Giornaliero) per maggiore significatività statistica
- **Conferma**: Combina con analisi del volume e altri indicatori
- **Adattamento al Mercato**: Regola i moltiplicatori in base alle caratteristiche di volatilità dell'asset
- **Lunghezza Regressione**: Periodi più corti (100-200) per segnali reattivi, più lunghi (400-800) per trend stabili
- **Falsi Breakout**: Aspetta la chiusura oltre le bande piuttosto che solo il tocco
- **Conferma del Volume**: Volume più alto sui breakout delle bande aumenta l'affidabilità del segnale
Mavericks ORBMavericks ORB – Opening Range Breakout Zones
Overview:
Mavericks ORB is a fully customizable Opening Range Breakout (ORB) indicator designed for serious intraday traders. It dynamically plots the ORB range for your chosen session and timeframe (5 min, 15 min, or any custom range), projects powerful price zones above and below the range, and automatically includes key midpoints—giving you actionable levels for breakouts, reversals, and dynamic support/resistance.
How It Works:
Configurable Session & Duration:
Choose any session start time and range length (e.g., 5 or 15 minutes) to define your personal ORB window.
Automatic Range Detection:
The indicator marks the high, low, and midpoint of the ORB range as soon as your defined period completes.
Dynamic Zones & Midpoints:
Three replicated price zones are projected both above and below the initial ORB, each calculated using the original ORB’s range and evenly spaced. Each zone includes its own midpoint for nuanced trade management and target planning.
Pre-Market Levels:
Tracks pre-market high and low (with fully customizable colors), giving you crucial context as the regular session opens.
Session Range Visualization:
Highlights the defined trading session with an adjustable background color for easy visual tracking.
Real-Time Info Table:
Displays a summary of all key levels—ORB range, highs, lows, and pre-market levels—right on your chart.
Full Customization:
Adjust all colors, enable/disable session range shading, show/hide labels, and tweak all session settings to fit your trading style.
Key Features:
Select any ORB start time and duration (fully customizable)
Plots ORB High, Low, and Midpoint in real time
Automatically projects 3 zones above and 3 zones below, each with its own midpoint
Pre-market high/low detection and labeling
Configurable session shading for visual clarity
At-a-glance info table with all major levels
Multiple color customizations for all zones and lines
Ready-to-use alert conditions for session and pre-market events
How to Use:
Set your preferred ORB start time and duration (e.g., 9:30 AM, 5 min for US equities).
Watch as the ORB forms and updates in real time.
Once complete, the high, low, and midpoint are plotted.
Monitor the projected zones above and below.
Use these for breakouts, targets, or support/resistance.
Reference the info table for all levels and pre-market context.
Customize as you go: Adjust colors, shading, and session settings to your needs.
Who is this for?
Intraday traders who trade the opening range breakout strategy (stocks, futures, forex, crypto)
Price action traders who want clean, actionable levels
Anyone looking for a reliable, highly visual ORB framework on TradingView
Short Description (for TradingView):
Mavericks ORB is a customizable Opening Range Breakout indicator that plots your session’s high, low, midpoint, and projects three dynamic zones above and below the range including midpoints for powerful trade planning. Includes pre-market levels, session highlights, and a real-time info table. Perfect for intraday price action traders.
What Makes Mavericks ORB Unique?
Flexible: Works with any timeframe or session.
Visual: Clean, uncluttered, and fully customizable.
Strategic: Automatic zone and midpoint projection, not just lines.
Practical: At-a-glance info table and real pre-market context.
Alert-ready: Triggers for session and pre-market events.
If you want to include any tips or a personal note (some script publishers do), you could add:
Tip: Use the midpoints for partial profit-taking or to gauge momentum strength. Adjust your ORB window for different asset classes or volatility environments.
Market Zone Analyzer[BullByte]Understanding the Market Zone Analyzer
---
1. Purpose of the Indicator
The Market Zone Analyzer is a Pine Script™ (version 6) indicator designed to streamline market analysis on TradingView. Rather than scanning multiple separate tools, it unifies four core dimensions—trend strength, momentum, price action, and market activity—into a single, consolidated view. By doing so, it helps traders:
• Save time by avoiding manual cross-referencing of disparate signals.
• Reduce decision-making errors that can arise from juggling multiple indicators.
• Gain a clear, reliable read on whether the market is in a bullish, bearish, or sideways phase, so they can more confidently decide to enter, exit, or hold a position.
---
2. Why a Trader Should Use It
• Unified View: Combines all essential market dimensions into one easy-to-read score and dashboard, eliminating the need to piece together signals manually.
• Adaptability: Automatically adjusts its internal weighting for trend, momentum, and price action based on current volatility. Whether markets are choppy or calm, the indicator remains relevant.
• Ease of Interpretation: Outputs a simple “BULLISH,” “BEARISH,” or “SIDEWAYS” label, supplemented by an intuitive on-chart dashboard and an oscillator plot that visually highlights market direction.
• Reliability Features: Built-in smoothing of the net score and hysteresis logic (requiring consecutive confirmations before flips) minimize false signals during noisy or range-bound phases.
---
3. Why These Specific Indicators?
This script relies on a curated set of well-established technical tools, each chosen for its particular strength in measuring one of the four core dimensions:
1. Trend Strength:
• ADX/DMI (Average Directional Index / Directional Movement Index): Measures how strong a trend is, and whether the +DI line is above the –DI line (bullish) or vice versa (bearish).
• Moving Average Slope (Fast MA vs. Slow MA): Compares a shorter-period SMA to a longer-period SMA; if the fast MA sits above the slow MA, it confirms an uptrend, and vice versa for a downtrend.
• Ichimoku Cloud Differential (Senkou A vs. Senkou B): Provides a forward-looking view of trend direction; Senkou A above Senkou B signals bullishness, and the opposite signals bearishness.
2. Momentum:
• Relative Strength Index (RSI): Identifies overbought (above its dynamically calculated upper bound) or oversold (below its lower bound) conditions; changes in RSI often precede price reversals.
• Stochastic %K: Highlights shifts in short-term momentum by comparing closing price to the recent high/low range; values above its upper band signal bullish momentum, below its lower band signal bearish momentum.
• MACD Histogram: Measures the difference between the MACD line and its signal line; a positive histogram indicates upward momentum, a negative histogram indicates downward momentum.
3. Price Action:
• Highest High / Lowest Low (HH/LL) Range: Over a defined lookback period, this captures breakout or breakdown levels. A closing price near the recent highs (with a positive MA slope) yields a bullish score, and near the lows (with a negative MA slope) yields a bearish score.
• Heikin-Ashi Doji Detection: Uses Heikin-Ashi candles to identify indecision or continuation patterns. A small Heikin-Ashi body (doji) relative to recent volatility is scored as neutral; a larger body in the direction of the MA slope is scored bullish or bearish.
• Candle Range Measurement: Compares each candle’s high-low range against its own dynamic band (average range ± standard deviation). Large candles aligning with the prevailing trend score bullish or bearish accordingly; unusually small candles can indicate exhaustion or consolidation.
4. Market Activity:
• Bollinger Bands Width (BBW): Measures the distance between BB upper and lower bands; wide bands indicate high volatility, narrow bands indicate low volatility.
• Average True Range (ATR): Quantifies average price movement (volatility). A sudden spike in ATR suggests a volatile environment, while a contraction suggests calm.
• Keltner Channels Width (KCW): Similar to BBW but uses ATR around an EMA. Provides a second layer of volatility context, confirming or contrasting BBW readings.
• Volume (with Moving Average): Compares current volume to its moving average ± standard deviation. High volume validates strong moves; low volume signals potential lack of conviction.
By combining these tools, the indicator captures trend direction, momentum strength, price-action nuances, and overall market energy, yielding a more balanced and comprehensive assessment than any single tool alone.
---
4. What Makes This Indicator Stand Out
• Multi-Dimensional Analysis: Rather than relying on a lone oscillator or moving average crossover, it simultaneously evaluates trend, momentum, price action, and activity.
• Dynamic Weighting: The relative importance of trend, momentum, and price action adjusts automatically based on real-time volatility (Market Activity State). For example, in highly volatile conditions, trend and momentum signals carry more weight; in calm markets, price action signals are prioritized.
• Stability Mechanisms:
• Smoothing: The net score is passed through a short moving average, filtering out noise, especially on lower timeframes.
• Hysteresis: Both Market Activity State and the final bullish/bearish/sideways zone require two consecutive confirmations before flipping, reducing whipsaw.
• Visual Interpretation: A fully customizable on-chart dashboard displays each sub-indicator’s value, regime, score, and comment, all color-coded. The oscillator plot changes color to reflect the current market zone (green for bullish, red for bearish, gray for sideways) and shows horizontal threshold lines at +2, 0, and –2.
---
5. Recommended Timeframes
• Short-Term (5 min, 15 min): Day traders and scalpers can benefit from rapid signals, but should enable smoothing (and possibly disable hysteresis) to reduce false whipsaws.
• Medium-Term (1 h, 4 h): Swing traders find a balance between responsiveness and reliability. Less smoothing is required here, and the default parameters (e.g., ADX length = 14, RSI length = 14) perform well.
• Long-Term (Daily, Weekly): Position traders tracking major trends can disable smoothing for immediate raw readings, since higher-timeframe noise is minimal. Adjust lookback lengths (e.g., increase adxLength, rsiLength) if desired for slower signals.
Tip: If you keep smoothing off, stick to timeframes of 1 h or higher to avoid excessive signal “chatter.”
---
6. How Scoring Works
A. Individual Indicator Scores
Each sub-indicator is assigned one of three discrete scores:
• +1 if it indicates a bullish condition (e.g., RSI above its dynamically calculated upper bound).
• 0 if it is neutral (e.g., RSI between upper and lower bounds).
• –1 if it indicates a bearish condition (e.g., RSI below its dynamically calculated lower bound).
Examples of individual score assignments:
• ADX/DMI:
• +1 if ADX ≥ adxThreshold and +DI > –DI (strong bullish trend)
• –1 if ADX ≥ adxThreshold and –DI > +DI (strong bearish trend)
• 0 if ADX < adxThreshold (trend strength below threshold)
• RSI:
• +1 if RSI > RSI_upperBound
• –1 if RSI < RSI_lowerBound
• 0 otherwise
• ATR (as part of Market Activity):
• +1 if ATR > (ATR_MA + stdev(ATR))
• –1 if ATR < (ATR_MA – stdev(ATR))
• 0 otherwise
Each of the four main categories shares this same +1/0/–1 logic across their sub-components.
B. Category Scores
Once each sub-indicator reports +1, 0, or –1, these are summed within their categories as follows:
• Trend Score = (ADX score) + (MA slope score) + (Ichimoku differential score)
• Momentum Score = (RSI score) + (Stochastic %K score) + (MACD histogram score)
• Price Action Score = (Highest-High/Lowest-Low score) + (Heikin-Ashi doji score) + (Candle range score)
• Market Activity Raw Score = (BBW score) + (ATR score) + (KC width score) + (Volume score)
Each category’s summed value can range between –3 and +3 (for Trend, Momentum, and Price Action), and between –4 and +4 for Market Activity raw.
C. Market Activity State and Dynamic Weight Adjustments
Rather than contributing directly to the netScore like the other three categories, Market Activity determines how much weight to assign to Trend, Momentum, and Price Action:
1. Compute Market Activity Raw Score by summing BBW, ATR, KCW, and Volume individual scores (each +1/0/–1).
2. Bucket into High, Medium, or Low Activity:
• High if raw Score ≥ 2 (volatile market).
• Low if raw Score ≤ –2 (calm market).
• Medium otherwise.
3. Apply Hysteresis (if enabled): The state only flips after two consecutive bars register the same high/low/medium label.
4. Set Category Weights:
• High Activity: Trend = 50 %, Momentum = 35 %, Price Action = 15 %.
• Low Activity: Trend = 25 %, Momentum = 20 %, Price Action = 55 %.
• Medium Activity: Use the trader’s base weight inputs (e.g., Trend = 40 %, Momentum = 30 %, Price Action = 30 % by default).
D. Calculating the Net Score
5. Normalize Base Weights (so that the sum of Trend + Momentum + Price Action always equals 100 %).
6. Determine Current Weights based on the Market Activity State (High/Medium/Low).
7. Compute Each Category’s Contribution: Multiply (categoryScore) × (currentWeight).
8. Sum Contributions to get the raw netScore (a floating-point value that can exceed ±3 when scores are strong).
9. Smooth the netScore over two bars (if smoothing is enabled) to reduce noise.
10. Apply Hysteresis to the Final Zone:
• If the smoothed netScore ≥ +2, the bar is classified as “Bullish.”
• If the smoothed netScore ≤ –2, the bar is classified as “Bearish.”
• Otherwise, it is “Sideways.”
• To prevent rapid flips, the script requires two consecutive bars in the new zone before officially changing the displayed zone (if hysteresis is on).
E. Thresholds for Zone Classification
• BULLISH: netScore ≥ +2
• BEARISH: netScore ≤ –2
• SIDEWAYS: –2 < netScore < +2
---
7. Role of Volatility (Market Activity State) in Scoring
Volatility acts as a dynamic switch that shifts which category carries the most influence:
1. High Activity (Volatile):
• Detected when at least two sub-scores out of BBW, ATR, KCW, and Volume equal +1.
• The script sets Trend weight = 50 % and Momentum weight = 35 %. Price Action weight is minimized at 15 %.
• Rationale: In volatile markets, strong trending moves and momentum surges dominate, so those signals are more reliable than nuanced candle patterns.
2. Low Activity (Calm):
• Detected when at least two sub-scores out of BBW, ATR, KCW, and Volume equal –1.
• The script sets Price Action weight = 55 %, Trend = 25 %, and Momentum = 20 %.
• Rationale: In quiet, sideways markets, subtle price-action signals (breakouts, doji patterns, small-range candles) are often the best early indicators of a new move.
3. Medium Activity (Balanced):
• Raw Score between –1 and +1 from the four volatility metrics.
• Uses whatever base weights the trader has specified (e.g., Trend = 40 %, Momentum = 30 %, Price Action = 30 %).
Because volatility can fluctuate rapidly, the script employs hysteresis on Market Activity State: a new High or Low state must occur on two consecutive bars before weights actually shift. This avoids constant back-and-forth weight changes and provides more stability.
---
8. Scoring Example (Hypothetical Scenario)
• Symbol: Bitcoin on a 1-hour chart.
• Market Activity: Raw volatility sub-scores show BBW (+1), ATR (+1), KCW (0), Volume (+1) → Total raw Score = +3 → High Activity.
• Weights Selected: Trend = 50 %, Momentum = 35 %, Price Action = 15 %.
• Trend Signals:
• ADX strong and +DI > –DI → +1
• Fast MA above Slow MA → +1
• Ichimoku Senkou A > Senkou B → +1
→ Trend Score = +3
• Momentum Signals:
• RSI above upper bound → +1
• MACD histogram positive → +1
• Stochastic %K within neutral zone → 0
→ Momentum Score = +2
• Price Action Signals:
• Highest High/Lowest Low check yields 0 (close not near extremes)
• Heikin-Ashi doji reading is neutral → 0
• Candle range slightly above upper bound but trend is strong, so → +1
→ Price Action Score = +1
• Compute Net Score (before smoothing):
• Trend contribution = 3 × 0.50 = 1.50
• Momentum contribution = 2 × 0.35 = 0.70
• Price Action contribution = 1 × 0.15 = 0.15
• Raw netScore = 1.50 + 0.70 + 0.15 = 2.35
• Since 2.35 ≥ +2 and hysteresis is met, the final zone is “Bullish.”
Although the netScore lands at 2.35 (Bullish), smoothing might bring it slightly below 2.00 on the first bar (e.g., 1.90), in which case the script would wait for a second consecutive reading above +2 before officially classifying the zone as Bullish (if hysteresis is enabled).
---
9. Correlation Between Categories
The four categories—Trend Strength, Momentum, Price Action, and Market Activity—often reinforce or offset one another. The script takes advantage of these natural correlations:
• Bullish Alignment: If ADX is strong and pointed upward, fast MA is above slow MA, and Ichimoku is positive, that usually coincides with RSI climbing above its upper bound and the MACD histogram turning positive. In such cases, both Trend and Momentum categories generate +1 or +2. Because the Market Activity State is likely High (given the accompanying volatility), Trend and Momentum weights are at their peak, so the netScore quickly crosses into Bullish territory.
• Sideways/Consolidation: During a low-volatility, sideways phase, ADX may fall below its threshold, MAs may flatten, and RSI might hover in the neutral band. However, subtle price-action signals (like a small breakout candle or a Heikin-Ashi candle with a slight bias) can still produce a +1 in the Price Action category. If Market Activity is Low, Price Action’s weight (55 %) can carry enough influence—even if Trend and Momentum are neutral—to push the netScore out of “Sideways” into a mild bullish or bearish bias.
• Opposing Signals: When Trend is bullish but Momentum turns negative (for example, price continues up but RSI rolls over), the two scores can partially cancel. Market Activity may remain Medium, in which case the netScore lingers near zero (Sideways). The trader can then wait for either a clearer momentum shift or a fresh price-action breakout before committing.
By dynamically recognizing these correlations and adjusting weights, the indicator ensures that:
• When Trend and Momentum align (and volatility supports it), the netScore leaps strongly into Bullish or Bearish.
• When Trend is neutral but Price Action shows an early move in a low-volatility environment, Price Action’s extra weight in the Low Activity State can still produce actionable signals.
---
10. Market Activity State & Its Role (Detailed)
The Market Activity State is not a direct category score—it is an overarching context setter for how heavily to trust Trend, Momentum, or Price Action. Here’s how it is derived and applied:
1. Calculate Four Volatility Sub-Scores:
• BBW: Compare the current band width to its own moving average ± standard deviation. If BBW > (BBW_MA + stdev), assign +1 (high volatility); if BBW < (BBW_MA × 0.5), assign –1 (low volatility); else 0.
• ATR: Compare ATR to its moving average ± standard deviation. A spike above the upper threshold is +1; a contraction below the lower threshold is –1; otherwise 0.
• KCW: Same logic as ATR but around the KCW mean.
• Volume: Compare current volume to its volume MA ± standard deviation. Above the upper threshold is +1; below the lower threshold is –1; else 0.
2. Sum Sub-Scores → Raw Market Activity Score: Range between –4 and +4.
3. Assign Market Activity State:
• High Activity: Raw Score ≥ +2 (at least two volatility metrics are strongly spiking).
• Low Activity: Raw Score ≤ –2 (at least two metrics signal unusually low volatility or thin volume).
• Medium Activity: Raw Score is between –1 and +1 inclusive.
4. Hysteresis for Stability:
• If hysteresis is enabled, a new state only takes hold after two consecutive bars confirm the same High, Medium, or Low label.
• This prevents the Market Activity State from bouncing around when volatility is on the fence.
5. Set Category Weights Based on Activity State:
• High Activity: Trend = 50 %, Momentum = 35 %, Price Action = 15 %.
• Low Activity: Trend = 25 %, Momentum = 20 %, Price Action = 55 %.
• Medium Activity: Use trader’s base weights (e.g., Trend = 40 %, Momentum = 30 %, Price Action = 30 %).
6. Impact on netScore: Because category scores (–3 to +3) multiply by these weights, High Activity amplifies the effect of strong Trend and Momentum scores; Low Activity amplifies the effect of Price Action.
7. Market Context Tooltip: The dashboard includes a tooltip summarizing the current state—e.g., “High activity, trend and momentum prioritized,” “Low activity, price action prioritized,” or “Balanced market, all categories considered.”
---
11. Category Weights: Base vs. Dynamic
Traders begin by specifying base weights for Trend Strength, Momentum, and Price Action that sum to 100 %. These apply only when volatility is in the Medium band. Once volatility shifts:
• High Volatility Overrides:
• Trend jumps from its base (e.g., 40 %) to 50 %.
• Momentum jumps from its base (e.g., 30 %) to 35 %.
• Price Action is reduced to 15 %.
Example: If base weights were Trend = 40 %, Momentum = 30 %, Price Action = 30 %, then in High Activity they become 50/35/15. A Trend score of +3 now contributes 3 × 0.50 = +1.50 to netScore; a Momentum +2 contributes 2 × 0.35 = +0.70. In total, Trend + Momentum can easily push netScore above the +2 threshold on its own.
• Low Volatility Overrides:
• Price Action leaps from its base (30 %) to 55 %.
• Trend falls to 25 %, Momentum falls to 20 %.
Why? When markets are quiet, subtle candle breakouts, doji patterns, and small-range expansions tend to foreshadow the next swing more effectively than raw trend readings. A Price Action score of +3 in this state contributes 3 × 0.55 = +1.65, which can carry the netScore toward +2—even if Trend and Momentum are neutral or only mildly positive.
Because these weight shifts happen only after two consecutive bars confirm a High or Low state (if hysteresis is on), the indicator avoids constantly flipping its emphasis during borderline volatility phases.
---
12. Dominant Category Explained
Within the dashboard, a label such as “Trend Dominant,” “Momentum Dominant,” or “Price Action Dominant” appears when one category’s absolute weighted contribution to netScore is the largest. Concretely:
• Compute each category’s weighted contribution = (raw category score) × (current weight).
• Compare the absolute values of those three contributions.
• The category with the highest absolute value is flagged as Dominant for that bar.
Why It Matters:
• Momentum Dominant: Indicates that the combined force of RSI, Stochastic, and MACD (after weighting) is pushing netScore farther than either Trend or Price Action. In practice, it means that short-term sentiment and speed of change are the primary drivers right now, so traders should watch for continued momentum signals before committing to a trade.
• Trend Dominant: Means ADX, MA slope, and Ichimoku (once weighted) outweigh the other categories. This suggests a strong directional move is in place; trend-following entries or confirming pullbacks are likely to succeed.
• Price Action Dominant: Occurs when breakout/breakdown patterns, Heikin-Ashi candle readings, and range expansions (after weighting) are the most influential. This often happens in calmer markets, where subtle shifts in candle structure can foreshadow bigger moves.
By explicitly calling out which category is carrying the most weight at any moment, the dashboard gives traders immediate insight into why the netScore is tilting toward bullish, bearish, or sideways.
---
13. Oscillator Plot: How to Read It
The “Net Score” oscillator sits below the dashboard and visually displays the smoothed netScore as a line graph. Key features:
1. Value Range: In normal conditions it oscillates roughly between –3 and +3, but extreme confluences can push it outside that range.
2. Horizontal Threshold Lines:
• +2 Line (Bullish threshold)
• 0 Line (Neutral midline)
• –2 Line (Bearish threshold)
3. Zone Coloring:
• Green Background (Bullish Zone): When netScore ≥ +2.
• Red Background (Bearish Zone): When netScore ≤ –2.
• Gray Background (Sideways Zone): When –2 < netScore < +2.
4. Dynamic Line Color:
• The plotted netScore line itself is colored green in a Bullish Zone, red in a Bearish Zone, or gray in a Sideways Zone, creating an immediate visual cue.
Interpretation Tips:
• Crossing Above +2: Signals a strong enough combined trend/momentum/price-action reading to classify as Bullish. Many traders wait for a clear crossing plus a confirmation candle before entering a long position.
• Crossing Below –2: Indicates a strong Bearish signal. Traders may consider short or exit strategies.
• Rising Slope, Even Below +2: If netScore climbs steadily from neutral toward +2, it demonstrates building bullish momentum.
• Divergence: If price makes a higher high but the oscillator fails to reach a new high, it can warn of weakening momentum and a potential reversal.
---
14. Comments and Their Necessity
Every sub-indicator (ADX, MA slope, Ichimoku, RSI, Stochastic, MACD, HH/LL, Heikin-Ashi, Candle Range, BBW, ATR, KCW, Volume) generates a short comment that appears in the detailed dashboard. Examples:
• “Strong bullish trend” or “Strong bearish trend” for ADX/DMI
• “Fast MA above slow MA” or “Fast MA below slow MA” for MA slope
• “RSI above dynamic threshold” or “RSI below dynamic threshold” for RSI
• “MACD histogram positive” or “MACD histogram negative” for MACD Hist
• “Price near highs” or “Price near lows” for HH/LL checks
• “Bullish Heikin Ashi” or “Bearish Heikin Ashi” for HA Doji scoring
• “Large range, trend confirmed” or “Small range, trend contradicted” for Candle Range
Additionally, the top-row comment for each category is:
• Trend: “Highly Bullish,” “Highly Bearish,” or “Neutral Trend.”
• Momentum: “Strong Momentum,” “Weak Momentum,” or “Neutral Momentum.”
• Price Action: “Bullish Action,” “Bearish Action,” or “Neutral Action.”
• Market Activity: “Volatile Market,” “Calm Market,” or “Stable Market.”
Reasons for These Comments:
• Transparency: Shows exactly how each sub-indicator contributed to its category score.
• Education: Helps traders learn why a category is labeled bullish, bearish, or neutral, building intuition over time.
• Customization: If, for example, the RSI comment says “RSI neutral” despite an impending trend shift, a trader might choose to adjust RSI length or thresholds.
In the detailed dashboard, hovering over each comment cell also reveals a tooltip with additional context (e.g., “Fast MA above slow MA” or “Senkou A above Senkou B”), helping traders understand the precise rule behind that +1, 0, or –1 assignment.
---
15. Real-Life Example (Consolidated)
• Instrument & Timeframe: Bitcoin (BTCUSD), 1-hour chart.
• Current Market Activity: BBW and ATR both spike (+1 each), KCW is moderately high (+1), but volume is only neutral (0) → Raw Market Activity Score = +2 → State = High Activity (after two bars, if hysteresis is on).
• Category Weights Applied: Trend = 50 %, Momentum = 35 %, Price Action = 15 %.
• Trend Sub-Scores:
1. ADX = 25 (above threshold 20) with +DI > –DI → +1.
2. Fast MA (20-period) sits above Slow MA (50-period) → +1.
3. Ichimoku: Senkou A > Senkou B → +1.
→ Trend Score = +3.
• Momentum Sub-Scores:
4. RSI = 75 (above its moving average +1 stdev) → +1.
5. MACD histogram = +0.15 → +1.
6. Stochastic %K = 50 (mid-range) → 0.
→ Momentum Score = +2.
• Price Action Sub-Scores:
7. Price is not within 1 % of the 20-period high/low and slope = positive → 0.
8. Heikin-Ashi body is slightly larger than stdev over last 5 bars with haClose > haOpen → +1.
9. Candle range is just above its dynamic upper bound but trend is already captured, so → +1.
→ Price Action Score = +2.
• Calculate netScore (before smoothing):
• Trend contribution = 3 × 0.50 = 1.50
• Momentum contribution = 2 × 0.35 = 0.70
• Price Action contribution = 2 × 0.15 = 0.30
• Raw netScore = 1.50 + 0.70 + 0.30 = 2.50 → Immediately classified as Bullish.
• Oscillator & Dashboard Output:
• The oscillator line crosses above +2 and turns green.
• Dashboard displays:
• Trend Regime “BULLISH,” Trend Score = 3, Comment = “Highly Bullish.”
• Momentum Regime “BULLISH,” Momentum Score = 2, Comment = “Strong Momentum.”
• Price Action Regime “BULLISH,” Price Action Score = 2, Comment = “Bullish Action.”
• Market Activity State “High,” Comment = “Volatile Market.”
• Weights: Trend 50 %, Momentum 35 %, Price Action 15 %.
• Dominant Category: Trend (because 1.50 > 0.70 > 0.30).
• Overall Score: 2.50, posCount = (three +1s in Trend) + (two +1s in Momentum) + (two +1s in Price Action) = 7 bullish signals, negCount = 0.
• Final Zone = “BULLISH.”
• The trader sees that both Trend and Momentum are reinforcing each other under high volatility. They might wait one more candle for confirmation but already have strong evidence to consider a long.
---
• .
---
Disclaimer
This indicator is strictly a technical analysis tool and does not constitute financial advice. All trading involves risk, including potential loss of capital. Past performance is not indicative of future results. Traders should:
• Always backtest the “Market Zone Analyzer ” on their chosen symbols and timeframes before committing real capital.
• Combine this tool with sound risk management, position sizing, and, if possible, fundamental analysis.
• Understand that no indicator is foolproof; always be prepared for unexpected market moves.
Goodluck
-BullByte!
---
HARSI PRO v2 - Advanced Adaptive Heikin-Ashi RSI OscillatorThis script is a fully re-engineered and enhanced version of the original Heikin-Ashi RSI Oscillator created by JayRogers. While it preserves the foundational concept and visual structure of the original indicatorusing Heikin-Ashi-style candles to represent RSI movementit introduces a range of institutional-grade engines and real-time analytics modules.
The core idea behind HARSI is to visualize the internal structure of RSI behavior using candle representations. This gives traders a clearer sense of trend continuity, exhaustion, and momentum inflection. In this upgraded version, the system is extended far beyond basic visualization into a comprehensive diagnostic and context-tracking tool.
Core Enhancements and Features
1. Heikin-Ashi RSI Candles
The base HARSI logic transforms RSI values into open, high, low, and close components, which are plotted as Heikin-Ashi-style candles. The open values are smoothed with a user-controlled bias setting, and the high/low are calculated from zero-centered RSI values.
2. Smoothed RSI Histogram and Plot
A secondary RSI plot and histogram are available for traditional RSI interpretation, optionally smoothed using a custom midpoint EMA process.
3. Dynamic Stochastic RSI Ribbon
The indicator optionally includes a smoothed Stochastic RSI ribbon with directional fill to highlight acceleration and reversal zones.
4. Real-Time Meta-State Engine
This engine determines the current market environmentneutral, breakout, or reversalbased on multiple adaptive conditions including volatility compression, momentum thrust, volume behavior, and composite reversal scoring.
5. Adaptive Overbought/Oversold Zone Engine
Instead of using fixed RSI thresholds, this engine dynamically adjusts OB/OS boundaries based on recent RSI range and normalized price volatility. This makes the OB/OS levels context-sensitive and more accurate across different instruments and regimes.
6. Composite Reversal Score Engine
A real-time score between 0 and 5 is generated using four components:
* OB/OS proximity (zone score)
* RSI slope behavior
* Volume state (burst or exhaustion)
* Trend continuation penalty based on position versus trend bias
This score allows for objective filtering of reversal zones and breakout traps.
7. Kalman Velocity Filter
A Kalman-style adaptive smoothing filter is applied to RSI for calculating velocity and acceleration. This allows for real-time detection of stalls and thrusts in RSI behavior.
8. Predictive Breakout Estimator
Uses ATR compression and RSI thrusting conditions to detect likely breakout environments. This logic contributes to the Meta-State Engine and the Breakout Risk dashboard metric.
9. Volume Acceleration Model
Real-time detection of volume bursts and fades based on VWMA baselines. Volume exhaustion warnings are used to qualify or disqualify reversals and breakouts.
10. Trend Bias and Regime Detection
Uses RSI slope, HARSI body impulse, and normalized ATR to classify the current trend state and directional bias. This forms the basis for filtering false reversals during strong trends.
11. Dashboard with Tooltips
A clean, table displays six key metrics in real time:
* Meta State
* Reversal Score
* Trend Bias
* Volume State
* Volatility Regime
* Breakout Risk
Each cell includes a descriptive tooltip explaining why the value is being shown based on internal state calculations.
How It Works Internally
* The system calculates a zero-centered RSI and builds candle structures using high, low, and smoothed open/close values.
* Volatility normalization is used throughout the script, including ATR-based thresholds and dynamic scaling of OB/OS zones.
* Momentum is filtered through smoothed slope calculations and HARSI body size measurements.
* Volume activity is compared against VWMA using configurable multipliers to detect institutional-level activity or exhaustion.
* Each regime detection module contributes to a centralized metaState classifier that determines whether the environment is conducive to reversal, breakout, or neutral action.
* All major signal and context values are continuously updated in a dashboard table with logic-driven color coding and tooltips.
Based On and Credits
This script is based on the original Heikin-Ashi RSI Oscillator by JayRogers . All visual elements from the original version, including candle plotting and color configurations, have been retained and extended. Significant backend enhancements were added by AresIQ for the 2025 release. The script remains open-source under the original attribution license. Credit to JayRogers is preserved and required for any derivative versions.