Range Filter Buy and Sell 5min - guikroth versionRange Filter Buy and Sell 5min - the @guikroth version, republished.
Since this popular version of the Range Filter is no longer available via the original author, I republish it here under the same name.
This version remains true to the guikroth version from the calculations to the default settings and comments in the code, with the exception of an update to the latest version of PineScript, minor styling adjustments and the addition of an all-in-one 'buy or sell' alert option.
The guikroth version was a simplified modification of the original Range Filter by @DonovanWall .
Including having just 3 bar colours based on the filtered price trend, different source input options to the original, and the addition of buy and sell signals and alerts based upon the Range Filter colour change. It consisted of just three inputs; source, sampling period, and range multipler. With the update to version 5, external indicators can also be used as inputs, for example using a VWAP or EMA loaded on your chart as the input on the Range Filter is now also possible.
What is the Range Filter?
As the author of the original Range Filter describes it:
"This is an experimental study designed to filter out minor price action for a clearer view of trends. Inspired by the QQE's volatility filter, this filter applies the process directly to price rather than to a smoothed RSI .
First, a smooth average price range is calculated for the basis of the filter and multiplied by a specified amount.
Next, the filter is calculated by gating price movements that do not exceed the specified range.
Lastly the target ranges are plotted to display the prices that will trigger filter movement.
Custom bar colors are included. The color scheme is based on the filtered price trend."
Popularity of the Range Filter
The Range Filter is a very popular and effective indicator in its own right, with adjustments to the few simple settings it is possible to use the Range Filter for helping filter price movement, whether helping to determine trend direction or ranges, to timing breakout or even reversal entries. Its practical versatility makes it ideal for integrating it's signals into a variety of trading strategies or even other indicators.
With many thanks to the authors of the previous and original versions; @guikroth and @DonovanWall .
Search in scripts for "vwap"
Seasonal tendency: week-on-week % change and 10yr Averages-shows week-on-week % change, and 10yr averages of these % changes
-scan across the 10yr averages to get a good idea of the seasonality of an asset
-best used on commodities with strong seasonal tendencies (Gold, Wheat, Coffee, Lean hogs etc)
-works only on daily timeframe
-by default it will compare SMA(length) in the following way, BTC: Sunday cf previous Sunday | ES/Gold: Monday cf previous Monday
-for most assets, 5 daily bars in a week (SMA(5)) => that's the default. For BTC can change this to 7.
~~inputs:
-change input year to show any previous decade of asset's history; the table will display over that year on the chart
-choose expression for Average of % change week on week: SMA, ohlc4, vwma, vwap (default SMA)
-choose number of daily bars in a week (i.e. SMA length)
-change label sizes/colors
~~notes:
-When applied to current year: will print the 10yr average for previous weeks in the year; 9yr average for future weeks in the year
-drawings and SMA plot on the above chart are just to show visually how the week's average is calculated, and how this lines up with the label
-current week of year will highlight in large font orange by default
-the first 2 weeks of the year are omitted because of a bug i can't figure out, which throws out bad numbers.
-cannot print all the values for each of previous 10yrs; 'code too long' error. Could likely do this via using matrices but would require a rewrite
17th Dec 2022
@twingall
Outlier Detecting Cumulative Moving Average (ODCMA)This is a simple moving average with a rolling length that resets whenever there is an outlier in the data. I have also included volume weighting.
The length represents the lookback period for the outlier detection and the "Outlier Detection" is the deviation level to trigger the detection. You can select from: price detection, volume detection, price or volume detection, price and volume detection.
I hope you can find this script useful. Its like a session weighted moving average but instead it retriggers the cumulative sum whenever there is an outlier.
Index OverlayNote: use this indicator only with New York Timezone + you need to understand ICT concepts already, this indicator simplifies the chart work.
Also, in this script I added some open-source scripts from creators here on tradingview, but I forgot to annotate their names...
If you recognize your script, please text me and I'll add your credits.
features
- displays Midnight and Sunday open lines
- day separation (from midnight)
- FVGs
- VWAP (calculated from midnight open)
- daily labels
- TDH & TDL (liquidity)
- trading time window (from 9:30 to 12:00 ny time)
HOW TO USE
Combined with daily bias, the idea is to wait for 9:30 to open, and then wait for a liquidation of TDH (plotted in blue) or TDL (in red).
Once it happens, you can look for ICT buy / sell model, ideally in the 5m TF.
Rolling MACDThis indicator displays a Rolling Moving Average Convergence Divergence . Contrary to MACD indicators which use a fix time segment, RMACD calculates using a moving window defined by a time period (not a simple number of bars), so it shows better results.
This indicator is inspired by and use the Close & Inventory Bar Retracement Price Line to create an MACD in different timeframes.
█ CONCEPTS
If you are not already familiar with MACD, so look at Help Center will get you started www.tradingview.com
The typical MACD, short for moving average convergence/divergence, is a trading indicator used in technical analysis of stock prices, created by Gerald Appel in the late 1970s. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price.
The MACD indicator(or "oscillator") is a collection of three time series calculated from historical price data, most often the closing price. These three series are: the MACD series proper, the "signal" or "average" series, and the "divergence" series which is the difference between the two. The MACD series is the difference between a "fast" (short period) exponential moving average (EMA), and a "slow" (longer period) EMA of the price series. The average series is an EMA of the MACD series itself.
Because RMACD uses a moving window, it does not exhibit the jumpiness of MACD plots. You can see the more jagged MACD on the chart above. I think both can be useful to traders; up to you to decide which flavor works for you.
█ HOW TO USE IT
Load the indicator on an active chart (see the Help Center if you don't know how).
Time period
By default, the script uses an auto-stepping mechanism to adjust the time period of its moving window to the chart's timeframe. The following table shows chart timeframes and the corresponding time period used by the script. When the chart's timeframe is less than or equal to the timeframe in the first column, the second column's time period is used to calculate RMACD:
Chart Time
timeframe period
1min 🠆 1H
5min 🠆 4H
1H 🠆 1D
4H 🠆 3D
12H 🠆 1W
1D 🠆 1M
1W 🠆 3M
You can use the script's inputs to specify a fixed time period, which you can express in any combination of days, hours and minutes.
By default, the time period currently used is displayed in the lower-right corner of the chart. The script's inputs allow you to hide the display or change its size and location.
Minimum Window Size
This input field determines the minimum number of values to keep in the moving window, even if these values are outside the prescribed time period. This mitigates situations where a large time gap between two bars would cause the time window to be empty, which can occur in non-24x7 markets where large time gaps may separate contiguous chart bars, namely across holidays or trading sessions. For example, if you were using a 1D time period and there is a two-day gap between two bars, then no chart bars would fit in the moving window after the gap. The default value is 10 bars.
//
This indicator should make trading easier and improve analysis. Nothing is worse than indicators that give confusingly different signals.
I hope you enjoy my new ideas
best regards
Chervolino
QQE Student's T-Distribution Bollinger Bands Oscillator Credit to all of the developers on this project (aka all of the places I got the code from lol) @eylwithsteph @storma @Fractured @lejmer @AlexGrover @Montyjus @Jiehonglim @StephXAGs @peacefulLizard50262 @gorx1 @above-c-level
This script utilizes @above-c-level 's Student's T-Distribution script to give us a great estimation of volatility. I took this idea and apply it to the QQE filter! That being said I have added a boat load of features as to make this script as useful to as many people as possible. This is the Osc version
Included averages: 'TMA', 'ALMA', 'EMA', 'DEMA', 'TEMA', 'WMA', 'VWMA', 'SMA', 'SMMA', 'HMA', 'LSMA', 'JMA', 'VAMA', 'FRAMA', 'ZLEMA', 'KAMA', 'IDWMA', 'FLMSA', 'PEMA', 'HCF', 'TIF', 'MF', 'ARMA', 'DAF', 'WRMA', 'RMA', 'RAF', 'A2RMA', 'QQE 1', 'QQE 2','Centroid',"Harmonic Mean","Geometric Mean","Quadratic Mean","Median","Trimean","Midhinge","Midrange","VWAP"
Included Features: Smoothing, Additional Moving Average, Log Space, Mean Momentum via Derivative, Normalization, Convergence DIvergence, Candle View
Use this just like macd/rsi but instead this directly reflects the band version! It also shows really valid support and resistance. Use this in combination with the band version for more power.
QQE Student's T-Distribution Bollinger BandsCredit to all of the developers on this project (aka all of the places I got the code from lol) @eylwithsteph @storma @Fractured @lejmer @AlexGrover @Montyjus @Jiehonglim @StephXAGs @peacefulLizard50262 @gorx1 @above-c-level
This script utilizes @above-c-level 's Student's T-Distribution script to give us a great estimation of volatility. I took this idea and apply it to the QQE filter! That being said I have added a boat load of features as to make this script as useful to as many people as possible.
Included averages: 'TMA', 'ALMA', 'EMA', 'DEMA', 'TEMA', 'WMA', 'VWMA', 'SMA', 'SMMA', 'HMA', 'LSMA', 'JMA', 'VAMA', 'FRAMA', 'ZLEMA', 'KAMA', 'IDWMA', 'FLMSA', 'PEMA', 'HCF', 'TIF', 'MF', 'ARMA', 'DAF', 'WRMA', 'RMA', 'RAF', 'A2RMA', 'QQE 1', 'QQE 2','Centroid',"Harmonic Mean","Geometric Mean","Quadratic Mean","Median","Trimean","Midhinge","Midrange","VWAP"
Included Features: Smoothing, Additional Moving Average, Log Space, Mean Momentum via Derivative
Use this just like BB but instead (as long as you are on qqe) you get real prices that are stable! It also shows really valid support and resistance. Use this in combination with the osc version for more power.
Attrition Scalper v2.0Green/Red Arrowed Buy/Sell signals are just simple buy sell signals based on SuperTrend, VWAP, Bollinger, Linear Regression
Purple Arrowed Buy/Sell Signals happen when the price/candle cross over or under the yellow outer lines (4.236 fib lines) It's extremely rare and hard for price to stay above these lines therefore we can usually and comfortably buy/sell it, a key information here though when price pumps or dumps super fast and hard to the point of crossing these borders, the trend might also be extremely strong and continous so even if the price temporarily goes back inside the borders as the lines expand over time price can continue riding or crossing these lines back again and continue the uptrend/downtrend, therefore crossing these outer borders doesn't necessarilly and always mean a reversal is due.
When analyzing the instrument you're trading the important factors for support/resistance areas are usually the outer lines like i said previously it's super hard for price to be outside these and will almost always get back inside quickly. The Middle thicker green/red line which is Variable Index Dynamic Average should also be a nice pivot line for major support and resistance . All the other lines are also important dynamic support/resistance lines.
Their Importance Order
1- Outer Yellow Line (4.236 Fibs)
2- Thicker Middle Green/Red Line (VIDYA)
3- Thinner Upper/Lower Green/Red Line (VIDYA +3, VIDYA -3)
4- The Rest Of The Lines (Fib Lines)
You can use this indicator in any market condition in any market to determine key support/resistance levels, use it for mean reversion through price expanding to outside of the most outer line therefore being overbought/oversold basically using the purple buy/sell signals or only follow the normal buy/sell signals or use it in confluence with each other. You can also use this indicator in confluence with your own manual technical analysis or other indicators/strategies you are already using and are comfortable with.
A good part is the support/resistance lines from timeframe to timeframe pictures the whole situation quite well, you can use lower timeframe to find your entry/exit positions and higher timeframe to find your key support/resistance points, they all should be somewhat in confluence from timeframe to timeframe anyways. My recommendation would be to look at 1HR, 4HR and 1D charts for swing trading and 5-15 Min for quick scalping/day trading
You should still probably at least take a look to higher timeframes so that you don't get burned when you realize there is a huge resistance line at price XXXXX on the 4 hour chart but you're expecting it to go above it on the 5 minute chart, it can go above it temporarily but we analyze everything on a closing basis so it most likely won't close above it. Again don't take a position or FOMO when price breaks a support/resistance line, we're looking for a CLOSE above/below them and a retest to see if S/R flip happened would even be better.
Sometimes the most outer line won't be the 4.236 (Yellow) lines as when it gets quite volatile the Thinner Upper/Lower Green/Red Lines (VIDYA +3, VIDYA-3) might cross them to be the most outer line, in this case i have observed that the trend is extremely strong this time price almost always doesn't go above or below the VIDYA line but can stay outside of the Yellow 4.236 Fib line for an extended amount of time (price will still get back inside the channel relatively quickly, just not as fast as the normal condition)
With Proper Risk Management and Discipline this indicator can be of great use to you as it's surprisingly successful especially at mean reversion and pointing out the support/resistance lines, they are so much more successful than your average MA/EMA lines.
3 Series Cross Indicator with Alerts - by WAMRAThis Indicator allows users to add any 3 combinations of moving averages (SMA, EMA, RMA, RSI, Stochastic RSI, WMA, VWAP ) with granular alert conditions.
Users can alert when all series are in climbing or declining mode.
Visible Range High Low [vnhilton]Inspired by TradingView's "Chart VWAP". Thank you PineCoder for the "VisibleChart" library.
This indicator plots labels for the highest high & lowest low for the visible bars on the chart. TradingView does by default have an indicator similar to this, however it plots labels on the y-axis & cannot be customized.
SupportResitanceAndTrendLibrary "SupportResitanceAndTrend"
Contains utilities for finding key levels of support, resistance and direction of trend.
superTrendPlus(multiple, h, l, atr, closeBars)
A more flexible version of SuperTrend that allows for supplying the series used and sensitivity adjustment by confirming close bars.
Parameters:
multiple : The multiple to apply to the average true range.
h : The high values.
l : The low values.
atr : The average true range values.
closeBars : The number of bars to confirm a change in trend.
Returns:
superTrend(multiple, period, mode, closeBars)
superTrendPlus with simplified parameters.
Parameters:
multiple : The multiple to apply to the average true range.
period : The number of bars to measure.
mode : The type of moving average to use with the true range.
closeBars : The number of bars to confirm a change in trend.
Returns:
superTrendCleaned(multiple, period, mode, closeBars, maxDeviation)
superTrendPlus with default compensation for extreme volatility.
Parameters:
multiple : The multiple to apply to the average true range.
period : The number of bars to measure.
mode : The type of moving average to use with the true range.
closeBars : The number of bars to confirm a change in trend.
maxDeviation : The optional standard deviation level to use when cleaning the series. The default is the value of the provided level.
Returns:
stochSR()
Identifies support and resistance levels by when a stochastic RSI reverses.
Returns:
stochAVWAP()
Identifies anchored VWAP levels by when a stochastic RSI reverses.
Returns:
Trend EMAHello Everyone. This is a new indicator which helps you to follow the trend & find out the support and resistance in Intraday. Time frame is best for this indicator is 5mins. You can also use Vwap which you get in this indicator. This is an Indicator which I'm using to manage my trades.
N.B. I don't insist you to use this. I'm not RESPONSIBLE for your profit and loss after using this indicator.
CosmoSetContains widely use indicators
This contains below indicators
RSI
WMA
SMA
EMA
Colored Vwap
Super Trend
All the above indicators are customizable.
Stock Gaps SPY Correlation StrategyThis is daytrade stock strategy, designed to take the best out of the daily gaps that are forming between the close of previous day and opening of present day.
At the same time its logic has been adapted for SPY chart, in order to use correlation with the other stocks/assets/ etf which are linked with SP500 movement.
Lastly it has been added 2 new confirmation logics, based on the USI: advance/decline chart and percentage above vwap among all US stocks.
The rules for entry are simple :
We are at the opening daily candle, we have a long/short gap based on where the opening is happening and at the same time we are checking to see that the current different between the current difference between low and previous high (or viceversa) is higher than an established parameter(minimal deviation )
For exit, we exit based on time/clock parameter, in this case by default I selected 1h and half before close of the US session.
For testing purposes I have used 10% of the available capital, with a 0.0035$ comission per each share bought ( IBKR comissions)
If there are any questions, please let me know either here or in private !
SPY Volume Weighted CloseHey everyone!
Deciding to make this indicator public and open access.
This is a volume weighted close indicator for SPY. It is a statistics based indicator.
How it works:
It uses volume data mixed with some price action data to prospectively predict where SPY's price will close within a 30 minute interval.
As such, its different from other indicators in the sense that its not reactive, it proactive and actively predicts the price that SPY will see within the next 30 minutes and where SPY will most likely close at.
It has 3 bands. The main centre band (blue, but colour can be changed) is the most likely price that SPY will close at within the next 30 minutes.
The Upper Level Confidence and Lower Level Confidence bands are the expected range that the analysis thinks SPY will remain confined in based on current volume and price action.
How to Use it:
I personally use this in place of VWAP, but the applications are infinite. Take a look at the chart below:
Applications:
This is specifically programmed for SPY but I have used it with other stocks such as QQQ, UPRO and DIA. However, using it with those stocks, the upper and lower confidence bands are not helpful. But YMMV with other stocks. This is specifically designed for SPY.
Let me know your questions and thoughts!
Thanks for reading and checking this out!
Caleb's Supply and Demand ZonesThis script takes predetermined levels and plots them as supply and demand zones. These zones are automatically colored as supply or demand based on price action. Additionally, two EMAs and a VWAP are included to help make intraday trading decisions. This script is written to intuitively deduce between SPY, SPX, ES, US500, QQQ, and NQ to plot the zones in their proper corresponding price levels.
Point of Control V2 The genesis of this project was to create a POC library that would be available to deliver volume profile information via pine to other scripts of indicators and strategies.
This is a republish of an invite only script to open access
This is the indicator version of the library function.
A few points of significance:
- Allows the choice of reset of the study period, day/week or bars. This is simple enough to expand to other conditions
- Bar count resets starting from the beginning of the data set (bar index =0) vs bars back from the end of the data set
- A 'period' in this context is the time between resets - the start of the POC (eg. start of Day or Week) until it resets (for example at the beginning of a next day or week)
- Automates the determination of the increment level rather than the user specifying ticks or price brackets
- Does not allow for setting the # of rows and then calculating the implied price increment levels
- When a period is complete it is often useful to look back at the POCs of historical periods, or extend them forward.
- This script will find the historical POCs around the current price and display them rather than extend all the historical POC lines to the right
- This script also looks across all the period POCs and identifies the master POC or what I call the Grand POC, and also the next 3 runner up POCs
This indicator is also available as a library.
BINANCE:BTCUSDT NSE:NIFTY OANDA:XAUUSD NASDAQ:AAPL TVC:USOIL
Month/Month Percentage % Change, Historical; Seasonal TendencyTable of monthly % changes in Average Price over the last 10 years (or the 10 yrs prior to input year).
Useful for gauging seasonal tendencies of an asset; backtesting monthly volatility and bullish/bearish tendency.
~~User Inputs~~
Choose measure of average: sma(close), sma(ohlc4), vwap(close), vwma(close).
Show last 10yrs, with 10yr average % change, or to just show single year.
Chose input year; with the indicator auto calculating the prior 10 years.
Choose color for labels and size for labels; choose +Ve value color and -Ve value color.
Set 'Daily bars in month': 21 for Forex/Commodities/Indices; 30 for Crypto.
Set precision: decimal places
~~notes~~
-designed for use on Daily timeframe (tradingview is buggy on monthly timeframe calculations, and less precise on weekly timeframe calculations).
-where Current month of year has not occurred yet, will print 9yr average.
-calculates the average change of displayed month compared to the previous month: i.e. Jan22 value represents whole of Jan22 compared to whole of Dec21.
-table displays on the chart over the input year; so for ES, with 2010 selected; shows values from 2001-2010, displaying across 2010-2011 on the chart.
-plots on seperate right hand side scale, so can be shrunk and dragged vertically.
-thanks to @gabx11 for the suggestion which inspired me to write this
.srb suite pin-upThe essential suite Indicator
that are well integrated to ensure visibility of essential items for trading.
it is very cumbersome to put symbol in the Tradingview chart and combine essential individual indicators one by one.
Moreover even with such a combination, the chart is messy and visibility is not good.
This is because each indicator is not designed with the others in mind.
This suite was developed as a composite-solution to that situation, and will make you happy.
--> This is steamlined pin-up version of .srb suite.
--> A minimal set of indicators for comparing different symbols.
--> This is well-balanced alternative next version of previous .b pin-up symbol
BTC-agg. Volume
4 BTC-spot & 4 BTC-PERP volume aggregated.
It might helps you don't miss out on important volume flows.
Weighted to spot trading volume when using PERP+spot volume .
If enabled, BTC-agg.Vol automatically applied when selecting BTC-pair.
--> This is used in calculations involving volumes, such as VWAP .
Moving Average
1 x JMA trend ribbon ; Accurately follow short-term trend changes.
2 x EMA ribbon ; zone , not the line.
MA extension line ; It provide high visibility to recognize the direction of the MA.
SPECIAL TOOLS
BB regular (Dev. 2.0, 2.5)
BB Extented (Dev. 2.5, 3.0, 3.5)
SPECIAL TOOLS - Ultra Volume Marking
x2 x4 greater than regular average volume, it will help you can take the reversal
It does not directly indicate volume, but ultra-volume marking is enough for compare.
---------------------------------------------------------------------------------------------------------------------------------------
if you have any questions freely contact to me by message on tradingview
but please understand that responses may be quite late.
Special thanks to all of contributors of community.
The script may be freely distributed under the MIT license.
EMA Slope/Angle OscillatorEMA Slope/Angle Oscillator, Multiple Moving Average Oscillator, Multiple type
Moving Averages HMA,EMA,WMA,SMA, VWMA,VWAP provided.
The angle is calculated between the Slow MA and Fast MA and the difference between the angle is plotted as Histogram.
Additionally Buy Sell Signals are plotted as green and red Dots.
its very easy to judge the movement of price Bearish/Bullish.
Bearish if price below 0 line
Bullish if price above 0 line
Zero crossing is Moving Average Crossover.
Trend Filter is provided to filter opposite signals.
Angle Threshold is provided to filter low angle false signals.
Dead zone is plotted around Zero Line. Trades can be taken after Threshold angle or Dead zone is crossed
Its interesting to see how different Moving Averages move along with price Action.
Tabajara 5PSetup Tabajara
Based on several Tabajara setups published in TradingView, idealized by André Machado, aka "WallSt Ogro".
Bar colors follow trend and change based on the main direction.
Including indicators:
Simple Moving Averages and Exponential Averages
Bollinger Bands
VWAP
HiLo indicator