3 CANDLE SUPPLY/DEMANDExplanation of the Code:
Demand Zone Logic: The script checks if the second candle closes below the low of the first candle and the third candle closes above both the highs of the first and second candles.
Zone Plotting: Once the pattern is identified, a demand zone is plotted from the low of the first candle to the high of the third candle, using a dashed green line for clarity.
Markers: A small triangle marker is added below the bars where a demand zone is detected for easy visualization.
Efficient Logic: The script checks the conditions for demand zone formation for every three consecutive candles on the chart.
This approach should be both accurate and efficient in plotting demand zones, making it easier to spot potential support levels on the chart.
Supplyanddemmand
Supply & Demand (MTF) | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Supply and Demand (MTF) Indicator! This new indicator renders Supply and Demand zones based on momentum candles. It can detect Supply and Demand zones across up to 3 diferent timeframes. It's capable of combining zones, retest & break labels and it's customizable with invalidation and style settings.
Features of the new Supply and Demand (MTF) Indicator:
Renders Supply and Demand Zones Across 3 Timeframes
Combination Of Overlapping Zones
Retest & Break Labels
Retest & Break Alerts
Enable / Disable Historic Zones
Visual Customizability
📌 HOW DOES IT WORK ?
Supply and Demand is a key concept in trading. It helps traders see the zones that market-makers buy & sell the asset in large amounts. It's detected by finding momentum candles (candles that have large bodies) in a row.
Momentum candles are defined to have a larger body than the average candle in the chart, and at least 4 of them in a row is required to draw a supply or demand zone. The zone is drawn from the high wick to low wick of two candles before the first momentum candle in the row.
Check this example :
These zones are usually where market makers trade the asset in larger amounts. Thus, they act as support & resistance zones by their nature. A retest of these zones can make the price bounce to the opposite direction, while a breakout usually means strong price action momentum is incoming in that direction. Supply zones indicate bearish momentum while demand zones indicate bullish momentum.
Check this example :
Here a Supply Zone (Bearish) forms. Then price comes back up to test the zone, and it fails to break. After the failed attemp, a stong bearish momentum takes the price back to a lower level. Then another test of the zone occurs and successfully breaks the zone this time. This breakout starts a bullish momentum that takes the price to a higher level.
🚩UNIQUENESS
This indicator provides Supply and Demand zones in your chart with pure simplicity. It supports up to 3 different timeframes as we believe supporting your trades with higher timeframes can improve your trading experience. It also gets rid of complexity by combining overlapping zones into a single zone, even if they are from different timeframes! You can also set-up alerts to get notified when a supply or demand zone is being retested, or is broken. Overall, this indicator is the ultimate kit for supply and demand zones.
⚙️SETTINGS
1. General Configuration
Max Distance To Last Bar -> The maximum distance that the indicator will render supply and demand zones from. Higher settings mean rendering older supply and demand zones.
Zone Invalidation -> Select between Wick & Close price for Supply and Demand Zone Invalidation.
Retests & Breaks -> Enable retest & break labels in your chart.
Show Historic Zones -> This will show historic supply & demand zones which are invalidated if enabled. You can disable this to only see active supply and demand zones for a simpler chart.
2. Timeframes
You can set up to 3 different timeframes and enable / disable them using the checkboxes in this section.
Institutional Supply and Demand ZonesThis indicator aims to identify price levels where institutional investors have positioned their buy or sell orders. These buy orders establish "demand zones," while sell orders create "supply zones." Identifying these zones enables us to anticipate potential reversals in price trends, allowing us to profitably engage in these significant market movements alongside major institutions. These zones are formed when price action goes from balanced to imbalanced. These zones are based on orders. Unlike standard support and resistance levels, when price breaks below a demand zone or above a supply zone, these zones disappear from the chart.
Supply is formed by a green candle followed by a major red candle that is at least double the size of previous green candle. The zone is then charted from the open of the green candle to the highest point in the candle. Vice versa for a demand zone (red into green).
These zones are traded by:
1. Look for a volume spike in a zone
2. A trend/trendline break out of the zone
FVG Detector [TradingFinder] Fair Value Gap-Imbalance-Mitigated🔵 Introduction
When the market makes a strong move in the form of a "Marubozu" or "Spike" candlestick and consecutive candles move without a retracement, the maximum place where a "FVG" or "Fair Value Gap" is created.
🔵 Definition
To describe this precisely, whenever a move occurs where the current candle does not cover the body of the previous and subsequent candles, a fair value gap is created.
Important : The significant point is that, because there is no equilibrium between buyers and sellers in these conditions, and market power is in the hands of buyers or sellers, the market is likely to move towards these areas.
An example of "FVG" in a price increase where we expect buying on the return to it.
An example of "FVG" in a downward trend where the market will move towards it in a downward direction.
🔵 How to Use
🟣 Bearish FVG
In a downward trend, "orange boxes" are drawn, which are the same and can act as "support" zones along the downward path, and we expect the price to continue its downward trend on return.
🟣 Bullish FVG
In an upward trend, "green boxes" are drawn, which are . They act exactly like support in the upward path, and we expect the price to continue its upward trend on return.
🟣 Auxiliary Definitions
Imbalance : As mentioned above, market power is in the hands of one of the two sides, buyers or sellers, and a non-equilibrium zone is created. It may be completed in whole or in part in subsequent price movements.
Mitigated : If the price returns to the "FVG" area and fills it, we call it "Mitigated," and most "pending" or "profit and loss limits" positions are executed. We will not have a specific reaction on the return of the price.
🔵 Settings
Very Aggressive : In addition to the initial condition, another condition is added. For an upward FVG, the maximum price of the last candle should be larger than the middle candle's maximum price. Similarly, for a downward FVG, the minimum price of the last candle should be smaller than the middle candle's minimum price. In this mode, a very small number of FVGs are eliminated.
Aggressive : In addition to the conditions of the Very Aggressive mode, in this mode, the size of the middle candle should not be small. In this mode, a larger number of FVGs are eliminated.
Defensive : In addition to the conditions of the Very Aggressive mode, in this mode, the size of the middle candle should be relatively large, and the majority of it should be made up of the body. Additionally, to identify upward FVGs, the second and third candles must be positive, and to identify downward FVGs, the second and third candles must be negative. In this mode, a large number of FVGs are eliminated, leaving only those with suitable quality.
Very Defensive : In addition to the conditions of the Defensive mode, the first and third candles should not be very small-bodied doji candles. In this mode, the majority of FVGs are filtered out, leaving only the highest quality ones.
🔵 Features
Show Demand FVG : Displays demand-related boxes, which can be "off" and "on."
Show Supply FVG : Displays supply-related boxes along the path, and can be turned "off" and "on."
🔵 Indicator Advantages
In this indicator, I have implemented 4 types of "filters" that allow you to select one based on the trading symbol, timeframe, etc. From "Very Aggressive" to "Very Defensive" mode, it is possible to select.
In most indicators, all FVGs are displayed, and the chart becomes full of lines. But this unique feature allows the trader to manage the drawing of boxes.
Order Blocks Finder [TradingFinder] Major OB | Supply and Demand🔵 Introduction
Drawing all order blocks on the path, especially in range-bound or channeling markets, fills the chart with lines, making it confusing rather than providing the trader with the best entry and exit points.
🔵 Reason for Indicator Creation
For traders familiar with market structure and only need to know the main accumulation points (best entry or exit points), and primary order blocks that act as strong sources of power.
🟣 Important Note
All order blocks, both ascending and descending, are identified and displayed on the chart when the structure of "BOS" or "CHOCH" is broken, which can also be identified with "MSS."
🔵 How to Use
When the indicator is installed, it plots all order blocks (active order blocks) and continues until the price reaches them. This continuation happens in boxes to have a better view in the TradingView chart.
Green Range : Ascending order blocks where we expect a price increase in these areas.
Red Range : Descending order blocks where we expect a price decrease in these areas.
🔵 Settings
Order block refine setting : When Order block refine is off, the supply and demand zones are the entire length of the order block (Low to High) in their standard state and cannot be improved. If you turn on Order block refine, supply and demand zones will improve using the error correction algorithm.
Refine type setting : Improving order blocks using the error correction algorithm can be done in two ways: Defensive and Aggressive. In the Aggressive method, the largest possible range is considered for order blocks.
🟣 Important
The main advantage of the Aggressive method is minimizing the loss of stops, but due to the widening of the supply or demand zone, the reward-to-risk ratio decreases significantly. The Aggressive method is suitable for individuals who take high-risk trades.
In the Defensive method, the range of order blocks is minimized to their standard state. In this case, fewer stops are triggered, and the reward-to-risk ratio is maximized in its optimal state. It is recommended for individuals who trade with low risk.
Show high level setting : If you want to display major high levels, set show high level to Yes.
Show low level setting : If you want to display major low levels, set show low level to Yes.
🔵 How to Use
The general view of this indicator is as follows.
When the price approaches the range, wait for the price reaction to confirm it, such as a pin bar or divergence.
If the price passes with a strong candle (spike), especially after a long-range or at the beginning of sessions, a powerful event is happening, and it is outside the credibility level.
An Example of a Valid Zone
An Example of Breakout and Invalid Zone. (My suggestion is not to use pending orders, especially when the market is highly volatile or before and after news.)
After reaching this zone, expect the price to move by at least the minimum candle that confirmed it or a price ceiling or floor.
🟣 Important : These factors can be more accurately measured with other trend finder indicators provided.
🔵 Auxiliary Tools
There is much talk about not using trend lines, candlesticks, Fibonacci, etc., in the web space. However, our suggestion is to create and use tools that can help you profit from this market.
• Fibonacci Retracement
• Trading Sessions
• Candlesticks
🔵 Advantages
• Plotting main OBs without additional lines;
• Suitable for timeframes M1, M5, M15, H1, and H4;
• Effective in Tokyo, Sydney, and London sessions;
• Plotting the main ceiling and floor to help identify the trend.
Supply and Demand Anchored [LuxAlgo]The Supply and Demand Anchored indicator is an anchored version of the popular Supply and Demand Visible Range indicator. Once adding the indicator to the chart, users need to manually select the starting and ending points for the indicator's calculation. The estimated supply/demand zones are then extended.
🔶 USAGE
The proposed indicator makes use of the same method highlighted in previous posts (see related scripts section below) to estimate supply and demand zones.
When adding the indicator to the chart, users will be prompted to select a starting and ending point for the calculation of the supply and demand zones, click on your chart to select those points.
Once calculated, each zone/level will be extended to the right of the chart. These can be used as support/resistance zones. Clicking on one of the graphical elements of the indicator or the indicator title will highlight the starting and ending calculation points, these can be dragged to be set at different locations.
🔶 SETTINGS
Threshold %: Percentage of the total visible range volume used as a threshold to set supply/demand areas. Higher values return wider areas.
Resolution: Determines the number of bins used to find each area. Higher values will return more precise results.
Intra-bar TF: Timeframe used to obtain intra-bar data.
🔶 RELATED SCRIPTS
Supply and Demand Based Pattern [RH]This indicator focuses on detecting RBR and DBD patterns, which signify periods of increased momentum and potential continuation or reversal of the prevailing trend.
The RBR pattern consists of a rally (upward movement), followed by a base (consolidation or retracement), and then another rally. It suggests that the upward momentum may persist and provide trading opportunities.
On the other hand, the DBD pattern comprises a drop (downward movement), followed by a base, and then another drop. It indicates that the downward momentum might continue, offering potential shorting opportunities.
Bullish(RBR) example:
Bearish(DBD) example:
1. The bullish (RBR) and bearish (DBD) patterns share the same underlying logic, only differing in their directionality.
2. For both RBR and DBD patterns, the first rise/drop can consist of one or multiple candles. However, in the case of multiple candles, all candles must exhibit a bullish nature for RBR and a bearish nature for DBD.
Example:
3. It is a prerequisite for the first rise/drop to include at least one candle with a defined percentage of health, as determined by the user.
4. The base, following the first rise/drop, may comprise one or multiple candles.
Example:
5. To maintain consistency, the base is not allowed to retrace beyond 80%, although this value can be adjusted by the user.
6. Similar to the first rise/drop, the second rise/drop in both RBR and DBD patterns can consist of one or multiple candles. However, all candles within this phase must demonstrate a bullish nature for RBR and a bearish nature for DBD.
7. Confirmation of the bullish (RBR) pattern occurs when a candle closes above the high of the first rise. Conversely, the bearish (DBD) pattern is confirmed when a candle closes below the low of the first drop.
Example:
Alerts can be set for all bullish and bearish pattern or for the first pattern in the range of similar pattern.
Volume-based Support & Resistance Zones-V1 By Trade Mastership™ The all-new Support & Resistance Zones indicator, which has been upgraded to offer traders more powerful features and functionality. This innovative indicator identifies high-volume fractal lows or highs to create zones based on the size of the wick for that timeframe's candle. This makes it easy for traders to visualize which price levels are the most significant for either a trend continuation or a reversal when zones are broken and retested.
The original script for this indicator was created by Trade Mastership, with additional modifications by L N Behera. Credit goes to both of them for the majority of the logic behind this script. Since then, the script has been improved with several changes, including:
Changing the default S/R lines from plots to lines, and giving users the option to change between solid, dashed, or dotted lines for both S/R lines
Adding additional timeframes and more options for TF1, beyond the current TF. Now, users have four timeframes to plot S/R zones from
Giving users the option to easily change the line thickness for all S/R lines
Making it easier to change the colors of S/R lines and zones by consolidating the options under settings (rather than under style)
Adding extensions to active SR Zones to extend all the way right
Adding the option to extend or not extend the previous S/R zones up to the next S/R zone
Adding optional timeframe labels to active S/R zones, with left and right options, as well as the option to adjust how far to the right the label is set
Fixing an issue where the higher timeframe S/R zone was not properly starting from the high/low of fractal. Now, any higher timeframe S/R will begin exactly at the High/Low points. Note that this may not work perfectly on stocks, and if a fractal high/low is too many bars in the past, it will revert to a default max bars back to avoid script errors.
Adding a function to prevent S/R zones from lower timeframes displaying while on a higher timeframe. This helps clean up the chart quite a bit.
Creating arrays for each timeframe's boxes and lines so that the number of S/R zones can be controlled for each timeframe and limit memory consumption.
Adding new alert options and customized alert messages
Here's how this indicator works: it looks for fractal highs or fractal lows with volume that pierces above the volume's Moving Average. This moving average value can be modified in the settings for each timeframe. The fractal highs will be confirmed with three successive higher highs followed by two successive lower highs and vice versa for the fractal lows. The zone is created from the fractal high/low and the close of the candle for whatever timeframe you selected. The bigger the zone, the more significant that zone is.
Traders can disable any zone, change the zones to show lines only, and modify all the colors, transparencies, and thickness of lines for all the zones. To create alerts, traders can enable the types of alerts they want for each timeframe in the indicator's settings. After applying changes, right-click on one of the zones on the chart, and click "Add Alert on Vol S/R Zones." You do not need to add a title, as the correct alert messages are already built-in.
The latest update has migrated the script to Pine Script Version 5 and added a higher number of total boxes/lines to show on the chart. It has also increased the max bars count to the maximum Pine Script allows, enabling traders to utilize as many bars as possible when drawing the left side of SR zones that are very far back on the chart. Additionally, the update fixed issues where the indicator would not load on 1 minute and 3-minute charts unless higher timeframe SR zones
Auto Fib ZonesAuto Fib Zones is a extension of the ABC finder script that I released. It uses the pivot point system I developed in the ABC finder to identify major or significant trending moves in the market.
It will then draw the fibzones for the trend line. The fib zone will auto update for as long as the trend line continues (size will keep increasing).
The zones will continue to extend to the right along with price until it is tested. The start of the green teal zone is the 0.618 and fills to the 0.786 and the Blue zone is the 0.786 and fills to the trend start or 1 value of the fib.
You can adjust the Bars Back variable to require more or less candles to create/ validate a new trend. In the screen shot about it is set to 50 bars however I've seen good results on higher timeframes like 4h + with 15 bars as the setting.
This is basically ITC's Optimal Trade Entry concept at least that is what the original inspiration for modifying my base script was.
As always hope it helps. God bless
Support Resistance Channels/Zones Multi Time FrameHello All,
For long time I have been getting a lot of requests for Support/Resistance Multi Time Frame script. Here ' Support Resistance Channels/Zones Multi Time Frame ' is in your service.
This script works if the Higher Time Frame you set is higher than the chart time frame. so the time frame in the options should be higher than the chart time frame.
The script checks total bars and highest/lowest in visible part of the chart and shows all S/R zones that fits according the highest/lowest in visible part. you can see screenshots below if it didn't make sense or if you didn't understand
Let see the options:
Higher Time Frame : the time frame that will be used to get Support/Resistance zones, should be higher than chart time frame
Pivot Period : is the number to find the Pivot Points on Higher time frame, these pivot points are used while calculating the S/R zones
Loopback Period : is the number of total bars on higher time frame which is used while finding pivot points
Maximum Channel Width % : is the percent for maximum width for each channel
Minimum Strength : each zone should contain at least a 1 or more pivot points, you set it here. (Open/High/Low/Close also are considered while calculating the strength)
Maximum Number of S/R : the number of maximum Support/Resistance zones. there can be less S/Rs than this number if it can not find enough S/Rs
Show S/R that fits the Chart : because of we use higher time frame, you should enable this option then the script shows only S/Rs that fits the current chart. if you disable this option, all S/R zones are shown and it may shrink the chart. also you may not see any S/R zone if you don't choose the higher time frame wisely ;)
Show S/R channels in a table : if you enable this option (by default it's enabled) then lower/upper bands of all S/R zones shown in a table ( even if it doesn't fit the chart ). you can change its location. zones are sorted according to their strengths. first one is the strongest.
and the other options is about colors and transparency.
Screenshots before and after zoom-out:
after zoom-out number of visible bars and highest/lowest change and it shows more S/R zones that fits the current chart!
if you see Support Resistance zone like below then you should decrease ' Maximum Channel Width ' or you should set higher time frame better:
You can change colors and transparency:
You can change Table location:
Alerts added :)
P.S. I haven't tested it so much, if you see any issue please drop a comment or send me message
Enjoy!