Swing FilterSwing Filter allows you to identify market swings and use the settings to filter out the noise.
The concept is the same as Pine Script's built in pivothigh() and pivotlow(), except with a command center full of controls. Do you to only see swings that are a certain amount higher or lower than their neighboring candles? Want to filter out flash-crashes or freak-spikes? Do you want to count swing-highs or lows that are formed by multiple bars? ...how many? ...how strict? Do you only want swings that are already confirmed or do you want swings that are probably about to be confirmed? You get the idea.
Swing Filter was designed to be plugged into other tools. Swings are used to figure Support and Resistance in Technical Analysis (TA), so you'll find that it is swing filter working in the background of my Support & Resistance Indicator. The creator of this indicator would be happy to help you implement Swing Filter into your workflow, and even can unlock rewiring features that allow Trading View Premium customers to use outputs from other indicators as inputs to swing filter (indicator layering).
INDICATOR SETTINGS:
SWING HIGH VISIBILITY - Show the location of all filtered swing-highs, marked with green "H"
Show Unconfirmed Swing Highs - Whereas a confirmed swing high is shown with a green H, unconfirmed swing highs are shown with an orange H. Sometimes you want to see what could become a swing high before the final right-neighboring candle closes and confirms it. As long as the final right-side candle still has a lower high, we can show an unconfirmed swing high. Once the final right-side candle closes with a lower high, then we have a confirmed swing high. When the "# of Lower Bars to Right of Swing High" setting is set to a number greater than 1, keep in mind that unconfirmed candles will only ever appear one candle prior to confirmation.
# of Lower Bars to Left of Swing High - Swing highs are calculated based on being higher than neighboring candles. How many candles do you want to check to the left-side of a swing high?
# of Lower Bars to Right of Swing High - Swing highs are calculated based on being higher than neighboring candles. How many candles do you want to check to the right-side of a swing high?
Must be This % Higher Than Left Bars - Filter out highs that aren't high enough. "0.5" would require your swing highs to be at least half a percent higher than the high of its confirming left-side bars.
Must be This % Higher Than Right Bars - Filter out highs that aren't high enough. "1" would require your swing highs to be at least one percent higher than the high of its confirming right-side bars.
Multibar Highs - # Bars Allowed to Form High - Filter out or allow highs that are formed at a transition from one bar to another. Especially on low spread exchanges like GDAX, highs may be formed by many consecutive bars, formed by persistant impenetrable buy/sell walls. When using multibar highs, they are counted as a single candle: the swing high will be marked on the right-most high of the multi-bar high, and then the left-side bars are counted from the left-most high of the multi-bar high.
Multibar Highs Strict-Mode - Some multibar highs are just the result of chance, meaning that the first candle reached it's high, went back down, then the second candle reached the same high at a later time. Strict mode will filter these out and only show multibar swing highs that were formed when a candle closed at its high and the next candle opened at its same high. How strict? It allows a one penny difference (for negligible spreads). It also doesn't care about the candles' lows, which leaves room for a future super-strict mode.
*For the complete list of settings and instructions see comments below (sorry they're listed in backwards order below, and the publishing rules won't let me put them all here (too long))
Filter
Rocket RSIRocket RSI indicator script.
This indicator was originally developed by John Ehlers (Stocks & Commodities V.36:6, RocketRSI - A Solid Propellant For Your Rocket Science Trading).
Infinite Impulse Response (IIR) FilterInfinite Impulse Response (IIR) Filter indicator script.
This indicator was originally developed by John Ehlers (Stocks & Commodities V. 20:7 (26-31): Zero-Lag Data Smoothers).
Auto-FilterA least squares filter using the Auto line as source, practical for noise removal without higher phase shift.
Its possible to create another parameter for the auto-line length, just add a parameter Period or whatever you want.
r = round(close/round)*round
dev = stdev(close,Period)
Hope you enjoy :)
Auto-LineAn indicator inspired by the Renko chart.Instead of using a static box size we use standard deviation, this make the indicator more reactive to the market state.
If the indicator show no values then you have to round the price to the nearest integer, for that use the round parameter.
Hope you enjoy :)
Gaussian Channel [DW]This study is an experiment utilizing the Ehlers Gaussian Filter technique combined with lag reduction techniques and true range to analyze trend activity.
Gaussian filters, as Ehlers explains it, are simply exponential moving averages applied multiple times.
First, beta and alpha are calculated based on the sampling period and number of poles specified. The maximum number of poles available in this script is 9.
Next, the data being analyzed is given a truncation option for reduced lag, which can be enabled with "Reduced Lag Mode".
Then the alpha and source values are used to calculate the filter and filtered true range of the dataset.
Filtered true range with a specified multiplier is then added to and subtracted from the filter, generating a channel.
Lastly, a one pole filter with a N pole alpha is averaged with the filter to generate a faster filter, which can be enabled with "Fast Response Mode".
Custom bar colors are included.
Note: Both the sampling period and number of poles directly affect how much lag the indicator has, and how smooth the output is.
Larger inputs will result in smoother outputs with increased lag, and smaller inputs will have noisier outputs with reduced lag.
For the best results, I recommend not setting the sampling period any lower than the number of poles + 1. Going lower truncates the equation.
Vertical Horizontal FilterVertical Horizontal Filter indicator script. This indicator was originally developed by Adam White.
Laguerre FilterLaguerre Filter indicator based on the John Ehler's article "Time Warp – Without Space Travel" about the Laguerre Transform
Vertical Horizontal Filter Vertical Horizontal Filter was initiated by Adam White. It was first published
in a magazine called “Issues of Futures” in August, 1991. The Vertical Horizontal
Filter (VHF) is a very common Indicator used by traders to find out the Phase of
a Price Trend. Normally, a price trend can be in a Trending Phase or a Congestion
Phase/Choppy Movement Phase. Adam White created this particular Technical Indicator
to determine whether prices are trending in a particular direction or are they going
through a transitional period. He used it to measure the range of Futures available
in the market.
Laguerre Multi-Filter [DW]This is an experimental study designed to identify underlying price activity using a series of Laguerre Filters.
Two different modes are included within this script:
-Ribbon Mode - A ribbon of 18 Laguerre Filters with separate Gamma values is calculated.
-Band Mode - An average of the 18 filters generates the basis line. Then, Golden Mean ATR over the specified sampling period multiplied by 1 and 2 are added and subtracted to the basis line to generate the bands.
Multi-Timeframe functionality is included. You can choose any timeframe that TradingView supports as the basis resolution for the script.
Custom bar colors are included. Bar colors are based on the direction of any of the 18 filters, or the average filter's direction in Ribbon Mode. In Band Mode, the colors are based solely on the average filter's direction.
Sawada Masu Moving AverageThe Sawada Masu Moving Average is a filtering technique invented by the japan engineer Sawada Masu with the help of the french trader Alex pierrefeu. This filter have 2 input, a lenght input, who modify the sensibility of the filter to market movement, and a alpha input who just smooth the filter.
The recommended inputs are : a length of 90 and a alpha of 50 for short period, a length of 140 or 200 and a alpha of 90 or 140 for medium period, and a length of 300 and a alpha of 90 for long terms.But feel free to experiment others configurations.
This moving average can be really interesting using it in collaboration with others indicators such another moving average
Hope you enjoy and have a good trades !
I apologize for orthographics or grammar error,i'm from japan and my english is really limited
Price Action Volatility FilterThis creates a none oscillating histogram that shows price action without lower time frame volatility to help show bias for use with macd or entries with other trending indicators.
Function Savitzky Golay Filter with 7 Vectors V0EXPERIMENTAL:
updated code for duo, triple and multipass
Trend FilterThe indicator colours the candles either Green or Red depending on the following conditions:-
If the N Bar Average Close > N Bar Average Open, the Bars are coloured Green.
If the N Bar Average Close < N Bar Average Open, the Bars are coloured Red.
hecate chop filterChop Filter to remove lateral trade under a threshold. Change the FilterOut parameter to filter all you want. Example of a model using it with a filtering of 0.003 (use to filter out to the level you prefer):
TheLark LMA (Laguerre) v2 - multi timeframeWhat's new?
v2 has added multi timeframe support.
Blatantly stole Chris Moody's code for multi timeframe, because why re-invent the wheel? Thanks Chris ;P
BUT -- modified the coloring to work correctly with higher timeframes, just another Lark hack, so it's a give and take :)
_____________________________
The Laguerre Average (filter) was discovered by John Ehlers.
It's a newer type of averaging that is meant to take out as much of the
inherent lag that your typical EMA and SMA's give at the start of a major trend change.
So what you get is an average that turns more quickly at major trend changes,
and doesn't get tripped up on the noise (as much).
_____________________________
Please thumbs up/ star/ whatever this script if you like it & use it!
See my profile for more scripts, & be sure to follow for future releases.
Sorry for my hiatus, extremely busy these days working on both my own and client work.
This script was a user request.
Bandpass Filter Strategy The related article is copyrighted material from
Stocks & Commodities Mar 2010
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Bandpass Filter The related article is copyrighted material from
Stocks & Commodities Mar 2010
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
Ehlers Smoothed Stochastic & RSI with Roofing FiltersRoofing filters, first discussed by Mr.John Ehlers, act as a passband, filtering out unwanted noise from market data and accentuating turning points.
I have included 2 indicators with filters enabled. Both support double smoothing via options page. All the parameters are configurable.
Info on Roofing Filter and Ehlers Super Smoother:
----------------------------------------------------
The Ehlers' Roofing Filter is an expansion on Ehlers Super Smoother Filter, both being smoothing techniques based on analog filters. This filter aims at reducing noise in price data.
In Super Smoother Filter, regardless of the time frame used, all waves having cycles of less than 10 bars are considered noise (customizable via options page). The Roofing Filter uses this principle, however, it also creates a so-called "roof" by eliminating wave components having cycles greater than 48 bars which are perceived as "spectral dilation". Thus, the filter only passes those spectral components whose periods are between 10 and 48 bars. This technique noticeably reduces indicator lag and also helps assess turning points more accurately.
More info:
- Spectral dilation paper: www.mesasoftware.com
- John Ehlers presentation: www.youtube.com
------------------------------------------------------
If you want to use RSI %B and Bandwidth, follow this guide to "Make mine" this chart and get access to the source:
drive.google.com
For the complete list of my indicators, check this post:
CMO Oscillator with FilterHi
Let me introduce my CMO Oscillator with Filter script.
This indicator plots a CMO which ignores price changes which are less
than a threshold value. CMO was developed by Tushar Chande. A scientist,
an inventor, and a respected trading system developer, Mr. Chande developed
the CMO to capture what he calls "pure momentum". For more definitive
information on the CMO and other indicators we recommend the book The New
Technical Trader by Tushar Chande and Stanley Kroll.
The CMO is closely related to, yet unique from, other momentum oriented
indicators such as Relative Strength Index, Stochastic, Rate-of-Change, etc.
It is most closely related to Welles Wilder`s RSI, yet it differs in several ways:
- It uses data for both up days and down days in the numerator, thereby directly
measuring momentum;
- The calculations are applied on unsmoothed data. Therefore, short-term extreme
movements in price are not hidden. Once calculated, smoothing can be applied to the
CMO, if desired;
- The scale is bounded between +100 and -100, thereby allowing you to clearly see
changes in net momentum using the 0 level. The bounded scale also allows you to
conveniently compare values across different securities.