Financial Frontline:Integrated Market Analysis Toolkit[drshah93]Title: Financial Frontline: Bollinger BandWidth with Moving Average + Fractal & Alligator + Ichimoku Cloud + Anchored VWAP
This script is developed to integrate multiple robust technical analysis tools into a single, comprehensive indicator. Designed for traders seeking an all-in-one solution, this script combines Fractal and Alligator, Ichimoku Cloud, Anchored VWAP, and Bollinger BandWidth with Moving Average, providing a holistic view of the market.
Unlocking Market Dynamics: How It Works Together
This multi-tool indicator is more than just a mashup; it is a strategically crafted integration that maximizes the strengths of each component to deliver a versatile and insightful trading tool.
1. Fractal and Alligator:
o Concept:
The Fractal & Alligator combination serves as a powerful mechanism for identifying trend reversals and continuations.
Fractals pinpoint potential turning points in the market, while the Alligator lines, consisting of smoothed moving averages, provide a clear indication of trend direction and strength.
By plotting visual markers for completed top and bottom fractals, this component helps traders to easily identify critical potential turning points of market reversal.
The Bill Williams' Alligator’s three moving averages (jaw, teeth, and lips) further enhance this analysis by indicating the prevailing trend and its momentum, making it easier to discern when to enter or exit trades.
o Details: Customizable jaw, teeth, and lips represent the market's direction. Top and bottom fractals help identify potential support and resistance levels.
o Usage: Enable the Alligator to visualize the market's trend direction and use fractals to spot potential entry and exit points.
2. Ichimoku Cloud:
o Concept:
The Ichimoku Cloud component adds another layer of market insight by providing a comprehensive view of support and resistance levels, trend direction, and momentum.
The cloud (Kumo) itself indicates key support and resistance zones, while the Tenkan-sen and Kijun-sen lines offer shorter-term trend and momentum insights.
The Chikou Span, or lagging line, provides a perspective on current price action relative to past prices.
This multi-faceted approach helps traders to identify high-probability trading opportunities and to understand the broader market context, allowing for more informed trading decisions.
o Details: Includes conversion line (Tenkan-sen), base line (Kijun-sen), leading spans (Senkou Span A & B), and lagging span (Chikou Span). Customizable lengths and colors for each element.
o Usage: Use the cloud's color and position relative to price to determine bullish or bearish trends and identify potential trading signals.
3. Anchored VWAP:
o Concept:
Anchored VWAPs (Volume Weighted Average Price) are dynamically anchored to significant price points such as swing highs and lows.
This component helps traders to understand the average price paid over a specific period and to identify critical price levels that may act as support or resistance.
By anchoring the VWAP to significant points, this indicator provides a more precise view of where key market participants are positioned, aiding in the identification of potential reversal points and confirming trend direction.
Anchored VWAP (Volume Weighted Average Price) provides the average price of an asset, weighted by volume, from a specific anchor point.
o Details: Multiple Anchored VWAP lines from significant highs and lows. Customizable lengths and colors for each VWAP.
o Usage: Analyze the price's relationship to VWAP lines to assess market strength and potential reversal points.
4. Bollinger BandWidth with Moving Average:
o Concept:
This component combines the volatility insights of Bollinger BandWidth with the trend-following properties of moving averages.
The Bollinger BandWidth measures the distance between the upper and lower Bollinger Bands, offering a visual representation of market volatility.
Bollinger Bands measure market volatility, while BandWidth indicates the degree of volatility.
When combined with a moving average, it helps to identify periods of market contraction and expansion.
Crossovers between the Bollinger BandWidth and the moving average provide timely alerts for potential entry and exit points, enabling traders to react quickly to changing market conditions.
o Details: Bollinger Bands with customizable lengths, source, and standard deviation. BandWidth calculation and moving average with options for SMA, EMA, SMMA, WMA.
o Usage: Identify periods of high and low volatility using BandWidth and adjust trading strategies accordingly. Use the moving average to smooth out volatility signals.
Customization Options for Tailored Analysis
One of the standout features of this multi-tool indicator is its high level of customization. Traders can toggle each indicator on or off according to their preferences and adjust input parameters such as lengths, colors, and offsets. This flexibility allows traders to tailor the tool to their specific trading style and market conditions, ensuring that they can extract maximum value from the analysis provided.
The Synergy of Combined Indicators: Enhancing Technical Analysis
The real power of this script lies in how these four indicators work together to provide a comprehensive analysis of the market. When combined, they cover various aspects of technical analysis:
• Trend Detection: The Alligator and Ichimoku Cloud work together to confirm trend direction and strength, while the Anchored VWAP highlights critical price levels.
• Reversal Points: Fractals and Ichimoku's Tenkan-sen/Kijun-sen crossovers help identify potential market reversals.
• Volatility and Momentum: The Bollinger BandWidth with Moving Average provides insights into market volatility, which complements the momentum signals from the Ichimoku Cloud.
• Support and Resistance: Fractals and Anchored VWAP pinpoint key levels. They provide clear support and resistance levels, enhancing the trader's ability to make informed decisions.
Advantages to Technical Analysis
• Holistic View: Combines trend, momentum, volatility, and price levels into a single script.
• Enhanced Decision-Making: Multiple confirmation signals increase the reliability of trading signals.
• Flexibility: Customizable settings allow traders to tailor the indicator to their specific needs.
• Efficiency: Reduces the need to switch between multiple charts and indicators, streamlining the analysis process.
How to Use:
1. Access the indicator settings to customize each component according to your trading strategy.
2. Toggle visibility for Fractal and Alligator, Ichimoku Cloud, Anchored VWAP, and Bollinger BandWidth components.
3. Adjust lengths, colors, and calculation methods to match your charting style and preferences.
4. Combine insights from trend analysis, support/resistance levels, and volatility measures for informed trading decisions.
Elevate your trading analysis with this all-in-one tool, merging multiple indicators into a powerful script that offers a comprehensive view of the market.
In Conclusion: An Indispensable Tool for Traders
This multi-tool indicator is designed to cater to the needs of traders who seek a comprehensive and versatile analytical framework. By integrating Fractal & Alligator, Ichimoku Cloud, Anchored VWAP, and Bollinger BandWidth with Moving Average, it provides a holistic view of market conditions, enhancing the trader's ability to identify key trends, support/resistance levels, and potential trading signals. This script is not just a combination of indicators but a thoughtfully crafted tool that delivers actionable insights and helps traders to stay ahead in the financial markets.
Author: drshah93
Anchoredvwap
Multi-Day Rolling VWAP [Intraday]Ideas from Brian Shannon's book "Anchored VWAP"
The Multi-Day Rolling VWAP indicator for intraday timeframes allows you to track the Volume Weighted Average Price (VWAP) over multiple days, specifically for 1-day, 2-day, 3-day, 4-day, and 5-day periods. This indicator beyond the standard daily VWAP provides a broader perspective on price trends and market sentiment.
Features:
- Multi-day VWAPs: Analyze VWAP over several days to observe longer-term price movements.
- Customizable display: Choose which VWAP periods to display on the chart
- Colorize: Choose different colors for each VWAP to easily distinguish between periods.
- Adjustable settings: Change the line thickness and select the price source for VWAP calculations.
- Works with Replay Mode
- Works in any intraday timeframe on any asset with volume and price
Benefits:
- Trend identification: Compare current prices with multi-day rolling VWAPs to spot trends.
- Spot reversals: Look for potential price reversals or support when prices cross VWAP lines.
VWAP RangeThe VWAP Range indicator is a highly versatile and innovative tool designed with trading signals for trading the supply and demand within consolidation ranges.
What's a VWAP?
A VWAP (Volume Weighted Average Price) represents an equilibrium point in the market, balancing supply and demand over a specified period. Unlike simple moving averages, VWAP gives more weight to periods with higher volume. This is crucial because large volumes indicate significant trading activity, often by institutional traders, whose actions can reflect deeper market insights or create substantial market movements. The VWAP is also often used as a benchmark to evaluate the efficiency of executed trades. If a trader buys below the VWAP and sells above it, they are generally considered to have transacted favourably.
This is how it works:
Multiple VWAP Anchors:
This indicator uses multiple VWAPs anchored to different optional time periods, such as Daily, Weekly, Monthly, as well as to the highest high a lowest low within those periods. This multiplicity allows for a comprehensive view of the market’s average price based on volume and price, tailored to different trading styles and strategies.
Dynamic and Fixed Periods:
Traders can choose between using dynamic ranges, which reset at the start of each selected period, and specifying a date and time for a particular fixed range to trade. This flexibility is crucial for analyzing price movements within specific ranges or market phases.
Fixed ranges allow VWAPs to be calculated and anchored to a significant market event, the beginning of a consolidation phase or after a major news announcement.
Signal Generation:
The indicator generates buy and sell signals based on the relationship of the price to the VWAPs. It also allows for setting a maximum number of signals in one direction to avoid overtrading or pyramiding. Be sure to wait for the candle close before trading on the signals.
Average Buy/Sell Signal Lines:
Lines can be plotted to display the average buy and sell signal prices. The difference between the lines shows the average profit per trade when trading on the signals in that range. It's a good way to see how profitable a range is on average without backtesting the signals. The lines will also often turn into support and resistance areas, similar to value areas in a volume profile.
Customizable Settings:
Traders have control over various settings, such as the VWAP calculation method and bar color. There are also tooltips for every function.
Hidden Feature:
There's a subtle feature in this indicator: if you have 'Indicator values' turned on in TradingView, you'll see a Sell/Buy Ratio displayed only in the status line. This ratio indicates whether there are more sell signals than buy signals in a range, regardless of the Max Signals setting. A red value above 1 suggests that the market is trending upward, indicating you might want to hold your long positions a bit longer. Conversely, a green value below 1 implies a downward trend.
Zigzag Tails [Trendoscope®] 🎲 Introducing Zigzag Tails Indicator by Trendoscope.
The Zigzag Tails Indicator, a groundbreaking tool from Trendoscope, redefines technical analysis by seamlessly integrating anchored VWAPs (Volume Weighted Average Prices) and Average Price calculations with Zigzag pivot points. This advanced indicator recalculates Average Price or VWAP from one Zigzag pivot to the next, offering unparalleled insights into market movements.
🎯 Innovative Design
Each Zigzag pivot can feature up to three distinct tails, corresponding to the high, low, and close prices of each candle. Users have the flexibility to select between Average Price and VWAP for display on their charts. By default, the indicator plots all three tails, but individual tail visibility is customizable via the settings panel.
Average Price Mode: When selected, tails depict the average price across a specified number of bars.
VWAP Mode: In this mode, tails represent the VWAP, calculated for a given price over a set number of bars.
🎯 Dynamic Dotted Tail
The Zigzag Tails Indicator features dotted tails that extend from the last Zigzag pivot to the current bar. These dotted tails dynamically adapt to market changes and are subject to repainting with the emergence of new Zigzag pivots.
When repainting is enabled, the dotted tails originate from the last unconfirmed Zigzag pivot, extending to the current bar. This setting offers a more immediate, albeit tentative, visual representation of market trends.
With repainting disabled, the dotted tails will be anchored from the last confirmed Zigzag pivot to the current bar, providing a more stable but slightly delayed market analysis.
Irrespective of the repaint option, the dotted dynamic tails is always expected to repaint.
🎯 Practical Applications
The Zigzag Tails Indicator provides more accurate support and resistance levels than traditional VWAP, rolling VWAP, or moving averages. Its precision makes it an invaluable tool for identifying trends, as well as potential trend continuations or reversals.
🛠 Indicator Settings
Zigzag Configuration:
Zigzag Length determines the loopback length for the foundational Zigzag calculation.
Number of Bars represent the calculation distance. This limitation is added to avoid runtime errors on lower timeframes. The calculations run through lots of loops. Hence, if it is run across too many bars, we may get timeout issues.
Repaint: Activating this will also display the last, unconfirmed Zigzag pivot. Since the last pivot is inherently tentative, it may repaint with the arrival of new bars. A pivot is confirmed only when a subsequent unconfirmed pivot emerges on the chart.
Tail Configuration
Tail Type: Choose between average and VWAP for the tail calculation. The average option plots a simple average, while the VWAP option calculates an anchored VWAP from pivot to pivot.
Display Options: Tailored display options for High, Low, Close prices, with customizable colors for each tail type.
Inspired by the ideas of @KioseffTrading's implementation of Zigzag Anchored VWAP
Anchored Average Price by Atilla Yurtseven (AAP)Anchored Average Price indicator is designed to pinpoint a specific date and price in a given financial instrument's price chart. Once anchored to the desired date and price level, the script calculates and displays the average price from that anchor point to the current day.
Features
Customizable Source: Allows users to choose the source data for calculations. By default, it uses hlc3, which is the average of high, low, and close prices.
Start Date Input: The script includes a timestamp-based input that allows the user to specify the anchor date easily.
Customizable Color: Users can change the color of the plotted average line, adding an additional layer of customization to the visual representation.
Code Mechanics
Initialization: Declares the variables and arrays required for calculations and display. The array is used to store price data.
Condition Check: Only starts storing and calculating data if the chart's time is equal to or greater than the user-defined start date.
Data Storing: Once the condition is met, the script pushes the src price data into the array for future averaging.
Average Calculation: It calculates the average price of the values stored in the array.
Data Clearing: If the condition is not met, the array is cleared, and no average is plotted.
Plotting: The average price is plotted on the chart with the user-defined color.
By incorporating these features and mechanics, AAP provides traders and investors with a powerful tool for assessing average prices anchored to a specific date or swing.
Disclaimer:
This TradingView script is intended for educational and informational purposes only and should not be considered as investment or trading advice. Past performance is not indicative of future results. Trading and investing carry a high level of risk, and you should consult with a qualified financial advisor before making any financial decisions. The creator of this script, Atilla Yurtseven, is not responsible for any losses or damages incurred as a result of using this script.
Trade smart, stay safe
Atilla Yurtseven
ZWAP (ZigZag Anchored VWAP) [Kioseff Trading]Hello!
Quick script showcasing the new polyline function for Pine Script!
Features
Up to 100 high/low pivot points auto anchored VWAP
Visible range auto anchored VWAP
Curved ZigZag (Adjustable!)
With the new polyline function, auto-anchored VWAP at specific price points is more viable.
When using line.new() only 500 lines can exist on the chart concurrently and, since VWAP is calculated on every update, a "proper" VWAP drawn using line.new() can extend 500 bars at most, to which no additional VWAP lines can be drawn after.
Of course, when using the plot() function a VWAP line will draw on every bar; however, this method isn't highly compatible with auto-anchoring VWAP lines.
However!
A polyline, from beginning to end irrespective of the number of coordinates used, constitutes 1 polyline; 100 can exist simultaneously with 10,000 xy coordinates per line.
The image above shows an attempt to draw the same auto-anchored VWAP lines using the line.new() function. Not an ideal outcome!
The image above shows the same attempt using the polyline.new() function!
Very nice (:
The image above shows the indicator auto anchoring to zig zag turning points.
Subsequent to a new anchoring, VWAP is calculated for the following bars - up to the current bar.
Thank you for checking this out; if you have any ideas to spice it up feel free to comment!
Anchored Moving Average By Market Mindset - Zero To EndlessAnchored Moving Average?
An anchored moving average (AMA) is created when you select a point on the chart and start calculating the moving average from there. Thus the moving average’s denominator is not fixed but cumulative and dynamic.
In this indicator, I've provided three different types of Anchored Moving Averages, viz., WMA, SMA and VWAP.
WMA is relevant if big moves are there.
SMA is relevant if volume data is not to be considered or if it is not available.
VWAP is the standard anchored MA, which is most commontly used. Is consider the volume data along with the price move.
In this indicator, Auto anchor is time based anchor. A trader can opt for Pivot Type Anchor or Volume Type Anchor or some higher resolution based anchor too. The length of the pivot lookback can also be changed by the user.
It can be used for intraday, swing trading and even for technical based investment purpose.
PDHL levels with INTRADAY Auto FIBThe present script includes Previous day High/low levels and once the PDH or PDL breaks the present bar's background changes color according to the direction of price breakout.
It's helpful when working on lower timeframe charts with small screen space, so that the user can know that the PDHL has been taken out in one glance at the chart instead of scrolling all around to find out whether the PDH or PDL are broken or not.
The high and low of day before yesterday are also plotted for reference.
The intraday fib levels get drawn taking present day's high and low into account, useful to mark support/retest levels.
The color of the intraday AUTO FIB high and low lines also change from gray to respective assigned colors once the present day price crosses PDH or PDL this is helpful while viewing charts on mobile app.
Disclaimer: Only for studying price movement ideas, trading is not advised.
VWAP Reset Zones
With this indicator, the VWAP is displayed based on two adjustable sources. Close and Open are recommended by default.
The zone between the Open and Close VWAP is carried over to the next day as the zone at the end of the period.
The zones can be considered as support and resistance zones.
The chart illustrates the idea behind it.
In addition, the anchor function has been added so that anchor points can be set for session, week and month.
Depending on the set anchor and the selected time unit of the chart, an adjustment of the indicator to the time unit can be made.
Recommended time unit of the indicator: Session = 15 min / Weekly = 1H / Month = 4H
In addition, the zones between VWAP close and vwap open have been colored.
Bullish when the close is above the open price and bearish when the close is below the open price.
The principle is simple. If the average closing price is below the average opening price, a downtrend is to be assumed and vice versa an uptrend.
VWAP Open Session Anchored by HampehThe VWAP Open Session Anchored indicator differs from traditional VWAP indicators by automatically anchoring the Volume Weighted Average Price calculation to three market session starts Morning, Evening, and Night. Each session represents a distinct time period within the trading day, offering traders and investors a more comprehensive view of the volume-weighted average price within specific sessions.
What Is the Volume-Weighted Average Price (VWAP)?
The volume-weighted average price (VWAP) is a technical analysis indicator used on intraday charts that resets at the start of every new trading session.
VWAP is important because it provides traders with pricing insight into both the trend and value of a security.
KEY TAKEAWAYS
1. The volume-weighted average price (VWAP) is a single line on intraday charts.
2. It looks similar to a moving average line but smoother.
3. VWAP represents a view of price action throughout a single day's trading session.
4. Retail and professional traders may use the VWAP to help them determine intraday price trends.
5. VWAP typically is most useful to short-term traders.
VWAP is calculated by totaling the dollars traded for every transaction (price multiplied by the volume) and then dividing by the total shares traded.
VWAP = Cumulative Typical Price x Volume/Cumulative Volume
Where Typical Price = High price + Low price + Closing Price/3
Cumulative = total since the trading session opened.
How Is VWAP Used?
VWAP is used in different ways by traders. Traders may use VWAP as a trend confirmation tool and build trading rules around it. For instance, they may consider stocks with prices below VWAP as undervalued and those with prices above it, as overvalued. If prices below VWAP move above it, traders may go long on the stock. If prices above VWAP move below it, they may sell their positions or initiate short positions.
Institutional buyers including mutual funds use VWAP to help move into or out of stocks with as small of a market impact as possible. Therefore, when they can, institutions will try to buy below the VWAP or sell above it. This way their actions push the price back toward the average, instead of away from it.
Source: www.investopedia.com
All-In-One Auto Anchored VWAPsA chart isn't trendy without a VWAP (which stands for volume weighted average price).
This indicator allows you to choose 3 different anchored VWAPs, and customize the anchor period from one of many different options, including:
- Daily
- Weekly
- Monthly
- Quarterly
- Yearly
- All Time
- Specific Pivots
- Specific Sessions
You can then choose whether you want to anchor to the open, highest or lowest value within that period.
The indicator will automatically update every time a new anchor point is triggered. Every VWAP has colors and standard deviation bands as an optional setting.
As interest in the script grows I will continue to add new features.
Automated Anchored VWAPThis was reasonably easy to put together and I can't find one that does this in the Library and I've been wanting one. Of course, the drawing tool is just fantastic, but sometimes it can be forgotten as new pivots emerge.
What you'll find elsewhere in the Library is a nice variety of fancier methods for determining an anchor point with labels, lines, timestamps and standard deviations.
This is just a simple script to pull the Anchored VWAP off of the most recent pivot and update that as new pivots become defined.
I wanted it to be really portable so it could easily work into other things you're working on while also keeping the chart reasonably clean.
The way this functions is as follows: A new pivot is found and VWAP is calculated from it. At that point the prior aVWAP is no longer tracked and it picks up from the new pivot .
Of course this means that the plot doesn't generate until the pivot is actually confirmed, which in turn means that the plot doesn't reach back to the pivot , it begins based on whatever "right bars" period you end up choosing.
I kind of like it that way, because you have your eyes on the one that matters until the new one matters.
The downside is that it doesn't track old pivots . The old aVWAP might still be in play. But if you track all of the old one's you'll have a 100 lines on your chart and no one wants that.
I recommend when you look back and think the old one is still in play, use the drawing tool to keep it on the chart.
Otherwise, let the script do the work for you.
Hope its helpful. Let me know what you think should be done to make it better.
Anchored VWAP Hand-OffBrian Shannon's "VWAP hand off" strategy, Has been my "go to" for some time now. Version 5 makes this much easier, with drag and drop placement.
When price taps the base anchored VWAP, a second VWAP is plotted at that point. When price taps the second, a third is plotted, and so on.
Each consecutive VWAP can be used to identify trend and future pivot points as trend continues.
IF the VWAPS look messy, price action is choppy and a trend hasnt yet started.
Auto AVWAP (Anchored-VWAP)Anchored Volume Weighted Average Price (AVWAP)
Pioneered by Brian Shannon, an Anchored VWAP is the measure of the average price per share since a specific moment or event. It is found as a tool in TradingView in the same toolkit as Trend Lines.
This indicator uses a Stochastic RSI measurement to define when low and high points (support and resistance levels) have occurred and applies an 'anchor' to these points.
It progressively updates these anchor points as they change. The "Next" potential AVWAP values are also displayed. When a support level is raised or a resistance level is lowered the main AVWAP value is replaced by the "Next" value.
Default Configuration:
This indicator (unconventionally) uses the high and low values instead of the HLC3 values used by a typical VWAP calculation. This allows for what appears more like support and resistance than simply an average price. Simply uncheck this configuration value to see the difference.
Breakout alerts are triggered by the open value. Uncheck this setting to use the close.
Market VWAPsIt's annoying to have to redraw the anchored VWAPs over and over, so I wrote an indicator that will create an anchored VWAP for every session and daily open.
Session times are configurable. Disable the ones in Styles that you don't need.
Enjoy!
Nubia - Auto Midas Anchored VWAP [xdecow]This indicator looks for the highs and lows using the highest / lowest of 4 different periods. The default values are 17, 72, 305 and 1292 inspired by BO Williams phicube fractals.
The indicator will show anchored vwaps from those 8 dynamic points (4 tops and 4 bottoms).
A true trend is defined when 4 fractals line up without much opposite resistance (only the two smallest opposing vwaps).
When the price is between several vwaps it is a sign of consolidation or pullback. You can use larger timeframes to check for possible targets in large consolidations and pullbacks.
MTF Anchored VWAPAnchored VWAP is all the rage, but it's just one indicator. That being said, it seems like people want to add more than one at a time so why eat into your indicator cap. This script will allow you to configure 5 AVWAPS at a time.
This will not plot if the time chosen is not in market hour s. Note: market hours may be outside of YOUR timeframe. i.e, the market may open at 7:30 your time, but it will not plot until you change it to 9:30.
Enjoy
(JS) Multi-Time Frame Pivot Point Detector 2.0So here's an updated version of my automatic Pivot Point detector.
If you don't like having a bunch of Pivots on your chart at once, or having to cycle through various resolutions to see different ones, this is for you!
What does this indicator do? It automatically detects the nearest daily, weekly, and monthly pivot points both above and below the current price and automatically plots them for you. It's really just as simple as that.
You select how far back you want it to plot with the "Pivot Point Look Back Period" option.
I also have transparency options for each type of pivot so its easy to find the opacity you prefer and save it as a default setting.
With "Turn Off Each Pivot Point On All Time Frames" turned on, as an example, if you were to uncheck "S1/R1" then it turns S1/R1 plots off across all 3 pivot resolutions. By default however, I have it set where you can pick and choose each one individually.
I also added the default "VWAP Periodic" script from TradingView in there with it (not in prior version). This works identical to the built in indicator (because it is identical).
Trading algorithms like to target pivot points and liquidity, so I figured they would pair together nicely for active trading.
Midas 6 Anchored VWAP [xdecow]This script plots 6 anchored vwap from the selected bars.
The labels are only to help identify the starting points and can be disabled in the options.
VWAP Bands - MultiTF and anchoredThe script has traditional VWAP for two different timeframes along with an option to anchor them to a particular bar. VWAP bands are also included in the script. The bands and VWAP act as hidden support/resistance for the scrip and are useful for intraday trading.
MIDAS VWAP published Jayy See "Release Notes" immediately above. Click on the video to see the "How To" video for this script update.
MIDAS VWAP Jayy his is just a bash together of two MIDAS VWAP scripts particularly AkifTokuz and drshoe.
I added the ability to show more MIDAS curves from the same script.
The algorithm primarily uses the "n" number but the date can be used for the 8th VWAP
I have not converted the script to version 3.
To find bar number go into "Chart Properties" select " "background" then select Indicator Titles and "Indicator values". When you place your cursor over a bar the first number you see adjacent to the script title is the bar number. Put that in the dialogue box midline is MIDAS VWAP . The resistance is a MIDAS VWAP using bar highs. The resistance is MIDAS VWAP using bar lows.
In most case using N will suffice. However, if you are flipping around charts inputting a specific date can be handy. In this way, you can compare the same point in time across multiple instruments eg first trading day of the year or an election date.
Adding dates into the dialogue box is a bit cumbersome so in this version, it is enabled for only one curve. I have called it VWAP and it follows the typical VWAP algorithm. (Does that make a difference? Read below re my opinion on the Difference between MIDAS VWAP and VWAP ).
I have added the ability to start from the bottom or top of the initiating bar.
In theory in a probable uptrend pick a low of a bar for a low pivot and start the MIDAS VWAP there using the support.
For a downtrend use the high pivot bar and select resistance. The way to see is to play with these values.
Difference between MIDAS VWAP and the regular VWAP
MIDAS itself as described by Levine uses a time anchored On-Balance Volume (OBV) plotted on a graph where the horizontal (abscissa) arm of the graph is cumulative volume not time. He called his VWAP curves Support/Resistance VWAP or S/R curves. These S/R curves are often referred to as "MIDAS curves".
These are the main components of the MIDAS chart. A third algorithm called the Top-Bottom Finder was also described. (Separate script).
Additional tools have been described in "MIDAS_Technical_Analysis"
Midas Technical Analysis: A VWAP Approach to Trading and Investing in Today’s Markets by Andrew Coles, David G. Hawkins
Copyright © 2011 by Andrew Coles and David G. Hawkins.
Denoting the different way in which Levine approached the calculation.
The difference between "MIDAS" VWAP and VWAP is, in my opinion, much ado about nothing. The algorithms generate identical curves albeit the MIDAS algorithm launches the curve one bar later than the VWAP algorithm which can be a pain in the neck. All of the algorithms that I looked at on Tradingview step back one bar in time to initiate the MIDAS curve. As such the plotted curves are identical to traditional VWAP assuming the initiation is from the candle/bar midpoint.
How did Levine intend the curves to be drawn?
On a reversal, he suggested the initiation of the Support and Resistance VVWAP (S/R curve) to be started after a reversal.
It is clear in his examples this happens occasionally but in many cases he initiates the so-called MIDAS S/R VWAP right at the reversal point. In any case, the algorithm is problematic if you wish to start a curve on the first bar of an IPO .
You will get nothing. That is a pain. Also in Levine's writings, he describes simply clicking on the point where a
S/R VWAP is to be drawn from. As such, the generally accepted method of initiating the curve at N-1 is a practical and sensible method. The only issue is that you cannot draw the curve from the first bar on any security, as mentioned without resorting to the typical VWAP algorithm. There is another difference. VWAP is launched from the middle of the bar (as per AlphaTrends), You can also launch from the top of the bar or the bottom (or anywhere for that matter). The calculation proceeds using the top or bottom for each new bar.
The potential applications are discussed in the MIDAS Technical Analysis book.