5EMA BollingerBand Nifty Stock Scanner
What ?
We all heard about (well: over-heard) 5-EMA strategy. Which falls into the broader category of mean reversal type of trading setup.
What is mean reversal?
Price (or any time series, in fact) tries to follow a mean . Whenever price diverges from the mean it tries to meet it back.
It is empirically observed by some traders (I honestly don't know who first time observed it) that in Indian context specially, 5 Exponential Moving Average (5-EMA) works pretty good as that mean.
So whenever price moves away from that 5-EMA, it ultimately comes back and attain total nirvana :) Means: if price moved way higher than the 5EMA without touching it, then price will correct to meet it's 5-EMA and if price moved way lower, it will be uplifted to meet it's 5-EMA. Funny - but it works !
Now there are already enough social media coverage on this 5-EMA strategy/setup. Even TradingView has some excellent work done on these setups. Kudos to all those great souls.
So when we came to know about this, we were thinking what we should do for the community. Because it is well cover topic (specially in Indian context). Also, there are public indicators.
Then we thought why not come up with a scanner which will scan all the Nifty-50 constituent stocks and find out on the fly, real-time which all stocks are matching this 5-EMA setup and causing a Buy/Sell trade recommendation.
Hence here we are with the first version of our first scanner on the 5EMA setup (well it has some more masala than merely a 5-EMA setup).
Why?
Parts of why is already covered up.
Now instead of blindly following 5-EMA setup, we added the Bollinger band as well. Again: it's also not new. There are enough coverage in social media about the 5-EMA+BB strategy/setup. We mercilessly borrowed from all of these.
Suppose you have an indicator.
Now you apply the indicator in your chart. And then you need to (rock) and roll through your watchlist of Nifty-50 stocks (note: TradingView has no default watchlist of Nifty-50 stock by default - you have to create one custom watchlist to list all manually) to find out which all are matching the setup, need to take a note about the trade recomendations (entry, SL, target) and other stuffs like VWAP, Volume, volatility (Bollinger Band Width).
Not any more.
This scanner will track all the Nifty-50 stocks (technically: 40 stocks other than Banking stocks) and provide which one to Buy or Sell (if any), what's the entry, SL, target, where is the VWAP of the day, what's the picture in volume (high, low, rising, falling) and the implied volatility (using Bolling band width). Also it has a naive alerting mechanism as well.
In fact the code is there to monitor the (Future) OI also and all the OI drama (OI vs price and all the 4 stuffs like long build up, long unwinding, short covering, short buildup). But unfortunately, due to some limitations of the TradingView (that one can not monitor more than 40 `ta.security` call) we have to comment out the code. If you wish you can monitor only 20 stocks and enable the OI monitoring also (20 for stocks + 20 for their OI monitoring .. total 40 `ta.security` call).
How?
To know the divergence from 5-EMA we just check if the high of the candle (on closing) is below the 5-EMA. Then we check if the closing is inside the Bollinger Band (BB). That's a Buy signal. SL: low of the candle, T: middle and higher BB.
Just opposite for selling. 5-EMA low should be above 5-EMA and closing should be inside BB (lesser than BB higher level). That's a Sell signal. SL: high of the candle, T: middle and lower BB.
Along with we compare the current bar's volume with the last-20 bar VWMA (volume weighted moving average) to determine if the volume is high or low.
Present bar's volume is compared with the previous bar's volume to know if it's rising or falling.
VWAP is also determined using `ta.vwap` built-in support of TradingView.
The Bolling Band width is also notified, along with whether it is rising or falling (comparing with previous candle).
Simple, but effective.
Customization
As usual the EMA setup (5 default), the BB setup (20 SMA with 1.5 standard deviation), we provided option wherther to include or exclude BB role in the 5-EMA setup (as we found out there are two schools of thought .. some people use BB some don't. Lets make all happy :))
We also provide options to choose other symbols using Settings if they wish so. We have the default 40 non banking Nifty stocks (why non-banking? - Bank Nifty is in ATH :) .. enough :)). But if user wishes can monitor others too (provided the symbol is there in TradingView).
Although we strongly recommend the timeframe as 30 minutes , you can choose what's fit you most.
The output of the scanner is a table. By default the table is placed in the right-bottom (as we are most comfortable with that). However you can change per your wish. We have the option to choose that.
What is unique in it ?
This is more of an indicator. This is a scanner (of Nifty-50 stocks). So you can apply (our recommendation is in 30m timeframe) it to any chart (does not matter which chart it is) and it will show every 30 mins (which is also configurable) which all stocks (along with trade levels) to Buy and Sell according to the setup.
It will ease your trading activity.
You can concentrate only on the execution, the filtering you can leave it to this one.
Limitations
There is a build in limitation of the TradingView platform is that one can call only upto 40 securities API. Not beyond that. So naturally we are constraint by that. Otherwise we could monitor 190 Nifty F&O stocks itself.
30m is the recommended timeframe. In very lower (say 5m) this script tends to go out of heap (out of memory). Please note that also.
How to trade using this?
Put any chart in 30m (recommended) timeframe.
Apply this screener from Indicators (shortcut to launch indicators is just type / in your keyboard).
This will provide the Buy (shown in green color) or Sell (shown in red color) recommendations in a table, at every 30m candle closing.
Note the volume and BB width as well.
Wait for at least 2 5-minutes candles to close above/below the recommended level .
Take the trade with the SL and target mentioned.
Mentions
@QuantNomad. The whole implementation concept we mercilessly borrowed from him, even some of his code snippet we took it (after asking him through one of his videos comment section and seeking explicit permission which he readily granted within an hour). Thank You sir @QuantNomad. Indebted to you.
Monika (Rawat) ji: for reviewing, correcting, providing real time examples during live market hours, often compromising her own trading activities, about the effectiveness and usefulness of this setup. Thank You madam ji. Indebted to you.
There are innumerable contents in social media about this. Don't even know whom all we checked. Thanks to all of them.
Happy Trading (in stocks - isn't enough of Indices already?)
Disclaimer
This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
Средневзвешенная цена объёма (VWAP)
VWAP Xing D, Prv.D, W, Q, M, & Y + SD [UOI]Introducing the "VWAP Xing D, Prv.D, W, Q, M, & Y + SD" Indicator: A Comprehensive, Multi-Timeframe Trading Tool for the Modern Trader
In today's dynamic and fast-paced financial markets, traders require versatile and powerful tools that can help them navigate the complex world of trading. The "VWAP Xing D, Prv.D, W, Q, M, & Y + SD" indicator is designed to be the ultimate, all-in-one solution for traders seeking a comprehensive and robust trading indicator. This cutting-edge tool combines the power of an extensive VWAP library with the versatility of Bollinger Bands, Donchian Channels, standard deviation multi-timeframe analysis, and an auto boxed range identifier, all to provide traders with the crucial insights needed to identify reversals, breakdowns, and breakups.
Offering the magnetic daily, previous day, weekly, monthly, quarterly, and even yearly VWAP levels, this comprehensive library caters to traders with varying time horizons and strategies. Coupled with the precision of Bollinger Bands and Donchian Channels, the indicator allows for accurate tracking of price volatility, enabling traders to make more informed decisions in response to changing market conditions. The integration of multi-timeframe standard deviation analysis further bolsters the indicator's ability to identify potential trading opportunities, ensuring that users can stay ahead of the curve.
Finally, the auto boxed range identifier serves as the cherry on top, automatically detecting critical price levels where reversals, breakdowns, and breakups are most likely to occur. This powerful feature not only helps traders confirm potential entry and exit points but also allows for more effective risk management.
Overall, the "VWAP Xing D, Prv.D, W, Q, M, & Y + SD" indicator is a comprehensive, multi-timeframe trading tool that empowers traders with unparalleled insights, precision, and adaptability. Whether you're a seasoned professional or a novice trader, this powerful indicator is a must-have tool for anyone looking to excel in today's competitive financial markets.
Multi-timeframe Volume Weighted Average
First let's define Volume Weighted Average Price (VWAP):
Volume Weighted Average Price (VWAP) is a widely-used technical analysis indicator that calculates the average price of a security, taking into account both price and trading volume. In essence, it represents the average price at which a security has been traded throughout a specified time period, giving more weight to transactions with higher volume.
The VWAP is often used by traders and investors to assess the market's trend and gauge the relative value of a security. It serves as a benchmark for institutional investors, who often use it to evaluate their trading performance and determine whether they are buying or selling at favorable prices.
The formula for calculating VWAP is:
VWAP = (Sum of (Price * Volume)) / Total Volume
By incorporating volume into the calculation, the VWAP provides a more accurate representation of a security's true average price, as it takes into consideration the impact of larger trades on the price. This makes it a valuable tool for traders seeking to make more informed decisions in the market and avoid getting caught in unfavorable trading positions.
VWAP is a crucial indicator that provides insights into the average price at which a financial asset, such as a stock or cryptocurrency, has been traded throughout a specific period. It takes into consideration the volume of trades executed at each price level during that period. The VWAP lines included in the " VWAP Xing D, Prv. D, W, Q, M, & Y" indicator offer various timeframe perspectives, allowing traders to analyze different levels of market trends and behaviors.
Here's a detailed explanation of the VWAP lines and their significance:
1. Daily VWAP (D): The daily VWAP line represents the average price at which the asset has been traded throughout the current trading day. It resets at the beginning of each trading session. Traders often use the daily VWAP as a reference point to gauge the fairness of their trade executions relative to the prevailing market prices. Price deviations from the daily VWAP can indicate shifts in market sentiment and potential trading opportunities.
2. Previous Day VWAP (Prv.D): The previous day VWAP line reflects the average price at which the asset was traded during the preceding trading day. It helps traders assess the continuity or deviation of the current day's price action relative to the previous day's trading activity. Traders often observe the previous day VWAP for insights into potential support or resistance levels and to identify whether the current day's price is trading above or below the previous day's average price.
3. Weekly VWAP (W): The weekly VWAP line calculates the average price of the asset over the entire week, taking into account the volume traded at each price level. Traders use the weekly VWAP to gain a broader perspective on the asset's price movement and potential trend directions. It can act as a significant support or resistance level, especially when the price interacts with the weekly VWAP.
4. Monthly VWAP (M): The monthly VWAP line provides a longer-term perspective by averaging the asset's price and volume data over the entire month. It helps traders identify key price levels that are significant within the monthly timeframe. Traders often observe the monthly VWAP to assess the overall trend and to determine whether the current price is trading above or below the monthly average.
5. Quarterly VWAP (Q): The quarterly VWAP line calculates the average price and volume data over a three-month period, representing a longer-term view of market activity. Traders use the quarterly VWAP to identify significant price levels and to analyze the broader trend within the quarterly timeframe. Deviations from the quarterly VWAP can indicate potential shifts in market sentiment and trading opportunities.
6. Yearly VWAP (Y): The yearly VWAP line represents the average price and volume data over the course of a year. It offers a comprehensive long-term perspective on the asset's price behavior and trend. Traders often consider the yearly VWAP as a key reference point for assessing the asset's overall performance and identifying major support or resistance levels.
By observing the VWAP lines, traders can gain insights into the prevailing market sentiment, potential support or resistance levels, and deviations from average prices. These deviations can be useful for identifying potential trading opportunities, such as when the price significantly deviates from the VWAP lines, suggesting potential overbought or oversold conditions. Additionally, VWAP can serve as a benchmark for evaluating trade executions and assessing the fair value of an asset.
It's important to note that while VWAP is a valuable tool, it should be used in conjunction with other technical analysis indicators and strategies to make informed trading decisions. Traders should consider factors like market context, trend analysis, and risk management principles to validate signals and confirm potential trading opportunities.
Bollinger Bands and Donchian Channels
In addition to VWAP this indicator also has combined the power of Bollinger Bands and Donchian Channels to produce a solid framework. The time frame by default is set to 30 min which is good for intraday trading but you can also change that in the setting to always use chart time frame intervals which works better on longer time frames.
IMPORTANT: You can change the time frame to always use chart or keep the default on 30 min or change it to another timeframe manually. If you allow the chart to always provide the intervals then the default 30 min will be ineffective and it automatically adjust to chart timeframe. Personally I think a fixed timeframe work better so keep in that way if you trade on 30 min or lower time frame.
Bollinger Bands and Donchian Channels are two popular technical analysis tools that provide valuable insights into price volatility, potential breakout levels, and support/resistance areas. When used in combination, they offer a comprehensive framework for analyzing market conditions and identifying trading opportunities.
Bollinger Bands: Bollinger Bands consist of two lines plotted above and below a moving average, typically a simple moving average (SMA). The upper band is calculated by adding the standard deviation of price multiplied by a customizable standard deviation factor to the SMA. The lower band is calculated by subtracting the standard deviation multiplied by the same factor from the SMA. The key features of Bollinger Bands are as follows:
1. Volatility Measurement: Bollinger Bands expand and contract based on market volatility. When the bands widen, it indicates higher volatility, and when they narrow, it suggests lower volatility. Traders can observe the width of the bands to gauge the potential for price movements and volatility expansions.
2. Overbought/Oversold Levels: Bollinger Bands can help identify overbought and oversold conditions in the market. When the price reaches or exceeds the upper band, it may indicate that the asset is overbought and due for a potential reversal or pullback. Conversely, when the price reaches or falls below the lower band, it may suggest oversold conditions and a possible bounce or reversal.
Donchian Channels: Donchian Channels consist of two lines representing the highest high and lowest low within a specified period. The key characteristics of Donchian Channels are as follows:
1. Breakout Levels: The upper line of the Donchian Channel represents the highest high within the specified period, while the lower line represents the lowest low. Traders often use Donchian Channels to identify potential breakout levels. When the price breaks above the upper channel line, it may indicate a bullish breakout and the potential for further upward momentum. Conversely, a break below the lower channel line suggests a bearish breakout and the possibility of downward momentum.
2. Support/Resistance Areas: Donchian Channels also act as dynamic support and resistance levels. The upper channel line can act as a resistance level where the price may encounter selling pressure. The lower channel line can act as a support level where the price may find buying interest. Traders can monitor price interactions with these levels to make informed trading decisions.
Advantages of Using Bollinger Bands and Donchian Channels Together: By combining Bollinger Bands and Donchian Channels, traders can gain a more comprehensive view of market conditions and potential trading opportunities. Here are some advantages of using them together:
1. Volatility Confirmation: Bollinger Bands help identify periods of high or low volatility, while Donchian Channels confirm breakouts and potential trend changes. When the bands widen and a breakout occurs above or below the Donchian Channels, it can provide confirmation of increased volatility and the start of a new trend.
2. Price Extremes and Breakouts: Bollinger Bands assist in identifying overbought and oversold conditions, while Donchian Channels help pinpoint breakout levels. When price reaches an extreme level according to Bollinger Bands and coincides with a breakout from the Donchian Channels, it can signal a significant trading opportunity.
3. Support/Resistance Validation: Donchian Channels act as dynamic support and resistance levels, and Bollinger Bands can validate these levels. When price bounces off the upper or lower Bollinger Band near a Donchian Channel level, it provides additional confirmation of the support or resistance area.
4. Risk Management: The combination of Bollinger Bands and Donchian Channels enables traders to set more precise stop-loss levels and define risk. They can place stop-loss orders beyond the support or resistance levels identified.
Standard Deviation
Standard deviation bands by default are disabled but you can easily enable them in the setting. The 1 standard deviation bands are made invisible by default to avoid a crowded space. You can reduce the transparency to view them.
In intraday trading, the Daily VWAP (Volume Weighted Average Price) with 3 standard deviations is a powerful tool that helps traders gauge price movements and potential trading opportunities. Here's how it works and why it is useful:
1. Calculation of Daily VWAP: The Daily VWAP is the average price at which a security has traded throughout the trading day, weighted by the volume of each trade. It provides a measure of the average price that traders have paid for the asset during the day.
2. Standard Deviation: Standard deviation is a statistical measure that quantifies the dispersion or variability of prices around the Daily VWAP. It gives an indication of how much prices deviate from the average. A higher standard deviation suggests greater price volatility.
3. Three Standard Deviations: By adding and subtracting three times the standard deviation from the Daily VWAP, you create bands that represent the potential price range within which the majority of intraday trading activity is expected to occur. These bands act as potential support and resistance levels and help traders identify price extremes.
4. Price Reversals: When the intraday price extends beyond the upper or lower band (three standard deviations), it suggests an overextended move or potential price reversal. Traders interpret this as an opportunity to enter or exit trades. If the price moves beyond the upper band, it may indicate overbought conditions and a possible reversal to the downside. Conversely, if the price moves below the lower band, it may signal oversold conditions and a potential reversal to the upside.
5. Volatility and Breakouts: Intraday traders often look for volatility and breakout opportunities. The three standard deviation bands on the Daily VWAP provide valuable information about price volatility. When the price breaks out of the bands, it suggests a significant increase in volatility and potential opportunities for intraday traders to take advantage of strong momentum moves.
6. Risk Management: The three standard deviation bands help traders define their risk and set stop-loss orders. By placing stop-loss orders outside the bands, traders can protect their positions in case the price moves beyond the expected range. This risk management technique allows traders to limit their potential losses and preserve capital.
7. Confirmation with Other Indicators: Intraday traders often use the three standard deviation bands on the Daily VWAP in conjunction with other technical indicators or chart patterns to strengthen their trading decisions. The bands can validate other signals or provide additional confirmation before entering or exiting a trade.
Overall, the Daily VWAP with three standard deviations is a valuable tool for intraday traders as it helps identify price extremes, potential reversals, volatility, and breakout opportunities. By incorporating this indicator into their trading strategies, traders can make more informed decisions and enhance their intraday trading performance.
Auto Boxed Range Detector
The true innovation in the "VWAP Xing D, Prv.D, W, Q, M, & Y + SD" indicator lies in the integration of the sophisticated 'Auto Boxed Range Detector.' This feature serves as the cornerstone of the tool's enhanced functionality, shedding light on critical price ranges to give traders a distinct advantage when identifying potential breakouts or breakdowns.
Meticulously designed with the needs of traders in mind, the Auto Boxed Range Detector automates the process of pinpointing trading ranges, resulting in increased precision and swiftness in your decision-making. By automating this crucial aspect of technical analysis, traders can now focus on other essential factors, ultimately maximizing their trading efficiency.
Furthermore, the Auto Boxed Range Detector helps traders avoid falling prey to false breakouts. By identifying the top of the boxed range in relation to resistance levels, users can more accurately predict the likelihood of a breakout. For instance, if the top of the boxed range is situated near a resistance line, the chances of a breakout are diminished unless the market is experiencing a trend day.
In essence, the Auto Boxed Range Detector not only streamlines the identification of trading ranges but also provides invaluable insights into the validity of potential breakouts or breakdowns. This innovative feature makes the "VWAP Xing D, Prv.D, W, Q, M, & Y + SD" indicator an indispensable tool for traders seeking to capitalize on opportunities while minimizing risk in today's fast-paced financial markets.
Once you get used to this tool it will be an integral part of your trading.
PM RTH AH VWAPs [vnhilton]FOR STOCKS ONLY.
Simply 3 different VWAPs for the pre-market, regular trading session, and the after hours, using session.is_ variables (not sure if they were recently added. Regardless, it would be nice to have a session.isfirstbar_postmarket variable to avoid having to write the code for calculating VWAP instead of simply using a ta.vwap function). Treats all 3 sections of the day as separate sessions with their own characteristics i.e. differing levels of liquidity and market dynamics. I would argue this is better than just using a VWAP calculated from the pre-market open until after hours close, as it would make using the VWAPs as a benchmark more accurate when taking trades at these different periods of the day.
QQQ NDX NQ Price Converter+ [Pt]This is a + version of my original QQQ NDX NQ Price Converter indicator
Description
The QQQ NDX NQ Price Converter is a powerful and easy-to-use tool that allows traders to view corresponding price levels for linked instruments in real-time. This includes QQQ, NDX, NQ, and NAS100USD. Although these instruments often move in sync, differences in price movements, volume, and trading hours can create unique key levels and support/resistance areas for each. By mapping these levels on the same chart, traders can more easily spot trading opportunities and improve their chances of success.
Customizable features
- multiplier from the closest whole number price level
- line color
- line style
- label position / size
- # of levels to display
- toggle current price display table
|| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------||
This script includes the following premium unique features.
QQQ / NDX Gaps detector
A gap is an area on a chart where the price between two bars changes significantly without any trades happening between them. Such gaps often occur when a strong shift in sentiment happens during the hours when markets are usually closed. This indicator highlights these gaps on the chart and extends them further until they have been covered (i.e., when a newer bar has crossed that gap).
Overnight gaps from QQQ or NDX can be mapped directly onto NQ chart
VWAPs
VWAPs of these linked instruments can be mapped onto the chart. For example, NQ VWAP mapped onto QQQ chart, or vise versa. This allows for clear visualization of the price action near these VWAP levels.
Custom Cross Instruments Price Targets
Want to trade QQQ options while watching NQ chart or vise versa? You can set upto 8 price targets and see the corresponding converted price level. No need to switch between charts to try to figure out which price level corresponds to which.
SPY SPX ES Price Converter+ [Pt]This is a + version of my original SPY SPX ES Price Converter indicator
Description
The SPY SPX ES Price Converter is a powerful and easy-to-use tool that allows traders to view corresponding price levels for linked instruments in real-time. This includes SPY, SPX, ES, and SPX500USD. Although these instruments often move in sync, differences in price movements, volume, and trading hours can create unique key levels and support/resistance areas for each. By mapping these levels on the same chart, traders can more easily spot trading opportunities and improve their chances of success.
Customizable features
- multiplier from the closest whole number price level
- line color
- line style
- label position / size
- # of levels to display
- toggle current price display table
|| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------||
This script includes the following premium unique features.
SPY / SPX Gaps detector
A gap is an area on a chart where the price between two bars changes significantly without any trades happening between them. Such gaps often occur when a strong shift in sentiment happens during the hours when markets are usually closed. This indicator highlights these gaps on the chart and extends them further until they have been covered (i.e., when a newer bar has crossed that gap).
Overnight gaps from SPY or SPX can be mapped directly onto ES chart
VWAPs
VWAPs of these linked instruments can be mapped onto the chart. For example, ES VWAP mapped onto SPY chart, or vise versa. This allows for clear visualization of the price action near these VWAP levels.
Custom Cross Instruments Price Targets
Want to trade SPY options while watching ES chart or vise versa? You can setup to 8 price targets and see the corresponding converted price level. No need to switch between charts to try to figure out which price level corresponds to which.
VWAP+15EMA with RSIVWAP+EMA+RSI Strategy for the group MelléCasH
This strategy will enter a long position when the closing price is above both the VWAP and the 15 EMA, and the RSI is above the specified overbought level. It will exit the position when the price falls by the specified stop loss percentage, rises by the specified take profit percentage, or when the trailing stop loss (which trails the highest price achieved after the position was entered by the specified percentage) is hit. The VWAP, EMA, and RSI indicators are also plotted on the chart for reference.
Moonhub IndexMoonhub Index combines several popular technical indicators to create an aggregated index that aims to give a clearer overall picture of the market. The index takes into account the current market condition (trending, ranging, or volatile) to adjust its calculations accordingly.
The indicators used in this composite index are:
Hull Moving Average (HMA)
Fisher Transform (FT)
Williams Alligator
Moving Average Convergence Divergence (MACD)
Average True Range (ATR)
On-Balance Volume (OBV)
Money Flow Index (MFI)
Accumulation/Distribution (AD)
Pivot Points
True Strength Index (TSI)
Volume-Weighted Average Price (VWAP)
The script calculates the values of each indicator and then normalizes and weighs them according to predefined weights. The composite index is formed by summing the weighted values of each indicator. The final Moon Index is plotted on the chart, along with several other related lines like the exponential moving averages (EMA) and simple moving averages (SMA) of the index.
This custom index can be used by traders to get a more comprehensive view of the market and make better-informed trading decisions based on the combined insights of multiple indicators.
VWAP Breakout Strategy (Momentum, Vol, VWAP, RSI, TrSL)General Description and Unique Features of this Script
Introducing the VWAP Breakout Trading Algorithm for TradingView – the timeless strategy designed to identify the highest probability entries and trades for all financial securities and timeframes.
Unlike other strategies, the VWAP Breakout Strategy considers the buying/selling pressure in the market and supply/demand balance to generate real-time trading signals. The Relative Strength Index (RSI) is used as a technical measure to capture typical breakouts from consolidation periods and pullback entries.
With flexible backtesting options, traders can improve parameter settings depending on their time horizon and the type of financial securities being used. Plus, this pro-version of the VWAP Breakout Strategy offers stop-loss, take-profit, and trailing stop-loss exit strategies for better risk management.
The VWAP Breakout Strategy combines a number of technical indicators, the Moving Average (MA), the Volume Weighted Average Price (VWAP) and the RSI-qualifier to identify potential trend reversals and entry/exit points in the market. The VWAP Breakout Strategy can be used in conjunction with other technical indicators and fundamental analysis to make more informed trading decisions.
To further optimize trading results, this strategy generates trading signals based on real-time price action, rather than relying on the close / open of candles.
The VWAP Breakout Strategy
One important qualifier for generating buy signals is that the stock or other financial security is not in a short-term overbought status (for long-positions), or in a short-term oversold status (for short-positions), respectively.
Additionally, the stock or other financial security needs to go through a consolidation period before buy signals are being generated.
The RSI-indicator is being used as a technical measure in this strategy for that.
• Using moderate parameters for the RSI-qualifier (oversold-level 40 or higher, overbought level 60 or lower) will capture more typical breakouts from consolidation periods.
• Using more extreme parameters for the RSI-qualifier (oversold-level 35 or lower, overbought level 65 or higher) will capture the so-called pullback entries.
Long Entries
When the selling pressure is over and the continuation of the uptrend can be confirmed by the MA / VWAP crossover after reaching a price low, a buy signal is issued by this strategy.
Short Entries
When the byuing pressure is over and the continuation of the downtrend can be confirmed by the MA / VWAP crossover after reaching a price high, a sell signal is issued by this strategy.
Timeless Strategy
The underlying principles of this strategy are based on the buying- / selling pressure in the market as well as the supply and demand balance. The buying / selling volumes are being considered for the generation of trading signals. These sophisticated market principles make this strategy timeless which means it can be applied to 1min-charts, weekly charts as well as anything between those.
Generation of Trading Signals
Real-time process are considered for this pro-version of the VWAP Breakout Strategy. This is another benefit versus many other strategies which only consider the close or open of the canldes for trading signals:
Exit Strategies
This pro-version offers the following exit strategies:
• Stop-Loss
• Take-Profit
• Trailing Stop-Loss
The trailing SL functionality provides another benefit versus most other trading strategies resulting in significantly backtesting- and real-time trading results.
Trades will also be closed when an opposite trading signal is being generated (only applicable for combined long/short strategies).
Flexible Backtesting Option
The strategy offers fully flexible backtesting options to improve the parameter setting strategy, depending on time horizon and type of financial securities being used.
Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a technical indicator developed by Welles Wilder in 1978. The RSI is used to perform a market value analysis and identify the strength of a trend as well as overbought and oversold conditions. The indicator is calculated on a scale from 0 to 100 and shows how much an asset has risen or fallen relative to its own price in recent periods.
The RSI is calculated as the ratio of average profits to average losses over a certain period of time. A high value of the RSI indicates an overbought situation, while a low value indicates an oversold situation. Typically, a value > 70 is considered an overbought threshold and a value < 30 is considered an oversold threshold. A value above 70 signals that a single value may be overvalued and a decrease in price is likely , while a value below 30 signals that a single value may be undervalued and an increase in price is likely.
For example, let's say you're watching a stock XYZ. After a prolonged falling movement, the RSI value of this stock has fallen to 26. This means that the stock is oversold and that it is time for a potential recovery. Therefore, a trader might decide to buy this stock in the hope that it will rise again soon.
The MA / VWAP Crossover Trading Strategy
This strategy combines two popular technical indicators: the Moving Average (MA) and the Volume Weighted Average Price (VWAP). The MA VWAP crossover strategy is used to identify potential trend reversals and entry/exit points in the market.
The VWAP is calculated by taking the average price of an asset for a given period, weighted by the volume traded at each price level. The MA, on the other hand, is calculated by taking the average price of an asset over a specified number of periods. When the MA crosses above the VWAP, it suggests that buying pressure is increasing, and it may be a good time to enter a long position. When the MA crosses below the VWAP, it suggests that selling pressure is increasing, and it may be a good time to exit a long position or enter a short position.
Traders typically use the MA VWAP crossover strategy in conjunction with other technical indicators and fundamental analysis to make more informed trading decisions. As with any trading strategy, it is important to carefully consider the risks and potential rewards before making any trades.
This strategy is applicable to all timeframes and the relevant parameters for the underlying indicators (RSI and MA/VWAP) can be adjusted and optimized as needed.
Backtesting Results
Backtesting gives outstanding results on all timeframes and drawdowns can be reduced to a minimum level. In this example, the hourly chart for MCFT has been used.
Settings for backtesting are:
- Period from April 2020 until April 2021 (1 yr)
- Starting capital 100k USD
- Position size = 25% of equity
- 0.01% commission = USD 2.50.- per Trade
- Slippage = 2 ticks
Other comments
• This strategy has been designed to identify the most promising, highest probability entries and trades for each stock or other financial security.
• The RSI qualifier is highly selective and filters out the most promising swing-trading entries. As a result, you will normally only find a low number of trades for each stock or other financial security per year in case you apply this strategy for the daily charts. Shorter timeframes will result in a higher number of trades / year.
• As a result, traders need to apply this strategy for a full watchlist rather than just one financial security.
Percent of U.S. Stocks Above VWAPThis indicator plots a line reflecting the percentage of all U.S. stocks above or below their VWAP for the given candle. Horizontal lines have been placed at 40% (oversold), 50% (mid-line), and 60% (overbought). I recommend using this indicator as a market breadth indicator when trading individual stocks. In my experience, this indicator is best utilized while trading the major indices (SPX, SPY, QQQ, IWM) or their futures (ES, NQ, RTY) in the following manner:
- When the line crosses 50%, a green or red triangle is plotted indicating the majority of market momentum has turned bullish or bearish based on price positioning vs. VWAP. Look for longs when the line is rising (green) or above 50%, or shorts when the line is falling (red) or below 50%.
- When the line is below 40%, indicator shows red shading; I would not be long anything during this period. When the line exits this level, I begin looking for long entries. This line is adjustable in the indicator settings if you prefer to use a tighter or looser oversold level.
- When the line is above 60%, indicator shows green shading; I would not be short anything during this period. When the line exits this level, I begin looking for short entries. This line is adjustable in the indicator settings if you prefer to use a tighter or looser overbought level.
This indicator uses the TradingView ticker “PCTABOVEVWAP.US”, thus it only updates during NY market hours. If trading futures, I recommend applying VWAP to your chart and using that as the level to trade against in a similar manner, along with your personal price action analysis and other indicators you find useful.
[Hoss] VWAP ADThe VWAP ( Volume Weighted Average Price ) Deviation script is a powerful tool designed for traders to analyze the relationship between price and volume . By calculating deviations around the VWAP , the script allows users to identify key support and resistance levels that can help in making better-informed trading decisions.
The script calculates VWAP based on the chosen data source (default is closing price) and then computes deviations above and below the VWAP using either the Average Deviation or the Standard Deviation method. The user can select the desired method through the script's input options. These deviations are then plotted as bands on the chart, providing a visual representation of the areas where the price may potentially revert or experience a breakout.
A unique and valuable feature of this script is the addition of a monitor that counts the number of times the price crosses above the Upper Deviation level 2 and below the Lower Deviation level 2 within a user-defined lookback period. This monitor is displayed as a table in the bottom right corner of the chart and can be enabled or disabled through an input option.
The cross count monitor serves as a valuable aid to traders by providing insights into the historical frequency of price crossing the deviation levels. This information can be used to identify potential trading opportunities based on historical price behavior around these levels.
VWAP2D+Displays the current and previous days' VWAP. A useful tool for intraday VWAP traders or to optimize longer term entries or exits.
Features:
Shows levels exceeding the average deviation for the time of day as either warm or cool gradients.
Custom alerts including "Closing In Range" which uses the ATR to determine if the closing value in in the vicinity of the current day's VWAP.
JS-TechTrading: VWAP Momentum_Pullback StrategyGeneral Description and Unique Features of this Script
Introducing the VWAP Momentum-Pullback Strategy (long-only) that offers several unique features:
1. Our script/strategy utilizes Mark Minervini's Trend-Template as a qualifier for identifying stocks and other financial securities in confirmed uptrends.
NOTE: In this basic version of the script, the Trend-Template has to be used as a separate indicator on TradingView (Public Trend-Template indicators are available on TradingView – community scripts). It is recommended to only execute buy signals in case the stock or financial security is in a stage 2 uptrend, which means that the criteria of the trend-template are fulfilled.
2. Our strategy is based on the supply/demand balance in the market, making it timeless and effective across all timeframes. Whether you are day trading using 1- or 5-min charts or swing-trading using daily charts, this strategy can be applied and works very well.
3. We have also integrated technical indicators such as the RSI and the MA / VWAP crossover into this strategy to identify low-risk pullback entries in the context of confirmed uptrends. By doing so, the risk profile of this strategy and drawdowns are being reduced to an absolute minimum.
Minervini’s Trend-Template and the ‘Stage-Analysis’ of the Markets
This strategy is a so-called 'long-only' strategy. This means that we only take long positions, short positions are not considered.
The best market environment for such strategies are periods of stable upward trends in the so-called stage 2 - uptrend.
In stable upward trends, we increase our market exposure and risk.
In sideways markets and downward trends or bear markets, we reduce our exposure very quickly or go 100% to cash and wait for the markets to recover and improve. This allows us to avoid major losses and drawdowns.
This simple rule gives us a significant advantage over most undisciplined traders and amateurs!
'The Trend is your Friend'. This is a very old but true quote.
What's behind it???
• 98% of stocks made their biggest gains in a Phase 2 upward trend.
• If a stock is in a stable uptrend, this is evidence that larger institutions are buying the stock sustainably.
• By focusing on stocks that are in a stable uptrend, the chances of profit are significantly increased.
• In a stable uptrend, investors know exactly what to expect from further price developments. This makes it possible to locate low-risk entry points.
The goal is not to buy at the lowest price – the goal is to buy at the right price!
Each stock goes through the same maturity cycle – it starts at stage 1 and ends at stage 4
Stage 1 – Neglect Phase – Consolidation
Stage 2 – Progressive Phase – Accumulation
Stage 3 – Topping Phase – Distribution
Stage 4 – Downtrend – Capitulation
This strategy focuses on identifying stocks in confirmed stage 2 uptrends. This in itself gives us an advantage over long-term investors and less professional traders.
By focusing on stocks in a stage 2 uptrend, we avoid losses in downtrends (stage 4) or less profitable consolidation phases (stages 1 and 3). We are fully invested and put our money to work for us, and we are fully invested when stocks are in their stage 2 uptrends.
But how can we use technical chart analysis to find stocks that are in a stable stage 2 uptrend?
Mark Minervini has developed the so-called 'trend template' for this purpose. This is an essential part of our JS-TechTrading pullback strategy. For our watchlists, only those individual values that meet the tough requirements of Minervini's trend template are eligible.
The Trend Template
• 200d MA increasing over a period of at least 1 month, better 4-5 months or longer
• 150d MA above 200d MA
• 50d MA above 150d MA and 200d MA
• Course above 50d MA, 150d MA and 200d MA
• Ideally, the 50d MA is increasing over at least 1 month
• Price at least 25% above the 52w low
• Price within 25% of 52w high
• High relative strength according to IBD.
NOTE: In this basic version of the script, the Trend-Template has to be used as a separate indicator on TradingView (Public Trend-Template indicators are available in TradingView – community scripts). It is recommended to only execute buy signals in case the stock or financial security is in a stage 2 uptrend, which means that the criteria of the trend-template are fulfilled.
This strategy can be applied to all timeframes from 5 min to daily.
The VWAP Momentum-Pullback Strateg y
For the JS-TechTrading VWAP Momentum-Pullback Strategy, only stocks and other financial instruments that meet the selected criteria of Mark Minervini's trend template are recommended for algorithmic trading with this startegy.
A further prerequisite for generating a buy signals is that the individual value is in a short-term oversold state (RSI).
When the selling pressure is over and the continuation of the uptrend can be confirmed by the MA / VWAP crossover after reaching a price low, a buy signal is issued by this strategy.
Stop-loss limits and profit targets can be set variably.
Relative Strength Index (RSI)
The Relative Strength Index (RSI) is a technical indicator developed by Welles Wilder in 1978. The RSI is used to perform a market value analysis and identify the strength of a trend as well as overbought and oversold conditions. The indicator is calculated on a scale from 0 to 100 and shows how much an asset has risen or fallen relative to its own price in recent periods.
The RSI is calculated as the ratio of average profits to average losses over a certain period of time. A high value of the RSI indicates an overbought situation, while a low value indicates an oversold situation. Typically, a value > 70 is considered an overbought threshold and a value < 30 is considered an oversold threshold. A value above 70 signals that a single value may be overvalued and a decrease in price is likely , while a value below 30 signals that a single value may be undervalued and an increase in price is likely.
For example, let's say you're watching a stock XYZ. After a prolonged falling movement, the RSI value of this stock has fallen to 26. This means that the stock is oversold and that it is time for a potential recovery. Therefore, a trader might decide to buy this stock in the hope that it will rise again soon.
The MA / VWAP Crossover Trading Strategy
This strategy combines two popular technical indicators: the Moving Average (MA) and the Volume Weighted Average Price (VWAP). The MA VWAP crossover strategy is used to identify potential trend reversals and entry/exit points in the market.
The VWAP is calculated by taking the average price of an asset for a given period, weighted by the volume traded at each price level. The MA, on the other hand, is calculated by taking the average price of an asset over a specified number of periods. When the MA crosses above the VWAP, it suggests that buying pressure is increasing, and it may be a good time to enter a long position. When the MA crosses below the VWAP, it suggests that selling pressure is increasing, and it may be a good time to exit a long position or enter a short position.
Traders typically use the MA VWAP crossover strategy in conjunction with other technical indicators and fundamental analysis to make more informed trading decisions. As with any trading strategy, it is important to carefully consider the risks and potential rewards before making any trades.
This strategy is applicable to all timeframes and the relevant parameters for the underlying indicators (RSI and MA/VWAP) can be adjusted and optimized as needed.
Backtesting
Backtesting gives outstanding results on all timeframes and drawdowns can be reduced to a minimum level. In this example, the hourly chart for MCFT has been used.
Settings for backtesting are:
- Period from April 2020 until April 2021 (1 yr)
- Starting capital 100k USD
- Position size = 25% of equity
- 0.01% commission = USD 2.50.- per Trade
- Slippage = 2 ticks
Other comments
• This strategy has been designed to identify the most promising, highest probability entries and trades for each stock or other financial security.
• The RSI qualifier is highly selective and filters out the most promising swing-trading entries. As a result, you will normally only find a low number of trades for each stock or other financial security per year in case you apply this strategy for the daily charts. Shorter timeframes will result in a higher number of trades / year.
• As a result, traders need to apply this strategy for a full watchlist rather than just one financial security.
Auto anchored VWAP Highest/Lowest Last 'n' bars The VWAP (Volume Weighted Average Price) indicator is used to calculate the average price weighted by volume. This indicator is designed to automatically draw VWAPs from the highest and lowest points of the last 'n' bars.
It utilizes arrays to calculate the values of VWAP and plot it on the chart on the last historical bar. This version was coded to get a similar version to the official "VWAP Auto anchored" with the highest/lowest selected settings.
To use VWAP, traders can look for price movements relative to the VWAP line to identify potential support or resistance levels. It can also be used in conjunction with other technical indicators to develop trading strategies.
Vwap Stop lossThe VWAP Stop Loss indicator is a technical analysis tool that helps traders determine where to set their stop loss levels based on the Volume-Weighted Average Price ( VWAP ).
This indicator calculates the VWAP based on a specified length and multiplies it by a factor, which helps determine the distance for the stop loss levels.
When using this indicator, the red line represents the short stop loss level and the teal line represents the long stop loss level.
The lines will adjust automatically with the changing price action to ensure they always remain at the appropriate distance from the VWAP .
This indicator can be used on any time frame and for any market, making it a versatile tool for traders.
It can help you manage your risk by providing an objective method for setting stop loss levels, which can help increase the chances of successful trades.
Additionally, this indicator can also be used in combination with other technical indicators to help make more informed trading decisions.
VWAP filtered MACD Bars with positive MACD histogram value and closing above VWAP are colored, long positions should be taken in areas made of those bars.
Similarly, bars with negative MACD histogram value and closing below VWAP are also colored, short positions should be taken there.
This indicator by default should be a part of your trend following trading system.
In the setting you can change colors
Above grow: positive and rising MACD histogram value
Above fall: positive and falling MACD histogram value
Below fall: negative and falling MACD histogram value
Below grow: negative and rising MACD histogram value
LevelUp^ 5-Day Moving AverageIn collaboration with Brian Shannon, author of two best-selling books on technical analysis, we've put together an indicator that manages the moving average period based on the chart timeframe.
When using AVWAP as described by Brian, we look for stocks where the trend of the 50-SMA is higher. In that scenario, we look to shorter timeframes (intraday charts) to see if the price action is setting up for a low risk trade. We do this by making sure the shorter timeframe(s) align with the longer. As we look at various timeframes, we need to make sure the moving average is consistent across the timeframes, which is done via the 5-day moving average as outlined below.
The 5-Day Moving Average (5-DMA)
Brian explains it best, from his article 5 Day Moving Average posted on his blog:
"If you want to see a five DAY moving average on a chart with 10 minute candles, you have to consider how many 10 minute periods of trading there are in the trading day. The US equities markets are open from 9:30- 4:00 each day, which is 6.5 hours per trading day. In each hour of trading, there are 6-10 minute periods, so during the regular session for equities, the market is open for 390 minutes or 39-10 minute periods per day. If we are to get a five day moving average, we would take the 39-10 minute periods the market is open each day and then multiply that by five days. 39 x 5 = 195. So a 5 DAY moving average is represented by a 195 PERIOD moving average when looking at a 10 minute timeframe."
Here are the supported timeframes and their 5-DMA equivalents:
1-minute 1950
2-minutes 975
3-minutes 650
5-minutes 390
6-minutes 325
10-minutes 195
13-minutes 150
15-minutes 130
26-minutes 75
30-minutes 65
39-minutes 50
65-minutes 30
78-minutes 25
130-minutes 15
195-minutes 10
More Information About Anchored VWAP (AVWAP)
Brian goes into great detail about multiple timeframe analysis and AVWAP in both of his books:
▪ Maximum Trading Gains With Anchored VWAP
▪ Technical Analysis Using Multiple Timeframes
Acknowledgements
Many thanks to Brian Shannon for sharing his expertise on Anchored VWAP and providing feedback and suggestions during the development of the indicator.
Volume Weighted Average Price (VWAP) with Extras [starlord_xrp]This script builds on the standard VWAP buy adding anchor selections for new High, new Low, and for extreme price moves (Percent Change) that can be significate anchor points for the VWAP. The Percent Change is based on "% Price Change" by OrganicPunch and uses a percentage threshold that can be set in the settings.
Two Days Auto Anchored VWAPEasier way to set anchors to today and last trading day's open.
All you need to do is to select today from the dates picker in Setting ➔ Inputs ➔ Anchor Today .
If last workday is holiday for the market, then overwrite by selecting Manually Set Prev Day
Next update: auto set today's anchor, so completely automatic
VWAP 3x Session Reset- This VWAP aims to be used with futures and forex.
- The VWAP is reset at the beginning of each session.
- 3 different sessions can be specified.
- The lines are not drawn when there is no active session.
- The upper and lower bands with standard deviation 2 are also drawn.
Info: The time zone of the picture is Europe/Berlin
VWAP Boulevard [vnhilton](OVERVIEW)
The idea of this indicator comes from traders identifying supply to mainly look for shorts. Scenarios would be gap ups or pump & dumps where huge volume is transacted, & bag-holders are present. Some traders would draw resistance lines, I myself used to draw supply zones using the volume profile on that day, & others used the day VWAP on those days. VWAP Boulevard (I believe the name comes from the trader named team3dstocks) draws day VWAP lines from the highest volume days for a given period (excluding the current day).
(FEATURES)
- Draws horizontal & vertical lines from up to 250 highest volume days out of up to 3568 days, with the ability to hide either of these lines, their thicknesses, styles
- Extend/cut horizontal lines, or extend them all the way to the right
- Show the day VWAP, volume & age for these days in labels, with the ability to show what information you want to see only
- Separate customizable color forms for the lines & labels - ordinary (1 color); volume (2 color gradient from lowest to highest volume of the highest volume days); age (2 color gradient from youngest to oldest volume of the highest volume days)
- Edit offset & size of labels, & hide them
- Hide vertical lines
From left to right: Age color; ordinary color; volume color
250 highest volume days in the past year. Very messy so it's very likely you won't be using this but the ability to draw lines from 250 highest volume days is there if needed
(DRAWDOWNS)
- This indicator will only on the daily timeframe (error message will show up if unaware of this, & can be toggled off). Unfortunately, this would mean you would have to draw the lines manually yourself if you wish to use them on intraday timeframes.
- You may also encounter the 'Pine cannot determine the referencing length of a series. Try using max_bars_back' error. This occurs when the lookback period is very high & the indicator attempts to recalculate I believe. If this happens then reload the indicator.
The logic I used to obtain the highest volume days were to put all of the volume days in a given period in 1 array, then to sort them from highest to lowest, & also store their sorted indices in an separate array as well, so that drawings for each volume day could be done from the 2 arrays.
//Volume for last N periods
var int pastVol = array.new_int(lookbackPeriodFixed)
for i = 0 to lookbackPeriodFixed - 1
array.set(pastVol, i, int(volume ))
sortedIndices = array.sort_indices(pastVol, order.descending) //All Indices of sorted volume from highest to lowest
sortedIndices2 = array.slice(sortedIndices, 0, highestVolDays) //Indices of sorted volume from highest to lowest
array.sort(pastVol, order.descending) //All Volume sorted from highest to lowest
pastVol2 = array.slice(pastVol, 0, highestVolDays) //Volume sorted from highest to lowest
//Drawings
for i = 0 to highestVolDays - 1
index := array.get(sortedIndices, i)
vol := array.get(pastVol, i)
Since these array sizes were determined from the lookback period, it would mean that the request.security() function used to obtain daily values on intraday timeframes wouldn't work for a lookback period >20 (20 * 2 values I believe, which are the day VWAP & the day volume) as TradingView has put a maximum amount of calls of 40 in 1 script. Therefore, for intraday plots to work I would have to change the logic for getting the day VWAP & day volume for the highest days, as the request.security() function doesn't work on for loops, & this would also mean that the user would only be able to draw lines from up to 20 highest volume days instead of 250. I couldn't go forward with this as I wasn't able to find the logic to pick the highest volume days & their day VWAPs & times (indexes) without using a for loop. If anyone has any solutions (including for the 'Pine cannot determine the referencing length of a series. Try using max_bars_back' error) then please let me know. I've also left commented-out code for dealing with intraday drawings for future use.
Power Indicator - EMAs + VWAP + Volume BarThe Power Indicator is intended to return some exponential moving average, vwap, volume bar, and others. With this compilation, you will be able to use them as one indicator in Trading View.
The components are:
- EMA9 - Exponential Moving Average of 9 days
- EMA21 - Exponential Moving Average of 21 days
- EMA50 - Exponential Moving Average of 50 days
- EMA200 - Exponential Moving Average of 200 days
- Volume Bar - This indicator provides the volume of the candle and its strength by showing different colors. It's a way to check expressive volume in one bar.
- Vwap line
- Indicator
If you have any questions, let me know!
Custom_AVWAP_Harpal's-AnchorsAutomated VWAP Indicator written in PineScript for TradingView charts. Automatically Anchored at key swing H/L levels extracted from price and volume time-series.
Indicator takes one Argument, "LookBack (# of Periods)", and then for a given security finds three key anchors, the highest and lowest values in the 'hlc3' column (average of high low and close on the daily timeframe) in the last 'LookBack' # of days. The script displays up to three color coded time-series corresponding to a trailing Volume Weighted Average Price beginning at the anchor dates corresponding to the anchor points listed above.
VWAP Previous VWAP WMQY StdDev Extensions Nadro StyleDisplays Multi-TF VWAP with Std Dev Bands.
Developing VWAP and Std Dev Bands
Previous VWAP and Std Dev Bands
Previous VWAP Extensions
Some Examples