Weighted Volume Profile | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Weighted Volume Profile Indicator! This indicator renders a volume profile based on the volume of latest candlesticks. It can be adjusted to give more weight to recent or past candlesticks, or can be used as a normal volume profile. For more information, please read the full write-up.
Features of the new Weighted Volume Profile indicator :
Renders Volume Profile Of Current Ticker
Adjustable Weighthing Towards Past or Recent
Customizable Row Count & Maximum Distance
Left or Right Alignment
More Styling Options
🚩UNIQUENESS
This indicator differs from a normal volume profile indicator by it's ability to weight volumes based on their distance to the current time. Giving weight to volumes may offer new trading opportunities to traders as they can now see the most recent Point Of Control (POC) or a more powerful but past POC based on their choice. The indicator also has a variety of useful styling settings such as aligning the volume profile to the right or the left of the chart, POC Line styling and color settings for bullish & bearish volumes.
📌 HOW DOES IT WORK ?
A volume profile provides an in-depth look at trading activity over a period of time by plotting a histogram on the price axis. This indicator can also give weight to volumes based on their distance to the current time, essentially determining their importance for the profile. Here is how it works step-by-step :
1. Determine how much candlesticks the volume profile will cover (Analyze Bars setting)
2. Make a range from the highest point of chart to the lowest point of chart, then divide it into rows (Row Count setting)
3. For each candlestick, add it's volume to the corresponding row in the range. Note that the volume can be added into several rows if it overlaps with them.
4. If the candlestick is a bullish candlestick, we add it's volume into the bullish volume of the row, if it's a bearish candlestick, we add it to the bearish volume of the row.
With the weighted volume mode, which is activated if "Volume Weighthing" setting is set to "Recent" or "Past", all volumes get a penalty based on their distance to the latest candletstick. For example, if the setting is set to "Recent", the latest candlestick contributes it's volume by 100% to the corresponding row, but the candlestick which is 50 candlesticks far from the current candlestick only contributes it's volume by ~17% to the row. The same applies to the "Past" setting, but in the reversed order, where past candlesticks have more priority than the current ones.
Volume contribution percent for "Recent" setting : ((100 * 0.85) / (i + 1)) + (100 * (1.0 - 0.85))
Volume contribution percent for "Past" setting : ((100 * 0.85) * ((i + 1) / N)) + (100 * (1.0 - 0.85))
Where i = candlestick index from right to left, N = total number of candlesticks analyzed by the volume profile.
The Point Of Control (POC) line is drawn from the row with the most total volume, and is generally considered as a strong level because a lot of trading volume happened on that particular row. Traders may use this line as a support & resistance level.
Traders can use this indicator to have an insight of areas which price moves quickly without much volume, or see areas that holds the price still for much longer and plan their trades accordingly.
⚙️SETTINGS
1. General Configuration
Analyze Bars -> Total amount of bars that will be analyzed by the indicator from right to left.
Row Count -> The amount of rows that will the vertical range of chart will be divided into.
Volume Weighting -> The volume weighting mode as explained in the write-up.
2. Style
Align To -> The alignment of the volume profile.
Phân tích Xu hướng
Expectation Breakers [QuantVue]In technical analysis, an "Expectation Breaker" refers to a market event where price action defies typical patterns and anticipated movements, signaling potential shifts in market sentiment and direction.
This indicator looks to take advantage of these opportunities by identifying 2 types of Expectation Breakers: Downside Reversal Buybacks and Upside Reversal Sellbacks.
Downside Reversal
A downside reversals occur when a stock reaches a new high for the user defined lookback period (65 bars by default), and then experiences a larger-than-average drop and closes near its lows. This usually indicates that the market has overextended itself. The expectation is that there will be 2-3 bars of significant selling, following the downside reversal.
However, a notable sign of strength is if the stock rebounds and closes above the downside reversal bar's high within 1-3 bars. This is known as a Downside Reversal Buyback. A rapid recovery following a downside reversal is a powerful bullish indicator, breaking the expectation of lower prices. The quicker price recovers from a downside reversal, the more meaningful it is. Such a swift rebound suggests that the market's strength was underestimated, as downside reversals typically signal a short-term decline.
Upside Reversal
An upside reversal occurs when a stock reaches a new low for the user-defined lookback period (65 bars by default), and then experiences a larger-than-average rise and closes near its highs. This usually indicates that the market has overextended itself to the downside. The expectation is that there will be 2-3 bars of significant buying, following the upside reversal.
However, a notable sign of weakness is if the stock falls back and closes below the upside reversal bar's low within 1-3 bars. This is known as a Upside Reversal Sellback. A rapid fallback following an upside reversal is a powerful bearish indicator, breaking the expectation of higher prices. The quicker price falls back from an upside reversal, the more meaningful it is. Such a swift fallback suggests that the market's weakness was underestimated, as upside reversals typically signal a short-term rally.
The Expectation Breakers indicator identifies these opportunities by first identifying new highs and lows within a defined lookback period. It then compares the true range (TR), average true range (ATR), and closing range to confirm the significance of these reversals. The use of TR and ATR ensures that the reversals are substantial enough to indicate a genuine shift in market sentiment, helping to identify when price action breaks expectations.
Give this indicator a BOOST and COMMENT your thoughts below!
We hope you enjoy.
Cheers!
Advanced Order Blocks by AccountantXThe "Advanced Order Blocks by AccountantX" is tool designed to identify and visualize significant order blocks in the market.
This script goes beyond traditional order block detection by integrating advanced features such as volume threshold filtering, ATR-based sizing, and higher timeframe considerations.
How It works:
A. General data :
- Order Block Detection: Identifies bullish and bearish order blocks based on swing highs and lows, with options to filter by volume thresholds to ensure significant levels.
- Volume Threshold: Only displays order blocks where the volume exceeds a user-defined threshold, ensuring the highlighted zones are of particular significance.
- ATR-Based Sizing: Offers the option to use the Average True Range (ATR) for sizing order blocks, allowing for dynamic adjustment based on market volatility.
- Higher Timeframe Integration: Includes the ability to display order blocks from a higher timeframe, providing a broader market perspective.
- Customizable Appearance: Users can customize the colors and transparency of the order blocks, ensuring they fit seamlessly with any chart setup.
B. Code explanation :
- The script allows you to set a minimum volume threshold. Order blocks are only shown if the volume during their formation exceeds this threshold, ensuring that only significant price levels are highlighted.
- When enabled, the ATR (Average True Range) is used to size the order blocks. This means the height of the blocks adjusts dynamically with market volatility, providing a more accurate representation of significant zones.
- The script can display order blocks from a higher timeframe on your current chart. This is useful for aligning shorter-term trading decisions with broader market trends.
C. How to Use:
a) Set the volume threshold to filter out less significant order blocks. Adjust the value according to the typical volume of your trading instrument;
b) Enable the ATR-based sizing and set the period and multiplier to match your trading style. This helps in identifying order blocks relative to market volatility;
c) Choose a higher timeframe if you want to see significant order blocks from a broader market perspective. This can help in making more informed trading decisions.
Acknowledgements:
This script builds upon traditional order block concepts by integrating advanced features and customization options. Special thanks to the TradingView community( @fluxchart, @LuxAlgo_Team) for providing foundational concepts and inspiration.
Important Note
This script is provided as-is for educational purposes.
Dominance DashboardThe "Dominance Dashboard" is a TradingView indicator designed to provide traders with a clear and concise visual representation of Bitcoin Dominance (BTC.D). This script helps traders monitor BTC.D in real-time, offering insights into market dynamics and potential trading signals based on the changes in Bitcoin's market dominance.
Key Features
Real-Time BTC Dominance: Displays the current Bitcoin Dominance percentage.
Historical Comparison: Shows the previous day's Bitcoin Dominance for comparison.
Visual Indicators: Utilizes color-coded arrows to indicate changes in Bitcoin Dominance (increase or decrease).
Customizable Table Settings: Users can customize the position, size, and colors of the displayed table to suit their preferences.
How It Works
Data Retrieval: The script uses request.security to fetch the latest and previous day's BTC.D data.
Comparison Mechanism: It compares the current BTC Dominance with the previous day's value to determine whether BTC.D has increased, decreased, or remained unchanged.
Dynamic Table Display: Based on user preferences, the script dynamically adjusts the table's position, text size, and colors.
Using the Indicator
Table Settings:
Show Header: Toggle the visibility of the table header.
Position: Choose from various predefined positions (e.g., Top Right, Bottom Right) to place the dashboard on your chart.
Text Size: Select the text size (Tiny, Small, Normal, Large) for better readability.
Text and Border Colors: Customize the text and border colors to match your chart's theme.
Timeframe Settings:
Show Current BTC Dominance: Enable or disable the display of the current BTC Dominance percentage.
Underlying Concepts
BTC Dominance: Bitcoin Dominance (BTC.D) measures Bitcoin's market capitalization relative to the total market capitalization of all cryptocurrencies. Monitoring BTC.D helps traders understand the flow of capital in and out of Bitcoin compared to other cryptocurrencies.
Visual Change Indicators: The script uses simple arrow symbols (🔼 for an increase and 🔽 for a decrease) to provide quick visual cues about the direction of change in BTC Dominance. This feature helps traders quickly assess market conditions without deep analysis.
Practical Use Cases
Market Sentiment Analysis: A rising BTC Dominance could indicate a market shift towards Bitcoin, potentially signaling a bearish sentiment for altcoins. Conversely, a falling BTC Dominance might suggest increased interest in altcoins.
Trend Confirmation: Traders can use BTC Dominance trends to confirm their trading strategies. For example, if a trader is bullish on Bitcoin, an increasing BTC Dominance might reinforce their position.
Portfolio Management: By monitoring BTC Dominance, traders can make informed decisions about portfolio rebalancing between Bitcoin and other cryptocurrencies.
Multi-Timeframe Linear Regression Channel (Pinescriptlabs)This script combines multiple timeframes for visualizing linear regression channels in a single chart, allowing us to obtain a holistic view of price behavior across different timeframes (5m, 15m, 30m, and 4h). It facilitates the identification of trends and support/resistance levels across various time horizons. This multi-timeframe approach is useful because it helps confirm signals and detect potential divergences.
Components and Their Interaction
Linear Regression: Calculates the regression line and standard deviations for different timeframes. These lines show the direction and strength of the trend.
Deviation Bands: The upper and lower bands act as dynamic support and resistance levels, based on the standard deviation or maximum deviation.
Colors and Labels: Different colors for each timeframe allow for quick and clear identification of the regression lines and their bands. The labels help identify the timeframe of each channel.
Justification for the Mashup
Combining linear regressions across different timeframes allows us to observe short, medium, and long-term trends in a single chart. This multi-timeframe approach provides a more comprehensive market perspective compared to using a single timeframe.
Default Properties
The default properties of the strategy are configured to provide a clear view of the regression channels across different timeframes. These properties include:
Channel Length: Default of 50 periods, adjustable between 1 and 5000.
Data Source: Closing price by default.
Deviations: Optional use of upper and lower deviations with adjustable multipliers.
Line Extension: Option to extend lines to the right for better visualization.
Underlying Concepts
Calculating linear regression involves determining the slope, mean, and intercept of a line that best fits the price data. Standard deviations are used to create bands around this line, providing a measure of volatility. Implementing this in different timeframes allows us to observe how the trend changes over time and helps identify more precise entry and exit points.
This script is particularly useful for traders looking for an integrated tool that allows them to observe price behavior across multiple timeframes without needing to switch between different charts.
1.- For example, in the main image of the script, we observe that we are in a 1-hour timeframe, where the 4-hour linear regression channel indicates an uptrend with a length of 60 periods. Meanwhile, the 15-minute and 30-minute channels identify a convergence in the same trend. However, in the 5-minute linear regression, we have a completely lateral channel. These channels, shown from different timeframes in a single chart, give us a clear idea of exactly where the price is heading in each timeframe. Each channel serves as support or resistance for a lower or higher timeframe, depending on which timeframe we are looking at. Next, we will go to each timeframe to observe how the regression channels are displayed
(5min):
(15min):
(30min):
(4h):
Español:
Este script combina múltiples marcos de tiempo para la visualización de canales de regresión lineal en un solo gráfico, nos permitirá obtener una visión holística del comportamiento del precio en diferentes marcos temporales (5m, 15m, 30m y 4h) permite la identificación de tendencias y niveles de soporte/resistencia en diferentes horizontes de tiempo. Este enfoque multi-temporal es útil porque permite confirmar señales y detectar posibles divergencias.
Componentes y su Interacción
Regresión Lineal: Calcula la línea de regresión y las desviaciones estándar para diferentes marcos temporales. Estas líneas muestran la dirección y la fuerza de la tendencia.
Bandas de Desviación: Las bandas superior e inferior actúan como niveles dinámicos de soporte y resistencia, basados en la desviación estándar o la desviación máxima.
Colores y Etiquetas: Diferentes colores para cada marco temporal permiten una identificación rápida y clara de las líneas de regresión y sus bandas. Las etiquetas ayudan a identificar el marco temporal de cada canal.
Justificación del Mashup
La combinación de regresiones lineales en diferentes marcos temporales nos permite observar la tendencia a corto, medio y largo plazo en un solo gráfico. Este enfoque multi-temporal proporciona una perspectiva más completa del mercado en comparación con el uso de un solo marco temporal.
Propiedades por Defecto
Las propiedades por defecto de la estrategia están configuradas para proporcionar una visión clara de los canales de regresión en diferentes marcos temporales. Estas propiedades incluyen:
Longitud del Canal: 50 períodos por defecto, ajustable entre 1 y 5000.
Fuente de Datos: Precio de cierre por defecto.
Desviaciones: Uso opcional de desviaciones superiores e inferiores con multiplicadores ajustables.
Extensión de Líneas: Opción para extender las líneas hacia la derecha para una mejor visualización.
Conceptos Subyacentes
El cálculo de la regresión lineal implica determinar la pendiente, la media y la intersección de una línea que mejor se ajusta a los datos de precios. Las desviaciones estándar se utilizan para crear bandas alrededor de esta línea, proporcionando una medida de la volatilidad. La implementación en diferentes marcos temporales permite observar cómo cambia la tendencia a lo largo del tiempo y ayuda a identificar puntos de entrada y salida más precisos.
Este script es particularmente útil para traders que buscan una herramienta integrada que les permita observar el comportamiento del precio en múltiples marcos temporales sin necesidad de cambiar entre diferentes gráficos.
Por ejemplo en la imagen principal del script observamos que estamos en un timeframe de 1h, donde el canal de regresión lineal de 4h, nos indica en un length de 60 periodos una tendencia alcista, mientras que los canales de 15min y 30 min nos identifican una convergencia en la misma tendencia, sin embargo en la regresión lineal de 5 minutos tenemos un canal totalmente lateral, estos canales mostrados de diferentes marcos de tiempo en un solo grafico nos da una clara idea de exactamente de a donde esta dirigiendo el precio en cada marco de tiempo a la par que cada canal nos sirve como soporte o resistencia de un marco de tiempo ya sea inferior o mayor dependiendo en que time frame nos coloquemos, a continuación iremos a cada marco de tiempo para que observemos como se muestran los canales de regresión:
(5min):
(15min):
(30min):
(4h):
Pivot Point Profile [LuxAlgo]The Pivot Point Profile indicator groups and displays data accumulated from previous pivot points, providing a comprehensive method for prioritizing and displaying areas of interest directly given by swing highs and lows.
Users have access to common settings present in other profile-type indicators.
🔶 USAGE
The Pivot Point Profile is particularly helpful in identifying highly active reversal zones that have been visited multiple times by price. Because of this, we could generally expect these areas to serve as future points of interest, often acting as support or resistance when re-visited.
The profile displays data associated with both Pivot Highs and Pivot Lows. Each row consists of pivot high and pivot low counts side-by-side, forming the total width of the row.
By analyzing the row as a whole, we can gain a better understanding of WHERE to look for interactions.
By analyzing the pivot counts independently, we can gain a better understanding of WHAT to expect when returning to these areas.
For example:
If a row in the profile contains entirely Pivot Lows, this could be seen as an indication to look for buyers to hold that level for a continuation upwards. A break of this level could be interpreted as a lack of interest from previous buyers at this level, indicating a further move down.
🔹 Concentrated Areas
Each row in the profile displays the current count of high pivots and low pivots within the selected lookback. The largest count for each pivot direction is identified as a "Concentrated Area (CA)", these CAs are highlighted over the chart with a line displaying the average of all pivots within that CA. The CA Average is the average of all pivot points (in the majority direction) within the given row.
These can hold more importance as potential support/resistance areas.
Note: The CA Threshold can be manually adjusted to highlight all rows based on a user-selected value.
🔶 DETAILS
🔹 Calculation
The idea behind the Pivot Point Profile is a new analysis method for pivot points, taking the idea of a volume profile and adapting it to display pivot points instead of volume. By using this data, in theory, we should be able to better prioritize zones to anticipate reversals, as well as identify key levels to watch for buyer & seller interactions to use as confirmations in direction.
The (vertical) width of each row is the product of the script's "Row Size", this is the number of rows that the profile will consist of. With a max of 250, the profile can be decently granular. That being said, A more granular profile will have fewer overlapping pivot points. By decreasing the row size (Using fewer rows in the profile) you will increase the tolerance for grouping pivot points. Potentially leading to a more comprehensive Profile. Inversely, By reducing the tolerance for grouping, you will better visualize only similar highs and lows but may have noisier data to sift through.
The Profile is calculated based on a "Lookback" parameter, using only the lookback amount of previous high and low pivots to calculate the profile. Configuring this parameter alongside "Pivot Length", will allow for great control over the frame of reference of the profile.
Note: This indicator is capable of utilizing the full chart history of pivot points, this can be done by enabling the "Use Full Chart History" setting, this will cause the script will calculate from everything it has access to on your current chart.
🔹 Display
The Pivot Point Profile display can be customized to fit a various range of chart styles and visual needs. The specific settings to adjust these can be located in the "Profile Display" Section of the User Inputs.
Profile Width: Sets the Left to Right Width of the Profile. This is the maximum width that the profile will occupy and will scale to fit within this width.
Profile Offset: Sets the distance of the Profile's Axis from the current chart candle. This moves the entire profile left and right to enable to user to set the distance between the profile and the current candle.
Direction: Changes the display direction of the profile, allowing for "Left", "Right", or "Center" display styles.
🔶 SETTINGS
🔹 Pivot Point Parameters
Pivot Type: Choose between "Fractal Pivots" or "SMC Structure" to use as the basis for pivots.
Length: Sets the length for the pivot calculations.
🔹 Profile Calculations Parameters
Lookback: Sets the number of pivots to calculate within, in increments of high and low pairs. (Setting this to 1 = 1 Pivot High & 1 Pivot Low)
Use Full Chart History: Disregards the set lookback and instead uses all available chart data to calculate from.
Row Size: Sets the total number of rows to calculate the profile with.
🔹 Profile Display
Profile Width: Sets the max left & right width (in bars) that the profile will occupy.
Profile Offset: Sets the distance of the profile axis from the last chart bar.
Direction: Sets the display direction
🔹 Concentrated Areas
Highlight CAs: Extends the rows left from concentrated areas.
CA Threshold: Manually set the threshold for determining concentrated areas, when disabled, only the largest rows will be displayed.
CA Averages: Toggles the concentrated area averages for each pivot direction.
Note: CA Averages can be displayed independently without CA Highlights being displayed, and vice versa.
ATR Gerchik LightAverage True Range ( ATR ) is a technical analysis indicator that measures volatility in the market. ATR is a moving average of the true range over a period of time.
ATR calculation procedure:
1. Determine the true maximum - this is the highest of the current maximum and yesterday's closing price of the day.
2. Determine the true minimum - this is the smallest of the current minimum and yesterday's closing price.
3. Determine the true range - this is the distance between the true maximum and minimum.
4. We exclude extremely large candles (> x2 ATR) and extremely small ones (< 0.5 ATR) from the obtained true ranges.
5. We calculate the average for the selected period based on the remaining range.
6. We calculate the percentage of the current True Range relative to the average ATR value for the previous period.
Description:
If you analyze it yourself, you will see that 75-80% of the time, the instrument moves only 1 ATR per day. You must understand that if an instrument has, for example, moved 80% of its daily range, it is not advisable to purchase it. This is comparable to a car's fuel tank: if the tank is almost empty, the car won't go far. Most indicators that calculate ATR include anomalous candles, which give unreliable results and lead to incorrect decisions. Because of this, many traders prefer to calculate ATR on their own.
However, the Gerchik ATR indicator accounts for anomalous candles and filters out extremely large candles (> 2x ATR) and extremely small ones (< 0.5x ATR). Additionally, this indicator immediately shows the consumed “fuel” of the instrument as a percentage, so you don't have to calculate the distance traveled yourself. This allows you to make quick, informed decisions. If we see that the tank is almost empty, it is logical not to get into that car today. When building any strategy, you must rely on the average movement.
Key Features:
Anomalous Candle Filtering: Excludes extremely large and small candles to provide more reliable ATR values.
Consumed Fuel Indicator: Shows the percentage of the ATR consumed, helping traders quickly assess the remaining potential movement.
Daily Timeframe Focus: Designed specifically for use on daily charts for accurate long-term analysis.
Practical Applications:
Entry and Exit Points: Use the ATR to determine optimal entry and exit points by assessing market volatility and potential price movement.
Stop-Loss Placement: Calculate stop-loss levels based on ATR to ensure they are placed at appropriate distances, accounting for current market volatility.
Trend Confirmation: Use the percentage of ATR consumed to confirm the strength of a trend and decide whether to enter or exit trades.
Examples of Use:
Trend Following: During strong trends, ATR helps identify periods of increased volatility, signaling potential breakouts or reversals.
Range Trading: In ranging markets, ATR can highlight periods of low volatility, indicating consolidation and potential breakout zones.
Note: The indicator is displayed and works only on the daily timeframe!
The indicator was created according to the instructions, description of the functionality, and strategy of Mr. Gerchik. Thank you so much, Chief!
________________________
Average True Range ( ATR , средний истинный диапазон) – это индикатор технического анализа, который измеряет волатильность на рынке. ATR представляет собой скользящее среднее истинного диапазона за определенный период времени.
Порядок расчета ATR:
1. Определяем истинный максимум – это наивысшее из текущего максимума и вчерашней цены закрытия дня.
2. Определяем истинный минимум – это наименьшее из текущего минимума и вчерашней цены закрытия.
3. Определяем истинный диапазон – это расстояние между истинным максимумом и минимумом.
4. Исключаем из полученных истинных диапазонов экстремально большие свечи (> x2 ATR) и экстремально маленькие (< 0.5 ATR).
5. Рассчитываем среднее за выбранный период исходя из оставшегося диапазона.
6 . Рассчитываем процент текущего истинного диапазона (True Range) относительно среднего значения ATR за предыдущий период.
Описание:
Если вы сами проанализируете, то увидите, что 75-80% времени инструмент ходит только 1 ATR. И вы должны понимать, что если инструмент внутри дня прошел, к примеру, 80% своего движения, то этот инструмент больше нельзя покупать. Это можно сравнить с баком машины: если бак почти пустой, машина далеко не уедет. Большинство индикаторов, которые рассчитывают ATR, производят расчет с паранормальными свечами. Это дает недостоверный результат и приводит к неверным решениям. Многие трейдеры из-за этого не используют готовые индикаторы и предпочитают считать ATR самостоятельно. Но индикатор ATR Gerchik учитывает паранормальные свечи и фильтрует экстремально большие свечи (> x2 ATR) и экстремально маленькие (< 0.5 ATR). Также этот индикатор сразу показывает израсходованный "бензин" инструмента в процентах. И вам не надо самостоятельно высчитывать пройденный путь. Вы можете быстро принимать правильные решения. Если мы видим, что бак почти пустой, логично не садиться в эту машину сегодня. Когда вы строите какую-то стратегию, вы должны обязательно полагаться на среднестатистическое движение.
Существует много стратегий, завязанных на ATR, которые учитывают волатильность инструмента, запас хода, точки разворота, места выставления стоп-лоссов (SL) и тейк-профитов (TP) и другие факторы. Я не буду останавливаться на них, так как каждый может найти описание этих стратегий и использовать их на свой выбор.
Индикатор отображается и работает только на дневном таймфрейме!
Индикатор создан по наставлениям, описанию функционала и стратегии господина Герчика. Огромное спасибо, Шеф!
Groupings [SS]Hey everyone,
Releasing this indicator called groupings.
If you watch/read my analyses on Tradingview, you will have heard me talk about groups. Groups is something I invented. What it is, is just taking the Euclidean Distance (ED) of the previous 5 candles in a specified period (i.e. daily timeframe, weekly, 1 minute, 5 minute, etc.) and rounding the ED up to a whole number.
I have had great success in this approach because the information provided is broad enough to give leniency in interpretation but narrow enough to hone in on potential moves and target prices.
This indicator is a simplified version of how I do groupings in other software, however it is no less powerful!
What do groups tell us?
A "group" takes into account the previous 5 candles, using the ED. This gives Pinescript a general idea of what the short term trend looks like mathematically. From there, Pinescript can look for other groups that looked similar to how this current trend looks. From there, it can offer us insights into what tends to happen in candles subsequent to this group. For example, the ATR range, the close range and whether it is bearish or bullish.
And that is precisely how this indicator operates, Pinescript will calculate the group of the previous 5 canndles in the timeframe period you are looking at. It will then lookback over the designated "train" length and identify previous groups, and what happened in those groups. It looks specifically at:
- What is that average High ATR associated with that group,
- What is the average Low ATR associated with that group,
- What is the average close range associated with that group,
- What is the sentiment associated with that group.
How to use the indicator?
In terms of use, the indicator is relatively simple to use. It will plot three lines, a red for the anticipated low range, a green for the anticipated high range and purple for the opening range (where the current candle opened at).
In addition, it will plot a dot for the anticipated close area. When the dot is green, it expects a bullish close. When the dot is red, it expects a bearish close.
The indicator is going to give you a heads up as to whether we are in a bullish group, what you can anticipate the high and low range to be and where you can anticipate the close.
Of course, its not always exact, as in the image above you can see it underestimated the high range and over-estimated the low range; however, we did close within the anticipate range.
The indicator is meant to help you with your bias. I will reference this indicator on the daily timeframe at open to see what the expectations are for the day.
However, you can use it on any timeframe you wish.
Other functions:
The indicator can plot the EMA 9, 21 and 5. These are the 3 indicators I like and I find them helpful for both intraday and swing trading. However, they can be toggled off if you do not wish to view them.
In addition, the EMAs will be green if the ticker is trending above the EMA 21 (which is a critical EMA for me to determine the immediate sentiment). If the ticker is below, they will turn red.
There is also the ability to adjust the train time. The default is 1,000 candles back, but I usually have it on 1500. If you have a lot of indicators and a lot going on, on your chart, you may find that 1500 is too much and it will lag/error. That’s okay, 500 candles is sufficient and will not put a lot of stress on Pinescript.
Concluding remarks
Its overall a fairly simple concept and indicator, but it has been a neat and helpful / insightful invention. I originally developed this using R and happy to have now brought it into Pinescript.
I hope you enjoy!
Safe trades everyone!
Frequency and Volume ProfileFREQUENCY & VOLUME PROFILE
⚪ OVERVIEW
The Frequency and Volume Profile indicator plots a frequency or volume profile based on the visible bars on the chart, providing insights into price levels with significant trading activity.
⚪ USAGE
● Market Structure Analysis:
Identify key price levels where significant trading activity occurred, which can act as support and resistance zones.
● Volume Analysis:
Use the volume mode to understand where the highest trading volumes have occurred, helping to confirm strong price levels.
● Trend Confirmation:
Analyze the distribution of trading activity to confirm or refute trends, mark important levels as support and resistance, aiding in making more informed trading decisions.
● Frequency Distribution:
In statistics, a frequency distribution is a list of the values that a variable takes in a sample. It is usually a list. Displayed as a histogram.
⚪ SETTINGS
Source: Select the price data to use for the profile calculation (default: hl2).
Move Profile: Set the number of bars to offset the profile from the current bar (default: 100).
Mode: Choose between "Frequency" and "Volume" for the profile calculation.
Profile Color: Customize the color of the profile lines.
Lookback Period: Uses 5000 bars for daily and higher timeframes, otherwise 10000 bars.
The Frequency Profile indicator is a powerful tool for visualizing price levels with significant trading activity, whether in terms of frequency or volume. Its dynamic calculation and customizable settings make it a versatile addition to any trading strategy.
Hourly Trading System (Zeiierman)█ Overview
The Hourly Trading System (Zeiierman) is designed to enhance your trading by highlighting critical price levels and trends on an hourly basis. This indicator plots the open prices of hourly and 4-hour candles, visualizes retests, displays average price lines, and overlays higher timeframe candlesticks. It is particularly beneficial for intraday traders seeking to capitalize on short-term price movements and volume patterns.
█ How It Works
This indicator works by plotting significant price levels and zones based on hourly and 4-hour candle opens. It also includes functionalities for identifying retests of these levels, calculating and displaying average prices, and showing high and low labels for each hour.
█ Timeframe
The Hourly Trading System is designed to be used on the 1-minute or 5-minute timeframe. This system is tailored for intraday trading, allowing traders to find optimal entries around hourly opening levels and providing an easy method to identify the hourly trend. It works effectively on any market.
█ How to Use
Trend Analysis
Quickly gauge where the current price stands relative to key hourly and 4-hour levels. The plotted lines and zones serve as potential support and resistance areas, helping traders identify crucial points for entry or exit.
Utilize the 1-hour average and higher timeframe candles to understand the overall market trend. Aligning intraday strategies with larger trends can enhance trading decisions.
Use the bar coloring to quickly gauge the 1-hour trend on a lower timeframe. The bar colors indicate whether the hourly trend is bullish (green) or bearish (red), helping traders make quicker decisions in alignment with the overall trend.
Retest Identification
Enable retest signals to see where the price retested the hourly open levels. These retest points often signal strong price reactions, offering opportunities for trades based on support/resistance flips.
One effective strategy to incorporate is looking for price flips when a new hour starts. This approach involves monitoring price action at the beginning of each hour. If the price breaks and retests the hourly open level with strong momentum, it could indicate a potential trend reversal or continuation. This strategy is effective in volatile markets where price movements are significant at the start of each new hour.
Liquidity Sweep Strategy
Another common and effective strategy is the liquidity sweep. This involves identifying key levels where liquidity is likely to accumulate, such as previous hour highs and lows, and observing how the price interacts with these price levels. When the price sweeps through these levels, triggering stop-loss orders or pending orders, it often results in a sharp price movement followed by a reversal. Traders can capitalize on these movements by entering trades in the direction of the reversal once the liquidity sweep has occurred.
Equal Highs and Lows Strategy
The Equal Highs and Lows strategy leverages the concept of identifying levels where the price forms multiple highs or lows at the same level over different hourly periods. These equal highs and lows often indicate strong support or resistance levels where liquidity is accumulated. When the price approaches these levels, it is likely to trigger stop-loss orders and lead to significant price movements. Traders can look for breakouts or reversals around these levels to enter trades with higher probability setups.
█ Settings
Zone Width: Specifies the width of the zone around the 1-Hour Open as a percentage. Adjust this to widen or narrow the zone.
Show Retests: Enables or disables the display of retest markers. Retest markers show where the price has retested the 1-Hour Open line.
Number of Retests: Sets the number of retests to display. Adjust this to see more or fewer retest markers.
Volume Filter: Enables or disables the volume filter for retests. Use this to highlight retests with significant volume.
Volume Filter Length: Sets the length of the volume filter, smoothing the volume data to reduce noise.
1-Hour Average Line: Enables or disables the 1-hour average price line. This line shows the average price over the past hour.
Hourly High & Low Labels: Enables or disables the display of hourly high and low labels, marking the highest and lowest prices within each hour.
Candlesticks: Enables or disables the display of candlesticks on the chart, providing a detailed view of price action.
Bar Color: Enables or disables bar coloring based on price direction, with up bars in green and down bars in red.
Timeframe: Sets the timeframe for higher timeframe candles. Adjust this to match the period you want to analyze.
Number of Candles: Sets the number of higher timeframe candles to display. Increase this to see more candles on the chart.
Location: Sets the location for higher timeframe candles, allowing you to position them left or right on the chart.
-----------------
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!
Ripster MTF CloudsDescription:
MTF EMA Cloud By Ripster
EMA Cloud System is a Trading System Invented by Ripster where areas are shaded between two desired EMAs. The concept implies the EMA cloud area serves as support or resistance for Intraday & Swing Trading. This can be utilized effectively on 10 Min for day trading and 1Hr/Daily for Swings. Ripster himself utilizes various combinations of the 5-12, 34-50, 8-9, 20-21 EMA clouds but the possibilities are endless to find what works best for you.
“Ideally, 5-12 or 5-13 EMA cloud acts as a fluid trendline for day trades. 8-9 EMA Clouds can be used as pullback Levels –(optional). Additionally, a high level price over or under 34-50 EMA clouds confirms either bullish or bearish bias on the price action for any timeframe” – Ripster
This indicator is an extension of the Ripster EMA Clouds. It allows you to visualize Exponential Moving Average (EMA) clouds from any time frame on your current chart, regardless of the chart's own time frame. This functionality is especially useful for traders who want to monitor higher time frame trends and support/resistance levels while trading on lower time frames.
What does this code do?
The Ripster MTF Clouds indicator displays two sets of EMA clouds. Each set consists of a short EMA and a long EMA. By default, the indicator uses Daily 20/21 and 50/55 EMAs, but you can customize these settings to fit your trading strategy. The EMAs are plotted on your chart along with their corresponding clouds, colored for easy differentiation:
EMA 1 (default 50/55): Plotted in blue.
EMA 2 (default 20/21): Plotted in teal.
The indicator uses the security function to fetch EMA values from higher time frames and plots them on your current chart, allowing you to see how these higher time frame EMAs interact with your current time frame's price action.
How to use this indicator:
Adjust Resolution:
Set the "Resolution" input to the time frame from which you want to fetch EMA values. For example, set it to "1H" if you want to see 1-hour EMAs on your current chart.
Customize EMAs:
Modify the "EMA 1 Short Length" and "EMA 1 Long Length" inputs to change the default 50/55 EMAs.
Adjust the "EMA 2 Short Length" and "EMA 2 Long Length" inputs to change the default 20/21 EMAs.
Monitor Clouds:
The indicator fills the area between the short and long EMAs, creating a cloud that helps visualize the trend. A blue cloud indicates the area between the EMA 1 pair, while a teal cloud indicates the area between the EMA 2 pair.
Use Multiple Instances:
You can add multiple instances of this indicator to your chart to monitor multiple higher time frames simultaneously. For instance, one instance can show daily clouds while another shows hourly clouds.
Integration with Trading Strategy:
Use this indicator to identify higher time frame trends and support/resistance levels, which can help improve your trading decisions on lower time frames.
For example, you can go long when the stock is above the 50-55 EMA clouds and 20-21 EMA clouds with daily resolution on a 10-minute chart and short when it is below it.
Similarly, you can short a stock under the 1-hour 34/50 EMA clouds while still trading on a 10-minute chart.
ICT Single Candle Order Block (SCOB) [UAlgo]The "ICT Single Candle Order Block (SCOB) " designed for traders who utilize the concept of Order Blocks in their trading strategy. Order Blocks are significant price levels where institutions or smart money have placed their trades, leading to potential future price reactions when these levels are revisited. This indicator focuses on identifying and highlighting Single Candle Order Blocks (SCOBs), allowing traders to visually analyze key price levels on their charts.
🔶 What is Single Candle Order Block (SCOB) ?
A Single Candle Order Block (SCOB) is a specific type of Order Block that is identified based on a single candlestick pattern. These patterns indicate potential areas where significant buying or selling interest has occurred, often leading to a notable price reaction when revisited. In the context of this indicator, a bullish SCOB is identified when a specific bullish candlestick pattern is met, and a bearish SCOB is identified based on a bearish candlestick pattern.
Bullish SCOB: Detected when the open price of two bars ago is higher than its close, the close price of the previous bar is higher than its open, the current close price is higher than the open, the low of the previous bar is lower than the low of two bars ago, and the current close is higher than the high of the previous bar.
Bearish SCOB: Detected when the open price of two bars ago is lower than its close, the close price of the previous bar is lower than its open, the current close price is lower than the open, the high of the previous bar is higher than the high of two bars ago, and the current close is lower than the low of the previous bar.
🔶 Key Features
Show Single Candle Order Block (SCOB): Toggle the visibility of the Single Candle Order Blocks on the chart.
Mitigation Method: Choose between "Close" and "Wick" methods for determining whether a SCOB has been mitigated (price has interacted with the block).
Show Last X SCOBs: Control the number of most recent SCOBs displayed on the chart, allowing you to focus on the most relevant price levels.
Volatility Filter: Enable or disable the volatility filter, which uses the Average True Range (ATR) to filter out less significant SCOBs. When enabled, only SCOBs with an ATR above the mean value of the ATR are displayed.
Customizable Colors: Configure the colors for bullish and bearish SCOBs to enhance visual clarity. The indicator uses cooler RGB values to ensure the blocks are distinct and easily noticeable.
🔶 Disclaimer
The "ICT Single Candle Order Block (SCOB) " indicator is provided for educational and informational purposes only. Trading involves significant risk and may not be suitable for all investors.
Past performance is not indicative of future results. Users should use this indicator in conjunction with their own research and trading strategy.
Super IndicatorOverview of the Combined Indicator
This combined indicator leverages three major technical analysis tools:
Bollinger Bands
Linear Regression Channels
Scalping Strategy Indicators (RSI, MACD, SMA)
Each of these tools provides unique insights into market conditions, and their integration offers a comprehensive view of price movements, trends, and potential trading signals.
1. Bollinger Bands
Purpose:
Bollinger Bands are used to measure market volatility and identify overbought or oversold conditions.
Components:
Basis (Middle Band): Typically a 20-period Simple Moving Average (SMA).
Upper Band: Basis + (2 * Standard Deviation).
Lower Band: Basis - (2 * Standard Deviation).
Why They Complement:
Bollinger Bands expand and contract based on market volatility. When the bands are narrow, it indicates low volatility and potential for a significant move. Wide bands indicate high volatility. This helps traders gauge the strength of market moves and potential reversals.
2. Linear Regression Channels
Purpose:
Linear Regression Channels identify the overall trend direction and measure deviation from the mean price over a specific period.
Components:
Middle Line (Linear Regression Line): The line of best fit through the price data over a specified period.
Upper and Lower Lines: Channels created by adding/subtracting a multiple of the standard deviation or another deviation measure from the regression line.
Why They Complement:
Linear Regression Channels provide a clear visual representation of the trend direction and the range within which prices typically fluctuate. This can help traders identify trend continuations and reversals, making it easier to spot entry and exit points.
3. Scalping Strategy Indicators
Purpose:
The RSI, MACD, and SMA are used to generate short-term buy and sell signals, which are essential for scalping strategies aimed at capturing quick profits from small price movements.
Components:
RSI (Relative Strength Index): Measures the speed and change of price movements, typically over 14 periods. It helps identify overbought and oversold conditions.
MACD (Moving Average Convergence Divergence): Consists of the MACD line, Signal line, and histogram. It helps identify changes in the strength, direction, momentum, and duration of a trend.
SMA (Simple Moving Average): The average price over a specified period, used to smooth out price data and identify trends.
Why They Complement:
These indicators provide short-term signals that can confirm or refute the signals given by Bollinger Bands and Linear Regression Channels. For example, a buy signal might be more reliable if the price is near the lower Bollinger Band and the MACD crosses above its signal line.
How They Work Together
Scenario 1: Confirming Trend Continuations
Bollinger Bands: Price staying near the upper band suggests a strong uptrend.
Linear Regression Channels: Price staying above the middle line confirms the uptrend.
5-Minute Scalping Strategy: RSI not in overbought territory, and MACD showing bullish momentum confirms continuation.
Scenario 2: Identifying Reversals
Bollinger Bands: Price touching or moving outside the lower band suggests oversold conditions.
Linear Regression Channels: Price at the lower channel line indicates potential support.
5-Minute Scalping Strategy: RSI in oversold territory, and MACD showing a bullish crossover indicates a reversal.
Scenario 3: Volatility Breakouts
Bollinger Bands: Bands contracting indicates low volatility and potential breakout.
Linear Regression Channels: Price moving away from the middle line signals potential breakout direction.
Scalping Strategy: MACD and RSI confirming the breakout direction for entry.
Input Parameters:
Define settings for Bollinger Bands, Linear Regression Channels, and the scalping strategy.
Allow users to customize lengths, multipliers, and colors.
Bollinger Bands Calculation:
Calculate the basis (SMA) and standard deviation.
Derive the upper and lower bands from the basis and standard deviation.
Linear Regression Channel Calculation:
Compute the slope, average, and intercept of the linear regression line.
Calculate deviations to plot upper and lower channel lines.
5-Minute Scalping Strategy:
Calculate RSI, MACD, and SMA for short-term trend analysis.
Define buy and sell conditions based on these indicators.
Plotting and Alerts:
Plot Bollinger Bands and Linear Regression Channels on the chart.
Plot buy and sell signals with shapes.
Set alerts for key conditions like exiting the regression channel bounds and trend switches.
Conclusion
By combining Bollinger Bands, Linear Regression Channels, and a 5-minute scalping strategy, this indicator offers a robust tool for traders. Bollinger Bands provide volatility insights, Linear Regression Channels highlight trend direction and potential reversals, and the scalping strategy offers precise entry and exit points. Together, these tools can enhance a trader's ability to make informed decisions in various market conditions.
Market Structure & Session Alerts### Market Structure & Session Alerts Indicator
#### Overview
The "Market Structure & Session Alerts" indicator is a comprehensive tool designed to assist traders in identifying key market structure levels, detecting liquidity sweeps, and receiving alerts for specific trading sessions. This indicator is particularly useful for traders who want to keep an eye on previous high and low levels and be alerted during pre-London and pre-New York sessions.
#### Features
1. **Previous High/Low Levels:**
- **Daily, Weekly, and Monthly Highs and Lows:** The indicator plots the previous day, week, and month high and low levels on the chart. These levels can be crucial for identifying support and resistance zones.
- **Toggle Display:** Users can choose to show or hide these levels using the "Show Previous Day/Week/Month High/Low" option.
2. **Liquidity Sweep Detection:**
- **Liquidity Sweep Identification:** The indicator detects liquidity sweeps when the current price closes above the previous day's high. This can signal potential reversals or continuations in the market.
- **Visual Alerts:** When a liquidity sweep is detected, a green triangle is plotted below the bar.
3. **Session Alerts:**
- **Session Timings:** Users can set specific start and end times for the pre-London and pre-New York sessions to match their timezone.
- **Visual Background Highlight:** The background of the chart is highlighted in yellow during the defined session times to provide a visual cue.
- **Alert Messages:** The indicator can generate alerts to notify traders when the market enters the pre-London or pre-New York session.
4. **Current Price Line:**
- The current price is plotted as a black line, providing a clear visual reference for the current market price.
#### How to Use
1. **Input Parameters:**
- `Show Previous Day/Week/Month High/Low`: Enable or disable the display of previous high/low levels.
- `Show Liquidity Sweep`: Enable or disable the detection and display of liquidity sweeps.
- `Show Session Alerts`: Enable or disable session alerts and background highlights.
2. **Session Timing Adjustments:**
- Set the `Pre-London Start`, `Pre-London End`, `Pre-New York Start`, and `Pre-New York End` times according to your timezone to ensure accurate session alerts.
3. **Alerts:**
- Make sure alerts are enabled in your TradingView settings to receive notifications when the market enters the pre-London or pre-New York sessions.
#### Example Use Cases
- **Day Traders:** Identify potential support and resistance levels using the previous day's high and low.
- **Swing Traders:** Use weekly and monthly high and low levels to determine significant market structure points.
- **Scalpers:** Detect liquidity sweeps to identify potential quick trades.
- **Session Traders:** Be alerted when the market enters key trading sessions to align your trading strategy with major market activities.
This indicator combines multiple market analysis tools into one, providing a robust system for traders to enhance their trading decisions and market awareness.
Cumulative Volume Difference MapThe "Cumulative Volume Difference Map" is designed to help traders and market analysts understand volume trends over various timeframes. This script analyzes the difference between cumulative positive and negative volume to provide a trend outlook based on volume changes compared to previous bars, by calculating the cumulative positive and negative volume, then deriving a ratio that represents the difference between these volumes. By examining this ratio over different timeframes, the indicator helps identify whether the market sentiment is trending positively or negatively.
Key Features
Volume Analysis:
The script accumulates volume for periods where the closing price is higher or lower than the previous bar, providing a clear picture of buying versus selling pressure.
Trend Detection:
It evaluates the volume ratio over multiple look-back periods, allowing users to see how the trend develops over different timeframes. This multi-period analysis helps in identifying consistent trends and potential reversals.
Visual Representation:
The indicator plots trend signals on the chart, visually representing whether the volume trend is positive or negative over various historical periods.
How to Use
Trend Identification:
Use this indicator to identify periods of sustained buying or selling pressure. Positive trends indicate more cumulative buying volume, while negative trends suggest more cumulative selling volume.
Multi-Period Analysis:
Analyze the trend signals over different timeframes to understand both short-term and long-term volume trends. This can help in making informed trading decisions based on the overall market sentiment.
Chart Integration:
The plotted signals can be used alongside other technical indicators to confirm trends or spot divergences, enhancing your overall market analysis strategy.
Candlestick Structure [LuxAlgo]The Candlestick Structure indicator detects major market trends and displays various candlestick patterns aligning with the detected trend, filtering out potentially unwanted patterns as a result. Multiple trend detection methods are included and can be selected by the users.
A dashboard showing the alignment percentage of each individual pattern is also provided.
🔶 USAGE
By distinguishing major and minor trend detection, we can still detect patterns based on minor trends, yet filter out the patterns that do not align with the major trend.
By detecting candlestick patterns that align with a major trend, we can effectively detect the ending points of retracements, potentially providing various entry points of interest within a trend.
Users are able to track the alignment of each candlestick pattern in the dashboard to reveal which patterns typically align with the trend and which may not.
Note: Alignment % only checks if the pattern's direction is the same as the current trend direction. These are only raw readings and not any type of confidence score.
🔶 DETAILS
In this indicator, we are identifying and tracking 16 different Candlestick Patterns.
🔹 Bullish Patterns
Hammer: Identified by a small upper wick (or no upper wick) with a small body, and an elongated lower wick whose length is 2X greater than the candle body’s width.
Inverted Hammer: Identified by a small lower wick (or no lower wick) with a small body, and an elongated upper wick whose length is 2X greater than the candle body’s width.
Bullish Engulfing: A 2 bar pattern identified by a large bullish candle body fully encapsulating (opening lower and closing higher) the previous small (bearish) candle body.
Rising 3: A 5 bar pattern identified by an initial full-bodied bullish candle, followed by 3 bearish candles that trade within the high and low of the initial candle, followed by another full-bodied bullish candle closing above the high of the initial candle.
3 White Soldiers: Identified by 3 full-bodied bullish candles, each opening within the body and closing below the high, of the previous candle.
Morning Star: A 3 bar pattern identified by a full-bodied bearish candle, followed by a small-bodied bearish candle, followed by a full-bodied bullish candle that closes above the halfway point of the first candle.
Bullish Harami: A 2 bar pattern, identified by an initial bearish candle, followed by a small bullish candle whose range is entirely contained within the body of the initial candle.
Tweezer Bottom: A 2 bar pattern identified by an initial bearish candle, followed by a bullish candle, both having equal lows.
🔹 Bearish Patterns
Hanging Man: Identified by a small upper wick (or no upper wick) with a small body, and an elongated lower wick whose length is 2X greater than the candle body’s width.
Shooting Star: Identified by a small lower wick (or no lower wick) with a small body, and an elongated upper wick whose length is 2X greater than the candle body’s width.
Bearish Engulfing: A 2 bar pattern identified by a large bearish candle body fully encapsulating (opening higher and closing lower) the previous small (bullish) candle body.
Falling 3: A 5 bar pattern identified by an initial full-bodied bearish candle, followed by 3 bullish candles that trade within the high and low of the initial candle, followed by another full-bodied bearish candle closing below the low of the initial candle.
3 Black Crows: Identified by 3 full-bodied bearish candles, each open within the body and closing below the low, of the previous candle.
Evening Star: A 3 bar pattern identified by a full-bodied bullish candle, followed by a small-bodied bullish candle, followed by a full-bodied bearish candle that closes below the halfway point of the first candle.
Bearish Harami: A 2 bar pattern, identified by an initial bullish candle, followed by a small bearish candle whose range is entirely contained within the body of the initial candle.
Tweezer Top: A 2 bar pattern identified by an initial bullish candle, followed by a bearish candle, both having equal highs.
🔹 Trend Types
Major trend is displayed at all times, the display will change depending on the trend method selected.
The minor trend can also be visualized; to avoid confusion, the minor trend can optionally be displayed through the candle colors.
Supertrend: Displays Upper and Lower SuperTrend, When we break above the upper, it is considered an Uptrend. When we break below the lower, it is considered a Downtrend.
EMAs: Displays Fast and Slow EMAs, When Fast>Slow, it is considered an Uptrend. When Fast<Slow, it is considered a Downtrend.
ChoCh: Displays ChoCh Lines and Labels, When a Bullish ChoCh occurs, it is now considered as an Uptrend. When a Bearish ChoCh occurs, it is now considered a Downtrend.
Donchian Channel: Displays the Highest and Lowest Values, When we break above the Highest, it is considered an Uptrend. When we break below the Lowest, it is considered a Downtrend.
Below is an example of the Change of Character (ChoCh) method of trend detection.
Note: In this description, each screenshot has a different trend method in use, scroll through if you are looking for a specific one.
🔶 SETTINGS
Candlestick Patterns: Choose which candlestick patterns to include in calculations.
Minor Trend Length: Determines the Donchian Channel length to use for minor trend identification.
Major Trend Method: Determines which trend method to use for identifying Major Trend.
Major Trend Parameters: Various inputs for controlling Major trends, depending on the specific method you have selected.
Color Candles: Colors the chart candles based on minor trend.
Dashboard: Control display size and location of Alignment Dashboard.
Midpoint Line with Dynamic Bands, RSI Filter, and AlertsTitle: Midpoint Line with Dynamic Bands, RSI Filter, and Alerts
Description:
This Pine Script indicator provides a comprehensive analysis tool combining dynamic midpoint bands, RSI filtering, and alert conditions for overbought and oversold market states.
Features:
Dynamic Midpoint Bands:
Calculates the midpoint based on the highest high and lowest low over a user-defined lookback period.
Supports both percentage and fixed point offsets for the upper and lower bands.
Threshold Levels:
Defines overbought and oversold thresholds using a user-specified percentage.
RSI Filter:
Uses a 100-period RSI to filter market trends.
Plots candles in green if RSI > 50 and in red if RSI < 50.
Visual Overlays:
Fills the overbought area in red and the oversold area in green.
Plots green arrows below the bars when RSI > 50 and the price is in the oversold area.
Plots red arrows above the bars when RSI < 50 and the price is in the overbought area.
Alerts:
Generates alerts for potential long and short trading opportunities based on the defined conditions.
How to Use:
Customize the lookback period, percentage offset, fixed point offset, and threshold percentage as needed.
Use the RSI filter to identify the prevailing market trend.
Watch for visual signals (arrows) indicating potential buy or sell opportunities.
Set up alerts to receive notifications when long or short conditions are met.
This script provides traders with a robust tool for identifying key market conditions and making informed trading decisions. Customize the parameters to fit your trading strategy and use the visual cues and alerts to enhance your market analysis.
Intermarket Correlation TableThe Correlation Coefficient is used to measure the correlation between two sets of data. In the trading world, the Correlation Coefficient is a measure of the correlation between two data sets of financial instruments. The correlation between two financial instruments is the degree in which they are related. Correlation is based on a scale of 1 to -1. The closer the Correlation Coefficient is to 1, the higher their positive correlation. The instruments will move up and down together. The closer the Correlation coefficient is to -1, the more they move in opposite directions. A value at 0 indicates that there is no correlation.
This indicator uses the built in ta.correlation function to calculate the correlation coefficient between DXY and NQ, ES, YM, US10Y, and ZN respectively. It then presents the data in a customizable table that is view as an overlay on your chart.
Adjust the length of the correlation factor to calculate higher time frame correlation.
Asset background changes based on current candle direction.
Coefficient background color changes based on whether the assets are properly correlated.
DXY is inversely correlated to NQ, ES, YM, and ZN.
DXY is directly correlated to US10Y.
The colors are reflected as such.
Market Structures + ZigZag [TradingFinder] CHoCH/BOS - MSS/MSB🟣 Introduction
🔵 Market Structure
Grasping market structure entails examining market behavior. Essentially, market structure refers to the formation and progression of the market within its trends.
Market structures are generally fractal and nested, leading us to classify them into internal (minor) and external (major) structures. There are several definitions of market structure, with differing perspectives such as Smart Money and ICT offering their own interpretations.
🔵 Zig Zag
The Zigzag indicator is a lagging tool that identifies points on a price chart where significant changes occur compared to the previous wave. By connecting these points, it helps traders detect trends.
This indicator minimizes random price fluctuations, aiming to clarify the primary price trend.
Pivots are points on a price chart where the direction changes. Also known as reversal points, pivots form when supply and demand forces overpower one another.
There are various types of technical analysis pivots, which can be divided into two categories: minor pivots and major pivots, each with distinct significance in analysis.
Major Pivot : These pivots signify substantial changes in the chart's direction and occur at the end of trends. Analysts focusing on primary analysis prioritize major pivot points. In fact, most technical analysis tools are evaluated and based on major pivots.
Minor Pivot : These pivots highlight smaller, subsidiary points and directions, appearing at the end of corrections. Analysts who focus on minor pivots represent small trends. It's important to note that minor pivots are not suitable for use in primary technical tools.
Identifying Minor and Major Pivots :
Minor pivots are formed between two major pivots and do not break the opposing major pivot. (Internal Pivot)
Major pivots are those that either successfully break the opposing pivot or move beyond the previous pivot of the same type. (External Pivot)
🟣 How to Use
🔵 Identifying Break of Structure (BOS)
In a given trend, such as a downtrend, a Break of Structure occurs when the price drops below the previous low and forms a new low (LL). In an uptrend, a BOS (MSB) happens when the price rises and exceeds the last high.
To confirm a trend, at least one BOS is required. The break above or below the previous high or low must be validated by the closing of at least one candle beyond that level.
🔵 Identifying Change of Character (CHOCH)
Change of Character (CHOCH) is an essential concept in market structure analysis, indicating a trend change. In other words, a trend concludes with a CHOCH (MSS). For example, in a downtrend, the price declines with BOS.
While BOS highlights the trend's strength, a CHOCH occurs when the price rises and surpasses the last high, signaling a transition from a downtrend to an uptrend.
This does not imply immediately entering a buy trade; instead, it is prudent to wait for a BOS in the upward direction to confirm the uptrend.
Unlike BOS, confirming a CHOCH does not require a candle to close; simply breaking above or below the previous high or low with the candle's wick is sufficient. The following examples illustrate bearish and bullish CHOCH.
Terms :
Market Structure Shift = MSS
Market Structure Break = MSB
🔵 Zig Zag
Based on identifying pivots and drawing zigzag lines, you can have different uses of this indicator.
Including :
Identifying pivot types along with major and minor recognition.
Identifying internal and external breakouts.
Identifying support and resistance levels.
Identifying Elliott Waves.
Identifying classic patterns.
Identifying pivots with higher validity.
Identifying trends and range areas.
🟣 Settings
Pivot Period Market Structure and ZigZag Line: Using this input, you can determine the pivot period for identifying swings.
Through the settings, you can customize the display, visibility, and color of each line as desired.
Multi Asset Histogram [ChartPrime]Multi Asset Histogram Indicator
Overview:
The "Multi Asset Histogram" indicator provides a comprehensive visualization of the performance of multiple assets relative to each other. By calculating a score for each asset and displaying it in a histogram format, this indicator helps traders quickly identify the trends, dominant asset and the average performance of the assets in the selected group.
Key Features:
◆ Multi-Asset Score Calculation:
The indicator calculates a trend score for each selected asset based on the price source (e.g., hl2).
The trend score is determined by comparing the current price to the prices over the past bars back defined by user, adding or subtracting points based on whether the current price is higher or lower than previous prices.
// Score Function
trscore(src) =>
total = 0.0
for i = 1 to 50
total += (src >= nz(src ) ? 1 : -1)
total
◆ Flexible Symbol Input:
Traders can input up to 10 different symbols (e.g., BTCUSD, ETHUSD, etc.) to be included in the histogram analysis.
◆ Dynamic Visualization:
A histogram is plotted for each asset, with bars colored based on the score, providing a clear visual representation of the relative performance.
Color gradients from red to aqua indicate the performance, with red representing negative scores and aqua representing positive scores.
◆ Adaptive Histogram Lines:
The width and placement of histogram lines adapt based on the calculated scores, ensuring clear visualization regardless of the values.
Dashed lines represent the mean score of all assets, helping traders identify the overall market trend.
◆Detailed Labels and Values:
Labels are placed on the histogram to display the exact score for each asset.
Mean value and zero line labels provide additional context for the overall performance.
◆ Visual Scaling Lines:
Zero line and mean line are clearly marked, helping traders understand the distribution and scale of scores.
Scales on the left and right of the histogram indicate the performance range.
◆ Informative Table:
A table is displayed on the chart, showing the dominant asset (the one with the highest score) and the mean score of all assets.
The table updates dynamically to reflect real-time changes in asset performance.
◆ Settings:
Length: The value of number bars back is greater or less than the current value of the source
Source: The price source to be used for score calculation (e.g., hl2).
Symbols: Up to 10 different asset symbols can be input for analysis.
Usage Notes:
This indicator is useful for traders who monitor multiple assets simultaneously and need a quick visual reference to identify the strongest and weakest performers.
The color coding and dynamic labels make it easy to interpret the relative performance and make informed trading decisions.
This indicator is designed to enhance multi-asset analysis by providing a clear, visual representation of each asset's performance relative to the others, making it easier to identify trends and dominant assets in the market.
Power Hour Money StrategyDescription of the Pine Script Code: "Power Hour Money Strategy"
This Pine Script strategy, "Power Hour Money Strategy," is designed to trade based on the alignment of multiple time frames (month, week, day, and hour). The strategy aims to enter long or short positions depending on whether all selected time frames are in sync (all green for long positions, all red for short positions). Additionally, the script includes configurations for trading during specific sessions and automatically closing positions at the end of the trading day.
Core Features:
1. Time Frame Sync Check:
- The strategy evaluates whether the current price is higher than the opening price for the month, week, day, and hour to determine if each time frame is "green" (bullish) or "red" (bearish).
2. Session Control:
- The user can select between different trading sessions:
- "NY Session 9:30-11:30"
- "Extended NY Session 8-4"
- "All Sessions"
- Trades are only executed if the current time falls within the selected session.
3. Trailing Stop Mechanism:
- The strategy includes an optional trailing stop mechanism for both long and short positions.
- The trailing stop is configured with a percentage loss from the current price to protect gains.
4. End-of-Day Position Management:
- An option is provided to automatically close all positions at the end of the trading day (5:45 PM Eastern Time).
Detailed Code Breakdown:
1. Input Settings:
- **Session Selection**: Allows the user to choose the trading session.
- **End-of-Day Close**: Option to automatically close positions at the end of the day.
- **Trailing Stop Loss**: Enables or disables the trailing stop loss feature and sets the percentage for long and short positions.
2. Time Frame Calculations:
- The script uses `request.security` to get the opening prices for higher time frames (monthly, weekly, daily, and hourly).
- It compares the current close price to these opening prices to determine if each time frame is green or red.
3. Session Time Definitions:
- Defines the start and end times for the NY session (9:30-11:30 AM) and the extended session (8:00 AM - 4:00 PM).
4. Trade Execution:
- The strategy checks if all selected time frames are in sync and if the current time falls within the trading session.
- If all conditions are met, it enters a long or short position.
5. Trailing Stop Loss Implementation:
- Adjusts the stop price based on the trailing percentage and the current position's size.
- Automatically exits positions if the trailing stop condition is met.
6. End-of-Day Close Implementation:
- Uses a timestamp to check if the current time is 5:45 PM Eastern Time.
- Closes all positions if the end-of-day condition is met.
7. Plotting and Logging:
- Plots indicators to visualize the green/red status of each time frame.
- Logs information about the status of each time frame for debugging and analysis.
Example Usage:
Entering a Long Position: If the month, week, day, and hour are all green and the current time is within the selected session, a long position is entered.
Entering a Short Position: If the month, week, day, and hour are all red and the current time is within the selected session, a short position is entered.
Trailing Stop: Protects gains by exiting the position if the price moves against the set trailing stop percentage.
End-of-Day Close: Automatically closes all open positions at 5:45 PM Eastern Time if enabled.
This strategy is particularly useful for traders who want to ensure that multiple time frames are in alignment before entering a trade and who wish to manage positions effectively throughout the trading day with specific session controls and trailing stops.
Double FVG-BPR [QuantVue]The Double FVG BPR Indicator is a versatile tool that helps traders identify potential support and resistance levels through the concept of balanced price ranges.
A Balanced Price Range (BPR) is a zone on a price chart where the market has found equilibrium after a period of price imbalance.
It is identified by detecting a Fair Value Gap (FVG) in one direction, followed by an overlapping Fair Value Gap in the opposite direction.
Components of a Balanced Price Range
Fair Value Gap (FVG): A FVG occurs when there is a rapid price movement, creating a gap in the price chart where minimal trading occurs. This gap represents an imbalance between supply and demand.
Bullish FVG: A bullish FVG is identified when the low of a candle is higher than the high of a candle two periods ago, and the close of the previous candle is higher than the high of that same period.
Bearish FVG: A bearish FVG is identified when the high of a candle is lower than the low of a candle two periods ago, and the close of the previous candle is lower than the low of that same period.
Overlapping Fair Value Gap: For a BPR to be formed, an initial FVG must be followed by an overlapping FVG in the opposite direction. This creates a balanced zone where the price has moved up (or down) quickly and then moved down (or up) with similar intensity, suggesting a temporary equilibrium.
The area between the high and low points of these overlapping FVGs forms the BPR. This zone represents a temporary market equilibrium where supply and demand have balanced out after a period of significant price movement in both directions.
How to Use
Support and Resistance Levels: The upper and lower boundaries of the BPR act as dynamic support and resistance levels. Traders can use these levels to place buy and sell orders, anticipating that the price may find support or face resistance within these zones.
Trend Reversal and Continuation: The BPR can signal potential trend reversals or continuations.
If the price moves back into the BPR after a breakout, it may indicate a reversal. Conversely, if the price breaks out of the BPR with strong momentum, it may signal a trend continuation.
Moving Average CyclesMoving Average Cycles Indicator
Description:
The Moving Average Cycles indicator is a versatile tool designed to help traders identify and analyze bullish and bearish cycles based on price movements relative to a moving average. This indicator offers valuable insights into market trends and potential reversal points.
Key Features:
Customizable Moving Average: Users can adjust the MA period and resolution (Daily, Weekly, Monthly) to suit their trading style.
Cycle Identification: The indicator tracks bull and bear cycles, providing visual cues through color-coded histograms.
Comprehensive Metrics: A detailed table displays crucial cycle statistics, including:
Current cycle information (candles and % distance from MA)
Maximum and average cycle lengths (in candles)
Maximum and average percentage distances from the MA
How to Use:
Apply the indicator to your chart and adjust the MA period and resolution as needed.
Green histograms represent bullish cycles, while red histograms indicate bearish cycles.
Use the metrics table to gain insights into historical cycle behavior and current market positioning.
This indicator is designed to complement your existing trading strategy by providing a clear visual representation of market cycles and detailed statistical information. It can be particularly useful for identifying potential trend reversals and gauging the strength of current trends compared to the past.
Note: Past performance does not guarantee future results. This indicator is meant for informational purposes only and should not be considered as financial advice. Always combine multiple analysis tools and conduct your own research before making trading decisions.
This script is published as open-source under the Mozilla Public License 2.0. Feel free to use and modify it, but please provide appropriate credit if you build upon this work.
I hope you find this Moving Average Cycles indicator helpful in your trading journey. If you have any questions or suggestions for improvement, please feel free to leave a comment below.