Anchored VWAPs + DeviationsAnchored VWAPS
*6 anchors to play with
*Pre-defined anchors from pivot points (May need manual adjustment due to timezone difference)
*Drag each anchor right from the screen instead of manually going to the settings>inputs
Deviations:
*Select from which anchor should the deviations start from
*Manually input the desired deviation value/ratio, can be customised
**Tips: To avoid clicking on the AVWAPS to enable the dragging line, just click on the title of the indicator.
***Work in progress
"vwap"に関するスクリプトを検索
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.
MERCURY by Dr.Abiram Sivprasad - Adaptive Pivot and Ema AlertSYSThe MERCURY indicator is an advanced, adaptive indicator designed to support traders in detecting critical price movements and trend reversals in real time. Developed with precision by Dr. Abhiram Sivprasad, this tool combines a sophisticated Central Pivot Range (CPR), EMA crossovers, VWAP levels, and multiple support and resistance indicators into one streamlined solution.
Key Features:
Central Pivot Range (CPR): MERCURY calculates the central pivot along with below-central (BC) and top-central (TC) pivots, helping traders anticipate areas of potential reversal or breakout.
EMA Crossovers: The indicator includes up to nine EMAs with customizable lengths. An integrated EMA crossover alert system provides timely signals for potential trend shifts.
VWAP Integration: The VWAP levels are used in conjunction with EMA crossovers to refine trend signals, making it easier for traders to spot high-probability entries and exits.
Adaptive Alerts for Breakouts and Breakdowns: MERCURY continuously monitors the chart for conditions such as all EMAs turning green or red. The alerts trigger when a candle body closes above/below the VWAP and EMA1 and EMA2 levels, confirming a breakout or breakdown.
Customizable EMA Dashboard: An on-chart table displays the status of EMAs in real-time, with color-coded indicators for easy readability. It highlights long/short conditions based on the EMA setup, guiding traders in decision-making at a glance.
How to Use:
Trend Confirmation: Use the CPR and EMA alignment to identify uptrends and downtrends. The table colors and alerts provide a clear, visual cue for entering long or short positions.
Breakout and Breakdown Alerts: The alert system enables traders to set continuous alerts for critical price levels. When all EMAs align in one color (green for long, red for short), combined with a candle closing above or below VWAP and EMA levels, the indicator generates breakout or breakdown signals.
VWAP & EMA Filtering: VWAP acts as a dynamic support/resistance level, while the EMAs provide momentum direction. Traders can refine entry/exit points based on this multi-layered setup.
Usage Scenarios:
Day Trading & Scalping: Traders can use the CPR, VWAP, and EMA table to make swift, informed decisions. The multiple EMA settings allow scalpers to set shorter EMAs for quicker responses.
Swing Trading: Longer EMA settings combined with VWAP and CPR can provide insights into sustained trends, making it useful for holding positions over several days.
Risk Management: MERCURY dashboard and alert functionality allow traders to set clear boundaries, reducing impulsive decisions and enhancing trading discipline.
Indicator Composition:
Open-Source: The core logic for CPR and EMA crossovers is presented open-source, ensuring transparency and user adaptability.
Advanced Logic Integration: This indicator implements custom calculations and filtering, optimizing entry and exit signals by merging VWAP, CPR, and EMA in a logical and user-friendly manner.
Chart Requirements:
For best results, use MERCURY on a clean chart without additional indicators. The default settings are optimized for simplicity and clarity, so avoid cluttering the chart with other tools unless necessary.
Timeframes: MERCURY is suitable for timeframes as low as 5&15 minutes for intraday trading and up to daily timeframes for trend analysis.
Symbol Settings: Works well across forex, stocks, and crypto assets. Adjust EMA lengths based on the asset’s volatility.
Example Chart Settings:
Symbol/Timeframe: BTCUSD, 1-hour timeframe (or any symbol as per user preference).
Settings: Default settings for CPR and EMA table.
Chart Style: Clean chart with MERCURY as the primary indicator.
Publishing Considerations:
Invite-Only Access: If setting to invite-only, ensure compliance with the Vendor requirements.
Limit Claims: Avoid making unsubstantiated claims about accuracy, as MERCURY should be viewed as a tool to aid analysis, not as a guaranteed performance predictor.
Example Strategy
This indicator provides signals primarily for trend-following and reversal strategies:
1. Trend Continuation:
- Buy Signal: When the price crosses above both EMA1 and EMA2 and holds above the daily CPR level, a bullish trend continuation is confirmed.
- Sell Signal: When the price crosses below both EMA1 and EMA2 and holds below the daily CPR level, a bearish trend continuation is confirmed.
2. Reversal at Pivot Levels:
- If the price approaches a resistance (R1, R2, or R3) from below with an uptrend and then begins to cross under EMA1 or EMA2, it may signal a bearish reversal.
- If the price approaches a support (S1, S2, or S3) from above in a downtrend and then crosses above EMA1 or EMA2, it may signal a bullish reversal.
Example Setup
- Long Entry
- When the price crosses above the daily pivot point and closes above both EMA1 and EMA2.
- Hold the position if the price remains above the VWAP band and monitor for any EMA crossunder as an exit signal.
- Short Entry:
- When the price drops below the daily pivot and both EMA1 and EMA2 cross under the price.
- Consider covering the position if the price breaks above the VWAP band or if a crossover of EMA1 and EMA2 occurs.
Alerts
Alerts are customizable based on EMA1 & EMA2 crossovers to notify the trader of potential trend shifts.
RSI from Rolling VWAP [CHE]Introducing the RSI from Rolling VWAP Indicator
Elevate your trading strategy with the RSI from Rolling VWAP —a cutting-edge indicator designed to provide unparalleled insights and enhance your decision-making on TradingView. This advanced tool seamlessly integrates the Relative Strength Index (RSI) with a Rolling Volume-Weighted Average Price (VWAP) to deliver precise and actionable trading signals.
Why Choose RSI from Rolling VWAP ?
- Clear Trend Detection: Our enhanced algorithms ensure accurate identification of bullish and bearish trends, allowing you to capitalize on market movements with confidence.
- Customizable Time Settings: Tailor the time window in days, hours, and minutes to align perfectly with your unique trading strategy and market conditions.
- Flexible Moving Averages: Select from a variety of moving average types—including SMA, EMA, WMA, and more—to smooth the RSI, providing clearer trend analysis and reducing market noise.
- Threshold Alerts: Define upper and lower RSI thresholds to effortlessly spot overbought or oversold conditions, enabling timely and informed trading decisions.
- Visual Enhancements: Enjoy a visually intuitive interface with color-coded RSI lines, moving averages, and background fills that make interpreting market data straightforward and efficient.
- Automatic Signal Labels: Receive immediate bullish and bearish labels directly on your chart, signaling potential trading opportunities without the need for constant monitoring.
Key Features
- Inspired by Proven Tools: Building upon the robust foundation of TradingView's Rolling VWAP, our indicator offers enhanced functionality and greater precision.
- Volume-Weighted Insights: By incorporating volume into the VWAP calculation, gain a deeper understanding of price movements and market strength.
- User-Friendly Configuration: Easily adjust settings to match your trading preferences, whether you're a novice trader or an experienced professional.
- Hypothesis-Driven Analysis: Utilize hypothetical results to backtest strategies, understanding that past performance does not guarantee future outcomes.
How It Works
1. Data Integration: Utilizes the `hlc3` (average of high, low, and close) as the default data source, with customization options available to suit your trading needs.
2. Dynamic Time Window: Automatically calculates the optimal time window based on an auto timeframe or allows for fixed time periods, ensuring flexibility and adaptability.
3. Rolling VWAP Calculation: Accurately computes the Rolling VWAP by balancing price and volume over the specified time window, providing a reliable benchmark for price action.
4. RSI Analysis: Measures momentum through RSI based on Rolling VWAP changes, smoothed with your chosen moving average for enhanced trend clarity.
5. Actionable Signals: Detects and labels bullish and bearish conditions when RSI crosses predefined thresholds, offering clear indicators for potential market entries and exits.
Seamless Integration with Your TradingView Experience
Adding the RSI from Rolling VWAP to your TradingView charts is straightforward:
1. Add to Chart: Simply copy the Pine Script code into TradingView's Pine Editor and apply it to your desired chart.
2. Customize Settings: Adjust the Source Settings, Time Settings, RSI Settings, MA Settings, and Color Settings to align with your trading strategy.
3. Monitor Signals: Watch for RSI crossings above or below your set thresholds, accompanied by clear labels indicating bullish or bearish trends.
4. Optimize Your Trades: Leverage the visual and analytical strengths of the indicator to make informed buy or sell decisions, maximizing your trading potential.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Get Started Today
Transform your trading approach with the RSI from Rolling VWAP indicator. Experience the synergy of momentum and volume-based analysis, and unlock the potential for more accurate and profitable trades.
Download now and take the first step towards a more informed and strategic trading journey!
For further inquiries or support, feel free to contact
Best regards
Chervolino
Inspired by the acclaimed Rolling VWAP by TradingView
Multiple SMA, EMA, and VWAP CrossoversMultiple SMA, EMA, and VWAP Crossovers with Alerts
Overview : The "Multiple SMA, EMA, and VWAP Crossovers" script is designed for traders who want to monitor various simple moving averages (SMAs), exponential moving averages (EMAs), and the volume-weighted average price (VWAP) to identify potential buy and sell opportunities. This script allows you to visualize key moving averages on your chart and create custom alerts for specific crossover events.
Detail s: This script plots the following moving averages:
Simple Moving Averages (SMA): 5, 10, 20, 50, 100, 200, and 325 periods
Exponential Moving Average (EMA): 9 periods
Volume-Weighted Average Price (VWAP)
It includes options to display these moving averages and set alerts for their crossovers.
Available Crossovers:
20/50 SMA, 20/100 SMA, 20/200 SMA, 20/325 SMA
50/100 SMA, 50/200 SMA, 50/325 SMA
100/200 SMA, 100/325 SMA
200/325 SMA
VWAP/20 SMA, VWAP/50 SMA, VWAP/100 SMA, VWAP/200 SMA, VWAP/325 SMA
Optional Lines to Add to the Chart:
9 EMA, 5 SMA, 10 SMA, 20 SMA, 50 SMA, 100 SMA, 200 SMA, 325 SMA, VWAP
How to Use:
Enable Indicators: Use the input options to select which SMAs, EMA, and VWAP you want to display on your chart.
Set Alerts: Choose the specific crossover events you want to monitor. For example, you can set an alert for the 20/50 SMA crossover or the VWAP/100 SMA crossover.
Monitor the Chart: The script will plot the selected moving averages on your chart. When a selected crossover event occurs, an alert will be triggered, notifying you of the potential trade opportunity.
Usage Tips:
Trending Market: Use the buy and sell alerts in trending markets where the moving averages can help confirm the direction of the trend.
Key Support and Resistance Levels: Combine crossover alerts with key support and resistance levels for more reliable trading signals.
Volume Confirmation: Ensure there is sufficient volume to support the crossover signals, indicating stronger momentum behind the move.
When NOT to Use Buy and Sell Alerts:
Low Volume: Avoid using buy and sell alerts during periods of low trading volume, as the signals may be less reliable.
Market Noise: Be cautious in highly volatile markets where frequent crossovers might generate false signals.
Sideways Market: In a sideways or range-bound market, crossover signals can result in multiple whipsaws, leading to potential losses.
Why Use This Script? This script provides a comprehensive tool for traders to monitor multiple moving averages and VWAP crossovers efficiently. It allows you to customize alerts based on your trading strategy and helps you make informed decisions by visualizing key technical indicators on your chart.
Legal Disclaimer: The information provided by this script is for educational and informational purposes only and should not be considered financial advice. The developer of this script is not responsible for any financial losses incurred from using this script.
ORB - Alerts, VWAP and MACD Checks, Extended Fib Levels
ORB Range Alerter with Shading, VWAP Check, MACD Check, and Extended Fibonacci Levels for TP – Fully Customizable
This indicator is designed to give you a comprehensive analysis of the Opening Range Breakout (ORB) combined with advanced conditions based on VWAP and MACD indicators, along with Extended Fibonacci Levels for both long and short TP positions.
Key Features:
Opening Range Breakout (ORB):
Defines the opening range at the market open (9:30 AM by default) based on your chart timeframe and shades it for visibility.
The high and low of the first candle after the open are plotted on the chart, creating a breakout range that traders can use to identify potential long or short positions.
VWAP Condition (Optional):
This indicator includes the option to enforce the VWAP (Volume-Weighted Average Price) as a condition for entering trades.
- Longs will only trigger if the price is above VWAP (when enabled).
- Shorts will only trigger if the price is below VWAP (when enabled).
Customizable : You can enable or disable the VWAP condition through a simple checkbox in the indicator’s settings.
MACD Condition (Optional):
Includes an optional MACD (Moving Average Convergence Divergence) condition.
- Longs will only trigger if the MACD line is above 0 and the signal line, providing confirmation of bullish momentum.
- Shorts will only trigger if the MACD line is below 0 and the signal line, indicating bearish momentum.
Customizable : You can enable or disable the MACD condition through a checkbox in the indicator’s settings, allowing you to trade with or without the MACD confirmation.
Fibonacci Extensions for Profit Targets:
Automatically calculates Fibonacci extension levels based on the ORB range for TP levels.
These levels provide key areas for potential profit-taking or reversal points.
Fibonacci extensions are plotted only after a confirmed breakout, either long or short.
The extensions include 127.2%, 161.8%, 200%, 261.8%, 423.6%, and 685.4%, offering a comprehensive set of targets for different trading strategies.
Shading of ORB Range:
The ORB high and low are visually emphasized on the chart with a shaded area for easy identification.
The shading is semi-transparent to help keep your chart clean and easy to read.
Customizable Timeframe:
The ORB range is defined based on the time of day (default is 9:30 AM to 4:00 PM), but you can adjust the timeframe to suit different trading sessions or markets.
Alerts for Breakouts:
Built-in alerts notify you when price crosses above or below the ORB high or low, along with the optional VWAP and MACD conditions.
Alerts can be used to create automated notifications or even execute automated trades based on your chosen settings.
How to Use:
Long Trade Example: When the price crosses above the ORB high, VWAP is above the price, and MACD shows bullish momentum (if these conditions are enabled), a potential long entry is triggered. You can use the Fibonacci extensions for profit targets.
Short Trade Example: When the price crosses below the ORB low, VWAP is below the price, and MACD confirms bearish momentum (if these conditions are enabled), a short entry is triggered. Fibonacci levels for the short position can guide your exit strategy.
Flexibility: You can enable or disable both VWAP and MACD conditions based on your trading style. This flexibility allows the indicator to adapt to different market conditions and strategies.
Customization Options:
Enable/Disable VWAP Condition: Decide if you want to include VWAP as a trade filter.
Enable/Disable MACD Condition: Choose whether to require MACD as confirmation for trade entries.
Adjust ORB Timeframe: Customize the time range for defining the ORB based on the market you're trading.
Fibonacci Extensions: Visualize key profit targets using Fibonacci extensions, which are automatically calculated and displayed after a breakout.
Rolling VWAPThe Rolling VWAP indicator is a powerful technical analysis tool designed to help traders identify significant price levels and potential reversal points. This indicator combines a rolling volume-weighted average price (VWAP) with multiple standard deviation bands to provide a dynamic view of price volatility and market trends.
Key Features:
Rolling VWAP Calculation: The indicator calculates the VWAP using the high, low, and close prices (HLC3) over a user-defined rolling period. This VWAP is then plotted on the chart, providing a reliable benchmark for average price levels over a specified timeframe.
Adjustable Timeframes: Users can select from multiple timeframes (1 hour, 4 hours, 1 day, 3 days, 1 week) to calculate the RVWAP, allowing flexibility to analyze market trends over different periods.
Multiple Standard Deviation Bands: The indicator includes up to five adjustable standard deviation bands, each with customizable multipliers. These bands are plotted around the RVWAP to indicate potential support and resistance levels, helping traders identify areas of high and low volatility.
Customizable Display Settings: Users can toggle the visibility of each band and adjust their colors and transparency, making it easy to tailor the indicator to their specific analysis needs.
How to Use:
Selecting the VWAP Timeframe: Choose the desired timeframe for VWAP calculation from the options provided (1 hour, 4 hours, 1 day, 3 days, 1 week). This allows you to analyze price action over different periods and identify significant trends.
Adjusting Band Multipliers: Customize the multipliers for each standard deviation band to suit your trading strategy. By default, the indicator includes bands with multipliers of 2.0, 2.5, 3.0, 3.5, and 4.0. Adjust these values based on your preferred levels of price deviation.
Interpreting the Bands: The standard deviation bands provide key insights into market volatility. Inner Bands (e.g., 2.0 StdDev) indicate areas of normal price fluctuation. Price movement within these bands is generally considered stable. Outer Bands (e.g., 3.5 or 4.0 StdDev) highlight extreme price deviations. Price reaching these bands may signal overbought or oversold conditions, potentially leading to reversals.
Combining with Other Indicators: Enhance your analysis by using this indicator in conjunction with other technical tools such as moving averages, RSI, or MACD. This helps confirm signals and improve trading decisions.
Best Practices:
Trend Identification: Use the Rolling VWAP to identify the prevailing market trend. A rising VWAP indicates an uptrend, while a falling VWAP suggests a downtrend.
Support and Resistance Levels: The standard deviation bands act as dynamic support and resistance levels. Monitor price action around these bands for potential entry and exit points.
Volatility Analysis: Wider bands indicate higher market volatility, while narrower bands suggest lower volatility. Adjust your trading strategy accordingly based on the observed volatility levels.
24/7 Trading Instruments: This indicator is particularly useful for instruments that trade 24/7 and do not have defined sessions, such as cryptocurrencies. Unlike a session-anchored VWAP, the rolling VWAP provides a continuous measure of average price levels, making it ideal for analyzing markets that operate around the clock.
By integrating the Rolling VWAP indicator into your trading routine, you can gain a deeper understanding of price dynamics and make more informed trading decisions. Whether you are a day trader, swing trader, or long-term investor, this indicator provides valuable insights to help you navigate the markets with confidence.
Multi-Time AVWAP_BEARConcept
Collaboration Highlight:
This was a collaboration with @Chart_School and @KioseffTrading Thank you to both, along with Ricardo Santos for his awesome library we used.
Overview
See how you view different time frame charts with one indicator and little to no adjustment.
Innovation:
The concept of using Anchored VWAP (AVWAP) with time events is a powerful technique in trading and technical analysis. Anchored VWAP differs from the traditional Volume Weighted Average Price (VWAP) by allowing traders to select a specific starting point or "anchor," from which the VWAP calculation begins. This approach is particularly useful for assessing price movements in relation to significant market events or specific periods of interest.
Utility and Flexibility:
Explaining the flexibility in turning on and off different time slices without much adjustment showcases a user-friendly design.
Key Uses and Benefits
Comparative Performance:
Anchoring the VWAP at the start of different time frames (e.g., weekly, monthly, quarterly) enables traders to compare the current price performance against previous periods. This comparison can highlight trends or shifts in trading momentum relative to past activity.
Support and Resistance Levels:
AVWAP lines can act as dynamic support and resistance levels. When anchored to significant time events, these levels gain additional relevance as they reflect the market's valuation of an asset since a notable point in time. Traders often watch for price interactions with these levels to make informed trading decisions.
Risk Management:
Anchored VWAP can serve as a benchmark for setting stop-loss orders or profit targets. By considering the price's relation to the AVWAP of a specific period or after a key event, traders can define exit points that are aligned with market-generated information.
Trend Confirmation: The direction and stability of the price relative to an anchored VWAP can indicate the strength of a trend. If the price consistently remains above an AVWAP anchored at a bullish event (or below for a bearish event), it may confirm the trend's continuation.
Further Reading
Educational Resource:
Becuase we are using Volume with a relation to price AVWAP is very powerful to show data that cannot be eye balled on its own. Brian Shannon's book "Maximum Trading Gains With Anchored VWAP - The Perfect Combination of Price, Time & Volume", is an excellent guide to best practices on how to use AVWAP to your advatage while trading. His book goes into depth about the best way to use this indicator to its fullest potencial.
Tips for Using This Indicator
Weekly / Monthly / Quarterly Settings:
All the settings for the lower timeframe charts are similar. Here is an example of seeing a Weekly AVWAP for 6 weeks, showing:
1. The start of the 6-week AVWAP is using a High Low Close source for the first candle of the 6 weeks.
2. The lines are colored "Red" for the AVWAPs.
3. The line thickness is "1".
Yearly Settings
Simlair to the other settings with the Yearly we give you a couple more options along with 3 years to toggle on and off. The idea was to allow the user to see which AVWAP most effected by price and quickly toggle them on and off to unclutter their chart.
Watch for how and if the labels over lap and choose the one you feel is most in play. In Shannon's Book he talks about "Hand off's" and "Pinches". These concepts are easy to spot with being able to see all the Major Time Events, then simply toggle off the one you dont need.
A great benefit to how we coded this script you can buzz through a watch list without having to re-adjust the Anchor points. This will save you time if following a basket of symbols and show coorlations in the overall market.
Secret Feature
When looking at these becuase the user doesn't need to hand plot the anchor points and we are fouced on major time slices, I encourge you to use the Trading View "Bar Replay" Feature. You think that you are missing a high or low AVWAP but what is happening is the indicator is re-plotting a level that is super hard to see, then you will see the hand-offs like Shannon discusses in his book. This blew me away while we were discussing it post development.
Conclusion
There are so many uses of how to use VWAP and therories on its best practice. We are only using "TIME EVENTS". For more ways to use AVWAP, I would encourge you to also handplot them with Trading View's new "Anchored VWAP", as seen in the standard toolbar.
Using your ideas along with this indicator i think its a powerful combination.
Also Check Out: allanster's - Anchored VWAP Pinch & Handoff, Intervals, and Signals
He has a great AVWAP script that incorporates many AVWAP ideas.
ASFX SignalsDescription:
The ASFX Signals Indicator, created by OmegaTools, is an open-source Pine Script™ code designed to provide traders with valuable signals for potential entry and exit points in the market. This script incorporates a combination of Exponential Moving Average (EMA) signals and Volume Weighted Average Price (VWAP) confluence, enhancing the precision of trading decisions.
Key Features:
Threshold Configuration: Users can customize the threshold parameter (thres) to fine-tune signal sensitivity, adapting the indicator to different market conditions.
EMA Length Customization: The script allows traders to adjust the length of the Exponential Moving Average (EMA) with the "EMA Length" input, providing flexibility in capturing various trends.
Show/Hide Options: Users have the flexibility to choose whether to display the EMA line, VWAP confluence, and VWAP upper and lower bands, tailoring the visual representation based on individual preferences.
VWAP Confluence: The indicator integrates VWAP confluence, offering additional confirmation for trading signals. Traders can choose the VWAP resolution and set the deviation parameter for enhanced accuracy.
Signal Filtering: The script intelligently filters signals based on the percentage of the candle that crosses the EMA. Long signals are filtered out if the closing price is above the VWAP or the specified threshold, and short signals are filtered out if the closing price is below the VWAP or the threshold.
Visual Signals: The indicator provides clear visual signals for long and short entries, making it easy for traders to identify potential opportunities. The signals are accompanied by arrows and labels for quick interpretation.
How to Use:
Adjust the threshold, EMA length, and VWAP parameters based on your trading preferences.
Choose whether to display the EMA line, VWAP confluence, and upper/lower bands.
Interpret long and short signals for potential entry and exit points, considering the percentage of the candle that crosses the EMA.
Consider additional confirmation provided by VWAP confluence.
Concepts and Methodology:
The ASFX Signals Indicator combines EMA signals and VWAP confluence to generate actionable trading signals. The script intelligently considers the percentage of the candle that crosses the EMA, providing a nuanced approach to signal confirmation. The EMA offers trend insights, while VWAP confluence enhances signal reliability.
Volatility Weighted Moving Average + Session Average linesHi Traders !
Just finished my Y2 university finals exams, and thought I would cook up a quick and hopefully useful script.
VWAP + Session Average Lines :
Volatility Weighted Average Price in the standard case is a trading indicator that measures the average trading price for the user defined period, usually a standard session (D timeframe), & is used by traders as a trend confirmation tool.
This VWAP script allows for altering of the session to higher dimensions (D, W, M) or those of lower dimension (H4, or even H1 timeframes), furthermore this script allows the lookback of data to be switched from the standard session to a user defined amount of bars (e.g. the VWAP of 200 bars as opposed to the VWAP of a standard session which contains 95 bars in M15 timeframe for 24/7 traded assets e.g. BTCUSD), lastly this script plots Session VWAP Average Lines (if true in settings) so tradaes can gauge the area of highest liquidity within a session, this can be interpreted as the fair price within a session. If Average lines are increasing and decreasing consistently like a monotonic function this singles traders interest is at higher / lower prices respectively (Bullish / Bearish bias respectively ?), However if Average lines are centered around the same zones without any major fluctuations this signals a ranging market.
VWAP calculation :
VWAP is derived from the ratio of the assets value to total volume of transactions where value is the product of typical price (Average of high, low and close bars / candles) and corresponding bar volume, value can be thought of as the dollar value traded per bar.
How is VWAP used by Institutions / Market movers :
For some context and general information, VWAP is typically used by Market movers (e.g. Hedge funds, Mutual funds ,..., ...) in their trade execution, as trading at the VWAP equals the area of highest market volume, trading in line with the volume of the market reduces transaction costs by minimizing market impact (extra liquidity lowers spreads and lag time between order fills), this overall improves market efficiency.
In my opinion the script is best used with its standard settings on the M15 timeframe, note as of now the script is not functional on certain timeframes, however this script is not intended to be used in these timeframes, i will try fix this code bug as soon as possible.
Custom Weighted Moving Average with SMA, EMA, and VWAPThe Custom Weighted Moving Average with SMA, EMA, and VWAP (CWMA-SMA-EMA-VWAP) is a versatile and comprehensive trading indicator that combines the strength of Simple Moving Averages (SMAs), Exponential Moving Averages (EMAs), and the Volume Weighted Average Price (VWAP) to create a custom weighted moving average. This indicator is designed to provide a more holistic view of the market and enhance trading decisions by considering multiple moving average types and their respective timeframes. The indicator also highlights intersections between the custom weighted moving average and the individual SMA, EMA, and VWAP lines by changing their color to yellow, which can be used as potential entry or exit signals.
How to Use:
The CWMA-SMA-EMA-VWAP indicator can be used in various ways to make informed trading decisions. Here are some possible strategies:
Trend Identification: The custom weighted moving average (CWMA) can act as a dynamic support and resistance level, smoothing out the price movements and revealing the underlying trend. When the price is above the CWMA, it may indicate an uptrend, and when it's below, a downtrend. Traders can use this information to align their trades with the prevailing market trend.
Crossovers: The intersections between the CWMA and individual SMA, EMA, and VWAP lines are highlighted in yellow, which can serve as potential entry or exit signals. For instance, when the price or one of the moving averages crosses above the CWMA, it may signal a bullish trend, and traders could consider entering a long position. Conversely, when the price or one of the moving averages crosses below the CWMA, it may signal a bearish trend, and traders could consider entering a short position.
Confirmation of Signals: The CWMA-SMA-EMA-VWAP indicator can be used in conjunction with other technical analysis tools to confirm or strengthen trading signals. For example, traders may use oscillators like the RSI or MACD to confirm overbought or oversold conditions and identify potential reversals in tandem with the CWMA-SMA-EMA-VWAP crossovers.
Stop Loss and Take Profit Levels: The CWMA, SMAs, EMAs, and VWAP lines can serve as dynamic support and resistance levels, helping traders set stop loss and take profit targets. For example, a trader might set a stop loss below the CWMA during an uptrend or above the CWMA during a downtrend. Similarly, they might set take profit targets near significant SMA or EMA levels, anticipating that the price may reverse or consolidate at these points.
It's important to note that the CWMA-SMA-EMA-VWAP indicator, like any other technical analysis tool, should not be used in isolation. Combining it with other technical analysis methods, proper risk management, and a well-defined trading plan will increase the chances of success in the market. Additionally, traders should backtest and validate any strategy using historical data before applying it to real-world trading.
Salman Indicator: Multi-Purpose Price ActionSalman Indicator: Multi-Purpose Price Action Tool for Pin Bars, Breakouts, and VWAP Anchoring
This indicator provides a comprehensive suite of price action insights, designed for active traders looking to identify key market structures and potential reversals. The script incorporates a Quarterly VWAP for trend bias, marks pin bars for possible reversal points, highlights outside bars for volatility signals, and indicates simple breakouts and pivot-level breaks. Customizable settings allow for flexibility in various trading styles, with default settings optimized for daily charts.
Outside Bars : Represented by an ⤬ symbol on the chart, these indicate bars where the current high is greater than the previous bar’s high, and the low is lower than the previous bar’s low, signaling high volatility and potential market reversals.
Pin Bars : Denoted by a small dot at the top or bottom of a candle’s wick, these are crucial signals of potential reversal areas. Pin bars are identified based on the percentage length of their shadows, with adjustable strictness in settings.
Quarterly VWAP : The light blue line on the chart represents the VWAP (Volume-Weighted Average Price), which is anchored to the Quarterly period by default. The VWAP acts as a directional bias filter, helping you to determine underlying market trends. This period, source, and offset are fully adjustable in the script’s settings.
Simple Breaks : Hollow candles on the chart indicate "simple breaks," defined when the current bar closes above the previous high or below the previous low. This is an effective way to highlight directional momentum in the market.
Bonus Pivot Breaks : The tilde symbol ~ appears when the price closes above or below prior pivot high/low levels, helping traders spot significant breakout or breakdown points relative to recent pivots.
Alerts
Simple Breaks : Alerts you when a breakout occurs beyond the previous bar’s high or low. Pin Bars : Notifies you of potential reversal points as indicated by bullish or bearish pin bars. Outside Bars : Triggers an alert whenever an outside bar is detected, indicating possible volatility changes.
How to Use
VWAP for Trend Bias : Use the Quarterly VWAP line to gauge overall market trend, with settings that allow adjustment to daily, weekly, monthly, or even larger time frames.
Pin Bars for Reversal Potential : Look for the dot markers on candle wicks, where the strictness of the pin bar detection can be adjusted via settings to match your trading preference.
Simple and Pivot Breaks for Momentum : Watch for hollow candles and the tilde symbol ~ as indicators of potential breakout momentum and pivot break levels, respectively.
This script can serve traders on multiple timeframes, from daily to weekly and beyond. The flexible configuration allows for adjustments in VWAP anchoring and pin bar criteria, providing a tailored fit for individual trading strategies.
Expanding Volume Range with Anchored VWAPExpanding Volume Range with Anchored VWAP Indicator Summary
This Pine Script indicator is designed for intraday trading, particularly for timeframes of 60 minutes or less. It combines several technical analysis concepts to provide traders with a comprehensive view of price action, volume, and potential support/resistance levels.
## Key Features
1. **Anchored VWAP (Volume Weighted Average Price)**
- Calculates and displays an Anchored VWAP line
- Resets at the start of each new day or when a new highest volume bar is detected
2. **Expanding Volume Range (EVR)**
- Identifies and highlights high volume bars
- Creates a box around the price range of the last three high volume bars
- Generates additional support/resistance lines based on this range
3. **Custom Multiplier Calculations**
- Allows users to customize the calculation of support/resistance levels
- Includes options for separate top and bottom multipliers
- Provides an exponential adjustment for fine-tuning
4. **Volume-Based Candle Coloring**
- Colors candles differently based on their volume relative to recent history
- Highlights the first candle of each session in a distinct color
5. **VWAP-Based Line and Fill Colors**
- Changes colors of lines and fills based on price position relative to VWAP
6. **Alert Generation**
- Creates alerts when price breaks above or below the EVR high and low levels
## User Inputs
The indicator offers several customizable inputs grouped into categories:
1. **Volume Colors**
- Customize colors for various elements (lines, fills, candles) based on volume and VWAP relationship
2. **Target Levels**
- Set multipliers for calculating target levels
3. **Multiplier Calculations**
- Enable/disable custom multiplier calculations
- Set base multipliers and exponents for top and bottom levels
## Functionality Breakdown
1. The indicator tracks the highest volume bars for the current and previous day.
2. It creates an Expanding Volume Range (EVR) based on the last three high volume bars.
3. Using the EVR, it calculates and draws support and resistance levels.
4. The levels can be calculated using either simple multipliers or a more complex exponential formula, depending on user preference.
5. Candles are colored based on their volume and whether they're the first candle of a session.
6. An Anchored VWAP is calculated and displayed, resetting at the start of each day or on new highest volume bars.
7. Alerts are generated when price moves beyond the EVR high or low levels.
## Use Cases
This indicator can be particularly useful for:
- Identifying potential support and resistance levels based on high volume price action
- Spotting changes in volume patterns throughout the trading session
- Recognizing price action relative to the Anchored VWAP
- Setting up potential entry and exit points based on the expanding volume range
Traders should use this indicator in conjunction with other forms of analysis and risk management strategies for best results.
TradeTale Targets & SLIts a Leading Indicator. This script explains how 'Pivot Points' along with 'Fibonacci' & 'VWAP' can be used to catch a trend.
Volume Weighted Average Price (VWAP):-
VWAP stands for Volume-Weighted Average Price, which is a tool that shows the average price of a security over a period of time, adjusted for trading volume.
VWAP = (Cumulative (Price * Volume) ÷ (Cumulative Volume)
Pivot Points:-
A pivot point is a price level calculated from previous prices. Pivot point is simply the average of the previous days high and low and the closing price which shows potential areas of support or resistance. Trading above the pivot point on the subsequent day is thought to indicate ongoing bullish sentiment and Trading below the pivot point indicates bearish sentiment. It lets the trader know that the price is trending in that direction if the price moves through these levels. Day traders calculate pivot points to determine levels of entry, stoploss and take profits.
Fibonacci:-
Fibonacci is based on the key numbers identified by mathematician Leonardo Pisano, nicknamed Fibonacci, in the 13th century. Fibonacci's sequence of numbers is not as important as the mathematical relationships, expressed as ratios, between the numbers in the series. A Fibonacci retracement is created by taking two extreme points on a stock chart and dividing the vertical distance by the key Fibonacci ratios of 23.6%, 38.2%, 50%, 61.8% etc. Once these levels are identified, horizontal lines are drawn and used to identify possible support and resistance levels, place stoploss and set targets.
Logic of this indicator:-
Pivot Points are used as Entry level and Stoploss.
Fibonacci Ratios are used as Targets.
VWAP can be used to see the Trend. (Price above VWAP is Bullish Trend & Price below VWAP is Bearish Trend)
How to use:-
Long when price is above "VWAP".
Short when price is below "VWAP".
Long & Short Levels along with Targets & Stoploss appears as horizontal lines.
Chart Timeframe:-
This Indicator works on all timeframes below "1 day" timeframe.
Traders can also set stop loss and take profit levels as per risk reward ratio.
Note:-
Like other technical indicators, This indicator also is not a holy grail. It can only assist you in building a good strategy. You can only succeed with proper position sizing, risk management and following correct trading Psychology (No overtrade, No greed, No revenge trade etc).
THIS INDICATOR IS FOR EDUCATIONAL PURPOSE AND PAPER TRADING ONLY. YOU MAY PAPER TRADE TO GAIN CONFIDENCE AND BUILD FURTHER ON THESE. PLEASE CONSULT YOUR FINANCIAL ADVISOR BEFORE INVESTING. WE ARE NOT SEBI REGISTERED.
Hope you all like it
happy learning.
BabyShark VWAP Strategy What the code does:
This Pine Script implements a trading strategy based on two indicators: Volume Weighted Average Price (VWAP) and On Balance Volume (OBV) Relative Strength Index (RSI). The strategy aims to identify potential buy and sell signals based on deviations from VWAP and OBV RSI crossing certain threshold levels.
How it does it:
**VWAP Calculation**: The script calculates the VWAP using either standard deviation or average deviation over a specified length. It then plots the VWAP and its upper and lower deviation bands.
**OBV RSI Calculation**: It computes the OBV and then calculates the RSI using the cumulative changes in OBV. The RSI is plotted and compared against predefined levels.
**Table Visibility and Occurrence Counting**: It allows the user to display a table showing the number of occurrences where the price is above Upper Dev 2, below Lower Dev 2, crosses above a higher RSI level, or crosses below a lower RSI level.
**Entries**: Long and short entry conditions are defined based on the position of the price relative to the VWAP deviation bands and the color of the OBV RSI. Entries are made when specific conditions are met, and there hasn't been a recent entry.
**Exit Conditions**: The script includes stop-loss and take-profit mechanisms. It exits positions based on price crossing the VWAP or a certain percentage, and it prevents further trading after a certain number of consecutive losses.
What traders can use it for:
**Trend Identification**: Traders can use the VWAP and its deviation bands to identify potential trend reversals or continuations.
**Volume Confirmation**: The inclusion of OBV RSI provides confirmation of price movements based on volume changes.
**Entry and Exit Signals**: The script generates buy and sell signals based on the specified conditions, allowing traders to enter and exit positions with defined stop-loss and take-profit levels.
**Statistical Analysis**: The visibility of occurrence counts in the table allows traders to perform statistical analysis on the frequency of price movements relative to the VWAP and OBV RSI levels.
Noa: Z-distance from VWAP with Kalman Smoother
Title: Noa: Z-distance from VWAP with Kalman Smoother
Description:
The "Z-distance from VWAP with Kalman Smoother" is a tool constructed on the premise that price evolves in distinct stages: normal or extreme trends (upward or downward) and transitional periods, termed as 'flips'. The Volume Weighted Average Price (VWAP) serves as a benchmark, representing the market's expectation of a fair value over a given time frame. However, since each stock trades on its unique price scale, direct comparisons are not feasible. This script introduces a standardized method, using the Z-score from the VWAP, to understand and compare these relationships across diverse scales.
Core Principles:
Stages of Price Movement:
- Prices don't move purely randomly; while they contain a random element, they oscillate in discernible patterns or stages—either maintaining a trend (normal or extreme) or undergoing transition (flip).
- VWAP as Fair Value: VWAP offers a dynamic representation of what the market perceives as fair value for a stock over a specific period.
- Standardizing Price Relations: Given the varied scales at which different stocks trade, a model was imperative to standardize these relations. The Z-score from the VWAP fulfills this role, offering a normalized measure of how far the price deviates from its perceived fair value.
Features:
Z-score Levels:
The indicator demarcates various stages of price movements, offering clarity on potential overbought or oversold conditions.
- Extreme Up Trend: Indicated when the Z-score surpasses the upper limit.
- Normal Up Trend: Represented when the Z-score lies between the flip upper and the upper limit.
- Transition (Flip): Recognized when the Z-score oscillates within the flip range.
- Normal Down Trend: Denoted when the Z-score is between the flip lower and the lower limit.
- Extreme Down Trend: Marked when the Z-score falls below the lower limit.
Visual Aids:
- Color-coded regions between specific Z-score levels and the Z-score plot itself elucidate the current market state.
- Kalman Filter: By incorporating a Kalman filter, the indicator offers a less noisy and smoother representation of the Z-score, enhancing its interpretability.
Usage:
Trend Analysis:
- The Z-score states and the color-coded plot facilitate a nuanced understanding of the prevailing market trend.
- Potential Reversal Points: Extremely positive or negative Z-scores might hint at impending reversals.
- Buy/Sell Signals: Z-score's interactions with the flip level can be interpreted as potential trading signals.
Example (for illustration purposes only):
AAPL since April 2022: The stock exited from a normal uptrend and transitioned potentially towards a downtrend. By the end of April, AAPL flipped twice before transitioning to a normal downtrend. By early May, the stock moved into an aggressive downtrend. Market buyers were able to counter this downtrend by June, but selling pressure persisted, pushing the stock back into an aggressive downtrend. By the end of June, buyers halted the aggressive selling and transitioned the stock from an aggressive to normal downtrend, then to a flip, and finally to a normal uptrend by the end of August. AAPL briefly peaked into an aggressive uptrend before being pressured back to a normal downtrend. The rest of 2022 saw AAPL attempting several short-lived uptrend flips. However, 2023 brought a change, with AAPL flipping into a normal uptrend by the end of January, maintaining it until August of that year.
Credits:
This script, inspired by Z distance from VWAP by LazyBear and Kalman Smoother by alexgrover, was revamped and enriched by nord-ouestadvisors to embed these core principles and heighten its usability. A special acknowledgment to ChatGPT by OpenAI for the guidance.
Previous Day Close and Average VWAP value, Current Day 30 min HLThe code provided is a TradingView Pine Script that creates a combined indicator consisting of two separate components:
Indicator 1: Plot Lines with VWAP
This component plots lines on the chart using two different colors and widths.
It uses a custom function f_newLine to create a new line object with a specified color and width.
It uses another custom function f_moveLine to move a line to a specific location on the chart.
The line_close line is moved to a specific date and closing price.
The line_vwap line represents the VWAP (Volume Weighted Average Price) and is plotted using the line.new function.
The VWAP calculation is performed using the typical price (average of high, low, and close) and volume.
The VWAP is plotted on the chart using the plot function.
The previous day's VWAP is also plotted and connected to the current day's VWAP with a line.
Indicator 2: 30 Min high and low breakout
This component identifies a specific time range ("0915-0945") within each trading day.
It uses the ta.valuewhen function to find the highest and lowest prices during that time range.
The highest price is stored in the high_thirtymin variable, and the lowest price is stored in the low_thirtymin variable.
These prices are plotted on the chart as circles, with green representing the high and red representing the low.
The indicator combines these two components to provide visual information about the VWAP and the high/low breakout within a specific time range. The code also includes some additional logic to handle barstate and ensure correct calculations and plotting.
Wick Hunter VWAP & RSIWick Hunter VWAP & RSI Script to be used to produce quality reversal entries based on VWAP with added RSI Filtering.
Wick Connect 2.0 was designed specifically to work with Wick Hunter, the lightning fast cryptocurrency trading robot that can trade for you 24/7.
Simply input your UUID and start trading automatically with Wick Hunter!
The indicator first starts with VWAP entries, with user selectable user selectable inputs to plot percentages above and below current VWAP line.
Percentage Above VWAP = Short Entry
Percentage Below VWAP = Long Entry.
Alerts will fire as soon as price crosses the VWAP Line if using "Once per bar", and may disappear after.
Alerts shown on the chart are confirmed via candle close, and as such, "Once per bar close" should be used if the user wants to only trade confirmed signals.
RSI Filtering has been added with separate RSI Values for both long and shorts which can used to filter entries.
RSI Long Min: Minimum RSI value to fire alerts.
RSI Long Max: Maximum RSI value to fire alerts.
RSI Short Min: Minimum RSI value to fire alerts.
RSI Short Max: Maximum RSI value to fire alerts.
Happy Trading.
Cvwap-Pvwap 2.0A simple vwap based Intraday trend indicator.
Volume-Weighted Average Price (VWAP) - the average price weighted by volume, starts when trading opens and ends when it closes. This can help institutions buy or sell in large orders, without disturbing the market.
After buying or selling, institutions compare instrument price to closing VWAP values at end of the day.
For big financial institutions;
A buy order executed below the VWAP value, considered a good fill because the security was bought at a below average price.
A sell order executed above the VWAP would be deemed a good fill because it was sold at an above average price.
Simple price based moving average is not helpful for them; = as it doesn't incorporates volume traded. Hence - VWAP :)
So how it helps us in decoding the IntraDay-trend? - Through a 2 day vwap co-relation.
So, Closing value of previous day vwap = Pvwap
Today's running vwap = Cvwap
Defining the IntraDay Trend:
Moderately Bullish = candle closing price above Pvwap but below Cvwap
Super Bullish = Closing price is above both (Cvwap and Pvwap)
Moderately Bearish = Closing price is above Cvwap but below Pvwap
Super Bearish = Closing Price is below both (Cvwap and Pvwap)
A big gap between the Cvwap and the candle closing price defines the strong participation from institutions in that direction. (Strong Trend)
Moving with the smart money, in the overall trend is a wise decision for any intraday trader and this helps at its best.
RSI of VWAP [SHORT selling]This is SHORT selling version of RSIofVWAP strategy. Settings and Logic are totally different from LONG side version , hence I am publishing it as a new strategy.
Settings
============
VWAP of RSI Length 15
Slow EMA Length 200
Short entry level 25
Cover short level 70
stop loss 5
SHORT Entry
============
condition1 : When RSIofVWAP crossdown below 25 and VWAP is below ema200
condition2: When weekly RSIofVWAP crossdown 70 and VWAP (note : session vwap , not weekly vwap) is below ema200
condition3: Use VIX value , if you want to short when the price is above ema200
vwap RSI crossing down 70 and VIX RSI is cossing up 70
enter short ... This is like falling knife :-)
I need to add the code -- later
if any of above condition is TRUE , SHORT entry will be taken
Take Profit
============
When close less than short entry price and RSIofVWAp is crossing up 25 , take profit ...close 1/3 of the position
Exit
============
When RSIofVWAP crossing up 70 level
Stop Loss
============
Stop Loss is set to 5%
Note:
1. When strategy is in SHORT position , background and bar color changes to gray
2. When strategy is already in short position , possible entries are shown in yellow background
3. RSI Length 15 is working most of the equities on hourly chart. ( RSI length 9 and 14 also works good , but not for all ... You may want to try which setting works for your symbol)
4. weekly VWAP (blue color) is also plotted by default ... you can disable it if you dont want to see it. But there is advantage keeping it on the chart , you can notice whenever weekly VWAP crosses above 70 line , trend is UP ... if you have LONG position you can hold on it ... Hurray :-)
Warning
============
For the educational purposes only
PpSignal Multi-Day VWAPThank to @mortdiggiddy
original script:
Chart the multi-day Volume Weighted Average Price ( VWAP ). Normally, the VWAP is tracked for the current day, from the first bar of the day (regular or extended session). The VWAP shows the current value of:
-> sum(hlc3 * volume , barsForDay) / sum( volume , barsForDay),
-> where 'barsForDay' is the total number bars that have elapsed during the day for the chart interval.
The multi-day version tracks the VWAP for N days back, by averaging the previous N - 1 day bars VWAP and the current VWAP for the current bar (chart interval).
This is very different that simply using a volume weighted moving average , since the closing VWAP values are used for the historical day bars. The results are interesting for intraday trades... especially for values of 1, 2, 3, 4, 5 ....to 21 days.