Scalping level 1.3.0The indicator shows the horizontal levels behind which the liquidity accumulates. The indicator is based on the price extremums according to the specified settings. Each extremum is marked with a faint blue line and the price. If two or more extrema are located at the same price or close enough to each other, they are highlighted in bright blue, and it indicates a strong resistance or support level. When prices approach strong resistance levels, we can consider the situation on a long breakout or a bounce from the level in the short. As price approaches strong support levels, we could consider a breakout in the short or a bounce from the level in the long. Each level has a time (indicated at each price extremum), when it was formed in hours, the more hours ago the level was formed, the stronger it is and the more likely is the price reaction at this level.
The marks next to the price show the distance in percent to the nearest strong levels, it gives a reference point for how soon the price will approach these levels.
Additional indicators, located at the top right of the chart help to make decisions in trading.
Daily dollar volume - shows how interesting the instrument to the market participants, if the traded volume for 24 hours is low, then it is not worth to pay attention to this tool.
Bitcoin correlation - (used for the cryptocurrency market), if the coin price follows the bitcoin (the indicator value is close to 1), then you should exclude this coin, because the price is controlled by robot correlators, not market participants.
Natr - the average volatility of a 5-minute candle in %. The low value of volatility can indicate that the instrument is not active at the moment. Also it is possible to use this value as a stoploss in scalper deals.
Price change - price change for the current session in %, if the value is more than 10% (for cryptocurrencies), then the breakdown of resistance levels have a higher probability than a bounce, if the value is less than -10%, then the probability of breaking support levels have a higher than a bounce.
Percentage of average daily ATR - shows how much the price passed in % for the current session from the average daily ATR. If price passed about 100%, it is possible to consider the price reversal from resistance or support levels.
Important! When trading on levels it is necessary to consider the situation in the Depth of Market. Pay attention to large densities located near support and resistance levels.
=== Basic settings: ===
LOCAL LEVEL, MIDDLE LEVEL, GLOBAL LEVEL . Three ranges of levels (local, middle, global). For each range, you can configure the period and lifetime of the level. For example, global levels are the strongest, they have the longest period and the longest time of existence (note: 0 for Lifetime means infinite time of existence), while local levels have the shortest period and the shortest time of existence. Period - the period in which the level is built. Lifetime - time after which the level is removed from the chart. Color and width - color and width of the line.
BREAK LEVELS . Levels broken by the price. These levels are displayed for convenient tracking of previous breakouts. Parameters are set similarly to other levels.
IMPORTANT LEVELS . Important levels show behind which price range the greatest accumulation of liquidity. Important levels can be adjusted by setting the minimum number of adjacent levels, for example 2 or more, as well as the maximum distance between adjacent levels. Thus, important levels show the accumulation of price extremums, behind which there are Stop Losses of the participants.
Near level coefficient - the distance coefficient between adjacent levels, the higher the coefficient is, the greater is the acceptable price range between the levels. The coefficient is multiplied by the average ATR, as a result we get the price range. For example, if we specify 0, then strong levels will be detected only if 2 or more extrema have the same price.
Minimum near levels - the minimum number of adjacent (close to each other) levels. For example, if 2 is specified, then if 2 or more levels are situated near each other at a distance not exceeding the distance, specified in the Near level coefficient, then those levels will be displayed in bright blue color.
Week level transparent - transparency of "weak" levels located at the price extremums.
COMMON.
Max distance to level - the maximum distance of levels is set by a coefficient, it is necessary to display only the closest levels to hide the levels that are formed very far from the current price. It is calculated on the basis of ATR.
Show level time - shows level existence time.
PRICE. Visual settings of price levels on the chart
Size - print size of price on the chart
Color - color of price on the chart
Round price color - color of the round price number. The round number is the price with the last two digits 0. Example 28124.00 or 0.2500
INDICATORS. Auxiliary numeric indicators (located in the upper right corner of the chart):
Daily dollar volume , the traded volume for the last 24 hours in dollars. You can specify a volume threshold in millions of dollars, above which the value will be highlighted in green. The default value is 100 million dollars. A high value of traded volume indicates a large number of participants and increases the probability of volatility of the instrument.
Bitcoin correlation , an indicator of price correlation with bitcoin, the lower the indicator, the instrument is more independent, the closer to 1, the stronger the instrument repeats bitcoin price movements. It has a threshold value of 0.5 by default. If the indicator reading is below the threshold, it is highlighted in color.
Natr , shows the average range at which the price passes in 5 min. The higher the indicator, the higher the volatility of the instrument.
Price change , price change in % for the current session.
Percentage of average daily ATR , shows how much the price passed in % for the current session from the average daily ATR.
Puntos pivote y niveles
Apeiron Fair Value BandsThe Apeiron Fair Value Bands take into account a given MA and determine a Fair Value Area (FVA) for the price of a certain asset. The script plots a MA and a tolerance ribbon for it, as well as 2 bands (preset to 1 Standard deviations and 2 Standard deviations respectively, which can be manually changed) with a tolerance ribbon as well.
This creates 3 areas of interest:
The MA ribbon
The inside of the first upper and lower band (1 standard deviation) where price should stay within around 68% percent of the time according to the normal distribution
The inside of the second upper and lower band (2 standard deviations) where price should stay within around 95% percent of the time according to the normal distribution
Taking this into account, Fair Value analysis can be done:
Premium and Discount Prices: From a very simplistic point of view, when price is below a MA it can be considered to be at a discount and when it is above at a premium. Combining that idea with the levels given by the bands, we can determine if we are buying at premium or at a discount, specially on HTF and when considering investing, thus allowing to enter or exit the market with a higher probability of being on the right side of the trend and at a good level. As seen on the example, buying or selling at the highlighted levels would have been profitable with little drawdown.
VAH & VAL: (1 Standard Deviation Bands) Same as a Market Profile, price will stay in here "most" of the time. And particularly during ranging periods, they will provide potential revesal levels. As well, once prices breaks out of it, depending of the reaction to the second band, we can consider it a deviation or the beggining of a new trend. During strong trends, the bands can also serve as a correction support as the MA would do
New Fair Vaue Range: Once a new trend has begun, it will often slide on or break through Band 2, which can be interpreted as price creating a new Fair Value Range low or high. As seen on the chart, once price breaks out, those levels tend to be respected and relevant during corrections. I must make it very clear that this is just an analytical feature meant to be used in confluence with S/R, Supply & Demand, FVGs, Fibs or others. While it can be accurate sometimes, it might not be other times and be only "close".
Exhaustions: I call exhaustions to the scenarios when price keeps going up/down but it fails to keep pushing the fair value area with it. This indicates weakness in the trend and a potential reversal or correction. These appear on all Timeframes and symbols and are very good indications of tops and bottoms, specially after strong rallies or crashes. In the latter cases, waiting for price to re-enter it's FVA, provides great entries at the Bands levels.
Other features / Suggested Uses:
Middle levels: On the setup menu you can select different Standard deviation settings for each band including: 0.5, 1, 1.5, 2, 2.5 and 3. While the most relevant settings are 1 & 2, having their middle levels on the chart can provide extra levels for very tight ranges or just in general potential reversal levels.
Multi Timeframe & Multi symbol: The bands work on very low TF as well as High TF, though on HTF it might be limited by the MA length settings and the historical data of the symbol. It is important to note that each symbol and market type will have its own ideal MA and Bands settings.
Multi Bands Confluence: Same as you would use a short and long MA in a single setup, you can do the same with the bands and the confluence of levels can be very accurate.
Multi Timeframe Confluence: One of the best ways to use the bands so far is by using it in confluence with itself in other TFs, when price moves sharply into a confluent level given by multiple TFs, it is more likely for price to reverse there.
Most of the examples show a 200 SMA, but depending on what and how you are trading a shorter or longer MA might be a better fit for you. As well, if you are trading ranges, a VWMA might be much better, and if you are following a trend the EMA could be the better option.
I also want to make it clear that the bands can but are NOT meant to be a standalone indicator. They are meant to be used for confluence with other strategies, systems or indicators.
Volume Change Indicator 0.1 [PATREND]
(Volume Change Indicator)
It is an analytical tool that studies the trading volume and its changes.
This indicator uses the Simple Moving Average (SMA) to calculate the average volume for a specific period of time.
Only candles that meet the required conditions are determined when the trading volume is greater than or equal to the calculated average.
This means that the indicator identifies a volume candle only when there is a significant change in trading volume compared to the average.
This indicator is distinguished from other similar indicators in that it allows the user to determine the required percentage of change as an additional condition for determining the volume candle.
If the conditions are correct, the indicator will display a diamond below the candle that meets the requirements specified by the user.
The indicator also displays lines above and below the candle and places "A" and "B" marks next to them to determine the start and end points.
__________________________________
(Volume Change Indicator)
It is a useful analytical tool for traders who rely on volume analysis strategies in their trading decisions.
This indicator helps traders identify important volume candles and search for trading opportunities more accurately.
Traders can use this indicator to determine trends and search for potential entry and exit points.
The indicator helps determine when there is a significant change in trading volume compared to the average, indicating a possible change in direction.
In general
This indicator benefits traders who use volume analysis strategies in their trading decisions and who want additional information about trading volume and its changes.
It can also be used for all markets and on different time frames.
_________________________________
Settings:
1. The user is allowed to determine whether they want to display the indicator through the "Show Indicator" box.
2. The user is allowed to determine the required percentage of change through the "Percent Change" box.
3. The user is allowed to determine the type of candles they want to display (Bearish, Bullish, both) through the "Candle Type" box.
4. The user is allowed to calculate the average candle volume using the "Average Vol" box.
5. The user is allowed to determine the length of lines and number of lines they want to display through "Max Lines" and "Line Length" boxes.
_________________________________
We hope you find (Volume Change Indicator) useful in your analysis.
Feel free to try this indicator and customize its settings to meet your trading needs.
We look forward to seeing your opinions and comments on this indicator.
______________________________________________________________________________________________________
(Volume Change Indicator)
هو أداة تحليلية تعمل على دراسة حجم التداول وتغيراته.
يستخدم هذا المؤشر متوسط الحجم المتحرك (SMA) لحساب متوسط الحجم لفترة زمنية معينة.
يتم تحديد الشموع التي تلبي الشروط المطلوبة فقط عندما يكون حجم التداول أكبر من أو يساوي المتوسط المحسوب.
هذا يعني أن المؤشر يحدد شمعة الكميات فقط عندما يكون هناك تغير كبير في حجم التداول مقارنة بالمتوسط.
يتميز هذا المؤشر عن غيره من موشرات الممثاله بأنه يتيح للمستخدم تحديد النسبة المئوية المطلوبة للتغيير كشرط إضافي لتحديد شمعة الكميات.
إذا كانت الظروف صحيحة، فسيعرض المؤشر ماسًا أسفل الشمعة التي تلبي المتطلبات المحددة من قبل المستخدم.
كما يعرض المؤشر خطوطًا فوق وتحت الشمعة ويضع علامتي "A" و "B" بجانبهما لتحديد نقاط البداية والنهاية.
________________________________________
(Volume Change Indicator)
هو أداة تحليلية مفيدة للمتداولين الذين يعتمدون على استراتيجيات تحليل الحجم في قراراتهم التداولية.
يساعد هذا المؤشر المتداولين على تحديد شموع الكميات المهمة والبحث عن فرص تداولية بشكل أكثر دقة.
يمكن للمتداولين استخدام هذا المؤشر لتحديد الاتجاهات والبحث عن نقاط الإدخال والخروج المحتملة.
يساعد المؤشر على تحديد متى يكون هناك تغير كبير في حجم التداول مقارنة بالمتوسط، مما يشير إلى احتمالية حدوث تغير في الاتجاه.
In general
يستفيد من هذا المؤشر المتداولون الذين يستخدمون استراتيجيات تحليل الحجم في قراراتهم التداولية والذين يرغبون في الحصول على معلومات إضافية حول حجم التداول وتغيراته.
كما يمكن استخدامة لجميع الاسواق وعلى مختلف الفواصل الزمنية .
_________________________________________
Settings:
1. يُتيح للمستخدم تحديد ما إذا كان يرغب في عرض المؤشر من خلال خانة "Show Indicator".
2. يُتيح للمستخدم تحديد النسبة المئوية المطلوبة للتغير من خلال خانة "Percent Change".
3. يُتيح للمستخدم تحديد نوع الشموع التي يرغب في عرضها (Bearish, Bullish, both) من خلال خانة "Candle Type".
4. يُتيح للمستخدم حساب متوسط حجم الشموع باستخدام خانة "Average Vol".
5. يُتيح للمستخدم تحديد طول الخطوط وعدد الخطوط التي يرغب في عرضها من خلال خانات "Max Lines" و "Line Length".
_________________________________________
نأمل أن تجدواه مفيدًا في تحليلاتكم .
لا تترددوا في تجربة هذا المؤشر وتخصيص إعداداته لتلبية احتياجاتكم التداولية.
نتطلع إلى رؤية آرائكم وتعليقاتكم حول هذا المؤشر.
HTF FVG D/W/M 25%/50%/75% [MK]Do you use HTF FVG (fair value gaps) in your trading strategy? Do you monitor price on the 25%/50%/75% levels within the FVG on a lower timeframe?
This script will allow the user to display either Daily, Weekly or Monthly FVGs on a lower timeframe chart. The script will then also show the 25%/50%/75% levels within the HTF FVG so traders can see how price reacts in the FVG.
For example, a Weekly FVG may be chosen by the trader as a possible reversal point, or somewhere to add to an existing position. The trader might want to see the FVG almost fully filled, then watch price climb up/down out of the Weekly FVG
before taking the trade.
Previously traders would draw the FVG to the chart, then use maybe the tradingview fib tool to display the 25%/50%/75% levels. The problem with this is that its easy to accidently move the fib while dragging the chart around.
Chart below shows example of price almost filling a D FVG, then using the 25%/50%/75% levels as it climbs out of the FVG and reverses to the upside.
FFH Market structure v1The indicator determines the trend, its direction, confirmed trend, trend breakout levels (BoS), sideways ranges, volume profile point of control levels (vPoC) - all of this is conveniently displayed on the chart and helps complement your technical analysis.
The main idea of the script is to trade volume profile levels (vPoC) by identifying trends and sideways ranges. The script detect them and provides signals as soon as it detects a reaction from a volume level. You then complement these signals with your own technical analysis and make a decision to enter a trade. The script was developed solely to facilitate trading and address the issue of convenient visualization. Structure breakout levels are displayed as additional confirmations for making trading decisions. If we form a sideways range below/above such a trading level, it is a strong signal for me.
For sideways ranges, a volume level is calculated (vPoC), which also serves as input information for the signal engine. Signals are generated based on volume levels, with the calculation of stop loss (SL) and take profit (TP) levels. The SL is set at a certain percentage of the range boundaries or the previous high/low, as specified by a parameter. Targets are calculated intelligently based on trend reversal levels and volume levels.
The indicator parameters are individually tailored to each coin. The number of bars to determine the high/low is adjusted, as well as the allowable price deviation for defining the range boundaries on the first level. There are three modes for determining the sideways range, and data sources for highs/lows can be chosen (high/low/candle close, etc.). To make it more convenient for you to work with the indicator, there is an algorithm for automatic parameter adjustment built-in.
Currently script _only_ works for:
* BTC on 1-hour, 4-hour, and 1-day timeframes.
* ETC on 1-hour, 4-hour, and 1-day timeframes.
* Any altcoin on a 1-day timeframe.
The script will be beneficial to both novice traders, helping them understand market structure, sideways ranges, and identifying structure breakouts, as well as experienced traders, facilitating the process of plotting market structure elements on the chart and making trading decisions.
In any case, this script is not an investment idea.
All trading decisions you make based on the script are made independently and at your own risk.
Liquidity PeaksThe "Liquidity Peaks" indicator is a tool designed to identify significant supply and demand zones based on volumetric analysis. It analyzes the volume profile within a specified lookback range to pinpoint the most volumetric point and draw corresponding zones on the price chart.
The 𝐋𝐢𝐪. 𝐏𝐞𝐚𝐤𝐬 indicator utilizes volume data to identify key supply and demand areas on the price chart. By examining the volume profile within a defined lookback range, it highlights three distinct zones: liquidity grab, volume containment, and the most volumetric point.
Zones and their meanings:
Liquidity grab (Orange box): This zone represents a price level where there is a significant swipe of the previous demand zone within the volume range. It indicates a potential shift in market sentiment and serves as a key supply or demand area.
Volume containment (Gray box): This zone displays the area of volume contained before the peak in volume. It provides insights into the range where buying or selling pressure was concentrated, highlighting potential support or resistance levels.
Most volumetric point (Light blue box): This zone represents the point within the lookback range that exhibits the highest volume. It signifies a significant area of market interest and indicates a potential supply or demand level.
Adjustable options:
Adjust liquidity Grab: This option allows you to adjust the size of the boxes. When enabled, the box size is set to twice the size of the high or low of the candle's wick. This adjustment enhances the visibility and accuracy of identifying swipes at specific price levels.
Show origin: Enabling this option ensures that the liquidity boxes are drawn from the wick they were created from. This provides a clear visual reference to the specific candle and highlights the liquidity levels associated with it.
Utility:
The 𝐋𝐢𝐪. 𝐏𝐞𝐚𝐤𝐬 indicator is a valuable tool for traders and investors seeking to identify significant supply and demand zones in the market. By analyzing volume data and drawing corresponding zones on the chart, it helps to pinpoint areas where buying or selling pressure is likely to emerge.
Traders can utilize this information to identify potential support and resistance levels, plan their entries and exits, and make more informed trading decisions. The liquidity grab zones can act as potential reversal or breakout points, while the volume containment zones and most volumetric points provide insights into areas of high market interest.
It is important to note that this indicator should be used in conjunction with other technical analysis tools and indicators to confirm trading signals and validate market dynamics.
Example Charts:
Days Higher Than Current PriceThe "Days Higher Than Current Price" indicator is a color-coded tool that provides insights into the historical price performance of an underlying asset. By analyzing the number of bars prior to the selected day that had higher closing prices, this indicator visually represents the comparative strength or weakness of the current price level.
The "Days Higher" indicator utilizes a color-coded scheme to indicate the number of days in the asset's price history where the closing prices were higher than the current day's price. The color spectrum ranges from red to blue, representing varying levels of historical price strength.
Color Coding:
The color coding scheme of the indicator offers a quick and intuitive understanding of the price performance:
Red: Represents a higher number of days in the asset's price history where the closing prices were higher than the current day's price. This suggests a weaker price trend or a potential reversal and indicates relative price weakness.
Blue: Represents a lower number of days in the asset's price history where the closing prices were higher than the current day's price. This indicates a strong trend of higher prices and suggests relative price strength.
Orange & Green: Correspond to different numbers of days where the closing prices were higher than the current day's price. The specific color gradations between red and blue reflect increasing or decreasing historical price strength.
Methodology:
The "Days Higher" indicator examines each bar in the asset's price history leading up to the selected day. It counts the number of bars where the closing prices were higher than the current day's price.
The indicator then assigns a specific color to the price chart based on the count of such days, providing a visual representation of historical price strength relative to the current price level.
Utility:
The "Days Higher" indicator offers traders and investors a unique perspective on the historical price performance of an asset. By assessing the color-coded chart, market participants can quickly gauge the presence of strong or weak historical price trends.
This information can be used to identify potential support or resistance levels, assess the overall strength of a trend, or evaluate the likelihood of a price reversal. Traders may incorporate this indicator into their analysis to make more informed trading decisions based on the historical price strength indicated by the color-coded chart.
It is important to note that this tool should be used in conjunction with other technical analysis tools and indicators to validate signals and make well-rounded trading decisions.
Example Charts:
-Indices-
-Stocks-
-Cryptos-
-Multi-Timeframe-
Price Action Box RetracementsThe Price Action Box Retracements Indicator offers a fresh perspective on price analysis, departing from the conventional fixed-length lookback period commonly used in trading indicators. This indicator embraces a more flexible and adaptable approach, taking into account changes in price action behavior and avoiding overfitting. With a design philosophy rooted in the principle of "Keep it simple, stupid!" (KISS), this indicator allows users to customize just one variable: Price Box Size.
Imagine the price action as a journey within a box or channel, defined by significant pivots from the past that act as support and resistance levels. The Price Action Box Retracements Indicator visualizes the midpoints between these pivots, representing half-point retracements. By adjusting the "Price Box Size" variable, users can select the size of the price action box that the script will identify on the chart. A larger value will look for a larger box/channel, meaning the price will stay within it for a longer duration. Think of it as switching to a slower timeframe without changing the chart resolution.
The indicator plots a median line within the price action box, which changes color based on the position of the price action within the box. When the price action is trading below the median, the line is displayed in red, indicating a potential for short entries. Conversely, when the price action is above the box median, the line turns green, suggesting opportunities for long entries. An orange color is used when the price action breaks outside the box, signaling the start of a new trend or a measured move where the box size is expected to double.
Sudden changes in the median location are crucial signals that the price action has broken outside its previous box and created a new one. Usually, the price action will attempt to return back and test its old box boundaries or median (support/resistance) before continuing further. If the new box is positioned above the previous one, it indicates an upward channel (uptrend), while a box below the previous one suggests a descending channel (downtrend). A flat median line represents a ranging market, where the price action lacks a clear directional bias.
In addition to the median plot, the script also offers a pivot-anchored moving average, assisting traders in identifying smaller trends and potential entry points within a larger price action box.
Experience a new approach to price analysis with the Price Action Box Retracements Indicator and enhance your trading strategies with simplicity and flexibility.
K's Pivot PointsPivot points are a popular technical analysis tool used by traders to identify potential levels of support and resistance in a given timeframe. Pivot points are derived from previous price action and are used to estimate potential price levels where an asset may experience a reversal, breakout, or significant price movement.
The calculation of pivot points involves a simple formula that takes into account the high, low, and close prices from the previous trading session or a specific period. The most commonly used pivot point calculation method is the "Standard" or "Classic" method. Here's the formula:
Pivot Point (P) = (High + Low + Close) / 3
In addition to the pivot point itself, several support and resistance levels are calculated based on the pivot point value.
K's Pivot Points try to enhance them by incorporating multiple elements and by applying a re-integration strategy to validate two events:
* Found_Support: This event represents a basing market that is bound to recover or at least shape a bounce.
* Found_Resistance: This event represents a toppish market that is bound to consolidate or at least shape a pause.
K's Pivot Points are calculated following these steps:
1. Calculate the highest of highs for the previous 24 periods (preferably hours).
2. Calculate the lowest of lows for the previous 24 periods (preferably hours).
3. Calculate a 24-period (preferably hours) moving average of the close price.
4. Calculate K's Pivot Point as the average between the three previous step.
5. To find the support, use this formula: Support = (Lowest K's pivot point of the last 12 periods * 2) - Step 1
6. To find the resistance, use this formula: Resistance = (Highest K's pivot point of the last 12 periods * 2) - Step 2
The re-integration strategy to find support and resistance areas is as follows:
* A support has been found if the market breaks the support and shapes a close above it afterwards.
* A resistance has been found if the market surpasses the resistance and shapes a close below it afterwards.
The lookback period (whether 24 and 12) can be modified but the default versions work well.
ICT TGIF_V2 [MK]The ICT T.G.I.F (Thank God Its Friday) works on the following strategy:
1. Friday makes the High/Low of the Week.
2. The Weekly High/Low range is used to calculate 20-30% levels. (see chart above)
3. Trades are taken in the Friday PM session (NY EST) with the idea that price may retrace to the 20-30% level.
The indicator plots the following levels:
1. Week High
2. Week Low
3. Week Open
3. 20-30% level in upper part of weekly range (only shows if Friday has made the high of the week)
4. 20-30% level in lower part of weekly range (only shows if Friday has made the low of the week)
It is possible to show all historical levels listed above for the purpose of back-testing the TGIF strategy.
Also it is possible to disable all the historical and current levels, in which case only the 20-30% levels will show when Friday has made the Week High/Low (the 20-30% level only shows from 1200-1600 on Friday to keep charts as clean as possible.
Users of this script, and any script for that matter, should always do proper back-testing before taking any trades.
Many thanks should be given to ICT (The Inner Circle Trader) for bringing this strategy to the trading community.
Below shows indicator with all levels turned ON
Below shows indicator with all levels turned OFF (this allows for cleaner charts)
Probability Box Rule of Thirds [PPI]█ Probability Box Rule of Thirds
The Probability Box Rule of Thirds , is a visual indicator that helps traders identify possible overbought and oversold conditions. It does this by dividing the price range – highest high minus the lowest low of a given lookback period or date range – into thirds. Each third has distinct probability characteristics and when combined represent a probability box.
We have spent years refining the probability box concept, and have previously published a How To on Trading View – "How to Trade Probability Ranges – The Critical Rule of 1/3" which can be found here:
To quickly summarize the How To – when using the Rule of Thirds , you are using a combination of statistics, probabilities of success, and prior price action to determine when to enter a trade. The visual range division helps remove subjectivity and clearly shows when the trading odds are stacked in your favor. By identifying and taking higher probability trades, you have a higher chance of success as trading is all about probability and risk management.
Implementing the Rule of Thirds starts with finding an instrument that is consolidating and identifying the nearest important support and resistance levels based on your targeted trading timeframe or lookback period.
The range between the support and resistance levels is divided into thirds to form three zones within the consolidation range.
When going LONG , you want to BUY in the bottom third of the range. Once you buy, your objective is to hold during the middle third and sell when the price enters the top third.
When you buy in the lower third, there's a 66.6% probability of success. If you buy in the middle third, you only have a 50% / 50% chance of success. Going long in the top third of the range gives you a 33.3% chance of success as you are already close to the identified resistance level.
When going SHORT , the sequence and odds are reversed. You want to SELL in the top third of the range, hold the middle third and exit in the bottom third of the range. This gives you a 66.6% chance of success when entering in the top third, a 50% / 50% chance when entering in the middle third, and a 33.3% chance in the bottom third given you are already close to the identified support level.
When the price lies in the middle third, the even 50% / 50% odds provide no probability edge and a trader is better off waiting until the price reaches the upper or lower thirds of the price range.
The Rule of Thirds allows us to quickly visually evaluate trades based on probabilities, selectively enter trades that have the highest odds of success, and avoid likely losing trades. The Rule of Thirds gives you confidence to hold trades based on prior trading ranges and provides clear levels where the prices are likely to either reverse or start trending.
The Probability Box Rule of Thirds automatically implements the first two steps of the Rule of Thirds by using the highest high and lowest low of a given lookback period to identify the support and resistance levels, and automatically divides the range into thirds. The rest of the Rule of Thirds rules remain the same.
Just having the price within the bottom thirds or top thirds, however, does not mean the price will immediately reverse. The GE chart below is an example of a stock that remained 'stuck' in the upper thirds of the price range for an extended amount of time:
And the CVS chart below is an example where the price is 'stuck' in the lower thirds of the price range:
While the price is in the upper or lower thirds, it is very important that the trader should use other indicators to identify when a significant trend reversal occurs. Once a trend reversal event happens, the trader either enters a trade AND/OR exits a trade if already in one.
When the price exceeds the bounds of the probability box, there are three possible outcomes – a strong continuation trend, the price consolidates around the probability box edge, or a trend reversal. Your favorite indicators will help determine which event is happening.
The CVS chart above is a good example of the probability box being exceeded with the last bar. The price exceeding the price range is temporary event as the price range will expand to encompass the revised price range on the next trading day.
█ Indicator Features
Each supported timeframe – Monthly, Weekly, and Daily – allows the selection of an appropriate lookback period for your trading style. The defaults are a good starting point for swing trading and long-term investing. You many need to experiment to find the optimal lookback period for your trading style.
Even if you only day trade, the Probability Box Rule of Thirds with the appropriate lookback periods can help you visualize the bigger picture of where the instrument is heading.
When viewing the charts, you can find the currently selected lookback period above the upper edge of the price range.
The indicator will display a dotted yellow line at 50% of the price range and show the line's value when requested.
The visibility of the actual thirds and border price values are controlled by the " Show Probability Box Values " checkbox. You may need to expand the chart's right margin to see the values.
The " Show Internal Labels " checkbox controls the display of the internal ⅓ Division labels and the percentage odds, along with the 50% label. This option by default is set to off.
The " Show Error Messages " checkbox controls the display of error messages and by default is turned on. Turn off to prevent error messages from being shown on intraday timeframes. Save as indicator default to prevent having to turn off this setting each time added to chart.
The color and transparency controls allow the user to modify the colors used for each third. The default settings are optimized for use with a DARK background.
█ Implementation Notes
IMPORTANT - the Probability Box Rule of Thirds is set up to only handle Monthly, Weekly and Daily charts. This is intentional as the indicator is designed to be used for safer multiple day and longer swing trades. When viewed on intraday charts, the indicator will be hidden.
The Probability Box Rule of Thirds uses a rolling window of the equivalent number of bars for the lookback period rather than relying on the bar starting and ending dates. This allows the use of a standard number of days in the selected lookback window across various instruments and ensures fast, efficient calculations.
The lookback periods are adjusted when non-standard timeframe multipliers are used – e.g., a 12M chart timeframe and a 3-year lookback period will result in a 3 bar lookback. Fractional bars in this calculation are rounded up and any incompatible lookback period and chart timeframe combination will generate a runtime error.
In summary, the Probability Box Rule of Thirds automates and visually identifies overbought and oversold areas, which combined with the Rule of Thirds probability risk profiles, increases your odds of success through better trade selections and higher confidence in your trades.
█ Disclaimer
There is substantial risk in trading. Losses incurred in trading can be significant. Only trade with money you can afford to lose. We make no claims whatsoever regarding the impact of past or future performance on your trading results.
Super PivotsThis is Super Pivots !!
This indicator can do the following:
Display Pivots for all time frames on the chart.
Display Pivots for shorter time frames (such as 1-hour timeframe).
Display Pivots for the market.
Wick Reversal Indicator - Aligned with "Secrets of a Pivot Boss"The Wick Reversal Indicator is a powerful technical tool developed in accordance with the pseudocode outlined in the book "Secrets of a Pivot Boss" by Franklin O. Ochoa, Jr. This indicator assists traders in identifying potential market reversal points with enhanced precision.
By closely following the principles discussed in the book, the Wick Reversal Indicator evaluates key factors such as candlestick body size, wick length, and the relationship between close and open prices. It provides clear bullish and bearish reversal signals, visualized through triangular markers on the price chart.
Traders can fine-tune the sensitivity of the indicator by adjusting the Wick Multiplier and Body Percentage parameters to match their trading preferences and timeframes. This customization feature ensures adaptability to different market conditions and trading strategies.
With the Wick Reversal Indicator, traders gain an automated and objective tool for identifying potential market reversals, backed by the time-tested methodology presented in "Secrets of a Pivot Boss." It serves as a valuable addition to traders' analysis, aiding in informed decision-making and enhancing trading outcomes.
Range H/L Buy and Sell SignalThe "Range H/L Buy and Sell Signal" indicator is designed to identify potential buy and sell signals based on a specified price range and market volatility. This indicator can be used in the TradingView platform to assist traders in making informed decisions.
The indicator allows customization of several parameters to adapt to different trading strategies. These parameters include the start and end times for the price range, the volatility threshold, and the desired breakout conditions.
To begin, the indicator calculates the range start and end timestamps based on the provided hours and minutes. This defines the time period within which the indicator will analyze price movements.
Next, the indicator determines the highest high (High) and lowest low (Low) within the specified price range. These levels represent the upper and lower boundaries of the range and act as potential breakout points.
Volatility is also taken into account to filter out false signals. The indicator calculates the true range and the average true range over a period of 14 bars. The true range measures the price range from the current high to low, while the average true range provides an indication of market volatility.
Based on the breakout conditions and the volatility threshold, buy and sell signals are generated. A buy signal occurs when the closing price crosses above the High and the true range is greater than the volatility threshold multiplied by the average true range. Conversely, a sell signal is triggered when the closing price crosses below the Low and the true range exceeds the volatility threshold multiplied by the average true range.
The indicator visually displays the High and Low levels as plotted lines on the chart. Additionally, it marks the buy signals with green labels labeled "BUY" below the corresponding bars and the sell signals with red labels labeled "SELL" above the bars.
It is important to note that this indicator should be used in conjunction with other technical analysis tools and indicators for comprehensive market analysis. Trading always carries risks, and it is crucial to exercise caution and conduct thorough analysis before making any trading decisions.
Divergent Trades LLC:
Disclaimer: The information provided by the Divergent Trades LLC indicator is for educational and informational purposes only. It should not be considered financial advice or a recommendation to buy, sell, or trade any financial instrument. Divergent Trades LLC is not responsible for any losses incurred as a result of using this indicator. Trading in the financial markets carries a high level of risk and may not be suitable for all investors. Before making any investment decisions, please consult with a financial advisor and do your own due diligence. Past performance is not indicative of future results. By using the Divergent Trades LLC indicator, you acknowledge that you have read and understand this disclaimer and agree to its terms and conditions.
HTF Candle Support & Resistance «NoaTrader»This script uses higher timeframe candle's High, Low & Close as a source for drawing a line representing potential Supports and Resistances.
The more lines you see on a level, probably the more important that level is.
The script has a single input for setting the source candle's timeframe, so it can be used on any timeframe with the proper settings. For example, higher timeframes like weekly and monthly can use "3M" or "12M" settings, Daily timeframes with "W", or even lower timeframes like minutes and seconds with "240" and "60" (M means monthly candle, W is weekly, and numbers are for minutes.)
As you can see on the code:
Red lines represent candle's High.
Green lines represent candle's Low.
Blue lines represent candle's Close.
Give it a try on different timeframes with different settings to see interesting gaps between lines!
Anchored VWAP (Auto High & Low)OVERVIEW
This script plots, and auto-updates, 3 separate VWAPs: a traditional VWAP, a VWAP anchored to a trends high, and another anchored to a trends low.
VWAP and Anchored VWAPs are commonly used by institutions responsible for the majority of market volume on a given day. Citadel Trading, for example, accounts for approximately 35% of all U.S. listed retail volume , largely executed through program trades over the course of a day, week, or month.
Because VWAP is a prominent market maker tool for executing large trades, day traders can use it to better anticipate trends, mean reversion, and breakouts.
This is most useful on charts with intraday time frames (1 minute, 5 minute etc.) commonly used for day trading. This is not ideal for larger time frames (1 hour or greater) commonly used for swing trading or identifying larger trends.
INPUTS
You can configure:
The size, color, and visibility of 6 different plots (VWAP, High Anchor, Low Anchor, Average of Anchors, Quarter Values, Interim Bands)
How smooth the average displays
INSPIRATION
1. "How To Measure Anything" by Douglas W. Hubbard
2. "Maximum Trading Gains With Anchored VWAP" by Brian Shannon
Better understanding probability and how to analyze risk (first book), as well as the tools market makers use (second book), has completely reframed how I approach day trading.
QFL Drop %This script helps Quick Fingers Luc strategy traders
The script works as follows
When a new low is formed lower than the previous one, the script calculates the percentage difference between them and stores it in an array
and calculates the average of the stored percentages, the maximum percentage, the minimum percentage
and displays them on the chart, this helps the trader to determine where the drop could go after the bottom is broken.
Algo LinesThe primary objective of this indicator is to identify and draw significant trendlines based on pivot points. These trendlines can help traders make informed decisions by providing a visual representation of support and resistance levels in the market.The script consists of several input parameters, functions, and variables that work together to create dynamic trendlines based on pivot points. The input parameters allow users to customize the appearance and behavior of the indicator, including the colors of the trendlines, the timeframe, and the maximum number of crossed lines to display.
The core of the script is built around two main functions:
1. createLine(): This function is responsible for creating a new trendline based on the provided pivot points. It takes five arguments - pivot type, x1, y1, x2, and y2 coordinates - and returns a new line object. Depending on the pivot type, the function adds the new line to either the dtlArray (down trendline array) or utlArray (up trendline array).
2. getSlope(): This function calculates the slope of a given line and returns the extended price level based on the current bar index. It takes one argument - the line object - and uses its coordinates to compute the slope.
The script also employs several variables to store and manipulate pivot points and trendlines. These include arrays for up and down trendlines (dtlArray and utlArray), variables for storing pivot point coordinates (utlX1, utlY1, etc.), and temporary arrays for storing crossed trendlines (tempUtl and tempDtl).
Creating Trendlines
The Algo Lines script identifies pivot highs and pivot lows using the ta.pivothigh() and ta.pivotlow() functions. When a new pivot low is detected, the script updates the utlX1 and utlY1 variables with the previous pivot low coordinates, and the utlX2 and utlY2 variables with the current pivot low coordinates. If the rate of change between these points meets the minimum threshold specified by the user, the createLine() function is called to create a new up trendline.
Similarly, when a new pivot high is detected, the script updates the dtlX1 and dtlY1 variables with the previous pivot high coordinates, and the dtlX2 and dtlY2 variables with the current pivot high coordinates. If the rate of change between these points meets the minimum threshold specified by the user, the createLine() function is called to create a new down trendline.
Processing Trendlines
The Algo Lines script processes up and down trendlines separately. For each trendline in the utlArray, the script checks if the price has crossed the trendline based on the user's chosen cross source (either close or high/low). If the price crosses a trendline, the script creates a new dashed line with the pastColor and adds it to the temporary array (tempUtl). The original trendline is then deleted.
The same process is applied to the dtlArray, except that the temporary array used is tempDtl. In both cases, if the number of crossed lines exceeds the maximum specified by the user, the oldest crossed line is removed from the temporary array.
Conclusion
The Algo Lines indicator offers traders a powerful tool for identifying significant trendlines based on pivot points. By providing a customizable and dynamic visual representation of support and resistance levels, the script enables traders to make better-informed decisions in the market. The concise and well-structured Pine Script code adheres to TradingView's house rules and ensures a seamless integration with the platform.
[DisDev] D-I-Y Gridbot🟩 This script is a “do-it-yourself” Grid Bot Simulator, used for visualizing support and resistance levels. Prices are divided into grids, or trade zones, that will trigger signals each time a new zone is entered. During ranging markets, each transaction is followed by a “take profit.” As the market starts to trend, transactions are stacked (compare to DCA ), until the market consolidates. No signals are triggered above the upper gridline or below the lower gridline. Unlike the previous version, all grids may be adjusted in real-time by dragging the gridlines up and down to the desired support and resistance levels.
When adding the indicator to a new chart, you must choose six grid levels by clicking on the desired support or resistance price. You can change all of these levels at any time directly on the chart.
⚡ OVERVIEW ⚡
The D-I-Y Gridbot is an interactive tool designed for visualizing support and resistance levels. As a continuation of the original Gridbot Simulator , which has received significant recognition on TradingView, earning over 4000 boosts and an Editor's Pick status. This tool serves not only as an evolved version of its predecessor, but also as an open-source template for developing future gridbots. It aims to foster discussions and facilitate innovations around grid-trading strategies.
One of the new features of this gridbot is the real-time adjustability of all gridlines. Users can move these lines up and down to set their desired support and resistance levels in response to changing market conditions. Additionally, the D-I-Y Gridbot is compatible with multiple timeframes and can be used on most TradingView charts.
Drag gridlines up or down to desired price level.
Key Features 🔑
All gridlines are adjustable in real-time, directly on the chart
Signals can be filtered by a customizable moving average or by VWAP
Customizable support and resistance levels
Potentially increases profitability in ranging markets
Benefits 💸
Customizable Support and Resistance Levels : The D-I-Y Gridbot allows users to set their preferred support and resistance levels, which can be changed at any time directly on the chart. This provides users with the ability to customize their trading parameters based on their strategy and risk tolerance.
Various Trading Strategies : The D-I-Y Gridbot supports various trading strategies, including Mean Reversion, Ranging Markets, and Dollar-cost averaging (DCA). This allows users to capitalize on price reversals, execute buy and sell orders at predetermined levels, and buy more of an asset as the price falls, respectively.
Multi-Timeframe and Versatility : The D-I-Y Gridbot is compatible with multiple timeframes and can be used on any TradingView chart.
Experimental and Educational : The D-I-Y Gridbot is considered a proof-of-concept tool that is both experimental and educational. This can provide traders with a deeper understanding of grid trading strategies and the ability to experiment with different trading parameters and strategies.
⚙️ CONFIGURATION & SETTINGS ⚙️
Inputs 🔧
Trigger : Candle location to trigger the signal. "Wick" will use either high or low, depending on the signal direction. "Close" will use the close price. “MA” will use the selected moving average or VWAP.
Confirmation : Market direction to confirm the candle trigger. "Reverse" will confirm the signal when the price crosses back over the trigger. "Breakout" will confirm when the price breaks out of the trigger.
Number of Support/Resistance zones : 1 = Only Top Grid is Support/Only Bottom Grid is Resistance. 2 = Top two grids are Resistance/Bottom two grids are Support. 3 = Top three grids are Resistance/Bottom three grids are Support
MA Type : Exponential Moving Average (EMA), Hull Moving Average (HMA), Simple Moving Average (SMA), Triple Exponential Moving Average (TEMA), Volume Weighted Moving Average (VWMA), Volume Weighted Average Price (VWAP)
MA Filter : Use Moving Average as a reversion filter for signals. When enabled, no buys when above MA, no sells when below. Use in conjunction with S/R zones to reduce false signals.
Allow Repeat Signals . When enabled, signals will reset when nearest gridline is triggered. When disabled, only one signal will be triggered per gridline.
Line/Fill colors
Gridlines . Adjusts gridline prices manually.
Left : Trigger = Wick. Confirm = Breakout. Buys are signaled when LOW breaks below gridline. Sells are triggered when HIGH breaks above gridline.
Right : Trigger = Close. Confirm = Breakout. Buys are signaled when the candle CLOSES below the gridline. Sells are triggered when the candle CLOSES above the gridline.
Left : Confirm=Breakout. Signals on breaking through the next gridline.
Right : Confirm=Reverse. Signals only when crossing back from the gridline.
S/R Zones=1. Upper gridline is Resistance / Lower is Support. Middle 4 are neutral.
S/R Zones = 3. Upper three gridlines are Resistance / Lower three are Support
Notes:
If gridlines are dragged out of order on a live chart, they will auto-sort into the correct order.
Price levels may be entered in settings, or adjusted in real-time directly on the chart.
When changing symbols, remember to adjust the gridlines to accommodate the new symbol.
Alerts 🔔
Users can set alerts based on their chosen parameters for triggers, confirmations, number of support/resistance zones, and smoothing type, enabling precise control over alert conditions.
💡 USAGE & STRATEGY 💡
Trading Strategies 📈
Mean Reversion: The script can be used to capitalize on price reversals back to the mean.
Ranging Markets: The script excels in ranging markets, executing buy and sell orders at predetermined levels.
Dollar-cost averaging (DCA): The script can be used to execute DCA orders, buying more of an asset as the price falls, and lowering the average cost per unit.
Timeframes and Symbols ⌚
Multi-Timeframe: The indicator is compatible with multiple timeframes.
Versatile: Can be used on any crypto trading pair on TradingView.
🤖 DETAILS & METHODOLOGY 🤖
Algorithm and Calculation 🛡️
Grids are set and adjusted when loading the indicator on the chart and may be customized anytime afterward by clicking and dragging the gridlines on the chart.
Gridlines are updated, sorted, and stored in a float array.
Signals are calculated based on candle trigger, market direction, and previous price level.
📚 ADDITIONAL RESOURCES 📚
Chart Examples 📊
S/R Zones = 3: Three Support and Three Resistance. Filter = 50-period Triple Exponential Moving Average (TEMA)
S/R Zones = 1: One Support, One Resistance, and Four Neutral Zones. Support Zones: Buys only. Resistance Zones: Sells only. Neutral Zones: Grid-dependent
When MA filter is enabled, Buys are only triggered below Moving Average, and Sells are only triggered above.
Trigger = Wick. Confirmation = Breakout. Buys are signaled when Low breaks above the next grid level. Sells are signaled when High breaks below the next grid level.
🚀 CONCLUSION 🚀
The D-I-Y Gridbot is a proof-of-concept, emphasizing its experimental and educational nature. In future versions, we will aim to incorporate concepts such as auto-adjusting grids and angled grids for trending markets. The script is designed to evolve through user feedback and suggestions, shaping its future iterations.
Credit: This is a continuation of the Gridbot series by xxattaxx-DisDev . Explicit permission was granted by user xxattaxx-disdev to re-use all Gridbot code and all materials without restrictions.
⚠️ DISCLAIMER ⚠️
This indicator is a proof-of-concept and is considered experimental and educational. When gridlines are drawn in hindsight, signals appear to be predictive and valid. Future results may always vary when the trend direction changes. Comments and suggestions are encouraged.
This indicator is provided as a tool for traders and should not be used as the sole basis for making trading decisions. Always conduct your own research and consider your risk tolerance before entering any trades.
Scalp Pump-Dump Detector with AlertsThis script displays the percentage of movement of all candles on the chart, as well as identifying abnormal movements to which you can attach alerts. An abnormal movement is considered a rise or fall that exceeds the parameter set in the settings (by default, 1% per 1 bar).
Added a function to display the volume on abnormal candlesticks.
Daily Monday Weekly Monthly Quarterly Yearly High Low Mid This indicator can be useful for traders who are interested in analyzing price movements over different time periods. By displaying the daily, Monday, weekly, monthly, quarterly, and yearly high and low values along with their mid values on a chart, traders can get a better understanding of how prices have behaved over longer periods of time.
For example, a trader might use this information to identify trends or patterns in the market. They might look for occasions when the daily high and low values move outside of an established range or when the weekly or monthly mid values cross certain key levels. This could signal a potential change in the market trend that the trader could act upon.
Additionally, the code can help traders identify key support and resistance levels based on the high and low values of the candles. By plotting these values on a chart, traders can see where prices tend to find support or resistance over different time periods. This information can be used to place stop loss orders or take profit orders at important levels.
Overall, the benefit of using the code you provided is that it offers traders a comprehensive view of price movements over different time periods, which can aid in making more informed trading decisions.
Each level described above has its own unique label, which is abbreviated for convenience. These abbreviations are listed below for quick reference:
For daily levels: DH (Daily High), DM (Daily Mid), and DL (Daily Low)
For Monday levels: MonH (Monday High), MonM (Monday Mid), and MonL (Monday Low)
For monthly levels: MH (Monthly High), MU50 (Monthly 50 percent of Mid and High), MM (Monthly Mid), MD50 (Monthly 50 percent of Mid and Low), and ML (Monthly Low)
For quarterly levels: 3MH (Quarterly High), 3MU50 (Quarterly 50 percent of Mid and High), 3MM (Quarterly Mid), 3MD50 (Quarterly 50 percent of Mid and Low), and 3ML (Quarterly Low)
For yearly levels: YH (Yearly High), YU50 (Yearly 50 percent of Mid and High), YM (Yearly Mid), YD50 (Yearly 50 percent of Mid and Low), and YL (Yearly Low)
These labels can help you quickly identify the different levels and keep track of important price points.
If the chosen timeframe does not fall under the category of intraday, daily and Monday level will not be displayed.
Please feel free to send your suggestions to @z_mehran.
MokuNui - Supply n Demand (Auto-Levels)This indicator aims to identify supply and demand levels in the market by calculating buy and sell pressure based on weighted closing prices.
The indicator starts by defining several variables and input parameters. The 'n' parameter determines the period used for calculations, while the 'DemandIndexValue' parameter sets the threshold for identifying demand levels.
The indicator uses the high, low, close, volume, and bar index data to calculate various values. It calculates the weighted closing price (wC) as the average of the high, low, and twice the closing price divided by four. It also calculates the rate of change of the weighted closing price (wCR) as the difference between the current wC and the previous wC divided by the minimum value between the two.
Next, it calculates the buy pressure (buyP) and sell pressure (sellP) values based on the wCR and volume. If the wCR is positive, buyP is set to vR (volume divided by the average volume), and sellP is set to vPerC (vR divided by the exponential of the minimum value between 88 and cR). Otherwise, if wCR is negative, the values are assigned in the opposite way.
To smooth out the buy and sell pressure values, the indicator uses a rolling average calculation. It maintains two variables, buyPres and sellPres, which are updated for each new data point. These variables store the cumulative sum of the buy and sell pressure values over the specified period 'n' and divide it by 'n' to get the average. This process helps reduce noise and provide a smoother representation of the pressure values.
The indicator then calculates the Demand Index (DI) based on the buyPres and sellPres values. If the difference between the current and previous buyPres and sellPres values is positive, DI is set to - (buyPres / sellPres) if sellPres is not zero; otherwise, it is set to -1. If the difference is negative, DI is set to sellPres / buyPres if buyPres is not zero; otherwise, it is set to 1. The DI value is used to determine the direction of demand in the market, with values less than 0 indicating a downtrend and values greater than 0 indicating an uptrend.
Using the DI values, the indicator calculates the Demand Index (DMI) by assigning a value of -1 - DI for downtrends and 1 - DI for uptrends. These values represent the market sentiment regarding supply and demand.
The indicator then tracks the lowest demand level (DemandL) and the highest demand level (DemandH). When the DMI crosses under the specified DemandIndexValue, it updates the DemandL to the current low price (l). If the DMI is less than -0.2 and the current low price is lower than the previous DemandL, it updates the DemandL; otherwise, it retains the previous value. The indicator also tracks the bar index (DemandX) corresponding to the demand level.
Similarly, the indicator tracks the highest supply level (SupplyH) and the lowest supply level (SupplyL). When the DMI crosses over the DemandIndexValue, it updates the SupplyH to the current high price (h). If the DMI is greater than 0.5 and the current high price is higher than the previous SupplyH, it updates the SupplyH; otherwise, it retains the previous value. The indicator also tracks the bar index (SupplyX) corresponding to the supply level.
Using the recorded demand and supply levels, the indicator draws lines and cloud areas on the price chart to represent them. It creates a shaded area (dcloud) between the DemandL and DemandH using the linefill.new function with a specified color. Similarly, it creates a shaded area (scloud) between the SupplyL and SupplyH to represent the supply zone. Additionally, it creates a shaded area (rcloud) above the SupplyH to indicate potential resistance levels based on the Average True Range (atr).
The indicator also plots two lines, DH and DL, to represent the demand levels. The line.set_xy1 and line.set_xy2 functions are used to set the line's coordinates based on the bar index and the corresponding demand level. The line.set_extend function is used to extend the line to the right of the chart.
Likewise, it plots two lines, SH and SL, to represent the supply levels. These lines are set using the same functions as the demand lines.
Finally, the indicator plots two lines, RH and RL, to represent the potential resistance levels. These lines are set based on the bar index and the calculated resistance value. They are also extended to the right of the chart.
Akamai Reversal (Repaint's)The indicator is called "Akamai Reversal (Repaint's)" and is designed to be overlaid on the price chart. It uses three exponential moving averages (EMAs) with lengths of 9, 14, and 21 respectively, referred to as Superfast, Fast, and Slow. The indicator generates buy signals when the Superfast EMA is above the Fast EMA, the Fast EMA is above the Slow EMA, and the lowest price in the previous bar is above the Superfast EMA. It generates sell signals when the Superfast EMA is below the Fast EMA, the Fast EMA is below the Slow EMA, and the highest price in the previous bar is below the Superfast EMA. The indicator calculates and tracks bullish and bearish momentum based on the buy and sell signals. It uses a ZigZag indicator to identify price reversals based on either a percentage or absolute amount specified by the user. The indicator calculates the Average True Range (ATR) and uses it to determine the reversal amount. It tracks the state of the price trend (uptrend or downtrend) and identifies high and low points in the trend. The indicator includes options to display bubbles with information such as price changes, price levels, and bar counts associated with trend changes.